PageSourceSearch

https://accessmedia.nz/v11.1_Live/js/index.0asgyqvA.js

js accessmedia.nz collected 2026-10-03 22:11:06 UTC 1,750,356 bytes, 481 lines download raw bytes

1const __vite__fileDeps=["v11.1_Live/js/Home.DwMa7ZmX.js","v11.1_Live/js/FCNavbarDefault.B7su0b1r.js","v11.1_Live/css/FCNavbarDefault.Bay7Jw0D.css","v11.1_Live/js/SkeletonLoader.dvqrKKUo.js","v11.1_Live/css/SkeletonLoader.CDOyBEzE.css","v11.1_Live/js/default-image.jntmyUdW.js","v11.1_Live/js/metaUtils.ipqBNsLl.js","v11.1_Live/js/format.BnjGCzBc.js","v11.1_Live/js/_commonjsHelpers.BosuxZz1.js","v11.1_Live/css/Home.BAmbB2b2.css","v11.1_Live/js/About.iTih-cHa.js","v11.1_Live/js/Breadcrumbs.4NbLsz_b.js","v11.1_Live/js/Accessibility.DeM7f2Z1.js","v11.1_Live/js/ContactForm.CJHetARE.js","v11.1_Live/js/MaterialButton.ihgaN-YL.js","v11.1_Live/css/ContactForm.BNMJQuI1.css","v11.1_Live/js/Contact.CrMCs0Gk.js","v11.1_Live/js/Privacy.C4-H2wKl.js","v11.1_Live/js/Terms.FKaHuAJz.js","v11.1_Live/js/Search.Csrs6ZVR.js","v11.1_Live/js/CustomPagination.evTbpg4W.js","v11.1_Live/css/CustomPagination.C7NdsACW.css","v11.1_Live/css/Search.BBZWUiv5.css","v11.1_Live/js/Programmes.BuPt-yVg.js","v11.1_Live/js/ProgrammePage.CaMwSxoD.js","v11.1_Live/js/EpisodePlayer.BRfbWF3l.js","v11.1_Live/css/EpisodePlayer.BGTihxVu.css","v11.1_Live/js/ErrorHandling.BxheY8y_.js","v11.1_Live/css/ErrorHandling.S10mlCVT.css","v11.1_Live/css/ProgrammePage.HZQJH1Li.css","v11.1_Live/js/Player.CS17LyIT.js","v11.1_Live/css/Player.BSPGY8G7.css","v11.1_Live/js/Episodes.B1neblEW.js","v11.1_Live/js/Episode.C-R1zhDM.js","v11.1_Live/css/Episode.9VZDf5Of.css","v11.1_Live/js/Station.BMHCnnfZ.js","v11.1_Live/js/Error.DHk7uhep.js","v11.1_Live/css/Error.BUjxEIPJ.css","v11.1_Live/js/bootstrap.min.BnSvp_6c.js","v11.1_Live/js/index.DQe_go6b.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2import{g as Ol,c as Yi,a as _T}from"./_commonjsHelpers.BosuxZz1.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const n of r)if(n.type==="childList")for(const a of n.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function s(r){const n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function i(r){if(r.ep)return;r.ep=!0;const n=s(r);fetch(r.href,n)}})();const YR="modulepreload",QR=function(t){return"/"+t},ZS={},_i=function(e,s,i){let r=Promise.resolve();if(s&&s.length>0){document.getElementsByTagName("link");const n=document.querySelector("meta[property=csp-nonce]"),a=n?.nonce||n?.getAttribute("nonce");r=Promise.all(s.map(o=>{if(o=QR(o),o in ZS)return;ZS[o]=!0;const l=o.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${c}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":YR,l||(d.as="script",d.crossOrigin=""),d.href=o,a&&d.setAttribute("nonce",a),document.head.appendChild(d),l)return new Promise((p,_)=>{d.addEventListener("load",p),d.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${o}`)))})}))}return r.then(()=>e()).catch(n=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=n,window.dispatchEvent(a),!a.defaultPrevented)throw n})};/**
3* @vue/shared v3.5.13
4* (c) 2018-present Yuxi (Evan) You and Vue contributors
5* @license MIT
6**//*! #__NO_SIDE_EFFECTS__ */function Um(t){const e=Object.create(null);for(const s of t.split(","))e[s]=1;return s=>s in e}const It={},cu=[],Sr=()=>{},JR=()=>!1,rf=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),vT=t=>t.startsWith("onUpdate:"),Gt=Object.assign,bT=(t,e)=>{const s=t.indexOf(e);s>-1&&t.splice(s,1)},ZR=Object.prototype.hasOwnProperty,Rt=(t,e)=>ZR.call(t,e),We=Array.isArray,du=t=>dc(t)==="[object Map]",Nl=t=>dc(t)==="[object Set]",eE=t=>dc(t)==="[object Date]",eM=t=>dc(t)==="[object RegExp]",st=t=>typeof t=="function",Zt=t=>typeof t=="string",nn=t=>typeof t=="symbol",Vt=t=>t!==null&&typeof t=="object",TT=t=>(Vt(t)||st(t))&&st(t.then)&&st(t.catch),CA=Object.prototype.toString,dc=t=>CA.call(t),tM=t=>dc(t).slice(8,-1),fl=t=>dc(t)==="[object Object]",ST=t=>Zt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,hu=Um(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$m=t=>{const e=Object.create(null);return s=>e[s]||(e[s]=t(s))},sM=/-(\w)/g,Xs=$m(t=>t.replace(sM,(e,s)=>s?s.toUpperCase():"")),iM=/\B([A-Z])/g,Hi=$m(t=>t.replace(iM,"-$1").toLowerCase()),nf=$m(t=>t.charAt(0).toUpperCase()+t.slice(1)),rh=$m(t=>t?`on${nf(t)}`:""),Si=(t,e)=>!Object.is(t,e),fu=(t,...e)=>{for(let s=0;s<t.length;s++)t[s](...e)},wA=(t,e,s,i=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:i,value:s})},wp=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Ap=t=>{const e=Zt(t)?Number(t):NaN;return isNaN(e)?t:e};let tE;const jm=()=>tE||(tE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),rM="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",nM=Um(rM);function af(t){if(We(t)){const e={};for(let s=0;s<t.length;s++){const i=t[s],r=Zt(i)?uM(i):af(i);if(r)for(const n in r)e[n]=r[n]}return e}else if(Zt(t)||Vt(t))return t}const aM=/;(?![^(]*\))/g,oM=/:([^]+)/,lM=/\/\*[^]*?\*\//g;function uM(t){const e={};return t.replace(lM,"").split(aM).forEach(s=>{if(s){const i=s.split(oM);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function ye(t){let e="";if(Zt(t))e=t;else if(We(t))for(let s=0;s<t.length;s++){const i=ye(t[s]);i&&(e+=i+" ")}else if(Vt(t))for(const s in t)t[s]&&(e+=s+" ");return e.trim()}function cM(t){if(!t)return null;let{class:e,style:s}=t;return e&&!Zt(e)&&(t.class=ye(e)),s&&(t.style=af(s)),t}const dM="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",hM=Um(dM);function AA(t){return!!t||t===""}function fM(t,e){if(t.length!==e.length)return!1;let s=!0;for(let i=0;s&&i<t.length;i++)s=bo(t[i],e[i]);return s}function bo(t,e){if(t===e)return!0;let s=eE(t),i=eE(e);if(s||i)return s&&i?t.getTime()===e.getTime():!1;if(s=nn(t),i=nn(e),s||i)return t===e;if(s=We(t),i=We(e),s||i)return s&&i?fM(t,e):!1;if(s=Vt(t),i=Vt(e),s||i){if(!s||!i)return!1;const r=Object.keys(t).length,n=Object.keys(e).length;if(r!==n)return!1;for(const a in t){const o=t.hasOwnProperty(a),l=e.hasOwnProperty(a);if(o&&!l||!o&&l||!bo(t[a],e[a]))return!1}}return String(t)===String(e)}function Hm(t,e){return t.findIndex(s=>bo(s,e))}const kA=t=>!!(t&&t.__v_isRef===!0),Be=t=>Zt(t)?t:t==null?"":We(t)||Vt(t)&&(t.toString===CA||!st(t.toString))?kA(t)?Be(t.value):JSON.stringify(t,DA,2):String(t),DA=(t,e)=>kA(e)?DA(t,e.value):du(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((s,[i,r],n)=>(s[G0(i,n)+" =>"]=r,s),{})}:Nl(e)?{[`Set(${e.size})`]:[...e.values()].map(s=>G0(s))}:nn(e)?G0(e):Vt(e)&&!We(e)&&!fl(e)?String(e):e,G0=(t,e="")=>{var s;return nn(t)?`Symbol(${(s=t.description)!=null?s:e})`:t};/**
7* @vue/reactivity v3.5.13
8* (c) 2018-present Yuxi (Evan) You and Vue contributors
9* @license MIT
vendor: 5,563 bytes, line 10
10**/let Ti;class ET{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ti,!e&&Ti&&(this.index=(Ti.scopes||(Ti.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,s;if(this.scopes)for(e=0,s=this.scopes.length;e<s;e++)this.scopes[e].pause();for(e=0,s=this.effects.length;e<s;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,s;if(this.scopes)for(e=0,s=this.scopes.length;e<s;e++)this.scopes[e].resume();for(e=0,s=this.effects.length;e<s;e++)this.effects[e].resume()}}run(e){if(this._active){const s=Ti;try{return Ti=this,e()}finally{Ti=s}}}on(){Ti=this}off(){Ti=this.parent}stop(e){if(this._active){this._active=!1;let s,i;for(s=0,i=this.effects.length;s<i;s++)this.effects[s].stop();for(this.effects.length=0,s=0,i=this.cleanups.length;s<i;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,i=this.scopes.length;s<i;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function qm(t){return new ET(t)}function xT(){return Ti}function IA(t,e=!1){Ti&&Ti.cleanups.push(t)}let Wt;const W0=new WeakSet;class kh{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ti&&Ti.active&&Ti.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,W0.has(this)&&(W0.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||LA(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,sE(this),OA(this);const e=Wt,s=Zr;Wt=this,Zr=!0;try{return this.fn()}finally{NA(this),Wt=e,Zr=s,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)AT(e);this.deps=this.depsTail=void 0,sE(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?W0.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){bv(this)&&this.run()}get dirty(){return bv(this)}}let PA=0,nh,ah;function LA(t,e=!1){if(t.flags|=8,e){t.next=ah,ah=t;return}t.next=nh,nh=t}function CT(){PA++}function wT(){if(--PA>0)return;if(ah){let e=ah;for(ah=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;nh;){let e=nh;for(nh=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(i){t||(t=i)}e=s}}if(t)throw t}function OA(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function NA(t){let e,s=t.depsTail,i=s;for(;i;){const r=i.prevDep;i.version===-1?(i===s&&(s=r),AT(i),pM(i)):e=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=r}t.deps=e,t.depsTail=s}function bv(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(RA(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function RA(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Dh))return;t.globalVersion=Dh;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!bv(t)){t.flags&=-3;return}const s=Wt,i=Zr;Wt=t,Zr=!0;try{OA(t);const r=t.fn(t._value);(e.version===0||Si(r,t._value))&&(t._value=r,e.version++)}catch(r){throw e.version++,r}finally{Wt=s,Zr=i,NA(t),t.flags&=-3}}function AT(t,e=!1){const{dep:s,prevSub:i,nextSub:r}=t;if(i&&(i.nextSub=r,t.prevSub=void 0),r&&(r.prevSub=i,t.nextSub=void 0),s.subs===t&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let n=s.computed.deps;n;n=n.nextDep)AT(n,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function pM(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}function mM(t,e){t.effect instanceof kh&&(t=t.effect.fn);const s=new kh(t);e&&Gt(s,e);try{s.run()}catch(r){throw s.stop(),r}const i=s.run.bind(s);return i.effect=s,i}function gM(t){t.effect.stop()}let Zr=!0;const MA=[];function ko(){MA.push(Zr),Zr=!1}function Do(){const t=MA.pop();Zr=t===void 0?!0:t}function sE(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=Wt;Wt=void 0;try{e()}finally{Wt=s}}}let Dh=0;class yM{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Vm{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!Wt||!Zr||Wt===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Wt)s=this.activeLink=new yM(Wt,this),Wt.deps?(s.prevDep=Wt.depsTail,Wt.depsTail.nextDep=s,Wt.depsTail=s):Wt.deps=Wt.depsTail=s,FA(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=Wt.depsTail,s.nextDep=void 0,Wt.depsTail.nextDep=s,Wt.depsTail=s,Wt.deps===s&&(Wt.deps=i)}return s}trigger(e){this.version++,Dh++,this.notify(e)}notify(e){CT();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{wT()}}}function FA(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let i=e.deps;i;i=i.nextDep)FA(i)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const kp=new WeakMap,pl=Symbol(""),Tv=Symbol(""),Ih=Symbol("");function ti(t,e,s){if(Zr&&Wt){let i=kp.get(t);i||kp.set(t,i=new Map);let r=i.get(s);r||(i.set(s,r=new Vm),r.map=i,r.key=s),r.track()}}function wa(t,e,s,i,r,n){const a=kp.get(t);if(!a){Dh++;return}const o=l=>{l&&l.trigger()};
vendor: 5,040 bytes, line 10
10if(CT(),e==="clear")a.forEach(o);else{const l=We(t),c=l&&ST(s);if(l&&s==="length"){const d=Number(i);a.forEach((p,_)=>{(_==="length"||_===Ih||!nn(_)&&_>=d)&&o(p)})}else switch((s!==void 0||a.has(void 0))&&o(a.get(s)),c&&o(a.get(Ih)),e){case"add":l?c&&o(a.get("length")):(o(a.get(pl)),du(t)&&o(a.get(Tv)));break;case"delete":l||(o(a.get(pl)),du(t)&&o(a.get(Tv)));break;case"set":du(t)&&o(a.get(pl));break}}wT()}function _M(t,e){const s=kp.get(t);return s&&s.get(e)}function Ul(t){const e=Dt(t);return e===t?e:(ti(e,"iterate",Ih),cr(t)?e:e.map(si))}function zm(t){return ti(t=Dt(t),"iterate",Ih),t}const vM={__proto__:null,[Symbol.iterator](){return X0(this,Symbol.iterator,si)},concat(...t){return Ul(this).concat(...t.map(e=>We(e)?Ul(e):e))},entries(){return X0(this,"entries",t=>(t[1]=si(t[1]),t))},every(t,e){return ya(this,"every",t,e,void 0,arguments)},filter(t,e){return ya(this,"filter",t,e,s=>s.map(si),arguments)},find(t,e){return ya(this,"find",t,e,si,arguments)},findIndex(t,e){return ya(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return ya(this,"findLast",t,e,si,arguments)},findLastIndex(t,e){return ya(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return ya(this,"forEach",t,e,void 0,arguments)},includes(...t){return K0(this,"includes",t)},indexOf(...t){return K0(this,"indexOf",t)},join(t){return Ul(this).join(t)},lastIndexOf(...t){return K0(this,"lastIndexOf",t)},map(t,e){return ya(this,"map",t,e,void 0,arguments)},pop(){return Cd(this,"pop")},push(...t){return Cd(this,"push",t)},reduce(t,...e){return iE(this,"reduce",t,e)},reduceRight(t,...e){return iE(this,"reduceRight",t,e)},shift(){return Cd(this,"shift")},some(t,e){return ya(this,"some",t,e,void 0,arguments)},splice(...t){return Cd(this,"splice",t)},toReversed(){return Ul(this).toReversed()},toSorted(t){return Ul(this).toSorted(t)},toSpliced(...t){return Ul(this).toSpliced(...t)},unshift(...t){return Cd(this,"unshift",t)},values(){return X0(this,"values",si)}};function X0(t,e,s){const i=zm(t),r=i[e]();return i!==t&&!cr(t)&&(r._next=r.next,r.next=()=>{const n=r._next();return n.value&&(n.value=s(n.value)),n}),r}const bM=Array.prototype;function ya(t,e,s,i,r,n){const a=zm(t),o=a!==t&&!cr(t),l=a[e];if(l!==bM[e]){const p=l.apply(t,n);return o?si(p):p}let c=s;a!==t&&(o?c=function(p,_){return s.call(this,si(p),_,t)}:s.length>2&&(c=function(p,_){return s.call(this,p,_,t)}));const d=l.call(a,c,i);return o&&r?r(d):d}function iE(t,e,s,i){const r=zm(t);let n=s;return r!==t&&(cr(t)?s.length>3&&(n=function(a,o,l){return s.call(this,a,o,l,t)}):n=function(a,o,l){return s.call(this,a,si(o),l,t)}),r[e](n,...i)}function K0(t,e,s){const i=Dt(t);ti(i,"iterate",Ih);const r=i[e](...s);return(r===-1||r===!1)&&Xm(s[0])?(s[0]=Dt(s[0]),i[e](...s)):r}function Cd(t,e,s=[]){ko(),CT();const i=Dt(t)[e].apply(t,s);return wT(),Do(),i}const TM=Um("__proto__,__v_isRef,__isVue"),BA=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(nn));function SM(t){nn(t)||(t=String(t));const e=Dt(this);return ti(e,"has",t),e.hasOwnProperty(t)}class UA{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,i){if(s==="__v_skip")return e.__v_skip;const r=this._isReadonly,n=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return n;if(s==="__v_raw")return i===(r?n?zA:VA:n?qA:HA).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const a=We(e);if(!r){let l;if(a&&(l=vM[s]))return l;if(s==="hasOwnProperty")return SM}const o=Reflect.get(e,s,ls(e)?e:i);return(nn(s)?BA.has(s):TM(s))||(r||ti(e,"get",s),n)?o:ls(o)?a&&ST(s)?o:o.value:Vt(o)?r?DT(o):hc(o):o}}class $A extends UA{constructor(e=!1){super(!1,e)}set(e,s,i,r){let n=e[s];if(!this._isShallow){const l=To(n);if(!cr(i)&&!To(i)&&(n=Dt(n),i=Dt(i)),!We(e)&&ls(n)&&!ls(i))return l?!1:(n.value=i,!0)}const a=We(e)&&ST(s)?Number(s)<e.length:Rt(e,s),o=Reflect.set(e,s,i,ls(e)?e:r);return e===Dt(r)&&(a?Si(i,n)&&wa(e,"set",s,i):wa(e,"add",s,i)),o}deleteProperty(e,s){const i=Rt(e,s);e[s];const r=Reflect.deleteProperty(e,s);return r&&i&&wa(e,"delete",s,void 0),r}has(e,s){const i=Reflect.has(e,s);return(!nn(s)||!BA.has(s))&&ti(e,"has",s),i}ownKeys(e){return ti(e,"iterate",We(e)?"length":pl),Reflect.ownKeys(e)}}class jA extends UA{constructor(e=!1){super(!0,e)}set(e,s){return!0}deleteProperty(e,s){return!0}}const EM=new $A,xM=new jA,CM=new $A(!0),wM=new jA(!0),Sv=t=>t,Lf=t=>Reflect.getPrototypeOf(t);function AM(t,e,s){return function(...i){const r=this.__v_raw,n=Dt(r),a=du(n),o=t==="entries"||t===Symbol.iterator&&a,l=t==="keys"&&a,c=r[t](...i),d=s?Sv:e?Ev:si;return!e&&ti(n,"iterate",l?Tv:pl),{next(){const{value:p,done:_}=c.next();return _?{value:p,done:_}:{value:o?[d(p[0]),d(p[1])]:d(p),done:_}},[Symbol.iterator](){return this}}}}function Of(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function kM(t,e){const s={get(r){const n=this.__v_raw,a=Dt(n),o=Dt(r);t||(Si(r,o)&&ti(a,"get",r),ti(a,"get",o));const{has:l}=Lf(a),c=e?Sv:t?Ev:si;
vendor: 6,616 bytes, lines 10-13
10if(l.call(a,r))return c(n.get(r));if(l.call(a,o))return c(n.get(o));n!==a&&n.get(r)},get size(){const r=this.__v_raw;return!t&&ti(Dt(r),"iterate",pl),Reflect.get(r,"size",r)},has(r){const n=this.__v_raw,a=Dt(n),o=Dt(r);return t||(Si(r,o)&&ti(a,"has",r),ti(a,"has",o)),r===o?n.has(r):n.has(r)||n.has(o)},forEach(r,n){const a=this,o=a.__v_raw,l=Dt(o),c=e?Sv:t?Ev:si;return!t&&ti(l,"iterate",pl),o.forEach((d,p)=>r.call(n,c(d),c(p),a))}};return Gt(s,t?{add:Of("add"),set:Of("set"),delete:Of("delete"),clear:Of("clear")}:{add(r){!e&&!cr(r)&&!To(r)&&(r=Dt(r));const n=Dt(this);return Lf(n).has.call(n,r)||(n.add(r),wa(n,"add",r,r)),this},set(r,n){!e&&!cr(n)&&!To(n)&&(n=Dt(n));const a=Dt(this),{has:o,get:l}=Lf(a);let c=o.call(a,r);c||(r=Dt(r),c=o.call(a,r));const d=l.call(a,r);return a.set(r,n),c?Si(n,d)&&wa(a,"set",r,n):wa(a,"add",r,n),this},delete(r){const n=Dt(this),{has:a,get:o}=Lf(n);let l=a.call(n,r);l||(r=Dt(r),l=a.call(n,r)),o&&o.call(n,r);const c=n.delete(r);return l&&wa(n,"delete",r,void 0),c},clear(){const r=Dt(this),n=r.size!==0,a=r.clear();return n&&wa(r,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=AM(r,t,e)}),s}function Gm(t,e){const s=kM(t,e);return(i,r,n)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?i:Reflect.get(Rt(s,r)&&r in i?s:i,r,n)}const DM={get:Gm(!1,!1)},IM={get:Gm(!1,!0)},PM={get:Gm(!0,!1)},LM={get:Gm(!0,!0)},HA=new WeakMap,qA=new WeakMap,VA=new WeakMap,zA=new WeakMap;function OM(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function NM(t){return t.__v_skip||!Object.isExtensible(t)?0:OM(tM(t))}function hc(t){return To(t)?t:Wm(t,!1,EM,DM,HA)}function kT(t){return Wm(t,!1,CM,IM,qA)}function DT(t){return Wm(t,!0,xM,PM,VA)}function RM(t){return Wm(t,!0,wM,LM,zA)}function Wm(t,e,s,i,r){if(!Vt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const n=r.get(t);if(n)return n;const a=NM(t);if(a===0)return t;const o=new Proxy(t,a===2?i:s);return r.set(t,o),o}function On(t){return To(t)?On(t.__v_raw):!!(t&&t.__v_isReactive)}function To(t){return!!(t&&t.__v_isReadonly)}function cr(t){return!!(t&&t.__v_isShallow)}function Xm(t){return t?!!t.__v_raw:!1}function Dt(t){const e=t&&t.__v_raw;return e?Dt(e):t}function Km(t){return!Rt(t,"__v_skip")&&Object.isExtensible(t)&&wA(t,"__v_skip",!0),t}const si=t=>Vt(t)?hc(t):t,Ev=t=>Vt(t)?DT(t):t;function ls(t){return t?t.__v_isRef===!0:!1}function Je(t){return GA(t,!1)}function of(t){return GA(t,!0)}function GA(t,e){return ls(t)?t:new MM(t,e)}class MM{constructor(e,s){this.dep=new Vm,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:Dt(e),this._value=s?e:si(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,i=this.__v_isShallow||cr(e)||To(e);e=i?e:Dt(e),Si(e,s)&&(this._rawValue=e,this._value=i?e:si(e),this.dep.trigger())}}function FM(t){t.dep&&t.dep.trigger()}function gt(t){return ls(t)?t.value:t}function BM(t){return st(t)?t():gt(t)}const UM={get:(t,e,s)=>e==="__v_raw"?t:gt(Reflect.get(t,e,s)),set:(t,e,s,i)=>{const r=t[e];return ls(r)&&!ls(s)?(r.value=s,!0):Reflect.set(t,e,s,i)}};function IT(t){return On(t)?t:new Proxy(t,UM)}class $M{constructor(e){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new Vm,{get:i,set:r}=e(s.track.bind(s),s.trigger.bind(s));this._get=i,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function WA(t){return new $M(t)}function XA(t){const e=We(t)?new Array(t.length):{};for(const s in t)e[s]=KA(t,s);return e}class jM{constructor(e,s,i){this._object=e,this._key=s,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return _M(Dt(this._object),this._key)}}class HM{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function qM(t,e,s){return ls(t)?t:st(t)?new HM(t):Vt(t)&&arguments.length>1?KA(t,e,s):Je(t)}function KA(t,e,s){const i=t[e];return ls(i)?i:new jM(t,e,s)}class VM{constructor(e,s,i){this.fn=e,this.setter=s,this._value=void 0,this.dep=new Vm(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Dh-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&Wt!==this)return LA(this,!0),!0}get value(){const e=this.dep.track();return RA(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function zM(t,e,s=!1){let i,r;return st(t)?i=t:(i=t.get,r=t.set),new VM(i,r,s)}const GM={GET:"get",HAS:"has",ITERATE:"iterate"},WM={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},Nf={},Dp=new WeakMap;let lo;function XM(){return lo}function YA(t,e=!1,s=lo){if(s){let i=Dp.get(s);i||Dp.set(s,i=[]),i.push(t)}}function KM(t,e,s=It){const{immediate:i,deep:r,once:n,scheduler:a,augmentJob:o,call:l}=s,c=E=>r?E:cr(E)||r===!1||r===0?Aa(E,1):Aa(E);let d,p,_,b,T=!1,y=!1;if(ls(t)?(p=()=>t.value,T=cr(t)):On(t)?(p=()=>c(t),T=!0):We(t)?(y=!0,T=t.some(E=>On(E)||cr(E)),p=()=>t.map(E=>{if(ls(E))return E.value;if(On(E))return c(E);if(st(E))return l?l(E,2):E()})):st(t)?e?p=l?()=>l(t,2):t:p=()=>{if(_){ko();try{_()}finally{Do()}}const E=lo;lo=d;try{return l?l(t,3,[b]):t(b)}finally{lo=E}}:p=Sr,e&&r){const E=p,w=r===!0?1/0:r;p=()=>Aa(E(),w)}const x=xT(),A=()=>{d.stop(),x&&x.active&&bT(x.effects,d)};if(n&&e){const E=e;e=(...w)=>{E(...w),A()}}let C=y?new Array(t.length).fill(Nf):Nf;const S=E=>{if(!(!(d.flags&1)||!d.dirty&&!E))if(e){const w=d.run();if(r||T||(y?w.some((O,R)=>Si(O,C[R])):Si(w,C))){_&&_();const O=lo;lo=d;try{const R=[w,C===Nf?void 0:y&&C[0]===Nf?[]:C,b];l?l(e,3,R):e(...R),C=w}finally{lo=O}}}else d.run()};return o&&o(S),d=new kh(p),d.scheduler=a?()=>a(S,!1):S,b=E=>YA(E,!1,d),_=d.onStop=()=>{const E=Dp.get(d);if(E){if(l)l(E,4);else for(const w of E)w();Dp.delete(d)}},e?i?S(!0):C=d.run():a?a(S.bind(null,!0),!0):d.run(),A.pause=d.pause.bind(d),A.resume=d.resume.bind(d),A.stop=A,A}function Aa(t,e=1/0,s){if(e<=0||!Vt(t)||t.__v_skip||(s=s||new Set,s.has(t)))return t;if(s.add(t),e--,ls(t))Aa(t.value,e,s);else if(We(t))for(let i=0;i<t.length;i++)Aa(t[i],e,s);else if(Nl(t)||du(t))t.forEach(i=>{Aa(i,e,s)});else if(fl(t)){for(const i in t)Aa(t[i],e,s);for(const i of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,i)&&Aa(t[i],e,s)}return t}/**
11* @vue/runtime-core v3.5.13
12* (c) 2018-present Yuxi (Evan) You and Vue contributors
13* @license MIT
14**/const QA=[];function YM(t){QA.push(t)}function QM(){QA.pop()}function JM(t,e){}const ZM={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},e3={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function fc(t,e,s,i){try{return i?t(...i):t()}catch(r){Rl(r,e,s)}}function Dr(t,e,s,i){if(st(t)){const r=fc(t,e,s,i);return r&&TT(r)&&r.catch(n=>{Rl(n,e,s)}),r}if(We(t)){const r=[];for(let n=0;n<t.length;n++)r.push(Dr(t[n],e,s,i));return r}}function Rl(t,e,s,i=!0){const r=e?e.vnode:null,{errorHandler:n,throwUnhandledErrorInProduction:a}=e&&e.appContext.config||It;if(e){let o=e.parent;const l=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${s}`;for(;o;){const d=o.ec;if(d){for(let p=0;p<d.length;p++)if(d[p](t,l,c)===!1)return}o=o.parent}if(n){ko(),fc(n,null,10,[t,l,c]),Do();return}}t3(t,s,r,i,a)}function t3(t,e,s,i=!0,r=!1){if(r)throw t;console.error(t)}const Ei=[];let gn=-1;const pu=[];let uo=null,Jl=0;const JA=Promise.resolve();let Ip=null;function an(t){const e=Ip||JA;return t?e.then(this?t.bind(this):t):e}function s3(t){let e=gn+1,s=Ei.length;for(;e<s;){const i=e+s>>>1,r=Ei[i],n=Lh(r);n<t||n===t&&r.flags&2?e=i+1:s=i}return e}function PT(t){if(!(t.flags&1)){const e=Lh(t),s=Ei[Ei.length-1];!s||!(t.flags&2)&&e>=Lh(s)?Ei.push(t):Ei.splice(s3(e),0,t),t.flags|=1,ZA()}}function ZA(){Ip||(Ip=JA.then(ek))}function Ph(t){We(t)?pu.push(...t):uo&&t.id===-1?uo.splice(Jl+1,0,t):t.flags&1||(pu.push(t),t.flags|=1),ZA()}function rE(t,e,s=gn+1){for(;s<Ei.length;s++){const i=Ei[s];if(i&&i.flags&2){if(t&&i.id!==t.uid)continue;Ei.splice(s,1),s--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function Pp(t){if(pu.length){const e=[...new Set(pu)].sort((s,i)=>Lh(s)-Lh(i));if(pu.length=0,uo){uo.push(...e);return}for(uo=e,Jl=0;Jl<uo.length;Jl++){const s=uo[Jl];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}uo=null,Jl=0}}const Lh=t=>t.id==null?t.flags&2?-1:1/0:t.id;function ek(t){try{for(gn=0;gn<Ei.length;gn++){const e=Ei[gn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),fc(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;gn<Ei.length;gn++){const e=Ei[gn];e&&(e.flags&=-2)}gn=-1,Ei.length=0,Pp(),Ip=null,(Ei.length||pu.length)&&ek()}}let Zl,Rf=[];function tk(t,e){var s,i;Zl=t,Zl?(Zl.enabled=!0,Rf.forEach(({event:r,args:n})=>Zl.emit(r,...n)),Rf=[]):typeof window<"u"&&window.HTMLElement&&!((i=(s=window.navigator)==null?void 0:s.userAgent)!=null&&i.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(n=>{tk(n,e)}),setTimeout(()=>{Zl||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Rf=[])},3e3)):Rf=[]}let Ps=null,Ym=null;function Oh(t){const e=Ps;return Ps=t,Ym=t&&t.type.__scopeId||null,e}function i3(t){Ym=t}function r3(){Ym=null}const n3=t=>ot;function ot(t,e=Ps,s){if(!e||t._n)return t;const i=(...r)=>{i._d&&Pv(-1);const n=Oh(e);let a;try{a=t(...r)}finally{Oh(n),i._d&&Pv(1)}return a};return i._n=!0,i._c=!0,i._d=!0,i}function lp(t,e){if(Ps===null)return t;const s=hf(Ps),i=t.dirs||(t.dirs=[]);for(let r=0;r<e.length;r++){let[n,a,o,l=It]=e[r];n&&(st(n)&&(n={mounted:n,updated:n}),n.deep&&Aa(a),i.push({dir:n,instance:s,value:a,oldValue:void 0,arg:o,modifiers:l}))}return t}function yn(t,e,s,i){const r=t.dirs,n=e&&e.dirs;for(let a=0;a<r.length;a++){const o=r[a];n&&(o.oldValue=n[a].value);let l=o.dir[i];l&&(ko(),Dr(l,s,8,[t.el,o,t,e]),Do())}}const sk=Symbol("_vte"),ik=t=>t.__isTeleport,oh=t=>t&&(t.disabled||t.disabled===""),nE=t=>t&&(t.defer||t.defer===""),aE=t=>typeof SVGElement<"u"&&t instanceof SVGElement,oE=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,xv=(t,e)=>{const s=t&&t.to;return Zt(s)?e?e(s):null:s}
vendor: 19,298 bytes, lines 14-15
14,rk={name:"Teleport",__isTeleport:!0,process(t,e,s,i,r,n,a,o,l,c){const{mc:d,pc:p,pbc:_,o:{insert:b,querySelector:T,createText:y,createComment:x}}=c,A=oh(e.props);let{shapeFlag:C,children:S,dynamicChildren:E}=e;if(t==null){const w=e.el=y(""),O=e.anchor=y("");b(w,s,i),b(O,s,i);const R=(k,P)=>{C&16&&(r&&r.isCE&&(r.ce._teleportTarget=k),d(S,k,P,r,n,a,o,l))},$=()=>{const k=e.target=xv(e.props,T),P=nk(k,e,y,b);k&&(a!=="svg"&&aE(k)?a="svg":a!=="mathml"&&oE(k)&&(a="mathml"),A||(R(k,P),up(e,!1)))};A&&(R(s,O),up(e,!0)),nE(e.props)?ks(()=>{$(),e.el.__isMounted=!0},n):$()}else{if(nE(e.props)&&!t.el.__isMounted){ks(()=>{rk.process(t,e,s,i,r,n,a,o,l,c),delete t.el.__isMounted},n);return}e.el=t.el,e.targetStart=t.targetStart;const w=e.anchor=t.anchor,O=e.target=t.target,R=e.targetAnchor=t.targetAnchor,$=oh(t.props),k=$?s:O,P=$?w:R;if(a==="svg"||aE(O)?a="svg":(a==="mathml"||oE(O))&&(a="mathml"),E?(_(t.dynamicChildren,E,k,r,n,a,o),jT(t,e,!0)):l||p(t,e,k,P,r,n,a,o,!1),A)$?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Mf(e,s,w,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const j=e.target=xv(e.props,T);j&&Mf(e,j,null,c,0)}else $&&Mf(e,O,R,c,1);up(e,A)}},remove(t,e,s,{um:i,o:{remove:r}},n){const{shapeFlag:a,children:o,anchor:l,targetStart:c,targetAnchor:d,target:p,props:_}=t;if(p&&(r(c),r(d)),n&&r(l),a&16){const b=n||!oh(_);for(let T=0;T<o.length;T++){const y=o[T];i(y,e,s,b,!!y.dynamicChildren)}}},move:Mf,hydrate:a3};function Mf(t,e,s,{o:{insert:i},m:r},n=2){n===0&&i(t.targetAnchor,e,s);const{el:a,anchor:o,shapeFlag:l,children:c,props:d}=t,p=n===2;if(p&&i(a,e,s),(!p||oh(d))&&l&16)for(let _=0;_<c.length;_++)r(c[_],e,s,2);p&&i(o,e,s)}function a3(t,e,s,i,r,n,{o:{nextSibling:a,parentNode:o,querySelector:l,insert:c,createText:d}},p){const _=e.target=xv(e.props,l);if(_){const b=oh(e.props),T=_._lpa||_.firstChild;if(e.shapeFlag&16)if(b)e.anchor=p(a(t),e,o(t),s,i,r,n),e.targetStart=T,e.targetAnchor=T&&a(T);else{e.anchor=a(t);let y=T;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")e.targetStart=y;else if(y.data==="teleport anchor"){e.targetAnchor=y,_._lpa=e.targetAnchor&&a(e.targetAnchor);break}}y=a(y)}e.targetAnchor||nk(_,e,d,c),p(T&&a(T),e,_,s,i,r,n)}up(e,b)}return e.anchor&&a(e.anchor)}const o3=rk;function up(t,e){const s=t.ctx;if(s&&s.ut){let i,r;for(e?(i=t.el,r=t.anchor):(i=t.targetStart,r=t.targetAnchor);i&&i!==r;)i.nodeType===1&&i.setAttribute("data-v-owner",s.uid),i=i.nextSibling;s.ut()}}function nk(t,e,s,i){const r=e.targetStart=s(""),n=e.targetAnchor=s("");return r[sk]=n,t&&(i(r,t),i(n,t)),n}const co=Symbol("_leaveCb"),Ff=Symbol("_enterCb");function LT(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return mr(()=>{t.isMounted=!0}),Wa(()=>{t.isUnmounting=!0}),t}const _r=[Function,Array],OT={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_r,onEnter:_r,onAfterEnter:_r,onEnterCancelled:_r,onBeforeLeave:_r,onLeave:_r,onAfterLeave:_r,onLeaveCancelled:_r,onBeforeAppear:_r,onAppear:_r,onAfterAppear:_r,onAppearCancelled:_r},ak=t=>{const e=t.subTree;return e.component?ak(e.component):e},l3={name:"BaseTransition",props:OT,setup(t,{slots:e}){const s=Ys(),i=LT();return()=>{const r=e.default&&Qm(e.default(),!0);if(!r||!r.length)return;const n=ok(r),a=Dt(t),{mode:o}=a;if(i.isLeaving)return Y0(n);const l=lE(n);if(!l)return Y0(n);let c=Lu(l,a,i,s,p=>c=p);l.type!==xs&&Ua(l,c);let d=s.subTree&&lE(s.subTree);if(d&&d.type!==xs&&!Qr(l,d)&&ak(s).type!==xs){let p=Lu(d,a,i,s);if(Ua(d,p),o==="out-in"&&l.type!==xs)return i.isLeaving=!0,p.afterLeave=()=>{i.isLeaving=!1,s.job.flags&8||s.update(),delete p.afterLeave,d=void 0},Y0(n);o==="in-out"&&l.type!==xs?p.delayLeave=(_,b,T)=>{const y=uk(i,d);y[String(d.key)]=d,_[co]=()=>{b(),_[co]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{T(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return n}}};function ok(t){let e=t[0];if(t.length>1){for(const s of t)if(s.type!==xs){e=s;break}}return e}const lk=l3;function uk(t,e){const{leavingVNodes:s}=t;let i=s.get(e.type);return i||(i=Object.create(null),s.set(e.type,i)),i}function Lu(t,e,s,i,r){const{appear:n,mode:a,persisted:o=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:p,onBeforeLeave:_,onLeave:b,onAfterLeave:T,onLeaveCancelled:y,onBeforeAppear:x,onAppear:A,onAfterAppear:C,onAppearCancelled:S}=e,E=String(t.key),w=uk(s,t),O=(k,P)=>{k&&Dr(k,i,9,P)},R=(k,P)=>{const j=P[1];O(k,P),We(k)?k.every(F=>F.length<=1)&&j():k.length<=1&&j()},$={mode:a,persisted:o,beforeEnter(k){let P=l;if(!s.isMounted)if(n)P=x||l;else return;k[co]&&k[co](!0);const j=w[E];j&&Qr(t,j)&&j.el[co]&&j.el[co](),O(P,[k])},enter(k){let P=c,j=d,F=p;if(!s.isMounted)if(n)P=A||c,j=C||d,F=S||p;else return;let H=!1;const te=k[Ff]=oe=>{H||(H=!0,oe?O(F,[k]):O(j,[k]),$.delayedLeave&&$.delayedLeave(),k[Ff]=void 0)};P?R(P,[k,te]):te()},leave(k,P){const j=String(t.key);if(k[Ff]&&k[Ff](!0),s.isUnmounting)return P();O(_,[k]);let F=!1;const H=k[co]=te=>{F||(F=!0,P(),te?O(y,[k]):O(T,[k]),k[co]=void 0,w[j]===t&&delete w[j])};w[j]=t,b?R(b,[k,H]):H()},clone(k){const P=Lu(k,e,s,i,r);return r&&r(P),P}};return $}function Y0(t){if(lf(t))return t=Fn(t),t.children=null,t}function lE(t){if(!lf(t))return ik(t.type)&&t.children?ok(t.children):t;const{shapeFlag:e,children:s}=t;if(s){if(e&16)return s[0];if(e&32&&st(s.default))return s.default()}}function Ua(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Ua(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Qm(t,e=!1,s){let i=[],r=0;for(let n=0;n<t.length;n++){let a=t[n];const o=s==null?a.key:String(s)+String(a.key!=null?a.key:n);a.type===_t?(a.patchFlag&128&&r++,i=i.concat(Qm(a.children,e,o))):(e||a.type!==xs)&&i.push(o!=null?Fn(a,{key:o}):a)}if(r>1)for(let n=0;n<i.length;n++)i[n].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function Cs(t,e){return st(t)?Gt({name:t.name},e,{setup:t}):t}function u3(){const t=Ys();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function NT(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function c3(t){const e=Ys(),s=of(null);if(e){const r=e.refs===It?e.refs={}:e.refs;Object.defineProperty(r,t,{enumerable:!0,get:()=>s.value,set:n=>s.value=n})}return s}function Nh(t,e,s,i,r=!1){if(We(t)){t.forEach((T,y)=>Nh(T,e&&(We(e)?e[y]:e),s,i,r));return}if(vo(i)&&!r){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Nh(t,e,s,i.component.subTree);return}const n=i.shapeFlag&4?hf(i.component):i.el,a=r?null:n,{i:o,r:l}=t,c=e&&e.r,d=o.refs===It?o.refs={}:o.refs,p=o.setupState,_=Dt(p),b=p===It?()=>!1:T=>Rt(_,T);if(c!=null&&c!==l&&(Zt(c)?(d[c]=null,b(c)&&(p[c]=null)):ls(c)&&(c.value=null)),st(l))fc(l,o,12,[a,d]);else{const T=Zt(l),y=ls(l);if(T||y){const x=()=>{if(t.f){const A=T?b(l)?p[l]:d[l]:l.value;r?We(A)&&bT(A,n):We(A)?A.includes(n)||A.push(n):T?(d[l]=[n],b(l)&&(p[l]=d[l])):(l.value=[n],t.k&&(d[t.k]=l.value))}else T?(d[l]=a,b(l)&&(p[l]=a)):y&&(l.value=a,t.k&&(d[t.k]=a))};a?(x.id=-1,ks(x,s)):x()}}}let uE=!1;const $l=()=>{uE||(console.error("Hydration completed but contains mismatches."),uE=!0)},d3=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",h3=t=>t.namespaceURI.includes("MathML"),Bf=t=>{if(t.nodeType===1){if(d3(t))return"svg";if(h3(t))return"mathml"}},su=t=>t.nodeType===8;function f3(t){const{mt:e,p:s,o:{patchProp:i,createText:r,nextSibling:n,parentNode:a,remove:o,insert:l,createComment:c}}=t,d=(S,E)=>{if(!E.hasChildNodes()){s(null,S,E),Pp(),E._vnode=S;return}p(E.firstChild,S,null,null,null),Pp(),E._vnode=S},p=(S,E,w,O,R,$=!1)=>{$=$||!!E.dynamicChildren;const k=su(S)&&S.data==="[",P=()=>y(S,E,w,O,R,k),{type:j,ref:F,shapeFlag:H,patchFlag:te}=E;let oe=S.nodeType;E.el=S,te===-2&&($=!1,E.dynamicChildren=null);let se=null;switch(j){case Na:oe!==3?E.children===""?(l(E.el=r(""),a(S),S),se=S):se=P():(S.data!==E.children&&($l(),S.data=E.children),se=n(S));break;case xs:C(S)?(se=n(S),A(E.el=S.content.firstChild,S,w)):oe!==8||k?se=P():se=n(S);break;case yl:if(k&&(S=n(S),oe=S.nodeType),oe===1||oe===3){se=S;const K=!E.children.length;for(let X=0;X<E.staticCount;X++)K&&(E.children+=se.nodeType===1?se.outerHTML:se.data),X===E.staticCount-1&&(E.anchor=se),se=n(se);return k?n(se):se}else P();break;case _t:k?se=T(S,E,w,O,R,$):se=P();break;default:if(H&1)(oe!==1||E.type.toLowerCase()!==S.tagName.toLowerCase())&&!C(S)?se=P():se=_(S,E,w,O,R,$);else if(H&6){E.slotScopeIds=R;const K=a(S);if(k?se=x(S):su(S)&&S.data==="teleport start"?se=x(S,S.data,"teleport end"):se=n(S),e(E,K,null,w,O,Bf(K),$),vo(E)&&!E.type.__asyncResolved){let X;k?(X=ze(_t),X.anchor=se?se.previousSibling:K.lastChild):X=S.nodeType===3?ys(""):ze("div"),X.el=S,E.component.subTree=X}}else H&64?oe!==8?se=P():se=E.type.hydrate(S,E,w,O,R,$,t,b):H&128&&(se=E.type.hydrate(S,E,w,O,Bf(a(S)),R,$,t,p))}return F!=null&&Nh(F,null,O,E),se},_=(S,E,w,O,R,$)=>{$=$||!!E.dynamicChildren;const{type:k,props:P,patchFlag:j,shapeFlag:F,dirs:H,transition:te}=E,oe=k==="input"||k==="option";if(oe||j!==-1){H&&yn(E,null,w,"created");let se=!1;if(C(S)){se=Nk(null,te)&&w&&w.vnode.props&&w.vnode.props.appear;const X=S.content.firstChild;se&&te.beforeEnter(X),A(X,S,w),E.el=S=X}if(F&16&&!(P&&(P.innerHTML||P.textContent))){let X=b(S.firstChild,E,S,w,O,R,$);for(;X;){Uf(S,1)||$l();const ne=X;X=X.nextSibling,o(ne)}}else if(F&8){let X=E.children;X[0]===`
15`&&(S.tagName==="PRE"||S.tagName==="TEXTAREA")&&(X=X.slice(1)),S.textContent!==X&&(Uf(S,0)||$l(),S.textContent=E.children)}if(P){if(oe||!$||j&48){const X=S.tagName.includes("-");for(const ne in P)(oe&&(ne.endsWith("value")||ne==="indeterminate")||rf(ne)&&!hu(ne)||ne[0]==="."||X)&&i(S,ne,null,P[ne],void 0,w)}else if(P.onClick)i(S,"onClick",null,P.onClick,void 0,w);else if(j&4&&On(P.style))for(const X in P.style)P.style[X]}let K;(K=P&&P.onVnodeBeforeMount)&&Ri(K,w,E),H&&yn(E,null,w,"beforeMount"),((K=P&&P.onVnodeMounted)||H||se)&&Vk(()=>{K&&Ri(K,w,E),se&&te.enter(S),H&&yn(E,null,w,"mounted")},O)}return S.nextSibling},b=(S,E,w,O,R,$,k)=>{k=k||!!E.dynamicChildren;const P=E.children,j=P.length;for(let F=0;F<j;F++){const H=k?P[F]:P[F]=Bi(P[F]),te=H.type===Na;S?(te&&!k&&F+1<j&&Bi(P[F+1]).type===Na&&(l(r(S.data.slice(H.children.length)),w,n(S)),S.data=H.children),S=p(S,H,O,R,$,k)):te&&!H.children?l(H.el=r(""),w):(Uf(w,1)||$l(),s(null,H,w,null,O,R,Bf(w),$))}return S},T=(S,E,w,O,R,$)=>{const{slotScopeIds:k}=E;k&&(R=R?R.concat(k):k);const P=a(S),j=b(n(S),E,P,w,O,R,$);return j&&su(j)&&j.data==="]"?n(E.anchor=j):($l(),l(E.anchor=c("]"),P,j),j)},y=(S,E,w,O,R,$)=>{if(Uf(S.parentElement,1)||$l(),E.el=null,$){const j=x(S);for(;;){const F=n(S);if(F&&F!==j)o(F);else break}}const k=n(S),P=a(S);return o(S),s(null,E,P,k,w,O,Bf(P),R),w&&(w.vnode.el=E.el,tg(w,E.el)),k},x=(S,E="[",w="]")=>{let O=0;for(;S;)if(S=n(S),S&&su(S)&&(S.data===E&&O++,S.data===w)){if(O===0)return n(S);O--}return S},A=(S,E,w)=>{const O=E.parentNode;O&&O.replaceChild(S,E);let R=w;for(;R;)R.vnode.el===E&&(R.vnode.el=R.subTree.el=S),R=R.parent},C=S=>S.nodeType===1&&S.tagName==="TEMPLATE";return[d,p]}const cE="data-allow-mismatch",p3={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Uf(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(cE);)t=t.parentElement;const s=t&&t.getAttribute(cE);if(s==null)return!1;if(s==="")return!0;{const i=s.split(",");return e===0&&i.includes("children")?!0:s.split(",").includes(p3[e])}}const m3=jm().requestIdleCallback||(t=>setTimeout(t,1)),g3=jm().cancelIdleCallback||(t=>clearTimeout(t)),y3=(t=1e4)=>e=>{const s=m3(e,{timeout:t});return()=>g3(s)};function _3(t){const{top:e,left:s,bottom:i,right:r}=t.getBoundingClientRect(),{innerHeight:n,innerWidth:a}=window;return(e>0&&e<n||i>0&&i<n)&&(s>0&&s<a||r>0&&r<a)}const v3=t=>(e,s)=>{const i=new IntersectionObserver(r=>{for(const n of r)if(n.isIntersecting){i.disconnect(),e();break}},t);return s(r=>{if(r instanceof Element){if(_3(r))return e(),i.disconnect(),!1;i.observe(r)}}),()=>i.disconnect()},b3=t=>e=>{if(t){const s=matchMedia(t);if(s.matches)e();else return s.addEventListener("change",e,{once:!0}),()=>s.removeEventListener("change",e)}},T3=(t=[])=>(e,s)=>{Zt(t)&&(t=[t]);let i=!1;const r=a=>{i||(i=!0,n(),e(),a.target.dispatchEvent(new a.constructor(a.type,a)))},n=()=>{s(a=>{for(const o of t)a.removeEventListener(o,r)})};return s(a=>{for(const o of t)a.addEventListener(o,r,{once:!0})}),n};function S3(t,e){if(su(t)&&t.data==="["){let s=1,i=t.nextSibling;for(;i;){if(i.nodeType===1){if(e(i)===!1)break}else if(su(i))if(i.data==="]"){if(--s===0)break}else i.data==="["&&s++;i=i.nextSibling}}else e(t)}const vo=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function E3(t){st(t)&&(t={loader:t});const{loader:e,loadingComponent:s,errorComponent:i,delay:r=200,hydrate:n,timeout:a,suspensible:o=!0,onError:l}=t;let c=null,d,p=0;const _=()=>(p++,c=null,b()),b=()=>{let T;return c||(T=c=e().catch(y=>{if(y=y instanceof Error?y:new Error(String(y)),l)return new Promise((x,A)=>{l(y,()=>x(_()),()=>A(y),p+1)});throw y}).then(y=>T!==c&&c?c:(y&&(y.__esModule||y[Symbol.toStringTag]==="Module")&&(y=y.default),d=y,y)))};return Cs({name:"AsyncComponentWrapper",__asyncLoader:b,__asyncHydrate(T,y,x){const A=n?()=>{const C=n(x,S=>S3(T,S));C&&(y.bum||(y.bum=[])).push(C)}:x;d?A():b().then(()=>!y.isUnmounted&&A())},get __asyncResolved(){return d},setup(){const T=Ds;if(NT(T),d)return()=>Q0(d,T);const y=S=>{c=null,Rl(S,T,13,!i)};if(o&&T.suspense||Ou)return b().then(S=>()=>Q0(S,T)).catch(S=>(y(S),()=>i?ze(i,{error:S}):null));const x=Je(!1),A=Je(),C=Je(!!r);return r&&setTimeout(()=>{C.value=!1},r),a!=null&&setTimeout(()=>{if(!x.value&&!A.value){const S=new Error(`Async component timed out after ${a}ms.`);y(S),A.value=S}},a),b().then(()=>{x.value=!0,T.parent&&lf(T.parent.vnode)&&T.parent.update()}).catch(S=>{y(S),A.value=S}),()=>{if(x.value&&d)return Q0(d,T);if(A.value&&i)return ze(i,{error:A.value});if(s&&!C.value)return ze(s)}}})}function Q0(t,e){const{ref:s,props:i,children:r,ce:n}=e.vnode,a=ze(t,i,r);return a.ref=s,a.ce=n,delete e.vnode.ce,a}const lf=t=>t.type.__isKeepAlive,x3={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const s=Ys(),i=s.ctx;if(!i.renderer)return()=>{const C=e.default&&e.default();return C&&C.length===1?C[0]:C};const r=new Map,n=new Set;let a=null;const o=s.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:p}}}=i,_=p("div");i.activate=(C,S,E,w,O)=>{const R=C.component;c(C,S,E,0,o),l(R.vnode,C,S,E,R,o,w,C.slotScopeIds,O),ks(()=>{R.isDeactivated=!1,R.a&&fu(R.a);const $=C.props&&C.props.onVnodeMounted;$&&Ri($,R.parent,C)},o)},i.deactivate=C=>{const S=C.component;Op(S.m),Op(S.a),c(C,_,null,1,o),ks(()=>{S.da&&fu(S.da);const E=C.props&&C.props.onVnodeUnmounted;E&&Ri(E,S.parent,C),S.isDeactivated=!0},o)};function b(C){J0(C),d(C,s,o,!0)}function T(C){r.forEach((S,E)=>{const w=Mv(S.type);w&&!C(w)&&y(E)})}function y(C){const S=r.get(C);S&&(!a||!Qr(S,a))?b(S):a&&J0(a),r.delete(C),n.delete(C)}$s(()=>[t.include,t.exclude],([C,S])=>{C&&T(E=>Wd(C,E)),S&&T(E=>!Wd(S,E))},{flush:"post",deep:!0});let x=null;const A=()=>{x!=null&&(Np(s.subTree.type)?ks(()=>{r.set(x,$f(s.subTree))},s.subTree.suspense):r.set(x,$f(s.subTree)))};return mr(A),pc(A),Wa(()=>{r.forEach(C=>{const{subTree:S,suspense:E}=s,w=$f(S);if(C.type===w.type&&C.key===w.key){J0(w);const O=w.component.da;O&&ks(O,E);return}b(C)})}),()=>{if(x=null,!e.default)return a=null;const C=e.default(),S=C[0];if(C.length>1)return a=null,C;if(!$a(S)||!(S.shapeFlag&4)&&!(S.shapeFlag&128))return a=null,S;let E=$f(S);if(E.type===xs)return a=null,E;const w=E.type,O=Mv(vo(E)?E.type.__asyncResolved||{}:w),{include:R,exclude:$,max:k}=t;if(R&&(!O||!Wd(R,O))||$&&O&&Wd($,O))return E.shapeFlag&=-257,a=E,S;const P=E.key==null?w:E.key,j=r.get(P);return E.el&&(E=Fn(E),S.shapeFlag&128&&(S.ssContent=E)),x=P,j?(E.el=j.el,E.component=j.component,E.transition&&Ua(E,E.transition),E.shapeFlag|=512,n.delete(P),n.add(P)):(n.add(P),k&&n.size>parseInt(k,10)&&y(n.values().next().value)),E.shapeFlag|=256,a=E,Np(S.type)?S:E}}},C3=x3;function Wd(t,e){return We(t)?t.some(s=>Wd(s,e)):Zt(t)?t.split(",").includes(e):eM(t)?(t.lastIndex=0,t.test(e)):!1}function ck(t,e){hk(t,"a",e)}function dk(t,e){hk(t,"da",e)}function hk(t,e,s=Ds){const i=t.__wdc||(t.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(Jm(e,i,s),s){let r=s.parent;for(;r&&r.parent;)lf(r.parent.vnode)&&w3(i,e,s,r),r=r.parent}}function w3(t,e,s,i){const r=Jm(e,t,i,!0);uf(()=>{bT(i[e],r)},s)}function J0(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function $f(t){return t.shapeFlag&128?t.ssContent:t}function Jm(t,e,s=Ds,i=!1){if(s){const r=s[t]||(s[t]=[]),n=e.__weh||(e.__weh=(...a)=>{ko();const o=wl(s),l=Dr(e,s,t,a);return o(),Do(),l});return i?r.unshift(n):r.push(n),n}}const Ga=t=>(e,s=Ds)=>{(!Ou||t==="sp")&&Jm(t,(...i)=>e(...i),s)},RT=Ga("bm"),mr=Ga("m"),Zm=Ga("bu"),pc=Ga("u"),Wa=Ga("bum"),uf=Ga("um"),fk=Ga("sp"),pk=Ga("rtg"),mk=Ga("rtc");function gk(t,e=Ds){Jm("ec",t,e)}const MT="components",A3="directives";function Gn(t,e){return FT(MT,t,!0,e)||t}const yk=Symbol.for("v-ndc");function k3(t){return Zt(t)?FT(MT,t,!1)||t:t||yk}function D3(t){return FT(A3,t)}function FT(t,e,s=!0,i=!1){const r=Ps||Ds;if(r){const n=r.type;if(t===MT){const o=Mv(n,!1);if(o&&(o===e||o===Xs(e)||o===nf(Xs(e))))return n}const a=dE(r[t]||n[t],e)||dE(r.appContext[t],e);return!a&&i?n:a}}function dE(t,e){return t&&(t[e]||t[Xs(e)]||t[nf(Xs(e))])}function Ws(t,e,s,i){let r;const n=s&&s[i],a=We(t);if(a||Zt(t)){const o=a&&On(t);let l=!1;o&&(l=!cr(t),t=zm(t)),r=new Array(t.length);for(let c=0,d=t.length;c<d;c++)r[c]=e(l?si(t[c]):t[c],c,void 0,n&&n[c])}else if(typeof t=="number"){r=new Array(t);for(let o=0;o<t;o++)r[o]=e(o+1,o,void 0,n&&n[o])}else if(Vt(t))if(t[Symbol.iterator])r=Array.from(t,(o,l)=>e(o,l,void 0,n&&n[l]));else{const o=Object.keys(t);r=new Array(o.length);for(let l=0,c=o.length;l<c;l++){const d=o[l];r[l]=e(t[d],d,l,n&&n[l])}}else r=[];return s&&(s[i]=r),r}function I3(t,e){for(let s=0;s<e.length;s++){const i=e[s];if(We(i))for(let r=0;r<i.length;r++)t[i[r].name]=i[r].fn;else i&&(t[i.name]=i.key?(...r)=>{const n=i.fn(...r);return n&&(n.key=i.key),n}:i.fn)}return t}function bt(t,e,s={},i,r){if(Ps.ce||Ps.parent&&vo(Ps.parent)&&Ps.parent.ce)return e!=="default"&&(s.name=e),Ce(),on(_t,null,[ze("slot",s,i&&i())],64);let n=t[e];n&&n._c&&(n._d=!1),Ce();const a=n&&BT(n(s)),o=s.key||a&&a.key,l=on(_t,{key:(o&&!nn(o)?o:`_${e}`)+(!a&&i?"_fb":"")},a||(i?i():[]),a&&t._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),n&&n._c&&(n._d=!0),l}function BT(t){return t.some(e=>$a(e)?!(e.type===xs||e.type===_t&&!BT(e.children)):!0)?t:null}function P3(t,e){const s={};for(const i in t)s[e&&/[A-Z]/.test(i)?`on:${i}`:rh(i)]=t[i];return s}const Cv=t=>t?Qk(t)?hf(t):Cv(t.parent):null,lh=Gt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Cv(t.parent),$root:t=>Cv(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>UT(t),$forceUpdate:t=>t.f||(t.f=()=>{PT(t.update)}),$nextTick:t=>t.n||(t.n=an.bind(t.proxy)),$watch:t=>o8.bind(t)}),Z0=(t,e)=>t!==It&&!t.__isScriptSetup&&Rt(t,e),wv={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:s,setupState:i,data:r,props:n,accessCache:a,type:o,appContext:l}=t;
vendor: 6,054 bytes, line 15
15let c;if(e[0]!=="$"){const b=a[e];if(b!==void 0)switch(b){case 1:return i[e];case 2:return r[e];case 4:return s[e];case 3:return n[e]}else{if(Z0(i,e))return a[e]=1,i[e];if(r!==It&&Rt(r,e))return a[e]=2,r[e];if((c=t.propsOptions[0])&&Rt(c,e))return a[e]=3,n[e];if(s!==It&&Rt(s,e))return a[e]=4,s[e];Av&&(a[e]=0)}}const d=lh[e];let p,_;if(d)return e==="$attrs"&&ti(t.attrs,"get",""),d(t);if((p=o.__cssModules)&&(p=p[e]))return p;if(s!==It&&Rt(s,e))return a[e]=4,s[e];if(_=l.config.globalProperties,Rt(_,e))return _[e]},set({_:t},e,s){const{data:i,setupState:r,ctx:n}=t;return Z0(r,e)?(r[e]=s,!0):i!==It&&Rt(i,e)?(i[e]=s,!0):Rt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(n[e]=s,!0)},has({_:{data:t,setupState:e,accessCache:s,ctx:i,appContext:r,propsOptions:n}},a){let o;return!!s[a]||t!==It&&Rt(t,a)||Z0(e,a)||(o=n[0])&&Rt(o,a)||Rt(i,a)||Rt(lh,a)||Rt(r.config.globalProperties,a)},defineProperty(t,e,s){return s.get!=null?t._.accessCache[e]=0:Rt(s,"value")&&this.set(t,e,s.value,null),Reflect.defineProperty(t,e,s)}},L3=Gt({},wv,{get(t,e){if(e!==Symbol.unscopables)return wv.get(t,e,t)},has(t,e){return e[0]!=="_"&&!nM(e)}});function O3(){return null}function N3(){return null}function R3(t){}function M3(t){}function F3(){return null}function B3(){}function U3(t,e){return null}function $3(){return _k().slots}function j3(){return _k().attrs}function _k(){const t=Ys();return t.setupContext||(t.setupContext=eD(t))}function Rh(t){return We(t)?t.reduce((e,s)=>(e[s]=null,e),{}):t}function H3(t,e){const s=Rh(t);for(const i in e){if(i.startsWith("__skip"))continue;let r=s[i];r?We(r)||st(r)?r=s[i]={type:r,default:e[i]}:r.default=e[i]:r===null&&(r=s[i]={default:e[i]}),r&&e[`__skip_${i}`]&&(r.skipFactory=!0)}return s}function q3(t,e){return!t||!e?t||e:We(t)&&We(e)?t.concat(e):Gt({},Rh(t),Rh(e))}function V3(t,e){const s={};for(const i in t)e.includes(i)||Object.defineProperty(s,i,{enumerable:!0,get:()=>t[i]});return s}function z3(t){const e=Ys();let s=t();return Ov(),TT(s)&&(s=s.catch(i=>{throw wl(e),i})),[s,()=>wl(e)]}let Av=!0;function G3(t){const e=UT(t),s=t.proxy,i=t.ctx;Av=!1,e.beforeCreate&&hE(e.beforeCreate,t,"bc");const{data:r,computed:n,methods:a,watch:o,provide:l,inject:c,created:d,beforeMount:p,mounted:_,beforeUpdate:b,updated:T,activated:y,deactivated:x,beforeDestroy:A,beforeUnmount:C,destroyed:S,unmounted:E,render:w,renderTracked:O,renderTriggered:R,errorCaptured:$,serverPrefetch:k,expose:P,inheritAttrs:j,components:F,directives:H,filters:te}=e;if(c&&W3(c,i,null),a)for(const K in a){const X=a[K];st(X)&&(i[K]=X.bind(s))}if(r){const K=r.call(s,s);Vt(K)&&(t.data=hc(K))}if(Av=!0,n)for(const K in n){const X=n[K],ne=st(X)?X.bind(s,s):st(X.get)?X.get.bind(s,s):Sr,de=!st(X)&&st(X.set)?X.set.bind(s):Sr,he=mt({get:ne,set:de});Object.defineProperty(i,K,{enumerable:!0,configurable:!0,get:()=>he.value,set:Le=>he.value=Le})}if(o)for(const K in o)vk(o[K],i,s,K);if(l){const K=st(l)?l.call(s):l;Reflect.ownKeys(K).forEach(X=>{gl(X,K[X])})}d&&hE(d,t,"c");function se(K,X){We(X)?X.forEach(ne=>K(ne.bind(s))):X&&K(X.bind(s))}if(se(RT,p),se(mr,_),se(Zm,b),se(pc,T),se(ck,y),se(dk,x),se(gk,$),se(mk,O),se(pk,R),se(Wa,C),se(uf,E),se(fk,k),We(P))if(P.length){const K=t.exposed||(t.exposed={});P.forEach(X=>{Object.defineProperty(K,X,{get:()=>s[X],set:ne=>s[X]=ne})})}else t.exposed||(t.exposed={});w&&t.render===Sr&&(t.render=w),j!=null&&(t.inheritAttrs=j),F&&(t.components=F),H&&(t.directives=H),k&&NT(t)}function W3(t,e,s=Sr){We(t)&&(t=kv(t));for(const i in t){const r=t[i];let n;Vt(r)?"default"in r?n=zi(r.from||i,r.default,!0):n=zi(r.from||i):n=zi(r),ls(n)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>n.value,set:a=>n.value=a}):e[i]=n}}function hE(t,e,s){Dr(We(t)?t.map(i=>i.bind(e.proxy)):t.bind(e.proxy),e,s)}function vk(t,e,s,i){let r=i.includes(".")?$k(s,i):()=>s[i];if(Zt(t)){const n=e[t];st(n)&&$s(r,n)}else if(st(t))$s(r,t.bind(s));else if(Vt(t))if(We(t))t.forEach(n=>vk(n,e,s,i));else{const n=st(t.handler)?t.handler.bind(s):e[t.handler];st(n)&&$s(r,n,t)}}function UT(t){const e=t.type,{mixins:s,extends:i}=e,{mixins:r,optionsCache:n,config:{optionMergeStrategies:a}}=t.appContext,o=n.get(e);let l;return o?l=o:!r.length&&!s&&!i?l=e:(l={},r.length&&r.forEach(c=>Lp(l,c,a,!0)),Lp(l,e,a)),Vt(e)&&n.set(e,l),l}function Lp(t,e,s,i=!1){const{mixins:r,extends:n}=e;n&&Lp(t,n,s,!0),r&&r.forEach(a=>Lp(t,a,s,!0));for(const a in e)if(!(i&&a==="expose")){const o=X3[a]||s&&s[a];t[a]=o?o(t[a],e[a]):e[a]}return t}const X3={data:fE,props:pE,emits:pE,methods:Xd,computed:Xd,beforeCreate:vi,created:vi,beforeMount:vi,mounted:vi,beforeUpdate:vi,updated:vi,beforeDestroy:vi,beforeUnmount:vi,destroyed:vi,unmounted:vi,activated:vi,deactivated:vi,errorCaptured:vi,serverPrefetch:vi,components:Xd,directives:Xd,watch:Y3,provide:fE,inject:K3};function fE(t,e){return e?t?function(){return Gt(st(t)?t.call(this,this):t,st(e)?e.call(this,this):e)}:e:t}function K3(t,e){return Xd(kv(t),kv(e))}function kv(t){if(We(t)){const e={};for(let s=0;s<t.length;s++)e[t[s]]=t[s];return e}return t}function vi(t,e){return t?[...new Set([].concat(t,e))]:e}function Xd(t,e){return t?Gt(Object.create(null),t,e):e}function pE(t,e){return t?We(t)&&We(e)?[...new Set([...t,...e])]:Gt(Object.create(null),Rh(t),Rh(e??{})):e}function Y3(t,e){if(!t)return e;if(!e)return t;const s=Gt(Object.create(null),t);for(const i in e)s[i]=vi(t[i],e[i]);return s}function bk(){return{app:null,config:{isNativeTag:JR,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Q3=0;function J3(t,e){return function(i,r=null){st(i)||(i=Gt({},i)),r!=null&&!Vt(r)&&(r=null);const n=bk(),a=new WeakSet,o=[];let l=!1;const c=n.app={_uid:Q3++,_component:i,_props:r,_container:null,_context:n,_instance:null,version:sD,get config(){return n.config},set config(d){},use(d,...p){return a.has(d)||(d&&st(d.install)?(a.add(d),d.install(c,...p)):st(d)&&(a.add(d),d(c,...p))),c}
vendor: 9,922 bytes, line 15
15,mixin(d){return n.mixins.includes(d)||n.mixins.push(d),c},component(d,p){return p?(n.components[d]=p,c):n.components[d]},directive(d,p){return p?(n.directives[d]=p,c):n.directives[d]},mount(d,p,_){if(!l){const b=c._ceVNode||ze(i,r);return b.appContext=n,_===!0?_="svg":_===!1&&(_=void 0),p&&e?e(b,d):t(b,d,_),l=!0,c._container=d,d.__vue_app__=c,hf(b.component)}},onUnmount(d){o.push(d)},unmount(){l&&(Dr(o,c._instance,16),t(null,c._container),delete c._container.__vue_app__)},provide(d,p){return n.provides[d]=p,c},runWithContext(d){const p=ml;ml=c;try{return d()}finally{ml=p}}};return c}}let ml=null;function gl(t,e){if(Ds){let s=Ds.provides;const i=Ds.parent&&Ds.parent.provides;i===s&&(s=Ds.provides=Object.create(i)),s[t]=e}}function zi(t,e,s=!1){const i=Ds||Ps;if(i||ml){const r=ml?ml._context.provides:i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&t in r)return r[t];if(arguments.length>1)return s&&st(e)?e.call(i&&i.proxy):e}}function Tk(){return!!(Ds||Ps||ml)}const Sk={},Ek=()=>Object.create(Sk),xk=t=>Object.getPrototypeOf(t)===Sk;function Z3(t,e,s,i=!1){const r={},n=Ek();t.propsDefaults=Object.create(null),Ck(t,e,r,n);for(const a in t.propsOptions[0])a in r||(r[a]=void 0);s?t.props=i?r:kT(r):t.type.props?t.props=r:t.props=n,t.attrs=n}function e8(t,e,s,i){const{props:r,attrs:n,vnode:{patchFlag:a}}=t,o=Dt(r),[l]=t.propsOptions;let c=!1;if((i||a>0)&&!(a&16)){if(a&8){const d=t.vnode.dynamicProps;for(let p=0;p<d.length;p++){let _=d[p];if(eg(t.emitsOptions,_))continue;const b=e[_];if(l)if(Rt(n,_))b!==n[_]&&(n[_]=b,c=!0);else{const T=Xs(_);r[T]=Dv(l,o,T,b,t,!1)}else b!==n[_]&&(n[_]=b,c=!0)}}}else{Ck(t,e,r,n)&&(c=!0);let d;for(const p in o)(!e||!Rt(e,p)&&((d=Hi(p))===p||!Rt(e,d)))&&(l?s&&(s[p]!==void 0||s[d]!==void 0)&&(r[p]=Dv(l,o,p,void 0,t,!0)):delete r[p]);if(n!==o)for(const p in n)(!e||!Rt(e,p))&&(delete n[p],c=!0)}c&&wa(t.attrs,"set","")}function Ck(t,e,s,i){const[r,n]=t.propsOptions;let a=!1,o;if(e)for(let l in e){if(hu(l))continue;const c=e[l];let d;r&&Rt(r,d=Xs(l))?!n||!n.includes(d)?s[d]=c:(o||(o={}))[d]=c:eg(t.emitsOptions,l)||(!(l in i)||c!==i[l])&&(i[l]=c,a=!0)}if(n){const l=Dt(s),c=o||It;for(let d=0;d<n.length;d++){const p=n[d];s[p]=Dv(r,l,p,c[p],t,!Rt(c,p))}}return a}function Dv(t,e,s,i,r,n){const a=t[s];if(a!=null){const o=Rt(a,"default");if(o&&i===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&st(l)){const{propsDefaults:c}=r;if(s in c)i=c[s];else{const d=wl(r);i=c[s]=l.call(null,e),d()}}else i=l;r.ce&&r.ce._setProp(s,i)}a[0]&&(n&&!o?i=!1:a[1]&&(i===""||i===Hi(s))&&(i=!0))}return i}const t8=new WeakMap;function wk(t,e,s=!1){const i=s?t8:e.propsCache,r=i.get(t);if(r)return r;const n=t.props,a={},o=[];let l=!1;if(!st(t)){const d=p=>{l=!0;const[_,b]=wk(p,e,!0);Gt(a,_),b&&o.push(...b)};!s&&e.mixins.length&&e.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!n&&!l)return Vt(t)&&i.set(t,cu),cu;if(We(n))for(let d=0;d<n.length;d++){const p=Xs(n[d]);mE(p)&&(a[p]=It)}else if(n)for(const d in n){const p=Xs(d);if(mE(p)){const _=n[d],b=a[p]=We(_)||st(_)?{type:_}:Gt({},_),T=b.type;let y=!1,x=!0;if(We(T))for(let A=0;A<T.length;++A){const C=T[A],S=st(C)&&C.name;if(S==="Boolean"){y=!0;break}else S==="String"&&(x=!1)}else y=st(T)&&T.name==="Boolean";b[0]=y,b[1]=x,(y||Rt(b,"default"))&&o.push(p)}}const c=[a,o];return Vt(t)&&i.set(t,c),c}function mE(t){return t[0]!=="$"&&!hu(t)}const Ak=t=>t[0]==="_"||t==="$stable",$T=t=>We(t)?t.map(Bi):[Bi(t)],s8=(t,e,s)=>{if(e._n)return e;const i=ot((...r)=>$T(e(...r)),s);return i._c=!1,i},kk=(t,e,s)=>{const i=t._ctx;for(const r in t){if(Ak(r))continue;const n=t[r];if(st(n))e[r]=s8(r,n,i);else if(n!=null){const a=$T(n);e[r]=()=>a}}},Dk=(t,e)=>{const s=$T(e);t.slots.default=()=>s},Ik=(t,e,s)=>{for(const i in e)(s||i!=="_")&&(t[i]=e[i])},i8=(t,e,s)=>{const i=t.slots=Ek();if(t.vnode.shapeFlag&32){const r=e._;r?(Ik(i,e,s),s&&wA(i,"_",r,!0)):kk(e,i)}else e&&Dk(t,e)},r8=(t,e,s)=>{const{vnode:i,slots:r}=t;let n=!0,a=It;if(i.shapeFlag&32){const o=e._;o?s&&o===1?n=!1:Ik(r,e,s):(n=!e.$stable,kk(e,r)),a=e}else e&&(Dk(t,e),a={default:1});if(n)for(const o in r)!Ak(o)&&a[o]==null&&delete r[o]},ks=Vk;function Pk(t){return Ok(t)}function Lk(t){return Ok(t,f3)}function Ok(t,e){const s=jm();s.__VUE__=!0;const{insert:i,remove:r,patchProp:n,createElement:a,createText:o,createComment:l,setText:c,setElementText:d,parentNode:p,nextSibling:_,setScopeId:b=Sr,insertStaticContent:T}=t,y=(W,q,re,ve=null,ge=null,be=null,Pe=void 0,U=null,z=!!q.dynamicChildren)=>{if(W===q)return;W&&!Qr(W,q)&&(ve=me(W),Le(W,ge,be,!0),W=null),q.patchFlag===-2&&(z=!1,q.dynamicChildren=null);const{type:ee,ref:Ee,shapeFlag:we}=q;switch(ee){case Na:x(W,q,re,ve);break;case xs:A(W,q,re,ve);break;case yl:W==null&&C(q,re,ve,Pe);break;case _t:F(W,q,re,ve,ge,be,Pe,U,z);break;default:we&1?w(W,q,re,ve,ge,be,Pe,U,z):we&6?H(W,q,re,ve,ge,be,Pe,U,z):(we&64||we&128)&&ee.process(W,q,re,ve,ge,be,Pe,U,z,Fe)}Ee!=null&&ge&&Nh(Ee,W&&W.ref,be,q||W,!q)},x=(W,q,re,ve)=>{if(W==null)i(q.el=o(q.children),re,ve);else{const ge=q.el=W.el;q.children!==W.children&&c(ge,q.children)}},A=(W,q,re,ve)=>{W==null?i(q.el=l(q.children||""),re,ve):q.el=W.el},C=(W,q,re,ve)=>{[W.el,W.anchor]=T(W.children,q,re,ve,W.el,W.anchor)},S=({el:W,anchor:q},re,ve)=>{let ge;for(;W&&W!==q;)ge=_(W),i(W,re,ve),W=ge;i(q,re,ve)},E=({el:W,anchor:q})=>{let re;for(;W&&W!==q;)re=_(W),r(W),W=re;r(q)},w=(W,q,re,ve,ge,be,Pe,U,z)=>{q.type==="svg"?Pe="svg":q.type==="math"&&(Pe="mathml"),W==null?O(q,re,ve,ge,be,Pe,U,z):k(W,q,ge,be,Pe,U,z)},O=(W,q,re,ve,ge,be,Pe,U)=>{let z,ee;const{props:Ee,shapeFlag:we,transition:xe,dirs:ae}=W;if(z=W.el=a(W.type,be,Ee&&Ee.is,Ee),we&8?d(z,W.children):we&16&&$(W.children,z,null,ve,ge,e_(W,be),Pe,U),ae&&yn(W,null,ve,"created"),R(z,W,W.scopeId,Pe,ve),Ee){for(const Ve in Ee)Ve!=="value"&&!hu(Ve)&&n(z,Ve,null,Ee[Ve],be,ve);"value"in Ee&&n(z,"value",null,Ee.value,be),(ee=Ee.onVnodeBeforeMount)&&Ri(ee,ve,W)}ae&&yn(W,null,ve,"beforeMount");const ce=Nk(ge,xe);ce&&xe.beforeEnter(z),i(z,q,re),((ee=Ee&&Ee.onVnodeMounted)||ce||ae)&&ks(()=>{ee&&Ri(ee,ve,W),ce&&xe.enter(z),ae&&yn(W,null,ve,"mounted")},ge)},R=(W,q,re,ve,ge)=>{if(re&&b(W,re),ve)for(let be=0;be<ve.length;be++)b(W,ve[be]);if(ge){let be=ge.subTree;if(q===be||Np(be.type)&&(be.ssContent===q||be.ssFallback===q)){const Pe=ge.vnode;R(W,Pe,Pe.scopeId,Pe.slotScopeIds,ge.parent)}}},$=(W,q,re,ve,ge,be,Pe,U,z=0)=>{for(let ee=z;ee<W.length;ee++){const Ee=W[ee]=U?ho(W[ee]):Bi(W[ee]);y(null,Ee,q,re,ve,ge,be,Pe,U)}},k=(W,q,re,ve,ge,be,Pe)=>{const U=q.el=W.el;let{patchFlag:z,dynamicChildren:ee,dirs:Ee}=q;z|=W.patchFlag&16;const we=W.props||It,xe=q.props||It;let ae;if(re&&Qo(re,!1),(ae=xe.onVnodeBeforeUpdate)&&Ri(ae,re,q,W),Ee&&yn(q,W,re,"beforeUpdate"),re&&Qo(re,!0),(we.innerHTML&&xe.innerHTML==null||we.textContent&&xe.textContent==null)&&d(U,""),ee?P(W.dynamicChildren,ee,U,re,ve,e_(q,ge),be):Pe||X(W,q,U,null,re,ve,e_(q,ge),be,!1),z>0){if(z&16)j(U,we,xe,re,ge);else if(z&2&&we.class!==xe.class&&n(U,"class",null,xe.class,ge),z&4&&n(U,"style",we.style,xe.style,ge),z&8){const ce=q.dynamicProps;for(let Ve=0;Ve<ce.length;Ve++){const Ke=ce[Ve],Pt=we[Ke],Lt=xe[Ke];(Lt!==Pt||Ke==="value")&&n(U,Ke,Pt,Lt,ge,re)}}z&1&&W.children!==q.children&&d(U,q.children)}else!Pe&&ee==null&&j(U,we,xe,re,ge);((ae=xe.onVnodeUpdated)||Ee)&&ks(()=>{ae&&Ri(ae,re,q,W),Ee&&yn(q,W,re,"updated")},ve)},P=(W,q,re,ve,ge,be,Pe)=>{for(let U=0;U<q.length;U++){const z=W[U],ee=q[U],Ee=z.el&&(z.type===_t||!Qr(z,ee)||z.shapeFlag&70)?p(z.el):re;y(z,ee,Ee,null,ve,ge,be,Pe,!0)}},j=(W,q,re,ve,ge)=>{if(q!==re){if(q!==It)for(const be in q)!hu(be)&&!(be in re)&&n(W,be,q[be],null,ge,ve);for(const be in re){if(hu(be))continue;const Pe=re[be],U=q[be];Pe!==U&&be!=="value"&&n(W,be,U,Pe,ge,ve)}"value"in re&&n(W,"value",q.value,re.value,ge)}},F=(W,q,re,ve,ge,be,Pe,U,z)=>{const ee=q.el=W?W.el:o(""),Ee=q.anchor=W?W.anchor:o("");let{patchFlag:we,dynamicChildren:xe,slotScopeIds:ae}=q;ae&&(U=U?U.concat(ae):ae),W==null?(i(ee,re,ve),i(Ee,re,ve),$(q.children||[],re,Ee,ge,be,Pe,U,z)):we>0&&we&64&&xe&&W.dynamicChildren?(P(W.dynamicChildren,xe,re,ge,be,Pe,U),(q.key!=null||ge&&q===ge.subTree)&&jT(W,q,!0)):X(W,q,re,Ee,ge,be,Pe,U,z)},H=(W,q,re,ve,ge,be,Pe,U,z)=>{q.slotScopeIds=U,W==null?q.shapeFlag&512?ge.ctx.activate(q,re,ve,Pe,z):te(q,re,ve,ge,be,Pe,z):oe(W,q,z)},te=(W,q,re,ve,ge,be,Pe)=>{const U=W.component=Yk(W,ve,ge);if(lf(W)&&(U.ctx.renderer=Fe),Jk(U,!1,Pe),U.asyncDep){if(ge&&ge.registerDep(U,se,Pe),!W.el){const z=U.subTree=ze(xs);A(null,z,q,re)}}else se(U,W,q,re,ge,be,Pe)},oe=(W,q,re)=>{const ve=q.component=W.component;if(f8(W,q,re))if(ve.asyncDep&&!ve.asyncResolved){K(ve,q,re);return}else ve.next=q,ve.update();else q.el=W.el,ve.vnode=q},se=(W,q,re,ve,ge,be,Pe)=>{const U=()=>{if(W.isMounted){let{next:we,bu:xe,u:ae,parent:ce,vnode:Ve}=W;{const fs=Rk(W);if(fs){we&&(we.el=Ve.el,K(W,we,Pe)),fs.asyncDep.then(()=>{W.isUnmounted||U()});return}}let Ke=we,Pt;Qo(W,!1),we?(we.el=Ve.el,K(W,we,Pe)):we=Ve,xe&&fu(xe),(Pt=we.props&&we.props.onVnodeBeforeUpdate)&&Ri(Pt,ce,we,Ve),Qo(W,!0);const Lt=cp(W),Ue=W.subTree;W.subTree=Lt,y(Ue,Lt,p(Ue.el),me(Ue),W,ge,be),we.el=Lt.el,Ke===null&&tg(W,Lt.el),ae&&ks(ae,ge),(Pt=we.props&&we.props.onVnodeUpdated)&&ks(()=>Ri(Pt,ce,we,Ve),ge)}else{let we;const{el:xe,props:ae}=q,{bm:ce,m:Ve,parent:Ke,root:Pt,type:Lt}=W,Ue=vo(q);if(Qo(W,!1),ce&&fu(ce),!Ue&&(we=ae&&ae.onVnodeBeforeMount)&&Ri(we,Ke,q),Qo(W,!0),xe&&rt){const fs=()=>{W.subTree=cp(W),rt(xe,W.subTree,W,ge,null)};Ue&&Lt.__asyncHydrate?Lt.__asyncHydrate(xe,W,fs):fs()}else{Pt.ce&&Pt.ce._injectChildStyle(Lt);const fs=W.subTree=cp(W);y(null,fs,re,ve,W,ge,be),q.el=fs.el}if(Ve&&ks(Ve,ge),!Ue&&(we=ae&&ae.onVnodeMounted)){const fs=q;ks(()=>Ri(we,Ke,fs),ge)}(q.shapeFlag&256||Ke&&vo(Ke.vnode)&&Ke.vnode.shapeFlag&256)&&W.a&&ks(W.a,ge),W.isMounted=!0,q=re=ve=null}};W.scope.on();const z=W.effect=new kh(U);W.scope.off();const ee=W.update=z.run.bind(z),Ee=W.job=z.runIfDirty.bind(z);
vendor: 4,723 bytes, line 15
15Ee.i=W,Ee.id=W.uid,z.scheduler=()=>PT(Ee),Qo(W,!0),ee()},K=(W,q,re)=>{q.component=W;const ve=W.vnode.props;W.vnode=q,W.next=null,e8(W,q.props,ve,re),r8(W,q.children,re),ko(),rE(W),Do()},X=(W,q,re,ve,ge,be,Pe,U,z=!1)=>{const ee=W&&W.children,Ee=W?W.shapeFlag:0,we=q.children,{patchFlag:xe,shapeFlag:ae}=q;if(xe>0){if(xe&128){de(ee,we,re,ve,ge,be,Pe,U,z);return}else if(xe&256){ne(ee,we,re,ve,ge,be,Pe,U,z);return}}ae&8?(Ee&16&&Et(ee,ge,be),we!==ee&&d(re,we)):Ee&16?ae&16?de(ee,we,re,ve,ge,be,Pe,U,z):Et(ee,ge,be,!0):(Ee&8&&d(re,""),ae&16&&$(we,re,ve,ge,be,Pe,U,z))},ne=(W,q,re,ve,ge,be,Pe,U,z)=>{W=W||cu,q=q||cu;const ee=W.length,Ee=q.length,we=Math.min(ee,Ee);let xe;for(xe=0;xe<we;xe++){const ae=q[xe]=z?ho(q[xe]):Bi(q[xe]);y(W[xe],ae,re,null,ge,be,Pe,U,z)}ee>Ee?Et(W,ge,be,!0,!1,we):$(q,re,ve,ge,be,Pe,U,z,we)},de=(W,q,re,ve,ge,be,Pe,U,z)=>{let ee=0;const Ee=q.length;let we=W.length-1,xe=Ee-1;for(;ee<=we&&ee<=xe;){const ae=W[ee],ce=q[ee]=z?ho(q[ee]):Bi(q[ee]);if(Qr(ae,ce))y(ae,ce,re,null,ge,be,Pe,U,z);else break;ee++}for(;ee<=we&&ee<=xe;){const ae=W[we],ce=q[xe]=z?ho(q[xe]):Bi(q[xe]);if(Qr(ae,ce))y(ae,ce,re,null,ge,be,Pe,U,z);else break;we--,xe--}if(ee>we){if(ee<=xe){const ae=xe+1,ce=ae<Ee?q[ae].el:ve;for(;ee<=xe;)y(null,q[ee]=z?ho(q[ee]):Bi(q[ee]),re,ce,ge,be,Pe,U,z),ee++}}else if(ee>xe)for(;ee<=we;)Le(W[ee],ge,be,!0),ee++;else{const ae=ee,ce=ee,Ve=new Map;for(ee=ce;ee<=xe;ee++){const _s=q[ee]=z?ho(q[ee]):Bi(q[ee]);_s.key!=null&&Ve.set(_s.key,ee)}let Ke,Pt=0;const Lt=xe-ce+1;let Ue=!1,fs=0;const ws=new Array(Lt);for(ee=0;ee<Lt;ee++)ws[ee]=0;for(ee=ae;ee<=we;ee++){const _s=W[ee];if(Pt>=Lt){Le(_s,ge,be,!0);continue}let vs;if(_s.key!=null)vs=Ve.get(_s.key);else for(Ke=ce;Ke<=xe;Ke++)if(ws[Ke-ce]===0&&Qr(_s,q[Ke])){vs=Ke;break}vs===void 0?Le(_s,ge,be,!0):(ws[vs-ce]=ee+1,vs>=fs?fs=vs:Ue=!0,y(_s,q[vs],re,null,ge,be,Pe,U,z),Pt++)}const Wn=Ue?n8(ws):cu;for(Ke=Wn.length-1,ee=Lt-1;ee>=0;ee--){const _s=ce+ee,vs=q[_s],Xn=_s+1<Ee?q[_s+1].el:ve;ws[ee]===0?y(null,vs,re,Xn,ge,be,Pe,U,z):Ue&&(Ke<0||ee!==Wn[Ke]?he(vs,re,Xn,2):Ke--)}}},he=(W,q,re,ve,ge=null)=>{const{el:be,type:Pe,transition:U,children:z,shapeFlag:ee}=W;if(ee&6){he(W.component.subTree,q,re,ve);return}if(ee&128){W.suspense.move(q,re,ve);return}if(ee&64){Pe.move(W,q,re,Fe);return}if(Pe===_t){i(be,q,re);for(let we=0;we<z.length;we++)he(z[we],q,re,ve);i(W.anchor,q,re);return}if(Pe===yl){S(W,q,re);return}if(ve!==2&&ee&1&&U)if(ve===0)U.beforeEnter(be),i(be,q,re),ks(()=>U.enter(be),ge);else{const{leave:we,delayLeave:xe,afterLeave:ae}=U,ce=()=>i(be,q,re),Ve=()=>{we(be,()=>{ce(),ae&&ae()})};xe?xe(be,ce,Ve):Ve()}else i(be,q,re)},Le=(W,q,re,ve=!1,ge=!1)=>{const{type:be,props:Pe,ref:U,children:z,dynamicChildren:ee,shapeFlag:Ee,patchFlag:we,dirs:xe,cacheIndex:ae}=W;if(we===-2&&(ge=!1),U!=null&&Nh(U,null,re,W,!0),ae!=null&&(q.renderCache[ae]=void 0),Ee&256){q.ctx.deactivate(W);return}const ce=Ee&1&&xe,Ve=!vo(W);let Ke;if(Ve&&(Ke=Pe&&Pe.onVnodeBeforeUnmount)&&Ri(Ke,q,W),Ee&6)Xe(W.component,re,ve);else{if(Ee&128){W.suspense.unmount(re,ve);return}ce&&yn(W,null,q,"beforeUnmount"),Ee&64?W.type.remove(W,q,re,Fe,ve):ee&&!ee.hasOnce&&(be!==_t||we>0&&we&64)?Et(ee,q,re,!1,!0):(be===_t&&we&384||!ge&&Ee&16)&&Et(z,q,re),ve&&qe(W)}(Ve&&(Ke=Pe&&Pe.onVnodeUnmounted)||ce)&&ks(()=>{Ke&&Ri(Ke,q,W),ce&&yn(W,null,q,"unmounted")},re)},qe=W=>{const{type:q,el:re,anchor:ve,transition:ge}=W;if(q===_t){Ge(re,ve);return}if(q===yl){E(W);return}const be=()=>{r(re),ge&&!ge.persisted&&ge.afterLeave&&ge.afterLeave()};if(W.shapeFlag&1&&ge&&!ge.persisted){const{leave:Pe,delayLeave:U}=ge,z=()=>Pe(re,be);U?U(W.el,be,z):z()}else be()},Ge=(W,q)=>{let re;for(;W!==q;)re=_(W),r(W),W=re;r(q)},Xe=(W,q,re)=>{const{bum:ve,scope:ge,job:be,subTree:Pe,um:U,m:z,a:ee}=W;Op(z),Op(ee),ve&&fu(ve),ge.stop(),be&&(be.flags|=8,Le(Pe,W,q,re)),U&&ks(U,q),ks(()=>{W.isUnmounted=!0},q),q&&q.pendingBranch&&!q.isUnmounted&&W.asyncDep&&!W.asyncResolved&&W.suspenseId===q.pendingId&&(q.deps--,q.deps===0&&q.resolve())},Et=(W,q,re,ve=!1,ge=!1,be=0)=>{for(let Pe=be;Pe<W.length;Pe++)Le(W[Pe],q,re,ve,ge)},me=W=>{if(W.shapeFlag&6)return me(W.component.subTree);if(W.shapeFlag&128)return W.suspense.next();const q=_(W.anchor||W.el),re=q&&q[sk];return re?_(re):q};let Ie=!1;const De=(W,q,re)=>{W==null?q._vnode&&Le(q._vnode,null,null,!0):y(q._vnode||null,W,q,null,null,null,re),q._vnode=W,Ie||(Ie=!0,rE(),Pp(),Ie=!1)},Fe={p:y,um:Le,m:he,r:qe,mt:te,mc:$,pc:X,pbc:P,n:me,o:t};let Ze,rt;return e&&([Ze,rt]=e(Fe)),{render:De,hydrate:Ze,createApp:J3(De,Ze)}}function e_({type:t,props:e},s){return s==="svg"&&t==="foreignObject"||s==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:s}function Qo({effect:t,job:e},s){s?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}
vendor: 4,522 bytes, line 15
15function Nk(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function jT(t,e,s=!1){const i=t.children,r=e.children;if(We(i)&&We(r))for(let n=0;n<i.length;n++){const a=i[n];let o=r[n];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[n]=ho(r[n]),o.el=a.el),!s&&o.patchFlag!==-2&&jT(a,o)),o.type===Na&&(o.el=a.el)}}function n8(t){const e=t.slice(),s=[0];let i,r,n,a,o;const l=t.length;for(i=0;i<l;i++){const c=t[i];if(c!==0){if(r=s[s.length-1],t[r]<c){e[i]=r,s.push(i);continue}for(n=0,a=s.length-1;n<a;)o=n+a>>1,t[s[o]]<c?n=o+1:a=o;c<t[s[n]]&&(n>0&&(e[i]=s[n-1]),s[n]=i)}}for(n=s.length,a=s[n-1];n-- >0;)s[n]=a,a=e[a];return s}function Rk(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Rk(e)}function Op(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const Mk=Symbol.for("v-scx"),Fk=()=>zi(Mk);function Bk(t,e){return cf(t,null,e)}function a8(t,e){return cf(t,null,{flush:"post"})}function Uk(t,e){return cf(t,null,{flush:"sync"})}function $s(t,e,s){return cf(t,e,s)}function cf(t,e,s=It){const{immediate:i,deep:r,flush:n,once:a}=s,o=Gt({},s),l=e&&i||!e&&n!=="post";let c;if(Ou){if(n==="sync"){const b=Fk();c=b.__watcherHandles||(b.__watcherHandles=[])}else if(!l){const b=()=>{};return b.stop=Sr,b.resume=Sr,b.pause=Sr,b}}const d=Ds;o.call=(b,T,y)=>Dr(b,d,T,y);let p=!1;n==="post"?o.scheduler=b=>{ks(b,d&&d.suspense)}:n!=="sync"&&(p=!0,o.scheduler=(b,T)=>{T?b():PT(b)}),o.augmentJob=b=>{e&&(b.flags|=4),p&&(b.flags|=2,d&&(b.id=d.uid,b.i=d))};const _=KM(t,e,o);return Ou&&(c?c.push(_):l&&_()),_}function o8(t,e,s){const i=this.proxy,r=Zt(t)?t.includes(".")?$k(i,t):()=>i[t]:t.bind(i,i);let n;st(e)?n=e:(n=e.handler,s=e);const a=wl(this),o=cf(r,n.bind(i),s);return a(),o}function $k(t,e){const s=e.split(".");return()=>{let i=t;for(let r=0;r<s.length&&i;r++)i=i[s[r]];return i}}function l8(t,e,s=It){const i=Ys(),r=Xs(e),n=Hi(e),a=jk(t,r),o=WA((l,c)=>{let d,p=It,_;return Uk(()=>{const b=t[r];Si(d,b)&&(d=b,c())}),{get(){return l(),s.get?s.get(d):d},set(b){const T=s.set?s.set(b):b;if(!Si(T,d)&&!(p!==It&&Si(b,p)))return;const y=i.vnode.props;y&&(e in y||r in y||n in y)&&(`onUpdate:${e}`in y||`onUpdate:${r}`in y||`onUpdate:${n}`in y)||(d=b,c()),i.emit(`update:${e}`,T),Si(b,T)&&Si(b,p)&&!Si(T,_)&&c(),p=b,_=T}}});return o[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?a||It:o,done:!1}:{done:!0}}}},o}const jk=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Xs(e)}Modifiers`]||t[`${Hi(e)}Modifiers`];function u8(t,e,...s){if(t.isUnmounted)return;const i=t.vnode.props||It;let r=s;const n=e.startsWith("update:"),a=n&&jk(i,e.slice(7));a&&(a.trim&&(r=s.map(d=>Zt(d)?d.trim():d)),a.number&&(r=s.map(wp)));let o,l=i[o=rh(e)]||i[o=rh(Xs(e))];!l&&n&&(l=i[o=rh(Hi(e))]),l&&Dr(l,t,6,r);const c=i[o+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,Dr(c,t,6,r)}}function Hk(t,e,s=!1){const i=e.emitsCache,r=i.get(t);if(r!==void 0)return r;const n=t.emits;let a={},o=!1;if(!st(t)){const l=c=>{const d=Hk(c,e,!0);d&&(o=!0,Gt(a,d))};!s&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!n&&!o?(Vt(t)&&i.set(t,null),null):(We(n)?n.forEach(l=>a[l]=null):Gt(a,n),Vt(t)&&i.set(t,a),a)}function eg(t,e){return!t||!rf(e)?!1:(e=e.slice(2).replace(/Once$/,""),Rt(t,e[0].toLowerCase()+e.slice(1))||Rt(t,Hi(e))||Rt(t,e))}function cp(t){const{type:e,vnode:s,proxy:i,withProxy:r,propsOptions:[n],slots:a,attrs:o,emit:l,render:c,renderCache:d,props:p,data:_,setupState:b,ctx:T,inheritAttrs:y}=t,x=Oh(t);let A,C;try{if(s.shapeFlag&4){const E=r||i,w=E;A=Bi(c.call(w,E,d,p,b,_,T)),C=o}else{const E=e;A=Bi(E.length>1?E(p,{attrs:o,slots:a,emit:l}):E(p,null)),C=e.props?o:d8(o)}}catch(E){uh.length=0,Rl(E,t,1),A=ze(xs)}let S=A;if(C&&y!==!1){const E=Object.keys(C),{shapeFlag:w}=S;E.length&&w&7&&(n&&E.some(vT)&&(C=h8(C,n)),S=Fn(S,C,!1,!0))}return s.dirs&&(S=Fn(S,null,!1,!0),S.dirs=S.dirs?S.dirs.concat(s.dirs):s.dirs),s.transition&&Ua(S,s.transition),A=S,Oh(x),A}function c8(t,e=!0){let s;for(let i=0;i<t.length;i++){const r=t[i];if($a(r)){if(r.type!==xs||r.children==="v-if"){if(s)return;s=r}}else return}return s}const d8=t=>{let e;for(const s in t)(s==="class"||s==="style"||rf(s))&&((e||(e={}))[s]=t[s]);return e},h8=(t,e)=>{const s={};for(const i in t)(!vT(i)||!(i.slice(9)in e))&&(s[i]=t[i]);return s};function f8(t,e,s){const{props:i,children:r,component:n}=t,{props:a,children:o,patchFlag:l}=e,c=n.emitsOptions;if(e.dirs||e.transition)return!0;
vendor: 4,189 bytes, line 15
15if(s&&l>=0){if(l&1024)return!0;if(l&16)return i?gE(i,a,c):!!a;if(l&8){const d=e.dynamicProps;for(let p=0;p<d.length;p++){const _=d[p];if(a[_]!==i[_]&&!eg(c,_))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:i===a?!1:i?a?gE(i,a,c):!0:!!a;return!1}function gE(t,e,s){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let r=0;r<i.length;r++){const n=i[r];if(e[n]!==t[n]&&!eg(s,n))return!0}return!1}function tg({vnode:t,parent:e},s){for(;e;){const i=e.subTree;if(i.suspense&&i.suspense.activeBranch===t&&(i.el=t.el),i===t)(t=e.vnode).el=s,e=e.parent;else break}}const Np=t=>t.__isSuspense;let Iv=0;const p8={name:"Suspense",__isSuspense:!0,process(t,e,s,i,r,n,a,o,l,c){if(t==null)g8(e,s,i,r,n,a,o,l,c);else{if(n&&n.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}y8(t,e,s,i,r,a,o,l,c)}},hydrate:_8,normalize:v8},m8=p8;function Mh(t,e){const s=t.props&&t.props[e];st(s)&&s()}function g8(t,e,s,i,r,n,a,o,l){const{p:c,o:{createElement:d}}=l,p=d("div"),_=t.suspense=qk(t,r,i,e,p,s,n,a,o,l);c(null,_.pendingBranch=t.ssContent,p,null,i,_,n,a),_.deps>0?(Mh(t,"onPending"),Mh(t,"onFallback"),c(null,t.ssFallback,e,s,i,null,n,a),mu(_,t.ssFallback)):_.resolve(!1,!0)}function y8(t,e,s,i,r,n,a,o,{p:l,um:c,o:{createElement:d}}){const p=e.suspense=t.suspense;p.vnode=e,e.el=t.el;const _=e.ssContent,b=e.ssFallback,{activeBranch:T,pendingBranch:y,isInFallback:x,isHydrating:A}=p;if(y)p.pendingBranch=_,Qr(_,y)?(l(y,_,p.hiddenContainer,null,r,p,n,a,o),p.deps<=0?p.resolve():x&&(A||(l(T,b,s,i,r,null,n,a,o),mu(p,b)))):(p.pendingId=Iv++,A?(p.isHydrating=!1,p.activeBranch=y):c(y,r,p),p.deps=0,p.effects.length=0,p.hiddenContainer=d("div"),x?(l(null,_,p.hiddenContainer,null,r,p,n,a,o),p.deps<=0?p.resolve():(l(T,b,s,i,r,null,n,a,o),mu(p,b))):T&&Qr(_,T)?(l(T,_,s,i,r,p,n,a,o),p.resolve(!0)):(l(null,_,p.hiddenContainer,null,r,p,n,a,o),p.deps<=0&&p.resolve()));else if(T&&Qr(_,T))l(T,_,s,i,r,p,n,a,o),mu(p,_);else if(Mh(e,"onPending"),p.pendingBranch=_,_.shapeFlag&512?p.pendingId=_.component.suspenseId:p.pendingId=Iv++,l(null,_,p.hiddenContainer,null,r,p,n,a,o),p.deps<=0)p.resolve();else{const{timeout:C,pendingId:S}=p;C>0?setTimeout(()=>{p.pendingId===S&&p.fallback(b)},C):C===0&&p.fallback(b)}}function qk(t,e,s,i,r,n,a,o,l,c,d=!1){const{p,m:_,um:b,n:T,o:{parentNode:y,remove:x}}=c;let A;const C=b8(t);C&&e&&e.pendingBranch&&(A=e.pendingId,e.deps++);const S=t.props?Ap(t.props.timeout):void 0,E=n,w={vnode:t,parent:e,parentComponent:s,namespace:a,container:i,hiddenContainer:r,deps:0,pendingId:Iv++,timeout:typeof S=="number"?S:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(O=!1,R=!1){const{vnode:$,activeBranch:k,pendingBranch:P,pendingId:j,effects:F,parentComponent:H,container:te}=w;let oe=!1;w.isHydrating?w.isHydrating=!1:O||(oe=k&&P.transition&&P.transition.mode==="out-in",oe&&(k.transition.afterLeave=()=>{j===w.pendingId&&(_(P,te,n===E?T(k):n,0),Ph(F))}),k&&(y(k.el)===te&&(n=T(k)),b(k,H,w,!0)),oe||_(P,te,n,0)),mu(w,P),w.pendingBranch=null,w.isInFallback=!1;let se=w.parent,K=!1;for(;se;){if(se.pendingBranch){se.effects.push(...F),K=!0;break}se=se.parent}!K&&!oe&&Ph(F),w.effects=[],C&&e&&e.pendingBranch&&A===e.pendingId&&(e.deps--,e.deps===0&&!R&&e.resolve()),Mh($,"onResolve")},fallback(O){if(!w.pendingBranch)return;const{vnode:R,activeBranch:$,parentComponent:k,container:P,namespace:j}=w;Mh(R,"onFallback");const F=T($),H=()=>{w.isInFallback&&(p(null,O,P,F,k,null,j,o,l),mu(w,O))},te=O.transition&&O.transition.mode==="out-in";te&&($.transition.afterLeave=H),w.isInFallback=!0,b($,k,null,!0),te||H()},move(O,R,$){w.activeBranch&&_(w.activeBranch,O,R,$),w.container=O},next(){return w.activeBranch&&T(w.activeBranch)},registerDep(O,R,$){const k=!!w.pendingBranch;k&&w.deps++;const P=O.vnode.el;O.asyncDep.catch(j=>{Rl(j,O,0)}).then(j=>{if(O.isUnmounted||w.isUnmounted||w.pendingId!==O.suspenseId)return;O.asyncResolved=!0;const{vnode:F}=O;Nv(O,j,!1),P&&(F.el=P);const H=!P&&O.subTree.el;R(O,F,y(P||O.subTree.el),P?null:T(O.subTree),w,a,$),H&&x(H),tg(O,F.el),k&&--w.deps===0&&w.resolve()})},unmount(O,R){w.isUnmounted=!0,w.activeBranch&&b(w.activeBranch,s,O,R),w.pe
vendor: 8,323 bytes, lines 15-18
15ndingBranch&&b(w.pendingBranch,s,O,R)}};return w}function _8(t,e,s,i,r,n,a,o,l){const c=e.suspense=qk(e,i,s,t.parentNode,document.createElement("div"),null,r,n,a,o,!0),d=l(t,c.pendingBranch=e.ssContent,s,c,n,a);return c.deps===0&&c.resolve(!1,!0),d}function v8(t){const{shapeFlag:e,children:s}=t,i=e&32;t.ssContent=yE(i?s.default:s),t.ssFallback=i?yE(s.fallback):ze(xs)}function yE(t){let e;if(st(t)){const s=Cl&&t._c;s&&(t._d=!1,Ce()),t=t(),s&&(t._d=!0,e=ii,zk())}return We(t)&&(t=c8(t)),t=Bi(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(s=>s!==t)),t}function Vk(t,e){e&&e.pendingBranch?We(t)?e.effects.push(...t):e.effects.push(t):Ph(t)}function mu(t,e){t.activeBranch=e;const{vnode:s,parentComponent:i}=t;let r=e.el;for(;!r&&e.component;)e=e.component.subTree,r=e.el;s.el=r,i&&i.subTree===s&&(i.vnode.el=r,tg(i,r))}function b8(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const _t=Symbol.for("v-fgt"),Na=Symbol.for("v-txt"),xs=Symbol.for("v-cmt"),yl=Symbol.for("v-stc"),uh=[];let ii=null;function Ce(t=!1){uh.push(ii=t?null:[])}function zk(){uh.pop(),ii=uh[uh.length-1]||null}let Cl=1;function Pv(t,e=!1){Cl+=t,t<0&&ii&&e&&(ii.hasOnce=!0)}function Gk(t){return t.dynamicChildren=Cl>0?ii||cu:null,zk(),Cl>0&&ii&&ii.push(t),t}function ke(t,e,s,i,r,n){return Gk(ie(t,e,s,i,r,n,!0))}function on(t,e,s,i,r){return Gk(ze(t,e,s,i,r,!0))}function $a(t){return t?t.__v_isVNode===!0:!1}function Qr(t,e){return t.type===e.type&&t.key===e.key}function T8(t){}const Wk=({key:t})=>t??null,dp=({ref:t,ref_key:e,ref_for:s})=>(typeof t=="number"&&(t=""+t),t!=null?Zt(t)||ls(t)||st(t)?{i:Ps,r:t,k:e,f:!!s}:t:null);function ie(t,e=null,s=null,i=0,r=null,n=t===_t?0:1,a=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Wk(e),ref:e&&dp(e),scopeId:Ym,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ps};return o?(HT(l,s),n&128&&t.normalize(l)):s&&(l.shapeFlag|=Zt(s)?8:16),Cl>0&&!a&&ii&&(l.patchFlag>0||n&6)&&l.patchFlag!==32&&ii.push(l),l}const ze=S8;function S8(t,e=null,s=null,i=0,r=null,n=!1){if((!t||t===yk)&&(t=xs),$a(t)){const o=Fn(t,e,!0);return s&&HT(o,s),Cl>0&&!n&&ii&&(o.shapeFlag&6?ii[ii.indexOf(t)]=o:ii.push(o)),o.patchFlag=-2,o}if(D8(t)&&(t=t.__vccOpts),e){e=Xk(e);let{class:o,style:l}=e;o&&!Zt(o)&&(e.class=ye(o)),Vt(l)&&(Xm(l)&&!We(l)&&(l=Gt({},l)),e.style=af(l))}const a=Zt(t)?1:Np(t)?128:ik(t)?64:Vt(t)?4:st(t)?2:0;return ie(t,e,s,i,r,a,n,!0)}function Xk(t){return t?Xm(t)||xk(t)?Gt({},t):t:null}function Fn(t,e,s=!1,i=!1){const{props:r,ref:n,patchFlag:a,children:o,transition:l}=t,c=e?df(r||{},e):r,d={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&Wk(c),ref:e&&e.ref?s&&n?We(n)?n.concat(dp(e)):[n,dp(e)]:dp(e):n,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==_t?a===-1?16:a|16:a,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Fn(t.ssContent),ssFallback:t.ssFallback&&Fn(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&i&&Ua(d,l.clone(d)),d}function ys(t=" ",e=0){return ze(Na,null,t,e)}function Kk(t,e){const s=ze(yl,null,t);return s.staticCount=e,s}function vt(t="",e=!1){return e?(Ce(),on(xs,null,t)):ze(xs,null,t)}function Bi(t){return t==null||typeof t=="boolean"?ze(xs):We(t)?ze(_t,null,t.slice()):$a(t)?ho(t):ze(Na,null,String(t))}function ho(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Fn(t)}function HT(t,e){let s=0;const{shapeFlag:i}=t;if(e==null)e=null;else if(We(e))s=16;else if(typeof e=="object")if(i&65){const r=e.default;r&&(r._c&&(r._d=!1),HT(t,r()),r._c&&(r._d=!0));return}else{s=32;const r=e._;!r&&!xk(e)?e._ctx=Ps:r===3&&Ps&&(Ps.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else st(e)?(e={default:e,_ctx:Ps},s=32):(e=String(e),i&64?(s=16,e=[ys(e)]):s=8);t.children=e,t.shapeFlag|=s}function df(...t){const e={};for(let s=0;s<t.length;s++){const i=t[s];for(const r in i)if(r==="class")e.class!==i.class&&(e.class=ye([e.class,i.class]));else if(r==="style")e.style=af([e.style,i.style]);else if(rf(r)){const n=e[r],a=i[r];a&&n!==a&&!(We(n)&&n.includes(a))&&(e[r]=n?[].concat(n,a):a)}else r!==""&&(e[r]=i[r])}return e}function Ri(t,e,s,i=null){Dr(t,e,7,[s,i])}const E8=bk();let x8=0;function Yk(t,e,s){const i=t.type,r=(e?e.appContext:t.appContext)||E8,n={uid:x8++,vnode:t,type:i,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ET(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:wk(i,r),emitsOptions:Hk(i,r),emit:null,emitted:null,propsDefaults:It,inheritAttrs:i.inheritAttrs,ctx:It,data:It,props:It,attrs:It,slots:It,refs:It,setupState:It,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return n.ctx={_:n},n.root=e?e.root:n,n.emit=u8.bind(null,n),t.ce&&t.ce(n),n}let Ds=null;const Ys=()=>Ds||Ps;let Rp,Lv;{const t=jm(),e=(s,i)=>{let r;return(r=t[s])||(r=t[s]=[]),r.push(i),n=>{r.length>1?r.forEach(a=>a(n)):r[0](n)}};Rp=e("__VUE_INSTANCE_SETTERS__",s=>Ds=s),Lv=e("__VUE_SSR_SETTERS__",s=>Ou=s)}const wl=t=>{const e=Ds;return Rp(t),t.scope.on(),()=>{t.scope.off(),Rp(e)}},Ov=()=>{Ds&&Ds.scope.off(),Rp(null)};function Qk(t){return t.vnode.shapeFlag&4}let Ou=!1;function Jk(t,e=!1,s=!1){e&&Lv(e);const{props:i,children:r}=t.vnode,n=Qk(t);Z3(t,i,n,e),i8(t,r,s);const a=n?C8(t,e):void 0;return e&&Lv(!1),a}function C8(t,e){const s=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,wv);const{setup:i}=s;if(i){ko();const r=t.setupContext=i.length>1?eD(t):null,n=wl(t),a=fc(i,t,0,[t.props,r]),o=TT(a);if(Do(),n(),(o||t.sp)&&!vo(t)&&NT(t),o){if(a.then(Ov,Ov),e)return a.then(l=>{Nv(t,l,e)}).catch(l=>{Rl(l,t,0)});t.asyncDep=a}else Nv(t,a,e)}else Zk(t,e)}function Nv(t,e,s){st(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Vt(e)&&(t.setupState=IT(e)),Zk(t,s)}let Mp,Rv;function w8(t){Mp=t,Rv=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,L3))}}const A8=()=>!Mp;function Zk(t,e,s){const i=t.type;if(!t.render){if(!e&&Mp&&!i.render){const r=i.template||UT(t).template;if(r){const{isCustomElement:n,compilerOptions:a}=t.appContext.config,{delimiters:o,compilerOptions:l}=i,c=Gt(Gt({isCustomElement:n,delimiters:o},a),l);i.render=Mp(r,c)}}t.render=i.render||Sr,Rv&&Rv(t)}{const r=wl(t);ko();try{G3(t)}finally{Do(),r()}}}const k8={get(t,e){return ti(t,"get",""),t[e]}};function eD(t){const e=s=>{t.exposed=s||{}};return{attrs:new Proxy(t.attrs,k8),slots:t.slots,emit:t.emit,expose:e}}function hf(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(IT(Km(t.exposed)),{get(e,s){if(s in e)return e[s];if(s in lh)return lh[s](t)},has(e,s){return s in e||s in lh}})):t.proxy}function Mv(t,e=!0){return st(t)?t.displayName||t.name:t.name||e&&t.__name}function D8(t){return st(t)&&"__vccOpts"in t}const mt=(t,e)=>zM(t,e,Ou);function Ms(t,e,s){const i=arguments.length;return i===2?Vt(e)&&!We(e)?$a(e)?ze(t,null,[e]):ze(t,e):ze(t,null,e):(i>3?s=Array.prototype.slice.call(arguments,2):i===3&&$a(s)&&(s=[s]),ze(t,e,s))}function I8(){}function P8(t,e,s,i){const r=s[i];if(r&&tD(r,t))return r;const n=e();return n.memo=t.slice(),n.cacheIndex=i,s[i]=n}function tD(t,e){const s=t.memo;if(s.length!=e.length)return!1;for(let i=0;i<s.length;i++)if(Si(s[i],e[i]))return!1;return Cl>0&&ii&&ii.push(t),!0}const sD="3.5.13",L8=Sr,O8=e3,N8=Zl,R8=tk,M8={createComponentInstance:Yk,setupComponent:Jk,renderComponentRoot:cp,setCurrentRenderingInstance:Oh,isVNode:$a,normalizeVNode:Bi,getComponentPublicInstance:hf,ensureValidVNode:BT,pushWarningContext:YM,popWarningContext:QM},F8=M8,B8=null,U8=null,$8=null;/**
16* @vue/runtime-dom v3.5.13
17* (c) 2018-present Yuxi (Evan) You and Vue contributors
18* @license MIT
19**/let Fv;const _E=typeof window<"u"&&window.trustedTypes;if(_E)try{Fv=_E.createPolicy("vue",{createHTML:t=>t})}catch{}const iD=Fv?t=>Fv.createHTML(t):t=>t,j8="http://www.w3.org/2000/svg",H8="http://www.w3.org/1998/Math/MathML",Ca=typeof document<"u"?document:null,vE=Ca&&Ca.createElement("template"),q8={insert:(t,e,s)=>{e.insertBefore(t,s||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,s,i)=>{const r=e==="svg"?Ca.createElementNS(j8,t):e==="mathml"?Ca.createElementNS(H8,t):s?Ca.createElement(t,{is:s}):Ca.createElement(t);return t==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:t=>Ca.createTextNode(t),createComment:t=>Ca.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ca.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,s,i,r,n){const a=s?s.previousSibling:e.lastChild;if(r&&(r===n||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),s),!(r===n||!(r=r.nextSibling)););else{vE.innerHTML=iD(i==="svg"?`<svg>${t}</svg>`:i==="mathml"?`<math>${t}</math>`:t);const o=vE.content;if(i==="svg"||i==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}e.insertBefore(o,s)}return[a?a.nextSibling:e.firstChild,s?s.previousSibling:e.lastChild]}},Ya="transition",wd="animation",Nu=Symbol("_vtc"),rD={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},nD=Gt({},OT,rD),V8=t=>(t.displayName="Transition",t.props=nD,t),z8=V8((t,{slots:e})=>Ms(lk,aD(t),e)),Jo=(t,e=[])=>{We(t)?t.forEach(s=>s(...e)):t&&t(...e)},bE=t=>t?We(t)?t.some(e=>e.length>1):t.length>1:!1;function aD(t){const e={};for(const F in t)F in rD||(e[F]=t[F]);if(t.css===!1)return e;const{name:s="v",type:i,duration:r,enterFromClass:n=`${s}-enter-from`,enterActiveClass:a=`${s}-enter-active`,enterToClass:o=`${s}-enter-to`,appearFromClass:l=n,appearActiveClass:c=a,appearToClass:d=o,leaveFromClass:p=`${s}-leave-from`,leaveActiveClass:_=`${s}-leave-active`,leaveToClass:b=`${s}-leave-to`}=t,T=G8(r),y=T&&T[0],x=T&&T[1],{onBeforeEnter:A,onEnter:C,onEnterCancelled:S,onLeave:E,onLeaveCancelled:w,onBeforeAppear:O=A,onAppear:R=C,onAppearCancelled:$=S}=e,k=(F,H,te,oe)=>{F._enterCancelled=oe,ao(F,H?d:o),ao(F,H?c:a),te&&te()},P=(F,H)=>{F._isLeaving=!1,ao(F,p),ao(F,b),ao(F,_),H&&H()},j=F=>(H,te)=>{const oe=F?R:C,se=()=>k(H,F,te);Jo(oe,[H,se]),TE(()=>{ao(H,F?l:n),mn(H,F?d:o),bE(oe)||SE(H,i,y,se)})};return Gt(e,{onBeforeEnter(F){Jo(A,[F]),mn(F,n),mn(F,a)},onBeforeAppear(F){Jo(O,[F]),mn(F,l),mn(F,c)},onEnter:j(!1),onAppear:j(!0),onLeave(F,H){F._isLeaving=!0;const te=()=>P(F,H);mn(F,p),F._enterCancelled?(mn(F,_),Bv()):(Bv(),mn(F,_)),TE(()=>{F._isLeaving&&(ao(F,p),mn(F,b),bE(E)||SE(F,i,x,te))}),Jo(E,[F,te])},onEnterCancelled(F){k(F,!1,void 0,!0),Jo(S,[F])},onAppearCancelled(F){k(F,!0,void 0,!0),Jo($,[F])},onLeaveCancelled(F){P(F),Jo(w,[F])}})}function G8(t){if(t==null)return null;if(Vt(t))return[t_(t.enter),t_(t.leave)];{const e=t_(t);return[e,e]}}function t_(t){return Ap(t)}function mn(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.add(s)),(t[Nu]||(t[Nu]=new Set)).add(e)}function ao(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const s=t[Nu];s&&(s.delete(e),s.size||(t[Nu]=void 0))}function TE(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let W8=0;function SE(t,e,s,i){const r=t._endId=++W8,n=()=>{r===t._endId&&i()};if(s!=null)return setTimeout(n,s);const{type:a,timeout:o,propCount:l}=oD(t,e);if(!a)return i();const c=a+"end";let d=0;const p=()=>{t.removeEventListener(c,_),n()},_=b=>{b.target===t&&++d>=l&&p()};setTimeout(()=>{d<l&&p()},o+1),t.addEventListener(c,_)}function oD(t,e){const s=window.getComputedStyle(t),i=T=>(s[T]||"").split(", "),r=i(`${Ya}Delay`),n=i(`${Ya}Duration`),a=EE(r,n),o=i(`${wd}Delay`),l=i(`${wd}Duration`),c=EE(o,l);let d=null,p=0,_=0;e===Ya?a>0&&(d=Ya,p=a,_=n.length):e===wd?c>0&&(d=wd,p=c,_=l.length):(p=Math.max(a,c),d=p>0?a>c?Ya:wd:null,_=d?d===Ya?n.length:l.length:0);const b=d===Ya&&/\b(transform|all)(,|$)/.test(i(`${Ya}Property`).toString());return{type:d,timeout:p,propCount:_,hasTransform:b}}function EE(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((s,i)=>xE(s)+xE(t[i])))}function xE(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Bv(){return document.body.offsetHeight}function X8(t,e,s){const i=t[Nu];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?t.removeAttribute("class"):s?t.setAttribute("class",e):t.className=e}const Fp=Symbol("_vod"),lD=Symbol("_vsh"),uD={beforeMount(t,{value:e},{transition:s}){t[Fp]=t.style.display==="none"?"":t.style.display,s&&e?s.beforeEnter(t):Ad(t,e)},mounted(t,{value:e},{transition:s}){s&&e&&s.enter(t)},updated(t,{value:e,oldValue:s},{transition:i}){!e!=!s&&(i?e?(i.beforeEnter(t),Ad(t,!0),i.enter(t)):i.leave(t,()=>{Ad(t,!1)}):Ad(t,e))},beforeUnmount(t,{value:e}){Ad(t,e)}};function Ad(t,e){t.style.display=e?t[Fp]:"none",t[lD]=!e}function K8(){uD.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const cD=Symbol("");function Y8(t){const e=Ys();if(!e)return;const s=e.ut=(r=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}
19"]`)).forEach(n=>Bp(n,r))},i=()=>{const r=t(e.proxy);e.ce?Bp(e.ce,r):Uv(e.subTree,r),s(r)};Zm(()=>{Ph(i)}),mr(()=>{$s(i,Sr,{flush:"post"});const r=new MutationObserver(i);r.observe(e.subTree.el.parentNode,{childList:!0}),uf(()=>r.disconnect())})}function Uv(t,e){if(t.shapeFlag&128){const s=t.suspense;t=s.activeBranch,s.pendingBranch&&!s.isHydrating&&s.effects.push(()=>{Uv(s.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)Bp(t.el,e);else if(t.type===_t)t.children.forEach(s=>Uv(s,e));else if(t.type===yl){let{el:s,anchor:i}=t;for(;s&&(Bp(s,e),s!==i);)s=s.nextSibling}}function Bp(t,e){if(t.nodeType===1){const s=t.style;let i="";for(const r in e)s.setProperty(`--${r}`,e[r]),i+=`--${r}: ${e[r]};`;s[cD]=i}}const Q8=/(^|;)\s*display\s*:/;function J8(t,e,s){const i=t.style,r=Zt(s);let n=!1;if(s&&!r){if(e)if(Zt(e))for(const a of e.split(";")){const o=a.slice(0,a.indexOf(":")).trim();s[o]==null&&hp(i,o,"")}else for(const a in e)s[a]==null&&hp(i,a,"");for(const a in s)a==="display"&&(n=!0),hp(i,a,s[a])}else if(r){if(e!==s){const a=i[cD];a&&(s+=";"+a),i.cssText=s,n=Q8.test(s)}}else e&&t.removeAttribute("style");Fp in t&&(t[Fp]=n?i.display:"",t[lD]&&(i.display="none"))}const CE=/\s*!important$/;function hp(t,e,s){if(We(s))s.forEach(i=>hp(t,e,i));else if(s==null&&(s=""),e.startsWith("--"))t.setProperty(e,s);else{const i=Z8(t,e);CE.test(s)?t.setProperty(Hi(i),s.replace(CE,""),"important"):t[i]=s}}const wE=["Webkit","Moz","ms"],s_={};function Z8(t,e){const s=s_[e];if(s)return s;let i=Xs(e);if(i!=="filter"&&i in t)return s_[e]=i;i=nf(i);for(let r=0;r<wE.length;r++){const n=wE[r]+i;if(n in t)return s_[e]=n}return e}const AE="http://www.w3.org/1999/xlink";function kE(t,e,s,i,r,n=hM(e)){i&&e.startsWith("xlink:")?s==null?t.removeAttributeNS(AE,e.slice(6,e.length)):t.setAttributeNS(AE,e,s):s==null||n&&!AA(s)?t.removeAttribute(e):t.setAttribute(e,n?"":nn(s)?String(s):s)}function DE(t,e,s,i,r){if(e==="innerHTML"||e==="textContent"){s!=null&&(t[e]=e==="innerHTML"?iD(s):s);return}const n=t.tagName;if(e==="value"&&n!=="PROGRESS"&&!n.includes("-")){const o=n==="OPTION"?t.getAttribute("value")||"":t.value,l=s==null?t.type==="checkbox"?"on":"":String(s);(o!==l||!("_value"in t))&&(t.value=l),s==null&&t.removeAttribute(e),t._value=s;return}let a=!1;if(s===""||s==null){const o=typeof t[e];o==="boolean"?s=AA(s):s==null&&o==="string"?(s="",a=!0):o==="number"&&(s=0,a=!0)}try{t[e]=s}catch{}a&&t.removeAttribute(r||e)}function ka(t,e,s,i){t.addEventListener(e,s,i)}function e5(t,e,s,i){t.removeEventListener(e,s,i)}const IE=Symbol("_vei");function t5(t,e,s,i,r=null){const n=t[IE]||(t[IE]={}),a=n[e];if(i&&a)a.value=i;else{const[o,l]=s5(e);if(i){const c=n[e]=n5(i,r);ka(t,o,c,l)}else a&&(e5(t,o,a,l),n[e]=void 0)}}const PE=/(?:Once|Passive|Capture)$/;function s5(t){let e;if(PE.test(t)){e={};let i;for(;i=t.match(PE);)t=t.slice(0,t.length-i[0].length),e[i[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Hi(t.slice(2)),e]}let i_=0;const i5=Promise.resolve(),r5=()=>i_||(i5.then(()=>i_=0),i_=Date.now());function n5(t,e){const s=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=s.attached)return;Dr(a5(i,s.value),e,5,[i])};return s.value=t,s.attached=r5(),s}function a5(t,e){if(We(e)){const s=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{s.call(t),t._stopped=!0},e.map(i=>r=>!r._stopped&&i&&i(r))}else return e}const LE=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,o5=(t,e,s,i,r,n)=>{const a=r==="svg";e==="class"?X8(t,i,a):e==="style"?J8(t,s,i):rf(e)?vT(e)||t5(t,e,s,i,n):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):l5(t,e,i,a))?(DE(t,e,i),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&kE(t,e,i,a,n,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!Zt(i))?DE(t,Xs(e),i,n,e):(e==="true-value"?t._trueValue=i:e==="false-value"&&(t._falseValue=i),kE(t,e,i,a))};function l5(t,e,s,i){if(i)return!!(e==="innerHTML"||e==="textContent"||e in t&&LE(e)&&st(s));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const r=t.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return LE(e)&&Zt(s)?!1:e in t}const OE={};/*! #__NO_SIDE_EFFECTS__ */function dD(t,e,s){const i=Cs(t,e);fl(i)&&Gt(i,e);
19class r extends sg{constructor(a){super(i,a,s)}}return r.def=i,r}/*! #__NO_SIDE_EFFECTS__ */const u5=(t,e)=>dD(t,e,ED),c5=typeof HTMLElement<"u"?HTMLElement:class{};class sg extends c5{constructor(e,s={},i=jp){super(),this._def=e,this._props=s,this._createApp=i,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&i!==jp?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof sg){this._parent=e;break}this._instance||(this._resolved?(this._setParent(),this._update()):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._instance.provides=e._instance.provides)}disconnectedCallback(){this._connected=!1,an(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);this._ob=new MutationObserver(i=>{for(const r of i)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(i,r=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:a}=i;let o;if(n&&!We(n))for(const l in n){const c=n[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=Ap(this._props[l])),(o||(o=Object.create(null)))[Xs(l)]=!0)}this._numberProps=o,r&&this._resolveProps(i),this.shadowRoot&&this._applyStyles(a),this._mount(i)},s=this._def.__asyncLoader;s?this._pendingResolve=s().then(i=>e(this._def=i,!0)):e(this._def)}_mount(e){this._app=this._createApp(e),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const s=this._instance&&this._instance.exposed;if(s)for(const i in s)Rt(this,i)||Object.defineProperty(this,i,{get:()=>gt(s[i])})}_resolveProps(e){const{props:s}=e,i=We(s)?s:Object.keys(s||{});for(const r of Object.keys(this))r[0]!=="_"&&i.includes(r)&&this._setProp(r,this[r]);for(const r of i.map(Xs))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(n){this._setProp(r,n,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const s=this.hasAttribute(e);let i=s?this.getAttribute(e):OE;const r=Xs(e);s&&this._numberProps&&this._numberProps[r]&&(i=Ap(i)),this._setProp(r,i,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,s,i=!0,r=!1){if(s!==this._props[e]&&(s===OE?delete this._props[e]:(this._props[e]=s,e==="key"&&this._app&&(this._app._ceVNode.key=s)),r&&this._instance&&this._update(),i)){const n=this._ob;n&&n.disconnect(),s===!0?this.setAttribute(Hi(e),""):typeof s=="string"||typeof s=="number"?this.setAttribute(Hi(e),s+""):s||this.removeAttribute(Hi(e)),n&&n.observe(this,{attributes:!0})}}
vendor: 5,539 bytes, line 19
19_update(){SD(this._createVNode(),this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const s=ze(this._def,Gt(e,this._props));return this._instance||(s.ce=i=>{this._instance=i,i.ce=this,i.isCE=!0;const r=(n,a)=>{this.dispatchEvent(new CustomEvent(n,fl(a[0])?Gt({detail:a},a[0]):{detail:a}))};i.emit=(n,...a)=>{r(n,a),Hi(n)!==n&&r(Hi(n),a)},this._setParent()}),s}_applyStyles(e,s){if(!e)return;if(s){if(s===this._def||this._styleChildren.has(s))return;this._styleChildren.add(s)}const i=this._nonce;for(let r=e.length-1;r>=0;r--){const n=document.createElement("style");i&&n.setAttribute("nonce",i),n.textContent=e[r],this.shadowRoot.prepend(n)}}_parseSlots(){const e=this._slots={};let s;for(;s=this.firstChild;){const i=s.nodeType===1&&s.getAttribute("slot")||"default";(e[i]||(e[i]=[])).push(s),this.removeChild(s)}}_renderSlots(){const e=(this._teleportTarget||this).querySelectorAll("slot"),s=this._instance.type.__scopeId;for(let i=0;i<e.length;i++){const r=e[i],n=r.getAttribute("name")||"default",a=this._slots[n],o=r.parentNode;if(a)for(const l of a){if(s&&l.nodeType===1){const c=s+"-s",d=document.createTreeWalker(l,1);l.setAttribute(c,"");let p;for(;p=d.nextNode();)p.setAttribute(c,"")}o.insertBefore(l,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_injectChildStyle(e){this._applyStyles(e.styles,e)}_removeChildStyle(e){}}function hD(t){const e=Ys(),s=e&&e.ce;return s||null}function d5(){const t=hD();return t&&t.shadowRoot}function h5(t="$style"){{const e=Ys();if(!e)return It;const s=e.type.__cssModules;if(!s)return It;const i=s[t];return i||It}}const fD=new WeakMap,pD=new WeakMap,Up=Symbol("_moveCb"),NE=Symbol("_enterCb"),f5=t=>(delete t.props.mode,t),p5=f5({name:"TransitionGroup",props:Gt({},nD,{tag:String,moveClass:String}),setup(t,{slots:e}){const s=Ys(),i=LT();let r,n;return pc(()=>{if(!r.length)return;const a=t.moveClass||`${t.name||"v"}-move`;if(!v5(r[0].el,s.vnode.el,a))return;r.forEach(g5),r.forEach(y5);const o=r.filter(_5);Bv(),o.forEach(l=>{const c=l.el,d=c.style;mn(c,a),d.transform=d.webkitTransform=d.transitionDuration="";const p=c[Up]=_=>{_&&_.target!==c||(!_||/transform$/.test(_.propertyName))&&(c.removeEventListener("transitionend",p),c[Up]=null,ao(c,a))};c.addEventListener("transitionend",p)})}),()=>{const a=Dt(t),o=aD(a);let l=a.tag||_t;if(r=[],n)for(let c=0;c<n.length;c++){const d=n[c];d.el&&d.el instanceof Element&&(r.push(d),Ua(d,Lu(d,o,i,s)),fD.set(d,d.el.getBoundingClientRect()))}n=e.default?Qm(e.default()):[];for(let c=0;c<n.length;c++){const d=n[c];d.key!=null&&Ua(d,Lu(d,o,i,s))}return ze(l,null,n)}}}),m5=p5;function g5(t){const e=t.el;e[Up]&&e[Up](),e[NE]&&e[NE]()}function y5(t){pD.set(t,t.el.getBoundingClientRect())}function _5(t){const e=fD.get(t),s=pD.get(t),i=e.left-s.left,r=e.top-s.top;if(i||r){const n=t.el.style;return n.transform=n.webkitTransform=`translate(${i}px,${r}px)`,n.transitionDuration="0s",t}}function v5(t,e,s){const i=t.cloneNode(),r=t[Nu];r&&r.forEach(o=>{o.split(/\s+/).forEach(l=>l&&i.classList.remove(l))}),s.split(/\s+/).forEach(o=>o&&i.classList.add(o)),i.style.display="none";const n=e.nodeType===1?e:e.parentNode;n.appendChild(i);const{hasTransform:a}=oD(i);return n.removeChild(i),a}const So=t=>{const e=t.props["onUpdate:modelValue"]||!1;return We(e)?s=>fu(e,s):e};function b5(t){t.target.composing=!0}function RE(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Er=Symbol("_assign"),Fh={created(t,{modifiers:{lazy:e,trim:s,number:i}},r){t[Er]=So(r);const n=i||r.props&&r.props.type==="number";ka(t,e?"change":"input",a=>{if(a.target.composing)return;let o=t.value;s&&(o=o.trim()),n&&(o=wp(o)),t[Er](o)}),s&&ka(t,"change",()=>{t.value=t.value.trim()}),e||(ka(t,"compositionstart",b5),ka(t,"compositionend",RE),ka(t,"change",RE))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:s,modifiers:{lazy:i,trim:r,number:n}},a){if(t[Er]=So(a),t.composing)return;const o=(n||t.type==="number")&&!/^0\d/.test(t.value)?wp(t.value):t.value,l=e??"";o!==l&&(document.activeElement===t&&t.type!=="range"&&(i&&e===s||r&&t.value.trim()===l)||(t.value=l))}},qT={deep:!0,created(t,e,s){t[Er]=So(s),ka(t,"change",()=>{const i=t._modelValue,r=Ru(t),n=t.checked,a=t[Er];if(We(i)){const o=Hm(i,r),l=o!==-1;if(n&&!l)a(i.concat(r));else if(!n&&l){const c=[...i];c.splice(o,1),a(c)}}else if(Nl(i)){const o=new Set(i);n?o.add(r):o.delete(r),a(o)}else a(mD(t,n))})},mounted:ME,beforeUpdate(t,e,s){t[Er]=So(s),ME(t,e,s)}};function ME(t,{value:e,oldValue:s},i){t._modelValue=e;let r;if(We(e))r=Hm(e,i.props.value)>-1;else if(Nl(e))r=e.has(i.props.value);else{if(e===s)return;r=bo(e,mD(t,!0))}t.checked!==r&&(t.checked=r)}const VT={created(t,{value:e},s){t.checked=bo(e,s.props.value),t[Er]=So(s),ka(t,"change",()=>{t[Er](Ru(t))})},beforeUpdate(t,{value:e,oldValue:s},i){t[Er]=So(i),e!==s&&(t.checked=bo(e,i.props.value))}},$p={deep:!0,created(t,{value:e,modifiers:{number:s}},i){const r=Nl(e);ka(t,"change",()=>{const n=Array.prototype.filter.call(t.options,a=>a.selected).map(a=>s?wp(Ru(a)):Ru(a));t[Er](t.multiple?r?new Set(n):n:n[0]),t._assigning=!0,an(()=>{t._assigning=!1})}),t[Er]=So(i)},mounted(t,{value:e}){FE(t,e)},beforeUpdate(t,e,s){t[Er]=So(s)},updated(t,{value:e}){t._assigning||FE(t,e)}};function FE(t,e){const s=t.multiple,i=We(e);if(!(s&&!i&&!Nl(e))){for(let r=0,n=t.options.length;r<n;r++){const a=t.options[r],o=Ru(a);if(s)if(i){const l=typeof o;l==="string"||l==="number"?a.selected=e.some(c=>
vendor: 3,032 bytes, lines 19-22
19String(c)===String(o)):a.selected=Hm(e,o)>-1}else a.selected=e.has(o);else if(bo(Ru(a),e)){t.selectedIndex!==r&&(t.selectedIndex=r);return}}!s&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function Ru(t){return"_value"in t?t._value:t.value}function mD(t,e){const s=e?"_trueValue":"_falseValue";return s in t?t[s]:e}const gD={created(t,e,s){jf(t,e,s,null,"created")},mounted(t,e,s){jf(t,e,s,null,"mounted")},beforeUpdate(t,e,s,i){jf(t,e,s,i,"beforeUpdate")},updated(t,e,s,i){jf(t,e,s,i,"updated")}};function yD(t,e){switch(t){case"SELECT":return $p;case"TEXTAREA":return Fh;default:switch(e){case"checkbox":return qT;case"radio":return VT;default:return Fh}}}function jf(t,e,s,i,r){const a=yD(t.tagName,s.props&&s.props.type)[r];a&&a(t,e,s,i)}function T5(){Fh.getSSRProps=({value:t})=>({value:t}),VT.getSSRProps=({value:t},e)=>{if(e.props&&bo(e.props.value,t))return{checked:!0}},qT.getSSRProps=({value:t},e)=>{if(We(t)){if(e.props&&Hm(t,e.props.value)>-1)return{checked:!0}}else if(Nl(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},gD.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const s=yD(e.type.toUpperCase(),e.props&&e.props.type);if(s.getSSRProps)return s.getSSRProps(t,e)}}const S5=["ctrl","shift","alt","meta"],E5={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>S5.some(s=>t[`${s}Key`]&&!e.includes(s))},Sn=(t,e)=>{const s=t._withMods||(t._withMods={}),i=e.join(".");return s[i]||(s[i]=(r,...n)=>{for(let a=0;a<e.length;a++){const o=E5[e[a]];if(o&&o(r,e))return}return t(r,...n)})},x5={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},_D=(t,e)=>{const s=t._withKeys||(t._withKeys={}),i=e.join(".");return s[i]||(s[i]=r=>{if(!("key"in r))return;const n=Hi(r.key);if(e.some(a=>a===n||x5[a]===n))return t(r)})},vD=Gt({patchProp:o5},q8);let ch,BE=!1;function bD(){return ch||(ch=Pk(vD))}function TD(){return ch=BE?ch:Lk(vD),BE=!0,ch}const SD=(...t)=>{bD().render(...t)},C5=(...t)=>{TD().hydrate(...t)},jp=(...t)=>{const e=bD().createApp(...t),{mount:s}=e;return e.mount=i=>{const r=CD(i);if(!r)return;const n=e._component;!st(n)&&!n.render&&!n.template&&(n.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const a=s(r,!1,xD(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},e},ED=(...t)=>{const e=TD().createApp(...t),{mount:s}=e;return e.mount=i=>{const r=CD(i);if(r)return s(r,!0,xD(r))},e};function xD(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function CD(t){return Zt(t)?document.querySelector(t):t}let UE=!1;const w5=()=>{UE||(UE=!0,T5(),K8())};/**
20* vue v3.5.13
21* (c) 2018-present Yuxi (Evan) You and Vue contributors
22* @license MIT
vendor: 9,692 bytes, lines 23-31
23**/const A5=()=>{},k5=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:lk,BaseTransitionPropsValidators:OT,Comment:xs,DeprecationTypes:$8,EffectScope:ET,ErrorCodes:ZM,ErrorTypeStrings:O8,Fragment:_t,KeepAlive:C3,ReactiveEffect:kh,Static:yl,Suspense:m8,Teleport:o3,Text:Na,TrackOpTypes:GM,Transition:z8,TransitionGroup:m5,TriggerOpTypes:WM,VueElement:sg,assertNumber:JM,callWithAsyncErrorHandling:Dr,callWithErrorHandling:fc,camelize:Xs,capitalize:nf,cloneVNode:Fn,compatUtils:U8,compile:A5,computed:mt,createApp:jp,createBlock:on,createCommentVNode:vt,createElementBlock:ke,createElementVNode:ie,createHydrationRenderer:Lk,createPropsRestProxy:V3,createRenderer:Pk,createSSRApp:ED,createSlots:I3,createStaticVNode:Kk,createTextVNode:ys,createVNode:ze,customRef:WA,defineAsyncComponent:E3,defineComponent:Cs,defineCustomElement:dD,defineEmits:N3,defineExpose:R3,defineModel:B3,defineOptions:M3,defineProps:O3,defineSSRCustomElement:u5,defineSlots:F3,devtools:N8,effect:mM,effectScope:qm,getCurrentInstance:Ys,getCurrentScope:xT,getCurrentWatcher:XM,getTransitionRawChildren:Qm,guardReactiveProps:Xk,h:Ms,handleError:Rl,hasInjectionContext:Tk,hydrate:C5,hydrateOnIdle:y3,hydrateOnInteraction:T3,hydrateOnMediaQuery:b3,hydrateOnVisible:v3,initCustomFormatter:I8,initDirectivesForSSR:w5,inject:zi,isMemoSame:tD,isProxy:Xm,isReactive:On,isReadonly:To,isRef:ls,isRuntimeOnly:A8,isShallow:cr,isVNode:$a,markRaw:Km,mergeDefaults:H3,mergeModels:q3,mergeProps:df,nextTick:an,normalizeClass:ye,normalizeProps:cM,normalizeStyle:af,onActivated:ck,onBeforeMount:RT,onBeforeUnmount:Wa,onBeforeUpdate:Zm,onDeactivated:dk,onErrorCaptured:gk,onMounted:mr,onRenderTracked:mk,onRenderTriggered:pk,onScopeDispose:IA,onServerPrefetch:fk,onUnmounted:uf,onUpdated:pc,onWatcherCleanup:YA,openBlock:Ce,popScopeId:r3,provide:gl,proxyRefs:IT,pushScopeId:i3,queuePostFlushCb:Ph,reactive:hc,readonly:DT,ref:Je,registerRuntimeCompiler:w8,render:SD,renderList:Ws,renderSlot:bt,resolveComponent:Gn,resolveDirective:D3,resolveDynamicComponent:k3,resolveFilter:B8,resolveTransitionHooks:Lu,setBlockTracking:Pv,setDevtoolsHook:R8,setTransitionHooks:Ua,shallowReactive:kT,shallowReadonly:RM,shallowRef:of,ssrContextKey:Mk,ssrUtils:F8,stop:gM,toDisplayString:Be,toHandlerKey:rh,toHandlers:P3,toRaw:Dt,toRef:qM,toRefs:XA,toValue:BM,transformVNodeArgs:T8,triggerRef:FM,unref:gt,useAttrs:j3,useCssModule:h5,useCssVars:Y8,useHost:hD,useId:u3,useModel:l8,useSSRContext:Fk,useShadowRoot:d5,useSlots:$3,useTemplateRef:c3,useTransitionState:LT,vModelCheckbox:qT,vModelDynamic:gD,vModelRadio:VT,vModelSelect:$p,vModelText:Fh,vShow:uD,version:sD,warn:L8,watch:$s,watchEffect:Bk,watchPostEffect:a8,watchSyncEffect:Uk,withAsyncContext:z3,withCtx:ot,withDefaults:U3,withDirectives:lp,withKeys:_D,withMemo:P8,withModifiers:Sn,withScopeId:n3},Symbol.toStringTag,{value:"Module"}));/*!
24 * pinia v2.1.7
25 * (c) 2023 Eduardo San Martin Morote
26 * @license MIT
27 */let wD;const ig=t=>wD=t,AD=Symbol();function $v(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var dh;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(dh||(dh={}));function D5(){const t=qm(!0),e=t.run(()=>Je({}));let s=[],i=[];const r=Km({install(n){ig(r),r._a=n,n.provide(AD,r),n.config.globalProperties.$pinia=r,i.forEach(a=>s.push(a)),i=[]},use(n){return this._a?s.push(n):i.push(n),this},_p:s,_a:null,_e:t,_s:new Map,state:e});return r}const kD=()=>{};function $E(t,e,s,i=kD){t.push(e);const r=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),i())};return!s&&xT()&&IA(r),r}function jl(t,...e){t.slice().forEach(s=>{s(...e)})}const I5=t=>t();function jv(t,e){t instanceof Map&&e instanceof Map&&e.forEach((s,i)=>t.set(i,s)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const s in e){if(!e.hasOwnProperty(s))continue;const i=e[s],r=t[s];$v(r)&&$v(i)&&t.hasOwnProperty(s)&&!ls(i)&&!On(i)?t[s]=jv(r,i):t[s]=i}return t}const P5=Symbol();function L5(t){return!$v(t)||!t.hasOwnProperty(P5)}const{assign:oo}=Object;function O5(t){return!!(ls(t)&&t.effect)}function N5(t,e,s,i){const{state:r,actions:n,getters:a}=e,o=s.state.value[t];let l;function c(){o||(s.state.value[t]=r?r():{});const d=XA(s.state.value[t]);return oo(d,n,Object.keys(a||{}).reduce((p,_)=>(p[_]=Km(mt(()=>{ig(s);const b=s._s.get(t);return a[_].call(b,b)})),p),{}))}return l=DD(t,c,e,s,i,!0),l}function DD(t,e,s={},i,r,n){let a;const o=oo({actions:{}},s),l={deep:!0};let c,d,p=[],_=[],b;const T=i.state.value[t];!n&&!T&&(i.state.value[t]={}),Je({});let y;function x($){let k;c=d=!1,typeof $=="function"?($(i.state.value[t]),k={type:dh.patchFunction,storeId:t,events:b}):(jv(i.state.value[t],$),k={type:dh.patchObject,payload:$,storeId:t,events:b});const P=y=Symbol();an().then(()=>{y===P&&(c=!0)}),d=!0,jl(p,k,i.state.value[t])}const A=n?function(){const{state:k}=s,P=k?k():{};this.$patch(j=>{oo(j,P)})}:kD;function C(){a.stop(),p=[],_=[],i._s.delete(t)}function S($,k){return function(){ig(i);const P=Array.from(arguments),j=[],F=[];function H(se){j.push(se)}function te(se){F.push(se)}jl(_,{args:P,name:$,store:w,after:H,onError:te});let oe;try{oe=k.apply(this&&this.$id===t?this:w,P)}catch(se){throw jl(F,se),se}return oe instanceof Promise?oe.then(se=>(jl(j,se),se)).catch(se=>(jl(F,se),Promise.reject(se))):(jl(j,oe),oe)}}const E={_p:i,$id:t,$onAction:$E.bind(null,_),$patch:x,$reset:A,$subscribe($,k={}){const P=$E(p,$,k.detached,()=>j()),j=a.run(()=>$s(()=>i.state.value[t],F=>{(k.flush==="sync"?d:c)&&$({storeId:t,type:dh.direct,events:b},F)},oo({},l,k)));return P},$dispose:C},w=hc(E);i._s.set(t,w);const R=(i._a&&i._a.runWithContext||I5)(()=>i._e.run(()=>(a=qm()).run(e)));for(const $ in R){const k=R[$];if(ls(k)&&!O5(k)||On(k))n||(T&&L5(k)&&(ls(k)?k.value=T[$]:jv(k,T[$])),i.state.value[t][$]=k);else if(typeof k=="function"){const P=S($,k);R[$]=P,o.actions[$]=k}}return oo(w,R),oo(Dt(w),R),Object.defineProperty(w,"$state",{get:()=>i.state.value[t],set:$=>{x(k=>{oo(k,$)})}}),i._p.forEach($=>{oo(w,a.run(()=>$({store:w,app:i._a,pinia:i,options:o})))}),T&&n&&s.hydrate&&s.hydrate(w.$state,T),c=!0,d=!0,w}function R5(t,e,s){let i,r;const n=typeof e=="function";i=t,r=n?s:e;function a(o,l){const c=Tk();return o=o||(c?zi(AD,null):null),o&&ig(o),o=wD,o._s.has(i)||(n?DD(i,e,r,o):N5(i,r,o)),o._s.get(i)}return a.$id=i,a}/*!
28  * vue-router v4.3.0
29  * (c) 2024 Eduardo San Martin Morote
30  * @license MIT
31  */const eu=typeof document<"u";function M5(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const jt=Object.assign;function r_(t,e){const s={};for(const i in e){const r=e[i];s[i]=ln(r)?r.map(t):t(r)}return s}const hh=()=>{},ln=Array.isArray,ID=/#/g,F5=/&/g,B5=/\//g,U5=/=/g,$5=/\?/g,PD=/\+/g,j5=/%5B/g,H5=/%5D/g,LD=/%5E/g,q5=/%60/g,OD=/%7B/g,V5=/%7C/g,ND=/%7D/g,z5=/%20/g;function zT(t){return encodeURI(""+t).replace(V5,"|").replace(j5,"[").replace(H5,"]")}function G5(t){return zT(t).replace(OD,"{").replace(ND,"}").replace(LD,"^")}function Hv(t){return zT(t).replace(PD,"%2B").replace(z5,"+").replace(ID,"%23").replace(F5,"%26").replace(q5,"`").replace(OD,"{").replace(ND,"}").replace(LD,"^")}function W5(t){return Hv(t).replace(U5,"%3D")}function X5(t){return zT(t).replace(ID,"%23").replace($5,"%3F")}function K5(t){return t==null?"":X5(t).replace(B5,"%2F")}function Bh(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const Y5=/\/$/,Q5=t=>t.replace(Y5,"");function n_(t,e,s="/"){let i,r={},n="",a="";const o=e.indexOf("#");let l=e.indexOf("?");return o<l&&o>=0&&(l=-1),l>-1&&(i=e.slice(0,l),n=e.slice(l+1,o>-1?o:e.length),r=t(n)),o>-1&&(i=i||e.slice(0,o),a=e.slice(o,e.length)),i=t6(i??e,s),{fullPath:i+(n&&"?")+n+a,path:i,query:r,hash:Bh(a)}}function J5(t,e){const s=e.query?t(e.query):"";return e.path+(s&&"?")+s+(e.hash||"")}function jE(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function Z5(t,e,s){const i=e.matched.length-1,r=s.matched.length-1;return i>-1&&i===r&&Mu(e.matched[i],s.matched[r])&&RD(e.params,s.params)&&t(e.query)===t(s.query)&&e.hash===s.hash}function Mu(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function RD(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const s in t)if(!e6(t[s],e[s]))return!1;return!0}function e6(t,e){return ln(t)?HE(t,e):ln(e)?HE(e,t):t===e}function HE(t,e){return ln(e)?t.length===e.length&&t.every((s,i)=>s===e[i]):t.length===1&&t[0]===e}function t6(t,e){if(t.startsWith("/"))return t;if(!t)return e;const s=e.split("/"),i=t.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let n=s.length-1,a,o;for(a=0;a<i.length;a++)if(o=i[a],o!==".")if(o==="..")n>1&&n--;else break;return s.slice(0,n).join("/")+"/"+i.slice(a).join("/")}var Uh;(function(t){t.pop="pop",t.push="push"})(Uh||(Uh={}));var fh;(function(t){t.back="back",t.forward="forward",t.unknown=""})(fh||(fh={}));function s6(t){if(!t)if(eu){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Q5(t)}const i6=/^[^#]+#/;function r6(t,e){return t.replace(i6,"#")+e}function n6(t,e){const s=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{behavior:e.behavior,left:i.left-s.left-(e.left||0),top:i.top-s.top-(e.top||0)}}const rg=()=>({left:window.scrollX,top:window.scrollY});function a6(t){let e;if("el"in t){const s=t.el,i=typeof s=="string"&&s.startsWith("#"),r=typeof s=="string"?i?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!r)return;e=n6(r,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}
vendor: 6,512 bytes, line 31
31function qE(t,e){return(history.state?history.state.position-e:-1)+t}const qv=new Map;function o6(t,e){qv.set(t,e)}function l6(t){const e=qv.get(t);return qv.delete(t),e}let u6=()=>location.protocol+"//"+location.host;function MD(t,e){const{pathname:s,search:i,hash:r}=e,n=t.indexOf("#");if(n>-1){let o=r.includes(t.slice(n))?t.slice(n).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),jE(l,"")}return jE(s,t)+i+r}function c6(t,e,s,i){let r=[],n=[],a=null;const o=({state:_})=>{const b=MD(t,location),T=s.value,y=e.value;let x=0;if(_){if(s.value=b,e.value=_,a&&a===T){a=null;return}x=y?_.position-y.position:0}else i(b);r.forEach(A=>{A(s.value,T,{delta:x,type:Uh.pop,direction:x?x>0?fh.forward:fh.back:fh.unknown})})};function l(){a=s.value}function c(_){r.push(_);const b=()=>{const T=r.indexOf(_);T>-1&&r.splice(T,1)};return n.push(b),b}function d(){const{history:_}=window;_.state&&_.replaceState(jt({},_.state,{scroll:rg()}),"")}function p(){for(const _ of n)_();n=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:l,listen:c,destroy:p}}function VE(t,e,s,i=!1,r=!1){return{back:t,current:e,forward:s,replaced:i,position:window.history.length,scroll:r?rg():null}}function d6(t){const{history:e,location:s}=window,i={value:MD(t,s)},r={value:e.state};r.value||n(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function n(l,c,d){const p=t.indexOf("#"),_=p>-1?(s.host&&document.querySelector("base")?t:t.slice(p))+l:u6()+t+l;try{e[d?"replaceState":"pushState"](c,"",_),r.value=c}catch(b){console.error(b),s[d?"replace":"assign"](_)}}function a(l,c){const d=jt({},e.state,VE(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});n(l,d,!0),i.value=l}function o(l,c){const d=jt({},r.value,e.state,{forward:l,scroll:rg()});n(d.current,d,!0);const p=jt({},VE(i.value,l,null),{position:d.position+1},c);n(l,p,!1),i.value=l}return{location:i,state:r,push:o,replace:a}}function h6(t){t=s6(t);const e=d6(t),s=c6(t,e.state,e.location,e.replace);function i(n,a=!0){a||s.pauseListeners(),history.go(n)}const r=jt({location:"",base:t,go:i,createHref:r6.bind(null,t)},e,s);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function f6(t){return typeof t=="string"||t&&typeof t=="object"}function FD(t){return typeof t=="string"||typeof t=="symbol"}const Qa={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},BD=Symbol("");var zE;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(zE||(zE={}));function Fu(t,e){return jt(new Error,{type:t,[BD]:!0},e)}function _a(t,e){return t instanceof Error&&BD in t&&(e==null||!!(t.type&e))}const GE="[^/]+?",p6={sensitive:!1,strict:!1,start:!0,end:!0},m6=/[.+*?^${}()[\]/\\]/g;function g6(t,e){const s=jt({},p6,e),i=[];let r=s.start?"^":"";const n=[];for(const c of t){const d=c.length?[]:[90];s.strict&&!c.length&&(r+="/");for(let p=0;p<c.length;p++){const _=c[p];let b=40+(s.sensitive?.25:0);if(_.type===0)p||(r+="/"),r+=_.value.replace(m6,"\\$&"),b+=40;else if(_.type===1){const{value:T,repeatable:y,optional:x,regexp:A}=_;n.push({name:T,repeatable:y,optional:x});const C=A||GE;if(C!==GE){b+=10;try{new RegExp(`(${C})`)}catch(E){throw new Error(`Invalid custom RegExp for param "${T}" (${C}): `+E.message)}}let S=y?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;p||(S=x&&c.length<2?`(?:/${S})`:"/"+S),x&&(S+="?"),r+=S,b+=20,x&&(b+=-8),y&&(b+=-20),C===".*"&&(b+=-50)}d.push(b)}i.push(d)}if(s.strict&&s.end){const c=i.length-1;i[c][i[c].length-1]+=.7000000000000001}s.strict||(r+="/?"),s.end?r+="$":s.strict&&(r+="(?:/|$)");const a=new RegExp(r,s.sensitive?"":"i");function o(c){const d=c.match(a),p={};if(!d)return null;for(let _=1;_<d.length;_++){const b=d[_]||"",T=n[_-1];p[T.name]=b&&T.repeatable?b.split("/"):b}return p}function l(c){let d="",p=!1;for(const _ of t){(!p||!d.endsWith("/"))&&(d+="/"),p=!1;for(const b of _)if(b.type===0)d+=b.value;else if(b.type===1){const{value:T,repeatable:y,optional:x}=b,A=T in c?c[T]:"";if(ln(A)&&!y)throw new Error(`Provided param "${T}" is an array but it is not repeatable (* or + modifiers)`);const C=ln(A)?A.join("/"):A;if(!C)if(x)_.length<2&&(d.endsWith("/")?d=d.slice(0,-1):p=!0);else throw new Error(`Missing required param "${T}"`);d+=C}}return d||"/"}return{re:a,score:i,keys:n,parse:o,stringify:l}}function y6(t,e){let s=0;for(;s<t.length&&s<e.length;){const i=e[s]-t[s];if(i)return i;s++}return t.length<e.length?t.length===1&&t[0]===80?-1:1:t.length>e.length?e.length===1&&e[0]===80?1:-1:0}function _6(t,e){let s=0;const i=t.score,r=e.score;for(;s<i.length&&s<r.length;){const n=y6(i[s],r[s]);if(n)return n;s++}if(Math.abs(r.length-i.length)===1){if(WE(i))return 1;if(WE(r))return-1}return r.length-i.length}function WE(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const v6={type:0,value:""},b6=/[a-zA-Z0-9_]/;function T6(t){if(!t)return[[]];if(t==="/")return[[v6]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(b){throw new Error(`ERR (${s})/"${c}": ${b}`)}let s=0,i=s;const r=[];let n;function a(){n&&r.push(n),n=[]}let o=0,l,c="",d="";function p(){c&&(s===0?n.push({type:0,value:c}):s===1||s===2||s===3?(n.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),n.push({type:1,value:c,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function _(){c+=l}for(;o<t.length;){if(l=t[o++],l==="\\"&&s!==2){i=s,s=4;continue}switch(s){case 0:l==="/"?(c&&p(),a()):l===":"?(p(),s=1):_();break;case 4:_(),s=i;break;case 1:l==="("?s=2:b6.test(l)?_():(p(),s=0,l!=="*"&&l!=="?"&&l!=="+"&&o--);break;case 2:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:s=3:d+=l;break;case 3:p(),s=0,l!=="*"&&l!=="?"&&l!=="+"&&o--,d="";break;default:e("Unknown state");break}}return s===2&&e(`Unfinished custom RegExp for param "${c}"`),p(),a(),r}function S6(t,e,s){const i=g6(T6(t.path),s),r=jt(i,{record:t,parent:e,children:[],alias:[]});return e&&!r.record.aliasOf==!e.record.aliasOf&&e.children.push(r),r}function E6(t,e){const s=[],i=new Map;e=YE({strict:!1,end:!0,sensitive:!1},e);function r(d){return i.get(d)}function n(d,p,_){const b=!_,T=x6(d);T.aliasOf=_&&_.record;const y=YE(e,d),x=[T];
vendor: 4,615 bytes, line 31
31if("alias"in d){const S=typeof d.alias=="string"?[d.alias]:d.alias;for(const E of S)x.push(jt({},T,{components:_?_.record.components:T.components,path:E,aliasOf:_?_.record:T}))}let A,C;for(const S of x){const{path:E}=S;if(p&&E[0]!=="/"){const w=p.record.path,O=w[w.length-1]==="/"?"":"/";S.path=p.record.path+(E&&O+E)}if(A=S6(S,p,y),_?_.alias.push(A):(C=C||A,C!==A&&C.alias.push(A),b&&d.name&&!KE(A)&&a(d.name)),T.children){const w=T.children;for(let O=0;O<w.length;O++)n(w[O],A,_&&_.children[O])}_=_||A,(A.record.components&&Object.keys(A.record.components).length||A.record.name||A.record.redirect)&&l(A)}return C?()=>{a(C)}:hh}function a(d){if(FD(d)){const p=i.get(d);p&&(i.delete(d),s.splice(s.indexOf(p),1),p.children.forEach(a),p.alias.forEach(a))}else{const p=s.indexOf(d);p>-1&&(s.splice(p,1),d.record.name&&i.delete(d.record.name),d.children.forEach(a),d.alias.forEach(a))}}function o(){return s}function l(d){let p=0;for(;p<s.length&&_6(d,s[p])>=0&&(d.record.path!==s[p].record.path||!UD(d,s[p]));)p++;s.splice(p,0,d),d.record.name&&!KE(d)&&i.set(d.record.name,d)}function c(d,p){let _,b={},T,y;if("name"in d&&d.name){if(_=i.get(d.name),!_)throw Fu(1,{location:d});y=_.record.name,b=jt(XE(p.params,_.keys.filter(C=>!C.optional).concat(_.parent?_.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),d.params&&XE(d.params,_.keys.map(C=>C.name))),T=_.stringify(b)}else if(d.path!=null)T=d.path,_=s.find(C=>C.re.test(T)),_&&(b=_.parse(T),y=_.record.name);else{if(_=p.name?i.get(p.name):s.find(C=>C.re.test(p.path)),!_)throw Fu(1,{location:d,currentLocation:p});y=_.record.name,b=jt({},p.params,d.params),T=_.stringify(b)}const x=[];let A=_;for(;A;)x.unshift(A.record),A=A.parent;return{name:y,path:T,params:b,matched:x,meta:w6(x)}}return t.forEach(d=>n(d)),{addRoute:n,resolve:c,removeRoute:a,getRoutes:o,getRecordMatcher:r}}function XE(t,e){const s={};for(const i of e)i in t&&(s[i]=t[i]);return s}function x6(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:C6(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function C6(t){const e={},s=t.props||!1;if("component"in t)e.default=s;else for(const i in t.components)e[i]=typeof s=="object"?s[i]:s;return e}function KE(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function w6(t){return t.reduce((e,s)=>jt(e,s.meta),{})}function YE(t,e){const s={};for(const i in t)s[i]=i in e?e[i]:t[i];return s}function UD(t,e){return e.children.some(s=>s===t||UD(t,s))}function A6(t){const e={};if(t===""||t==="?")return e;const i=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;r<i.length;++r){const n=i[r].replace(PD," "),a=n.indexOf("="),o=Bh(a<0?n:n.slice(0,a)),l=a<0?null:Bh(n.slice(a+1));if(o in e){let c=e[o];ln(c)||(c=e[o]=[c]),c.push(l)}else e[o]=l}return e}function QE(t){let e="";for(let s in t){const i=t[s];if(s=W5(s),i==null){i!==void 0&&(e+=(e.length?"&":"")+s);continue}(ln(i)?i.map(n=>n&&Hv(n)):[i&&Hv(i)]).forEach(n=>{n!==void 0&&(e+=(e.length?"&":"")+s,n!=null&&(e+="="+n))})}return e}function k6(t){const e={};for(const s in t){const i=t[s];i!==void 0&&(e[s]=ln(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return e}const D6=Symbol(""),JE=Symbol(""),ng=Symbol(""),GT=Symbol(""),Vv=Symbol("");function kd(){let t=[];function e(i){return t.push(i),()=>{const r=t.indexOf(i);r>-1&&t.splice(r,1)}}function s(){t=[]}return{add:e,list:()=>t.slice(),reset:s}}function fo(t,e,s,i,r,n=a=>a()){const a=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((o,l)=>{const c=_=>{_===!1?l(Fu(4,{from:s,to:e})):_ instanceof Error?l(_):f6(_)?l(Fu(2,{from:e,to:_})):(a&&i.enterCallbacks[r]===a&&typeof _=="function"&&a.push(_),o())},d=n(()=>t.call(i&&i.instances[r],e,s,c));let p=Promise.resolve(d);t.length<3&&(p=p.then(c)),p.catch(_=>l(_))})}function a_(t,e,s,i,r=n=>n()){const n=[];for(const a of t)for(const o in a.components){let l=a.components[o];if(!(e!=="beforeRouteEnter"&&!a.instances[o]))if(I6(l)){const d=(l.__vccOpts||l)[e];d&&n.push(fo(d,s,i,a,o,r))}else{let c=l();n.push(()=>c.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const p=M5(d)?d.default:d;a.components[o]=p;const b=(p.__vccOpts||p)[e];return b&&fo(b,s,i,a,o,r)()}))}}return n}function I6(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function ZE(t){const e=zi(ng),s=zi(GT),i=mt(()=>e.resolve(gt(t.to))),r=mt(()=>{const{matched:l}=i.value,{length:c}=l,d=l[c-1],p=s.matched;
vendor: 5,621 bytes, line 31
31if(!d||!p.length)return-1;const _=p.findIndex(Mu.bind(null,d));if(_>-1)return _;const b=e2(l[c-2]);return c>1&&e2(d)===b&&p[p.length-1].path!==b?p.findIndex(Mu.bind(null,l[c-2])):_}),n=mt(()=>r.value>-1&&N6(s.params,i.value.params)),a=mt(()=>r.value>-1&&r.value===s.matched.length-1&&RD(s.params,i.value.params));function o(l={}){return O6(l)?e[gt(t.replace)?"replace":"push"](gt(t.to)).catch(hh):Promise.resolve()}return{route:i,href:mt(()=>i.value.href),isActive:n,isExactActive:a,navigate:o}}const P6=Cs({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ZE,setup(t,{slots:e}){const s=hc(ZE(t)),{options:i}=zi(ng),r=mt(()=>({[t2(t.activeClass,i.linkActiveClass,"router-link-active")]:s.isActive,[t2(t.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const n=e.default&&e.default(s);return t.custom?n:Ms("a",{"aria-current":s.isExactActive?t.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:r.value},n)}}}),L6=P6;function O6(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function N6(t,e){for(const s in e){const i=e[s],r=t[s];if(typeof i=="string"){if(i!==r)return!1}else if(!ln(r)||r.length!==i.length||i.some((n,a)=>n!==r[a]))return!1}return!0}function e2(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const t2=(t,e,s)=>t??e??s,R6=Cs({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:s}){const i=zi(Vv),r=mt(()=>t.route||i.value),n=zi(JE,0),a=mt(()=>{let c=gt(n);const{matched:d}=r.value;let p;for(;(p=d[c])&&!p.components;)c++;return c}),o=mt(()=>r.value.matched[a.value]);gl(JE,mt(()=>a.value+1)),gl(D6,o),gl(Vv,r);const l=Je();return $s(()=>[l.value,o.value,t.name],([c,d,p],[_,b,T])=>{d&&(d.instances[p]=c,b&&b!==d&&c&&c===_&&(d.leaveGuards.size||(d.leaveGuards=b.leaveGuards),d.updateGuards.size||(d.updateGuards=b.updateGuards))),c&&d&&(!b||!Mu(d,b)||!_)&&(d.enterCallbacks[p]||[]).forEach(y=>y(c))},{flush:"post"}),()=>{const c=r.value,d=t.name,p=o.value,_=p&&p.components[d];if(!_)return s2(s.default,{Component:_,route:c});const b=p.props[d],T=b?b===!0?c.params:typeof b=="function"?b(c):b:null,x=Ms(_,jt({},T,e,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(p.instances[d]=null)},ref:l}));return s2(s.default,{Component:x,route:c})||x}}});function s2(t,e){if(!t)return null;const s=t(e);return s.length===1?s[0]:s}const $D=R6;function M6(t){const e=E6(t.routes,t),s=t.parseQuery||A6,i=t.stringifyQuery||QE,r=t.history,n=kd(),a=kd(),o=kd(),l=of(Qa);let c=Qa;eu&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=r_.bind(null,me=>""+me),p=r_.bind(null,K5),_=r_.bind(null,Bh);function b(me,Ie){let De,Fe;return FD(me)?(De=e.getRecordMatcher(me),Fe=Ie):Fe=me,e.addRoute(Fe,De)}function T(me){const Ie=e.getRecordMatcher(me);Ie&&e.removeRoute(Ie)}function y(){return e.getRoutes().map(me=>me.record)}function x(me){return!!e.getRecordMatcher(me)}function A(me,Ie){if(Ie=jt({},Ie||l.value),typeof me=="string"){const q=n_(s,me,Ie.path),re=e.resolve({path:q.path},Ie),ve=r.createHref(q.fullPath);return jt(q,re,{params:_(re.params),hash:Bh(q.hash),redirectedFrom:void 0,href:ve})}let De;if(me.path!=null)De=jt({},me,{path:n_(s,me.path,Ie.path).path});else{const q=jt({},me.params);for(const re in q)q[re]==null&&delete q[re];De=jt({},me,{params:p(q)}),Ie.params=p(Ie.params)}const Fe=e.resolve(De,Ie),Ze=me.hash||"";Fe.params=d(_(Fe.params));const rt=J5(i,jt({},me,{hash:G5(Ze),path:Fe.path})),W=r.createHref(rt);return jt({fullPath:rt,hash:Ze,query:i===QE?k6(me.query):me.query||{}},Fe,{redirectedFrom:void 0,href:W})}function C(me){return typeof me=="string"?n_(s,me,l.value.path):jt({},me)}function S(me,Ie){if(c!==me)return Fu(8,{from:Ie,to:me})}function E(me){return R(me)}function w(me){return E(jt(C(me),{replace:!0}))}function O(me){const Ie=me.matched[me.matched.length-1];if(Ie&&Ie.redirect){const{redirect:De}=Ie;let Fe=typeof De=="function"?De(me):De;return typeof Fe=="string"&&(Fe=Fe.includes("?")||Fe.includes("#")?Fe=C(Fe):{path:Fe},Fe.params={}),jt({query:me.query,hash:me.hash,params:Fe.path!=null?{}:me.params},Fe)}}function R(me,Ie){const De=c=A(me),Fe=l.value,Ze=me.state,rt=me.force,W=me.replace===!0,q=O(De);if(q)return R(jt(C(q),{state:typeof q=="object"?jt({},Ze,q.state):Ze,force:rt,replace:W}),Ie||De);const re=De;re.redirectedFrom=Ie;let ve;return!rt&&Z5(i,Fe,De)&&(ve=Fu(16,{to:re,from:Fe}),he(Fe,Fe,!0,!1)),(ve?Promise.resolve(ve):P(re,Fe)).catch(ge=>_a(ge)?_a(ge,2)?ge:de(ge):X(ge,re,Fe)).then(ge=>{if(ge){if(_a(ge,2))return R(jt({replace:W},C(ge.to),{state:typeof ge.to=="object"?jt({},Ze,ge.to.state):Ze,force:rt}),Ie||re)}else ge=F(re,Fe,!0,W,Ze);return j(re,Fe,ge),ge})}function $(me,Ie){const De=S(me,Ie);return De?Promise.reject(De):Promise.resolve()}function k(me){const Ie=Ge.values().next().value;return Ie&&typeof Ie.runWithContext=="function"?Ie.runWithContext(me):me()}function P(me,Ie){let De;const[Fe,Ze,rt]=F6(me,Ie);De=a_(Fe.reverse(),"beforeRouteLeave",me,Ie);for(const q of Fe)q.leaveGuards.forEach(re=>{De.push(fo(re,me,Ie))});const W=$.bind(null,me,Ie);return De.push(W),Et(De).then(()=>{De=[];for(const q of n.list())De.push(fo(q,me,Ie));return De.push(W),Et(De)}
vendor: 4,318 bytes, lines 31-35
31).then(()=>{De=a_(Ze,"beforeRouteUpdate",me,Ie);for(const q of Ze)q.updateGuards.forEach(re=>{De.push(fo(re,me,Ie))});return De.push(W),Et(De)}).then(()=>{De=[];for(const q of rt)if(q.beforeEnter)if(ln(q.beforeEnter))for(const re of q.beforeEnter)De.push(fo(re,me,Ie));else De.push(fo(q.beforeEnter,me,Ie));return De.push(W),Et(De)}).then(()=>(me.matched.forEach(q=>q.enterCallbacks={}),De=a_(rt,"beforeRouteEnter",me,Ie,k),De.push(W),Et(De))).then(()=>{De=[];for(const q of a.list())De.push(fo(q,me,Ie));return De.push(W),Et(De)}).catch(q=>_a(q,8)?q:Promise.reject(q))}function j(me,Ie,De){o.list().forEach(Fe=>k(()=>Fe(me,Ie,De)))}function F(me,Ie,De,Fe,Ze){const rt=S(me,Ie);if(rt)return rt;const W=Ie===Qa,q=eu?history.state:{};De&&(Fe||W?r.replace(me.fullPath,jt({scroll:W&&q&&q.scroll},Ze)):r.push(me.fullPath,Ze)),l.value=me,he(me,Ie,De,W),de()}let H;function te(){H||(H=r.listen((me,Ie,De)=>{if(!Xe.listening)return;const Fe=A(me),Ze=O(Fe);if(Ze){R(jt(Ze,{replace:!0}),Fe).catch(hh);return}c=Fe;const rt=l.value;eu&&o6(qE(rt.fullPath,De.delta),rg()),P(Fe,rt).catch(W=>_a(W,12)?W:_a(W,2)?(R(W.to,Fe).then(q=>{_a(q,20)&&!De.delta&&De.type===Uh.pop&&r.go(-1,!1)}).catch(hh),Promise.reject()):(De.delta&&r.go(-De.delta,!1),X(W,Fe,rt))).then(W=>{W=W||F(Fe,rt,!1),W&&(De.delta&&!_a(W,8)?r.go(-De.delta,!1):De.type===Uh.pop&&_a(W,20)&&r.go(-1,!1)),j(Fe,rt,W)}).catch(hh)}))}let oe=kd(),se=kd(),K;function X(me,Ie,De){de(me);const Fe=se.list();return Fe.length?Fe.forEach(Ze=>Ze(me,Ie,De)):console.error(me),Promise.reject(me)}function ne(){return K&&l.value!==Qa?Promise.resolve():new Promise((me,Ie)=>{oe.add([me,Ie])})}function de(me){return K||(K=!me,te(),oe.list().forEach(([Ie,De])=>me?De(me):Ie()),oe.reset()),me}function he(me,Ie,De,Fe){const{scrollBehavior:Ze}=t;if(!eu||!Ze)return Promise.resolve();const rt=!De&&l6(qE(me.fullPath,0))||(Fe||!De)&&history.state&&history.state.scroll||null;return an().then(()=>Ze(me,Ie,rt)).then(W=>W&&a6(W)).catch(W=>X(W,me,Ie))}const Le=me=>r.go(me);let qe;const Ge=new Set,Xe={currentRoute:l,listening:!0,addRoute:b,removeRoute:T,hasRoute:x,getRoutes:y,resolve:A,options:t,push:E,replace:w,go:Le,back:()=>Le(-1),forward:()=>Le(1),beforeEach:n.add,beforeResolve:a.add,afterEach:o.add,onError:se.add,isReady:ne,install(me){const Ie=this;me.component("RouterLink",L6),me.component("RouterView",$D),me.config.globalProperties.$router=Ie,Object.defineProperty(me.config.globalProperties,"$route",{enumerable:!0,get:()=>gt(l)}),eu&&!qe&&l.value===Qa&&(qe=!0,E(r.location).catch(Ze=>{}));const De={};for(const Ze in Qa)Object.defineProperty(De,Ze,{get:()=>l.value[Ze],enumerable:!0});me.provide(ng,Ie),me.provide(GT,kT(De)),me.provide(Vv,l);const Fe=me.unmount;Ge.add(me),me.unmount=function(){Ge.delete(me),Ge.size<1&&(c=Qa,H&&H(),H=null,l.value=Qa,qe=!1,K=!1),Fe()}}};function Et(me){return me.reduce((Ie,De)=>Ie.then(()=>k(De)),Promise.resolve())}return Xe}function F6(t,e){const s=[],i=[],r=[],n=Math.max(e.matched.length,t.matched.length);for(let a=0;a<n;a++){const o=e.matched[a];o&&(t.matched.find(c=>Mu(c,o))?i.push(o):s.push(o));const l=t.matched[a];l&&(e.matched.find(c=>Mu(c,l))||r.push(l))}return[s,i,r]}function Sie(){return zi(ng)}function Eie(){return zi(GT)}const B6="/v11.1_Live/images/NZ-On-Air.CHVjD5p7.png",U6="/v11.1_Live/images/CAMA_Logo.CWaf6hWa.png";/*!
32  * shared v9.13.1
33  * (c) 2024 kazuya kawaguchi
34  * Released under the MIT License.
35  */const Hp=typeof window<"u",Io=(t,e=!1)=>e?Symbol.for(t):Symbol(t),$6=(t,e,s)=>j6({l:t,k:e,s}),j6=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Is=t=>typeof t=="number"&&isFinite(t),H6=t=>HD(t)==="[object Date]",Eo=t=>HD(t)==="[object RegExp]",ag=t=>lt(t)&&Object.keys(t).length===0,Ks=Object.assign;let i2;const Da=()=>i2||(i2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function r2(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const q6=Object.prototype.hasOwnProperty;function qp(t,e){return q6.call(t,e)}const rs=Array.isArray,Xt=t=>typeof t=="function",$e=t=>typeof t=="string",Ct=t=>typeof t=="boolean",Bt=t=>t!==null&&typeof t=="object",V6=t=>Bt(t)&&Xt(t.then)&&Xt(t.catch),jD=Object.prototype.toString,HD=t=>jD.call(t),lt=t=>
35{if(!Bt(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},z6=t=>t==null?"":rs(t)||lt(t)&&t.toString===jD?JSON.stringify(t,null,2):String(t);function G6(t,e=""){return t.reduce((s,i,r)=>r===0?s+i:s+e+i,"")}function og(t){let e=t;return()=>++e}function W6(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const Hf=t=>!Bt(t)||rs(t);function fp(t,e){if(Hf(t)||Hf(e))throw new Error("Invalid value");const s=[{src:t,des:e}];for(;s.length;){const{src:i,des:r}=s.pop();Object.keys(i).forEach(n=>{Hf(i[n])||Hf(r[n])?r[n]=i[n]:s.push({src:i[n],des:r[n]})})}}/*!
36  * message-compiler v9.13.1
37  * (c) 2024 kazuya kawaguchi
38  * Released under the MIT License.
39  */function X6(t,e,s){return{line:t,column:e,offset:s}}function Vp(t,e,s){return{start:t,end:e}}const K6=/\{([0-9a-zA-Z]+)\}/g;function qD(t,...e){return e.length===1&&Y6(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(K6,(s,i)=>e.hasOwnProperty(i)?e[i]:"")}const VD=Object.assign,n2=t=>typeof t=="string",Y6=t=>t!==null&&typeof t=="object";function zD(t,e=""){return t.reduce((s,i,r)=>r===0?s+i:s+e+i,"")}const WT={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Q6={[WT.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function J6(t,e,...s){const i=qD(Q6[t],...s||[]),r={message:String(i),code:t};return e&&(r.location=e),r}const at={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Z6={[at.EXPECTED_TOKEN]:"Expected token: '{0}'",[at.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[at.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[at.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[at.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[at.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[at.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[at.EMPTY_PLACEHOLDER]:"Empty placeholder",[at.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[at.INVALID_LINKED_FORMAT]:"Invalid linked format",[at.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[at.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[at.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[at.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[at.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[at.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function mc(t,e,s={}){const{domain:i,messages:r,args:n}=s,a=qD((r||Z6)[t]||"",...n||[]),o=new SyntaxError(String(a));return o.code=t,e&&(o.location=e),o.domain=i,o}function eF(t){throw t}const va=" ",tF="\r",bi=`
40`,sF="\u2028",iF="\u2029";function rF(t){const e=t;let s=0,i=1,r=1,n=0;const a=R=>e[R]===tF&&e[R+1]===bi,o=R=>e[R]===bi,l=R=>e[R]===iF,c=R=>e[R]===sF,d=R=>a(R)||o(R)||l(R)||c(R),p=()=>s,_=()=>i,b=()=>r,T=()=>n,y=R=>a(R)||l(R)||c(R)?bi:e[R],x=()=>y(s),A=()=>y(s+n);function C(){return n=0,d(s)&&(i++,r=0),a(s)&&s++,s++,r++,e[s]}function S(){return a(s+n)&&n++,n++,e[s+n]}function E(){s=0,i=1,r=1,n=0}function w(R=0){n=R}function O(){const R=s+n;for(;R!==s;)C();n=0}
40return{index:p,line:_,column:b,peekOffset:T,charAt:y,currentChar:x,currentPeek:A,next:C,peek:S,reset:E,resetPeek:w,skipToPeek:O}}const Ja=void 0,nF=".",a2="'",aF="tokenizer";function oF(t,e={}){const s=e.location!==!1,i=rF(t),r=()=>i.index(),n=()=>X6(i.line(),i.column(),i.index()),a=n(),o=r(),l={currentType:14,offset:o,startLoc:a,endLoc:a,lastType:14,lastOffset:o,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:d}=e;function p(U,z,ee,...Ee){const we=c();if(z.column+=ee,z.offset+=ee,d){const xe=s?Vp(we.startLoc,z):null,ae=mc(U,xe,{domain:aF,args:Ee});d(ae)}}function _(U,z,ee){U.endLoc=n(),U.currentType=z;const Ee={type:z};return s&&(Ee.loc=Vp(U.startLoc,U.endLoc)),ee!=null&&(Ee.value=ee),Ee}const b=U=>_(U,14);function T(U,z){return U.currentChar()===z?(U.next(),z):(p(at.EXPECTED_TOKEN,n(),0,z),"")}function y(U){let z="";for(;U.currentPeek()===va||U.currentPeek()===bi;)z+=U.currentPeek(),U.peek();return z}function x(U){const z=y(U);return U.skipToPeek(),z}function A(U){if(U===Ja)return!1;const z=U.charCodeAt(0);return z>=97&&z<=122||z>=65&&z<=90||z===95}function C(U){if(U===Ja)return!1;const z=U.charCodeAt(0);return z>=48&&z<=57}function S(U,z){const{currentType:ee}=z;if(ee!==2)return!1;y(U);const Ee=A(U.currentPeek());return U.resetPeek(),Ee}function E(U,z){const{currentType:ee}=z;if(ee!==2)return!1;y(U);const Ee=U.currentPeek()==="-"?U.peek():U.currentPeek(),we=C(Ee);return U.resetPeek(),we}function w(U,z){const{currentType:ee}=z;if(ee!==2)return!1;y(U);const Ee=U.currentPeek()===a2;return U.resetPeek(),Ee}function O(U,z){const{currentType:ee}=z;if(ee!==8)return!1;y(U);const Ee=U.currentPeek()===".";return U.resetPeek(),Ee}function R(U,z){const{currentType:ee}=z;if(ee!==9)return!1;y(U);const Ee=A(U.currentPeek());return U.resetPeek(),Ee}function $(U,z){const{currentType:ee}=z;if(!(ee===8||ee===12))return!1;y(U);const Ee=U.currentPeek()===":";return U.resetPeek(),Ee}function k(U,z){const{currentType:ee}=z;if(ee!==10)return!1;const Ee=()=>{const xe=U.currentPeek();return xe==="{"?A(U.peek()):xe==="@"||xe==="%"||xe==="|"||xe===":"||xe==="."||xe===va||!xe?!1:xe===bi?(U.peek(),Ee()):F(U,!1)},we=Ee();return U.resetPeek(),we}function P(U){y(U);const z=U.currentPeek()==="|";return U.resetPeek(),z}function j(U){const z=y(U),ee=U.currentPeek()==="%"&&U.peek()==="{";return U.resetPeek(),{isModulo:ee,hasSpace:z.length>0}}function F(U,z=!0){const ee=(we=!1,xe="",ae=!1)=>{const ce=U.currentPeek();return ce==="{"?xe==="%"?!1:we:ce==="@"||!ce?xe==="%"?!0:we:ce==="%"?(U.peek(),ee(we,"%",!0)):ce==="|"?xe==="%"||ae?!0:!(xe===va||xe===bi):ce===va?(U.peek(),ee(!0,va,ae)):ce===bi?(U.peek(),ee(!0,bi,ae)):!0},Ee=ee();return z&&U.resetPeek(),Ee}function H(U,z){const ee=U.currentChar();return ee===Ja?Ja:z(ee)?(U.next(),ee):null}function te(U){const z=U.charCodeAt(0);return z>=97&&z<=122||z>=65&&z<=90||z>=48&&z<=57||z===95||z===36}function oe(U){return H(U,te)}function se(U){const z=U.charCodeAt(0);return z>=97&&z<=122||z>=65&&z<=90||z>=48&&z<=57||z===95||z===36||z===45}function K(U){return H(U,se)}function X(U){const z=U.charCodeAt(0);return z>=48&&z<=57}function ne(U){return H(U,X)}function de(U){const z=U.charCodeAt(0);return z>=48&&z<=57||z>=65&&z<=70||z>=97&&z<=102}function he(U){return H(U,de)}function Le(U){let z="",ee="";for(;z=ne(U);)ee+=z;return ee}function qe(U){x(U);const z=U.currentChar();return z!=="%"&&p(at.EXPECTED_TOKEN,n(),0,z),U.next(),"%"}function Ge(U){let z="";for(;;){const ee=U.currentChar();if(ee==="{"||ee==="}"||ee==="@"||ee==="|"||!ee)break;if(ee==="%")if(F(U))z+=ee,U.next();else break;else if(ee===va||ee===bi)if(F(U))z+=ee,U.next();else{if(P(U))break;z+=ee,U.next()}else z+=ee,U.next()}return z}function Xe(U){x(U);let z="",ee="";for(;z=K(U);)ee+=z;return U.currentChar()===Ja&&p(at.UNTERMINATED_CLOSING_BRACE,n(),0),ee}function Et(U){x(U);let z="";return U.currentChar()==="-"?(U.next(),z+=`-${Le(U)}`):z+=Le(U),U.currentChar()===Ja&&p(at.UNTERMINATED_CLOSING_BRACE,n(),0),z}function me(U){return U!==a2&&U!==bi}function Ie(U){x(U),T(U,"'");let z="",ee="";for(;z=H(U,me);)z==="\\"?ee+=De(U):ee+=z;const Ee=U.currentChar();return Ee===bi||Ee===Ja?(p(at.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,n(),0),Ee===bi&&(U.next(),T(U,"'")),ee):(T(U,"'"),ee)}function De(U){const z=U.currentChar();switch(z){case"\\":case"'":return U.next(),`\\${z}`;case"u":return Fe(U,z,4);case"U":return Fe(U,z,6);default:return p(at.UNKNOWN_ESCAPE_SEQUENCE,n(),0,z),""}}function Fe(U,z,ee){T(U,z);let Ee="";for(let we=0;we<ee;we++){const xe=he(U);if(!xe){p(at.INVALID_UNICODE_ESCAPE_SEQUENCE,n(),0,`\\${z}${Ee}${U.currentChar()}`);break}Ee+=xe}return`\\${z}${Ee}`}function Ze(U){return U!=="{"&&U!=="}"&&U!==va&&U!==bi}function rt(U){x(U);let z="",ee="";for(;z=H(U,Ze);)ee+=z;return ee}function W(U){let z="",ee="";for(;z=oe(U);)ee+=z;return ee}function q(U){const z=ee=>{const Ee=U.currentChar();return Ee==="{"||Ee==="%"||Ee==="@"||Ee==="|"||Ee==="("||Ee===")"||!Ee||Ee===va?ee:(ee+=Ee,U.next(),z(ee))};return z("")}function re(U){x(U);const z=T(U,"|");return x(U),z}function ve(U,z){let ee=null;
vendor: 5,694 bytes, line 40
40switch(U.currentChar()){case"{":return z.braceNest>=1&&p(at.NOT_ALLOW_NEST_PLACEHOLDER,n(),0),U.next(),ee=_(z,2,"{"),x(U),z.braceNest++,ee;case"}":return z.braceNest>0&&z.currentType===2&&p(at.EMPTY_PLACEHOLDER,n(),0),U.next(),ee=_(z,3,"}"),z.braceNest--,z.braceNest>0&&x(U),z.inLinked&&z.braceNest===0&&(z.inLinked=!1),ee;case"@":return z.braceNest>0&&p(at.UNTERMINATED_CLOSING_BRACE,n(),0),ee=ge(U,z)||b(z),z.braceNest=0,ee;default:{let we=!0,xe=!0,ae=!0;if(P(U))return z.braceNest>0&&p(at.UNTERMINATED_CLOSING_BRACE,n(),0),ee=_(z,1,re(U)),z.braceNest=0,z.inLinked=!1,ee;if(z.braceNest>0&&(z.currentType===5||z.currentType===6||z.currentType===7))return p(at.UNTERMINATED_CLOSING_BRACE,n(),0),z.braceNest=0,be(U,z);if(we=S(U,z))return ee=_(z,5,Xe(U)),x(U),ee;if(xe=E(U,z))return ee=_(z,6,Et(U)),x(U),ee;if(ae=w(U,z))return ee=_(z,7,Ie(U)),x(U),ee;if(!we&&!xe&&!ae)return ee=_(z,13,rt(U)),p(at.INVALID_TOKEN_IN_PLACEHOLDER,n(),0,ee.value),x(U),ee;break}}return ee}function ge(U,z){const{currentType:ee}=z;let Ee=null;const we=U.currentChar();switch((ee===8||ee===9||ee===12||ee===10)&&(we===bi||we===va)&&p(at.INVALID_LINKED_FORMAT,n(),0),we){case"@":return U.next(),Ee=_(z,8,"@"),z.inLinked=!0,Ee;case".":return x(U),U.next(),_(z,9,".");case":":return x(U),U.next(),_(z,10,":");default:return P(U)?(Ee=_(z,1,re(U)),z.braceNest=0,z.inLinked=!1,Ee):O(U,z)||$(U,z)?(x(U),ge(U,z)):R(U,z)?(x(U),_(z,12,W(U))):k(U,z)?(x(U),we==="{"?ve(U,z)||Ee:_(z,11,q(U))):(ee===8&&p(at.INVALID_LINKED_FORMAT,n(),0),z.braceNest=0,z.inLinked=!1,be(U,z))}}function be(U,z){let ee={type:14};if(z.braceNest>0)return ve(U,z)||b(z);if(z.inLinked)return ge(U,z)||b(z);switch(U.currentChar()){case"{":return ve(U,z)||b(z);case"}":return p(at.UNBALANCED_CLOSING_BRACE,n(),0),U.next(),_(z,3,"}");case"@":return ge(U,z)||b(z);default:{if(P(U))return ee=_(z,1,re(U)),z.braceNest=0,z.inLinked=!1,ee;const{isModulo:we,hasSpace:xe}=j(U);if(we)return xe?_(z,0,Ge(U)):_(z,4,qe(U));if(F(U))return _(z,0,Ge(U));break}}return ee}function Pe(){const{currentType:U,offset:z,startLoc:ee,endLoc:Ee}=l;return l.lastType=U,l.lastOffset=z,l.lastStartLoc=ee,l.lastEndLoc=Ee,l.offset=r(),l.startLoc=n(),i.currentChar()===Ja?_(l,14):be(i,l)}return{nextToken:Pe,currentOffset:r,currentPosition:n,context:c}}const lF="parser",uF=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function cF(t,e,s){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const i=parseInt(e||s,16);return i<=55295||i>=57344?String.fromCodePoint(i):"�"}}}function dF(t={}){const e=t.location!==!1,{onError:s,onWarn:i}=t;function r(S,E,w,O,...R){const $=S.currentPosition();if($.offset+=O,$.column+=O,s){const k=e?Vp(w,$):null,P=mc(E,k,{domain:lF,args:R});s(P)}}function n(S,E,w,O,...R){const $=S.currentPosition();if($.offset+=O,$.column+=O,i){const k=e?Vp(w,$):null;i(J6(E,k,R))}}function a(S,E,w){const O={type:S};return e&&(O.start=E,O.end=E,O.loc={start:w,end:w}),O}function o(S,E,w,O){e&&(S.end=E,S.loc&&(S.loc.end=w))}function l(S,E){const w=S.context(),O=a(3,w.offset,w.startLoc);return O.value=E,o(O,S.currentOffset(),S.currentPosition()),O}function c(S,E){const w=S.context(),{lastOffset:O,lastStartLoc:R}=w,$=a(5,O,R);return $.index=parseInt(E,10),S.nextToken(),o($,S.currentOffset(),S.currentPosition()),$}function d(S,E,w){const O=S.context(),{lastOffset:R,lastStartLoc:$}=O,k=a(4,R,$);return k.key=E,w===!0&&(k.modulo=!0),S.nextToken(),o(k,S.currentOffset(),S.currentPosition()),k}function p(S,E){const w=S.context(),{lastOffset:O,lastStartLoc:R}=w,$=a(9,O,R);return $.value=E.replace(uF,cF),S.nextToken(),o($,S.currentOffset(),S.currentPosition()),$}function _(S){const E=S.nextToken(),w=S.context(),{lastOffset:O,lastStartLoc:R}=w,$=a(8,O,R);return E.type!==12?(r(S,at.UNEXPECTED_EMPTY_LINKED_MODIFIER,w.lastStartLoc,0),$.value="",o($,O,R),{nextConsumeToken:E,node:$}):(E.value==null&&r(S,at.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Yr(E)),$.value=E.value||"",o($,S.currentOffset(),S.currentPosition()),{node:$})}function b(S,E){const w=S.context(),O=a(7,w.offset,w.startLoc);return O.value=E,o(O,S.currentOffset(),S.currentPosition()),O}function T(S){const E=S.context(),w=a(6,E.offset,E.startLoc);let O=S.nextToken();if(O.type===9){const R=_(S);w.modifier=R.node,O=R.nextConsumeToken||S.nextToken()}switch(O.type!==10&&r(S,at.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Yr(O)),O=S.nextToken(),O.type===2&&(O=S.nextToken()),O.type){case 11:O.value==null&&r(S,at.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Yr(O)),w.key=b(S,O.value||"");break;case 5:O.value==null&&r(S,at.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Yr(O)),w.key=d(S,O.value||"");break;case 6:O.value==null&&r(S,at.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Yr(O)),w.key=c(S,O.value||"");break;case 7:O.value==null&&r(S,at.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Yr(O)),w.key=p(S,O.value||"");break;default:{r(S,at.UNEXPECTED_EMPTY_LINKED_KEY,E.lastStartLoc,0);const R=S.context(),$=a(7,R.offset,R.startLoc);return $.value="",o($,R.offset,R.startLoc),w.key=$,o(w,R.offset,R.startLoc),{nextConsumeToken:O,node:w}}}return o(w,S.currentOffset(),S.currentPosition()),{node:w}}function y(S){const E=S.context(),w=E.currentType===1?S.currentOffset():E.offset,O=E.currentType===1?E.endLoc:E.startLoc,R=a(2,w,O);R.items=[];let $=null,k=null;do{const F=$||S.nextToken();switch($=null,F.type){case 0:F.value==null&&r(S,at.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Yr(F)),R.items.push(l(S,F.value||""));break;case 6:F.value==null&&r(S,at.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Yr(F)),R.items.push(c(S,F.value||""));break;case 4:k=!0;break;case 5:F.value==null&&r(S,at.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Yr(F)),R.items.push(d(S,F.value||"",!!k)),k&&
40(n(S,WT.USE_MODULO_SYNTAX,E.lastStartLoc,0,Yr(F)),k=null);break;case 7:F.value==null&&r(S,at.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Yr(F)),R.items.push(p(S,F.value||""));break;case 8:{const H=T(S);R.items.push(H.node),$=H.nextConsumeToken||null;break}}}while(E.currentType!==14&&E.currentType!==1);const P=E.currentType===1?E.lastOffset:S.currentOffset(),j=E.currentType===1?E.lastEndLoc:S.currentPosition();return o(R,P,j),R}function x(S,E,w,O){const R=S.context();let $=O.items.length===0;const k=a(1,E,w);k.cases=[],k.cases.push(O);do{const P=y(S);$||($=P.items.length===0),k.cases.push(P)}while(R.currentType!==14);return $&&r(S,at.MUST_HAVE_MESSAGES_IN_PLURAL,w,0),o(k,S.currentOffset(),S.currentPosition()),k}function A(S){const E=S.context(),{offset:w,startLoc:O}=E,R=y(S);return E.currentType===14?R:x(S,w,O,R)}function C(S){const E=oF(S,VD({},t)),w=E.context(),O=a(0,w.offset,w.startLoc);return e&&O.loc&&(O.loc.source=S),O.body=A(E),t.onCacheKey&&(O.cacheKey=t.onCacheKey(S)),w.currentType!==14&&r(E,at.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,S[w.offset]||""),o(O,E.currentOffset(),E.currentPosition()),O}return{parse:C}}function Yr(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function hF(t,e={}){const s={ast:t,helpers:new Set};return{context:()=>s,helper:n=>(s.helpers.add(n),n)}}function o2(t,e){for(let s=0;s<t.length;s++)XT(t[s],e)}function XT(t,e){switch(t.type){case 1:o2(t.cases,e),e.helper("plural");break;case 2:o2(t.items,e);break;case 6:{XT(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function fF(t,e={}){const s=hF(t);s.helper("normalize"),t.body&&XT(t.body,s);const i=s.context();t.helpers=Array.from(i.helpers)}function pF(t){const e=t.body;return e.type===2?l2(e):e.cases.forEach(s=>l2(s)),t}function l2(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let s=0;s<t.items.length;s++){const i=t.items[s];if(!(i.type===3||i.type===9)||i.value==null)break;e.push(i.value)}if(e.length===t.items.length){t.static=zD(e);for(let s=0;s<t.items.length;s++){const i=t.items[s];(i.type===3||i.type===9)&&delete i.value}}}}const mF="minifier";function tu(t){switch(t.t=t.type,t.type){case 0:{const e=t;tu(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,s=e.cases;for(let i=0;i<s.length;i++)tu(s[i]);e.c=s,delete e.cases;break}case 2:{const e=t,s=e.items;for(let i=0;i<s.length;i++)tu(s[i]);e.i=s,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;tu(e.key),e.k=e.key,delete e.key,e.modifier&&(tu(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}default:throw mc(at.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:mF,args:[t.type]})}delete t.type}const gF="parser";function yF(t,e){const{filename:s,breakLineCode:i,needIndent:r}
vendor: 5,013 bytes, lines 40-45
40=e,n=e.location!==!1,a={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:r,indentLevel:0};n&&t.loc&&(a.source=t.loc.source);const o=()=>a;function l(y,x){a.code+=y}function c(y,x=!0){const A=x?i:"";l(r?A+"  ".repeat(y):A)}function d(y=!0){const x=++a.indentLevel;y&&c(x)}function p(y=!0){const x=--a.indentLevel;y&&c(x)}function _(){c(a.indentLevel)}return{context:o,push:l,indent:d,deindent:p,newline:_,helper:y=>`_${y}`,needIndent:()=>a.needIndent}}function _F(t,e){const{helper:s}=t;t.push(`${s("linked")}(`),Bu(t,e.key),e.modifier?(t.push(", "),Bu(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function vF(t,e){const{helper:s,needIndent:i}=t;t.push(`${s("normalize")}([`),t.indent(i());const r=e.items.length;for(let n=0;n<r&&(Bu(t,e.items[n]),n!==r-1);n++)t.push(", ");t.deindent(i()),t.push("])")}function bF(t,e){const{helper:s,needIndent:i}=t;if(e.cases.length>1){t.push(`${s("plural")}([`),t.indent(i());const r=e.cases.length;for(let n=0;n<r&&(Bu(t,e.cases[n]),n!==r-1);n++)t.push(", ");t.deindent(i()),t.push("])")}}function TF(t,e){e.body?Bu(t,e.body):t.push("null")}function Bu(t,e){const{helper:s}=t;switch(e.type){case 0:TF(t,e);break;case 1:bF(t,e);break;case 2:vF(t,e);break;case 6:_F(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${s("interpolate")}(${s("list")}(${e.index}))`,e);break;case 4:t.push(`${s("interpolate")}(${s("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:throw mc(at.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:gF,args:[e.type]})}}const SF=(t,e={})=>{const s=n2(e.mode)?e.mode:"normal",i=n2(e.filename)?e.filename:"message.intl";e.sourceMap;const r=e.breakLineCode!=null?e.breakLineCode:s==="arrow"?";":`
41`,n=e.needIndent?e.needIndent:s!=="arrow",a=t.helpers||[],o=yF(t,{filename:i,breakLineCode:r,needIndent:n});o.push(s==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),o.indent(n),a.length>0&&(o.push(`const { ${zD(a.map(d=>`${d}: _${d}`),", ")} } = ctx`),o.newline()),o.push("return "),Bu(o,t),o.deindent(n),o.push("}"),delete t.helpers;const{code:l,map:c}=o.context();return{ast:t,code:l,map:c?c.toJSON():void 0}};function EF(t,e={}){const s=VD({},e),i=!!s.jit,r=!!s.minify,n=s.optimize==null?!0:s.optimize,o=dF(s).parse(t);return i?(n&&pF(o),r&&tu(o),{ast:o,code:""}):(fF(o,s),SF(o,s))}/*!
42  * core-base v9.13.1
43  * (c) 2024 kazuya kawaguchi
44  * Released under the MIT License.
45  */function xF(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Da().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Da().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Da().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Po=[];Po[0]={w:[0],i:[3,0],"[":[4],o:[7]};Po[1]={w:[1],".":[2],"[":[4],o:[7]};Po[2]={w:[2],i:[3,0],0:[3,0]};Po[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Po[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Po[5]={"'":[4,0],o:8,l:[5,0]};Po[6]={'"':[4,0],o:8,l:[6,0]};const CF=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function wF(t){return CF.test(t)}function AF(t){const e=t.charCodeAt(0),s=t.charCodeAt(t.length-1);return e===s&&(e===34||e===39)?t.slice(1,-1):t}function kF(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function DF(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:wF(e)?AF(e):"*"+e}function IF(t){const e=[];let s=-1,i=0,r=0,n,a,o,l,c,d,p;const _=[];_[0]=()=>{a===void 0?a=o:a+=o},_[1]=()=>{a!==void 0&&(e.push(a),a=void 0)},_[2]=()=>{_[0](),r++},_[3]=()=>{if(r>0)r--,i=4,_[0]();else{if(r=0,a===void 0||(a=DF(a),a===!1))return!1;_[1]()}};function b(){const T=t[s+1];if(i===5&&T==="'"||i===6&&T==='"')return s++,o="\\"+T,_[0](),!0}for(;i!==null;)if(s++,n=t[s],!(n==="\\"&&b())){if(l=kF(n),p=Po[i],c=p[l]||p.l||8,c===8||(i=c[0],c[1]!==void 0&&(d=_[c[1]],d&&(o=n,d()===!1))))return;if(i===7)return e}}const u2=new Map;function PF(t,e){return Bt(t)?t[e]:null}function LF(t,e){if(!Bt(t))return null;let s=u2.get(e);if(s||(s=IF(e),s&&u2.set(e,s)),!s)return null;const i=s.length;let r=t,n=0;for(;n<i;){const a=r[s[n]];if(a===void 0||Xt(r))return null;r=a,n++}return r}const OF=t=>t,NF=t=>"",RF="text",MF=t=>t.length===0?"":G6(t),FF=z6;function c2(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function BF(t){const e=Is(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Is(t.named.count)||Is(t.named.n))?Is(t.named.count)?t.named.count:Is(t.named.n)?t.named.n:e:e}function UF(t,e){e.count||(e.count=t),e.n||(e.n=t)}function $F(t={}){const e=t.locale,s=BF(t),i=Bt(t.pluralRules)&&$e(e)&&Xt(t.pluralRules[e])?t.pluralRules[e]:c2,r=Bt(t.pluralRules)&&$e(e)&&Xt(t.pluralRules[e])?c2:void 0,n=A=>A[i(s,A.length,r)],a=t.list||[],o=A=>
45a[A],l=t.named||{};Is(t.pluralIndex)&&UF(s,l);const c=A=>l[A];function d(A){const C=Xt(t.messages)?t.messages(A):Bt(t.messages)?t.messages[A]:!1;return C||(t.parent?t.parent.message(A):NF)}const p=A=>t.modifiers?t.modifiers[A]:OF,_=lt(t.processor)&&Xt(t.processor.normalize)?t.processor.normalize:MF,b=lt(t.processor)&&Xt(t.processor.interpolate)?t.processor.interpolate:FF,T=lt(t.processor)&&$e(t.processor.type)?t.processor.type:RF,x={list:o,named:c,plural:n,linked:(A,...C)=>{const[S,E]=C;let w="text",O="";C.length===1?Bt(S)?(O=S.modifier||O,w=S.type||w):$e(S)&&(O=S||O):C.length===2&&($e(S)&&(O=S||O),$e(E)&&(w=E||w));const R=d(A)(x),$=w==="vnode"&&rs(R)&&O?R[0]:R;return O?p(O)($,w):$},message:d,type:T,interpolate:b,normalize:_,values:Ks({},a,l)};return x}let $h=null;function jF(t){$h=t}function HF(t,e,s){$h&&$h.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:s})}const qF=VF("function:translate");function VF(t){return e=>$h&&$h.emit(t,e)}const zF=WT.__EXTEND_POINT__,Zo=og(zF),GF={FALLBACK_TO_TRANSLATE:Zo(),CANNOT_FORMAT_NUMBER:Zo(),FALLBACK_TO_NUMBER_FORMAT:Zo(),CANNOT_FORMAT_DATE:Zo(),FALLBACK_TO_DATE_FORMAT:Zo(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Zo(),__EXTEND_POINT__:Zo()},GD=at.__EXTEND_POINT__,el=og(GD),Jr={INVALID_ARGUMENT:GD,INVALID_DATE_ARGUMENT:el(),INVALID_ISO_DATE_ARGUMENT:el(),NOT_SUPPORT_NON_STRING_MESSAGE:el(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:el(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:el(),NOT_SUPPORT_LOCALE_TYPE:el(),__EXTEND_POINT__:el()};function En(t){return mc(t,null,void 0)}function KT(t,e){return e.locale!=null?d2(e.locale):d2(t.locale)}let o_;function d2(t){if($e(t))return t;if(Xt(t)){if(t.resolvedOnce&&o_!=null)return o_;if(t.constructor.name==="Function"){const e=t();if(V6(e))throw En(Jr.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return o_=e}else throw En(Jr.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw En(Jr.NOT_SUPPORT_LOCALE_TYPE)}function WF(t,e,s){return[...new Set([s,...rs(e)?e:Bt(e)?Object.keys(e):$e(e)?[e]:[s]])]}function WD(t,e,s){const i=$e(s)?s:Uu,r=t;r.__localeChainCache||(r.__localeChainCache=new Map);let n=r.__localeChainCache.get(i);if(!n){n=[];let a=[s];for(;rs(a);)a=h2(n,a,e);const o=rs(e)||!lt(e)?e:e.default?e.default:null;a=$e(o)?[o]:o,rs(a)&&h2(n,a,!1),r.__localeChainCache.set(i,n)}return n}function h2(t,e,s){let i=!0;for(let r=0;r<e.length&&Ct(i);r++){const n=e[r];$e(n)&&(i=XF(t,e[r],s))}return i}function XF(t,e,s){let i;const r=e.split("-");do{const n=r.join("-");i=KF(t,n,s),r.splice(-1,1)}while(r.length&&i===!0);return i}function KF(t,e,s){let i=!1;if(!t.includes(e)&&(i=!0,e)){i=e[e.length-1]!=="!";const r=e.replace(/!/g,"");t.push(r),(rs(s)||lt(s))&&s[r]&&(i=s[r])}return i}const YF="9.13.1",lg=-1,Uu="en-US",f2="",p2=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function QF(){return{upper:(t,e)=>e==="text"&&$e(t)?t.toUpperCase():e==="vnode"&&Bt(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&$e(t)?t.toLowerCase():e==="vnode"&&Bt(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&$e(t)?p2(t):e==="vnode"&&Bt(t)&&"__v_isVNode"in t?p2(t.children):t}}let XD;function m2(t){XD=t}let KD;function JF(t){KD=t}let YD;function ZF(t){YD=t}let QD=null;const eB=t=>{QD=t},tB=()=>QD;let JD=null;const g2=t=>{JD=t},sB=()=>JD;let y2=0;function iB(t={}){const e=Xt(t.onWarn)?t.onWarn:W6,s=$e(t.version)?t.version:YF,i=$e(t.locale)||Xt(t.locale)?t.locale:Uu,r=Xt(i)?Uu:i,n=rs(t.fallbackLocale)||lt(t.fallbackLocale)||$e(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,a=lt(t.messages)?t.messages:{[r]:{}},o=lt(t.datetimeFormats)?t.datetimeFormats:{[r]:{}},l=lt(t.numberFormats)?t.numberFormats:{[r]:{}},c=Ks({},t.modifiers||{},QF()),d=t.pluralRules||{},p=Xt(t.missing)?t.missing:null,_=Ct(t.missingWarn)||Eo(t.missingWarn)?t.missingWarn:!0,b=Ct(t.fallbackWarn)||Eo(t.fallbackWarn)?t.fallbackWarn:!0,T=!!t.fallbackFormat,y=!!t.unresolving,x=Xt(t.postTranslation)?t.postTranslation:null,A=lt(t.processor)?t.processor:null,C=Ct(t.warnHtmlMessage)?t.warnHtmlMessage:!0,S=!!t.escapeParameter,E=Xt(t.messageCompiler)?t.messageCompiler:XD,w=Xt(t.messageResolver)?t.messageResolver:KD||PF,O=Xt(t.localeFallbacker)?t.localeFallbacker:YD||WF,R=Bt(t.fallbackContext)?t.fallbackContext:void 0,$=t,k=Bt($.__datetimeFormatters)?$.__datetimeFormatters:new Map,P=Bt($.__numberFormatters)?$.__numberFormatters:new Map,j=Bt
45($.__meta)?$.__meta:{};y2++;const F={version:s,cid:y2,locale:i,fallbackLocale:n,messages:a,modifiers:c,pluralRules:d,missing:p,missingWarn:_,fallbackWarn:b,fallbackFormat:T,unresolving:y,postTranslation:x,processor:A,warnHtmlMessage:C,escapeParameter:S,messageCompiler:E,messageResolver:w,localeFallbacker:O,fallbackContext:R,onWarn:e,__meta:j};return F.datetimeFormats=o,F.numberFormats=l,F.__datetimeFormatters=k,F.__numberFormatters=P,__INTLIFY_PROD_DEVTOOLS__&&HF(F,s,j),F}function YT(t,e,s,i,r){const{missing:n,onWarn:a}=t;if(n!==null){const o=n(t,s,e,r);return $e(o)?o:e}else return e}function Dd(t,e,s){const i=t;i.__localeChainCache=new Map,t.localeFallbacker(t,s,e)}function rB(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function nB(t,e){const s=e.indexOf(t);if(s===-1)return!1;for(let i=s+1;i<e.length;i++)if(rB(t,e[i]))return!0;return!1}function l_(t){return s=>aB(s,t)}function aB(t,e){const s=e.b||e.body;if((s.t||s.type)===1){const i=s,r=i.c||i.cases;return t.plural(r.reduce((n,a)=>[...n,_2(t,a)],[]))}else return _2(t,s)}function _2(t,e){const s=e.s||e.static;if(s)return t.type==="text"?s:t.normalize([s]);{const i=(e.i||e.items).reduce((r,n)=>[...r,zv(t,n)],[]);return t.normalize(i)}}function zv(t,e){const s=e.t||e.type;switch(s){case 3:{const i=e;return i.v||i.value}case 9:{const i=e;return i.v||i.value}case 4:{const i=e;return t.interpolate(t.named(i.k||i.key))}case 5:{const i=e;return t.interpolate(t.list(i.i!=null?i.i:i.index))}case 6:{const i=e,r=i.m||i.modifier;return t.linked(zv(t,i.k||i.key),r?zv(t,r):void 0,t.type)}case 7:{const i=e;return i.v||i.value}case 8:{const i=e;return i.v||i.value}default:throw new Error(`unhandled node type on format message part: ${s}`)}}const ZD=t=>t;let iu=Object.create(null);const $u=t=>Bt(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t);function eI(t,e={}){let s=!1;const i=e.onError||eF;return e.onError=r=>{s=!0,i(r)},{...EF(t,e),detectError:s}}const oB=(t,e)=>{if(!$e(t))throw En(Jr.NOT_SUPPORT_NON_STRING_MESSAGE);{Ct(e.warnHtmlMessage)&&e.warnHtmlMessage;const i=(e.onCacheKey||ZD)(t),r=iu[i];if(r)return r;const{code:n,detectError:a}=eI(t,e),o=new Function(`return ${n}`)();return a?o:iu[i]=o}};function lB(t,e){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&$e(t)){Ct(e.warnHtmlMessage)&&e.warnHtmlMessage;const i=(e.onCacheKey||ZD)(t),r=iu[i];if(r)return r;const{ast:n,detectError:a}=eI(t,{...e,location:!1,jit:!0}),o=l_(n);return a?o:iu[i]=o}else{const s=t.cacheKey;if(s){const i=iu[s];return i||(iu[s]=l_(t))}else return l_(t)}}const v2=()=>"",Tr=t=>Xt(t);function b2(t,...e){const{fallbackFormat:s,postTranslation:i,unresolving:r,messageCompiler:n,fallbackLocale:a,messages:o}=t,[l,c]=Gv(...e),d=Ct(c.missingWarn)?c.missingWarn:t.missingWarn,p=Ct(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn,_=Ct(c.escapeParameter)?c.escapeParameter:t.escapeParameter,b=!!c.resolvedMessage,T=$e(c.default)||Ct(c.default)?Ct(c.default)?n?l:()=>l:c.default:s?n?l:()=>l:"",y=s||T!=="",x=KT(t,c);_&&uB(c);let[A,C,S]=b?[l,x,o[x]||{}]:tI(t,l,x,a,p,d),E=A,w=l;if(!b&&!($e(E)||$u(E)||Tr(E))&&y&&(E=T,w=E),!b&&(!($e(E)||$u(E)||Tr(E))||!$e(C)))return r?lg:l;let O=!1;const R=()=>{O=!0},$=Tr(E)?E:sI(t,l,C,E,w,R);if(O)return E;const k=hB(t,C,S,c),P=$F(k),j=cB(t,$,P),F=i?i(j,l):j;if(__INTLIFY_PROD_DEVTOOLS__){const H={timestamp:Date.now(),key:$e(l)?l:Tr(E)?E.key:"",locale:C||(Tr(E)?E.locale:""),format:$e(E)?E:Tr(E)?E.source:"",message:F};H.meta=Ks({},t.__meta,tB()||{}),qF(H)}return F}function uB(t){rs(t.list)?t.list=t.list.map(e=>$e(e)?r2(e):e):Bt(t.named)&&Object.keys(t.named).forEach(e=>{$e(t.named[e])&&(t.named[e]=r2(t.named[e]))})}function tI(t,e,s,i,r,n){const{messages:a,onWarn:o,messageResolver:l,localeFallbacker:c}=t,d=c(t,i,s);let p={},_,b=null;const T="translate";for(let y=0;y<d.length&&(_=d[y],p=a[_]||{},(b=l(p,e))===null&&(b=p[e]),!($e(b)||$u(b)||Tr(b)));y++)if(!nB(_,d)){const x=YT(t,e,_,n,T);x!==e&&(b=x)}return[b,_,p]}function sI(t,e,s,i,r,n){const{messageCompiler:a,warnHtmlMessage:o}=t;if(Tr(i)){const c=i;return c.locale=c.locale||s,c.key=c.key||e,c}if(a==null){const c=()=>i;return c.locale=s,c.key=e,c}const l=a(i,dB(t,s,r,i,o,n));return l.locale=s,l.key=e,l.source=i,l}function cB(t,e,s){return e(s)}function Gv(...t){const[e,s,i]=t,r={};if(!$e(e)&&!Is(e)&&!Tr(e)&&!$u(e))throw En(Jr.INVALID_ARGUMENT);const n=Is(e)?String(e):(Tr(e),e);return Is(s)?r.plural=s:$e(s)?r.default=s:lt(s)&&!ag(s)?r.named=s:rs(s)&&(r.list=s),Is(i)?r.plural=i:$e(i)?r.default=i:lt(i)&&Ks(r,i),[n,r]}function dB(t,e,s,i,r,n){return{locale:e,key:s,warnHtmlMessage:r,onError:a=>{throw n&&n(a),a},onCacheKey:a=>$6(e,s,a)}}function hB(t,e,s,i){const{modifiers:r,pluralRules:n,messageResolver:a,fallbackLocale:o,fallbackWarn:l,missingWarn:c,fallbackContext:d}=t,_={locale:e,modifiers:r,pluralRules:n,messages:b=>{let T=a(s,b);
45if(T==null&&d){const[,,y]=tI(d,b,e,o,l,c);T=a(y,b)}if($e(T)||$u(T)){let y=!1;const A=sI(t,b,e,T,b,()=>{y=!0});return y?v2:A}else return Tr(T)?T:v2}};return t.processor&&(_.processor=t.processor),i.list&&(_.list=i.list),i.named&&(_.named=i.named),Is(i.plural)&&(_.pluralIndex=i.plural),_}function T2(t,...e){const{datetimeFormats:s,unresolving:i,fallbackLocale:r,onWarn:n,localeFallbacker:a}=t,{__datetimeFormatters:o}=t,[l,c,d,p]=Wv(...e),_=Ct(d.missingWarn)?d.missingWarn:t.missingWarn;Ct(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn;const b=!!d.part,T=KT(t,d),y=a(t,r,T);if(!$e(l)||l==="")return new Intl.DateTimeFormat(T,p).format(c);let x={},A,C=null;const S="datetime format";for(let O=0;O<y.length&&(A=y[O],x=s[A]||{},C=x[l],!lt(C));O++)YT(t,l,A,_,S);if(!lt(C)||!$e(A))return i?lg:l;let E=`${A}__${l}`;ag(p)||(E=`${E}__${JSON.stringify(p)}`);let w=o.get(E);return w||(w=new Intl.DateTimeFormat(A,Ks({},C,p)),o.set(E,w)),b?w.formatToParts(c):w.format(c)}const iI=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Wv(...t){const[e,s,i,r]=t,n={};let a={},o;if($e(e)){const l=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw En(Jr.INVALID_ISO_DATE_ARGUMENT);const c=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();o=new Date(c);try{o.toISOString()}catch{throw En(Jr.INVALID_ISO_DATE_ARGUMENT)}}else if(H6(e)){if(isNaN(e.getTime()))throw En(Jr.INVALID_DATE_ARGUMENT);o=e}else if(Is(e))o=e;else throw En(Jr.INVALID_ARGUMENT);return $e(s)?n.key=s:lt(s)&&Object.keys(s).forEach(l=>{iI.includes(l)?a[l]=s[l]:n[l]=s[l]}),$e(i)?n.locale=i:lt(i)&&(a=i),lt(r)&&(a=r),[n.key||"",o,n,a]}function S2(t,e,s){const i=t;for(const r in s){const n=`${e}__${r}`;i.__datetimeFormatters.has(n)&&i.__datetimeFormatters.delete(n)}}function E2(t,...e){const{numberFormats:s,unresolving:i,fallbackLocale:r,onWarn:n,localeFallbacker:a}=t,{__numberFormatters:o}=t,[l,c,d,p]=Xv(...e),_=Ct(d.missingWarn)?d.missingWarn:t.missingWarn;Ct(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn;const b=!!d.part,T=KT(t,d),y=a(t,r,T);if(!$e(l)||l==="")return new Intl.NumberFormat(T,p).format(c);let x={},A,C=null;const S="number format";for(let O=0;O<y.length&&(A=y[O],x=s[A]||{},C=x[l],!lt(C));O++)YT(t,l,A,_,S);if(!lt(C)||!$e(A))return i?lg:l;let E=`${A}__${l}`;ag(p)||(E=`${E}__${JSON.stringify(p)}`);let w=o.get(E);return w||(w=new Intl.NumberFormat(A,Ks({},C,p)),o.set(E,w)),b?w.formatToParts(c):w.format(c)}const rI=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Xv(...t){const[e,s,i,r]=t,n={};let a={};if(!Is(e))throw En(Jr.INVALID_ARGUMENT);const o=e;return $e(s)?n.key=s:lt(s)&&Object.keys(s).forEach(l=>{rI.includes(l)?a[l]=s[l]:n[l]=s[l]}),$e(i)?n.locale=i:lt(i)&&(a=i),lt(r)&&(a=r),[n.key||"",o,n,a]}function x2(t,e,s){const i=t;for(const r in s){const n=`${e}__${r}`;i.__numberFormatters.has(n)&&i.__numberFormatters.delete(n)}}xF();/*!
46  * vue-i18n v9.13.1
47  * (c) 2024 kazuya kawaguchi
48  * Released under the MIT License.
49  */const fB="9.13.1";function pB(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Da().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Da().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Da().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Da().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Da().__INTLIFY_PROD_DEVTOOLS__=!1)}const mB=GF.__EXTEND_POINT__,ba=og(mB);ba(),ba(),ba(),ba(),ba(),ba(),ba(),ba(),ba();const nI=Jr.__EXTEND_POINT__,Ni=og(nI),Ls={UNEXPECTED_RETURN_TYPE:nI,INVALID_ARGUMENT:Ni(),MUST_BE_CALL_SETUP_TOP:Ni(),NOT_INSTALLED:Ni(),NOT_AVAILABLE_IN_LEGACY_MODE:Ni(),REQUIRED_VALUE:Ni(),INVALID_VALUE:Ni(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ni(),NOT_INSTALLED_WITH_PROVIDE:Ni(),UNEXPECTED_ERROR:Ni(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ni(),BRIDGE_SUPPORT_VUE_2_ONLY:Ni(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ni(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ni(),__EXTEND_POINT__:Ni()};function js(t,...e){return mc(t,null,void 0)}const Kv=Io("__translateVNode"),Yv=Io("__datetimeParts"),Qv=Io("__numberParts"),aI=Io("__setPluralRules"),oI=Io("__injectWithOption"),Jv=Io("__dispose");function jh(t){if(!Bt(t))return t;for(const e in t)if(qp(t,e))if(!e.includes("."))Bt(t[e])&&jh(t[e]);else{const s=e.split("."),i=s.length-1;let r=t,n=!1;for(let a=0;a<i;a++){if(s[a]in r||(r[s[a]]={}),!Bt(r[s[a]])){n=!0;break}r=r[s[a]]}n||(r[s[i]]=t[e],delete t[e]),Bt(r[s[i]])&&jh(r[s[i]])}return t}function ug(t,e){const{messages:s,__i18n:i,messageResolver:r,flatJson:n}=e,a=lt(s)?s:rs(i)?{}:{[t]:{}};
49if(rs(i)&&i.forEach(o=>{if("locale"in o&&"resource"in o){const{locale:l,resource:c}=o;l?(a[l]=a[l]||{},fp(c,a[l])):fp(c,a)}else $e(o)&&fp(JSON.parse(o),a)}),r==null&&n)for(const o in a)qp(a,o)&&jh(a[o]);return a}function lI(t){return t.type}function uI(t,e,s){let i=Bt(e.messages)?e.messages:{};"__i18nGlobal"in s&&(i=ug(t.locale.value,{messages:i,__i18n:s.__i18nGlobal}));const r=Object.keys(i);r.length&&r.forEach(n=>{t.mergeLocaleMessage(n,i[n])});{if(Bt(e.datetimeFormats)){const n=Object.keys(e.datetimeFormats);n.length&&n.forEach(a=>{t.mergeDateTimeFormat(a,e.datetimeFormats[a])})}if(Bt(e.numberFormats)){const n=Object.keys(e.numberFormats);n.length&&n.forEach(a=>{t.mergeNumberFormat(a,e.numberFormats[a])})}}}function C2(t){return ze(Na,null,t,0)}const w2="__INTLIFY_META__",A2=()=>[],gB=()=>!1;let k2=0;function D2(t){return(e,s,i,r)=>t(s,i,Ys()||void 0,r)}const yB=()=>{const t=Ys();let e=null;return t&&(e=lI(t)[w2])?{[w2]:e}:null};function QT(t={},e){const{__root:s,__injectWithOption:i}=t,r=s===void 0,n=t.flatJson,a=Hp?Je:of,o=!!t.translateExistCompatible;let l=Ct(t.inheritLocale)?t.inheritLocale:!0;const c=a(s&&l?s.locale.value:$e(t.locale)?t.locale:Uu),d=a(s&&l?s.fallbackLocale.value:$e(t.fallbackLocale)||rs(t.fallbackLocale)||lt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:c.value),p=a(ug(c.value,t)),_=a(lt(t.datetimeFormats)?t.datetimeFormats:{[c.value]:{}}),b=a(lt(t.numberFormats)?t.numberFormats:{[c.value]:{}});let T=s?s.missingWarn:Ct(t.missingWarn)||Eo(t.missingWarn)?t.missingWarn:!0,y=s?s.fallbackWarn:Ct(t.fallbackWarn)||Eo(t.fallbackWarn)?t.fallbackWarn:!0,x=s?s.fallbackRoot:Ct(t.fallbackRoot)?t.fallbackRoot:!0,A=!!t.fallbackFormat,C=Xt(t.missing)?t.missing:null,S=Xt(t.missing)?D2(t.missing):null,E=Xt(t.postTranslation)?t.postTranslation:null,w=s?s.warnHtmlMessage:Ct(t.warnHtmlMessage)?t.warnHtmlMessage:!0,O=!!t.escapeParameter;const R=s?s.modifiers:lt(t.modifiers)?t.modifiers:{};let $=t.pluralRules||s&&s.pluralRules,k;k=(()=>{r&&g2(null);const ae={version:fB,locale:c.value,fallbackLocale:d.value,messages:p.value,modifiers:R,pluralRules:$,missing:S===null?void 0:S,missingWarn:T,fallbackWarn:y,fallbackFormat:A,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:w,escapeParameter:O,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};ae.datetimeFormats=_.value,ae.numberFormats=b.value,ae.__datetimeFormatters=lt(k)?k.__datetimeFormatters:void 0,ae.__numberFormatters=lt(k)?k.__numberFormatters:void 0;const ce=iB(ae);return r&&g2(ce),ce})(),Dd(k,c.value,d.value);function j(){return[c.value,d.value,p.value,_.value,b.value]}const F=mt({get:()=>c.value,set:ae=>{c.value=ae,k.locale=c.value}}),H=mt({get:()=>d.value,set:ae=>{d.value=ae,k.fallbackLocale=d.value,Dd(k,c.value,ae)}}),te=mt(()=>p.value),oe=mt(()=>_.value),se=mt(()=>b.value);function K(){return Xt(E)?E:null}function X(ae){E=ae,k.postTranslation=ae}function ne(){return C}function de(ae){ae!==null&&(S=D2(ae)),C=ae,k.missing=S}const he=(ae,ce,Ve,Ke,Pt,Lt)=>{j();let Ue;try{__INTLIFY_PROD_DEVTOOLS__,r||(k.fallbackContext=s?sB():void 0),Ue=ae(k)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(k.fallbackContext=void 0)}if(Ve!=="translate exists"&&Is(Ue)&&Ue===lg||Ve==="translate exists"&&!Ue){const[fs,ws]=ce();return s&&x?Ke(s):Pt(fs)}else{if(Lt(Ue))return Ue;throw js(Ls.UNEXPECTED_RETURN_TYPE)}};function Le(...ae){return he(ce=>Reflect.apply(b2,null,[ce,...ae]),()=>Gv(...ae),"translate",ce=>Reflect.apply(ce.t,ce,[...ae]),ce=>ce,ce=>$e(ce))}function qe(...ae){const[ce,Ve,Ke]=ae;if(Ke&&!Bt(Ke))throw js(Ls.INVALID_ARGUMENT);return Le(ce,Ve,Ks({resolvedMessage:!0},Ke||{}))}function Ge(...ae){return he(ce=>Reflect.apply(T2,null,[ce,...ae]),()=>Wv(...ae),"datetime format",ce=>Reflect.apply(ce.d,ce,[...ae]),()=>f2,ce=>$e(ce))}function Xe(...ae){return he(ce=>Reflect.apply(E2,null,[ce,...ae]),()=>Xv(...ae),"number format",ce=>Reflect.apply(ce.n,ce,[...ae]),()=>f2,ce=>$e(ce))}function Et(ae){return ae.map(ce=>$e(ce)||Is(ce)||Ct(ce)?C2(String(ce)):ce)}const Ie={normalize:Et,interpolate:ae=>ae,type:"vnode"};function De(...ae){return he(ce=>{let Ve;const Ke=ce;try{Ke.processor=Ie,Ve=Reflect.apply(b2,null,[Ke,...ae])}finally{Ke.processor=null}return Ve},()=>Gv(...ae),"translate",ce=>ce[Kv](...ae),ce=>[C2(ce)],ce=>rs(ce))}function Fe(...ae){return he(ce=>
49Reflect.apply(E2,null,[ce,...ae]),()=>Xv(...ae),"number format",ce=>ce[Qv](...ae),A2,ce=>$e(ce)||rs(ce))}function Ze(...ae){return he(ce=>Reflect.apply(T2,null,[ce,...ae]),()=>Wv(...ae),"datetime format",ce=>ce[Yv](...ae),A2,ce=>$e(ce)||rs(ce))}function rt(ae){$=ae,k.pluralRules=$}function W(ae,ce){return he(()=>{if(!ae)return!1;const Ve=$e(ce)?ce:c.value,Ke=ve(Ve),Pt=k.messageResolver(Ke,ae);return o?Pt!=null:$u(Pt)||Tr(Pt)||$e(Pt)},()=>[ae],"translate exists",Ve=>Reflect.apply(Ve.te,Ve,[ae,ce]),gB,Ve=>Ct(Ve))}function q(ae){let ce=null;const Ve=WD(k,d.value,c.value);for(let Ke=0;Ke<Ve.length;Ke++){const Pt=p.value[Ve[Ke]]||{},Lt=k.messageResolver(Pt,ae);if(Lt!=null){ce=Lt;break}}return ce}function re(ae){const ce=q(ae);return ce??(s?s.tm(ae)||{}:{})}function ve(ae){return p.value[ae]||{}}function ge(ae,ce){if(n){const Ve={[ae]:ce};for(const Ke in Ve)qp(Ve,Ke)&&jh(Ve[Ke]);ce=Ve[ae]}p.value[ae]=ce,k.messages=p.value}function be(ae,ce){p.value[ae]=p.value[ae]||{};const Ve={[ae]:ce};if(n)for(const Ke in Ve)qp(Ve,Ke)&&jh(Ve[Ke]);ce=Ve[ae],fp(ce,p.value[ae]),k.messages=p.value}function Pe(ae){return _.value[ae]||{}}function U(ae,ce){_.value[ae]=ce,k.datetimeFormats=_.value,S2(k,ae,ce)}function z(ae,ce){_.value[ae]=Ks(_.value[ae]||{},ce),k.datetimeFormats=_.value,S2(k,ae,ce)}function ee(ae){return b.value[ae]||{}}function Ee(ae,ce){b.value[ae]=ce,k.numberFormats=b.value,x2(k,ae,ce)}function we(ae,ce){b.value[ae]=Ks(b.value[ae]||{},ce),k.numberFormats=b.value,x2(k,ae,ce)}k2++,s&&Hp&&($s(s.locale,ae=>{l&&(c.value=ae,k.locale=ae,Dd(k,c.value,d.value))}),$s(s.fallbackLocale,ae=>{l&&(d.value=ae,k.fallbackLocale=ae,Dd(k,c.value,d.value))}));const xe={id:k2,locale:F,fallbackLocale:H,get inheritLocale(){return l},set inheritLocale(ae){l=ae,ae&&s&&(c.value=s.locale.value,d.value=s.fallbackLocale.value,Dd(k,c.value,d.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:te,get modifiers(){return R},get pluralRules(){return $||{}},get isGlobal(){return r},get missingWarn(){return T},set missingWarn(ae){T=ae,k.missingWarn=T},get fallbackWarn(){return y},set fallbackWarn(ae){y=ae,k.fallbackWarn=y},get fallbackRoot(){return x},set fallbackRoot(ae){x=ae},get fallbackFormat(){return A},set fallbackFormat(ae){A=ae,k.fallbackFormat=A},get warnHtmlMessage(){return w},set warnHtmlMessage(ae){w=ae,k.warnHtmlMessage=ae},get escapeParameter(){return O},set escapeParameter(ae){O=ae,k.escapeParameter=ae},t:Le,getLocaleMessage:ve,setLocaleMessage:ge,mergeLocaleMessage:be,getPostTranslationHandler:K,setPostTranslationHandler:X,getMissingHandler:ne,setMissingHandler:de,[aI]:rt};return xe.datetimeFormats=oe,xe.numberFormats=se,xe.rt=qe,xe.te=W,xe.tm=re,xe.d=Ge,xe.n=Xe,xe.getDateTimeFormat=Pe,xe.setDateTimeFormat=U,xe.mergeDateTimeFormat=z,xe.getNumberFormat=ee,xe.setNumberFormat=Ee,xe.mergeNumberFormat=we,xe[oI]=i,xe[Kv]=De,xe[Yv]=Ze,xe[Qv]=Fe,xe}function _B(t){const e=$e(t.locale)?t.locale:Uu,s=$e(t.fallbackLocale)||rs(t.fallbackLocale)||lt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:e,i=Xt(t.missing)?t.missing:void 0,r=Ct(t.silentTranslationWarn)||Eo(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,n=Ct(t.silentFallbackWarn)||Eo(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,a=Ct(t.fallbackRoot)?t.fallbackRoot:!0,o=!!t.formatFallbackMessages,l=lt(t.modifiers)?t.modifiers:{},c=t.pluralizationRules,d=Xt(t.postTranslation)?t.postTranslation:void 0,p=$e(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,_=!!t.escapeParameterHtml,b=Ct(t.sync)?t.sync:!0;let T=t.messages;if(lt(t.sharedMessages)){const O=t.sharedMessages;T=Object.keys(O).reduce(($,k)=>{const P=$[k]||($[k]={});return Ks(P,O[k]),$},T||{})}const{__i18n:y,__root:x,__injectWithOption:A}=t,C=t.datetimeFormats,S=t.numberFormats,E=t.flatJson,w=t.translateExistCompatible;return{locale:e,fallbackLocale:s,messages:T,flatJson:E,datetimeFormats:C,numberFormats:S,missing:i,missingWarn:r,fallbackWarn:n,fallbackRoot:a,fallbackFormat:o,modifiers:l,pluralRules:c,postTranslation:d,warnHtmlMessage:p,escapeParameter:_,messageResolver:t.messageResolver,inheritLocale:b,translateExistCompatible:w,__i18n:y,__root:x,__injectWithOption:A}}function Zv(t={},e){{const s=QT(_B(t)),{__extender:i}=t,r={id:s.id,get locale(){return s.locale.value},set locale(n){s.locale.value=n},get fallbackLocale(){return s.fallbackLocale.value},set fallbackLocale(n){s.fallbackLocale.value=n},get messages(){return s.messages.value},get datetimeFormats(){return s.datetimeFormats.value},get numberFormats(){return s.numberFormats.value},get availableLocales(){return s.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(n){},get missing(){return s.getMissingHandler()},set missing(n){s.setMissingHandler(n)},get silentTranslationWarn(){return Ct(s.missingWarn)?!s.missingWarn:s.missingWarn},set silentTranslationWarn(n){s.missingWarn=Ct(n)?!n:n},get silentFallbackWarn(){return Ct(s.fallbackWarn)?!s.fallbackWarn:s.fallbackWarn},set silentFallbackWarn(n){s.fallbackWarn=Ct(n)?!n:n},get modifiers(){return s.modifiers},get formatFallbackMessages(){return s.fallbackFormat},set formatFallbackMessages(n){s.fallbackFormat=n},get postTranslation(){return s.getPostTranslationHandler()},set postTranslation(n){s.setPostTranslationHandler(n)},get sync(){return s.inheritLocale},set sync(n){s.inheritLocale=n},get warnHtmlInMessage(){return s.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(n){s.warnHtmlMessage=n!=="off"},get escapeParameterHtml(){return s.escapeParameter},set escapeParameterHtml(n){s.escapeParameter=n},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(n){},get pluralizationRules(){return s.pluralRules||{}},__composer:s,t(...n){const[a,o,l]=n,c={};let d=null,p=null;if(!$e(a))throw js(Ls.INVALID_ARGUMENT);const _=a;return $e(o)?c.locale=o:rs(o)?d=o:lt(o)&&(p=o),rs(l)?d=l:lt(l)&&(p=l),Reflect.apply(s.t,s,[_,d||p||{},c])},rt(...n){return Reflect.apply(s.rt,s,[...n])},tc(...n){const[a,o,l]=n,c={plural:1};let d=null,p=null;if(!$e(a))throw js(Ls.INVALID_ARGUMENT);const _=a;return $e(o)?c.locale=o:Is(o)?c.plural=o:rs(o)?d=o:lt(o)&&(p=o),$e(l)?c.locale=l:rs(l)?d=l:lt(l)&&(p=l),Reflect.apply(s.t,s,[_,d||p||{},c])},te(n,a){return s.te(n,a)},tm(n){return s.tm(n)},getLocaleMessage(n){return s.getLocaleMessage(n)},setLocaleMessage(n,a){s.setLocaleMessage(n,a)},mergeLocaleMessage(n,a){s.mergeLocaleMessage(n,a)},d(...n){return Reflect.apply(s.d,s,[...n])},getDateTimeFormat(n){return s.getDateTimeFormat(n)},setDateTimeFormat(n,a){s.setDateTimeFormat(n,a)},mergeDateTimeFormat(n,a){s.mergeDateTimeFormat(n,a)},n(...n){return Reflect.apply(s.n,s,[...n])},getNumberFormat(n){return s.getNumberFormat(n)},setNumberFormat(n,a){s.setNumberFormat(n,a)},mergeNumberFormat(n,a){s.mergeNumberFormat(n,a)},getChoiceIndex(n,a){return-1}};return r.__extender=i,r}}const JT={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function vB({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((i,r)=>[...i,...r.type===_t?r.children:[r]],[]):e.reduce((s,i)=>{const r=t[i];return r&&(s[i]=r()),s},{})}function cI(t){return _t}
49const bB=Cs({name:"i18n-t",props:Ks({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Is(t)||!isNaN(t)}},JT),setup(t,e){const{slots:s,attrs:i}=e,r=t.i18n||cg({useScope:t.scope,__useComponent:!0});return()=>{const n=Object.keys(s).filter(p=>p!=="_"),a={};t.locale&&(a.locale=t.locale),t.plural!==void 0&&(a.plural=$e(t.plural)?+t.plural:t.plural);const o=vB(e,n),l=r[Kv](t.keypath,o,a),c=Ks({},i),d=$e(t.tag)||Bt(t.tag)?t.tag:cI();return Ms(d,c,l)}}}),I2=bB;function TB(t){return rs(t)&&!$e(t[0])}function dI(t,e,s,i){const{slots:r,attrs:n}=e;return()=>{const a={part:!0};let o={};t.locale&&(a.locale=t.locale),$e(t.format)?a.key=t.format:Bt(t.format)&&($e(t.format.key)&&(a.key=t.format.key),o=Object.keys(t.format).reduce((_,b)=>s.includes(b)?Ks({},_,{[b]:t.format[b]}):_,{}));const l=i(t.value,a,o);let c=[a.key];rs(l)?c=l.map((_,b)=>{const T=r[_.type],y=T?T({[_.type]:_.value,index:b,parts:l}):[_.value];return TB(y)&&(y[0].key=`${_.type}-${b}`),y}):$e(l)&&(c=[l]);const d=Ks({},n),p=$e(t.tag)||Bt(t.tag)?t.tag:cI();return Ms(p,d,c)}}const SB=Cs({name:"i18n-n",props:Ks({value:{type:Number,required:!0},format:{type:[String,Object]}},JT),setup(t,e){const s=t.i18n||cg({useScope:t.scope,__useComponent:!0});return dI(t,e,rI,(...i)=>s[Qv](...i))}}),P2=SB,EB=Cs({name:"i18n-d",props:Ks({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},JT),setup(t,e){const s=t.i18n||cg({useScope:t.scope,__useComponent:!0});return dI(t,e,iI,(...i)=>s[Yv](...i))}}),L2=EB;function xB(t,e){const s=t;if(t.mode==="composition")return s.__getInstance(e)||t.global;{const i=s.__getInstance(e);return i!=null?i.__composer:t.global.__composer}}function CB(t){const e=a=>{const{instance:o,modifiers:l,value:c}=a;if(!o||!o.$)throw js(Ls.UNEXPECTED_ERROR);const d=xB(t,o.$),p=O2(c);return[Reflect.apply(d.t,d,[...N2(p)]),d]};return{created:(a,o)=>{const[l,c]=e(o);Hp&&t.global===c&&(a.__i18nWatcher=$s(c.locale,()=>{o.instance&&o.instance.$forceUpdate()})),a.__composer=c,a.textContent=l},unmounted:a=>{Hp&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:o})=>{if(a.__composer){const l=a.__composer,c=O2(o);a.textContent=Reflect.apply(l.t,l,[...N2(c)])}},getSSRProps:a=>{const[o]=e(a);return{textContent:o}}}}function O2(t){if($e(t))return{path:t};if(lt(t)){if(!("path"in t))throw js(Ls.REQUIRED_VALUE,"path");return t}else throw js(Ls.INVALID_VALUE)}function N2(t){const{path:e,locale:s,args:i,choice:r,plural:n}=t,a={},o=i||{};return $e(s)&&(a.locale=s),Is(r)&&(a.plural=r),Is(n)&&(a.plural=n),[e,o,a]}function wB(t,e,...s){const i=lt(s[0])?s[0]:{},r=!!i.useI18nComponentName;(Ct(i.globalInstall)?i.globalInstall:!0)&&([r?"i18n":I2.name,"I18nT"].forEach(a=>t.component(a,I2)),[P2.name,"I18nN"].forEach(a=>t.component(a,P2)),[L2.name,"I18nD"].forEach(a=>t.component(a,L2))),t.directive("t",CB(e))}function AB(t,e,s){return{beforeCreate(){const i=Ys();if(!i)throw js(Ls.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const n=r.i18n;if(r.__i18n&&(n.__i18n=r.__i18n),n.__root=e,this===this.$root)this.$i18n=R2(t,n);else{n.__injectWithOption=!0,n.__extender=s.__vueI18nExtend,this.$i18n=Zv(n);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=R2(t,r);else{this.$i18n=Zv({__i18n:r.__i18n,__injectWithOption:!0,__extender:s.__vueI18nExtend,__root:e});const n=this.$i18n;n.__extender&&(n.__disposer=n.__extender(this.$i18n))}else this.$i18n=t;r.__i18nGlobal&&uI(e,r,r),this.$t=(...n)=>this.$i18n.t(...n),this.$rt=(...n)=>this.$i18n.rt(...n),this.$tc=(...n)=>this.$i18n.tc(...n),this.$te=(n,a)=>this.$i18n.te(n,a),this.$d=(...n)=>this.$i18n.d(...n),this.$n=(...n)=>this.$i18n.n(...n),this.$tm=n=>this.$i18n.tm(n),s.__setInstance(i,this.$i18n)},mounted(){},unmounted(){const i=Ys();if(!i)throw js(Ls.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),s.__deleteInstance(i),delete this.$i18n}}}function R2(t,e){t.locale=e.locale||t.locale,t.fallbackLocale=e.fallbackLocale||t.fallbackLocale,t.missing=e.missing||t.missing,t.silentTranslationWarn=e.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=e.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=e.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=e.postTranslation||t.postTranslation,t.warnHtmlInMessage=e.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=e.escapeParameterHtml||t.escapeParameterHtml,t.sync=e.sync||t.sync,t.__composer[aI](e.pluralizationRules||t.pluralizationRules);const s=ug(t.locale,{messages:e.messages,__i18n:e.__i18n});
49return Object.keys(s).forEach(i=>t.mergeLocaleMessage(i,s[i])),e.datetimeFormats&&Object.keys(e.datetimeFormats).forEach(i=>t.mergeDateTimeFormat(i,e.datetimeFormats[i])),e.numberFormats&&Object.keys(e.numberFormats).forEach(i=>t.mergeNumberFormat(i,e.numberFormats[i])),t}const kB=Io("global-vue-i18n");function DB(t={},e){const s=__VUE_I18N_LEGACY_API__&&Ct(t.legacy)?t.legacy:__VUE_I18N_LEGACY_API__,i=Ct(t.globalInjection)?t.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&s?!!t.allowComposition:!0,n=new Map,[a,o]=IB(t,s),l=Io("");function c(_){return n.get(_)||null}function d(_,b){n.set(_,b)}function p(_){n.delete(_)}{const _={get mode(){return __VUE_I18N_LEGACY_API__&&s?"legacy":"composition"},get allowComposition(){return r},async install(b,...T){if(b.__VUE_I18N_SYMBOL__=l,b.provide(b.__VUE_I18N_SYMBOL__,_),lt(T[0])){const A=T[0];_.__composerExtend=A.__composerExtend,_.__vueI18nExtend=A.__vueI18nExtend}let y=null;!s&&i&&(y=UB(b,_.global)),__VUE_I18N_FULL_INSTALL__&&wB(b,_,...T),__VUE_I18N_LEGACY_API__&&s&&b.mixin(AB(o,o.__composer,_));const x=b.unmount;b.unmount=()=>{y&&y(),_.dispose(),x()}},get global(){return o},dispose(){a.stop()},__instances:n,__getInstance:c,__setInstance:d,__deleteInstance:p};return _}}function cg(t={}){const e=Ys();if(e==null)throw js(Ls.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw js(Ls.NOT_INSTALLED);const s=PB(e),i=OB(s),r=lI(e),n=LB(t,r);if(__VUE_I18N_LEGACY_API__&&s.mode==="legacy"&&!t.__useComponent){if(!s.allowComposition)throw js(Ls.NOT_AVAILABLE_IN_LEGACY_MODE);return FB(e,n,i,t)}if(n==="global")return uI(i,t,r),i;if(n==="parent"){let l=NB(s,e,t.__useComponent);return l==null&&(l=i),l}const a=s;let o=a.__getInstance(e);if(o==null){const l=Ks({},t);"__i18n"in r&&(l.__i18n=r.__i18n),i&&(l.__root=i),o=QT(l),a.__composerExtend&&(o[Jv]=a.__composerExtend(o)),MB(a,e,o),a.__setInstance(e,o)}return o}function IB(t,e,s){const i=qm();{const r=__VUE_I18N_LEGACY_API__&&e?i.run(()=>Zv(t)):i.run(()=>QT(t));if(r==null)throw js(Ls.UNEXPECTED_ERROR);return[i,r]}}function PB(t){{const e=zi(t.isCE?kB:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw js(t.isCE?Ls.NOT_INSTALLED_WITH_PROVIDE:Ls.UNEXPECTED_ERROR);return e}}function LB(t,e){return ag(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function OB(t){return t.mode==="composition"?t.global:t.global.__composer}function NB(t,e,s=!1){let i=null;const r=e.root;let n=RB(e,s);for(;n!=null;){const a=t;if(t.mode==="composition")i=a.__getInstance(n);else if(__VUE_I18N_LEGACY_API__){const o=a.__getInstance(n);o!=null&&(i=o.__composer,s&&i&&!i[oI]&&(i=null))}if(i!=null||r===n)break;n=n.parent}return i}function RB(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function MB(t,e,s){mr(()=>{},e),uf(()=>{const i=s;t.__deleteInstance(e);const r=i[Jv];r&&(r(),delete i[Jv])},e)}function FB(t,e,s,i={}){const r=e==="local",n=of(null);if(r&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw js(Ls.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=Ct(i.inheritLocale)?i.inheritLocale:!$e(i.locale),o=Je(!r||a?s.locale.value:$e(i.locale)?i.locale:Uu),l=Je(!r||a?s.fallbackLocale.value:$e(i.fallbackLocale)||rs(i.fallbackLocale)||lt(i.fallbackLocale)||i.fallbackLocale===!1?i.fallbackLocale:o.value),c=Je(ug(o.value,i)),d=Je(lt(i.datetimeFormats)?i.datetimeFormats:{[o.value]:{}}),p=Je(lt(i.numberFormats)?i.numberFormats:{[o.value]:{}}),_=r?s.missingWarn:Ct(i.missingWarn)||Eo(i.missingWarn)?i.missingWarn:!0,b=r?s.fallbackWarn:Ct(i.fallbackWarn)||Eo(i.fallbackWarn)?i.fallbackWarn:!0,T=r?s.fallbackRoot:Ct(i.fallbackRoot)?i.fallbackRoot:!0,y=!!i.fallbackFormat,x=Xt(i.missing)?i.missing:null,A=Xt(i.postTranslation)?i.postTranslation:null,C=r?s.warnHtmlMessage:Ct(i.warnHtmlMessage)?i.warnHtmlMessage:!0,S=!!i.escapeParameter,E=r?s.modifiers:lt(i.modifiers)?i.modifiers:{},w=i.pluralRules||r&&s.pluralRules;function O(){return[o.value,l.value,c.value,d.value,p.value]}const R=mt({get:()=>n.value?n.value.locale.value:o.value,set:q=>{n.value&&(n.value.locale.value=q),o.value=q}}),$=mt({get:()=>n.value?n.value.fallbackLocale.value:l.value,set:q=>{n.value&&(n.value.fallbackLocale.value=q),l.value=q}}),k=mt(()=>n.value?n.value.messages.value:c.value),P=mt(()=>d.value),j=mt(()=>p.value);function F(){return n.value?n.value.getPostTranslationHandler():A}function H(q){n.value&&n.value.setPostTranslationHandler(q)}function te(){return n.value?n.value.getMissingHandler():x}function oe(q){n.value&&n.value.setMissingHandler(q)}function se(q){return O(),q()}function K(...q){return n.value?se(()=>Reflect.apply(n.value.t,null,[...q])):se(()=>"")}function X(...q){return n.value?Reflect.apply(n.value.rt,null,[...q]):""}function ne(...q){return n.value?se(()=>Reflect.apply(n.value.d,null,[...q])):se(()=>"")}function de(...q){return n.value?se(()=>Reflect.apply(n.value.n,null,[...q])):se(()=>"")}function he(q){return n.value?n.value.tm(q):{}}function Le(q,re){return n.value?n.value.te(q,re):!1}function qe(q){return n.value?n.value.getLocaleMessage(q):{}}function Ge(q,re){n.value&&(n.value.setLocaleMessage(q,re),c.value[q]=re)}function Xe(q,re){n.value&&n.value.mergeLocaleMessage(q,re)}function Et(q){return n.value?n.value.getDateTimeFormat(q):{}}function me(q,re){n.value&&(n.value.setDateTimeFormat(q,re),d.value[q]=re)}function Ie(q,re){n.value&&n.value.mergeDateTimeFormat(q,re)}function De(q){return n.value?n.value.getNumberFormat(q):{}}function Fe(q,re){n.value&&(n.value.setNumberFormat(q,re),p.value[q]=re)}function Ze(q,re){n.value&&n.value.mergeNumberFormat(q,re)}const rt={get id(){return n.value?n.value.id:-1},locale:R,fallbackLocale:$,messages:k,datetimeFormats:P,numberFormats:j,get inheritLocale(){return n.value?n.value.inheritLocale:a},set inheritLocale(q){n.value&&(n.value.inheritLocale=q)},get availableLocales(){return n.value?n.value.availableLocales:Object.keys(c.value)},get modifiers(){return n.value?n.value.modifiers:E},get pluralRules(){return n.value?n.value.pluralRules:w},get isGlobal(){return n.value?n.value.isGlobal:!1},get missingWarn(){return n.value?n.value.missingWarn:_},set missingWarn(q){n.value&&(n.value.missingWarn=q)},get fallbackWarn(){return n.value?n.value.fallbackWarn:b},set fallbackWarn(q){n.value&&(n.value.missingWarn=q)},get fallbackRoot(){return n.value?n.value.fallbackRoot:T},set fallbackRoot(q){n.value&&(n.value.fallbackRoot=q)},get fallbackFormat(){return n.value?n.value.fallbackFormat:y},set fallbackFormat(q){n.value&&(n.value.fallbackFormat=q)},get warnHtmlMessage(){return n.value?n.value.warnHtmlMessage:C},set warnHtmlMessage(q){n.value&&(n.value.warnHtmlMessage=q)},get escapeParameter(){return n.value?n.value.escapeParameter:S},set escapeParameter(q){n.value&&(n.value.escapeParameter=q)},t:K,getPostTranslationHandler:F,setPostTranslationHandler:H,getMissingHandler:te,setMissingHandler:oe,rt:X,d:ne,n:de,tm:he,te:Le,getLocaleMessage:qe,setLocaleMessage:Ge,mergeLocaleMessage:Xe,getDateTimeFormat:Et,setDateTimeFormat:me,mergeDateTimeFormat:Ie,getNumberFormat:De,setNumberFormat:Fe,mergeNumberFormat:Ze};function W(q){q.locale.value=o.value,q.fallbackLocale.value=l.value,Object.keys(c.value).forEach(re=>{q.mergeLocaleMessage(re,c.value[re])}),Object.keys(d.value).forEach(re=>{q.mergeDateTimeFormat(re,d.value[re])}),Object.keys(p.value).forEach(re=>{q.mergeNumberFormat(re,p.value[re])}),q.escapeParameter=S,q.fallbackFormat=y,q.fallbackRoot=T,q.fallbackWarn=b,q.missingWarn=_,q.warnHtmlMessage=C}return RT(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw js(Ls.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const q=n.value=t.proxy.$i18n.__composer;e==="global"?(o.value=q.locale.value,l.value=q.fallbackLocale.value,c.value=q.messages.value,d.value=q.datetimeFormats.value,p.value=q.numberFormats.value):r&&W(q)}),rt}const BB=["locale","fallbackLocale","availableLocales"],M2=["t","rt","d","n","tm","te"];function UB(t,e){const s=Object.create(null);
49return BB.forEach(r=>{const n=Object.getOwnPropertyDescriptor(e,r);if(!n)throw js(Ls.UNEXPECTED_ERROR);const a=ls(n.value)?{get(){return n.value.value},set(o){n.value.value=o}}:{get(){return n.get&&n.get()}};Object.defineProperty(s,r,a)}),t.config.globalProperties.$i18n=s,M2.forEach(r=>{const n=Object.getOwnPropertyDescriptor(e,r);if(!n||!n.value)throw js(Ls.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${r}`,n)}),()=>{delete t.config.globalProperties.$i18n,M2.forEach(r=>{delete t.config.globalProperties[`$${r}`]})}}pB();__INTLIFY_JIT_COMPILATION__?m2(lB):m2(oB);JF(LF);ZF(WD);if(__INTLIFY_PROD_DEVTOOLS__){const t=Da();t.__INTLIFY__=!0,jF(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const hI=(t,e)=>{const s=t.__vccOpts||t;for(const[i,r]of e)s[i]=r;return s},$B={class:"footer pt-5 mt-5 px-4"},jB={class:"container"},HB={class:"row"},qB={class:"col-md-2 col-sm-6 col-6 mb-4"},VB={class:"flex-column ms-n3 nav"},zB={class:"nav-item"},GB=["lang"],WB={class:"nav-item"},XB=["lang"],KB={class:"nav-item"},YB=["lang"],QB={class:"col-md-2 col-sm-6 col-6 mb-4"},JB={class:"flex-column ms-n3 nav"},ZB={class:"nav-item"},eU=["lang"],tU={class:"nav-item"},sU=["lang"],iU={class:"col-12"},rU={class:"text-center"},nU={class:"my-4 text-sm font-weight-normal"},aU={style:{"margin-left":"10px",color:"#999","font-size":"11px"}},oU={__name:"FCFooterDefault",setup(t){const{t:e,locale:s}=cg(),i="11.1.0.632",r=Je(!1),n=o=>{const l=document.querySelector(o);l&&l.scrollIntoView({behavior:"smooth"})},a=()=>{r.value=window.scrollY>200};return mr(()=>{window.addEventListener("scroll",a)}),Wa(()=>{window.removeEventListener("scroll",a)}),(o,l)=>{const c=Gn("RouterLink");return Ce(),ke("footer",$B,[ie("div",jB,[ie("div",HB,[l[6]||(l[6]=Kk('<div class="col-md-4 mb-4" data-v-4476e130><div data-v-4476e130><img src="'+B6+'" class="mb-3 footer-logo" alt="New Zealand On Air Logo" data-v-4476e130></div></div><div class="col-md-4 mb-4" data-v-4476e130><div data-v-4476e130><a href="https://cama.nz/" target="_blank" data-v-4476e130><img src="'+U6+'" class="mb-3 footer-logo w-75" alt="Community Access Media Alliance Logo" data-v-4476e130></a></div></div>',2)),ie("div",qB,[l[1]||(l[1]=ie("h6",{class:"text-sm"},"Access Media NZ",-1)),ie("ul",VB,[ie("li",zB,[ze(c,{to:"/about",class:"nav-link"},{default:ot(()=>[ie("span",{lang:gt(s)},Be(gt(e)("about-us-menu")),9,GB)]),_:1})]),ie("li",WB,[ze(c,{to:"/accessibility",class:"nav-link"},{default:ot(()=>[ie("span",{lang:gt(s)},Be(gt(e)("accessibility-menu")),9,XB)]),_:1})]),ie("li",KB,[ze(c,{to:"/contact",class:"nav-link"},{default:ot(()=>[ie("span",{lang:gt(s)},Be(gt(e)("contact-menu")),9,YB)]),_:1})])])]),ie("div",QB,[l[2]||(l[2]=ie("h6",{class:"text-sm"},"Legal",-1)),ie("ul",JB,[ie("li",ZB,[ze(c,{to:"/terms",class:"nav-link"},{default:ot(()=>[ie("span",{lang:gt(s)},Be(gt(e)("terms-and-conditions")),9,eU)]),_:1})]),ie("li",tU,[ze(c,{to:"/privacy",class:"nav-link"},{default:ot(()=>[ie("span",{lang:gt(s)},Be(gt(e)("privacy-policy")),9,sU)]),_:1})])])]),ie("div",iU,[ie("div",rU,[ie("p",nU,[ys(" All rights reserved. Copyright © "+Be(new Date().getFullYear())+" Developed by ",1),l[3]||(l[3]=ie("a",{href:"https://firecrest.co.nz/",target:"_blank"},"Firecrest Systems",-1)),l[4]||(l[4]=ys(". ")),ie("span",aU,"v"+Be(gt(i)),1)])])]),ie("div",null,[ie("a",{href:"#top",class:ye(["topLink",{visible:r.value}]),onClick:l[0]||(l[0]=Sn(d=>n("#top"),["prevent"])),"aria-label":"Back to top"},l[5]||(l[5]=[ie("i",{class:"material-icons","aria-hidden":"true"},"keyboard_arrow_up",-1)]),2)])])])])}}},lU=hI(oU,[["__scopeId","data-v-4476e130"]]);var Kd;typeof window<"u"?Kd=window:typeof Yi<"u"?Kd=Yi:typeof self<"u"?Kd=self:Kd={};var dg=Kd;const Q=Ol(dg),uU={},cU=Object.freeze(Object.defineProperty({__proto__:null,default:uU},Symbol.toStringTag,{value:"Module"})),dU=_T(cU);var F2=typeof Yi<"u"?Yi:typeof window<"u"?window:{},hU=dU,Yd;typeof document<"u"?Yd=document:(Yd=F2["__GLOBAL_DOCUMENT_CACHE@4"],Yd||(Yd=F2["__GLOBAL_DOCUMENT_CACHE@4"]=hU));var fI=Yd;const Oe=Ol(fI);var eb={exports:{}};(function(t,e){function s(l){if(l&&typeof l=="object"){var c=l.which||l.keyCode||l.charCode;c&&(l=c)}if(typeof l=="number")return a[l];var d=String(l),p=i[d.toLowerCase()];if(p)return p;var p=r[d.toLowerCase()];if(p)return p;if(d.length===1)return d.charCodeAt(0)}s.isEventKey=function(c,d){if(c&&typeof c=="object"){var p=c.which||c.keyCode||c.charCo
49de;if(p==null)return!1;if(typeof d=="string"){var _=i[d.toLowerCase()];if(_)return _===p;var _=r[d.toLowerCase()];if(_)return _===p}else if(typeof d=="number")return d===p;return!1}},e=t.exports=s;var i=e.code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=e.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
50 * Programatically add the following
51 */for(n=97;n<123;n++)i[String.fromCharCode(n)]=n-32;for(var n=48;n<58;n++)i[n-48]=n;for(n=1;n<13;n++)i["f"+n]=n+111;for(n=0;n<10;n++)i["numpad "+n]=n+96;var a=e.names=e.title={};for(n in i)a[i[n]]=n;for(var o in r)i[o]=r[o]})(eb,eb.exports);var fU=eb.exports;const ut=Ol(fU);var pU=mU;function mU(t,e){var s,i=null;try{s=JSON.parse(t,e)}catch(r){i=r}return[i,s]}const gU=Ol(pU);var ZT={exports:{}};function xr(){return xr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var i in s)({}).hasOwnProperty.call(s,i)&&(t[i]=s[i])}return t},xr.apply(null,arguments)}const yU=Object.freeze(Object.defineProperty({__proto__:null,get default(){return xr}},Symbol.toStringTag,{value:"Module"})),_U=_T(yU);var vU=TU,bU=Object.prototype.toString;function TU(t){if(!t)return!1;var e=bU.call(t);return e==="[object Function]"||typeof t=="function"&&e!=="[object RegExp]"||typeof window<"u"&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)}var SU=dg,EU=function(e,s){return s===void 0&&(s=!1),function(i,r,n){if(i){e(i);return}if(r.statusCode>=400&&r.statusCode<=599){var a=n;if(s)if(SU.TextDecoder){var o=xU(r.headers&&r.headers["content-type"]);try{a=new TextDecoder(o).decode(n)}catch{}}else a=String.fromCharCode.apply(null,new Uint8Array(n));e({cause:a});return}e(null,n)}};function xU(t){return t===void 0&&(t=""),t.toLowerCase().split(";").reduce(function(e,s){var i=s.split("="),r=i[0],n=i[1];return r.trim()==="charset"?n.trim():e},"utf-8")}var CU=EU,pI=dg,wU=_U,AU=vU;Nn.httpHandler=CU;/**
52 * @license
53 * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
54 * Copyright (c) 2014 David Björklund
55 * Available under the MIT license
56 * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
57 */var kU=function(e){var s={};return e&&e.trim().split(`
58`).forEach(function(i){var r=i.indexOf(":"),n=i.slice(0,r).trim().toLowerCase(),a=i.slice(r+1).trim();typeof s[n]>"u"?s[n]=a:Array.isArray(s[n])?s[n].push(a):s[n]=[s[n],a]}),s};ZT.exports=Nn;ZT.exports.default=Nn;Nn.XMLHttpRequest=pI.XMLHttpRequest||LU;Nn.XDomainRequest="withCredentials"in new Nn.XMLHttpRequest?Nn.XMLHttpRequest:pI.XDomainRequest;DU(["get","put","post","patch","head","delete"],function(t){Nn[t==="delete"?"del":t]=function(e,s,i){return s=mI(e,s,i),s.method=t.toUpperCase(),gI(s)}});function DU(t,e){for(var s=0;s<t.length;s++)e(t[s])}function IU(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function mI(t,e,s){var i=t;return AU(e)?(s=e,typeof t=="string"&&(i={uri:t})):i=wU({},e,{uri:t}),i.callback=s,i}function Nn(t,e,s){return e=mI(t,e,s),gI(e)}function gI(t){if(typeof t.callback>"u")throw new Error("callback argument missing");var e=!1,s=function(S,E,w){e||(e=!0,t.callback(S,E,w))};function i(){o.readyState===4&&setTimeout(a,0)}function r(){var C=void 0;if(o.response?C=o.response:C=o.responseText||PU(o),y)try{C=JSON.parse(C)}catch{}return C}function n(C){return clearTimeout(x),C instanceof Error||(C=new Error(""+(C||"Unknown XMLHttpRequest Error"))),C.statusCode=0,s(C,A)}function a(){if(!c){var C;clearTimeout(x),t.useXDR&&o.status===void 0?C=200:C=o.status===1223?204:o.status;var S=A,E=null;return C!==0?(S={body:r(),statusCode:C,method:p,headers:{},url:d,rawRequest:o},o.getAllResponseHeaders&&(S.headers=kU(o.getAllResponseHeaders()))):E=new Error("Internal XMLHttpRequest Error"),s(E,S,S.body)}}var o=t.xhr||null;o||(t.cors||t.useXDR?o=new Nn.XDomainRequest:o=new Nn.XMLHttpRequest);var l,c,d=o.url=t.uri||t.url,p=o.method=t.method||"GET",_=t.body||t.data,b=o.headers=t.headers||{},T=!!t.sync,y=!1,x,A={body:void 0,headers:{},statusCode:0,method:p,url:d,rawRequest:o};if("json"in t&&t.json!==!1&&(y=!0,b.accept||b.Accept||(b.Accept="application/json"),p!=="GET"&&p!=="HEAD"&&(b["content-type"]||b["Content-Type"]||(b["Content-Type"]="application/json"),_=JSON.stringify(t.json===!0?_:t.json))),o.onreadystatechange=i,o.onload=a,o.onerror=n,o.onprogress=function(){},o.onabort=function(){c=!0},o.ontimeout=n,o.open(p,d,!T,t.username,t.password),T||(o.withCredentials=!!t.withCredentials),!T&&t.timeout>0&&(x=setTimeout(function(){if(!c){c=!0,o.abort("timeout");var C=new Error("XMLHttpRequest timeout");
vendor: 19,991 bytes, lines 58-65
58C.code="ETIMEDOUT",n(C)}},t.timeout)),o.setRequestHeader)for(l in b)b.hasOwnProperty(l)&&o.setRequestHeader(l,b[l]);else if(t.headers&&!IU(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(o.responseType=t.responseType),"beforeSend"in t&&typeof t.beforeSend=="function"&&t.beforeSend(o),o.send(_||null),o}function PU(t){try{if(t.responseType==="document")return t.responseXML;var e=t.responseXML&&t.responseXML.documentElement.nodeName==="parsererror";if(t.responseType===""&&!e)return t.responseXML}catch{}return null}function LU(){}var OU=ZT.exports;const yI=Ol(OU);var _I={exports:{}},B2=fI,e1=Object.create||function(){function t(){}return function(e){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function ur(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}ur.prototype=e1(Error.prototype);ur.prototype.constructor=ur;ur.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function t1(t){function e(i,r,n,a){return(i|0)*3600+(r|0)*60+(n|0)+(a|0)/1e3}var s=t.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return s?s[3]?e(s[1],s[2],s[3].replace(":",""),s[4]):s[1]>59?e(s[1],s[2],0,s[4]):e(0,s[1],s[2],s[4]):null}function ph(){this.values=e1(null)}ph.prototype={set:function(t,e){!this.get(t)&&e!==""&&(this.values[t]=e)},get:function(t,e,s){return s?this.has(t)?this.values[t]:e[s]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,s){for(var i=0;i<s.length;++i)if(e===s[i]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e),e>=0&&e<=100)?(this.set(t,e),!0):!1}};function Qd(t,e,s,i){var r=i?t.split(i):[t];for(var n in r)if(typeof r[n]=="string"){var a=r[n].split(s);if(a.length===2){var o=a[0].trim(),l=a[1].trim();e(o,l)}}}function NU(t,e,s){var i=t;function r(){var o=t1(t);if(o===null)throw new ur(ur.Errors.BadTimeStamp,"Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),o}function n(o,l){var c=new ph;Qd(o,function(d,p){switch(d){case"region":for(var _=s.length-1;_>=0;_--)if(s[_].id===p){c.set(d,s[_].region);break}break;case"vertical":c.alt(d,p,["rl","lr"]);break;case"line":var b=p.split(","),T=b[0];c.integer(d,T),c.percent(d,T)&&c.set("snapToLines",!1),c.alt(d,T,["auto"]),b.length===2&&c.alt("lineAlign",b[1],["start","center","end"]);break;case"position":b=p.split(","),c.percent(d,b[0]),b.length===2&&c.alt("positionAlign",b[1],["start","center","end"]);break;case"size":c.percent(d,p);break;case"align":c.alt(d,p,["start","center","end","left","right"]);break}},/:/,/\s/),l.region=c.get("region",null),l.vertical=c.get("vertical","");try{l.line=c.get("line","auto")}catch{}l.lineAlign=c.get("lineAlign","start"),l.snapToLines=c.get("snapToLines",!0),l.size=c.get("size",100);try{l.align=c.get("align","center")}catch{l.align=c.get("align","middle")}try{l.position=c.get("position","auto")}catch{l.position=c.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},l.align)}l.positionAlign=c.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},l.align)}function a(){t=t.replace(/^\s+/,"")}if(a(),e.startTime=r(),a(),t.substr(0,3)!=="-->")throw new ur(ur.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+i);t=t.substr(3),a(),e.endTime=r(),a(),n(t,e)}var u_=B2.createElement&&B2.createElement("textarea"),RU={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},U2={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},MU={v:"title",lang:"lang"},$2={rt:"ruby"};function vI(t,e){function s(){if(!e)return null;function T(x){return e=e.substr(x.length),x}var y=e.match(/^([^<]*)(<[^>]*>?)?/);return T(y[1]?y[1]:y[2])}function i(T){return u_.innerHTML=T,T=u_.textContent,u_.textContent="",T}function r(T,y){return!$2[y.localName]||$2[y.localName]===T.localName}function n(T,y){var x=RU[T];if(!x)return null;var A=t.document.createElement(x),C=MU[T];return C&&y&&(A[C]=y.trim()),A}for(var a=t.document.createElement("div"),o=a,l,c=[];(l=s())!==null;){if(l[0]==="<"){if(l[1]==="/"){c.length&&c[c.length-1]===l.substr(2).replace(">","")&&(c.pop(),o=o.parentNode);continue}var d=t1(l.substr(1,l.length-2)),p;if(d){p=t.document.createProcessingInstruction("timestamp",d),o.appendChild(p);continue}var _=l.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!_||(p=n(_[1],_[3]),!p)||!r(o,p))continue;if(_[2]){var b=_[2].split(".");b.forEach(function(T){var y=/^bg_/.test(T),x=y?T.slice(3):T;if(U2.hasOwnProperty(x)){var A=y?"background-color":"color",C=U2[x];p.style[A]=C}}),p.className=b.join(" ")}c.push(_[1]),o.appendChild(p),o=p;continue}o.appendChild(t.document.createTextNode(i(l)))}return a}var j2=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function FU(t){for(var e=0;e<j2.length;e++){var s=j2[e];if(t>=s[0]&&t<=s[1])return!0}return!1}function BU(t){var e=[],s="",i;if(!t||!t.childNodes)return"ltr";function r(o,l){for(var c=l.childNodes.length-1;c>=0;c--)o.push(l.childNodes[c])}function n(o){if(!o||!o.length)return null;var l=o.pop(),c=l.textContent||l.innerText;if(c){var d=c.match(/^.*(\n|\r)/);return d?(o.length=0,d[0]):c}if(l.tagName==="ruby")return n(o);if(l.childNodes)return r(o,l),n(o)}for(r(e,t);s=n(e);)for(var a=0;a<s.length;a++)if(i=s.charCodeAt(a),FU(i))return"rtl";return"ltr"}function UU(t){if(typeof t.line=="number"&&(t.snapToLines||t.line>=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,s=e.textTrackList,i=0,r=0;r<s.length&&s[r]!==e;r++)s[r].mode==="showing"&&i++;return++i*-1}function hg(){}hg.prototype.applyStyles=function(t,e){e=e||this.div;for(var s in t)t.hasOwnProperty(s)&&(e.style[s]=t[s])};hg.prototype.formatStyle=function(t,e){return t===0?0:t+e};function zp(t,e,s){hg.call(this),this.cue=e,this.cueDiv=vI(t,e.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:e.vertical===""?"horizontal-tb":e.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=t.document.createElement("div"),i={direction:BU(this.cueDiv),writingMode:e.vertical===""?"horizontal-tb":e.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:e.align==="middle"?"center":e.align,font:s.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var r=0;switch(e.positionAlign){case"start":case"line-left":r=e.position;break;case"center":r=e.position-e.size/2;break;case"end":case"line-right":r=e.position-e.size;break}e.vertical===""?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(e.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(e.size,"%")}),this.move=function(n){this.applyStyles({top:this.formatStyle(n.top,"px"),bottom:this.formatStyle(n.bottom,"px"),left:this.formatStyle(n.left,"px"),right:this.formatStyle(n.right,"px"),height:this.formatStyle(n.height,"px"),width:this.formatStyle(n.width,"px")})}}zp.prototype=e1(hg.prototype);zp.prototype.constructor=zp;function wi(t){var e,s,i,r;if(t.div){s=t.div.offsetHeight,i=t.div.offsetWidth,r=t.div.offsetTop;var n=(n=t.div.childNodes)&&(n=n[0])&&n.getClientRects&&n.getClientRects();t=t.div.getBoundingClientRect(),e=n?Math.max(n[0]&&n[0].height||0,t.height/n.length):0}this.left=t.left,this.right=t.right,this.top=t.top||r,this.height=t.height||s,this.bottom=t.bottom||r+(t.height||s),this.width=t.width||i,this.lineHeight=e!==void 0?e:t.lineHeight}wi.prototype.move=function(t,e){switch(e=e!==void 0?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e;break}};wi.prototype.overlaps=function(t){return this.left<t.right&&this.right>t.left&&this.top<t.bottom&&this.bottom>t.top};wi.prototype.overlapsAny=function(t){for(var e=0;e<t.length;e++)if(this.overlaps(t[e]))return!0;return!1};wi.prototype.within=function(t){return this.top>=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right};wi.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.left<t.left;case"-x":return this.right>t.right;case"+y":return this.top<t.top;case"-y":return this.bottom>t.bottom}};wi.prototype.intersectPercentage=function(t){var e=Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left)),s=Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top)),i=e*s;return i/(this.height*this.width)};wi.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}};wi.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,s=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,i=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t;var r={left:t.left,right:t.right,top:t.top||i,height:t.height||e,bottom:t.bottom||i+(t.height||e),width:t.width||s};return r};function $U(t,e,s,i){function r(x,A){for(var C,S=new wi(x),E=1,w=0;w<A.length;w++){for(;x.overlapsOppositeAxis(s,A[w])||x.within(s)&&x.overlapsAny(i);)x.move(A[w]);if(x.within(s))return x;var O=x.intersectPercentage(s);E>O&&(C=new wi(x),E=O),x=new wi(S)}return C||S}var n=new wi(e),a=e.cue,o=UU(a),l=[];if(a.snapToLines){var c;switch(a.vertical){case"":l=["+y","-y"],c="height";break;case"rl":l=["+x","-x"],c="width";break;case"lr":l=["-x","+x"],c="width";break}var d=n.lineHeight,p=d*Math.round(o),_=s[c]+d,b=l[0];Math.abs(p)>_&&(p=p<0?-1:1,p*=Math.ceil(_/d)*d),o<0&&(p+=a.vertical===""?s.height:s.width,l=l.reverse()),n.move(b,p)}else{var T=n.lineHeight/s.height*100;switch(a.lineAlign){case"center":o-=T/2;break;case"end":o-=T;break}switch(a.vertical){case"":e.applyStyles({top:e.formatStyle(o,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(o,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(o,"%")});break}l=["+y","-x","+x","-y"],n=new wi(e)}var y=r(n,l);e.move(y.toCSSCompatValues(s))}function gc(){}gc.StringDecoder=function(){return{decode:function(t){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}};gc.convertCueToDOMTree=function(t,e){return!t||!e?null:vI(t,e)};var jU=.05,HU="sans-serif",qU="1.5%";gc.processCues=function(t,e,s){if(!t||!e||!s)return null;for(;s.firstChild;)s.removeChild(s.firstChild);var i=t.document.createElement("div");i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin=qU,s.appendChild(i);function r(d){for(var p=0;p<d.length;p++)if(d[p].hasBeenReset||!d[p].displayState)return!0;return!1}if(!r(e)){for(var n=0;n<e.length;n++)i.appendChild(e[n].displayState);return}var a=[],o=wi.getSimpleBoxPosition(i),l=Math.round(o.height*jU*100)/100,c={font:l+"px "+HU};(function(){for(var d,p,_=0;_<e.length;_++)p=e[_],d=new zp(t,p,c),i.appendChild(d.div),$U(t,d,o,a),p.displayState=d.div,a.push(wi.getSimpleBoxPosition(d))})()};gc.Parser=function(t,e,s){s||(s=e,e={}),e||(e={}),this.window=t,this.vttjs=e,this.state="INITIAL",this.buffer="",this.decoder=s||new TextDecoder("utf8"),this.regionList=[]};gc.Parser.prototype={reportOrThrowError:function(t){if(t instanceof ur)this.onparsingerror&&this.onparsingerror(t);else throw t},parse:function(t){var e=this;t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));function s(){for(var d=e.buffer,p=0;p<d.length&&d[p]!=="\r"&&d[p]!==`
59`;)++p;var _=d.substr(0,p);return d[p]==="\r"&&++p,d[p]===`
60`&&++p,e.buffer=d.substr(p),_}function i(d){var p=new ph;if(Qd(d,function(b,T){switch(b){case"id":p.set(b,T);break;case"width":p.percent(b,T);break;case"lines":p.integer(b,T);break;case"regionanchor":case"viewportanchor":var y=T.split(",");if(y.length!==2)break;var x=new ph;if(x.percent("x",y[0]),x.percent("y",y[1]),!x.has("x")||!x.has("y"))break;p.set(b+"X",x.get("x")),p.set(b+"Y",x.get("y"));break;case"scroll":p.alt(b,T,["up"]);break}},/=/,/\s/),p.has("id")){var _=new(e.vttjs.VTTRegion||e.window.VTTRegion);_.width=p.get("width",100),_.lines=p.get("lines",3),_.regionAnchorX=p.get("regionanchorX",0),_.regionAnchorY=p.get("regionanchorY",100),_.viewportAnchorX=p.get("viewportanchorX",0),_.viewportAnchorY=p.get("viewportanchorY",100),_.scroll=p.get("scroll",""),e.onregion&&e.onregion(_),e.regionList.push({id:p.get("id"),region:_})}}function r(d){var p=new ph;Qd(d,function(_,b){switch(_){case"MPEGT":p.integer(_+"S",b);break;case"LOCA":p.set(_+"L",t1(b));break}},/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:p.get("MPEGTS"),LOCAL:p.get("LOCAL")})}function n(d){d.match(/X-TIMESTAMP-MAP/)?Qd(d,function(p,_){switch(p){case"X-TIMESTAMP-MAP":r(_);break}},/=/):Qd(d,function(p,_){switch(p){case"Region":i(_);break}},/:/)}try{var a;if(e.state==="INITIAL"){if(!/\r\n|\n/.test(e.buffer))return this;a=s();var o=a.match(/^WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new ur(ur.Errors.BadSignature);e.state="HEADER"}for(var l=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(l?l=!1:a=s(),e.state){case"HEADER":/:/.test(a)?n(a):a||(e.state="ID");continue;case"NOTE":a||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){e.state="NOTE";break}if(!a)continue;e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,"");try{e.cue.align="center"}catch{e.cue.align="middle"}if(e.state="CUE",a.indexOf("-->")===-1){e.cue.id=a;continue}case"CUE":try{NU(a,e.cue,e.regionList)}catch(d){e.reportOrThrowError(d),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var c=a.indexOf("-->")!==-1;if(!a||c&&(l=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+=`
61`),e.cue.text+=a.replace(/\u2028/g,`
62`).replace(/u2029/g,`
63`);continue;case"BADCUE":a||(e.state="ID");continue}}}catch(d){e.reportOrThrowError(d),e.state==="CUETEXT"&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state=e.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||t.state==="HEADER")&&(t.buffer+=`
64
65`,t.parse()),t.state==="INITIAL")throw new ur(ur.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}};var VU=gc,zU="auto",GU={"":1,lr:1,rl:1},WU={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function XU(t){if(typeof t!="string")return!1;var e=GU[t.toLowerCase()];return e?t.toLowerCase():!1}function c_(t){if(typeof t!="string")return!1;var e=WU[t.toLowerCase()];return e?t.toLowerCase():!1}function bI(t,e,s){this.hasBeenReset=!1;var i="",r=!1,n=t,a=e,o=s,l=null,c="",d=!0,p="auto",_="start",b="auto",T="auto",y=100,x="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return i},set:function(A){i=""+A}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(A){r=!!A}},startTime:{enumerable:!0,get:function(){return n},set:function(A){if(typeof A!="number")throw new TypeError("Start time must be set to a number.");n=A,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return a},set:function(A){if(typeof A!="number")throw new TypeError("End time must be set to a number.");a=A,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(A){o=""+A,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(A){l=A,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return c},set:function(A){var C=XU(A);if(C===!1)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");c=C,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return d},set:function(A){d=!!A,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(A){if(typeof A!="number"&&A!==zU)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=A,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return _},set:function(A){var C=c_(A);C?(_=C,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return b},set:function(A){if(A<0||A>100)throw new Error("Position must be between 0 and 100.");b=A,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return T},set:function(A){var C=c_(A);C?(T=C,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(A){if(A<0||A>100)throw new Error("Size must be between 0 and 100.");y=A,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return x},set:function(A){var C=c_(A);if(!C)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");x=C,this.hasBeenReset=!0}}}),this.displayState=void 0}bI.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var KU=bI,YU={"":!0,up:!0};function QU(t){if(typeof t!="string")return!1;var e=YU[t.toLowerCase()];return e?t.toLowerCase():!1}function Id(t){return typeof t=="number"&&t>=0&&t<=100}function JU(){var t=100,e=3,s=0,i=100,r=0,n=100,a="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(o){if(!Id(o))throw new Error("Width must be between 0 and 100.");t=o}},lines:{enumerable:!0,get:function(){return e},set:function(o){if(typeof o!="number")throw new TypeError("Lines must be set to a number.");e=o}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(o){if(!Id(o))throw new Error("RegionAnchorX must be between 0 and 100.");i=o}},regionAnchorX:{enumerable:!0,get:function(){return s},set:function(o){if(!Id(o))throw new Error("RegionAnchorY must be between 0 and 100.");s=o}},viewportAnchorY:{enumerable:!0,get:function(){return n},set:function(o){if(!Id(o))throw new Error("ViewportAnchorY must be between 0 and 100.");n=o}},viewportAnchorX:{enumerable:!0,get:function(){return r},set:function(o){if(!Id(o))throw new Error("ViewportAnchorX must be between 0 and 100.");r=o}},scroll:{enumerable:!0,get:function(){return a}
65,set:function(o){var l=QU(o);l===!1?console.warn("Scroll: an invalid or illegal string was specified."):a=l}}})}var ZU=JU,ja=dg,Ml=_I.exports={WebVTT:VU,VTTCue:KU,VTTRegion:ZU};ja.vttjs=Ml;ja.WebVTT=Ml.WebVTT;var e7=Ml.VTTCue,t7=Ml.VTTRegion,s7=ja.VTTCue,i7=ja.VTTRegion;Ml.shim=function(){ja.VTTCue=e7,ja.VTTRegion=t7};Ml.restore=function(){ja.VTTCue=s7,ja.VTTRegion=i7};ja.VTTCue||Ml.shim();var r7=_I.exports;const H2=Ol(r7);var q2="https://example.com",fg=function(e,s){if(/^[a-z]+:/i.test(s))return s;/^data:/.test(e)&&(e=Q.location&&Q.location.href||"");var i=/^\/\//.test(e),r=!Q.location&&!/\/\//i.test(e);e=new Q.URL(e,Q.location||q2);var n=new URL(s,e);return r?n.href.slice(q2.length):i?n.href.slice(n.protocol.length):n.href},s1=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(i,r){this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push(r)},e.off=function(i,r){if(!this.listeners[i])return!1;var n=this.listeners[i].indexOf(r);return this.listeners[i]=this.listeners[i].slice(0),this.listeners[i].splice(n,1),n>-1},e.trigger=function(i){var r=this.listeners[i];if(r)if(arguments.length===2)for(var n=r.length,a=0;a<n;++a)r[a].call(this,arguments[1]);else for(var o=Array.prototype.slice.call(arguments,1),l=r.length,c=0;c<l;++c)r[c].apply(this,o)},e.dispose=function(){this.listeners={}},e.pipe=function(i){this.on("data",function(r){i.push(r)})},t}(),n7=function(e){return Q.atob?Q.atob(e):Buffer.from(e,"base64").toString("binary")};function TI(t){for(var e=n7(t),s=new Uint8Array(e.length),i=0;i<e.length;i++)s[i]=e.charCodeAt(i);return s}/*! @name m3u8-parser @version 7.2.0 @license Apache-2.0 */class a7 extends s1{constructor(){super(),this.buffer=""}push(e){let s;for(this.buffer+=e,s=this.buffer.indexOf(`
66`);s>-1;s=this.buffer.indexOf(`
67`))this.trigger("data",this.buffer.substring(0,s)),this.buffer=this.buffer.substring(s+1)}}const o7="	",d_=function(t){const e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),s={};return e[1]&&(s.length=parseInt(e[1],10)),e[2]&&(s.offset=parseInt(e[2],10)),s},l7=function(){const s="(?:"+"[^=]*"+")=(?:"+'"[^"]*"|[^,]*'+")";return new RegExp("(?:^|,)("+s+")")},mi=function(t){const e={};if(!t)return e;const s=t.split(l7());let i=s.length,r;for(;i--;)s[i]!==""&&(r=/([^=]*)=(.*)/.exec(s[i]).slice(1),r[0]=r[0].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^['"](.*)['"]$/g,"$1"),e[r[0]]=r[1]);return e},V2=t=>{const e=t.split("x"),s={};return e[0]&&(s.width=parseInt(e[0],10)),e[1]&&(s.height=parseInt(e[1],10)),s};class u7 extends s1{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let s,i;if(e=e.trim(),e.length===0)return;if(e[0]!=="#"){this.trigger("data",{type:"uri",uri:e});return}this.tagMappers.reduce((n,a)=>{const o=a(e);return o===e?n:n.concat([o])},[e]).forEach(n=>{for(let a=0;a<this.customParsers.length;a++)if(this.customParsers[a].call(this,n))return;if(n.indexOf("#EXT")!==0){this.trigger("data",{type:"comment",text:n.slice(1)});return}if(n=n.replace("\r",""),s=/^#EXTM3U/.exec(n),s){this.trigger("data",{type:"tag",tagType:"m3u"});return}if(s=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(n),s){i={type:"tag",tagType:"inf"},s[1]&&(i.duration=parseFloat(s[1])),s[2]&&(i.title=s[2]),this.trigger("data",i);return}if(s=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(n),s){i={type:"tag",tagType:"targetduration"},s[1]&&(i.duration=parseInt(s[1],10)),this.trigger("data",i);return}if(s=/^#EXT-X-VERSION:([0-9.]*)?/.exec(n),s){i={type:"tag",tagType:"version"},s[1]&&(i.version=parseInt(s[1],10)),this.trigger("data",i);return}if(s=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(n),s){i={type:"tag",tagType:"media-sequence"},s[1]&&(i.number=parseInt(s[1],10)),this.trigger("data",i);return}if(s=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(n),s){i={type:"tag",tagType:"discontinuity-sequence"},s[1]&&(i.number=parseInt(s[1],10)),this.trigger("data",i);return}if(s=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(n),s){i={type:"tag",tagType:"playlist-type"},s[1]&&(i.playlistType=s[1]),this.trigger("data",i);return}if(s=/^#EXT-X-BYTERANGE:(.*)?$/.exec(n),s){i=xr(d_(s[1]),{type:"tag",tagType:"byterange"}),this.trigger("data",i);return}if(s=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(n),s){i={type:"tag",tagType:"allow-cache"},s[1]&&(i.allowed=!/NO/.test(s[1])),this.trigger("data",i);return}if(s=/^#EXT-X-MAP:(.*)$/.exec(n),s){if(i={type:"tag",tagType:"map"},s[1]){const a=mi(s[1]);a.URI&&(i.uri=a.URI),a.BYTERANGE&&(i.byterange=d_(a.BYTERANGE))}this.trigger("data",i);return}if(s=/^#EXT-X-STREAM-INF:(.*)$/.exec(n),s){i={type:"tag",tagType:"stream-inf"},s[1]&&(i.attributes=mi(s[1]),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=V2(i.attributes.RESOLUTION)),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))),this.trigger("data",i);return}if(s=/^#EXT-X-MEDIA:(.*)$/.exec(n),s){i={type:"tag",tagType:"media"},s[1]&&(i.attributes=mi(s[1])),this.trigger("data",i);return}if(s=/^#EXT-X-ENDLIST/.exec(n),s){this.trigger("data",{type:"tag",tagType:"endlist"});return}if(s=/^#EXT-X-DISCONTINUITY/.exec(n),s){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(s=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(n),s){i={type:"tag",tagType:"program-date-time"}
vendor: 16,551 bytes, line 67
67,s[1]&&(i.dateTimeString=s[1],i.dateTimeObject=new Date(s[1])),this.trigger("data",i);return}if(s=/^#EXT-X-KEY:(.*)$/.exec(n),s){i={type:"tag",tagType:"key"},s[1]&&(i.attributes=mi(s[1]),i.attributes.IV&&(i.attributes.IV.substring(0,2).toLowerCase()==="0x"&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=parseInt(i.attributes.IV[2],16),i.attributes.IV[3]=parseInt(i.attributes.IV[3],16),i.attributes.IV=new Uint32Array(i.attributes.IV))),this.trigger("data",i);return}if(s=/^#EXT-X-START:(.*)$/.exec(n),s){i={type:"tag",tagType:"start"},s[1]&&(i.attributes=mi(s[1]),i.attributes["TIME-OFFSET"]=parseFloat(i.attributes["TIME-OFFSET"]),i.attributes.PRECISE=/YES/.test(i.attributes.PRECISE)),this.trigger("data",i);return}if(s=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(n),s){i={type:"tag",tagType:"cue-out-cont"},s[1]?i.data=s[1]:i.data="",this.trigger("data",i);return}if(s=/^#EXT-X-CUE-OUT:(.*)?$/.exec(n),s){i={type:"tag",tagType:"cue-out"},s[1]?i.data=s[1]:i.data="",this.trigger("data",i);return}if(s=/^#EXT-X-CUE-IN:?(.*)?$/.exec(n),s){i={type:"tag",tagType:"cue-in"},s[1]?i.data=s[1]:i.data="",this.trigger("data",i);return}if(s=/^#EXT-X-SKIP:(.*)$/.exec(n),s&&s[1]){i={type:"tag",tagType:"skip"},i.attributes=mi(s[1]),i.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(i.attributes["SKIPPED-SEGMENTS"]=parseInt(i.attributes["SKIPPED-SEGMENTS"],10)),i.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(i.attributes["RECENTLY-REMOVED-DATERANGES"]=i.attributes["RECENTLY-REMOVED-DATERANGES"].split(o7)),this.trigger("data",i);return}if(s=/^#EXT-X-PART:(.*)$/.exec(n),s&&s[1]){i={type:"tag",tagType:"part"},i.attributes=mi(s[1]),["DURATION"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),["INDEPENDENT","GAP"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=/YES/.test(i.attributes[a]))}),i.attributes.hasOwnProperty("BYTERANGE")&&(i.attributes.byterange=d_(i.attributes.BYTERANGE)),this.trigger("data",i);return}if(s=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(n),s&&s[1]){i={type:"tag",tagType:"server-control"},i.attributes=mi(s[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=/YES/.test(i.attributes[a]))}),this.trigger("data",i);return}if(s=/^#EXT-X-PART-INF:(.*)$/.exec(n),s&&s[1]){i={type:"tag",tagType:"part-inf"},i.attributes=mi(s[1]),["PART-TARGET"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),this.trigger("data",i);return}if(s=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(n),s&&s[1]){i={type:"tag",tagType:"preload-hint"},i.attributes=mi(s[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(a){if(i.attributes.hasOwnProperty(a)){i.attributes[a]=parseInt(i.attributes[a],10);const o=a==="BYTERANGE-LENGTH"?"length":"offset";i.attributes.byterange=i.attributes.byterange||{},i.attributes.byterange[o]=i.attributes[a],delete i.attributes[a]}}),this.trigger("data",i);return}if(s=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(n),s&&s[1]){i={type:"tag",tagType:"rendition-report"},i.attributes=mi(s[1]),["LAST-MSN","LAST-PART"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseInt(i.attributes[a],10))}),this.trigger("data",i);return}if(s=/^#EXT-X-DATERANGE:(.*)$/.exec(n),s&&s[1]){i={type:"tag",tagType:"daterange"},i.attributes=mi(s[1]),["ID","CLASS"].forEach(function(o){i.attributes.hasOwnProperty(o)&&(i.attributes[o]=String(i.attributes[o]))}),["START-DATE","END-DATE"].forEach(function(o){i.attributes.hasOwnProperty(o)&&(i.attributes[o]=new Date(i.attributes[o]))}),["DURATION","PLANNED-DURATION"].forEach(function(o){i.attributes.hasOwnProperty(o)&&(i.attributes[o]=parseFloat(i.attributes[o]))}),["END-ON-NEXT"].forEach(function(o){i.attributes.hasOwnProperty(o)&&(i.attributes[o]=/YES/i.test(i.attributes[o]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(o){i.attributes.hasOwnProperty(o)&&(i.attributes[o]=i.attributes[o].toString(16))});const a=/^X-([A-Z]+-)+[A-Z]+$/;for(const o in i.attributes){if(!a.test(o))continue;const l=/[0-9A-Fa-f]{6}/g.test(i.attributes[o]),c=/^\d+(\.\d+)?$/.test(i.attributes[o]);i.attributes[o]=l?i.attributes[o].toString(16):c?parseFloat(i.attributes[o]):String(i.attributes[o])}this.trigger("data",i);return}if(s=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(n),s){this.trigger("data",{type:"tag",tagType:"independent-segments"});return}if(s=/^#EXT-X-I-FRAMES-ONLY/.exec(n),s){this.trigger("data",{type:"tag",tagType:"i-frames-only"});return}if(s=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(n),s){i={type:"tag",tagType:"content-steering"},i.attributes=mi(s[1]),this.trigger("data",i);return}if(s=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(n),s){i={type:"tag",tagType:"i-frame-playlist"},i.attributes=mi(s[1]),i.attributes.URI&&(i.uri=i.attributes.URI),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=V2(i.attributes.RESOLUTION)),i.attributes["AVERAGE-BANDWIDTH"]&&(i.attributes["AVERAGE-BANDWIDTH"]=parseInt(i.attributes["AVERAGE-BANDWIDTH"],10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),this.trigger("data",i);return}if(s=/^#EXT-X-DEFINE:(.*)$/.exec(n),s){i={type:"tag",tagType:"define"},i.attributes=mi(s[1]),this.trigger("data",i);return}this.trigger("data",{type:"tag",data:n.slice(4)})})}addParser({expression:e,customType:s,dataParser:i,segment:r}){typeof i!="function"&&(i=n=>n),this.customParsers.push(n=>{if(e.exec(n))return this.trigger("data",{type:"custom",data:i(n),customType:s,segment:r}),!0})}addTagMapper({expression:e,map:s}){const i=r=>e.test(r)?s(r):r;this.tagMappers.push(i)}}const c7=t=>t.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase()),Za=function(t){const e={};return Object.keys(t).forEach(function(s){e[c7(s)]=t[s]}),e},h_=function(t){const{serverControl:e,targetDuration:s,partTargetDuration:i}=t;if(!e)return;const r="#EXT-X-SERVER-CONTROL",n="holdBack",a="partHoldBack",o=s&&s*3,l=i&&i*2;s&&!e.hasOwnProperty(n)&&(e[n]=o,this.trigger("info",{message:`${r} defaulting HOLD-BACK to targetDuration * 3 (${o}).`})),o&&e[n]<o&&(this.trigger("warn",{message:`${r} clamping HOLD-BACK (${e[n]}) to targetDuration * 3 (${o})`}),e[n]=o),i&&!e.hasOwnProperty(a)&&(e[a]=i*3,this.trigger("info",{message:`${r} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${e[a]}).`})),i&&e[a]<l&&(this.trigger("warn",{message:`${r} clamping PART-HOLD-BACK (${e[a]}) to partTargetDuration * 2 (${l}).`}),e[a]=l)};class d7 extends s1{constructor(e={}){super(),this.lineStream=new a7,this.parseStream=new u7,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;const s=this,i=[];let r={},n,a,o=!1;const l=function(){},c={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},d="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";let p=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let _=0,b=0;const T={};this.on("end",()=>{r.uri||!r.parts&&!r.preloadHints||(!r.map&&n&&(r.map=n),!r.key&&a&&(r.key=a),!r.timeline&&typeof p=="number"&&(r.timeline=p),this.manifest.preloadSegment=r)}),this.parseStream.on("data",function(y){let x,A;if(s.manifest.definitions){for(const C in s.manifest.definitions)if(y.uri&&(y.uri=y.uri.replace(`{$${C}}`,s.manifest.definitions[C])),y.attributes)for(const S in y.attributes)typeof y.attributes[S]=="string"&&(y.attributes[S]=y.attributes[S].replace(`{$${C}}`,s.manifest.definitions[C]))}({tag(){({version(){y.version&&(this.manifest.version=y.version)},"allow-cache"(){this.manifest.allowCache=y.allowed,"allowed"in y||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const C={};"length"in y&&(r.byterange=C,C.length=y.length,"offset"in y||(y.offset=_)),"offset"in y&&(r.byterange=C,C.offset=y.offset),_=C.offset+C.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),y.title&&(r.title=y.title),y.duration>0&&(r.duration=y.duration),y.duration===0&&(r.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=i},key(){if(!y.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(y.attributes.METHOD==="NONE"){a=null;return}if(!y.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(y.attributes.KEYFORMAT==="com.apple.streamingkeydelivery"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:y.attributes};return}if(y.attributes.KEYFORMAT==="com.microsoft.playready"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:y.attributes.URI};return}if(y.attributes.KEYFORMAT===d){if(["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(y.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(y.attributes.METHOD==="SAMPLE-AES-CENC"&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),y.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(y.attributes.KEYID&&y.attributes.KEYID.substring(0,2)==="0x")){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:y.attributes.KEYFORMAT,keyId:y.attributes.KEYID.substring(2)},pssh:TI(y.attributes.URI.split(",")[1])};return}y.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),a={method:y.attributes.METHOD||"AES-128",uri:y.attributes.URI},typeof y.attributes.IV<"u"&&(a.iv=y.attributes.IV)},"media-sequence"(){if(!isFinite(y.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+y.number});return}this.manifest.mediaSequence=y.number},"discontinuity-sequence"(){if(!isFinite(y.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+y.number});return}this.manifest.discontinuitySequence=y.number,p=y.number},"playlist-type"(){if(!/VOD|EVENT/.test(y.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+y.playlist});return}this.manifest.playlistType=y.playlistType},map(){n={},y.uri&&(n.uri=y.uri),y.byterange&&(n.byterange=y.byterange),a&&(n.key=a)},"stream-inf"(){if(this.manifest.playlists=i,this.manifest.mediaGroups=this.manifest.mediaGroups||c,!y.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}r.attributes||(r.attributes={}),xr(r.attributes,y.attributes)},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||c,!(y.attributes&&y.attributes.TYPE&&y.attributes["GROUP-ID"]&&y.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}const C=this.manifest.mediaGroups[y.attributes.TYPE];C[y.attributes["GROUP-ID"]]=C[y.attributes["GROUP-ID"]]||{},x=C[y.attributes["GROUP-ID"]],A={default:/yes/i.test(y.attributes.DEFAULT)},A.default?A.autoselect=!0:A.autoselect=/yes/i.test(y.attributes.AUTOSELECT),y.attributes.LANGUAGE&&(A.language=y.attributes.LANGUAGE),y.attributes.URI&&(A.uri=y.attributes.URI),y.attributes["INSTREAM-ID"]&&(A.instreamId=y.attributes["INSTREAM-ID"]),y.attributes.CHARACTERISTICS&&(A.characteristics=y.attributes.CHARACTERISTICS),y.attributes.FORCED&&(A.forced=/yes/i.test(y.attributes.FORCED)),x[y.attributes.NAME]=A},discontinuity(){p+=1,r.discontinuity=!0,this.manifest.discontinuityStarts.push(i.length)},"program-date-time"(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=y.dateTimeString,this.manifest.dateTimeObject=y.dateTimeObject),r.dateTimeString=y.dateTimeString,r.dateTimeObject=y.dateTimeObject;const{lastProgramDateTime:C}=this;this.lastProgramDateTime=new Date(y.dateTimeString).getTime(),C===null&&this.manifest.segments.reduceRight((S,E)=>(E.programDateTime=S-E.duration*1e3,E.programDateTime),this.lastProgramDateTime)},targetduration(){if(!isFinite(y.duration)||y.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+y.duration});return}this.manifest.targetDuration=y.duration,h_.call(this,this.manifest)},start(){if(!y.attributes||isNaN(y.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:y.attributes["TIME-OFFSET"],precise:y.attributes.PRECISE}},"cue-out"(){r.cueOut=y.data},"cue-out-cont"(){r.cueOutCont=y.data},"cue-in"(){r.cueIn=y.data},skip(){this.manifest.skip=Za(y.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",y.attributes,["SKIPPED-SEGMENTS"])},part(){o=!0;const C=this.manifest.segments.length,S=Za(y.attributes);r.parts=r.parts||[],r.parts.push(S),S.byterange&&(S.byterange.hasOwnProperty("offset")||(S.byterange.offset=b),b=S.byterange.offset+S.byterange.length);const E=r.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${E} for segment #${C}`,y.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((w,O)=>{w.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${O} lacks required attribute(s): LAST-PART`})})},"server-control"(){const C=this.manifest.serverControl=Za(y.attributes);C.hasOwnProperty("canBlockReload")||(C.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),h_.call(this,this.manifest),C.canSkipDateranges&&!C.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const C=this.manifest.segments.length,S=Za(y.attributes),E=S.type&&S.type==="PART";r.preloadHints=r.preloadHints||[],r.preloadHints.push(S),S.byterange&&(S.byterange.hasOwnProperty("offset")||(S.byterange.offset=E?b:0,E&&(b=S.byterange.offset+S.byterange.length)));const w=r.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${w} for segment #${C}`,y.attributes,["TYPE","URI"]),!!S.type)for(let O=0;O<r.preloadHints.length-1;O++){const R=r.preloadHints[O];R.type&&R.type===S.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${w} for segment #${C} has the same TYPE ${S.type} as preload hint #${O}`})}},"rendition-report"(){const C=Za(y.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(C);const S=this.manifest.renditionReports.length-1,E=["LAST-MSN","URI"];o&&E.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${S}`,y.attributes,E)},"part-inf"(){this.manifest.partInf=Za(y.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",y.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),h_.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(Za(y.attributes));const C=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${C}`,y.attributes,["ID","START-DATE"]);const S=this.manifest.dateRanges[C];S.endDate&&S.startDate&&new Date(S.endDate)<new Date(S.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),S.duration&&S.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),S.plannedDuration&&S.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const E=!!S.endOnNext;if(E&&!S.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT
67=YES attribute must have a CLASS attribute"}),E&&(S.duration||S.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),S.duration&&S.endDate){const O=S.startDate.getTime()+S.duration*1e3;this.manifest.dateRanges[C].endDate=new Date(O)}if(!T[S.id])T[S.id]=S;else{for(const O in T[S.id])if(S[O]&&JSON.stringify(T[S.id][O])!==JSON.stringify(S[O])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const w=this.manifest.dateRanges.findIndex(O=>O.id===S.id);this.manifest.dateRanges[w]=xr(this.manifest.dateRanges[w],S),T[S.id]=xr(T[S.id],S),this.manifest.dateRanges.pop()}},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=Za(y.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",y.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};const C=(S,E)=>{if(S in this.manifest.definitions){this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${S}`});return}this.manifest.definitions[S]=E};if("QUERYPARAM"in y.attributes){if("NAME"in y.attributes||"IMPORT"in y.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}const S=this.params.get(y.attributes.QUERYPARAM);if(!S){this.trigger("error",{message:`EXT-X-DEFINE: No query param ${y.attributes.QUERYPARAM}`});return}C(y.attributes.QUERYPARAM,decodeURIComponent(S));return}if("NAME"in y.attributes){if("IMPORT"in y.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}if(!("VALUE"in y.attributes)||typeof y.attributes.VALUE!="string"){this.trigger("error",{message:`EXT-X-DEFINE: No value for ${y.attributes.NAME}`});return}C(y.attributes.NAME,y.attributes.VALUE);return}if("IMPORT"in y.attributes){if(!this.mainDefinitions[y.attributes.IMPORT]){this.trigger("error",{message:`EXT-X-DEFINE: No value ${y.attributes.IMPORT} to import, or IMPORT used on main playlist`});return}C(y.attributes.IMPORT,this.mainDefinitions[y.attributes.IMPORT]);return}this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:y.attributes,uri:y.uri,timeline:p}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",y.attributes,["BANDWIDTH","URI"])}}[y.tagType]||l).call(s)},uri(){r.uri=y.uri,i.push(r),this.manifest.targetDuration&&!("duration"in r)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),r.duration=this.manifest.targetDuration),a&&(r.key=a),r.timeline=p,n&&(r.map=n),b=0,this.lastProgramDateTime!==null&&(r.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=r.duration*1e3),r={}},comment(){},custom(){y.segment?(r.custom=r.custom||{},r.custom[y.customType]=y.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[y.customType]=y.data)}})[y.type].call(s)})}requiredCompatibilityversion(e,s){(e<s||!e)&&this.trigger("warn",{message:`manifest must be at least version ${s}`})}warnOnMissingAttributes_(e,s,i){const r=[];i.forEach(function(n){s.hasOwnProperty(n)||r.push(n)}),r.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${r.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push(`
68`),this.manifest.dateRanges.length&&this.lastProgramDateTime===null&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}var _l={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},h7=["video","audio","text"],z2=["Video","Audio","Text"],SI=function(e){return e&&e.replace(/avc1\.(\d+)\.(\d+)/i,function(s,i,r){var n=("00"+Number(i).toString(16)).slice(-2),a=("00"+Number(r).toString(16)).slice(-2);return"avc1."+n+"00"+a})},_n=function(e){e===void 0&&(e="");var s=e.split(","),i=[];
vendor: 4,079 bytes, line 68
68return s.forEach(function(r){r=r.trim();var n;h7.forEach(function(a){var o=_l[a].exec(r.toLowerCase());if(!(!o||o.length<=1)){n=a;var l=r.substring(0,o[1].length),c=r.replace(l,"");i.push({type:l,details:c,mediaType:a})}}),n||i.push({type:r,details:"",mediaType:"unknown"})}),i},f7=function(e,s){if(!e.mediaGroups.AUDIO||!s)return null;var i=e.mediaGroups.AUDIO[s];if(!i)return null;for(var r in i){var n=i[r];if(n.default&&n.playlists)return _n(n.playlists[0].attributes.CODECS)}return null},EI=function(e){return e===void 0&&(e=""),_l.audio.test(e.trim().toLowerCase())},p7=function(e){return e===void 0&&(e=""),_l.text.test(e.trim().toLowerCase())},ju=function(e){if(!(!e||typeof e!="string")){var s=e.toLowerCase().split(",").map(function(n){return SI(n.trim())}),i="video";s.length===1&&EI(s[0])?i="audio":s.length===1&&p7(s[0])&&(i="application");var r="mp4";return s.every(function(n){return _l.mp4.test(n)})?r="mp4":s.every(function(n){return _l.webm.test(n)})?r="webm":s.every(function(n){return _l.ogg.test(n)})&&(r="ogg"),i+"/"+r+';codecs="'+e+'"'}},pp=function(e,s){return e===void 0&&(e=""),s===void 0&&(s=!1),Q.MediaSource&&Q.MediaSource.isTypeSupported&&Q.MediaSource.isTypeSupported(ju(e))||s&&Q.ManagedMediaSource&&Q.ManagedMediaSource.isTypeSupported&&Q.ManagedMediaSource.isTypeSupported(ju(e))||!1},f_=function(e){return e===void 0&&(e=""),e.toLowerCase().split(",").every(function(s){s=s.trim();for(var i=0;i<z2.length;i++){var r=z2[i];if(_l["muxer"+r].test(s))return!0}return!1})},G2="mp4a.40.2",m7="avc1.4d400d",g7=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,y7=/^application\/dash\+xml/i,xI=function(e){return g7.test(e)?"hls":y7.test(e)?"dash":e==="application/vnd.videojs.vhs+json"?"vhs-json":null},_7=function(e){return e.toString(2).length},v7=function(e){return Math.ceil(_7(e)/8)},CI=function(e){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},b7=function(e){return CI(e)},et=function(e){return e instanceof Uint8Array?e:(!Array.isArray(e)&&!b7(e)&&!(e instanceof ArrayBuffer)&&(typeof e!="number"||typeof e=="number"&&e!==e?e=0:e=[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},zs=Q.BigInt||Number,tb=[zs("0x1"),zs("0x100"),zs("0x10000"),zs("0x1000000"),zs("0x100000000"),zs("0x10000000000"),zs("0x1000000000000"),zs("0x100000000000000"),zs("0x10000000000000000")];(function(){var t=new Uint16Array([65484]),e=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);return e[0]===255?"big":e[0]===204?"little":"unknown"})();var T7=function(e,s){var i=s===void 0?{}:s,r=i.signed,n=r===void 0?!1:r,a=i.le,o=a===void 0?!1:a;e=et(e);var l=o?"reduce":"reduceRight",c=e[l]?e[l]:Array.prototype[l],d=c.call(e,function(_,b,T){var y=o?T:Math.abs(T+1-e.length);return _+zs(b)*tb[y]},zs(0));if(n){var p=tb[e.length]/zs(2)-zs(1);d=zs(d),d>p&&(d-=p,d-=p,d-=zs(2))}return Number(d)},S7=function(e,s){var i={},r=i.le,n=r===void 0?!1:r;(typeof e!="bigint"&&typeof e!="number"||typeof e=="number"&&e!==e)&&(e=0),e=zs(e);for(var a=v7(e),o=new Uint8Array(new ArrayBuffer(a)),l=0;l<a;l++){var c=n?l:Math.abs(l+1-o.length);o[c]=Number(e/tb[l]&zs(255)),e<0&&(o[c]=Math.abs(~o[c]),o[c]-=l===0?1:2)}return o},wI=function(e,s){if(typeof e!="string"&&e&&typeof e.toString=="function"&&(e=e.toString()),typeof e!="string")return new Uint8Array;s||(e=unescape(encodeURIComponent(e)));for(var i=new Uint8Array(e.length),r=0;r<e.length;r++)i[r]=e.charCodeAt(r);return i},E7=function(){for(var e=arguments.length,s=new Array(e),i=0;i<e;i++)s[i]=arguments[i];if(s=s.filter(function(o){return o&&(o.byteLength||o.length)&&typeof o!="string"}),s.length<=1)return et(s[0]);var r=s.reduce(function(o,l,c){return o+(l.byteLength||l.length)},0),n=new Uint8Array(r),a=0;return s.forEach(function(o){o=et(o),n.set(o,a),a+=o.byteLength}),n},ts=function(e,s,i){var r=i===void 0?{}:i,n=r.offset,a=n===void 0?0:n,o=r.mask,l=o===void 0?[]:o;e=et(e),s=et(s);var c=s.every?s.every:Array.prototype.every;return s.length&&e.length-a>=s.length&&c.call(s,function(d,p){var _=l[p]?l[p]&e[a+p]:e[a+p];return d===_})}
68,x7=function(e,s,i){s.forEach(function(r){for(var n in e.mediaGroups[r])for(var a in e.mediaGroups[r][n]){var o=e.mediaGroups[r][n][a];i(o,r,n,a)}})},Xa={},Ka={};function C7(t,e,s){if(s===void 0&&(s=Array.prototype),t&&typeof s.find=="function")return s.find.call(t,e);for(var i=0;i<t.length;i++)if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];if(e.call(void 0,r,i,t))return r}}function i1(t,e){return e===void 0&&(e=Object),e&&typeof e.freeze=="function"?e.freeze(t):t}function w7(t,e){if(t===null||typeof t!="object")throw new TypeError("target is not an object");for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}var AI=i1({HTML:"text/html",isHTML:function(t){return t===AI.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),kI=i1({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===kI.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});Ka.assign=w7;Ka.find=C7;Ka.freeze=i1;Ka.MIME_TYPE=AI;Ka.NAMESPACE=kI;var DI=Ka,Rn=DI.find,Hh=DI.NAMESPACE;function A7(t){return t!==""}function k7(t){return t?t.split(/[\t\n\f\r ]+/).filter(A7):[]}function D7(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function W2(t){if(!t)return[];var e=k7(t);return Object.keys(e.reduce(D7,{}))}function I7(t){return function(e){return t&&t.indexOf(e)!==-1}}function ff(t,e){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}function Ji(t,e){var s=t.prototype;if(!(s instanceof e)){let i=function(){};i.prototype=e.prototype,i=new i,ff(s,i),t.prototype=s=i}s.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),s.constructor=t)}var Zi={},Cr=Zi.ELEMENT_NODE=1,Hu=Zi.ATTRIBUTE_NODE=2,Gp=Zi.TEXT_NODE=3,II=Zi.CDATA_SECTION_NODE=4,PI=Zi.ENTITY_REFERENCE_NODE=5,P7=Zi.ENTITY_NODE=6,r1=Zi.PROCESSING_INSTRUCTION_NODE=7,n1=Zi.COMMENT_NODE=8,LI=Zi.DOCUMENT_NODE=9,OI=Zi.DOCUMENT_TYPE_NODE=10,Ra=Zi.DOCUMENT_FRAGMENT_NODE=11,L7=Zi.NOTATION_NODE=12,oi={},Hs={};oi.INDEX_SIZE_ERR=(Hs[1]="Index size error",1);oi.DOMSTRING_SIZE_ERR=(Hs[2]="DOMString size error",2);var Ui=oi.HIERARCHY_REQUEST_ERR=(Hs[3]="Hierarchy request error",3);oi.WRONG_DOCUMENT_ERR=(Hs[4]="Wrong document",4);var O7=oi.INVALID_CHARACTER_ERR=(Hs[5]="Invalid character",5);oi.NO_DATA_ALLOWED_ERR=(Hs[6]="No data allowed",6);oi.NO_MODIFICATION_ALLOWED_ERR=(Hs[7]="No modification allowed",7);var NI=oi.NOT_FOUND_ERR=(Hs[8]="Not found",8);oi.NOT_SUPPORTED_ERR=(Hs[9]="Not supported",9);var X2=oi.INUSE_ATTRIBUTE_ERR=(Hs[10]="Attribute in use",10),Hl=oi.INVALID_STATE_ERR=(Hs[11]="Invalid state",11);oi.SYNTAX_ERR=(Hs[12]="Syntax error",12);oi.INVALID_MODIFICATION_ERR=(Hs[13]="Invalid modification",13);oi.NAMESPACE_ERR=(Hs[14]="Invalid namespace",14);oi.INVALID_ACCESS_ERR=(Hs[15]="Invalid access",15);function qt(t,e){if(e instanceof Error)var s=e;else s=this,Error.call(this,Hs[t]),this.message=Hs[t],Error.captureStackTrace&&Error.captureStackTrace(this,qt);return s.code=t,e&&(this.message=this.message+": "+e),s}qt.prototype=Error.prototype;ff(oi,qt);function Ma(){}Ma.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,e,s){for(var i=!!s&&!!s.requireWellFormed,r=[],n=0;n<this.length;n++)p1(this[n],r,t,e,null,i);return r.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}};function qu(t,e){this._node=t,this._refresh=e,a1(this)}function a1(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==e){var s=t._refresh(t._node);if(GI(t,"length",s.length),!t.$$length||s.length<t.$$length)for(var i=s.length;i in t;i++)Object.prototype.hasOwnProperty.call(t,i)&&delete t[i];ff(s,t),t._inc=e}}qu.prototype.item=function(t){return a1(this),this[t]||null};Ji(qu,Ma);function Wp(){}function RI(t,e){for(var s=t.length;s--;)if(t[s]===e)return s}function K2(t,e,s,i){if(i?e[RI(e,i)]=s:e[e.length++]=s,t){s.ownerElement=t;var r=t.ownerDocument;r&&(i&&BI(r,t,i),N7(r,t,s))}}
vendor: 9,208 bytes, line 68
68function Y2(t,e,s){var i=RI(e,s);if(i>=0){for(var r=e.length-1;i<r;)e[i]=e[++i];if(e.length=r,t){var n=t.ownerDocument;n&&(BI(n,t,s),s.ownerElement=null)}}else throw new qt(NI,new Error(t.tagName+"@"+s))}Wp.prototype={length:0,item:Ma.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var s=this[e];if(s.nodeName==t)return s}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new qt(X2);var s=this.getNamedItem(t.nodeName);return K2(this._ownerElement,this,t,s),s},setNamedItemNS:function(t){var e=t.ownerElement,s;if(e&&e!=this._ownerElement)throw new qt(X2);return s=this.getNamedItemNS(t.namespaceURI,t.localName),K2(this._ownerElement,this,t,s),s},removeNamedItem:function(t){var e=this.getNamedItem(t);return Y2(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var s=this.getNamedItemNS(t,e);return Y2(this._ownerElement,this,s),s},getNamedItemNS:function(t,e){for(var s=this.length;s--;){var i=this[s];if(i.localName==e&&i.namespaceURI==t)return i}return null}};function MI(){}MI.prototype={hasFeature:function(t,e){return!0},createDocument:function(t,e,s){var i=new pf;if(i.implementation=this,i.childNodes=new Ma,i.doctype=s||null,s&&i.appendChild(s),e){var r=i.createElementNS(t,e);i.appendChild(r)}return i},createDocumentType:function(t,e,s){var i=new pg;return i.name=t,i.nodeName=t,i.publicId=e||"",i.systemId=s||"",i}};function Ht(){}Ht.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return Kp(this,t,e)},replaceChild:function(t,e){Kp(this,t,e,$I),e&&this.removeChild(e)},removeChild:function(t){return UI(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return zI(this.ownerDocument||this,this,t)},normalize:function(){Fs(this,null,{enter:function(t){for(var e=t.firstChild;e;){var s=e.nextSibling;s!==null&&s.nodeType===Gp&&e.nodeType===Gp?(t.removeChild(s),e.appendData(s.data)):e=s}return!0}})},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var s=e._nsMap;if(s){for(var i in s)if(Object.prototype.hasOwnProperty.call(s,i)&&s[i]===t)return i}e=e.nodeType==Hu?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var s=e._nsMap;if(s&&Object.prototype.hasOwnProperty.call(s,t))return s[t];e=e.nodeType==Hu?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){var e=this.lookupPrefix(t);return e==null}};function FI(t){return t=="<"&&"&lt;"||t==">"&&"&gt;"||t=="&"&&"&amp;"||t=='"'&&"&quot;"||"&#"+t.charCodeAt()+";"}ff(Zi,Ht);ff(Zi,Ht.prototype);function Xp(t,e){return Fs(t,null,{enter:function(s){return e(s)?Fs.STOP:!0}})===Fs.STOP}function Fs(t,e,s){for(var i=[{node:t,context:e,phase:Fs.ENTER}];i.length>0;){var r=i.pop();if(r.phase===Fs.ENTER){var n=s.enter(r.node,r.context);if(n===Fs.STOP)return Fs.STOP;if(i.push({node:r.node,context:n,phase:Fs.EXIT}),n==null)continue;for(var a=r.node.lastChild;a;)i.push({node:a,context:n,phase:Fs.ENTER}),a=a.previousSibling}else s.exit&&s.exit(r.node,r.context)}}Fs.STOP=Symbol("walkDOM.STOP");Fs.ENTER=0;Fs.EXIT=1;function pf(){this.ownerDocument=this}function N7(t,e,s){t&&t._inc++;var i=s.namespaceURI;i===Hh.XMLNS&&(e._nsMap[s.prefix?s.localName:""]=s.value)}function BI(t,e,s,i){t&&t._inc++;var r=s.namespaceURI;r===Hh.XMLNS&&delete e._nsMap[s.prefix?s.localName:""]}function o1(t,e,s){if(t&&t._inc){t._inc++;var i=e.childNodes;if(s)i[i.length++]=s;else{for(var r=e.firstChild,n=0;r;)i[n++]=r,r=r.nextSibling;i.length=n,delete i[i.length]}}}function UI(t,e){var s=e.previousSibling,i=e.nextSibling;return s?s.nextSibling=i:t.firstChild=i,i?i.previousSibling=s:t.lastChild=s,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,o1(t.ownerDocument,t),e}function R7(t){return t&&(t.nodeType===Ht.DOCUMENT_NODE||t.nodeType===Ht.DOCUMENT_FRAGMENT_NODE||t.nodeType===Ht.ELEMENT_NODE)}function M7(t){return t&&(Mn(t)||l1(t)||Ha(t)||t.nodeType===Ht.DOCUMENT_FRAGMENT_NODE||t.nodeType===Ht.COMMENT_NODE||t.nodeType===Ht.PROCESSING_INSTRUCTION_NODE)}function Ha(t){return t&&t.nodeType===Ht.DOCUMENT_TYPE_NODE}function Mn(t){return t&&t.nodeType===Ht.ELEMENT_NODE}function l1(t){return t&&t.nodeType===Ht.TEXT_NODE}function Q2(t,e){var s=t.childNodes||[];if(Rn(s,Mn)||Ha(e))return!1;var i=Rn(s,Ha);return!(e&&i&&s.indexOf(i)>s.indexOf(e))}function J2(t,e){var s=t.childNodes||[];function i(n){return Mn(n)&&n!==e}if(Rn(s,i))return!1;var r=Rn(s,Ha);return!(e&&r&&s.indexOf(r)>s.indexOf(e))}function F7(t,e,s){if(!R7(t))throw new qt(Ui,"Unexpected parent node type "+t.nodeType);if(s&&s.parentNode!==t)throw new qt(NI,"child not in parent");if(!M7(e)||Ha(e)&&t.nodeType!==Ht.DOCUMENT_NODE)throw new qt(Ui,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)}function B7(t,e,s){var i=t.childNodes||[],r=e.childNodes||[];if(e.nodeType===Ht.DOCUMENT_FRAGMENT_NODE){var n=r.filter(Mn);if(n.length>1||Rn(r,l1))throw new qt(Ui,"More than one element or text in fragment");if(n.length===1&&!Q2(t,s))throw new qt(Ui,"Element in fragment can not be inserted before doctype")}if(Mn(e)&&!Q2(t,s))throw new qt(Ui,"Only one element can be added and only after doctype");if(Ha(e)){if(Rn(i,Ha))throw new qt(Ui,"Only one doctype is allowed");var a=Rn(i,Mn);if(s&&i.indexOf(a)<i.indexOf(s))throw new qt(Ui,"Doctype can only be inserted before an element");if(!s&&a)throw new qt(Ui,"Doctype can not be appended since element is present")}}function $I(t,e,s){var i=t.childNodes||[],r=e.childNodes||[];if(e.nodeType===Ht.DOCUMENT_FRAGMENT_NODE){var n=r.filter(Mn);if(n.length>1||Rn(r,l1))throw new qt(Ui,"More than one element or text in fragment");if(n.length===1&&!J2(t,s))throw new qt(Ui,"Element in fragment can not be inserted before doctype")}if(Mn(e)&&!J2(t,s))throw new qt(Ui,"Only one element can be added and only after doctype");if(Ha(e)){if(Rn(i,function(l){return Ha(l)&&l!==s}))throw new qt(Ui,"Only one doctype is allowed");var a=Rn(i,Mn);if(s&&i.indexOf(a)<i.indexOf(s))throw new qt(Ui,"Doctype can only be inserted before an element")}}function Kp(t,e,s,i){F7(t,e,s),t.nodeType===Ht.DOCUMENT_NODE&&(i||B7)(t,e,s);var r=e.parentNode;if(r&&r.removeChild(e),e.nodeType===Ra){var n=e.firstChild;if(n==null)return e;var a=e.lastChild}else n=a=e;var o=s?s.previousSibling:t.lastChild;n.previousSibling=o,a.nextSibling=s,o?o.nextSibling=n:t.firstChild=n,s==null?t.lastChild=a:s.previousSibling=a;do{n.parentNode=t;var l=t.ownerDocument||t;qh(n,l)}while(n!==a&&(n=n.nextSibling));return o1(t.ownerDocument||t,t),e.nodeType==Ra&&(e.firstChild=e.lastChild=null),e}function qh(t,e){if(t.ownerDocument!==e){if(t.ownerDocument=e,t.nodeType===Cr&&t.attributes)for(var s=0;s<t.attributes.length;s++){var i=t.attributes.item(s);i&&(i.ownerDocument=e)}for(var r=t.firstChild;r;)qh(r,e),r=r.nextSibling}}function U7(t,e){e.parentNode&&e.parentNode.removeChild(e),e.parentNode=t,e.previousSibling=t.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,t.lastChild=e,o1(t.ownerDocument,t,e);var s=t.ownerDocument||t;return qh(e,s),e}pf.prototype={nodeName:"#document",nodeType:LI,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==Ra){for(var s=t.firstChild;s;){var i=s.nextSibling;this.insertBefore(s,e),s=i}return t}return Kp(this,t,e),qh(t,this),this.documentElement===null&&t.nodeType===Cr&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),UI(this,t)},replaceChild:function(t,e){Kp(this,t,e,$I),qh(t,this),e&&this.removeChild(e),Mn(t)&&(this.documentElement=t)},importNode:function(t,e){return $7(this,t,e)},getElementById:function(t){var e=null;return Xp(this.documentElement,function(s){if(s.nodeType==Cr&&s.getAttribute("id")==t)return e=s,!0}),e},getElementsByClassName:function(t){var e=W2(t);return new qu(this,function(s){var i=[];return e.length>0&&Xp(s.documentElement,function(r){if(r!==s&&r.nodeType===Cr){var n=r.getAttribute("class");if(n){var a=t===n;if(!a){var o=W2(n);a=e.every(I7(o))}a&&i.push(r)}}}),i})},createElement:function(t){var e=new Al;e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new Ma;var s=e.attributes=new Wp;return s._ownerElement=e,e},createDocumentFragment:function(){var t=new mg;return t.ownerDocument=this,t.childNodes=new Ma,t},createTextNode:function(t){var e=new u1;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new c1;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){if(t.indexOf("]]>")!==-1)throw new qt(O7,'data contains "]]>"');var e=new d1;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var s=new f1;return s.ownerDocument=this,s.tagName=s.nodeName=s.target=t,s.nodeValue=s.data=e,s},createAttribute:function(t){var e=new Yp;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.
68specified=!0,e},createEntityReference:function(t){var e=new h1;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var s=new Al,i=e.split(":"),r=s.attributes=new Wp;return s.childNodes=new Ma,s.ownerDocument=this,s.nodeName=e,s.tagName=e,s.namespaceURI=t,i.length==2?(s.prefix=i[0],s.localName=i[1]):s.localName=e,r._ownerElement=s,s},createAttributeNS:function(t,e){var s=new Yp,i=e.split(":");return s.ownerDocument=this,s.nodeName=e,s.name=e,s.namespaceURI=t,s.specified=!0,i.length==2?(s.prefix=i[0],s.localName=i[1]):s.localName=e,s}};Ji(pf,Ht);function Al(){this._nsMap={}}Al.prototype={nodeType:Cr,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var s=this.ownerDocument.createAttribute(t);s.value=s.nodeValue=""+e,this.setAttributeNode(s)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===Ra?this.insertBefore(t,null):U7(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var s=this.getAttributeNodeNS(t,e);s&&this.removeAttributeNode(s)},hasAttributeNS:function(t,e){return this.getAttributeNodeNS(t,e)!=null},getAttributeNS:function(t,e){var s=this.getAttributeNodeNS(t,e);return s&&s.value||""},setAttributeNS:function(t,e,s){var i=this.ownerDocument.createAttributeNS(t,e);i.value=i.nodeValue=""+s,this.setAttributeNode(i)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new qu(this,function(e){var s=[];return Xp(e,function(i){i!==e&&i.nodeType==Cr&&(t==="*"||i.tagName==t)&&s.push(i)}),s})},getElementsByTagNameNS:function(t,e){return new qu(this,function(s){var i=[];return Xp(s,function(r){r!==s&&r.nodeType===Cr&&(t==="*"||r.namespaceURI===t)&&(e==="*"||r.localName==e)&&i.push(r)}),i})}};pf.prototype.getElementsByTagName=Al.prototype.getElementsByTagName;pf.prototype.getElementsByTagNameNS=Al.prototype.getElementsByTagNameNS;Ji(Al,Ht);function Yp(){}Yp.prototype.nodeType=Hu;Ji(Yp,Ht);function mf(){}mf.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(Hs[Ui])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,s){var i=this.data.substring(0,t),r=this.data.substring(t+e);s=i+s+r,this.nodeValue=this.data=s,this.length=s.length}};Ji(mf,Ht);function u1(){}u1.prototype={nodeName:"#text",nodeType:Gp,splitText:function(t){var e=this.data,s=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var i=this.ownerDocument.createTextNode(s);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}};Ji(u1,mf);function c1(){}c1.prototype={nodeName:"#comment",nodeType:n1};Ji(c1,mf);function d1(){}d1.prototype={nodeName:"#cdata-section",nodeType:II};Ji(d1,mf);function pg(){}pg.prototype.nodeType=OI;Ji(pg,Ht);function jI(){}jI.prototype.nodeType=L7;Ji(jI,Ht);function HI(){}HI.prototype.nodeType=P7;Ji(HI,Ht);function h1(){}h1.prototype.nodeType=PI;Ji(h1,Ht);function mg(){}mg.prototype.nodeName="#document-fragment";mg.prototype.nodeType=Ra;Ji(mg,Ht);function f1(){}f1.prototype.nodeType=r1;Ji(f1,Ht);function qI(){}qI.prototype.serializeToString=function(t,e,s,i){return VI.call(t,e,s,i)};Ht.prototype.toString=VI;function VI(t,e,s){var i=!!s&&!!s.requireWellFormed,r=[],n=this.nodeType==9&&this.documentElement||this,a=n.prefix,o=n.namespaceURI;if(o&&a==null){var a=n.lookupPrefix(o);if(a==null)var l=[{namespace:o,prefix:null}]}return p1(this,r,t,e,l,i),r.join("")}function Z2(t,e,s){var i=t.prefix||"",r=t.namespaceURI;if(!r||i==="xml"&&r===Hh.XML||r===Hh.XMLNS)return!1;for(var n=s.length;n--;){var a=s[n];if(a.prefix===i)return a.namespace!==r}return!0}function qf(t,e,s){t.push(" ",e,'="',s.replace(/[<>&"\t\n\r]/g,FI),'"')}function p1(t,e,s,i,r,n){r||(r=[]),Fs(t,{ns:r,isHTML:s}
vendor: 4,381 bytes, line 68
68,{enter:function(a,o){var l=o.ns,c=o.isHTML;if(i)if(a=i(a),a){if(typeof a=="string")return e.push(a),null}else return null;switch(a.nodeType){case Cr:var d=a.attributes,p=d.length,_=a.tagName;c=Hh.isHTML(a.namespaceURI)||c;var b=_;if(!c&&!a.prefix&&a.namespaceURI){for(var T,y=0;y<d.length;y++)if(d.item(y).name==="xmlns"){T=d.item(y).value;break}if(!T)for(var x=l.length-1;x>=0;x--){var A=l[x];if(A.prefix===""&&A.namespace===a.namespaceURI){T=A.namespace;break}}if(T!==a.namespaceURI)for(var x=l.length-1;x>=0;x--){var A=l[x];if(A.namespace===a.namespaceURI){A.prefix&&(b=A.prefix+":"+_);break}}}e.push("<",b);for(var C=l.slice(),S=0;S<p;S++){var E=d.item(S);E.prefix=="xmlns"?C.push({prefix:E.localName,namespace:E.value}):E.nodeName=="xmlns"&&C.push({prefix:"",namespace:E.value})}for(var S=0;S<p;S++){var E=d.item(S);if(Z2(E,c,C)){var w=E.prefix||"",O=E.namespaceURI;qf(e,w?"xmlns:"+w:"xmlns",O),C.push({prefix:w,namespace:O})}var R=i?i(E):E;R&&(typeof R=="string"?e.push(R):qf(e,R.name,R.value))}if(_===b&&Z2(a,c,C)){var $=a.prefix||"",O=a.namespaceURI;qf(e,$?"xmlns:"+$:"xmlns",O),C.push({prefix:$,namespace:O})}var k=a.firstChild;if(k||c&&!/^(?:meta|link|img|br|hr|input)$/i.test(_)){if(e.push(">"),c&&/^script$/i.test(_)){for(;k;)k.data?e.push(k.data):p1(k,e,c,i,C.slice(),n),k=k.nextSibling;return e.push("</",_,">"),null}return{ns:C,isHTML:c,tag:b}}else return e.push("/>"),null;case LI:case Ra:return{ns:l.slice(),isHTML:c,tag:null};case Hu:return qf(e,a.name,a.value),null;case Gp:return e.push(a.data.replace(/[<&>]/g,FI)),null;case II:if(n&&a.data.indexOf("]]>")!==-1)throw new qt(Hl,'The CDATASection data contains "]]>"');return e.push("<![CDATA[",a.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case n1:if(n&&a.data.indexOf("-->")!==-1)throw new qt(Hl,'The comment node data contains "-->"');return e.push("<!--",a.data,"-->"),null;case OI:if(n){if(a.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(a.publicId))throw new qt(Hl,"DocumentType publicId is not a valid PubidLiteral");if(a.systemId&&!/^("[^"]*"|'[^']*')$/.test(a.systemId))throw new qt(Hl,"DocumentType systemId is not a valid SystemLiteral");if(a.internalSubset&&a.internalSubset.indexOf("]>")!==-1)throw new qt(Hl,'DocumentType internalSubset contains "]>"')}var P=a.publicId,j=a.systemId;if(e.push("<!DOCTYPE ",a.name),P)e.push(" PUBLIC ",P),j&&j!="."&&e.push(" ",j),e.push(">");else if(j&&j!=".")e.push(" SYSTEM ",j,">");else{var F=a.internalSubset;F&&e.push(" [",F,"]"),e.push(">")}return null;case r1:if(n&&a.data.indexOf("?>")!==-1)throw new qt(Hl,'The ProcessingInstruction data contains "?>"');return e.push("<?",a.target," ",a.data,"?>"),null;case PI:return e.push("&",a.nodeName,";"),null;default:return e.push("??",a.nodeName),null}},exit:function(a,o){o&&o.tag&&e.push("</",o.tag,">")}})}function $7(t,e,s){var i;return Fs(e,null,{enter:function(r,n){var a=r.cloneNode(!1);a.ownerDocument=t,a.parentNode=null,n===null?i=a:n.appendChild(a);var o=r.nodeType===Hu||s;return o?a:null}}),i}function zI(t,e,s){var i;return Fs(e,null,{enter:function(r,n){var a=new r.constructor;for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)){var l=r[o];typeof l!="object"&&l!=a[o]&&(a[o]=l)}r.childNodes&&(a.childNodes=new Ma),a.ownerDocument=t;var c=s;switch(a.nodeType){case Cr:var d=r.attributes,p=a.attributes=new Wp,_=d.length;p._ownerElement=a;for(var b=0;b<_;b++)a.setAttributeNode(zI(t,d.item(b),!0));break;case Hu:c=!0}return n!==null?n.appendChild(a):i=a,c?a:null}}),i}function GI(t,e,s){t[e]=s}try{Object.defineProperty&&(Object.defineProperty(qu.prototype,"length",{get:function(){return a1(this),this.$$length}}),Object.defineProperty(Ht.prototype,"textContent",{get:function(){if(this.nodeType===Cr||this.nodeType===Ra){var t=[];return Fs(this,null,{enter:function(e){if(e.nodeType===Cr||e.nodeType===Ra)return!0;if(e.nodeType===r1||e.nodeType===n1)return null;t.push(e.nodeValue)}}),t.join("")}return this.nodeValue},set:function(t){switch(this.nodeType){case Cr:case Ra:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),GI=function(t,e,s){t["$$"+e]=s})}catch{}Xa.DocumentType=pg;Xa.DOMException=qt;Xa.DOMImplementation=MI;Xa.Element=Al;Xa.Node=Ht;Xa.NodeList=Ma;Xa.walkDOM=Fs;
68Xa.XMLSerializer=qI;var gg={},WI={};(function(t){var e=Ka.freeze;t.XML_ENTITIES=e({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=e
vendor: 14,815 bytes, line 68
68({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:
68`
69`
vendor: 9,925 bytes, line 69
69,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"
69	",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES})(WI);var m1={},Vh=Ka.NAMESPACE,sb=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,ex=new RegExp("[\\-\\.0-9"+sb.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),tx=new RegExp("^"+sb.source+ex.source+"*(?::"+sb.source+ex.source+"*)?$"),Pd=0,eo=1,ql=2,Ld=3,Vl=4,zl=5,Od=6,Vf=7;function Vu(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,Vu)}Vu.prototype=new Error;Vu.prototype.name=Vu.name;function XI(){}XI.prototype={parse:function(t,e,s){var i=this.domBuilder;i.startDocument(),KI(e,e={}),j7(t,e,s,i,this.errorHandler),i.endDocument()}};function j7(t,e,s,i,r){function n(se){if(se>65535){se-=65536;var K=55296+(se>>10),X=56320+(se&1023);return String.fromCharCode(K,X)}else return String.fromCharCode(se)}function a(se){var K=se.slice(1,-1);return Object.hasOwnProperty.call(s,K)?s[K]:K.charAt(0)==="#"?n(parseInt(K.substr(1).replace("x","0x"))):(r.error("entity n
69ot found:"+se),se)}function o(se){if(se>y){var K=t.substring(y,se).replace(/&#?\w+;/g,a);_&&l(y),i.characters(K,0,se-y),y=se}}function l(se,K){for(;se>=d&&(K=p.exec(t));)c=K.index,d=c+K[0].length,_.lineNumber++;_.columnNumber=se-c+1}for(var c=0,d=0,p=/.*(?:\r\n?|\n)|.*$/g,_=i.locator,b=[{currentNSMap:e}],T={},y=0;;){try{var x=t.indexOf("<",y);if(x<0){if(!t.substr(y).match(/^\s*$/)){var A=i.doc,C=A.createTextNode(t.substr(y));A.appendChild(C),i.currentElement=C}return}switch(x>y&&o(x),t.charAt(x+1)){case"/":var j=t.indexOf(">",x+3),S=t.substring(x+2,j).replace(/[ \t\n\r]+$/g,""),E=b.pop();j<0?(S=t.substring(x+2).replace(/[\s<].*/,""),r.error("end tag name: "+S+" is not complete:"+E.tagName),j=x+1+S.length):S.match(/\s</)&&(S=S.replace(/[\s<].*/,""),r.error("end tag name: "+S+" maybe not complete"),j=x+1+S.length);var w=E.localNSMap,O=E.tagName==S,R=O||E.tagName&&E.tagName.toLowerCase()==S.toLowerCase();if(R){if(i.endElement(E.uri,E.localName,S),w)for(var $ in w)Object.prototype.hasOwnProperty.call(w,$)&&i.endPrefixMapping($);O||r.fatalError("end tag name: "+S+" is not match the current start tagName:"+E.tagName)}else b.push(E);j++;break;case"?":_&&l(x),j=G7(t,x,i);break;case"!":_&&l(x),j=z7(t,x,i,r);break;default:_&&l(x);var k=new YI,P=b[b.length-1].currentNSMap,j=H7(t,x,k,P,a,r),F=k.length;if(!k.closed&&V7(t,j,k.tagName,T)&&(k.closed=!0,s.nbsp||r.warning("unclosed xml attribute")),_&&F){for(var H=sx(_,{}),te=0;te<F;te++){var oe=k[te];l(oe.offset),oe.locator=sx(_,{})}i.locator=H,ix(k,i,P)&&b.push(k),i.locator=_}else ix(k,i,P)&&b.push(k);Vh.isHTML(k.uri)&&!k.closed?j=q7(t,j,k.tagName,a,i):j++}}catch(se){if(se instanceof Vu)throw se;r.error("element parse error: "+se),j=-1}j>y?y=j:o(Math.max(x,y)+1)}}function sx(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function H7(t,e,s,i,r,n){function a(_,b,T){s.attributeNames.hasOwnProperty(_)&&n.fatalError("Attribute "+_+" redefined"),s.addValue(_,b.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,r),T)}for(var o,l,c=++e,d=Pd;;){var p=t.charAt(c);switch(p){case"=":if(d===eo)o=t.slice(e,c),d=Ld;else if(d===ql)d=Ld;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(d===Ld||d===eo)if(d===eo&&(n.warning('attribute value must after "="'),o=t.slice(e,c)),e=c+1,c=t.indexOf(p,e),c>0)l=t.slice(e,c),a(o,l,e-1),d=zl;else throw new Error("attribute value no end '"+p+"' match");else if(d==Vl)l=t.slice(e,c),a(o,l,e),n.warning('attribute "'+o+'" missed start quot('+p+")!!"),e=c+1,d=zl;else throw new Error('attribute value must after "="');break;case"/":switch(d){case Pd:s.setTagName(t.slice(e,c));case zl:case Od:case Vf:d=Vf,s.closed=!0;case Vl:case eo:break;case ql:s.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return n.error("unexpected end of input"),d==Pd&&s.setTagName(t.slice(e,c)),c;case">":switch(d){case Pd:s.setTagName(t.slice(e,c));case zl:case Od:case Vf:break;case Vl:case eo:l=t.slice(e,c),l.slice(-1)==="/"&&(s.closed=!0,l=l.slice(0,-1));case ql:d===ql&&(l=o),d==Vl?(n.warning('attribute "'+l+'" missed quot(")!'),a(o,l,e)):((!Vh.isHTML(i[""])||!l.match(/^(?:disabled|checked|selected)$/i))&&n.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),a(l,l,e));break;case Ld:throw new Error("attribute value missed!!")}return c;case"€":p=" ";default:if(p<=" ")switch(d){case Pd:s.setTagName(t.slice(e,c)),d=Od;break;case eo:o=t.slice(e,c),d=ql;break;case Vl:var l=t.slice(e,c);n.warning('attribute "'+l+'" missed quot(")!!'),a(o,l,e);case zl:d=Od;break}else switch(d){case ql:s.tagName,(!Vh.isHTML(i[""])||!o.match(/^(?:disabled|checked|selected)$/i))&&n.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!'),a(o,o,e),e=c,d=eo;break;case zl:n.warning('attribute space is required"'+o+'"!!');case Od:d=eo,e=c;break;case Ld:d=Vl,e=c;break;case Vf:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function ix(t,e,s){for(var i=t.tagName,r=null,p=t.length;p--;){var n=t[p],a=n.qName,o=n.value,_=a.indexOf(":");if(_>0)var l=n.prefix=a.slice(0,_),c=a.slice(_+1),d=l==="xmlns"&&c;else c=a,l=null,d=a==="xmlns"&&"";n.localName=c,d!==!1&&(r==null&&(r={},KI(s,s={})),s[d]=r[d]=o,n.uri=Vh.XMLNS,e.startPrefixMapping(d,o))}for(var p=t.length;p--;){n=t[p];var l=n.prefix;l&&(l==="xml"&&(n.uri=Vh.XML),l!=="xmlns"&&(n.uri=s[l||""]))}var _=i.indexOf(":");_>0?(l=t.prefix=i.slice(0,_),c=t.localName=i.slice(_+1)):(l=null,c=t.localName=i);var b=t.uri=s[l||""];if(e.startElement(b,c,i,t),t.closed){if(e.endElement(b,c,i),r)for(l in r)Object.prototype.hasOwnProperty.call(r,l)&&e.endPrefixMapping(l)}else return t.currentNSMap=s,t.localNSMap=r,!0}function q7(t,e,s,i,r){if(/^(?:script|textarea)$/i.test(s)){var n=t.indexOf("</"+s+">",e),a=t.substring(e+1,n);if(/[&<]/.test(a))return/^script$/i.test(s)?(r.characters(a,0,a.length),n):(a=a.replace(/&#?\w+;/g,i),r.characters(a,0,a.length),n)}return e+1}function V7(t,e,s,i){var r=i[s];return r==null&&(r=t.lastIndexOf("</"+s+">"),r<e&&(r=t.lastIndexOf("</"+s)),i[s]=r),r<e}function KI(t,e){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}function z7(t,e,s,i){var r=t.charAt(e+2);switch(r){case"-":if(t.charAt(e+3)==="-"){var n=t.indexOf("-->",e+4);return n>e?(s.comment(t,e+4,n-e-4),n+3):(i.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(e+3,6)=="CDATA["){var n=t.indexOf("]]>",e+9);return s.startCDATA(),s.characters(t,e+9,n-e-9),s.endCDATA(),n+3}var a=W7(t,e),o=a.length;if(o>
vendor: 32,763 bytes, lines 69-82
691&&/!doctype/i.test(a[0][0])){var l=a[1][0],c=!1,d=!1;o>3&&(/^public$/i.test(a[2][0])?(c=a[3][0],d=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(d=a[3][0]));var p=a[o-1];return s.startDTD(l,c,d),s.endDTD(),p.index+p[0].length}}return-1}function G7(t,e,s){var i=t.indexOf("?>",e);if(i){var r=t.substring(e,i).match(/^<\?(\S*)\s*([\s\S]*?)$/);return r?(r[0].length,s.processingInstruction(r[1],r[2]),i+2):-1}return-1}function YI(){this.attributeNames={}}YI.prototype={setTagName:function(t){if(!tx.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,s){if(!tx.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:s}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function W7(t,e){var s,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=e,r.exec(t);s=r.exec(t);)if(i.push(s),s[1])return i}m1.XMLReader=XI;m1.ParseError=Vu;var X7=Ka,K7=Xa,rx=WI,QI=m1,Y7=K7.DOMImplementation,nx=X7.NAMESPACE,Q7=QI.ParseError,J7=QI.XMLReader;function JI(t){return t.replace(/\r[\n\u0085]/g,`
70`).replace(/[\r\u0085\u2028]/g,`
71`)}function ZI(t){this.options=t||{locator:{}}}ZI.prototype.parseFromString=function(t,e){var s=this.options,i=new J7,r=s.domBuilder||new gf,n=s.errorHandler,a=s.locator,o=s.xmlns||{},l=/\/x?html?$/.test(e),c=l?rx.HTML_ENTITIES:rx.XML_ENTITIES;a&&r.setDocumentLocator(a),i.errorHandler=Z7(n,r,a),i.domBuilder=s.domBuilder||r,l&&(o[""]=nx.HTML),o.xml=o.xml||nx.XML;var d=s.normalizeLineEndings||JI;return t&&typeof t=="string"?i.parse(d(t),o,c):i.errorHandler.error("invalid doc source"),r.doc};function Z7(t,e,s){if(!t){if(e instanceof gf)return e;t=e}var i={},r=t instanceof Function;s=s||{};function n(a){var o=t[a];!o&&r&&(o=t.length==2?function(l){t(a,l)}:t),i[a]=o&&function(l){o("[xmldom "+a+"]	"+l+ib(s))}||function(){}}return n("warning"),n("error"),n("fatalError"),i}function gf(){this.cdata=!1}function Gl(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}gf.prototype={startDocument:function(){this.doc=new Y7().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,s,i){var r=this.doc,n=r.createElementNS(t,s||e),a=i.length;zf(this,n),this.currentElement=n,this.locator&&Gl(this.locator,n);for(var o=0;o<a;o++){var t=i.getURI(o),l=i.getValue(o),s=i.getQName(o),c=r.createAttributeNS(t,s);this.locator&&Gl(i.getLocator(o),c),c.value=c.nodeValue=l,n.setAttributeNode(c)}},endElement:function(t,e,s){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var s=this.doc.createProcessingInstruction(t,e);this.locator&&Gl(this.locator,s),zf(this,s)},ignorableWhitespace:function(t,e,s){},characters:function(t,e,s){if(t=ax.apply(this,arguments),t){if(this.cdata)var i=this.doc.createCDATASection(t);else var i=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(t)&&this.doc.appendChild(i),this.locator&&Gl(this.locator,i)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,s){t=ax.apply(this,arguments);var i=this.doc.createComment(t);this.locator&&Gl(this.locator,i),zf(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,s){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(t,e,s);this.locator&&Gl(this.locator,r),zf(this,r),this.doc.doctype=r}},warning:function(t){console.warn("[xmldom warning]	"+t,ib(this.locator))},error:function(t){console.error("[xmldom error]	"+t,ib(this.locator))},fatalError:function(t){throw new Q7(t,this.locator)}};function ib(t){if(t)return`
72@`+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function ax(t,e,s){return typeof t=="string"?t.substr(e,s):t.length>=e+s||e?new java.lang.String(t,e,s)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){gf.prototype[t]=function(){return null}});function zf(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}gg.__DOMHandler=gf;gg.normalizeLineEndings=JI;gg.DOMParser=ZI;var e9=gg.DOMParser;/*! @name mpd-parser @version 1.4.0 @license Apache-2.0 */const ox=t=>!!t&&typeof t=="object",Bs=(...t)=>t.reduce((e,s)=>(typeof s!="object"||Object.keys(s).forEach(i=>{Array.isArray(e[i])&&Array.isArray(s[i])?e[i]=e[i].concat(s[i]):ox(e[i])&&ox(s[i])?e[i]=Bs(e[i],s[i]):e[i]=s[i]}),e),{}),eP=t=>Object.keys(t).map(e=>t[e]),t9=(t,e)=>{const s=[];for(let i=t;i<e;i++)s.push(i);return s},zu=t=>t.reduce((e,s)=>e.concat(s),[]),tP=t=>{if(!t.length)return[];const e=[];for(let s=0;s<t.length;s++)e.push(t[s]);return e},s9=(t,e)=>t.reduce((s,i,r)=>(i[e]&&s.push(r),s),[]),i9=(t,e)=>eP(t.reduce((s,i)=>(i.forEach(r=>{s[e(r)]=r}),s),{}));var Gu={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"};const zh=({baseUrl:t="",source:e="",range:s="",indexRange:i=""})=>{const r={uri:e,resolvedUri:fg(t||"",e)};if(s||i){const a=(s||i).split("-");let o=Q.BigInt?Q.BigInt(a[0]):parseInt(a[0],10),l=Q.BigInt?Q.BigInt(a[1]):parseInt(a[1],10);o<Number.MAX_SAFE_INTEGER&&typeof o=="bigint"&&(o=Number(o)),l<Number.MAX_SAFE_INTEGER&&typeof l=="bigint"&&(l=Number(l));let c;typeof l=="bigint"||typeof o=="bigint"?c=Q.BigInt(l)-Q.BigInt(o)+Q.BigInt(1):c=l-o+1,typeof c=="bigint"&&c<Number.MAX_SAFE_INTEGER&&(c=Number(c)),r.byterange={length:c,offset:o}}return r},r9=t=>{let e;return typeof t.offset=="bigint"||typeof t.length=="bigint"?e=Q.BigInt(t.offset)+Q.BigInt(t.length)-Q.BigInt(1):e=t.offset+t.length-1,`${t.offset}-${e}`},lx=t=>(t&&typeof t!="number"&&(t=parseInt(t,10)),isNaN(t)?null:t),n9={static(t){const{duration:e,timescale:s=1,sourceDuration:i,periodDuration:r}=t,n=lx(t.endNumber),a=e/s;return typeof n=="number"?{start:0,end:n}:typeof r=="number"?{start:0,end:r/a}:{start:0,end:i/a}},dynamic(t){const{NOW:e,clientOffset:s,availabilityStartTime:i,timescale:r=1,duration:n,periodStart:a=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:l=1/0}=t,c=lx(t.endNumber),d=(e+s)/1e3,p=i+a,b=d+o-p,T=Math.ceil(b*r/n),y=Math.floor((d-p-l)*r/n),x=Math.floor((d-p)*r/n);return{start:Math.max(0,y),end:typeof c=="number"?c:Math.min(T,x)}}},a9=t=>e=>{const{duration:s,timescale:i=1,periodStart:r,startNumber:n=1}=t;return{number:n+e,duration:s/i,timeline:r,time:e*s}},g1=t=>{const{type:e,duration:s,timescale:i=1,periodDuration:r,sourceDuration:n}=t,{start:a,end:o}=n9[e](t),l=t9(a,o).map(a9(t));if(e==="static"){const c=l.length-1,d=typeof r=="number"?r:n;l[c].duration=d-s/i*c}return l},sP=t=>{const{baseUrl:e,initialization:s={},sourceDuration:i,indexRange:r="",periodStart:n,presentationTime:a,number:o=0,duration:l}=t;if(!e)throw new Error(Gu.NO_BASE_URL);const c=zh({baseUrl:e,source:s.sourceURL,range:s.range}),d=zh({baseUrl:e,source:e,indexRange:r});if(d.map=c,l){const p=g1(t);p.length&&(d.duration=p[0].duration,d.timeline=p[0].timeline)}else i&&(d.duration=i,d.timeline=n);return d.presentationTime=a||n,d.number=o,[d]},y1=(t,e,s)=>{const i=t.sidx.map?t.sidx.map:null,r=t.sidx.duration,n=t.timeline||0,a=t.sidx.byterange,o=a.offset+a.length,l=e.timescale,c=e.references.filter(x=>x.referenceType!==1),d=[],p=t.endList?"static":"dynamic",_=t.sidx.timeline;let b=_,T=t.mediaSequence||0,y;typeof e.firstOffset=="bigint"?y=Q.BigInt(o)+e.firstOffset:y=o+e.firstOffset;for(let x=0;x<c.length;x++){const A=e.references[x],C=A.referencedSize,S=A.subsegmentDuration;let E;typeof y=="bigint"?E=y+Q.BigInt(C)-Q.BigInt(1):E=y+C-1;const w=`${y}-${E}`,R=sP({baseUrl:s,timescale:l,timeline:n,periodStart:_,presentationTime:b,number:T,duration:S,sourceDuration:r,indexRange:w,type:p})[0];i&&(R.map=i),d.push(R),typeof y=="bigint"?y+=Q.BigInt(C):y+=C,b+=S/l,T++}return t.segments=d,t},o9=["AUDIO","SUBTITLES"],l9=1/60,iP=t=>i9(t,({timeline:e})=>e).sort((e,s)=>e.timeline>s.timeline?1:-1),u9=(t,e)=>{for(let s=0;s<t.length;s++)if(t[s].attributes.NAME===e)return t[s];return null},ux=t=>{let e=[];return x7(t,o9,(s,i,r,n)=>{e=e.concat(s.playlists||[])}),e},cx=({playlist:t,mediaSequence:e})=>{t.mediaSequence=e,t.segments.forEach((s,i)=>{s.number=t.mediaSequence+i})},c9=({oldPlaylists:t,newPlaylists:e,timelineStarts:s})=>{e.forEach(i=>{i.discontinuitySequence=s.findIndex(function({timeline:l}){return l===i.timeline});const r=u9(t,i.attributes.NAME);if(!r||i.sidx)return;const n=i.segments[0],a=r.segments.findIndex(function(l){return Math.abs(l.presentationTime-n.presentationTime)<l9});if(a===-1){cx({playlist:i,mediaSequence:r.mediaSequence+r.segments.length}),i.segments[0].discontinuity=!0,i.discontinuityStarts.unshift(0),(!r.segments.length&&i.timeline>r.timeline||r.segments.length&&i.timeline>r.segments[r.segments.length-1].timeline)&&i.discontinuitySequence--;return}r.segments[a].discontinuity&&!n.discontinuity&&(n.discontinuity=!0,i.discontinuityStarts.unshift(0),i.discontinuitySequence--),cx({playlist:i,mediaSequence:r.segments[a].number})})},d9=({oldManifest:t,newManifest:e})=>{const s=t.playlists.concat(ux(t)),i=e.playlists.concat(ux(e));return e.timelineStarts=iP([t.timelineStarts,e.timelineStarts]),c9({oldPlaylists:s,newPlaylists:i,timelineStarts:e.timelineStarts}),e},yg=t=>t&&t.uri+"-"+r9(t.byterange),p_=t=>{const e=t.reduce(function(i,r){return i[r.attributes.baseUrl]||(i[r.attributes.baseUrl]=[]),i[r.attributes.baseUrl].push(r),i},{});let s=[];return Object.values(e).forEach(i=>{const r=eP(i.reduce((n,a)=>{const o=a.attributes.id+(a.attributes.lang||"");return n[o]?(a.segments&&(a.segments[0]&&(a.segments[0].discontinuity=!0),n[o].segments.push(...a.segments)),a.attributes.contentProtection&&(n[o].attributes.contentProtection=a.attributes.contentProtection)):(n[o]=a,n[o].attributes.timelineStarts=[]),n[o].attributes.timelineStarts.push({start:a.attributes.periodStart,timeline:a.attributes.periodStart}),n},{}));s=s.concat(r)}),s.map(i=>(i.discontinuityStarts=s9(i.segments||[],"discontinuity"),i))},_1=(t,e)=>{const s=yg(t.sidx),i=s&&e[s]&&e[s].sidx;return i&&y1(t,i,t.sidx.resolvedUri),t},h9=(t,e={})=>{if(!Object.keys(e).length)return t;for(const s in t)t[s]=_1(t[s],e);return t},f9=({attributes:t,segments:e,sidx:s,mediaSequence:i,discontinuitySequence:r,discontinuityStarts:n},a)=>{const o={attributes:{NAME:t.id,BANDWIDTH:t.bandwidth,CODECS:t.codecs,"PROGRAM-ID":1},uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,discontinuitySequence:r,discontinuityStarts:n,timelineStarts:t.timelineStarts,mediaSequence:i,segments:e};return t.contentProtection&&(o.contentProtection=t.contentProtection),t.serviceLocation&&(o.attributes.serviceLocation=t.serviceLocation),s&&(o.sidx=s),a&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o},p9=({attributes:t,segments:e,mediaSequence:s,discontinuityStarts:i,discontinuitySequence:r})=>{typeof e>"u"&&(e=[{uri:t.baseUrl,timeline:t.periodStart,resolvedUri:t.baseUrl||"",duration:t.sourceDuration,number:0}],t.duration=t.sourceDuration);const n={NAME:t.id,BANDWIDTH:t.bandwidth,"PROGRAM-ID":1};t.codecs&&(n.CODECS=t.codecs);const a={attributes:n,uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,timelineStarts:t.timelineStarts,discontinuityStarts:i,discontinuitySequence:r,mediaSequence:s,segments:e};return t.serviceLocation&&(a.attributes.serviceLocation=t.serviceLocation),a},m9=(t,e={},s=!1)=>{let i;const r=t.reduce((n,a)=>{const o=a.attributes.role&&a.attributes.role.value||"",l=a.attributes.lang||"";let c=a.attributes.label||"main";if(l&&!a.attributes.label){const p=o?` (${o})`:"";c=`${a.attributes.lang}${p}`}n[c]||(n[c]={language:l,autoselect:!0,default:o==="main",playlists:[],uri:""});const d=_1(f9(a,s),e);return n[c].playlists.push(d),typeof i>"u"&&o==="main"&&(i=a,i.default=!0),n},{});if(!i){const n=Object.keys(r)[0];r[n].default=!0}return r},g9=(t,e={})=>t.reduce((s,i)=>{const r=i.attributes.label||i.attributes.lang||"text",n=i.attributes.lang||"und";return s[r]||(s[r]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),s[r].playlists.push(_1(p9(i),e)),s},{}),y9=t=>t.reduce((e,s)=>(s&&s.forEach(i=>{const{channel:r,language:n}=i;e[n]={autoselect:!1,default:!1,instreamId:r,language:n},i.hasOwnProperty("aspectRatio")&&(e[n].aspectRatio=i.aspectRatio),i.hasOwnProperty("easyReader")&&(e[n].easyReader=i.easyReader),i.hasOwnProperty("3D")&&(e[n]["3D"]=i["3D"])}),e),{}),_9=({attributes:t,segments:e,sidx:s,discontinuityStarts:i})=>{const r={attributes:{NAME:t.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:t.width,height:t.height},CODECS:t.codecs,BANDWIDTH:t.bandwidth,"PROGRAM-ID":1},uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,discontinuityStarts:i,timelineStarts:t.timelineStarts,segments:e};return t.frameRate&&(r.attributes["FRAME-RATE"]=t.frameRate),t.qualityRanking!==void 0&&(r.attributes.SCORE=1/(t.qualityRanking+1)),t.contentProtection&&(r.contentProtection=t.contentProtection),t.serviceLocation&&(r.attributes.serviceLocation=t.serviceLocation),s&&(r.sidx=s),r},v9=({attributes:t})=>t.mimeType==="video/mp4"||t.mimeType==="video/webm"||t.contentType==="video",b9=({attributes:t})=>t.mimeType==="audio/mp4"||t.mimeType==="audio/webm"||t.contentType==="audio",T9=({attributes:t})=>t.mimeType==="text/vtt"||t.contentType==="text",S9=(t,e)=>{t.forEach(s=>{s.mediaSequence=0,s.discontinuitySequence=e.findIndex(function({timeline:i}){return i===s.timeline}),s.segments&&s.segments.forEach((i,r)=>{i.number=r})})},dx=t=>t?Object.keys(t).reduce((e,s)=>{const i=t[s];return e.concat(i.playlists)},[]):[],E9=({dashPlaylists:t,locations:e,contentSteering:s,sidxMapping:i={},previousManifest:r,eventStream:n})=>{if(!t.length)return{};const{sourceDuration:a,type:o,suggestedPresentationDelay:l,minimumUpdatePeriod:c}=t[0].attributes,d=p_(t.filter(v9)).map(_9),p=p_(t.filter(b9)),_=p_(t.filter(T9)),b=t.map(E=>E.attributes.captionServices).filter(Boolean),T={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:a,playlists:h9(d,i)};c>=0&&(T.minimumUpdatePeriod=c*1e3),e&&(T.locations=e),s&&(T.contentSteering=s),o==="dynamic"&&(T.suggestedPresentationDelay=l),n&&n.length>0&&(T.eventStream=n);const y=T.playlists.length===0,x=p.length?m9(p,i,y):null,A=_.length?g9(_,i):null,C=d.concat(dx(x),dx(A)),S=C.map(({timelineStarts:E})=>E);return T.timelineStarts=iP(S),S9(C,T.timelineStarts),x&&(T.mediaGroups.AUDIO.audio=x),A&&(T.mediaGroups.SUBTITLES.subs=A),b.length&&(T.mediaGroups["CLOSED-CAPTIONS"].cc=y9(b)),r?d9({oldManifest:r,newManifest:T}):T},x9=(t,e,s)=>{const{NOW:i,clientOffset:r,availabilityStartTime:n,timescale:a=1,periodStart:o=0,minimumUpdatePeriod:l=0}=t,c=(i+r)/1e3,d=n+o,_=c+l-d;return Math.ceil((_*a-e)/s)},rP=(t,e)=>{const{type:s,minimumUpdatePeriod:i=0,media:r="",sourceDuration:n,timescale:a=1,startNumber:o=1,periodStart:l}=t,c=[];let d=-1;for(let p=0;p<e.length;p++){const _=e[p],b=_.d,T=_.r||0,y=_.t||0;d<0&&(d=y),y&&y>d&&(d=y);let x;if(T<0){const S=p+1;S===e.length?s==="dynamic"&&i>0&&r.indexOf("$Number$")>0?x=x9(t,d,b):x=(n*a-d)/b:x=(e[S].t-d)/b}else x=T+1;const A=o+c.length+x;let C=o+c.length;for(;C<A;)c.push({number:C,duration:b/a,time:d,timeline:l}),d+=b,C++}return c},C9=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,w9=t=>(e,s,i,r)=>{if(e==="$$")return"$";if(typeof t[s]>"u")return e;const n=""+t[s];return s==="RepresentationID"||(i?r=parseInt(r,10):r=1,n.length>=r)?n:`${new Array(r-n.length+1).join("0")}${n}`},hx=(t,e)=>t.replace(C9,w9(e)),A9=(t,e)=>!t.duration&&!e?[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]:t.duration?g1(t):rP(t,e),k9=(t,e)=>{const s={RepresentationID:t.id,Bandwidth:t.bandwidth||0},{initialization:i={sourceURL:"",range:""}}=t,r=zh({baseUrl:t.baseUrl,source:hx(i.sourceURL,s),range:i.range});return A9(t,e).map(a=>{s.Number=a.number,s.Time=a.time;const o=hx(t.media||"",s),l=t.timescale||1,c=t.presentationTimeOffset||0,d=t.periodStart+(a.time-c)/l;return{uri:o,timeline:a.timeline,duration:a.duration,resolvedUri:fg(t.baseUrl||"",o),map:r,number:a.number,presentationTime:d}})},D9=(t,e)=>{const{baseUrl:s,initialization:i={}}=t,r=zh({baseUrl:s,source:i.sourceURL,range:i.range}),n=zh({baseUrl:s,source:e.media,range:e.mediaRange});return n.map=r,n},I9=(t,e)=>{const{duration:s,segmentUrls:i=[],periodStart:r}=t;if(!s&&!e||s&&e)throw new Error(Gu.SEGMENT_TIME_UNSPECIFIED);const n=i.map(l=>D9(t,l));let a;return s&&(a=g1(t)),e&&(a=rP(t,e)),a.map((l,c)=>{if(n[c]){const d=n[c],p=t.timescale||1,_=t.presentationTimeOffset||0;return d.timeline=l.timeline,d.duration=l.duration,d.number=l.number,d.presentationTime=r+(l.time-_)/p,d}}).filter(l=>l)},P9=({attributes:t,segmentInfo:e})=>{let s,i;e.template?(i=k9,s=Bs(t,e.template)):e.base?(i=sP,s=Bs(t,e.base)):e.list&&(i=I9,s=Bs(t,e.list));const r={attributes:t};if(!i)return r;const n=i(s,e.segmentTimeline);if(s.duration){const{duration:a,timescale:o=1}=s;s.duration=a/o}else n.length?s.duration=n.reduce((a,o)=>Math.max(a,Math.ceil(o.duration)),0):s.duration=0;return r.attributes=s,r.segments=n,e.base&&s.indexRange&&(r.sidx=n[0],r.segments=[]),r},L9=t=>t.map(P9),as=(t,e)=>tP(t.childNodes).filter(({tagName:s})=>s===e),yf=t=>t.textContent.trim(),O9=t=>parseFloat(t.split("/").reduce((e,s)=>e/s)),Wl=t=>{const o=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!o)return 0;const[l,c,d,p,_,b]=o.slice(1);return parseFloat(l||0)*31536e3+parseFloat(c||0)*2592e3+parseFloat(d||0)*86400+parseFloat(p||0)*3600+parseFloat(_||0)*60+parseFloat(b||0)},N9=t=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t)&&(t+="Z"),Date.parse(t)),fx={mediaPresentationDuration(t){return Wl(t)},availabilityStartTime(t){return N9(t)/1e3},minimumUpdatePeriod(t){return Wl(t)},suggestedPresentationDelay(t){return Wl(t)},type(t){return t},timeShiftBufferDepth(t){return Wl(t)},start(t){return Wl(t)},width(t){return parseInt(t,10)},height(t){return parseInt(t,10)},bandwidth(t){return parseInt(t,10)},frameRate(t){return O9(t)},startNumber(t){return parseInt(t,10)},timescale(t){return parseInt(t,10)},presentationTimeOffset(t){return parseInt(t,10)},duration(t){const e=parseInt(t,10);return isNaN(e)?Wl(t):e},d(t){return parseInt(t,10)},t(t){return parseInt(t,10)},r(t){return parseInt(t,10)},presentationTime(t){return parseInt(t,10)},qualityRanking(t){return parseInt(t,10)},qualityranking(t){return parseInt(t,10)},DEFAULT(t){return t}},R9={qualityranking:"qualityRanking"},Ss=t=>t&&t.attributes?tP(t.attributes).reduce((e,s)=>{const i=fx[s.name]||fx.DEFAULT,r=R9[s.name]||s.name;return e[r]=i(s.value),e},{}):{},M9={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},_g=(t,e)=>e.length?zu(t.map(function(s){return e.map(function(i){const r=yf(i),n=fg(s.baseUrl,r),a=Bs(Ss(i),{baseUrl:n});return n!==r&&!a.serviceLocation&&s.serviceLocation&&(a.serviceLocation=s.serviceLocation),a})})):t,v1=t=>{const e=as(t,"SegmentTemplate")[0],s=as(t,"SegmentList")[0],i=s&&as(s,"SegmentURL").map(p=>Bs({tag:"SegmentURL"},Ss(p))),r=as(t,"SegmentBase")[0],n=s||e,a=n&&as(n,"SegmentTimeline")[0],o=s||r||e,l=o&&as(o,"Initialization")[0],c=e&&Ss(e);c&&l?c.initialization=l&&Ss(l):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});const d={template:c,segmentTimeline:a&&as(a,"S").map(p=>Ss(p)),list:s&&Bs(Ss(s),{segmentUrls:i,initialization:Ss(l)}),base:r&&Bs(Ss(r),{initialization:Ss(l)})};return Object.keys(d).forEach(p=>{d[p]||delete d[p]}),d},F9=(t,e,s)=>i=>{const r=as(i,"BaseURL"),n=_g(e,r),a=Bs(t,Ss(i)),o=v1(i);return n.map(l=>({segmentInfo:Bs(s,o),attributes:Bs(a,l)}))},B9=t=>t.reduce((e,s)=>{const i=Ss(s);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());const r=M9[i.schemeIdUri];if(r){e[r]={attributes:i};const n=as(s,"cenc:pssh")[0];if(n){const a=yf(n);e[r].pssh=a&&TI(a)}}return e},{}),U9=t=>{if(t.schemeIdUri==="urn:scte:dash:cc:cea-608:2015")return(typeof t.value!="string"?[]:t.value.split(";")).map(s=>{let i,r;return r=s,/^CC\d=/.test(s)?[i,r]=s.split("="):/^CC\d$/.test(s)&&(i=s),{channel:i,language:r}});if(t.schemeIdUri==="urn:scte:dash:cc:cea-708:2015")return(typeof t.value!="string"?[]:t.value.split(";")).map(s=>{const i={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(s)){const[r,n=""]=s.split("=");i.channel=r,i.language=s,n.split(",").forEach(a=>{const[o,l]=a.split(":");o==="lang"?i.language=l:o==="er"?i.easyReader=Number(l):o==="war"?i.aspectRatio=Number(l):o==="3D"&&(i["3D"]=Number(l))})}else i.language=s;return i.channel&&(i.channel="SERVICE"+i.channel),i})},$9=t=>zu(as(t.node,"EventStream").map(e=>{const s=Ss(e),i=s.schemeIdUri;return as(e,"Event").map(r=>{const n=Ss(r),a=n.presentationTime||0,o=s.timescale||1,l=n.duration||0,c=a/o+t.attributes.start;return{schemeIdUri:i,value:s.value,id:n.id,start:c,end:c+l/o,messageData:yf(r)||n.messageData,contentEncoding:s.contentEncoding,presentationTimeOffset:s.presentationTimeOffset||0}})})),j9=(t,e,s)=>i=>{const r=Ss(i),n=_g(e,as(i,"BaseURL")),a=as(i,"Role")[0],o={role:Ss(a)};let l=Bs(t,r,o);const c=as(i,"Accessibility")[0],d=U9(Ss(c));d&&(l=Bs(l,{captionServices:d}));const p=as(i,"Label")[0];if(p&&p.childNodes.length){const x=p.childNodes[0].nodeValue.trim();l=Bs(l,{label:x})}const _=B9(as(i,"ContentProtection"));Object.keys(_).length&&(l=Bs(l,{contentProtection:_}));const b=v1(i),T=as(i,"Representation"),y=Bs(s,b);return zu(T.map(F9(l,n,y)))},H9=(t,e)=>(s,i)=>{const r=_g(e,as(s.node,"BaseURL")),n=Bs(t,{periodStart:s.attributes.start});typeof s.attributes.duration=="number"&&(n.periodDuration=s.attributes.duration);const a=as(s.node,"AdaptationSet"),o=v1(s.node);return zu(a.map(j9(n,r,o)))},q9=(t,e)=>{if(t.length>1&&e({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!t.length)return null;const s=Bs({serverURL:yf(t[0])},Ss(t[0]));return s.queryBeforeStart=s.queryBeforeStart==="true",s},V9=({attributes:t,priorPeriodAttributes:e,mpdType:s})=>typeof t.start=="number"?t.start:e&&typeof e.start=="number"&&typeof e.duration=="number"?e.start+e.duration:!e&&s==="static"?0:null,z9=(t,e={})=>{const{manifestUri:s="",NOW:i=Date.now(),clientOffset:r=0,eventHandler:n=function(){}}=e,a=as(t,"Period");if(!a.length)throw new Error(Gu.INVALID_NUMBER_OF_PERIOD);const o=as(t,"Location"),l=Ss(t),c=_g([{baseUrl:s}],as(t,"BaseURL")),d=as(t,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=i,l.clientOffset=r,o.length&&(l.locations=o.map(yf));const p=[];return a.forEach((_,b)=>{const T=Ss(_),y=p[b-1];T.start=V9({attributes:T,priorPeriodAttributes:y?y.attributes:null,mpdType:l.type}),p.push({node:_,attributes:T})}),{locations:l.locations,contentSteeringInfo:q9(d,n),representationInfo:zu(p.map(H9(l,c))),eventStream:zu(p.map($9))}},nP=t=>{if(t==="")throw new Error(Gu.DASH_EMPTY_MANIFEST);const e=new e9;let s,i;try{s=e.parseFromString(t,"application/xml"),i=s&&s.documentElement.tagName==="MPD"?s.documentElement:null}catch{}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error(Gu.DASH_INVALID_XML);return i},G9=t=>{const e=as(t,"UTCTiming")[0];if(!e)return null;const s=Ss(e);switch(s.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":s.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":s.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":s.method="DIRECT",s.value=Date.parse(s.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(Gu.UNSUPPORTED_UTC_TIMING_SCHEME)}return s},W9=(t,e={})=>{const s=z9(nP(t),e),i=L9(s.representationInfo);return E9({dashPlaylists:i,locations:s.locations,contentSteering:s.contentSteeringInfo,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest,eventStream:s.eventStream})},X9=t=>G9(nP(t));var K9=Math.pow(2,32),Y9=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),s;return e.getBigUint64?(s=e.getBigUint64(0),s<Number.MAX_SAFE_INTEGER?Number(s):s):e.getUint32(0)*K9+e.getUint32(4)},Q9={getUint64:Y9},px=Q9.getUint64,J9=function(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength),s={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:e.getUint32(4),timescale:e.getUint32(8)},i=12;s.version===0?(s.earliestPresentationTime=e.getUint32(i),s.firstOffset=e.getUint32(i+4),i+=8):(s.earliestPresentationTime=px(t.subarray(i)),s.firstOffset=px(t.subarray(i+8)),i+=16),i+=2;var r=e.getUint16(i);for(i+=2;r>0;i+=12,r--)s.references.push({referenceType:(t[i]&128)>>>7,referencedSize:e.getUint32(i)&2147483647,subsegmentDuration:e.getUint32(i+4),startsWithSap:!!(t[i+8]&128),sapType:(t[i+8]&112)>>>4,sapDeltaTime:e.getUint32(i+8)&268435455});return s},Z9=J9;const e$=Ol(Z9);var t$=et([73,68,51]),s$=function(e,s){s===void 0&&(s=0),e=et(e);var i=e[s+5],r=e[s+6]<<21|e[s+7]<<14|e[s+8]<<7|e[s+9],n=(i&16)>>4;return n?r+20:r+10},Jd=function t(e,s){return s===void 0&&(s=0),e=et(e),e.length-s<10||!ts(e,t$,{offset:s})?s:(s+=s$(e,s),t(e,s))},mx=function(e){return typeof e=="string"?wI(e):e},i$=function(e){return Array.isArray(e)?e.map(function(s){return mx(s)}):[mx(e)]},r$=function t(e,s,i){i===void 0&&(i=!1),s=i$(s),e=et(e);var r=[];if(!s.length)return r;for(var n=0;n<e.length;){var a=(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3])>>>0,o=e.subarray(n+4,n+8);if(a===0)break;var l=n+a;if(l>e.length){if(i)break;l=e.length}var c=e.subarray(n+8,l);ts(o,s[0])&&(s.length===1?r.push(c):r.push.apply(r,t(c,s.slice(1),i))),n=l}return r},Gf={EBML:et([26,69,223,163]),DocType:et([66,130]),Segment:et([24,83,128,103]),SegmentInfo:et([21,73,169,102]),Tracks:et([22,84,174,107]),Track:et([174]),TrackNumber:et([215]),DefaultDuration:et([35,227,131]),TrackEntry:et([174]),TrackType:et([131]),FlagDefault:et([136]),CodecID:et([134]),CodecPrivate:et([99,162]),VideoTrack:et([224]),AudioTrack:et([225]),Cluster:et([31,67,182,117]),Timestamp:et([231]),TimestampScale:et([42,215,177]),BlockGroup:et([160]),BlockDuration:et([155]),Block:et([161]),SimpleBlock:et([163])},rb=[128,64,32,16,8,4,2,1],n$=function(e){for(var s=1,i=0;i<rb.length&&!(e&rb[i]);i++)s++;return s},Qp=function(e,s,i,r){i===void 0&&(i=!0),r===void 0&&(r=!1);var n=n$(e[s]),a=e.subarray(s,s+n);return i&&(a=Array.prototype.slice.call(e,s,s+n),a[0]^=rb[n-1]),{length:n,value:T7(a,{signed:r}),bytes:a}},gx=function t(e){return typeof e=="string"?e.match(/.{1,2}/g).map(function(s){return t(s)}):typeof e=="number"?S7(e):e},a$=function(e){return Array.isArray(e)?e.map(function(s){return gx(s)}):[gx(e)]},o$=function t(e,s,i){if(i>=s.length)return s.length;var r=Qp(s,i,!1);if(ts(e.bytes,r.bytes))return i;var n=Qp(s,i+r.length);return t(e,s,i+n.length+n.value+r.length)},yx=function t(e,s){s=a$(s),e=et(e);var i=[];if(!s.length)return i;for(var r=0;r<e.length;){var n=Qp(e,r,!1),a=Qp(e,r+n.length),o=r+n.length+a.length;a.value===127&&(a.value=o$(n,e,o),a.value!==e.length&&(a.value-=o));var l=o+a.value>e.length?e.length:o+a.value,c=e.subarray(o,l);ts(s[0],n.bytes)&&(s.length===1?i.push(c):i=i.concat(t(c,s.slice(1))));var d=n.length+a.length+c.length;r+=d}return i},l$=et([0,0,0,1]),u$=et([0,0,1]),c$=et([0,0,3]),d$=function(e){for(var s=[],i=1;i<e.length-2;)ts(e.subarray(i,i+3),c$)&&(s.push(i+2),i++),i++;if(s.length===0)return e;var r=e.length-s.length,n=new Uint8Array(r),a=0;for(i=0;i<r;a++,i++)a===s[0]&&(a++,s.shift()),n[i]=e[a];return n},aP=function(e,s,i,r){e=et(e),i=[].concat(i);for(var n=0,a,o=0;n<e.length&&(o<r||a);){var l=void 0;if(ts(e.subarray(n),l$)?l=4:ts(e.subarray(n),u$)&&(l=3),!l){n++;continue}if(o++,a)return d$(e.subarray(a,n));var c=void 0;s==="h264"?c=e[n+l]&31:s==="h265"&&(c=e[n+l]>>1&63),i.indexOf(c)!==-1&&(a=n+l),n+=l+(s==="h264"?1:2)}return e.subarray(0,0)},h$=function(e,s,i){return aP(e,"h264",s,i)},f$=function(e,s,i){return aP(e,"h265",s,i)},Zs={webm:et([119,101,98,109]),matroska:et([109,97,116,114,111,115,107,97]),flac:et([102,76,97,67]),ogg:et([79,103,103,83]),ac3:et([11,119]),riff:et([82,73,70,70]),avi:et([65,86,73]),wav:et([87,65,86,69]),"3gp":et([102,116,121,112,51,103]),mp4:et([102,116,121,112]),fmp4:et([115,116,121,112]),mov:et([102,116,121,112,113,116]),moov:et([109,111,111,118]),moof:et([109,111,111,102]),vtt:et([87,69,66,86,84,84])},Wu={aac:function(e){var s=Jd(e);return ts(e,[255,16],{offset:s,mask:[255,22]})},mp3:function(e){var s=Jd(e);return ts(e,[255,2],{offset:s,mask:[255,6]})},webm:function(e){var s=yx(e,[Gf.EBML,Gf.DocType])[0];return ts(s,Zs.webm)},mkv:function(e){var s=yx(e,[Gf.EBML,Gf.DocType])[0];return ts(s,Zs.matroska)},mp4:function(e){if(Wu["3gp"](e)||Wu.mov(e))return!1;if(ts(e,Zs.mp4,{offset:4})||ts(e,Zs.fmp4,{offset:4})||ts(e,Zs.moof,{offset:4})||ts(e,Zs.moov,{offset:4}))return!0},mov:function(e){return ts(e,Zs.mov,{offset:4})},"3gp":function(e){return ts(e,Zs["3gp"],{offset:4})},ac3:function(e){var s=Jd(e);return ts(e,Zs.ac3,{offset:s})},vtt:function(e){return ts(e,Zs.vtt)},ts:function(e){if(e.length<189&&e.length>=1)return e[0]===71;for(var s=0;s+188<e.length&&s<188;){if(e[s]===71&&e[s+188]===71)return!0;s+=1}return!1},flac:function(e){var s=Jd(e);return ts(e,Zs.flac,{offset:s})},ogg:function(e){return ts(e,Zs.ogg)},avi:function(e){return ts(e,Zs.riff)&&ts(e,Zs.avi,{offset:8})},wav:function(e){return ts(e,Zs.riff)&&ts(e,Zs.wav,{offset:8})},h264:function(e){return h$(e,7,3).length},h265:function(e){return f$(e,[32,33],3).length}},nb=Object.keys(Wu).filter(function(t){return t!=="ts"&&t!=="h264"&&t!=="h265"}).concat(["ts","h264","h265"]);nb.forEach(function(t){var e=Wu[t];Wu[t]=function(s){return e(et(s))}});var p$=Wu,b1=function(e){e=et(e);for(var s=0;s<nb.length;s++){var i=nb[s];if(p$[i](e))return i}return""},m$=function(e){return r$(e,["moof"]).length>0},g$=9e4,ul={ONE_SECOND_IN_TS:g$};/**
73 * @license
74 * Video.js 8.10.0 <http://videojs.com/>
75 * Copyright Brightcove, Inc. <https://www.brightcove.com/>
76 * Available under Apache License Version 2.0
77 * <https://github.com/videojs/video.js/blob/main/LICENSE>
78 *
79 * Includes vtt.js <https://github.com/mozilla/vtt.js>
80 * Available under Apache License Version 2.0
81 * <https://github.com/mozilla/vtt.js/blob/main/LICENSE>
82 */var ab="8.10.0";const Ia={},xo=function(t,e){return Ia[t]=Ia[t]||[],e&&(Ia[t]=Ia[t].concat(e)),Ia[t]},y$=function(t,e){xo(t,e)},oP=function(t,e){const s=xo(t).indexOf(e);return s<=-1?!1:(Ia[t]=Ia[t].slice(),Ia[t].splice(s,1),!0)},_$=function(t,e){xo(t,[].concat(e).map(s=>{const i=(...r)=>(oP(t,i),s(...r));return i}))},Jp={prefixed:!0},mp=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],_x=mp[0];let Zd;for(let t=0;t<mp.length;t++)if(mp[t][1]in Oe){Zd=mp[t];break}if(Zd){for(let t=0;t<Zd.length;t++)Jp[_x[t]]=Zd[t];Jp.prefixed=Zd[0]!==_x[0]}let Mi=[];const v$=(t,e,s)=>(i,r,n)=>{const a=e.levels[r],o=new RegExp(`^(${a})$`);let l=t;if(i!=="log"&&n.unshift(i.toUpperCase()+":"),s&&(l=`%c${t}`,n.unshift(s)),n.unshift(l+":"),Mi){Mi.push([].concat(n));const d=Mi.length-1e3;Mi.splice(0,d>0?d:0)}if(!Q.console)return;let c=Q.console[i];!c&&i==="debug"&&(c=Q.console.info||Q.console.log),!(!c||!a||!o.test(i))&&c[Array.isArray(n)?"apply":"call"](Q.console,n)};function ob(t,e=":",s=""){let i="info",r;const n=function(...a){r("log",i,a)};return r=v$(t,n,s),n.createLogger=(a,o,l)=>{const c=o!==void 0?o:e,d=l!==void 0?l:s,p=`${t} ${c} ${a}`;return ob(p,c,d)},n.createNewLogger=(a,o,l)=>ob(a,o,l),n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:i},n.level=a=>
82{if(typeof a=="string"){if(!n.levels.hasOwnProperty(a))throw new Error(`"${a}" in not a valid log level`);i=a}return i},n.history=()=>Mi?[].concat(Mi):[],n.history.filter=a=>(Mi||[]).filter(o=>new RegExp(`.*${a}.*`).test(o[0])),n.history.clear=()=>{Mi&&(Mi.length=0)},n.history.disable=()=>{Mi!==null&&(Mi.length=0,Mi=null)},n.history.enable=()=>{Mi===null&&(Mi=[])},n.error=(...a)=>r("error",i,a),n.warn=(...a)=>r("warn",i,a),n.debug=(...a)=>r("debug",i,a),n}const At=ob("VIDEOJS"),lP=At.createLogger,b$=Object.prototype.toString,uP=function(t){return Bn(t)?Object.keys(t):[]};function gu(t,e){uP(t).forEach(s=>e(t[s],s))}function cP(t,e,s=0){return uP(t).reduce((i,r)=>e(i,t[r],r),s)}function Bn(t){return!!t&&typeof t=="object"}function Xu(t){return Bn(t)&&b$.call(t)==="[object Object]"&&t.constructor===Object}function Kt(...t){const e={};return t.forEach(s=>{s&&gu(s,(i,r)=>{if(!Xu(i)){e[r]=i;return}Xu(e[r])||(e[r]={}),e[r]=Kt(e[r],i)})}),e}function dP(t={}){const e=[];for(const s in t)if(t.hasOwnProperty(s)){const i=t[s];e.push(i)}return e}function vg(t,e,s,i=!0){const r=a=>Object.defineProperty(t,e,{value:a,enumerable:!0,writable:!0}),n={configurable:!0,enumerable:!0,get(){const a=s();return r(a),a}};return i&&(n.set=r),Object.defineProperty(t,e,n)}var T$=Object.freeze({__proto__:null,each:gu,reduce:cP,isObject:Bn,isPlain:Xu,merge:Kt,values:dP,defineLazyProperty:vg});let T1=!1,hP=null,Un=!1,fP,pP=!1,yu=!1,_u=!1,$n=!1,S1=null,bg=null,mP=null,Zp=!1,Tg=!1,em=!1,Sg=!1;const Gh=!!(yc()&&("ontouchstart"in Q||Q.navigator.maxTouchPoints||Q.DocumentTouch&&Q.document instanceof Q.DocumentTouch)),to=Q.navigator&&Q.navigator.userAgentData;to&&to.platform&&to.brands&&(Un=to.platform==="Android",yu=!!to.brands.find(t=>t.brand==="Microsoft Edge"),_u=!!to.brands.find(t=>t.brand==="Chromium"),$n=!yu&&_u,S1=bg=(to.brands.find(t=>t.brand==="Chromium")||{}).version||null,Tg=to.platform==="Windows");if(!_u){const t=Q.navigator&&Q.navigator.userAgent||"";T1=/iPod/i.test(t),hP=function(){const e=t.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),Un=/Android/i.test(t),fP=function(){const e=t.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;const s=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return s&&i?parseFloat(e[1]+"."+e[2]):s||null}(),pP=/Firefox/i.test(t),yu=/Edg/i.test(t),_u=/Chrome/i.test(t)||/CriOS/i.test(t),$n=!yu&&_u,S1=bg=function(){const e=t.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),mP=function(){const e=/MSIE\s(\d+)\.\d/.exec(t);let s=e&&parseFloat(e[1]);return!s&&/Trident\/7.0/i.test(t)&&/rv:11.0/.test(t)&&(s=11),s}(),Zp=/Safari/i.test(t)&&!$n&&!Un&&!yu,Tg=/Windows/i.test(t),em=/iPad/i.test(t)||Zp&&Gh&&!/iPhone/i.test(t),Sg=/iPhone/i.test(t)&&!em}const Pi=Sg||em||T1,Eg=(Zp||Pi)&&!$n;var S$=Object.freeze({__proto__:null,get IS_IPOD(){return T1},get IOS_VERSION(){return hP},get IS_ANDROID(){return Un},get ANDROID_VERSION(){return fP},get IS_FIREFOX(){return pP},get IS_EDGE(){return yu},get IS_CHROMIUM(){return _u},get IS_CHROME(){return $n},get CHROMIUM_VERSION(){return S1},get CHROME_VERSION(){return bg},get IE_VERSION(){return mP},get IS_SAFARI(){return Zp},get IS_WINDOWS(){return Tg},get IS_IPAD(){return em},get IS_IPHONE(){return Sg},TOUCH_ENABLED:Gh,IS_IOS:Pi,IS_ANY_SAFARI:Eg});function vx(t){return typeof t=="string"&&!!t.trim()}function E$(t){if(t.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function yc(){return Oe===Q.document}function _c(t){return Bn(t)&&t.nodeType===1}function gP(){try{return Q.parent!==Q.self}catch{return!0}}function yP(t){return function(e,s){if(!vx(e))return Oe[t](null);vx(s)&&(s=Oe.querySelector(s));const i=_c(s)?s:Oe;return i[t]&&i[t](e)}}function Tt(t="div",e={},s={},i){const r=Oe.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(n){const a=e[n];n==="textContent"?Lo(r,a):(r[n]!==a||n==="tabIndex")&&(r[n]=a)}),Object.getOwnPropertyNames(s).forEach(function(n){r.setAttribute(n,s[n])}),i&&E1(r,i),r}function Lo(t,e){return typeof t.textContent>"u"?t.innerText=e:t.textContent=e,t}function lb(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function mh(t,e){return E$(e),t.classList.contains(e)}function vl(t,...e){return t.classList.add(...e.reduce((s,i)=>s.concat(i.split(/\s+/)),[])),t}function xg(t,...e){return t?(t.classList.remove(...e.reduce((s,i)=>
82s.concat(i.split(/\s+/)),[])),t):(At.warn("removeClass was called with an element that doesn't exist"),null)}function _P(t,e,s){return typeof s=="function"&&(s=s(t,e)),typeof s!="boolean"&&(s=void 0),e.split(/\s+/).forEach(i=>t.classList.toggle(i,s)),t}function vP(t,e){Object.getOwnPropertyNames(e).forEach(function(s){const i=e[s];i===null||typeof i>"u"||i===!1?t.removeAttribute(s):t.setAttribute(s,i===!0?"":i)})}function po(t){const e={},s=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(t&&t.attributes&&t.attributes.length>0){const i=t.attributes;for(let r=i.length-1;r>=0;r--){const n=i[r].name;let a=i[r].value;s.includes(n)&&(a=a!==null),e[n]=a}}return e}function bP(t,e){return t.getAttribute(e)}function Ku(t,e,s){t.setAttribute(e,s)}function Cg(t,e){t.removeAttribute(e)}function TP(){Oe.body.focus(),Oe.onselectstart=function(){return!1}}function SP(){Oe.onselectstart=function(){return!0}}function Yu(t){if(t&&t.getBoundingClientRect&&t.parentNode){const e=t.getBoundingClientRect(),s={};return["bottom","height","left","right","top","width"].forEach(i=>{e[i]!==void 0&&(s[i]=e[i])}),s.height||(s.height=parseFloat(Qu(t,"height"))),s.width||(s.width=parseFloat(Qu(t,"width"))),s}}function Wh(t){if(!t||t&&!t.offsetParent)return{left:0,top:0,width:0,height:0};const e=t.offsetWidth,s=t.offsetHeight;let i=0,r=0;for(;t.offsetParent&&t!==Oe[Jp.fullscreenElement];)i+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent;return{left:i,top:r,width:e,height:s}}function wg(t,e){const s={x:0,y:0};if(Pi){let d=t;for(;d&&d.nodeName.toLowerCase()!=="html";){const p=Qu(d,"transform");
vendor: 16,471 bytes, line 82
82if(/^matrix/.test(p)){const _=p.slice(7,-1).split(/,\s/).map(Number);s.x+=_[4],s.y+=_[5]}else if(/^matrix3d/.test(p)){const _=p.slice(9,-1).split(/,\s/).map(Number);s.x+=_[12],s.y+=_[13]}d=d.parentNode}}const i={},r=Wh(e.target),n=Wh(t),a=n.width,o=n.height;let l=e.offsetY-(n.top-r.top),c=e.offsetX-(n.left-r.left);return e.changedTouches&&(c=e.changedTouches[0].pageX-n.left,l=e.changedTouches[0].pageY+n.top,Pi&&(c-=s.x,l-=s.y)),i.y=1-Math.max(0,Math.min(1,l/o)),i.x=Math.max(0,Math.min(1,c/a)),i}function EP(t){return Bn(t)&&t.nodeType===3}function Ag(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function xP(t){return typeof t=="function"&&(t=t()),(Array.isArray(t)?t:[t]).map(e=>{if(typeof e=="function"&&(e=e()),_c(e)||EP(e))return e;if(typeof e=="string"&&/\S/.test(e))return Oe.createTextNode(e)}).filter(e=>e)}function E1(t,e){return xP(e).forEach(s=>t.appendChild(s)),t}function CP(t,e){return E1(Ag(t),e)}function Xh(t){return t.button===void 0&&t.buttons===void 0||t.button===0&&t.buttons===void 0||t.type==="mouseup"&&t.button===0&&t.buttons===0?!0:!(t.button!==0||t.buttons!==1)}const Co=yP("querySelector"),wP=yP("querySelectorAll");function Qu(t,e){if(!t||!e)return"";if(typeof Q.getComputedStyle=="function"){let s;try{s=Q.getComputedStyle(t)}catch{return""}return s?s.getPropertyValue(e)||s[e]:""}return""}function AP(t){[...Oe.styleSheets].forEach(e=>{try{const s=[...e.cssRules].map(r=>r.cssText).join(""),i=Oe.createElement("style");i.textContent=s,t.document.head.appendChild(i)}catch{const i=Oe.createElement("link");i.rel="stylesheet",i.type=e.type,i.media=e.media.mediaText,i.href=e.href,t.document.head.appendChild(i)}})}var kP=Object.freeze({__proto__:null,isReal:yc,isEl:_c,isInFrame:gP,createEl:Tt,textContent:Lo,prependTo:lb,hasClass:mh,addClass:vl,removeClass:xg,toggleClass:_P,setAttributes:vP,getAttributes:po,getAttribute:bP,setAttribute:Ku,removeAttribute:Cg,blockTextSelection:TP,unblockTextSelection:SP,getBoundingClientRect:Yu,findPosition:Wh,getPointerPosition:wg,isTextNode:EP,emptyEl:Ag,normalizeContent:xP,appendContent:E1,insertContent:CP,isSingleLeftClick:Xh,$:Co,$$:wP,computedStyle:Qu,copyStyleSheetsToWindow:AP});let DP=!1,ub;const x$=function(){if(ub.options.autoSetup===!1)return;const t=Array.prototype.slice.call(Oe.getElementsByTagName("video")),e=Array.prototype.slice.call(Oe.getElementsByTagName("audio")),s=Array.prototype.slice.call(Oe.getElementsByTagName("video-js")),i=t.concat(e,s);if(i&&i.length>0)for(let r=0,n=i.length;r<n;r++){const a=i[r];if(a&&a.getAttribute)a.player===void 0&&a.getAttribute("data-setup")!==null&&ub(a);else{cb(1);break}}else DP||cb(1)};function cb(t,e){yc()&&(e&&(ub=e),Q.setTimeout(x$,t))}function db(){DP=!0,Q.removeEventListener("load",db)}yc()&&(Oe.readyState==="complete"?db():Q.addEventListener("load",db));const IP=function(t){const e=Oe.createElement("style");return e.className=t,e},PP=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e};var Ai=new WeakMap;const C$=3;let w$=C$;function un(){return w$++}function bx(t,e){if(!Ai.has(t))return;const s=Ai.get(t);s.handlers[e].length===0&&(delete s.handlers[e],t.removeEventListener?t.removeEventListener(e,s.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,s.dispatcher)),Object.getOwnPropertyNames(s.handlers).length<=0&&(delete s.handlers,delete s.dispatcher,delete s.disabled),Object.getOwnPropertyNames(s).length===0&&Ai.delete(t)}function x1(t,e,s,i){s.forEach(function(r){t(e,r,i)})}function kg(t){if(t.fixed_)return t;function e(){return!0}function s(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){const i=t||Q.event;t={};for(const r in i)r!=="layerX"&&r!=="layerY"&&r!=="keyLocation"&&r!=="webkitMovementX"&&r!=="webkitMovementY"&&r!=="path"&&(r==="returnValue"&&i.preventDefault||(t[r]=i[r]));if(t.target||(t.target=t.srcElement||Oe),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){i.preventDefault&&i.preventDefault(),t.returnValue=!1,i.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),t.cancelBubble=!0,i.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=s,t.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=s,t.clientX!==null&&t.clientX!==void 0){const r=Oe.documentElement,n=Oe.body;t.pageX=t.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),t.pageY=t.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)}t.which=t.charCode||t.keyCode,t.button!==null&&t.button!==void 0&&(t.button=t.button&1?0:t.button&4?1:t.button&2?2:0)}return t.fixed_=!0,t}let Wf;const A$=function(){if(typeof Wf!="boolean"){Wf=!1;try{const t=Object.defineProperty({},"passive",{get(){Wf=!0}});Q.addEventListener("test",null,t),Q.removeEventListener("test",null,t)}catch{}}return Wf},k$=["touchstart","touchmove"];function fr(t,e,s){if(Array.isArray(e))return x1(fr,t,e,s);Ai.has(t)||Ai.set(t,{});const i=Ai.get(t);if(i.handlers||(i.handlers={}),i.handlers[e]||(i.handlers[e]=[]),s.guid||(s.guid=un()),i.handlers[e].push(s),i.dispatcher||(i.disabled=!1,i.dispatcher=function(r,n){if(i.disabled)return;r=kg(r);const a=i.handlers[r.type];if(a){const o=a.slice(0);for(let l=0,c=o.length;l<c&&!r.isImmediatePropagationStopped();l++)try{o[l].call(t,r,n)}catch(d){At.error(d)}}}),i.handlers[e].length===1)if(t.addEventListener){let r=!1;A$()&&k$.indexOf(e)>-1&&(r={passive:!0}),t.addEventListener(e,i.dispatcher,r)}else t.attachEvent&&t.attachEvent("on"+e,i.dispatcher)}function ni(t,e,s){if(!Ai.has(t))return;const i=Ai.get(t);if(!i.handlers)return;if(Array.isArray(e))return x1(ni,t,e,s);const r=function(a,o){i.handlers[o]=[],bx(a,o)};if(e===void 0){for(const a in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},a)&&r(t,a);return}const n=i.handlers[e];if(n){if(!s){r(t,e);return}if(s.guid)for(let a=0;a<n.length;a++)n[a].guid===s.guid&&n.splice(a--,1);bx(t,e)}}function vc(t,e,s){const i=Ai.has(t)?Ai.get(t):{},r=t.parentNode||t.ownerDocument;if(typeof e=="string"?e={type:e,target:t}:e.target||(e.target=t),e=kg(e),i.dispatcher&&i.dispatcher.call(t,e,s),r&&!e.isPropagationStopped()&&e.bubbles===!0)vc.call(null,r,e,s);else if(!r&&!e.defaultPrevented&&e.target&&e.target[e.type]){Ai.has(e.target)||Ai.set(e.target,{});const n=Ai.get(e.target);e.target[e.type]&&(n.disabled=!0,typeof e.target[e.type]=="function"&&e.target[e.type](),n.disabled=!1)}return!e.defaultPrevented}function Dg(t,e,s){if(Array.isArray(e))return x1(Dg,t,e,s);const i=function(){ni(t,e,i),s.apply(this,arguments)};i.guid=s.guid=s.guid||un(),fr(t,e,i)}function C1(t,e,s){const i=function(){ni(t,e,i),s.apply(this,arguments)};i.guid=s.guid=s.guid||un(),fr(t,e,i)}var D$=Object.freeze({__proto__:null,fixEvent:kg,on:fr,off:ni,trigger:vc,one:Dg,any:C1});const Ir=30,Qt=function(t,e,s){e.guid||(e.guid=un());const i=e.bind(t);return i.guid=s?s+"_"+e.guid:e.guid,i},jn=function(t,e){let s=Q.performance.now();return function(...r){const n=Q.performance.now();n-s>=e&&(t(...r),s=n)}},LP=function(t,e,s,i=Q){let r;const n=()=>{i.clearTimeout(r),r=null},a=function(){const o=this,l=arguments;let c=function(){r=null,c=null,s||t.apply(o,l)};!r&&s&&t.apply(o,l),i.clearTimeout(r),r=i.setTimeout(c,e)};return a.cancel=n,a};var I$=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:Ir,bind_:Qt,throttle:jn,debounce:LP});let Nd;class Pr{on(e,s){const i=this.addEventListener;this.addEventListener=()=>{},fr(this,e,s),this.addEventListener=i}off(e,s){ni(this,e,s)}one(e,s){const i=this.addEventListener;this.addEventListener=()=>{},Dg(this,e,s),this.addEventListener=i}any(e,s){const i=this.addEventListener;this.addEventListener=()=>{},C1(this,e,s),this.addEventListener=i}trigger(e){const s=e.type||e;typeof e=="string"&&(e={type:s}),e=kg(e),this.allowedEvents_[s]&&this["on"+s]&&this["on"+s](e),vc(this,e)}queueTrigger(e){Nd||(Nd=new Map);const s=e.type||e;let i=Nd.get(this);i||(i=new Map,Nd.set(this,i));const r=i.get(s);i.delete(s),Q.clearTimeout(r);const n=Q.setTimeout(()=>{i.delete(s),i.size===0&&(i=null,Nd.delete(this)),this.trigger(e)},0);i.set(s,n)}}Pr.prototype.allowedEvents_={};Pr.prototype.addEventListener=Pr.prototype.on;Pr.prototype.removeEventListener=Pr.prototype.off;Pr.prototype.dispatchEvent=Pr.prototype.trigger;const Ig=t=>typeof t.name=="function"?t.name():typeof t.name=="string"?t.name:t.name_?t.name_:t.constructor&&t.constructor.name?t.constructor.name:typeof t,Fa=t=>t instanceof Pr||!!t.eventBusEl_&&["on","one","off","trigger"].every(e=>typeof t[e]=="function"),P$=(t,e)=>{Fa(t)?e():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(e))},hb=t=>typeof t=="string"&&/\S/.test(t)||Array.isArray(t)&&!!t.length,tm=(t,e,s)=>{if(!t||!t.nodeName&&!Fa(t))throw new Error(`Invalid target for ${Ig(e)}#${s}; must be a DOM node or evented object.`)},OP=(t,e,s)=>{if(!hb(t))throw new Error(`Invalid event type for ${Ig(e)}#${s}; must be a non-empty string or array.`)},NP=(t,e,s)=>{if(typeof t!="function")throw new Error(`Invalid listener for ${Ig(e)}#${s}; must be a function.`)},m_=(t,e,s)=>{const i=e.length<3||e[0]===t||e[0]===t.eventBusEl_;let r,n,a;return i?(r=t.eventBusEl_,e.length>=3&&e.shift(),[n,a]=e):[r,n,a]=e,tm(r,t,s),OP(n,t,s),NP(a,t,s),a=Qt(t,a),{isTargetingSelf:i,target:r,type:n,listener:a}},tl=(t,e,s,i)=>{tm(t,t,e),t.nodeName?D$[e](t,s,i):t[e](s,i)},L$={on(...t){const{isTargetingSelf:e,target:s,type:i,listener:r}=m_(this,t,"on");if(tl(s,"on",i,r),!e){const n=()=>this.off(s,i,r);n.guid=r.guid;const a=()=>this.off("dispose",n);a.guid=r.guid,tl(this,"on","dispose",n),tl(s,"on","dispose",a)}},one(...t){const{isTargetingSelf:e,target:s,type:i,listener:r}=m_(this,t,"one");if(e)tl(s,"one",i,r);else{const n=(...a)=>{this.off(s,i,n),r.apply(null,a)};n.guid=r.guid,tl(s,"one",i,n)}},any(...t){const{isTargetingSelf:e,target:s,type:i,listener:r}=m_(this,t,"any");if(e)tl(s,"any",i,r);else{const n=(...a)=>{this.off(s,i,n),r.apply(null,a)};n.guid=r.guid,tl(s,"any",i,n)}},off(t,e,s){if(!t||hb(t))ni(this.eventBusEl_,t,e);else{const i=t,r=e;tm(i,this,"off"),OP(r,this,"off"),NP(s,this,"off"),s=Qt(this,s),this.off("dispose",s),i.nodeName?(ni(i,r,s),ni(i,"dispose",s)):Fa(i)&&(i.off(r,s),i.off("dispose",s))}},trigger(t,e){tm(this.eventBusEl_,this,"trigger");const s=t&&typeof t!="string"?t.type:t;if(!hb(s))throw new Error(`Invalid event type for ${Ig(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return vc(this.eventBusEl_,t,e)}};function w1(t,e={}){const{eventBusKey:s}=e;if(s){if(!t[s].nodeName)throw new Error(`The eventBusKey "${s}" does not refer to an element.`);t.eventBusEl_=t[s]}else t.eventBusEl_=Tt("span",{className:"vjs-event-bus"});return Object.assign(t,L$),t.eventedCallbacks&&t.eventedCallbacks.forEach(i=>{i()}),t.on("dispose",()=>{t.off(),[t,t.el_,t.eventBusEl_].forEach(function(i){i&&Ai.has(i)&&Ai.delete(i)}),Q.setTimeout(()=>{t.eventBusEl_=null},0)}),t}const O$={state:{},setState(t){typeof t=="function"&&(t=t());let e;return gu(t,(s,i)=>{this.state[i]!==s&&(e=e||{},e[i]={from:this.state[i],to:s}),this.state[i]=s}),e&&Fa(this)&&this.trigger({changes:e,type:"statechanged"}),e}};function RP(t,e){return Object.assign(t,O$),t.state=Object.assign({},t.state,e),typeof t.handleStateChanged=="function"&&Fa(t)&&t.on("statechanged",t.handleStateChanged),t}const gh=function(t){return typeof t!="string"?t:t.replace(/./,e=>e.toLowerCase())},ms=function(t){return typeof t!="string"?t:t.replace(/./,e=>e.toUpperCase())},MP=function(t,e){return ms(t)===ms(e)};var N$=Object.freeze({__proto__:null,toLowerCase:gh,toTitleCase:ms,titleCaseEquals:MP});class Te{constructor(e,s,i){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Kt({},this.options_),s=this.options_=Kt(this.options_,s),this.id_=s.id||s.el&&s.el.id,!this.id_){const r=e&&e.id&&e.id()||"no_player";this.id_=`${r}_component_${un()}`}this.name_=s.name||null,s.el?this.el_=s.el:s.createEl!==!1&&(this.el_=this.createEl()),s.className&&this.el_&&s.className.split(" ").forEach(r=>this.addClass(r)),["on","off","one","any","trigger"].forEach(r=>{this[r]=void 0}),s.evented!==!1&&(w1(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),RP(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,s.initChildren!==!1&&this.initChildren(),this.ready(i),s.reportTouchActivity!==!1&&this.enableTouchActivity()}on(e,s){}off(e,s){}one(e,s){}any(e,s){}trigger(e,s){}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let s=this.children_.length-1;s>=0;s--)this.children_[s].dispose&&this.children_[s].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return!!this.isDisposed_}player(){return this.player_}options(e){return e?(this.options_=Kt(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,s,i){return Tt(e,s,i)}localize(e,s,i=e){const r=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages(),a=n&&n[r],o=r&&r.split("-")[0],l=n&&n[o];let c=i;return a&&a[e]?c=a[e]:l&&l[e]&&(c=l[e]),s&&(c=c.replace(/\{(\d+)\}/g,function(d,p){const _=s[p-1];let b=_;return typeof _>"u"&&(b=d),b})),c}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce((i,r)=>i.concat(r),[]);let s=this;for(let i=0;i<e.length;i++)if(s=s.getChild(e[i]),!s||!s.getChild)return;return s}setIcon(e,s=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const i="http://www.w3.org/2000/svg",r=Tt("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),n=Oe.createElementNS(i,"svg");n.setAttributeNS(null,"viewBox","0 0 512 512");const a=Oe.createElementNS(i,"use");return n.appendChild(a),a.setAttributeNS(null,"href",`#vjs-icon-${e}`),r.appendChild(n),this.iconIsSet_?s.replaceChild(r,s.querySelector(".vjs-icon-placeholder")):s.appendChild(r),this.iconIsSet_=!0,r}addChild(e,s={},i=this.children_.length){let r,n;if(typeof e=="string"){n=ms(e);const a=s.componentClass||n;s.name=n;const o=Te.getComponent(a);if(!o)throw new Error(`Component ${a} does not exist`);if(typeof o!="function")return null;r=new o(this.player_||this,s)}else r=e;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,typeof r.id=="function"&&(this.childIndex_[r.id()]=r),n=n||r.name&&ms(r.name()),n&&(this.childNameIndex_[n]=r,this.childNameIndex_[gh(n)]=r),typeof r.el=="function"&&r.el()){let a=null;this.children_[i+1]&&(this.children_[i+1].el_?a=this.children_[i+1].el_:_c(this.children_[i+1])&&(a=this.children_[i+1])),this.contentEl().insertBefore(r.el(),a)}return r}removeChild(e){if(typeof e=="string"&&(e=this.getChild(e)),!e||!this.children_)return;let s=!1;for(let r=this.children_.length-1;r>=0;r--)if(this.children_[r]===e){s=!0,this.children_.splice(r,1);break}if(!s)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[ms(e.name())]=null,this.childNameIndex_[gh(e.name())]=null;const i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){const e=this.options_.children;if(e){const s=this.options_,i=a=>{const o=a.name;let l=a.opts;if(s[o]!==void 0&&(l=s[o]),l===!1)return;l===!0&&(l={}),l.playerOptions=this.options_.playerOptions;const c=this.addChild(o,l);c&&(this[o]=c)};let r;const n=Te.getComponent("Tech");Array.isArray(e)?r=e:r=Object.keys(e),r.concat(Object.keys(this.options_).filter(function(a){return!r.some(function(o){return typeof o=="str
82ing"?a===o:a===o.name})})).map(a=>{let o,l;return typeof a=="string"?(o=a,l=e[o]||this.options_[o]||{}):(o=a.name,l=a),{name:o,opts:l}}).filter(a=>{const o=Te.getComponent(a.opts.componentClass||ms(a.name));return o&&!n.isTech(o)}).forEach(i)}}buildCSSClass(){return""}ready(e,s=!1){if(e){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e);return}s?e.call(this):this.setTimeout(e,1)}}triggerReady(){this.isReady_=!0,this.setTimeout(function(){const e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(s){s.call(this)},this),this.trigger("ready")},1)}$(e,s){return Co(e,s||this.contentEl())}$$(e,s){return wP(e,s||this.contentEl())}hasClass(e){return mh(this.el_,e)}addClass(...e){vl(this.el_,...e)}removeClass(...e){xg(this.el_,...e)}toggleClass(e,s){_P(this.el_,e,s)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return bP(this.el_,e)}setAttribute(e,s){Ku(this.el_,e,s)}removeAttribute(e){Cg(this.el_,e)}width(e,s){return this.dimension("width",e,s)}height(e,s){return this.dimension("height",e,s)}dimensions(e,s){this.width(e,!0),this.height(s)}dimension(e,s,i){if(s!==void 0){(s===null||s!==s)&&(s=0),(""+s).indexOf("%")!==-1||(""+s).indexOf("px")!==-1?this.el_.style[e]=s:s==="auto"?this.el_.style[e]="":this.el_.style[e]=s+"px",i||this.trigger("componentresize");return}if(!this.el_)return 0;const r=this.el_.style[e],n=r.indexOf("px");return parseInt(n!==-1?r.slice(0,n):this.el_["offset"+ms(e)],10)}currentDimension(e){let s=0;if(e!=="width"&&e!=="height")throw new Error("currentDimension only accepts width or height value");if(s=Qu(this.el_,e),s=parseFloat(s),s===0||isNaN(s)){const i=`offset${ms(e)}`;s=this.el_[i]}return s}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&(ut.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e=0,s=null;const i=10,r=200;let n;this.on("touchstart",function(o){o.touches.length===1&&(s={pageX:o.touches[0].pageX,pageY:o.touches[0].pageY},e=Q.performance.now(),n=!0)}),this.on("touchmove",function(o){if(o.touches.length>1)n=!1;else if(s){const l=o.touches[0].pageX-s.pageX,c=o.touches[0].pageY-s.pageY;Math.sqrt(l*l+c*c)>i&&(n=!1)}});const a=function(){n=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",function(o){s=null,n===!0&&Q.performance.now()-e<r&&(o.preventDefault(),this.trigger("tap"))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=Qt(this.player(),this.player().reportUserActivity);let s;this.on("touchstart",function(){e(),this.clearInterval(s),s=this.setInterval(e,250)});const i=function(r){e(),this.clearInterval(s)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}setTimeout(e,s){var i;return e=Qt(this,e),this.clearTimersOnDispose_(),i=Q.setTimeout(()=>{this.setTimeoutIds_.has(i)&&this.setTimeoutIds_.delete(i),e()},s),this.setTimeoutIds_.add(i),i}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),Q.clearTimeout(e)),e}setInterval(e,s){e=Qt(this,e),this.clearTimersOnDispose_();const i=Q.setInterval(e,s);return this.setIntervalIds_.add(i),i}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),Q.clearInterval(e)),e}requestAnimationFrame(e){this.clearTimersOnDispose_();var s;return e=Qt(this,e),s=Q.requestAnimationFrame(()=>{this.rafIds_.has(s)&&this.rafIds_.delete(s),e()}),this.rafIds_.add(s),s}requestNamedAnimationFrame(e,s){if(this.namedRafs_.has(e))return;this.clearTimersOnDispose_(),s=Qt(this,s);const i=this.requestAnimationFrame(()=>{s(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,i),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),Q.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
82h(([e,s])=>{this[e].forEach((i,r)=>this[s](r))}),this.clearingTimersOnDispose_=!1}))}static registerComponent(e,s){if(typeof e!="string"||!e)throw new Error(`Illegal component name, "${e}"; must be a non-empty string.`);const i=Te.getComponent("Tech"),r=i&&i.isTech(s),n=Te===s||Te.prototype.isPrototypeOf(s.prototype);if(r||!n){let o;throw r?o="techs must be registered using Tech.registerTech()":o="must be a Component subclass",new Error(`Illegal component, "${e}"; ${o}.`)}e=ms(e),Te.components_||(Te.components_={});const a=Te.getComponent("Player");if(e==="Player"&&a&&a.players){const o=a.players,l=Object.keys(o);if(o&&l.length>0&&l.map(c=>o[c]).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return Te.components_[e]=s,Te.components_[gh(e)]=s,s}static getComponent(e){if(!(!e||!Te.components_))return Te.components_[e]}}Te.registerComponent("Component",Te);function R$(t,e,s){if(typeof e!="number"||e<0||e>s)throw new Error(`Failed to execute '${t}' on 'TimeRanges': The index provided (${e}) is non-numeric or out of bounds (0-${s}).`)}function Tx(t,e,s,i){return R$(t,i,s.length-1),s[i][e]}function g_(t){let e;return t===void 0||t.length===0?e={length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:e={length:t.length,start:Tx.bind(null,"start",0,t),end:Tx.bind(null,"end",1,t)},Q.Symbol&&Q.Symbol.iterator&&(e[Q.Symbol.iterator]=()=>(t||[]).values()),e}function en(t,e){return Array.isArray(t)?g_(t):t===void 0||e===void 0?g_():g_([[t,e]])}const FP=function(t,e){t=t<0?0:t;let s=Math.floor(t%60),i=Math.floor(t/60%60),r=Math.floor(t/3600);const n=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(r=i=s="-"),r=r>0||a>0?r+":":"",i=((r||n>=10)&&i<10?"0"+i:i)+":",s=s<10?"0"+s:s,r+i+s};let A1=FP;function BP(t){A1=t}function UP(){A1=FP}function kl(t,e=t){return A1(t,e)}var M$=Object.freeze({__proto__:null,createTimeRanges:en,createTimeRange:en,setFormatTime:BP,resetFormatTime:UP,formatTime:kl});function $P(t,e){let s=0,i,r;if(!e)return 0;(!t||!t.length)&&(t=en(0,0));for(let n=0;n<t.length;n++)i=t.start(n),r=t.end(n),r>e&&(r=e),s+=r-i;return s/e}function ki(t){if(t instanceof ki)return t;typeof t=="number"?this.code=t:typeof t=="string"?this.message=t:Bn(t)&&(typeof t.code=="number"&&(this.code=t.code),Object.assign(this,t)),this.message||(this.message=ki.defaultMessages[this.code]||"")}ki.prototype.code=0;ki.prototype.message="";ki.prototype.status=null;ki.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];ki.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(let t=0;t<ki.errorTypes.length;t++)ki[ki.errorTypes[t]]=t,ki.prototype[ki.errorTypes[t]]=t;function yh(t){return t!=null&&typeof t.then=="function"}function xn(t){yh(t)&&t.then(null,e=>{})}const fb=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((s,i,r)=>(t[i]&&(s[i]=t[i]),s),{cues:t.cues&&Array.prototype.map.call(t.cues,function(s){return{startTime:s.startTime,endTime:s.endTime,text:s.text,id:s.id}})})},F$=function(t){const e=t.$$("track"),s=Array.prototype.map.call(e,r=>r.track);return Array.prototype.map.call(e,function(r){const n=fb(r.track);return r.src&&(n.src=r.src),n}).concat(Array.prototype.filter.call(t.textTracks(),function(r){return s.indexOf(r)===-1}).map(fb))},B$=function(t,e){return t.forEach(function(s){const i=e.addRemoteTextTrack(s).track;!s.src&&s.cues&&s.cues.forEach(r=>i.addCue(r))}),e.textTracks()};var Sx={textTracksToJson:F$,jsonToTextTracks:B$,trackToJson_:fb};const y_="vjs-modal-dialog";class bc extends Te{constructor(e,s){super(e,s),this.handleKeyDown_=i=>this.handleKeyDown(i),this.close_=i=>this.close(i),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=Tt("div",{className:`${y_}-content`},{role:"document"}),this.descEl_=Tt("p",{className:`${y_}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),Lo(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${y_} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}open(){if(!this.opened_){const e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpe
82n&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}}opened(e){return typeof e=="boolean"&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if(typeof e=="boolean"){const s=this.closeable_=!!e;let i=this.getChild("closeButton");if(s&&!i){const r=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(i,"close",this.close_)}!s&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){const s=this.contentEl(),i=s.parentNode,r=s.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(s),this.empty(),CP(s,e),this.trigger("modalfill"),r?i.insertBefore(s,r):i.appendChild(s);const n=this.getChild("closeButton");n&&i.appendChild(n.el_)}empty(){this.trigger("beforemodalempty"),Ag(this.contentEl()),this.trigger("modalempty")}content(e){return typeof e<"u"&&(this.content_=e),this.content_}conditionalFocus_(){const e=Oe.activeElement,s=this.player_.el_;this.previouslyActiveEl_=null,(s.contains(e)||s===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){if(e.stopPropagation(),ut.isEventKey(e,"Escape")&&this.closeable()){e.preventDefault(),this.close();return}if(!ut.isEventKey(e,"Tab"))return;const s=this.focusableEls_(),i=this.el_.querySelector(":focus");let r;for(let n=0;n<s.length;n++)if(i===s[n]){r=n;break}Oe.activeElement===this.el_&&(r=0),e.shiftKey&&r===0?(s[s.length-1].focus(),e.preventDefault()):!e.shiftKey&&r===s.length-1&&(s[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,s=>(s instanceof Q.HTMLAnchorElement||s instanceof Q.HTMLAreaElement)&&s.hasAttribute("href")||(s instanceof Q.HTMLInputElement||s instanceof Q.HTMLSelectElement||s instanceof Q.HTMLTextAreaElement||s instanceof Q.HTMLButtonElement)&&!s.hasAttribute("disabled")||s instanceof Q.HTMLIFrameElement||s instanceof Q.HTMLObjectElement||s instanceof Q.HTMLEmbedElement||s.hasAttribute("tabindex")&&s.getAttribute("tabindex")!==-1||s.hasAttribute("contenteditable"))}}bc.prototype.options_={pauseOnOpen:!0,temporary:!0};Te.registerComponent("ModalDialog",bc);class Ju extends Pr{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let s=0;s<e.length;s++)this.addTrack(e[s])}addTrack(e){const s=this.tracks_.length;""+s in this||Object.defineProperty(this,s,{get(){return this.tracks_[s]}}),this.tracks_.indexOf(e)===-1&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},Fa(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let s;for(let i=0,r=this.length;i<r;i++)if(this[i]===e){s=this[i],s.off&&s.off(),this.tracks_.splice(i,1);break}s&&this.trigger({track:s,type:"removetrack",target:this})}getTrackById(e){let s=null;for(let i=0,r=this.length;i<r;i++){const n=this[i];if(n.id===e){s=n;break}}return s}}Ju.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const t in Ju.prototype.allowedEvents_)Ju.prototype["on"+t]=null;const __=function(t,e){for(let s=0;s<t.length;s++)!Object.keys(t[s]).length||e.id===t[s].id||(t[s].enabled=!1)};class U$ extends Ju{constructor(e=[]){for(let s=e.length-1;s>=0;s--)if(e[s].enabled){__(e,e[s]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&__(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,__(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}}const v_=function(t,e){for(let s=0;s<t.length;
82s++)!Object.keys(t[s]).length||e.id===t[s].id||(t[s].selected=!1)};class $$ extends Ju{constructor(e=[]){for(let s=e.length-1;s>=0;s--)if(e[s].selected){v_(e,e[s]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let s=0;s<this.length;s++)if(this[s].selected)return s;return-1},set(){}})}addTrack(e){e.selected&&v_(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,v_(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}}class jP extends Ju{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_),["metadata","chapters"].indexOf(e.kind)===-1&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}class j${constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let s=0,i=e.length;s<i;s++)this.addTrackElement_(e[s])}addTrackElement_(e){const s=this.trackElements_.length;""+s in this||Object.defineProperty(this,s,{get(){return this.trackElements_[s]}}),this.trackElements_.indexOf(e)===-1&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let s;for(let i=0,r=this.trackElements_.length;i<r;i++)if(e===this.trackElements_[i].track){s=this.trackElements_[i];break}return s}removeTrackElement_(e){for(let s=0,i=this.trackElements_.length;s<i;s++)if(e===this.trackElements_[s]){this.trackElements_[s].track&&typeof this.trackElements_[s].track.off=="function"&&this.trackElements_[s].track.off(),typeof this.trackElements_[s].off=="function"&&this.trackElements_[s].off(),this.trackElements_.splice(s,1);break}}}class sm{constructor(e){sm.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const s=this.length||0;let i=0;const r=e.length;this.cues_=e,this.length_=e.length;const n=function(a){""+a in this||Object.defineProperty(this,""+a,{get(){return this.cues_[a]}})};if(s<r)for(i=s;i<r;i++)n.call(this,i)}getCueById(e){let s=null;for(let i=0,r=this.length;i<r;i++){const n=this[i];if(n.id===e){s=n;break}}return s}}const H$={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},q$={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},V$={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Ex={disabled:"disabled",hidden:"hidden",showing:"showing"};class k1 extends Pr{constructor(e={}){super();const s={id:e.id||"vjs_track_"+un(),kind:e.kind||"",language:e.language||""};let i=e.label||"";for(const r in s)Object.defineProperty(this,r,{get(){return s[r]},set(){}});Object.defineProperty(this,"label",{get(){return i},set(r){r!==i&&(i=r,this.trigger("labelchange"))}})}}const D1=function(t){const e=["protocol","hostname","port","pathname","search","hash","host"],s=Oe.createElement("a");s.href=t;const i={};for(let r=0;r<e.length;r++)i[e[r]]=s[e[r]];return i.protocol==="http:"&&(i.host=i.host.replace(/:80$/,"")),i.protocol==="https:"&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=Q.location.protocol),i.host||(i.host=Q.location.host),i},HP=function(t){if(!t.match(/^https?:\/\//)){const e=Oe.createElement("a");e.href=t,t=e.href}return t},I1=function(t){if(typeof t=="string"){const s=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(t);if(s)return s.pop().toLowerCase()}return""},Pg=function(t,e=Q.location){const s=D1(t);return(s.protocol===":"?e.protocol:s.protocol)+s.host!==e.protocol+e.host};var z$=Object.freeze({__proto__:null,parseUrl:D1,getAbsoluteURL:HP,getFileExtension:I1,isCrossOrigin:Pg});const xx=function(t,e){const s=new Q.WebVTT.Parser(Q,Q.vttjs,Q.WebVTT.StringDecoder()),i=[];
vendor: 8,749 bytes, line 82
82s.oncue=function(r){e.addCue(r)},s.onparsingerror=function(r){i.push(r)},s.onflush=function(){e.trigger({type:"loadeddata",target:e})},s.parse(t),i.length>0&&(Q.console&&Q.console.groupCollapsed&&Q.console.groupCollapsed(`Text Track parsing errors for ${e.src}`),i.forEach(r=>At.error(r)),Q.console&&Q.console.groupEnd&&Q.console.groupEnd()),s.flush()},Cx=function(t,e){const s={uri:t},i=Pg(t);i&&(s.cors=i);const r=e.tech_.crossOrigin()==="use-credentials";r&&(s.withCredentials=r),yI(s,Qt(this,function(n,a,o){if(n)return At.error(n,a);e.loaded_=!0,typeof Q.WebVTT!="function"?e.tech_&&e.tech_.any(["vttjsloaded","vttjserror"],l=>{if(l.type==="vttjserror"){At.error(`vttjs failed to load, stopping trying to process ${e.src}`);return}return xx(o,e)}):xx(o,e)}))};class _f extends k1{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const s=Kt(e,{kind:V$[e.kind]||"subtitles",language:e.language||e.srclang||""});let i=Ex[s.mode]||"disabled";const r=s.default;(s.kind==="metadata"||s.kind==="chapters")&&(i="hidden"),super(s),this.tech_=s.tech,this.cues_=[],this.activeCues_=[],this.preload_=this.tech_.preloadTextTracks!==!1;const n=new sm(this.cues_),a=new sm(this.activeCues_);let o=!1;this.timeupdateHandler=Qt(this,function(c={}){if(!this.tech_.isDisposed()){if(!this.tech_.isReady_){c.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,o&&(this.trigger("cuechange"),o=!1),c.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}});const l=()=>{this.stopTracking()};this.tech_.one("dispose",l),i!=="disabled"&&this.startTracking(),Object.defineProperties(this,{default:{get(){return r},set(){}},mode:{get(){return i},set(c){Ex[c]&&i!==c&&(i=c,!this.preload_&&i!=="disabled"&&this.cues.length===0&&Cx(this.src,this),this.stopTracking(),i!=="disabled"&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?n:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(this.cues.length===0)return a;const c=this.tech_.currentTime(),d=[];for(let p=0,_=this.cues.length;p<_;p++){const b=this.cues[p];b.startTime<=c&&b.endTime>=c&&d.push(b)}if(o=!1,d.length!==this.activeCues_.length)o=!0;else for(let p=0;p<d.length;p++)this.activeCues_.indexOf(d[p])===-1&&(o=!0);return this.activeCues_=d,a.setCues_(this.activeCues_),a},set(){}}}),s.src?(this.src=s.src,this.preload_||(this.loaded_=!0),(this.preload_||s.kind!=="subtitles"&&s.kind!=="captions")&&Cx(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let s=e;if(!("getCueAsHTML"in s)){s=new Q.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(const r in e)r in s||(s[r]=e[r]);s.id=e.id,s.originalCue_=e}const i=this.tech_.textTracks();for(let r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(s);this.cues_.push(s),this.cues.setCues_(this.cues_)}removeCue(e){let s=this.cues_.length;for(;s--;){const i=this.cues_[s];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(s,1),this.cues.setCues_(this.cues_);break}}}}_f.prototype.allowedEvents_={cuechange:"cuechange"};class qP extends k1{constructor(e={}){const s=Kt(e,{kind:q$[e.kind]||""});super(s);let i=!1;Object.defineProperty(this,"enabled",{get(){return i},set(r){typeof r!="boolean"||r===i||(i=r,this.trigger("enabledchange"))}}),s.enabled&&(this.enabled=s.enabled),this.loaded_=!0}}class VP extends k1{constructor(e={}){const s=Kt(e,{kind:H$[e.kind]||""});super(s);let i=!1;Object.defineProperty(this,"selected",{get(){return i},set(r){typeof r!="boolean"||r===i||(i=r,this.trigger("selectedchange"))}}),s.selected&&(this.selected=s.selected)}}class qa extends Pr{constructor(e={}){super();let s;const i=new _f(e);this.kind=i.kind,this.src=i.src,this.srclang=i.language,this.label=i.label,this.default=i.default,Object.defineProperties(this,{readyState:{get(){return s}},track:{get(){return i}}}),s=qa.NONE,i.addEventListener("loadeddata",()=>{s=qa.LOADED,this.trigger({type:"load",target:this})})}}qa.prototype.allowedEvents_={load:"load"};qa.NONE=0;qa.LOADING=1;qa.LOADED=2;qa.ERROR=3;const wr={audio:{ListClass:U$,TrackClass:qP,capitalName:"Audio"},video:{ListClass:$$,TrackClass:VP,capitalName:"Video"},text:{ListClass:jP,TrackClass:_f,capitalName:"Text"}};Object.keys(wr).forEach(function(t){wr[t].getterName=`${t}Tracks`,wr[t].privateName=`${t}Tracks_`});const Zu={remoteText:{ListClass:jP,TrackClass:_f,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:j$,TrackClass:qa,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},xi=Object.assign({},wr,Zu);Zu.names=Object.keys(Zu);wr.names=Object.keys(wr);xi.names=[].concat(Zu.names).concat(wr.names);function G$(t,e,s,i,r={}){const n=t.textTracks();r.kind=e,s&&(r.label=s),i&&(r.language=i),r.tech=t;const a=new xi.text.TrackClass(r);return n.addTrack(a),a}class ft extends Te{constructor(e={},s=function(){}){e.reportTouchActivity=!1,super(null,e,s),this.onDurationChange_=i=>this.onDurationChange(i),this.trackProgress_=i=>this.trackProgress(i),this.trackCurrentTime_=i=>this.trackCurrentTime(i),this.stopTrackingCurrentTime_=i=>this.stopTrackingCurrentTime(i),this.disposeSourceHandler_=i=>this.disposeSourceHandler(i),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),xi.names.forEach(i=>{const r=xi[i];e&&e[r.getterName]&&(this[r.privateName]=e[r.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(i=>{e[`native${i}Tracks`]===!1&&(this[`featuresNative${i}Tracks`]=!1)}),e.nativeCaptions===!1||e.nativeTextTracks===!1?this.featuresNativeTextTracks=!1:(e.nativeCaptions===!0||e.nativeTextTracks===!0)&&(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=e.preloadTextTracks!==!1,this.autoRemoteTextTracks_=new xi.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Qt(this,function(){const s=this.bufferedPercent();this.bufferedPercent_!==s&&this.trigger("progress"),this.bufferedPercent_=s,s===1&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return en(0,0)}bufferedPercent(){return $P(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(wr.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(e){e=[].concat(e),e.forEach(s=>{const i=this[`${s}Tracks`]()||[];let r=i.length;for(;r--;){const n=i[r];s==="text"&&this.removeRemoteTextTrack(n),i.removeTrack(n)}})}cleanupAutoTextTracks(){const e=this.autoRemoteTextTracks_||[];let s=e.length;for(;s--;){const i=e[s];this.removeRemoteTextTrack(i)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return e!==void 0&&(this.error_=new ki(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?en(0,0):en()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}
vendor: 5,827 bytes, line 82
82initTrackListeners(){wr.names.forEach(e=>{const s=wr[e],i=()=>{this.trigger(`${e}trackchange`)},r=this[s.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),this.on("dispose",()=>{r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)})})}addWebVttScript_(){if(!Q.WebVTT)if(Oe.body.contains(this.el())){if(!this.options_["vtt.js"]&&Xu(H2)&&Object.keys(H2).length>0){this.trigger("vttjsloaded");return}const e=Oe.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{e.onload=null,e.onerror=null}),Q.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const e=this.textTracks(),s=this.remoteTextTracks(),i=o=>e.addTrack(o.track),r=o=>e.removeTrack(o.track);s.on("addtrack",i),s.on("removetrack",r),this.addWebVttScript_();const n=()=>this.trigger("texttrackchange"),a=()=>{n();for(let o=0;o<e.length;o++){const l=e[o];l.removeEventListener("cuechange",n),l.mode==="showing"&&l.addEventListener("cuechange",n)}};a(),e.addEventListener("change",a),e.addEventListener("addtrack",a),e.addEventListener("removetrack",a),this.on("dispose",function(){s.off("addtrack",i),s.off("removetrack",r),e.removeEventListener("change",a),e.removeEventListener("addtrack",a),e.removeEventListener("removetrack",a);for(let o=0;o<e.length;o++)e[o].removeEventListener("cuechange",n)})}addTextTrack(e,s,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return G$(this,e,s,i)}createRemoteTextTrack(e){const s=Kt(e,{tech:this});return new Zu.remoteTextEl.TrackClass(s)}addRemoteTextTrack(e={},s){const i=this.createRemoteTextTrack(e);return typeof s!="boolean"&&(s=!1),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),s===!1&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(i.track)),i}removeRemoteTextTrack(e){const s=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(s),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){const s=un();return!this.isReady_||this.paused()?(this.queuedHanders_.add(s),this.one("playing",()=>{this.queuedHanders_.has(s)&&(this.queuedHanders_.delete(s),e())})):this.requestNamedAnimationFrame(s,e),s}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,s){return ft.canPlayType(e.type)}static isTech(e){return e.prototype instanceof ft||e instanceof ft||e===ft}static registerTech(e,s){if(ft.techs_||(ft.techs_={}),!ft.isTech(s))throw new Error(`Tech ${e} must be a Tech`);if(!ft.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!ft.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=ms(e),ft.techs_[e]=s,ft.techs_[gh(e)]=s,e!=="Tech"&&ft.defaultTechOrder_.push(e),s}static getTech(e){if(e){if(ft.techs_&&ft.techs_[e])return ft.techs_[e];if(e=ms(e),Q&&Q.videojs&&Q.videojs[e])return At.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),Q.videojs[e]}}}xi.names.forEach(function(t){const e=xi[t];ft.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}});ft.prototype.featuresVolumeControl=!0;ft.prototype.featuresMuteControl=!0;ft.prototype.featuresFullscreenResize=!1;ft.prototype.featuresPlaybackRate=!1;ft.prototype.featuresProgressEvents=!1;ft.prototype.featuresSourceset=!1;ft.prototype.featuresTimeupdateEvents=!1;ft.prototype.featuresNativeTextTracks=!1;ft.prototype.featuresVideoFrameCallback=!1;ft.withSourceHandlers=function(t){t.registerSourceHandler=function(s,i){let r=t.sourceHandlers;r||(r=t.sourceHandlers=[]),i===void 0&&(i=r.length),r.splice(i,0,s)},t.canPlayType=function(s){const i=t.sourceHandlers||[];let r;for(let n=0;n<i.length;n++)if(r=i[n].canPlayType(s),r)return r;return""},t.selectSourceHandler=function(s,i){const r=t.sourceHandlers||[];let n;for(let a=0;a<r.length;a++)if(n=r[a].canHandleSource(s,i),n)return r[a];return null},t.canPlaySource=function(s,i){const r=t.selectSourceHandler(s,i);return r?r.canHandleSource(s,i):""},["seekable","seeking","duration"].forEach(function(s){const i=this[s];typeof i=="function"&&(this[s]=function(){return this.sourceHandler_&&this.sourceHandler_[s]?this.sourceHandler_[s].apply(this.sourceHandler_,arguments):i.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(s){let i=t.selectSourceHandler(s,this.options_);i||(t.nativeSourceHandler?i=t.nativeSourceHandler:At.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),i!==t.nativeSourceHandler&&(this.currentSource_=s),this.sourceHandler_=i.handleSource(s,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},t.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}};Te.registerComponent("Tech",ft);ft.registerTech("Tech",ft);ft.defaultTechOrder_=[];const bl={},pb={},im={};function W$(t,e){bl[t]=bl[t]||[],bl[t].push(e)}
vendor: 2,305 bytes, line 82
82function X$(t,e,s){t.setTimeout(()=>rl(e,bl[e.type],s,t),1)}function K$(t,e){t.forEach(s=>s.setTech&&s.setTech(e))}function Y$(t,e,s){return t.reduceRight(P1(s),e[s]())}function Q$(t,e,s,i){return e[s](t.reduce(P1(s),i))}function wx(t,e,s,i=null){const r="call"+ms(s),n=t.reduce(P1(r),i),a=n===im,o=a?null:e[s](n);return ej(t,s,o,a),o}const J$={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Z$={setCurrentTime:1,setMuted:1,setVolume:1},Ax={play:1,pause:1};function P1(t){return(e,s)=>e===im?im:s[t]?s[t](e):e}function ej(t,e,s,i){for(let r=t.length-1;r>=0;r--){const n=t[r];n[e]&&n[e](i,s)}}function tj(t){pb[t.id()]=null}function sj(t,e){const s=pb[t.id()];let i=null;if(s==null)return i=e(t),pb[t.id()]=[[e,i]],i;for(let r=0;r<s.length;r++){const[n,a]=s[r];n===e&&(i=a)}return i===null&&(i=e(t),s.push([e,i])),i}function rl(t={},e=[],s,i,r=[],n=!1){const[a,...o]=e;if(typeof a=="string")rl(t,bl[a],s,i,r,n);else if(a){const l=sj(i,a);if(!l.setSource)return r.push(l),rl(t,o,s,i,r,n);l.setSource(Object.assign({},t),function(c,d){if(c)return rl(t,o,s,i,r,n);r.push(l),rl(d,t.type===d.type?o:bl[d.type],s,i,r,n)})}else o.length?rl(t,o,s,i,r,n):n?s(t,r):rl(t,bl["*"],s,i,r,!0)}const ij={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},rm=function(t=""){const e=I1(t);return ij[e.toLowerCase()]||""},rj=(t,e)=>{if(!e)return"";if(t.cache_.source.src===e&&t.cache_.source.type)return t.cache_.source.type;const s=t.cache_.sources.filter(r=>r.src===e);if(s.length)return s[0].type;const i=t.$$("source");for(let r=0;r<i.length;r++){const n=i[r];if(n.type&&n.src&&n.src===e)return n.type}return rm(e)},zP=function(t){if(Array.isArray(t)){let e=[];t.forEach(function(s){s=zP(s),Array.isArray(s)?e=e.concat(s):Bn(s)&&e.push(s)}),t=e}else typeof t=="string"&&t.trim()?t=[kx({src:t})]:Bn(t)&&typeof t.src=="string"&&t.src&&t.src.trim()?t=[kx(t)]:t=[];return t};function kx(t){if(!t.type){const e=rm(t.src);e&&(t.type=e)}return t}var nj
vendor: 16,212 bytes, lines 82-214
82=`<svg xmlns="http://www.w3.org/2000/svg">
83  <defs>
84    <symbol viewBox="0 0 48 48" id="vjs-icon-play">
85      <path d="M16 10v28l22-14z"></path>
86    </symbol>
87    <symbol viewBox="0 0 48 48" id="vjs-icon-pause">
88      <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>
89    </symbol>
90    <symbol viewBox="0 0 48 48" id="vjs-icon-audio">
91      <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>
92    </symbol>
93    <symbol viewBox="0 0 48 48" id="vjs-icon-captions">
94      <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>
95    </symbol>
96    <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">
97      <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>
98    </symbol>
99    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">
100      <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>
101    </symbol>
102    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">
103      <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>
104    </symbol>
105    <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">
106      <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>
107    </symbol>
108    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">
109      <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>
110    </symbol>
111    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">
112      <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>
113    </symbol>
114    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">
115      <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>
116    </symbol>
117    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">
118      <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>
119    </symbol>
120    <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">
121      <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>
122    </symbol>
123    <symbol viewBox="0 0 24 24" id="vjs-icon-hd">
124      <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>
125    </symbol>
126    <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">
127      <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>
128    </symbol>
129    <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">
130      <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>
131    </symbol>
132    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">
133      <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>
134    </symbol>
135    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">
136      <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>
137    </symbol>
138    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">
139      <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>
140    </symbol>
141    <symbol viewBox="0 0 48 48" id="vjs-icon-share">
142      <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>
143    </symbol>
144    <symbol viewBox="0 0 48 48" id="vjs-icon-cog">
145      <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>
146    </symbol>
147    <symbol viewBox="0 0 48 48" id="vjs-icon-square">
148      <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>
149    </symbol>
150    <symbol viewBox="0 0 48 48" id="vjs-icon-circle">
151      <circle cx="24" cy="24" r="20"></circle>
152    </symbol>
153    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">
154      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>
155    </symbol>
156    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">
157      <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>
158    </symbol>
159    <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">
160      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>
161    </symbol>
162    <symbol viewBox="0 0 48 48" id="vjs-icon-replay">
163      <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>
164    </symbol>
165    <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">
166      <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>
167    </symbol>
168    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">
169      <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>
170    </symbol>
171    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">
172      <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>
173    </symbol>
174    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">
175      <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>
176    </symbol>
177    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">
178      <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>
179    </symbol>
180    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">
181      <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>
182    </symbol>
183    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">
184      <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>
185    </symbol>
186    <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">
187      <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>
188    </symbol>
189    <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">
190      <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>
191    </symbol>
192    <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">
193      <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>
194    </symbol>
195    <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">
196      <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>
197    </symbol>
198    <symbol viewBox="0 0 48 48" id="vjs-icon-cast">
199      <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>
200    </symbol>
201    <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">
202      <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>
203    </symbol>
204    <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">
205      <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>
206      <path fill="none" d="M-1-3h24v24H-1z"></path>
207    </symbol>
208    <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">
209      <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>
210    </symbol>
211    <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">
212      <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>
213    </symbol>
214    <symbol viewBox="0 0 1
214792 1792" id="vjs-icon-twitter">
215      <path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5T1369.5 1125 1185 1335.5t-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5T285 1033q33 5 61 5 43 0 85-11-112-23-185.5-111.5T172 710v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5T884 653q-8-38-8-74 0-134 94.5-228.5T1199 256q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"></path>
216    </symbol>
217    <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">
218      <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>
219    </symbol>
220    <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">
221      <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>
222    </symbol>
223  </defs>
224</svg>`;class aj extends Te{constructor(e,s,i){const r=Kt({createEl:!1},s);if(super(e,r,i),!s.playerOptions.sources||s.playerOptions.sources.length===0)for(let n=0,a=s.playerOptions.techOrder;n<a.length;n++){const o=ms(a[n]);let l=ft.getTech(o);if(o||(l=Te.getComponent(o)),l&&l.isSupported()){e.loadTech_(o);break}}else e.src(s.playerOptions.sources)}}Te.registerComponent("MediaLoader",aj);class Lg extends Te{constructor(e,s){super(e,s),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=i=>this.handleMouseOver(i),this.handleMouseOut_=i=>this.handleMouseOut(i),this.handleClick_=i=>this.handleClick(i),this.handleKeyDown_=i=>this.handleKeyDown(i),this.emitTapEvents(),this.enable()}createEl(e="div",s={},i={}){s=Object.assign({className:this.buildCSSClass(),tabIndex:0},s),e==="button"&&At.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),i=Object.assign({role:"button"},i),this.tabIndex_=s.tabIndex;const r=Tt(e,s,i);return this.player_.options_.experimentalSvgIcons||r.appendChild(Tt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=Tt("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,s=this.el()){if(e===void 0)return this.controlText_||"Need Text";const i=this.localize(e);this.controlText_=e,Lo(this.controlTextEl_,i),!this.nonIconControl&&!this.player_.options_.noUITitleAttributes&&s.setAttribute("title",i)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){ut.isEventKey(e,"Space")||ut.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}Te.registerComponent("ClickableComponent",Lg);class mb extends Lg{constructor(e,s){super(e,s),this.update(),this.update_=i=>this.update(i),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return Tt("div",{className:"vjs-poster"})}crossOrigin(e){if(typeof e>"u")return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;if(e!==null&&e!=="anonymous"&&e!=="use-credentials"){this.player_.log.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`);return}this.$("img")&&(this.$("img").crossOrigin=e)}update(e){const s=this.player().poster();this.setSrc(s),s?this.show():this.hide()}setSrc(e){if(!e){this.el_.textContent="";return}this.$("img")||this.el_.appendChild(Tt("picture",{className:"vjs-poster",tabIndex:-1},{},Tt("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?xn(this.player_.play()):this.player_.pause())}}mb.prototype.crossorigin=mb.prototype.crossOrigin;Te.registerComponent("PosterImage",mb);const vr="#222",Dx="#ccc",oj={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',
vendor: 4,974 bytes, line 224
224script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function b_(t,e){let s;if(t.length===4)s=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else if(t.length===7)s=t.slice(1);else throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");return"rgba("+parseInt(s.slice(0,2),16)+","+parseInt(s.slice(2,4),16)+","+parseInt(s.slice(4,6),16)+","+e+")"}function Rd(t,e,s){try{t.style[e]=s}catch{return}}function Ix(t){return t?`${t}px`:""}class lj extends Te{constructor(e,s,i){super(e,s,i);const r=a=>this.updateDisplay(a),n=a=>{this.updateDisplayOverlay(),this.updateDisplay(a)};e.on("loadstart",a=>this.toggleDisplay(a)),e.on("texttrackchange",r),e.on("loadedmetadata",a=>{this.updateDisplayOverlay(),this.preselectTrack(a)}),e.ready(Qt(this,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks){this.hide();return}e.on("fullscreenchange",n),e.on("playerresize",n);const a=Q.screen.orientation||Q,o=Q.screen.orientation?"change":"orientationchange";a.addEventListener(o,n),e.on("dispose",()=>a.removeEventListener(o,n));const l=this.options_.playerOptions.tracks||[];for(let c=0;c<l.length;c++)this.player_.addRemoteTextTrack(l[c],!0);this.preselectTrack()}))}preselectTrack(){const e={captions:1,subtitles:1},s=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage;let r,n,a;for(let o=0;o<s.length;o++){const l=s[o];i&&i.enabled&&i.language&&i.language===l.language&&l.kind in e?l.kind===i.kind?a=l:a||(a=l):i&&!i.enabled?(a=null,r=null,n=null):l.default&&(l.kind==="descriptions"&&!r?r=l:l.kind in e&&!n&&(n=l))}a?a.mode="showing":n?n.mode="showing":r&&(r.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){typeof Q.WebVTT=="function"&&Q.WebVTT.processCues(Q,[],this.el_)}updateDisplay(){const e=this.player_.textTracks(),s=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),s){const a=[];for(let o=0;o<e.length;++o){const l=e[o];l.mode==="showing"&&a.push(l)}this.updateForTrack(a);return}let i=null,r=null,n=e.length;for(;n--;){const a=e[n];a.mode==="showing"&&(a.kind==="descriptions"?i=a:r=a)}r?(this.getAttribute("aria-live")!=="off"&&this.setAttribute("aria-live","off"),this.updateForTrack(r)):i&&(this.getAttribute("aria-live")!=="assertive"&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i))}updateDisplayOverlay(){if(!this.player_.videoHeight()||!Q.CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),s=this.player_.currentHeight(),i=e/s,r=this.player_.videoWidth()/this.player_.videoHeight();let n=0,a=0;Math.abs(i-r)>.1&&(i>r?n=Math.round((e-s*r)/2):a=Math.round((s-e/r)/2)),Rd(this.el_,"insetInline",Ix(n)),Rd(this.el_,"insetBlock",Ix(a))}updateDisplayState(e){const s=this.player_.textTrackSettings.getValues(),i=e.activeCues;let r=i.length;for(;r--;){const n=i[r];if(!n)continue;const a=n.displayState;if(s.color&&(a.firstChild.style.color=s.color),s.textOpacity&&Rd(a.firstChild,"color",b_(s.color||"#fff",s.textOpacity)),s.backgroundColor&&(a.firstChild.style.backgroundColor=s.backgroundColor),s.backgroundOpacity&&Rd(a.firstChild,"backgroundColor",b_(s.backgroundColor||"#000",s.backgroundOpacity)),s.windowColor&&(s.windowOpacity?Rd(a,"backgroundColor",b_(s.windowColor,s.windowOpacity)):a.style.backgroundColor=s.windowColor),s.edgeStyle&&(s.edgeStyle==="dropshadow"?a.firstChild.style.textShadow=`2px 2px 3px ${vr}, 2px 2px 4px ${vr}, 2px 2px 5px ${vr}`:s.edgeStyle==="raised"?a.firstChild.style.textShadow=`1px 1px ${vr}, 2px 2px ${vr}, 3px 3px ${vr}`:s.edgeStyle==="depressed"?a.firstChild.style.textShadow=`1px 1px ${Dx}, 0 1px ${Dx}, -1px -1px ${vr}, 0 -1px ${vr}`:s.edgeStyle==="uniform"&&(a.firstChild.style.textShadow=`0 0 4px ${vr}, 0 0 4px ${vr}, 0 0 4px ${vr}, 0 0 4px ${vr}`)),s.fontPercent&&s.fontPercent!==1){const o=Q.parseFloat(a.style.fontSize);a.style.fontSize=o*s.fontPercent+"px",a.style.height="auto",a.style.top="auto"}s.fontFamily&&s.fontFamily!=="default"&&(s.fontFamily==="small-caps"?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=oj[s.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),typeof Q.WebVTT!="function"||e.every(i=>!i.activeCues))return;const s=[];for(let i=0;i<e.length;++i){const r=e[i];for(let n=0;n<r.activeCues.length;++n)s.push(r.activeCues[n])}Q.WebVTT.processCues(Q,s,this.el_);for(let i=0;i<e.length;++i){const r=e[i];for(let n=0;n<r.activeCues.length;++n){const a=r.activeCues[n].displayState;vl(a,"vjs-text-track-cue","vjs-text-track-cue-"+(r.language?r.language:i)),r.language&&Ku(a,"lang",r.language)}this.player_.textTrackSettings&&this.updateDisplayState(r)}}}Te.registerComponent("TextTrackDisplay",lj);class uj extends Te{createEl(){const e=this.player_.isAudio(),s=this.localize(e?"Audio Player":"
224Video Player"),i=Tt("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[s])}),r=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}}Te.registerComponent("LoadingSpinner",uj);class dr extends Lg{createEl(e,s={},i={}){e="button",s=Object.assign({className:this.buildCSSClass()},s),i=Object.assign({type:"button"},i);const r=Tt(e,s,i);return this.player_.options_.experimentalSvgIcons||r.appendChild(Tt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}addChild(e,s={}){const i=this.constructor.name;return At.warn(`Adding an actionable (user controllable) child to a Button (${i}) is not supported; use a ClickableComponent instead.`),Te.prototype.addChild.call(this,e,s)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){if(ut.isEventKey(e,"Space")||ut.isEventKey(e,"Enter")){e.stopPropagation();return}super.handleKeyDown(e)}}Te.registerComponent("Button",dr);class GP extends dr{constructor(e,s){super(e,s),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",i=>this.handleMouseDown(i))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){const s=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e){xn(s),this.player_.tech(!0)&&this.player_.tech(!0).focus();return}const i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(!r){this.player_.tech(!0).focus();return}const n=()=>r.focus();yh(s)?s.then(n,()=>{}):this.setTimeout(n,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}GP.prototype.controlText_="Play Video";Te.registerComponent("BigPlayButton",GP);class cj extends dr{constructor(e,s){super(e,s),this.setIcon("cancel"),this.controlText(s&&s.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){ut.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}Te.registerComponent("CloseButton",cj);class WP extends dr{constructor(e,s={}){super(e,s),s.replay=s.replay===void 0||s.replay,this.setIcon("play"),this.on(e,"play",i=>this.handlePlay(i)),this.on(e,"pause",i=>this.handlePause(i)),s.replay&&this.on(e,"ended",i=>this.handleEnded(i))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?xn(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",s=>this.handleSeeked(s))}}WP.prototype.controlText_="Play";Te.registerComponent("PlayToggle",WP);class Tc extends Te{constructor(e,s){super(e,s),this.on(e,["timeupdate","ended","seeking"],i=>this.update(i)),this.updateTextNode_()}createEl(){const e=this.buildCSSClass(),s=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),i=Tt("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)} `},{role:"presentation"});return s.appendChild(i),this.contentEl_=Tt("span",{className:`${e}-display`},{role:"presentation"}),s.appendChild(this.contentEl_),s}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){!this.player_.options_.enableSmoothSeeking&&e.type==="seeking"||this.updateContent(e)}updateTextNode_(e=0){e=kl(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let s=this.textNode_;s&&this.contentEl_.firstChild!==s&&(s=null,At.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=Oe.createTextNode(this.formattedTime_),this.textNode_&&(s?this.contentEl_.replaceChild(this.textNode_,s):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}}Tc.prototype.labelText_="Time";Tc.prototype.controlText_="Time";Te.registerComponent("TimeDisplay",Tc);class L1 extends Tc{buildCSSClass(){return"vjs-current-time"}updateContent(e){let s;this.player_.ended()?s=this.player_.duration():s=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(s)}}L1.prototype.labelText_="Current Time";L1.prototype.controlText_="Current Time";Te.registerComponent("CurrentTimeDisplay",L1);class O1 extends Tc{constructor(e,s){super(e,s);const i=r=>this.updateContent(r);
vendor: 7,286 bytes, line 224
224this.on(e,"durationchange",i),this.on(e,"loadstart",i),this.on(e,"loadedmetadata",i)}buildCSSClass(){return"vjs-duration"}updateContent(e){const s=this.player_.duration();this.updateTextNode_(s)}}O1.prototype.labelText_="Duration";O1.prototype.controlText_="Duration";Te.registerComponent("DurationDisplay",O1);class dj extends Te{createEl(){const e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),s=super.createEl("div"),i=super.createEl("span",{textContent:"/"});return s.appendChild(i),e.appendChild(s),e}}Te.registerComponent("TimeDivider",dj);class N1 extends Tc{constructor(e,s){super(e,s),this.on(e,"durationchange",i=>this.updateContent(i))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const e=super.createEl();return this.options_.displayNegative!==!1&&e.insertBefore(Tt("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if(typeof this.player_.duration()!="number")return;let s;this.player_.ended()?s=0:this.player_.remainingTimeDisplay?s=this.player_.remainingTimeDisplay():s=this.player_.remainingTime(),this.updateTextNode_(s)}}N1.prototype.labelText_="Remaining Time";N1.prototype.controlText_="Remaining Time";Te.registerComponent("RemainingTimeDisplay",N1);class hj extends Te{constructor(e,s){super(e,s),this.updateShowing(),this.on(this.player(),"durationchange",i=>this.updateShowing(i))}createEl(){const e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Tt("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Tt("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")} `})),this.contentEl_.appendChild(Oe.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}}Te.registerComponent("LiveDisplay",hj);class XP extends dr{constructor(e,s){super(e,s),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=i=>this.updateLiveEdgeStatus(i),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=Tt("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}XP.prototype.controlText_="Seek to live, currently playing live";Te.registerComponent("SeekToLive",XP);function vf(t,e,s){return t=Number(t),Math.min(s,Math.max(e,isNaN(t)?e:t))}var fj=Object.freeze({__proto__:null,clamp:vf});class R1 extends Te{constructor(e,s){super(e,s),this.handleMouseDown_=i=>this.handleMouseDown(i),this.handleMouseUp_=i=>this.handleMouseUp(i),this.handleKeyDown_=i=>this.handleKeyDown(i),this.handleClick_=i=>this.handleClick(i),this.handleMouseMove_=i=>this.handleMouseMove(i),this.update_=i=>this.update(i),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;const e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,s={},i={}){return s.className=s.className+" vjs-slider",s=Object.assign({tabIndex:0},s),i=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},i),super.createEl(e,s,i)}handleMouseDown(e){const s=this.bar.el_.ownerDocument;e.type==="mousedown"&&e.preventDefault(),e.type==="touchstart"&&!$n&&e.preventDefault(),TP(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(s,"mousemove",this.handleMouseMove_),this.on(s,"mouseup",this.handleMouseUp_),this.on(s,"touchmove",this.handleMouseMove_),this.on(s,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){const s=this.bar.el_.ownerDocument;SP(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(s,"mousemove",this.handleMouseMove_),this.off(s,"mouseup",this.handleMouseUp_),this.off(s,"touchmove",this.handleMouseMove_),this.off(s,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",()=>{const s=this.vertical()?"height":"width";this.bar.el().style[s]=(e*100).toFixed(2)+"%"})),e}getProgress(){return Number(vf(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const s=wg(this.el_,e);return this.vertical()?s.y:s.x}handleKeyDown(e){ut.isEventKey(e,"Left")||ut.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):ut.isEventKey(e,"Right")||ut.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(e===void 0)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}Te.registerComponent("Slider",R1);const T_=(t,e)=>vf(t/e*100,0,100).toFixed(2)+"%";class pj extends Te{constructor(e,s){super(e,s),this.partEls_=[],this.on(e,"progress",i=>this.update(i))}createEl(){const e=super.createEl("div",{className:"vjs-load-progress"}),s=Tt("span",{className:"vjs-control-text"}),i=Tt("span",{textContent:this.localize("Loaded")}),r=Oe.createTextNode(": ");return this.percentageEl_=Tt("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(s),s.appendChild(i),s.appendChild(r),s.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{const s=this.player_.liveTracker,i=this.player_.buffered(),r=s&&s.isLive
224()?s.seekableEnd():this.player_.duration(),n=this.player_.bufferedEnd(),a=this.partEls_,o=T_(n,r);this.percent_!==o&&(this.el_.style.width=o,Lo(this.percentageEl_,o),this.percent_=o);for(let l=0;l<i.length;l++){const c=i.start(l),d=i.end(l);let p=a[l];p||(p=this.el_.appendChild(Tt()),a[l]=p),!(p.dataset.start===c&&p.dataset.end===d)&&(p.dataset.start=c,p.dataset.end=d,p.style.left=T_(c,n),p.style.width=T_(d-c,n))}for(let l=a.length;l>i.length;l--)this.el_.removeChild(a[l-1]);a.length=i.length})}}Te.registerComponent("LoadProgressBar",pj);class mj extends Te{constructor(e,s){super(e,s),this.update=jn(Qt(this,this.update),Ir)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,s,i){const r=Wh(this.el_),n=Yu(this.player_.el()),a=e.width*s;if(!n||!r)return;const o=e.left-n.left+a,l=e.width-a+(n.right-e.right);let c=r.width/2;o<c?c+=c-o:l<c&&(c=l),c<0?c=0:c>r.width&&(c=r.width),c=Math.round(c),this.el_.style.right=`-${c}px`,this.write(i)}write(e){Lo(this.el_,e)}updateTime(e,s,i,r){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let n;const a=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const o=this.player_.liveTracker.liveWindow(),l=o-s*o;n=(l<1?"":"-")+kl(l,o)}else n=kl(i,a);this.update(e,s,n),r&&r()})}}Te.registerComponent("TimeTooltip",mj);class M1 extends Te{constructor(e,s){super(e,s),this.setIcon("circle"),this.update=jn(Qt(this,this.update),Ir)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,s){const i=this.getChild("timeTooltip");if(!i)return;const r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,s,r)}}M1.prototype.options_={children:[]};!Pi&&!Un&&M1.prototype.options_.children.push("timeTooltip");Te.registerComponent("PlayProgressBar",M1);class KP extends Te{constructor(e,s){super(e,s),this.update=jn(Qt(this,this.update),Ir)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,s){const i=s*this.player_.duration();this.getChild("timeTooltip").updateTime(e,s,i,()=>{this.el_.style.left=`${e.width*s}px`})}}KP.prototype.options_={children:["timeTooltip"]};Te.registerComponent("MouseTimeDisplay",KP);const Xf=5,Px=12;class F1 extends R1{constructor(e,s){super(e,s),this.setEventHandlers_()}setEventHandlers_(){this.update_=Qt(this,this.update),this.update=jn(this.update_,Ir),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in Oe&&"visibilityState"in Oe&&this.on(Oe,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){Oe.visibilityState==="hidden"?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(!this.player_.ended()&&!this.player_.paused()&&this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,Ir))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&e.type!=="ended"||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if(Oe.visibilityState==="hidden")return;const s=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{const i=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),r=this.player_.liveTracker;let n=this.player_.duration();r&&r.isLive()&&(n=this.player_.liveTracker.liveCurrentTime()),this.percent_!==s&&(this.el_.setAttribute("aria-valuenow",(s*100).toFixed(2)),this.percent_=s),(this.currentTime_!==i||this.duration_!==n)&&(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[kl(i,n),kl(n,n)],"{1} of {2}")),this.currentTime_=i,this.duration_=n),this.bar&&this.bar.update(Yu(this.el()),this.getProgress())}),s}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){const e=this.getCurrentTime_();let s;const i=this.player_.liveTracker;
224return i&&i.isLive()?(s=(e-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(s=1)):s=e/this.player_.duration(),s}handleMouseDown(e){Xh(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,s=!1){if(!Xh(e)||isNaN(this.player_.duration()))return;!s&&!this.player_.scrubbing()&&this.player_.scrubbing(!0);let i;const r=this.calculateDistance(e),n=this.player_.liveTracker;if(!n||!n.isLive())i=r*this.player_.duration(),i===this.player_.duration()&&(i=i-.1);else{if(r>=.99){n.seekToLiveEdge();return}const a=n.seekableStart(),o=n.liveCurrentTime();if(i=a+r*n.liveWindow(),i>=o&&(i=o),i<=a&&(i=a+.1),i===1/0)return}this.userSeek_(i),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();const e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();const e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?xn(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+Xf)}stepBack(){this.userSeek_(this.player_.currentTime()-Xf)}handleAction(e){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){const s=this.player_.liveTracker;if(ut.isEventKey(e,"Space")||ut.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(ut.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(ut.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),s&&s.isLive()?this.userSeek_(s.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(ut(e))){e.preventDefault(),e.stopPropagation();const i=(ut.codes[ut(e)]-ut.codes[0])*10/100;s&&s.isLive()?this.userSeek_(s.seekableStart()+s.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else ut.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-Xf*Px)):ut.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+Xf*Px)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in Oe&&"visibilityState"in Oe&&this.off(Oe,"visibilitychange",this.toggleVisibility_),super.dispose()}}F1.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"};!Pi&&!Un&&F1.prototype.options_.children.splice(1,0,"mouseTimeDisplay");Te.registerComponent("SeekBar",F1);class YP extends Te{constructor(e,s){super(e,s),this.handleMouseMove=jn(Qt(this,this.handleMouseMove),Ir),this.throttledHandleMouseSeek=jn(Qt(this,this.handleMouseSeek),Ir),this.handleMouseUpHandler_=i=>this.handleMouseUp(i),this.handleMouseDownHandler_=i=>this.handleMouseDown(i),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){const s=this.getChild("seekBar");if(!s)return;const i=s.getChild("playProgressBar"),r=s.getChild("mouseTimeDisplay");if(!i&&!r)return;const n=s.el(),a=Wh(n);let o=wg(n,e).x;o=vf(o,0,1),r&&r.update(a,o),i&&i.update(a,s.getProgress())}handleMouseSeek(e){const s=this.getChild("seekBar");s&&s.handleMouseMove(e)}enabled(){return this.enabled_}
224disable(){if(this.children().forEach(e=>e.disable&&e.disable()),!!this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){const e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&xn(this.player_.play())}}enable(){this.children().forEach(e=>e.enable&&e.enable()),!this.enabled()&&(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){const e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}handleMouseDown(e){const s=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(s,"mousemove",this.throttledHandleMouseSeek),this.on(s,"touchmove",this.throttledHandleMouseSeek),this.on(s,"mouseup",this.handleMouseUpHandler_),this.on(s,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const s=this.getChild("seekBar");s&&s.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}YP.prototype.options_={children:["seekBar"]};Te.registerComponent("ProgressControl",YP);class QP extends dr{constructor(e,s){super(e,s),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],i=>this.handlePictureInPictureChange(i)),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],i=>this.handlePictureInPictureEnabledChange(i)),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){if(!(this.player_.currentType().substring(0,5)==="audio"||this.player_.audioPosterMode()||this.player_.audioOnlyMode())){this.show();return}this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()}handlePictureInPictureEnabledChange(){Oe.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===!1||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in Q?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){typeof Oe.exitPictureInPicture=="function"&&super.show()}}QP.prototype.controlText_="Picture-in-Picture";Te.registerComponent("PictureInPictureToggle",QP);class JP extends dr{constructor(e,s){super(e,s),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",i=>this.handleFullscreenChange(i)),Oe[e.fsApi_.fullscreenEnabled]===!1&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}JP.prototype.controlText_="Fullscreen";Te.registerComponent("FullscreenToggle",JP);const gj=function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})};class yj extends Te{createEl(){const e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}}
vendor: 4,238 bytes, line 224
224Te.registerComponent("VolumeLevel",yj);class _j extends Te{constructor(e,s){super(e,s),this.update=jn(Qt(this,this.update),Ir)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,s,i,r){if(!i){const n=Yu(this.el_),a=Yu(this.player_.el()),o=e.width*s;if(!a||!n)return;const l=e.left-a.left+o,c=e.width-o+(a.right-e.right);let d=n.width/2;l<d?d+=d-l:c<d&&(d=c),d<0?d=0:d>n.width&&(d=n.width),this.el_.style.right=`-${d}px`}this.write(`${r}%`)}write(e){Lo(this.el_,e)}updateVolume(e,s,i,r,n){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(e,s,i,r.toFixed(0)),n&&n()})}}Te.registerComponent("VolumeLevelTooltip",_j);class ZP extends Te{constructor(e,s){super(e,s),this.update=jn(Qt(this,this.update),Ir)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,s,i){const r=100*s;this.getChild("volumeLevelTooltip").updateVolume(e,s,i,r,()=>{i?this.el_.style.bottom=`${e.height*s}px`:this.el_.style.left=`${e.width*s}px`})}}ZP.prototype.options_={children:["volumeLevelTooltip"]};Te.registerComponent("MouseVolumeLevelDisplay",ZP);class Og extends R1{constructor(e,s){super(e,s),this.on("slideractive",i=>this.updateLastVolume_(i)),this.on(e,"volumechange",i=>this.updateARIAAttributes(i)),e.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){Xh(e)&&super.handleMouseDown(e)}handleMouseMove(e){const s=this.getChild("mouseVolumeLevelDisplay");if(s){const i=this.el(),r=Yu(i),n=this.vertical();let a=wg(i,e);a=n?a.y:a.x,a=vf(a,0,1),s.update(r,a,n)}Xh(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){const s=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",s),this.el_.setAttribute("aria-valuetext",s+"%")}volumeAsPercentage_(){return Math.round(this.player_.volume()*100)}updateLastVolume_(){const e=this.player_.volume();this.one("sliderinactive",()=>{this.player_.volume()===0&&this.player_.lastVolume_(e)})}}Og.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};!Pi&&!Un&&Og.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay");Og.prototype.playerEvent="volumechange";Te.registerComponent("VolumeBar",Og);class eL extends Te{constructor(e,s={}){s.vertical=s.vertical||!1,(typeof s.volumeBar>"u"||Xu(s.volumeBar))&&(s.volumeBar=s.volumeBar||{},s.volumeBar.vertical=s.vertical),super(e,s),gj(this,e),this.throttledHandleMouseMove=jn(Qt(this,this.handleMouseMove),Ir),this.handleMouseUpHandler_=i=>this.handleMouseUp(i),this.on("mousedown",i=>this.handleMouseDown(i)),this.on("touchstart",i=>this.handleMouseDown(i)),this.on("mousemove",i=>this.handleMouseMove(i)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){const s=this.el_.ownerDocument;this.on(s,"mousemove",this.throttledHandleMouseMove),this.on(s,"touchmove",this.throttledHandleMouseMove),this.on(s,"mouseup",this.handleMouseUpHandler_),this.on(s,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const s=this.el_.ownerDocument;this.off(s,"mousemove",this.throttledHandleMouseMove),this.off(s,"touchmove",this.throttledHandleMouseMove),this.off(s,"mouseup",this.handleMouseUpHandler_),this.off(s,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}eL.prototype.options_={children:["volumeBar"]};
224Te.registerComponent("VolumeControl",eL);const vj=function(t,e){e.tech_&&!e.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})};class tL extends dr{constructor(e,s){super(e,s),vj(this,e),this.on(e,["loadstart","volumechange"],i=>this.update(i))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){const s=this.player_.volume(),i=this.player_.lastVolume_();if(s===0){const r=i<.1?.1:i;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const e=this.player_.volume();let s=3;this.setIcon("volume-high"),Pi&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),e===0||this.player_.muted()?(this.setIcon("volume-mute"),s=0):e<.33?(this.setIcon("volume-low"),s=1):e<.67&&(this.setIcon("volume-medium"),s=2),xg(this.el_,[0,1,2,3].reduce((i,r)=>i+`${r?" ":""}vjs-vol-${r}`,"")),vl(this.el_,`vjs-vol-${s}`)}updateControlText_(){const s=this.player_.muted()||this.player_.volume()===0?"Unmute":"Mute";this.controlText()!==s&&this.controlText(s)}}tL.prototype.controlText_="Mute";Te.registerComponent("MuteToggle",tL);class sL extends Te{constructor(e,s={}){typeof s.inline<"u"?s.inline=s.inline:s.inline=!0,(typeof s.volumeControl>"u"||Xu(s.volumeControl))&&(s.volumeControl=s.volumeControl||{},s.volumeControl.vertical=!s.inline),super(e,s),this.handleKeyPressHandler_=i=>this.handleKeyPress(i),this.on(e,["loadstart"],i=>this.volumePanelState_(i)),this.on(this.muteToggle,"keyup",i=>this.handleKeyPress(i)),this.on(this.volumeControl,"keyup",i=>this.handleVolumeControlKeyUp(i)),this.on("keydown",i=>this.handleKeyPress(i)),this.on("mouseover",i=>this.handleMouseOver(i)),this.on("mouseout",i=>this.handleMouseOut(i)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){ut.isEventKey(e,"Esc")&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),fr(Oe,"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),ni(Oe,"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){ut.isEventKey(e,"Esc")&&this.handleMouseOut()}}sL.prototype.options_={children:["muteToggle","volumeControl"]};Te.registerComponent("VolumePanel",sL);class iL extends dr{constructor(e,s){super(e,s),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime])),this.show()):this.hide()}getSkipForwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;const s=this.player_.currentTime(),i=this.player_.liveTracker,r=i&&i.isLive()?i.seekableEnd():this.player_.duration();let n;s+this.skipTime<=r?n=s+this.skipTime:n=r,this.player_.currentTime(n)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}iL.prototype.controlText_="Skip Forward";Te.registerComponent("SkipForward",iL);class rL extends dr{constructor(e,s){super(e,s),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime])),this.show()):this.hide()}getSkipBackwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}
vendor: 6,086 bytes, line 224
224buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){const s=this.player_.currentTime(),i=this.player_.liveTracker,r=i&&i.isLive()&&i.seekableStart();let n;r&&s-this.skipTime<=r?n=r:s>=this.skipTime?n=s-this.skipTime:n=0,this.player_.currentTime(n)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}rL.prototype.controlText_="Skip Backward";Te.registerComponent("SkipBackward",rL);class nL extends Te{constructor(e,s){super(e,s),s&&(this.menuButton_=s.menuButton),this.focusedChild_=-1,this.on("keydown",i=>this.handleKeyDown(i)),this.boundHandleBlur_=i=>this.handleBlur(i),this.boundHandleTapClick_=i=>this.handleTapClick(i)}addEventListenerForItem(e){e instanceof Te&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof Te&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){typeof e=="string"&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){const s=this.addChild(e);s&&this.addEventListenerForItem(s)}createEl(){const e=this.options_.contentElType||"ul";this.contentEl_=Tt(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const s=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return s.appendChild(this.contentEl_),fr(s,"click",function(i){i.preventDefault(),i.stopImmediatePropagation()}),s}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){const s=e.relatedTarget||Oe.activeElement;if(!this.children().some(i=>i.el()===s)){const i=this.menuButton_;i&&i.buttonPressed_&&s!==i.el().firstChild&&i.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();const s=this.children();if(!Array.isArray(s))return;const i=s.filter(r=>r.el()===e.target)[0];if(!i)return;i.name()!=="CaptionSettingsMenuItem"&&this.menuButton_.focus()}}handleKeyDown(e){ut.isEventKey(e,"Left")||ut.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(ut.isEventKey(e,"Right")||ut.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){const s=this.children().slice();s.length&&s[0].hasClass("vjs-menu-title")&&s.shift(),s.length>0&&(e<0?e=0:e>=s.length&&(e=s.length-1),this.focusedChild_=e,s[e].el_.focus())}}Te.registerComponent("Menu",nL);class B1 extends Te{constructor(e,s={}){super(e,s),this.menuButton_=new dr(e,s),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const i=dr.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+i,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const r=n=>this.handleClick(n);this.handleMenuKeyUp_=n=>this.handleMenuKeyUp(n),this.on(this.menuButton_,"tap",r),this.on(this.menuButton_,"click",r),this.on(this.menuButton_,"keydown",n=>this.handleKeyDown(n)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),fr(Oe,"keyup",this.handleMenuKeyUp_)}),this.on("mouseleave",n=>this.handleMouseLeave(n)),this.on("keydown",n=>this.handleSubmenuKeyDown(n))}update(){const e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const e=new nL(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const s=Tt("li",{className:"vjs-menu-title",textContent:ms(this.options_.title),tabIndex:-1}),i=new Te(this.player_,{el:s});e.addItem(i)}if(this.items=this.createItems(),this.items)for(let s=0;s<this.items.length;s++)e.addItem(this.items[s]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";this.options_.inline===!0?e+="-inline":e+="-popup";const s=dr.prototype.buildCSSClass();return`vjs-menu-button ${e} ${s} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return this.options_.inline===!0?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,s=this.menuButton_.el()){return this.menuButton_.controlText(e,s)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),ni(Oe,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){ut.isEventKey(e,"Esc")||ut.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),ut.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(ut.isEventKey(e,"Up")||ut.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))}handleMenuKeyUp(e){(ut.isEventKey(e,"Esc")||ut.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){(ut.isEventKey(e,"Esc")||ut.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),ut.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Pi&&gP())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","fal
224se"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}Te.registerComponent("MenuButton",B1);class U1 extends B1{constructor(e,s){const i=s.tracks;if(super(e,s),this.items.length<=1&&this.hide(),!i)return;const r=Qt(this,this.update);i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),i.addEventListener("labelchange",r),this.player_.on("ready",r),this.player_.on("dispose",function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r),i.removeEventListener("labelchange",r)})}}Te.registerComponent("TrackButton",U1);const bj=["Tab","Esc","Up","Down","Right","Left"];class bf extends Lg{constructor(e,s){super(e,s),this.selectable=s.selectable,this.isSelected_=s.selected||!1,this.multiSelectable=s.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(e,s,i){this.nonIconControl=!0;const r=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},s),i),n=Tt("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?r.appendChild(n):r.replaceChild(n,r.querySelector(".vjs-icon-placeholder")),r}handleKeyDown(e){bj.some(s=>ut.isEventKey(e,s))||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}Te.registerComponent("MenuItem",bf);class Tf extends bf{constructor(e,s){const i=s.track,r=e.textTracks();s.label=i.label||i.language||"Unknown",s.selected=i.mode==="showing",super(e,s),this.track=i,this.kinds=(s.kinds||[s.kind||this.track.kind]).filter(Boolean);const n=(...o)=>{this.handleTracksChange.apply(this,o)},a=(...o)=>{this.handleSelectedLanguageChange.apply(this,o)};if(e.on(["loadstart","texttrackchange"],n),r.addEventListener("change",n),r.addEventListener("selectedlanguagechange",a),this.on("dispose",function(){e.off(["loadstart","texttrackchange"],n),r.removeEventListener("change",n),r.removeEventListener("selectedlanguagechange",a)}),r.onchange===void 0){let o;this.on(["tap","click"],function(){if(typeof Q.Event!="object")try{o=new Q.Event("change")}catch{}o||(o=Oe.createEvent("Event"),o.initEvent("change",!0,!0)),r.dispatchEvent(o)})}this.handleTracksChange()}handleClick(e){const s=this.track,i=this.player_.textTracks();if(super.handleClick(e),!!i)for(let r=0;r<i.length;r++){const n=i[r];this.kinds.indexOf(n.kind)!==-1&&(n===s?n.mode!=="showing"&&(n.mode="showing"):n.mode!=="disabled"&&(n.mode="disabled"))}}handleTracksChange(e){const s=this.track.mode==="showing";s!==this.isSelected_&&this.selected(s)}handleSelectedLanguageChange(e){if(this.track.mode==="showing"){const s=this.player_.cache_.selectedLanguage;if(s&&s.enabled&&s.language===this.track.language&&s.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}Te.registerComponent("TextTrackMenuItem",Tf);class aL extends Tf{constructor(e,s){s.track={player:e,kind:s.kind,kinds:s.kinds,default:!1,mode:"disabled"},s.kinds||(s.kinds=[s.kind]),s.label?s.track.label=s.label:s.track.label=s.kinds.join(" and ")+" off",s.selectable=!0,s.multiSelectable=!1,super(e,s)}handleTracksChange(e){const s=this.player().textTracks();let i=!0;for(let r=0,n=s.length;r<n;r++){const a=s[r];if(this.options_.kinds.indexOf(a.kind)>-1&&a.mode==="showing"){i=!1;break}}i!==this.isSelected_&&this.selected(i)}handleSelectedLanguageChange(e){const s=this.player().textTracks();let i=!0;for(let r=0,n=s.length;r<n;r++){const a=s[r];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&a.mode==="showing"){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}Te.registerComponent("OffTextTrackMenuItem",aL);class Sc extends U1{constructor(e,s={}){s.tracks=e.textTracks(),super(e,s)}createItems(e=[],s=Tf){let i;this.label_&&(i=`${this.label_} off`),e.push(new aL(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;const r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let n=0;n<r.length;n++){const a=r[n];if(this.kinds_.indexOf(a.kind)>-1){const o=new s(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});o.addClass(`vjs-${a.kind}-menu-item`),e.push(o)}}return e}}Te.registerComponent("TextTrackButton",Sc);class oL extends bf{constructor(e,s){const i=s.track,r=s.cue,n=e.currentTime();s.selectable=!0,s.multiSelectable=!1,s.label=r.text,s.selected=r.startTime<=n&&n<r.endTime,super(e,s),this.track=i,this.cue=r}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}Te.registerComponent("ChaptersTrackMenuItem",oL);class $1 extends Sc{constructor(e,s,i){super(e,s,i),this.setIcon("chapters"),this.selectCurrentItem_=()=>
vendor: 9,811 bytes, line 224
224{this.items.forEach(r=>{r.selected(this.track_.activeCues[0]===r.cue)})}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&e.track.kind!=="chapters")return;const s=this.findChaptersTrack();s!==this.track_?(this.setTrack(s),super.update()):(!this.items||s&&s.cues&&s.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const s=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);s&&s.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";const s=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);s&&s.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const e=this.player_.textTracks()||[];for(let s=e.length-1;s>=0;s--){const i=e[s];if(i.kind===this.kind_)return i}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(ms(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const e=[];if(!this.track_)return e;const s=this.track_.cues;if(!s)return e;for(let i=0,r=s.length;i<r;i++){const n=s[i],a=new oL(this.player_,{track:this.track_,cue:n});e.push(a)}return e}}$1.prototype.kind_="chapters";$1.prototype.controlText_="Chapters";Te.registerComponent("ChaptersButton",$1);class j1 extends Sc{constructor(e,s,i){super(e,s,i),this.setIcon("audio-description");const r=e.textTracks(),n=Qt(this,this.handleTracksChange);r.addEventListener("change",n),this.on("dispose",function(){r.removeEventListener("change",n)})}handleTracksChange(e){const s=this.player().textTracks();let i=!1;for(let r=0,n=s.length;r<n;r++){const a=s[r];if(a.kind!==this.kind_&&a.mode==="showing"){i=!0;break}}i?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}j1.prototype.kind_="descriptions";j1.prototype.controlText_="Descriptions";Te.registerComponent("DescriptionsButton",j1);class H1 extends Sc{constructor(e,s,i){super(e,s,i),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}H1.prototype.kind_="subtitles";H1.prototype.controlText_="Subtitles";Te.registerComponent("SubtitlesButton",H1);class q1 extends Tf{constructor(e,s){s.track={player:e,kind:s.kind,label:s.kind+" settings",selectable:!1,default:!1,mode:"disabled"},s.selectable=!1,s.name="CaptionSettingsMenuItem",super(e,s),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+s.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}Te.registerComponent("CaptionSettingsMenuItem",q1);class V1 extends Sc{constructor(e,s,i){super(e,s,i),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){const e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new q1(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}V1.prototype.kind_="captions";V1.prototype.controlText_="Captions";Te.registerComponent("CaptionsButton",V1);class lL extends Tf{createEl(e,s,i){const r=super.createEl(e,s,i),n=r.querySelector(".vjs-menu-item-text");return this.options_.track.kind==="captions"&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",r):n.appendChild(Tt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),n.appendChild(Tt("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),r}}Te.registerComponent("SubsCapsMenuItem",lL);class z1 extends Sc{constructor(e,s={}){super(e,s),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(ms(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new q1(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,lL),e}}z1.prototype.kinds_=["captions","subtitles"];z1.prototype.controlText_="Subtitles";Te.registerComponent("SubsCapsButton",z1);class uL extends bf{constructor(e,s){const i=s.track,r=e.audioTracks();s.label=i.label||i.language||"Unknown",s.selected=i.enabled,super(e,s),this.track=i,this.addClass(`vjs-${i.kind}-menu-item`);const n=(...a)=>{this.handleTracksChange.apply(this,a)};r.addEventListener("change",n),this.on("dispose",()=>{r.removeEventListener("change",n)})}createEl(e,s,i){const r=super.createEl(e,s,i),n=r.querySelector(".vjs-menu-item-text");return["main-desc","description"].indexOf(this.options_.track.kind)>=0&&(n.appendChild(Tt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),n.appendChild(Tt("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const s=this.player_.audioTracks();for(let i=0;i<s.length;i++){const r=s[i];r!==this.track&&(r.enabled=r===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}Te.registerComponent("AudioTrackMenuItem",uL);class cL extends U1{constructor(e,s={}){s.tracks=e.audioTracks(),super(e,s),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;const s=this.player_.audioTracks();for(let i=0;i<s.length;i++){const r=s[i];e.push(new uL(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return e}}cL.prototype.controlText_="Audio Track";Te.registerComponent("AudioTrackButton",cL);class G1 extends bf{constructor(e,s){const i=s.rate,r=parseFloat(i,10);s.label=i,s.selected=r===e.playbackRate(),s.selectable=!0,s.multiSelectable=!1,super(e,s),this.label=i,this.rate=r,this.on(e,"ratechange",n=>this.update(n))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}G1.prototype.contentElType="button";Te.registerComponent("PlaybackRateMenuItem",G1);class dL extends B1{constructor(e,s){super(e,s),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",i=>this.updateVisibility(i)),this.on(e,"ratechange",i=>this.updateLabel(i)),this.on(e,"playbackrateschange",i=>this.handlePlaybackRateschange(i))}createEl(){const e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=Tt("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){const e=this.playbackRates(),s=[];for(let i=e.length-1;i>=0;i--)s.push(new G1(this.player(),{rate:e[i]+"x"}));return s}handlePlaybackRateschange(e){this.update()}playbackRates(){const e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}dL.prototype.controlText_="Playback Rate";Te.registerComponent("PlaybackRateMenuButton",dL);class hL extends Te{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",s={},i={}){return s.className||(s.className=this.buildCSSClass()),super.createEl(e,s,i)}}Te.registerComponent("Spacer",hL);class Tj extends hL{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:" "})}}Te.registerComponent("CustomControlSpacer",Tj);class fL extends Te{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}fL.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]};Te.registerComponent("ControlBar",fL);class pL extends bc{constructor(e,s){super(e,s),this.on(e,"error",i=>{this.close(),this.open(i)})}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){const e=this.player().error();return e?this.localize(e.message):""}}pL.prototype.options_=Object.assign({}
224,bc.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0});Te.registerComponent("ErrorDisplay",pL);const S_="vjs-text-track-settings",Lx=["#000","Black"],Ox=["#00F","Blue"],Nx=["#0FF","Cyan"],Rx=["#0F0","Green"],Mx=["#F0F","Magenta"],Fx=["#F00","Red"],Bx=["#FFF","White"],Ux=["#FF0","Yellow"],E_=["1","Opaque"],x_=["0.5","Semi-Transparent"],$x=["0","Transparent"],ol={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Lx,Bx,Fx,Rx,Ox,Ux,Mx,Nx]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[E_,x_,$x]},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Bx,Lx,Fx,Rx,Ox,Ux,Mx,Nx]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:t=>t==="1.00"?null:Number(t)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[E_,x_]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[$x,x_,E_]}};ol.windowColor.options=ol.backgroundColor.options;function mL(t,e){if(e&&(t=e(t)),t&&t!=="none")return t}function Sj(t,e){const s=t.options[t.options.selectedIndex].value;return mL(s,e)}function Ej(t,e,s){if(e){for(let i=0;i<t.options.length;i++)if(mL(t.options[i].value,s)===e){t.selectedIndex=i;break}}}class xj extends bc{constructor(e,s){s.temporary=!1,super(e,s),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.endDialog=Tt("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),s.persistTextTrackSettings===void 0&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.on(this.$(".vjs-done-button"),"click",()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),"click",()=>{this.setDefaults(),this.updateDisplay()}),gu(ol,i=>{this.on(this.$(i.selector),"change",this.updateDisplay)}),this.options_.persistTextTrackSettings&&this.restoreSettings()}dispose(){this.endDialog=null,super.dispose()}createElSelect_(e,s="",i="label"){const r=ol[e],n=r.id.replace("%s",this.id_),a=[s,n].join(" ").trim(),o=`vjs_select_${un()}`;return[`<${i} id="${n}"${i==="label"?` for="${o}" class="vjs-label"`:""}>`,this.localize(r.label),`</${i}>`,`<select aria-labelledby="${a}" id="${o}">`].concat(r.options.map(l=>{const c=n+"-"+l[1].replace(/\W+/g,"");return[`<option id="${c}" value="${l[0]}" `,`aria-labelledby="${a} ${c}">`,this.localize(l[1]),"</option>"].join("")})).concat("</select>").join("")}createElFgColor_(){const e=`captions-text-legend-${this.id_}`;return['<fieldset class="vjs-fg vjs-track-setting">',`<legend id="${e}">`,this.localize("Text"),"</legend>",'<span class="vjs-text-color">',this.createElSelect_("color",e),"</span>",'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")}createElBgColor_(){const e=`captions-background-${this.id_}`;return['<fieldset class="vjs-bg vjs-track-setting">',`<legend id="${e}">
224`,this.localize("Text Background"),"</legend>",'<span class="vjs-bg-color">',this.createElSelect_("backgroundColor",e),"</span>",'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")}createElWinColor_(){const e=`captions-window-${this.id_}`;return['<fieldset class="vjs-window vjs-track-setting">',`<legend id="${e}">`,this.localize("Caption Area Background"),"</legend>",'<span class="vjs-window-color">',this.createElSelect_("windowColor",e),"</span>",'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")}createElColors_(){return Tt("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})}createElFont_(){return Tt("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})}createElControls_(){const e=this.localize("restore all settings to the default values");return Tt("div",{className:"vjs-track-settings-controls",innerHTML:[`<button type="button" class="vjs-default-button" title="${e}">`,this.localize("Reset"),`<span class="vjs-control-text"> ${e}</span>`,"</button>",`<button type="button" class="vjs-done-button">${this.localize("Done")}</button>`].join("")})}content(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return cP(ol,(e,s,i)=>{const r=Sj(this.$(s.selector),s.parser);return r!==void 0&&(e[i]=r),e},{})}setValues(e){gu(ol,(s,i)=>{Ej(this.$(s.selector),e[i],s.parser)})}setDefaults(){gu(ol,e=>{const s=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=s})}restoreSettings(){let e;try{e=JSON.parse(Q.localStorage.getItem(S_))}catch(s){At.warn(s)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?Q.localStorage.setItem(S_,JSON.stringify(e)):Q.localStorage.removeItem(S_)}catch(s){At.warn(s)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}conditionalBlur_(){this.previouslyActiveEl_=null;const e=this.player_.controlBar,s=e&&e.subsCapsButton,i=e&&e.captionsButton;s?s.focus():i&&i.focus()}handleLanguagechange(){this.fill()}}Te.registerComponent("TextTrackSettings",xj);class Cj extends Te{constructor(e,s){let i=s.ResizeObserver||Q.ResizeObserver;s.ResizeObserver===null&&(i=!1);const r=Kt({createEl:!i,reportTouchActivity:!1},s);super(e,r),this.ResizeObserver=s.ResizeObserver||Q.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=LP(()=>{this.resizeHandler()},100,!1,this),i?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const n=this.debouncedHandler_;let a=this.unloadListener_=function(){ni(this,"resize",n),ni(this,"unload",a),a=null};fr(this.el_.contentWindow,"unload",a),fr(this.el_.contentWindow,"resize",n)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){!this.player_||!this.player_.trigger||this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}}Te.registerComponent("ResizeManager",Cj);const wj={trackingThreshold:20,liveTolerance:15};class Aj extends Te{constructor(e,s){const i=Kt(wj,s,{createEl:!1});super(e,i),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=r=>this.handlePlay(r),this.handleFirstTimeupdate_=r=>this.handleFirstTimeupdate(r),this.handleSeeked_=r=>this.handleSeeked(r),this.seekToLiveEdge_=r=>this.seekToLiveEdge(r),this.reset_(),this.on(this.player_,"durationchange",r=>this.handleDurationchange(r)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){const e=this.player_.seekable();if(!e||!e.length)return;const s=Number(Q.performance.now().toFixed(4)),i=this.lastTime_===-1?0:(s-this.lastTime_)/1e3;this.lastTime_=s,this.pastSeekEnd_=this.pastSeekEnd()+i;const r=this.liveCurrentTime(),n=this.player_.currentTime();let a=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-n)>this.options_.liveTolerance;(!this.timeupdateSeen_||r===1/0)&&(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,Ir),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const e=this.player_.seekable(),s=[];let i=e?e.length:0;for(;i--;)s.push(e.end(i));return s.length?s.sort()[s.length-1]:1/0}seekableStart(){const e=this.player_.seekable(),s=[];let i=e?e.length:0;for(;i--;)s.push(e.start(i));return s.length?s.sort()[0]:0}
vendor: 8,525 bytes, lines 224-225
224liveWindow(){const e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const e=this.seekableEnd();return this.lastSeekEnd_!==-1&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return typeof this.trackingInterval_=="number"}seekToLiveEdge(){this.seekedBehindLive_=!1,!this.atLiveEdge()&&(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}}Te.registerComponent("LiveTracker",Aj);class kj extends Te{constructor(e,s){super(e,s),this.on("statechanged",i=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:Tt("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${un()}`}),description:Tt("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${un()}`})},Tt("div",{className:"vjs-title-bar"},{},dP(this.els))}updateDom_(){const e=this.player_.tech_,s=e&&e.el_,i={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(r=>{const n=this.state[r],a=this.els[r],o=i[r];Ag(a),n&&Lo(a,n),s&&(s.removeAttribute(o),n&&s.setAttribute(o,a.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){const e=this.player_.tech_,s=e&&e.el_;s&&(s.removeAttribute("aria-labelledby"),s.removeAttribute("aria-describedby")),super.dispose(),this.els=null}}Te.registerComponent("TitleBar",kj);const gb=t=>{const e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;const s=t.$$("source"),i=[];let r="";if(!s.length)return!1;for(let n=0;n<s.length;n++){const a=s[n].src;a&&i.indexOf(a)===-1&&i.push(a)}return i.length?(i.length===1&&(r=i[0]),t.triggerSourceset(r),!0):!1},Dj=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(t){const e=Oe.createElement(this.nodeName.toLowerCase());e.innerHTML=t;const s=Oe.createDocumentFragment();for(;e.childNodes.length;)s.appendChild(e.childNodes[0]);return this.innerText="",Q.Element.prototype.appendChild.call(this,s),this.innerHTML}}),gL=(t,e)=>{let s={};for(let i=0;i<t.length&&(s=Object.getOwnPropertyDescriptor(t[i],e),!(s&&s.set&&s.get));i++);return s.enumerable=!0,s.configurable=!0,s},Ij=t=>gL([t.el(),Q.HTMLMediaElement.prototype,Q.Element.prototype,Dj],"innerHTML"),jx=function(t){const e=t.el();if(e.resetSourceWatch_)return;const s={},i=Ij(t),r=n=>(...a)=>{const o=n.apply(e,a);return gb(t),o};["append","appendChild","insertAdjacentHTML"].forEach(n=>{e[n]&&(s[n]=e[n],e[n]=r(s[n]))}),Object.defineProperty(e,"innerHTML",Kt(i,{set:r(i.set)})),e.resetSourceWatch_=()=>{e.resetSourceWatch_=null,Object.keys(s).forEach(n=>{e[n]=s[n]}),Object.defineProperty(e,"innerHTML",i)},t.one("sourceset",e.resetSourceWatch_)},Pj=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?HP(Q.Element.prototype.getAttribute.call(this,"src")):""},set(t){return Q.Element.prototype.setAttribute.call(this,"src",t),t}}),Lj=t=>gL([t.el(),Q.HTMLMediaElement.prototype,Pj],"src"),Oj=function(t){if(!t.featuresSourceset)return;const e=t.el();if(e.resetSourceset_)return;const s=Lj(t),i=e.setAttribute,r=e.load;Object.defineProperty(e,"src",Kt(s,{set:n=>{const a=s.set.call(e,n);return t.triggerSourceset(e.src),a}})),e.setAttribute=(n,a)=>{const o=i.call(e,n,a);return/src/i.test(n)&&t.triggerSourceset(e.src),o},e.load=()=>{const n=r.call(e);return gb(t)||(t.triggerSourceset(""),jx(t)),n},e.currentSrc?t.triggerSourceset(e.currentSrc):gb(t)||jx(t),e.resetSourceset_=()=>{e.resetSourceset_=null,e.load=r,e.setAttribute=i,Object.defineProperty(e,"src",s),e.resetSourceWatch_&&e.resetSourceWatch_()}};class je extends ft{constructor(e,s){super(e,s);const i=e.source;let r=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&this.el_.tagName==="VIDEO",i&&(this.el_.currentSrc!==i.src||e.tag&&e.tag.initNetworkState_===3)?this.setSource(i):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const n=this.el_.childNodes;let a=n.length;const o=[];for(;a--;){const l=n[a];l.nodeName.toLowerCase()==="track"&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(l),this.remoteTextTracks().addTrack(l.track),this.textTracks().addTrack(l.track),!r&&!this.el_.hasAttribute("crossorigin")&&Pg(l.src)&&(r=!0)):o.push(l))}for(let l=0;l<o.length;l++)this.el_.removeChild(o[l])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&r&&At.warn(`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
225This may prevent text tracks from loading.`),this.restoreMetadataTracksInIOSNativePlayer_(),(Gh||Sg)&&e.nativeControlsForTouch===!0&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),je.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){Oj(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let s;const i=()=>{s=[];for(let n=0;n<e.length;n++){const a=e[n];a.kind==="metadata"&&s.push({track:a,storedMode:a.mode})}};i(),e.addEventListener("change",i),this.on("dispose",()=>e.removeEventListener("change",i));const r=()=>{for(let n=0;n<s.length;n++){const a=s[n];a.track.mode==="disabled"&&a.track.mode!==a.storedMode&&(a.track.mode=a.storedMode)}e.removeEventListener("change",r)};this.on("webkitbeginfullscreen",()=>{e.removeEventListener("change",i),e.removeEventListener("change",r),e.addEventListener("change",r)}),this.on("webkitendfullscreen",()=>{e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",r)})}overrideNative_(e,s){if(s!==this[`featuresNative${e}Tracks`])return;const i=e.toLowerCase();this[`${i}TracksListeners_`]&&Object.keys(this[`${i}TracksListeners_`]).forEach(r=>{this.el()[`${i}Tracks`].removeEventListener(r,this[`${i}TracksListeners_`][r])}),this[`featuresNative${e}Tracks`]=!s,this[`${i}TracksListeners_`]=null,this.proxyNativeTracksForType_(i)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const s=wr[e],i=this.el()[s.getterName],r=this[s.getterName]();if(!this[`featuresNative${s.capitalName}Tracks`]||!i||!i.addEventListener)return;const n={change:o=>{const l={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(l),e==="text"&&this[Zu.remoteText.getterName]().trigger(l)},addtrack(o){r.addTrack(o.track)},removetrack(o){r.removeTrack(o.track)}},a=function(){const o=[];for(let l=0;l<r.length;l++){let c=!1;for(let d=0;d<i.length;d++)if(i[d]===r[l]){c=!0;break}c||o.push(r[l])}for(;o.length;)r.removeTrack(o.shift())};this[s.getterName+"Listeners_"]=n,Object.keys(n).forEach(o=>{const l=n[o];i.addEventListener(o,l),this.on("dispose",c=>i.removeEventListener(o,l))}),this.on("loadstart",a),this.on("dispose",o=>this.off("loadstart",a))}proxyNativeTracks_(){wr.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(e){const i=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(i,e),je.disposeMediaElement(e),e=i}else{e=Oe.createElement("video");const i=this.options_.tag&&po(this.options_.tag),r=Kt({},i);(!Gh||this.options_.nativeControlsForTouch!==!0)&&delete r.controls,vP(e,Object.assign(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&Ku(e,"preload",this.options_.preload),this.options_.disablePictureInPicture!==void 0&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);const s=["loop","muted","playsinline","autoplay"];for(let i=0;i<s.length;i++){const r=s[i],n=this.options_[r];typeof n<"u"&&(n?Ku(e,r,r):Cg(e,r),e[r]=n)}return e}handleLateInit_(e){if(e.networkState===0||e.networkState===3)return;if(e.readyState===0){let i=!1;const r=function(){i=!0};this.on("loadstart",r);const n=function(){i||this.trigger("loadstart")};this.on("loadedmetadata",n),this.ready(function(){this.off("loadstart",r),this.off("loadedmetadata",n),i||this.trigger("loadstart")});return}const s=["loadstart"];s.push("loadedmetadata"),e.readyState>=2&&s.push("loadeddata"),e.readyState>=3&&s.push("canplay"),e.readyState>
225=4&&s.push("canplaythrough"),this.ready(function(){s.forEach(function(i){this.trigger(i)},this)})}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&Eg?this.el_.fastSeek(e):this.el_.currentTime=e}catch(s){At(s,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&Un&&$n&&this.el_.currentTime===0){const e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},s=function(){"webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",s),this.on("dispose",()=>{this.off("webkitbeginfullscreen",s),this.off("webkitendfullscreen",e)})}supportsFullScreen(){return typeof this.el_.webkitEnterFullScreen=="function"}enterFullScreen(){const e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)xn(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(s){this.trigger("fullscreenerror",s)}},0);else try{e.webkitEnterFullScreen()}catch(s){this.trigger("fullscreenerror",s)}}exitFullScreen(){if(!this.el_.webkitDisplayingFullscreen){this.trigger("fullscreenerror",new Error("The video is not fullscreen"));return}this.el_.webkitExitFullScreen()}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(e===void 0)return this.el_.src;this.setSrc(e)}reset(){je.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,s,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,s,i):super.addTextTrack(e,s,i)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);const s=Oe.createElement("track");return e.kind&&(s.kind=e.kind),e.label&&(s.label=e.label),(e.language||e.srclang)&&(s.srclang=e.language||e.srclang),e.default&&(s.default=e.default),e.id&&(s.id=e.id),e.src&&(s.src=e.src),s}addRemoteTextTrack(e,s){const i=super.addRemoteTextTrack(e,s);return this.featuresNativeTextTracks&&this.el().appendChild(i),i}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){const s=this.$$("track");let i=s.length;for(;i--;)(e===s[i]||e===s[i].track)&&this.el().removeChild(s[i])}}getVideoPlaybackQuality(){if(typeof this.el().getVideoPlaybackQuality=="function")return this.el().getVideoPlaybackQuality();const e={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),Q.performance&&(e.creationTime=Q.performance.now()),e}}vg(je,"TEST_VID",function(){if(!yc())return;const t=Oe.createElement("video"),e=Oe.createElement("track");return e.kind="captions",e.srclang="en",e.label="English",t.appendChild(e),t});je.isSupported=function(){try{je.TEST_VID.volume=.5}catch{return!1}return!!(je.TEST_VID&&je.TEST_VID.canPlayType)};je.canPlayType=function(t){return je.TEST_VID.canPlayType(t)};je.canPlaySource=function(t,e){return je.canPlayType(t.type)};je.canControlVolume=function(){try{const t=je.TEST_VID.volume;je.TEST_VID.volume=t/2+.1;const e=t!==je.TEST_VID.volume;return e&&Pi?(Q.setTimeout(()=>{je&&je.prototype&&(je.prototype.featuresVolumeControl=t!==je.TEST_VID.volume)}),!1):e}catch{return!1}};je.canMuteVolume=function(){try{const t=je.TEST_VID.muted;return je.TEST_VID.muted=!t,je.TEST_VID.muted?Ku(je.TEST_VID,"muted","muted"):Cg(je.TEST_VID,"muted","muted"),t!==je.TEST_VID.muted}catch{return!1}};je.canControlPlaybackRate=function(){if(Un&&$n&&bg<58)return!1;try{const t=je.TEST_VID.playbackRate;return je.TEST_VID.playbackRate=t/2+.1,t!==je.TEST_VID.playbackRate}catch{return!1}};je.canOverrideAttributes=function(){try{const t=()=>{};Object.defineProperty(Oe.createElement("video"),"src",{get:t,set:t}),Object.defineProperty(Oe.createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(Oe.createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(Oe.createElement("audio"),"innerHTML",{get:t,set:t})}catch{return!1}return!0};je.supportsNativeTextTracks=function(){return Eg||Pi&&$n};je.supportsNativeVideoTracks=function(){return!!(je.TEST_VID&&je.TEST_VID.videoTracks)};je.supportsNativeAudioTracks=function(){return!!(je.TEST_VID&&je.TEST_VID.audioTracks)};je.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"];[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEac
225h(function([t,e]){vg(je.prototype,t,()=>je[e](),!0)});je.prototype.featuresVolumeControl=je.canControlVolume();je.prototype.movingMediaElementInDOM=!Pi;je.prototype.featuresFullscreenResize=!0;je.prototype.featuresProgressEvents=!0;je.prototype.featuresTimeupdateEvents=!0;je.prototype.featuresVideoFrameCallback=!!(je.TEST_VID&&je.TEST_VID.requestVideoFrameCallback);je.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),typeof t.load=="function"&&function(){try{t.load()}catch{}}()}};je.resetMediaElement=function(t){if(!t)return;const e=t.querySelectorAll("source");let s=e.length;for(;s--;)t.removeChild(e[s]);t.removeAttribute("src"),typeof t.load=="function"&&function(){try{t.load()}catch{}}()};["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){je.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){je.prototype["set"+ms(t)]=function(e){this.el_[t]=e,e?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}});["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(t){je.prototype[t]=function(){return this.el_[t]}});["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(t){je.prototype["set"+ms(t)]=function(e){this.el_[t]=e}});["pause","load","play"].forEach(function(t){je.prototype[t]=function(){return this.el_[t]()}});ft.withSourceHandlers(je);je.nativeSourceHandler={};je.nativeSourceHandler.canPlayType=function(t){try{return je.TEST_VID.canPlayType(t)}catch{return""}};je.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return je.nativeSourceHandler.canPlayType(t.type);if(t.src){const s=I1(t.src);return je.nativeSourceHandler.canPlayType(`video/${s}`)}return""};je.nativeSourceHandler.handleSource=function(t,e,s){e.setSrc(t.src)};je.nativeSourceHandler.dispose=function(){};je.registerSourceHandler(je.nativeSourceHandler);ft.registerTech("Html5",je);const yL=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],C_={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},yb=["tiny","xsmall","small","medium","large","xlarge","huge"],gp={};yb.forEach(t=>{const e=t.charAt(0)==="x"?`x-${t.substring(1)}`:t;gp[t]=`vjs-layout-${e}`});const Nj={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class ss extends Te{constructor(e,s,i){if(e.id=e.id||s.id||`vjs_video_${un()}`,s=Object.assign(ss.getTagSettings(e),s),s.initChildren=!1,s.createEl=!1,s.evented=!1,s.reportTouchActivity=!1,!s.language){const a=e.closest("[lang]");a&&(s.language=a.getAttribute("lang"))}if(super(null,s,i),this.boundDocumentFullscreenChange_=a=>this.documentFullscreenChange_(a),this.boundFullWindowOnEscKey_=a=>this.fullWindowOnEscKey(a),this.boundUpdateStyleEl_=a=>this.updateStyleEl_(a),this.boundApplyInitTime_=a=>this.applyInitTime_(a),this.boundUpdateCurrentBreakpoint_=a=>this.updateCurrentBreakpoint_(a),this.boundHandleTechClick_=a=>this.handleTechClick_(a),this.boundHandleTechDoubleClick_=a=>this.handleTechDoubleClick_(a),this.boundHandleTechTouchStart_=a=>this.handleTechTouchStart_(a),this.boundHandleTechTouchMove_=a=>this.handleTechTouchMove_(a),this.boundHandleTechTouchEnd_=a=>this.handleTechTouchEnd_(a),this.boundHandleTechTap_=a=>this.handleTechTap_(a),this.isFullscreen_=!1,this.log=lP(this.id_),this.fsApi_=Jp,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=e,this.tagAttributes=e&&po(e),this.language(this.options_.language),s.languages){const a={};
vendor: 10,672 bytes, lines 225-234
225Object.getOwnPropertyNames(s.languages).forEach(function(o){a[o.toLowerCase()]=s.languages[o]}),this.languages_=a}else this.languages_=ss.prototype.options_.languages;this.resetCache_(),this.poster_=s.poster||"",this.controls_=!!s.controls,e.controls=!1,e.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],e.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),s.plugins&&Object.keys(s.plugins).forEach(a=>{if(typeof this[a]!="function")throw new Error(`plugin "${a}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),w1(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(fr(Oe,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const r=Kt(this.options_);if(s.plugins&&Object.keys(s.plugins).forEach(a=>{this[a](s.plugins[a])}),s.debug&&this.debug(!0),this.options_.playerOptions=r,this.middleware_=[],this.playbackRates(s.playbackRates),s.experimentalSvgIcons){const o=new Q.DOMParser().parseFromString(nj,"image/svg+xml");if(o.querySelector("parsererror"))At.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const c=o.documentElement;c.style.display="none",this.el_.appendChild(c),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio(e.nodeName.toLowerCase()==="audio"),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),Gh&&this.addClass("vjs-touch-enabled"),Pi||this.addClass("vjs-workinghover"),ss.players[this.id_]=this;const n=ab.split(".")[0];this.addClass(`vjs-v${n}`),this.userActive(!0),this.reportUserActivity(),this.one("play",a=>this.listenForUserActivity_(a)),this.on("keydown",a=>this.handleKeyDown(a)),this.on("languagechange",a=>this.handleLanguagechange(a)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){this.trigger("dispose"),this.off("dispose"),ni(Oe,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),ni(Oe,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),ss.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),tj(this),xi.names.forEach(e=>{const s=xi[e],i=this[s.getterName]();i&&i.off&&i.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e=this.tag,s,i=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player");const r=this.tag.tagName.toLowerCase()==="video-js";i?s=this.el_=e.parentNode:r||(s=this.el_=super.createEl("div"));const n=po(e);if(r){for(s=this.el_=e,e=this.tag=Oe.createElement("video");s.children.length;)e.appendChild(s.firstChild);mh(s,"video-js")||vl(s,"video-js"),s.appendChild(e),i=this.playerElIngest_=s,Object.keys(s).forEach(o=>{try{e[o]=s[o]}catch{}})}if(e.setAttribute("tabindex","-1"),n.tabindex="-1",$n&&Tg&&(e.setAttribute("role","application"),n.role="application"),e.removeAttribute("width"),e.removeAttribute("height"),"width"in n&&delete n.width,"height"in n&&delete n.height,Object.getOwnPropertyNames(n).forEach(function(o){r&&o==="class"||s.setAttribute(o,n[o]),r&&e.setAttribute(o,n[o])}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=s.player=this,this.addClass("vjs-paused"),Q.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=IP("vjs-styles-dimensions");const o=Co(".vjs-styles-defaults"),l=Co("head");l.insertBefore(this.styleEl_,o?o.nextSibling:l.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);const a=e.getElementsByTagName("a");for(let o=0;o<a.length;o++){const l=a.item(o);vl(l,"vjs-hidden"),l.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&&!i&&e.parentNode.insertBefore(s,e),lb(e,s),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=s,s}crossOrigin(e){if(typeof e>"u")return this.techGet_("crossOrigin");if(e!==null&&e!=="anonymous"&&e!=="use-credentials"){At.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`);return}this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,s){const i=e+"_";if(s===void 0)return this[i]||0;if(s===""||s==="auto"){this[i]=void 0,this.updateStyleEl_();return}const r=parseFloat(s);if(isNaN(r)){At.error(`Improper value "${s}" supplied for for ${e}`);return}this[i]=r,this.updateStyleEl_()}fluid(e){if(e===void 0)return!!this.fluid_;this.fluid_=!!e,Fa(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),P$(this,()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(e===void 0)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(e){if(e===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(Q.VIDEOJS_NO_DYNAMIC_STYLE===!0){const o=typeof this.width_=="number"?this.width_:this.options_.width,l=typeof this.height_=="number"?this.height_:this.options_.height,c=this.tech_&&this.tech_.el();c&&(o>=0&&(c.width=o),l>=0&&(c.height=l));return}let e,s,i,r;this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?i=this.aspectRatio_:this.videoWidth()>0?i=this.videoWidth()+":"+this.videoHeight():i="16:9";const n=i.split(":"),a=n[1]/n[0];this.width_!==void 0?e=this.width_:this.height_!==void 0?e=this.height_/a:e=this.videoWidth()||300,this.height_!==void 0?s=this.height_:s=e*a,/^[^a-zA-Z]/.test(this.id())?r="dimensions-"+this.id():r=this.id()+"-dimensions",this.addClass(r),PP(this.styleEl_,`
226      .${r} {
227        width: ${e}px;
228        height: ${s}px;
229      }
230
231      .${r}.vjs-fluid:not(.vjs-audio-only-mode) {
232        padding-top: ${a*100}%;
233      }
234    `)}loadTech_(e,s){this.tech_&&this.unloadTech_();const i=ms(e),r=e.charAt(0).toLowerCase()+e.slice(1);i!=="Html5"&&this.tag&&(ft.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;let n=this.autoplay();(typeof this.autoplay()=="string"||this.autoplay()===!0&&this.options_.normalizeAutoplay)&&(n=!1);const a={source:s,autoplay:n,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${r}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};xi.names.forEach(l=>{const c=xi[l];a[c.getterName]=this[c.privateName]}),Object.assign(a,this.options_[i]),Object.assign(a,this.options_[r]),Object.assign(a,this.options_[e.toLowerCase()]),this.tag&&(a.tag=this.tag),s&&s.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);const o=ft.getTech(e);if(!o)throw new Error(`No Tech named '${i}' exists! '${i}' should be registered using videojs.registerTech()'`);this.tech_=new o(a),this.tech_.ready(Qt(this,this.handleTechReady_),!0),Sx.jsonToTextTracks(this.textTracksJson_||[],this.tech_),yL.forEach(l=>{this.on(this.tech_,l,c=>this[`handleTech${ms(l)}_`](c))}),Object.keys(C_).forEach(l=>{this.on(this.tech_,l,c=>{if(this.tech_.playbackRate()===0&&this.tech_.seeking()){this.queuedCallbacks_.push({callback:this[`handleTech${C_[l]}_`].bind(this),event:c});return}this[`handleTech${C_[l]}_`](c)})}),this.on(this.tech_,"loadstart",l=>this.handleTechLoadStart_(l)),this.on(this.tech_,"sourceset",l=>this.handleTechSourceset_(l)),this.on(this.tech_,"waiting",l=>this.handleTechWaiting_(l)),this.on(this.tech_,"ended",l=>this.handleTechEnded_(l)),this.on(this.tech_,"seeking",l=>this.handleTechSeeking_(l)),this.on(this.tech_,"play",l=>this.handleTechPlay_(l)),this.on(this.tech_,"pause",l=>this.handleTechPause_(l)),this.on(this.tech_,"durationchange",l=>this.handleTechDurationChange_(l)),this.on(this.tech_,"fullscreenchange",(l,c)=>this.handleTechFullscreenChange_(l,c)),this.on(this.tech_,"fullscreenerror",(l,c)=>this.handleTechFullscreenError_(l,c)),this.on(this.tech_,"enterpictureinpicture",l=>this.handleTechEnterPictureInPicture_(l)),this.on(this.tech_,"leavepictureinpicture",l=>this.handleTechLeavePictureInPicture_(l)),this.on(this.tech_,"error",l=>this.handleTechError_(l)),this.on(this.tech_,"posterchange",l=>this.handleTechPosterChange_(l)),this.on(this.tech_,"textdata",l=>this.handleTechTextData_(l)),this.on(this.tech_,"ratechange",l=>this.handleTechRateChange_(l)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&(i!=="Html5"||!this.tag)&&lb(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){xi.names.forEach(e=>{const s=xi[e];this[s.privateName]=this[s.getterName]()}),this.textTracksJson_=Sx.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return e===void 0&&At.warn(`Using the tech directly can be dangerous. I hope you know 
234what you're doing.
235See https://github.com/videojs/video.js/issues/2617 for more info.
236`),this.tech_}version(){return{"video.js":ab}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(this.autoplay()===!0&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||typeof e!="string")return;const s=()=>{const r=this.muted();this.muted(!0);const n=()=>{this.muted(r)};this.playTerminatedQueue_.push(n);const a=this.play();if(yh(a))return a.catch(o=>{throw n(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${o||""}`)})};let i;if(e==="any"&&!this.muted()?(i=this.play(),yh(i)&&(i=i.catch(s))):e==="muted"&&!this.muted()?i=s():i=this.play(),!!yh(i))return i.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})})}updateSourceCaches_(e=""){let s=e,i="";typeof s!="string"&&(s=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],s&&!i&&(i=rj(this,s)),this.cache_.source=Kt({},e,{src:s,type:i});const r=this.cache_.sources.filter(l=>l.src&&l.src===s),n=[],a=this.$$("source"),o=[];for(let l=0;l<a.length;l++){const c=po(a[l]);n.push(c),c.src&&c.src===s&&o.push(c.src)}o.length&&!r.length?this.cache_.sources=n:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=s}handleTechSourceset_(e){if(!this.changingSrc_){let s=n=>this.updateSourceCaches_(n);const i=this.currentSource().src,r=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(s=()=>{}),s(r),e.src||this.tech_.any(["sourceset","loadstart"],n=>{if(n.type==="sourceset")return;const a=this.techGet_("currentSrc");this.lastSource_.tech=a,this.updateSourceCaches_(a)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(e===void 0)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&this.cache_.lastPlaybackRate===0&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),s=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",s))};this.on("timeupdate",s)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}
vendor: 28,410 bytes, line 236
236handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){this.controls_&&(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.click===void 0||this.options_.userActions.click!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.click=="function"?this.options_.userActions.click.call(this,e):this.paused()?xn(this.play()):this.pause())}handleTechDoubleClick_(e){if(!this.controls_)return;Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),i=>i.contains(e.target))||(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.doubleClick===void 0||this.options_.userActions.doubleClick!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.doubleClick=="function"?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){const s=e.target.player;if(s&&s!==this)return;const i=this.el();let r=Oe[this.fsApi_.fullscreenElement]===i;!r&&i.matches&&(r=i.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}handleTechFullscreenChange_(e,s){s&&(s.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(s.isFullscreen))}handleTechFullscreenError_(e,s){this.trigger("fullscreenerror",s)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){const e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,s){this.ready(function(){if(e in Z$)return Q$(this.middleware_,this.tech_,e,s);if(e in Ax)return wx(this.middleware_,this.tech_,e,s);try{this.tech_&&this.tech_[e](s)}catch(i){throw At(i),i}},!0)}techGet_(e){if(!(!this.tech_||!this.tech_.isReady_)){if(e in J$)return Y$(this.middleware_,this.tech_,e);if(e in Ax)return wx(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(s){throw this.tech_[e]===void 0?(At(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,s),s):s.name==="TypeError"?(At(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,s),this.tech_.isReady_=!1,s):(At(s),s)}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=xn){this.playCallbacks_.push(e);const s=!!(!this.changingSrc_&&(this.src()||this.currentSrc())),i=!!(Eg||Pi);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!s){this.waitToPlay_=a=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!s&&i&&this.load();return}const r=this.techGet_("play");i&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),r===null?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)}runPlayTerminatedQueue_(){const e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(s){s()})}runPlayCallbacks_(e){const s=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],s.forEach(function(i){i(e)})}pause(){this.techCall_("pause")}paused(){return this.techGet_("paused")!==!1}played(){return this.techGet_("played")||en(0,0)}scrubbing(e){if(typeof e>"u")return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(e){if(e===void 0)return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime;if(e<0&&(e=0),!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),this.one("canplay",this.boundApplyInitTime_);return}this.techCall_("setCurrentTime",e),this.cache_.initTime=0,isFinite(e)&&(this.cache_.currentTime=Number(e))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(e===void 0)return this.cache_.duration!==void 0?this.cache_.duration:NaN;e=parseFloat(e),e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return(!e||!e.length)&&(e=en(0,0)),e}seekable(){let e=this.techGet_("seekable");return(!e||!e.length)&&(e=en(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return $P(this.buffered(),this.duration())}bufferedEnd(){const e=this.buffered(),s=this.duration();let i=e.end(e.length-1);return i>s&&(i=s),i}volume(e){let s;if(e!==void 0){s=Math.max(0,Math.min(1,e)),this.cache_.volume=s,this.techCall_("setVolume",s),s>0&&this.lastVolume_(s);return}return s=parseFloat(this.techGet_("volume")),isNaN(s)?1:s}muted(e){if(e!==void 0){this.techCall_("setMuted",e);return}return this.techGet_("muted")||!1}defaultMuted(e){return e!==void 0&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(e!==void 0&&e!==0){this.cache_.lastVolume=e;return}return this.cache_.lastVolume}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(e!==void 0){const s=this.isFullscreen_;this.isFullscreen_=!!e,this.isFullscreen_!==s&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_();return}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();const s=this;return new Promise((i,r)=>{function n(){s.off("fullscreenerror",o),s.off("fullscreenchange",a)}function a(){n(),i()}function o(c,d){n(),r(d)}s.one("fullscreenchange",a),s.one("fullscreenerror",o);const l=s.requestFullscreenHelper_(e);l&&(l.then(n,n),l.then(i,r))})}requestFullscreenHelper_(e){let s;if(this.fsApi_.prefixed||(s=this.options_.fullscreen&&this.options_.fullscreen.options||{},e!==void 0&&(s=e)),this.fsApi_.requestFullscreen){const i=this.el_[this.fsApi_.requestFullscreen](s);return i&&i.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),i}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const e=this;return new Promise((s,i)=>{function r(){e.off("fullscreenerror",a),e.off("fullscreenchange",n)}function n(){r(),s()}function a(l,c){r(),i(c)}e.one("fullscreenchange",n),e.one("fullscreenerror",a);const o=e.exitFullscreenHelper_();o&&(o.then(r,r),o.then(s,i))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=Oe[this.fsApi_.exitFullscreen]();return e&&xn(e.then(()=>this.isFullscreen(!1))),e}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=Oe.documentElement.style.overflow,fr(Oe,"keydown",this.boundFullWindowOnEscKey_),Oe.documentElement.style.overflow="hidden",vl(Oe.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){ut.isEventKey(e,"Esc")&&this.isFullscreen()===!0&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,ni(Oe,"keydown",this.boundFullWindowOnEscKey_),Oe.documentElement.style.overflow=this.docOrigOverflow,xg(Oe.body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(e===void 0)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){if(e!==void 0){this.isInPictureInPicture_=!!e,this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&Q.documentPictureInPicture){const e=Oe.createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(Tt("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),Q.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(s=>(AP(s),this.el_.parentNode.insertBefore(e,this.el_),s.document.body.appendChild(this.el_),s.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger("enterpictureinpicture"),s.addEventListener("pagehide",i=>{const r=i.target.querySelector(".video-js");e.parentNode.replaceChild(r,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),s))}return"pictureInPictureEnabled"in Oe&&this.disablePictureInPicture()===!1?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){if(Q.documentPictureInPicture&&Q.documentPictureInPicture.window)return Q.documentPictureInPicture.window.close(),Promise.resolve();if("pictureInPictureEnabled"in Oe)return Oe.exitPictureInPicture()}handleKeyDown(e){const{userActions:s}=this.options_;!s||!s.hotkeys||(r=>{const n=r.tagName.toLowerCase();if(r.isContentEditable)return!0;const a=["button","checkbox","hidden","radio","reset","submit"];return n==="input"?a.indexOf(r.type)===-1:["textarea"].indexOf(n)!==-1})(this.el_.ownerDocument.activeElement)||(typeof s.hotkeys=="function"?s.hotkeys.call(this,e):this.handleHotkeys(e))}handleHotkeys(e){const s=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:i=a=>ut.isEventKey(a,"f"),muteKey:r=a=>ut.isEventKey(a,"m"),playPauseKey:n=a=>ut.isEventKey(a,"k")||ut.isEventKey(a,"Space")}=s;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();const a=Te.getComponent("FullscreenToggle");Oe[this.fsApi_.fullscreenEnabled]!==!1&&a.prototype.handleClick.call(this,e)}else r.call(this,e)?(e.preventDefault(),e.stopPropagation(),Te.getComponent("MuteToggle").prototype.handleClick.call(this,e)):n.call(this,e)&&(e.preventDefault(),e.stopPropagation(),Te.getComponent("PlayToggle").prototype.handleClick.call(this,e))}canPlayType(e){let s;for(let i=0,r=this.options_.techOrder;i<r.length;i++){const n=r[i];let a=ft.getTech(n);if(a||(a=Te.getComponent(n)),!a){At.error(`The "${n}" tech is undefined. Skipped browser support check for that tech.`);continue}if(a.isSupported()&&(s=a.canPlayType(e),s))return s}return""}selectSource(e){const s=this.options_.techOrder.map(o=>[o,ft.getTech(o)]).filter(([o,l])=>l?l.isSupported():(At.error(`The "${o}" tech is undefined. Skipped browser support check for that tech.`),!1)),i=function(o,l,c){let d;return o.some(p=>l.some(_=>{if(d=c(p,_),d)return!0})),d};let r;const n=o=>(l,c)=>o(c,l),a=([o,l],c)=>{if(l.canPlaySource(c,this.options_[o.toLowerCase()]))return{source:c,tech:o}};return this.options_.sourceOrder?r=i(e,s,n(a)):r=i(s,e,a),r||!1}handleSrc_(e,s){if(typeof e>"u")return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const i=zP(e);if(!i.length){this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);return}if(this.changingSrc_=!0,s||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),X$(this,i[0],(r,n)=>{if(this.middleware_=n,s||(this.cache_.sources=i),this.updateSourceCaches_(r),this.src_(r)){if(i.length>1)return this.handleSrc_(i.slice(1));this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),this.triggerReady();return}K$(n,this.tech_)}),i.length>1){const r=()=>{this.error(null),this.handleSrc_(i.slice(1),!0)},n=()=>{this.off("error",r)};this.one("error",r),this.one("playing",n),this.resetRetryOnError_=()=>{this.off("error",r),this.off("playing",n)}}}src(e){return this.handleSrc_(e,!1)}src_(e){const s=this.selectSource([e]);return s?MP(s.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(s.tech,s.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1):!0}load(){if(this.tech_&&this.tech_.vhs){this.src(this.currentSource());return}this.techCall_("load")}reset(){if(this.paused())this.doReset_();else{const e=this.play();xn(e.then(()=>this.doReset_()))}}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),Fa(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:s,progressControl:i,remainingTimeDisplay:r}=this.controlBar||{},{seekBar:n}=i||{};e&&e.updateContent(),s&&s.updateContent(),r&&r.updateContent(),n&&(n.update(),n.loadProgressBar&&n.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const e=this.currentSource(),s=[];return Object.keys(e).length!==0&&s.push(e),this.cache_.sources||s}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){if(e!==void 0){this.techCall_("setPreload",e),this.options_.preload=e;return}return this.techGet_("preload")}autoplay(e){if(e===void 0)return this.options_.autoplay||!1;let s;typeof e=="string"&&/(any|play|muted)/.test(e)||e===!0&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_(typeof e=="string"?e:"play"),s=!1):e?this.options_.autoplay=!0:this.options_.autoplay=!1,s=typeof s>"u"?this.options_.autoplay:s,this.tech_&&this.techCall_("setAutoplay",s)}playsinline(e){return e!==void 0&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){if(e!==void 0){this.techCall_("setLoop",e),this.options_.loop=e;return}return this.techGet_("loop")}poster(e){if(e===void 0)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(e){if(e===void 0)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(e===void 0)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(e){if(e===void 0)return this.error_||null;if(xo("beforeerror").forEach(s=>{const i=s(this,e);if(!(Bn(i)&&!Array.isArray(i)||typeof i=="string"||typeof i=="number"||i===null)){this.log.error("please return a value that MediaError expects in beforeerror hooks");return}e=i}),this.options_.suppressNotSupportedError&&e&&e.code===4){const s=function(){this.error(e)};this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],s),this.one("loadstart",function(){this.off(["click","touchstart"],s)});return}if(e===null){this.error_=null,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new ki(e),this.addClass("vjs-error"),At.error(`(CODE:${this.error_.code} ${ki.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),xo("error").forEach(s=>s(this,this.error_))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(e===void 0)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_){this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");return}this.tech_&&this.tech_.one("mousemove",function(s){s.stopPropagation(),s.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,s,i;const r=Qt(this,this.reportUserActivity),n=function(p){(p.screenX!==s||p.screenY!==i)&&(s=p.screenX,i=p.screenY,r())},a=function(){r(),this.clearInterval(e),e=this.setInterval(r,250)},o=function(p){r(),this.clearInterval(e)};this.on("mousedown",a),this.on("mousemove",n),this.on("mouseup",o),this.on("mouseleave",o);const l=this.getChild("controlBar");l&&!Pi&&!Un&&(l.on("mouseenter",function(p){this.player().options_.inactivityTimeout!==0&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),l.on("mouseleave",function(p){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r);let c;const d=function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(c);const p=this.options_.inactivityTimeout;p<=0||(c=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},p))};this.setInterval(d,250)}playbackRate(e){if(e!==void 0){this.techCall_("setPlaybackRate",e);return}return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1}defaultPlaybackRate(e){return e!==void 0?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(e!==void 0){this.isAudio_=!!e;return}return!!this.isAudio_}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const e=this.children(),s=this.getChild("ControlBar"),i=s&&s.currentHeight();e.forEach(r=>{r!==s&&r.el_&&!r.hasClass("vjs-hidden")&&(r.hide(),this.audioOnlyCache_.hiddenChildren.push(r))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(i),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(e=>e.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if(typeof e!="boolean"||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){const s=[];return this.isInPictureInPicture()&&s.push(this.exitPictureInPicture()),this.isFullscreen()&&s.push(this.exitFullscreen()),this.audioPosterMode()&&s.push(this.audioPosterMode(!1)),Promise.all(s).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){return typeof e!="boolean"||e===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=e,e?this.audioOnlyMode()?this.audioOnlyMode(!1).then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.disablePosterModeUI_()}))}addTextTrack(e,s,i){if(this.tech_)return this.tech_.addTextTrack(e,s,i)}addRemoteTextTrack(e,s){if(this.tech_)return this.tech_.addRemoteTextTrack(e,s)}removeRemoteTextTrack(e={}){let{track:s}=e;if(s||(s=e),this.tech_)return this.tech_.removeRemoteTextTrack(s)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(e===void 0)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Fa(this)&&this.trigger("languagechange"))}languages(){return Kt(ss.prototype.options_.languages,this.languages_)}toJSON(){const e=Kt(this.options_),s=e.tracks;e.tracks=[];for(let i=0;i<s.length;i++){let r=s[i];r=Kt(r),r.player=void 0,e.tracks[i]=r}return e}createModal(e,s){s=s||{},s.content=e||"";const i=new bc(this,s);return this.addChild(i),i.on("dispose",()=>{this.removeChild(i)}),i.open(),i}updateCurrentBreakpoint_(){if(!this.responsive())return;const e=this.currentBreakpoint(),s=this.currentWidth();for(let i=0;i<yb.length;i++){const r=yb[i],n=this.breakpoints_[r];if(s<=n){if(e===r)return;e&&this.removeClass(gp[e]),this.addClass(gp[r]),this.breakpoint_=r;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return e===void 0?Object.assign(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=Object.assign({},Nj,e),this.updateCurrentBreakpoint_(),Object.assign(this.breakpoints_))}responsive(e){if(e===void 0)return this.responsive_;e=!!e;const s=this.responsive_;if(e!==s)return this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return gp[this.breakpoint_]||""}loadMedia(e,s){if(!e||typeof e!="object")return;const i=this.crossOrigin();this.reset(),this.cache_.media=Kt(e);const{artist:r,artwork:n,description:a,poster:o,src:l,textTracks:c,title:d}=this.cache_.media;!n&&o&&(this.cache_.media.artwork=[{src:o,type:rm(o)}]),i&&this.crossOrigin(i),l&&this.src(l),o&&this.poster(o),Array.isArray(c)&&c.forEach(p=>this.addRemoteTextTrack(p,!1)),this.titleBar&&this.titleBar.update({title:d,description:a||r||""}),this.ready(s)}getMedia(){if(!this.cache_.media){const e=this.poster(),s=this.currentSources(),i=Array.prototype.map.call(this.remoteTextTracks(),n=>({kind:n.kind,label:n.label,language:n.language,src:n.src})),r={src:s,textTracks:i};return e&&(r.poster=e,r.artwork=[{src:r.poster,type:rm(r.poster)}]),r}return Kt(this.cache_.media)}static getTagSettings(e){const s={sources:[],tracks:[]},i=po(e),r=i["data-setup"];if(mh(e,"vjs-fill")&&(i.fill=!0),mh(e,"vjs-fluid")&&(i.fluid=!0),r!==null){const[n,a]=gU(r||"{}");n&&At.error(n),Object.assign(i,a)}if(Object.assign(s,i),e.hasChildNodes()){const n=e.childNodes;for(let a=0,o=n.length;a<o;a++){const l=n[a],c=l.nodeName.toLowerCase();c==="source"?s.sources.push(po(l)):c==="track"&&s.tracks.push(po(l))}}return s}debug(e){if(e===void 0)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){if(e===void 0)return this.cache_.playbackRates;Array.isArray(e)&&e.every(s=>typeof s=="number")&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}}xi.names.forEach(function(t){const e=xi[t];ss.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}});ss.prototype.crossorigin=ss.prototype.crossOrigin;ss.players={};const Md=Q.navigator;ss.prototype.options_={techOrder:ft.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Md&&(Md.languages&&Md.languages[0]||Md.userLanguage||Md.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,enableSmoothSeeking:!1};yL.forEach(function(t){ss.prototype[`handleTech${ms(t)}_`]=function(){return this.trigger(t)}});Te.registerComponent("Player",ss);const nm="plugin",vu="activePlugins_",ru={},am=t=>ru.hasOwnProperty(t),yp=t=>am(t)?ru[t]:void 0,_L=(t,e)=>{t[vu]=t[vu]||{},t[vu][e]=!0},om=(t,e,s)=>{const i=(s?"before":"")+"pluginsetup";t.trigger(i,e),t.trigger(i+":"+e.name,e)},Rj=function(t,e){const s=function(){om(this,{name:t,plugin:e,instance:null},!0);const i=e.apply(this,arguments);return _L(this,t),om(this,{name:t,plugin:e,instance:i}),i};return Object.keys(e).forEach(function(i){s[i]=e[i]}),s},Hx=(t,e)=>(e.prototype.name=t,function(...s){om(this,{name:t,plugin:e,instance:null},!0);const i=new e(this,...s);return this[t]=()=>i,om(this,i.getEventHash()),i});class Gi{constructor(e){if(this.constructor===Gi)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),w1(this),delete this.trigger,RP(this,this.constructor.defaultState),_L(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,s={}){return vc(this.eventBusEl_,e,this.getEventHash(s))}handleStateChanged(e){}dispose(){const{name:e,player:s}=this;this.trigger("dispose"),this.off(),s.off("dispose",this.dispose),s[vu][e]=!1,this.player=this.state=null,s[e]=Hx(e,ru[e])}static isBasic(e){const s=typeof e=="string"?yp(e):e;return typeof s=="function"&&!Gi.prototype.isPrototypeOf(s.prototype)}static registerPlugin(e,s){if(typeof e!="string")throw new Error(`Illegal plugin name, "${e}", must be a string, was ${typeof e}.`);if(am(e))At.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);else if(ss.prototype.hasOwnProperty(e))throw new Error(`Illegal plugin name, "${e}", cannot share a name with an existing player method!`);if(typeof s!="function")throw new Error(`Illegal plugin for "${e}", must be a function, was ${typeof s}.`);return ru[e]=s,e!==nm&&(Gi.isBasic(s)?ss.prototype[e]=Rj(e,s):ss.prototype[e]=Hx(e,s)),s}static deregisterPlugin(e){if(e===nm)throw new Error("Cannot de-register base plugin.");am(e)&&(delete ru[e],delete ss.prototype[e])}static getPlugins(e=Object.keys(ru)){let s;return e.forEach(i=>
236{const r=yp(i);r&&(s=s||{},s[i]=r)}),s}static getPluginVersion(e){const s=yp(e);return s&&s.VERSION||""}}Gi.getPlugin=yp;Gi.BASE_PLUGIN_NAME=nm;Gi.registerPlugin(nm,Gi);ss.prototype.usingPlugin=function(t){return!!this[vu]&&this[vu][t]===!0};ss.prototype.hasPlugin=function(t){return!!am(t)};function Mj(t,e){let s=!1;return function(...i){return s||At.warn(t),s=!0,e.apply(this,i)}}function dn(t,e,s,i){return Mj(`${e} is deprecated and will be removed in ${t}.0; please use ${s} instead.`,i)}const vL=t=>t.indexOf("#")===0?t.slice(1):t;function fe(t,e,s){let i=fe.getPlayer(t);if(i)return e&&At.warn(`Player "${t}" is already initialised. Options will not be applied.`),s&&i.ready(s),i;const r=typeof t=="string"?Co("#"+vL(t)):t;if(!_c(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");const a=("getRootNode"in r?r.getRootNode()instanceof Q.ShadowRoot:!1)?r.getRootNode():r.ownerDocument.body;(!r.ownerDocument.defaultView||!a.contains(r))&&At.warn("The element supplied is not included in the DOM"),e=e||{},e.restoreEl===!0&&(e.restoreEl=(r.parentNode&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),xo("beforesetup").forEach(l=>{const c=l(r,Kt(e));if(!Bn(c)||Array.isArray(c)){At.error("please return an object in beforesetup hooks");return}e=Kt(e,c)});const o=Te.getComponent("Player");return i=new o(r,e,s),xo("setup").forEach(l=>l(i)),i}fe.hooks_=Ia;fe.hooks=xo;fe.hook=y$;fe.hookOnce=_$;fe.removeHook=oP;if(Q.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&yc()){let t=Co(".vjs-styles-defaults");if(!t){t=IP("vjs-styles-defaults");const e=Co("head");e&&e.insertBefore(t,e.firstChild),PP(t,`
237      .video-js {
238        width: 300px;
239        height: 150px;
240      }
241
242      .vjs-fluid:not(.vjs-audio-only-mode) {
243        padding-top: 56.25%
244      }
245    `)}}cb(1,fe);fe.VERSION=ab;fe.options=ss.prototype.options_;fe.getPlayers=()=>ss.players;fe.getPlayer=t=>{const e=ss.players;let s;if(typeof t=="string"){const i=vL(t),r=e[i];if(r)return r;s=Co("#"+i)}else s=t;if(_c(s)){const{player:i,playerId:r}=s;if(i||e[r])return i||e[r]}};fe.getAllPlayers=()=>Object.keys(ss.players).map(t=>ss.players[t]).filter(Boolean);fe.players=ss.players;fe.getComponent=Te.getComponent;fe.registerComponent=(t,e)=>(ft.isTech(e)&&At.warn(`The ${t} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),Te.registerComponent.call(Te,t,e));fe.getTech=ft.getTech;fe.registerTech=ft.registerTech;fe.use=W$;Object.defineProperty(fe,"middleware",{value:{},writeable:!1,enumerable:!0});Object.defineProperty(fe.middleware,"TERMINATOR",{value:im,writeable:!1,enumerable:!0});fe.browser=S$;fe.obj=T$;fe.mergeOptions=dn(9,"videojs.mergeOptions","videojs.obj.merge",Kt);fe.defineLazyProperty=dn(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",vg);fe.bind=dn(9,"videojs.bind","native Function.prototype.bind",Qt);fe.registerPlugin=Gi.registerPlugin;fe.deregisterPlugin=Gi.deregisterPlugin;fe.plugin=(t,e)=>(At.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Gi.registerPlugin(t,e));fe.getPlugins=Gi.getPlugins;fe.getPlugin=Gi.getPlugin;fe.getPluginVersion=Gi.getPluginVersion;fe.addLanguage=function(t,e){return t=(""+t).toLowerCase(),fe.options.languages=Kt(fe.options.languages,{[t]:e}),fe.options.languages[t]};fe.log=At;fe.createLogger=lP;fe.time=M$;fe.createTimeRange=dn(9,"videojs.createTimeRange","videojs.time.createTimeRanges",en);fe.createTimeRanges=dn(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",en);fe.formatTime=dn(9,"videojs.formatTime","videojs.time.formatTime",kl);fe.setFormatTime=dn(9,"videojs.setFormatTime","videojs.time.setFormatTime",BP);fe.resetFormatTime=dn(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",UP);fe.parseUrl=dn(9,"videojs.parseUrl","videojs.url.parseUrl",D1);fe.isCrossOrigin=dn(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",Pg);fe.EventTarget=Pr;fe.any=C1;fe.on=fr;fe.one=Dg;fe.off=ni;fe.trigger=vc;fe.xhr=yI;fe.TextTrack=_f;fe.AudioTrack=qP;fe.VideoTrack=VP;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(t=>{fe[t]=function(){return At.warn(`videojs.${t}() is deprecated; use videojs.dom.${t}() instead`),kP[t].apply(null,arguments)}});fe.computedStyle=dn(9,"videojs.computedStyle","videojs.dom.computedStyle",Qu);fe.dom=kP;fe.fn=I$;fe.num=fj;fe.str=N$;fe.url=z$;/*! @name videojs-contrib-quality-levels @version 4.0.0 @license Apache-2.0 */class Fj{constructor(e){let s=this;return s.id=e.id,s.label=s.id,s.width=e.width,s.height=e.height,s.bitrate=e.bandwidth,s.frameRate=e.frameRate,s.enabled_=e.enabled,Object.defineProperty(s,"enabled",{get(){return s.enabled_()},set(i){s.enabled_(i)}}),s}}class lm extends fe.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get(){return e.selectedIndex_}}),Object.defineProperty(e,"length",{get(){return e.levels_.length}}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let s=this.getQualityLevelById(e.id);if(s)return s;const i=this.levels_.length;return s=new Fj(e),""+i in this||Object.defineProperty(this,i,{get(){return this.levels_[i]}}),this.levels_.push(s),this.trigger({qualityLevel:s,type:"addqualitylevel"}),s}removeQualityLevel(e){let s=null;for(let i=0,r=this.length;i<r;i++)if(this[i]===e){s=this.levels_.splice(i,1)[0],this.selectedIndex_===i?this.selectedIndex_=-1:this.selectedIndex_>i&&this.selectedIndex_--;break}return s&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),s}getQualityLevelById(e){for(let s=0,i=this.length;s<i;s++){const r=this[s];if(r.id===e)return r}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}lm.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const t in lm.prototype.allowedEvents_)lm.prototype["on"+t]=null;var bL="4.0.0";const Bj=function(t,e){const s=t.qualityLevels,i=new lm,r=function(){i.dispose(),t.qualityLevels=s,t.off("dispose",r)};return t.on("dispose",r),t.qualityLevels=()=>i,t.qualityLevels.VERSION=bL,i},TL=function(t){return Bj(this,fe.obj.merge({},t))};fe.registerPlugin("qualityLevels",TL);TL.VERSION=bL;/*! @name @videojs/http-streaming @version 3.10.0 @license Apache-2.0 */const $i=fg,um=(t,e)=>e&&e.responseURL&&t!==e.responseURL?e.responseURL:t,Nr=t=>fe.log.debug?fe.log.debug.bind(fe,"VHS:",`${t} >`):function(){};function Mt(...t){const e=fe.obj||fe;return(e.merge||e.mergeOptions).apply(e,t)}function ri(...t){const e=fe.time||fe;return(e.createTimeRanges||e.createTimeRanges).apply(e,t)}const Cn=1/30,wn=Cn*3,SL=function(t,e){const s=[];let i;if(t&&t.length)for(i=0;i<t.length;
vendor: 17,796 bytes, line 245
245i++)e(t.start(i),t.end(i))&&s.push([t.start(i),t.end(i)]);return ri(s)},nu=function(t,e){return SL(t,function(s,i){return s-wn<=e&&i+wn>=e})},Kf=function(t,e){return SL(t,function(s){return s-Cn>=e})},Uj=function(t){if(t.length<2)return ri();const e=[];for(let s=1;s<t.length;s++){const i=t.end(s-1),r=t.start(s);e.push([i,r])}return ri(e)},$j=function(t,e){let s=null,i=null,r=0;const n=[],a=[];if(!t||!t.length||!e||!e.length)return ri();let o=t.length;for(;o--;)n.push({time:t.start(o),type:"start"}),n.push({time:t.end(o),type:"end"});for(o=e.length;o--;)n.push({time:e.start(o),type:"start"}),n.push({time:e.end(o),type:"end"});for(n.sort(function(l,c){return l.time-c.time}),o=0;o<n.length;o++)n[o].type==="start"?(r++,r===2&&(s=n[o].time)):n[o].type==="end"&&(r--,r===1&&(i=n[o].time)),s!==null&&i!==null&&(a.push([s,i]),s=null,i=null);return ri(a)},EL=t=>{const e=[];if(!t||!t.length)return"";for(let s=0;s<t.length;s++)e.push(t.start(s)+" => "+t.end(s));return e.join(", ")},jj=function(t,e,s=1){return((t.length?t.end(t.length-1):0)-e)/s},cl=t=>{const e=[];for(let s=0;s<t.length;s++)e.push({start:t.start(s),end:t.end(s)});return e},Hj=function(t,e){if(t===e)return!1;if(!t&&e||!e&&t||t.length!==e.length)return!0;for(let s=0;s<t.length;s++)if(t.start(s)!==e.start(s)||t.end(s)!==e.end(s))return!0;return!1},qx=function(t){if(!(!t||!t.length||!t.end))return t.end(t.length-1)},W1=function(t,e){let s=0;if(!t||!t.length)return s;for(let i=0;i<t.length;i++){const r=t.start(i),n=t.end(i);if(!(e>n)){if(e>r&&e<=n){s+=n-e;continue}s+=n-r}}return s},X1=(t,e)=>{if(!e.preload)return e.duration;let s=0;return(e.parts||[]).forEach(function(i){s+=i.duration}),(e.preloadHints||[]).forEach(function(i){i.type==="PART"&&(s+=t.partTargetDuration)}),s},_b=t=>(t.segments||[]).reduce((e,s,i)=>(s.parts?s.parts.forEach(function(r,n){e.push({duration:r.duration,segmentIndex:i,partIndex:n,part:r,segment:s})}):e.push({duration:s.duration,segmentIndex:i,partIndex:null,segment:s,part:null}),e),[]),xL=t=>{const e=t.segments&&t.segments.length&&t.segments[t.segments.length-1];return e&&e.parts||[]},CL=({preloadSegment:t})=>{if(!t)return;const{parts:e,preloadHints:s}=t;let i=(s||[]).reduce((r,n)=>r+(n.type==="PART"?1:0),0);return i+=e&&e.length?e.length:0,i},wL=(t,e)=>{if(e.endList)return 0;if(t&&t.suggestedPresentationDelay)return t.suggestedPresentationDelay;const s=xL(e).length>0;return s&&e.serverControl&&e.serverControl.partHoldBack?e.serverControl.partHoldBack:s&&e.partTargetDuration?e.partTargetDuration*3:e.serverControl&&e.serverControl.holdBack?e.serverControl.holdBack:e.targetDuration?e.targetDuration*3:0},qj=function(t,e){let s=0,i=e-t.mediaSequence,r=t.segments[i];if(r){if(typeof r.start<"u")return{result:r.start,precise:!0};if(typeof r.end<"u")return{result:r.end-r.duration,precise:!0}}for(;i--;){if(r=t.segments[i],typeof r.end<"u")return{result:s+r.end,precise:!0};if(s+=X1(t,r),typeof r.start<"u")return{result:s+r.start,precise:!0}}return{result:s,precise:!1}},Vj=function(t,e){let s=0,i,r=e-t.mediaSequence;for(;r<t.segments.length;r++){if(i=t.segments[r],typeof i.start<"u")return{result:i.start-s,precise:!0};if(s+=X1(t,i),typeof i.end<"u")return{result:i.end-s,precise:!0}}return{result:-1,precise:!1}},AL=function(t,e,s){if(typeof e>"u"&&(e=t.mediaSequence+t.segments.length),e<t.mediaSequence)return 0;const i=qj(t,e);if(i.precise)return i.result;const r=Vj(t,e);return r.precise?r.result:i.result+s},kL=function(t,e,s){if(!t)return 0;if(typeof s!="number"&&(s=0),typeof e>"u"){if(t.totalDuration)return t.totalDuration;if(!t.endList)return Q.Infinity}return AL(t,e,s)},_h=function({defaultDuration:t,durationList:e,startIndex:s,endIndex:i}){let r=0;if(s>i&&([s,i]=[i,s]),s<0){for(let n=s;n<Math.min(0,i);n++)r+=t;s=0}for(let n=s;n<i;n++)r+=e[n].duration;return r},DL=function(t,e,s,i){if(!t||!t.segments)return null;if(t.endList)return kL(t);if(e===null)return null;e=e||0;let r=AL(t,t.mediaSequence+t.segments.length,e);return s&&(i=typeof i=="number"?i:wL(null,t),r-=i),Math.max(0,r)},zj=function(t,e,s){const r=e||0;let n=DL(t,e,!0,s);return n===null?ri():(n<r&&(n=r),ri(r,n))},Gj=function({playlist:t,currentTime:e,startingSegmentIndex:s,startingPartIndex:i,startTime:r,exactManifestTimings:n}){let a=e-r;const o=_b(t);let l=0;for(let c=0;c<o.length;c++){const d=o[c];if(s===d.segmentIndex&&!(typeof i=="number"&&typeof d.partIndex=="number"&&i!==d.partIndex)){l=c;break}}if(a<0){if(l>0)for(let c=l-1;c>=0;c--){const d=o[c];if(a+=d.duration,n){if(a<0)continue}else if(a+Cn<=0)continue;return{partIndex:d.partIndex,segmentIndex:d.segmentIndex,startTime:r-_h({defaultDuration:t.targetDuration,durationList:o,startIndex:l,endIndex:c})}}return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:e}}if(l<0){for(let c=l;c<0;c++)if(a-=t.targetDuration,a<0)return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:e};l=0}for(let c=l;c<o.length;c++){const d=o[c];a-=d.duration;const p=d.duration>Cn,_=a===0,b=p&&a+Cn>=0;if(!((_||b)&&c!==o.length-1)){if(n){if(a>0)continue}else if(a-Cn>=0)continue;return{partIndex:d.partIndex,segmentIndex:d.segmentIndex,startTime:r+_h({defaultDuration:t.targetDuration,durationList:o,startIndex:l,endIndex:c})}}}return{segmentIndex:o[o.length-1].segmentIndex,partIndex:o[o.length-1].partIndex,startTime:e}},IL=function(t){return t.excludeUntil&&t.excludeUntil>Date.now()},K1=function(t){return t.excludeUntil&&t.excludeUntil===1/0},Ng=function(t){const e=IL(t);return!t.disabled&&!e},Wj=function(t){return t.disabled},Xj=function(t){for(let e=0;e<t.segments.length;e++)if(t.segments[e].key)return!0;return!1},PL=function(t,e){return e.attributes&&e.attributes[t]},Kj=function(t,e,s,i=0){return PL("BANDWIDTH",s)?(t*s.attributes.BANDWIDTH-i*8)/e:NaN},vb=(t,e)=>{if(t.playlists.length===1)return!0;const s=e.attributes.BANDWIDTH||Number.MAX_VALUE;return t.playlists.filter(i=>Ng(i)?(i.attributes.BANDWIDTH||0)<s:!1).length===0},Y1=(t,e)=>!t&&!e||!t&&e||t&&!e?!1:!!(t===e||t.id&&e.id&&t.id===e.id||t.resolvedUri&&e.resolvedUri&&t.resolvedUri===e.resolvedUri||t.uri&&e.uri&&t.uri===e.uri),Vx=function(t,e){const s=t&&t.mediaGroups&&t.mediaGroups.AUDIO||{};let i=!1;for(const r in s){for(const n in s[r])if(i=e(s[r][n]),i)break;if(i)break}return!!i},Sf=t=>{if(!t||!t.playlists||!t.playlists.length)return Vx(t,s=>s.playlists&&s.playlists.length||s.uri);for(let e=0;e<t.playlists.length;e++){const s=t.playlists[e],i=s.attributes&&s.attributes.CODECS;if(!(i&&i.split(",").every(n=>EI(n))||Vx(t,n=>Y1(s,n))))return!1}return!0};var qi={liveEdgeDelay:wL,duration:kL,seekable:zj,getMediaInfoForTime:Gj,isEnabled:Ng,isDisabled:Wj,isExcluded:IL,isIncompatible:K1,playlistEnd:DL,isAes:Xj,hasAttribute:PL,estimateSegmentRequestTime:Kj,isLowestEnabledRendition:vb,isAudioOnly:Sf,playlistMatch:Y1,segmentDurationWithParts:X1};const{log:LL}=fe,bu=(t,e)=>`${t}-${e}`,OL=(t,e,s)=>`placeholder-uri-${t}-${e}-${s}`,Yj=({onwarn:t,oninfo:e,manifestString:s,customTagParsers:i=[],customTagMappers:r=[],llhls:n})=>{const a=new d7;t&&a.on("warn",t),e&&a.on("info",e),i.forEach(c=>a.addParser(c)),r.forEach(c=>a.addTagMapper(c)),a.push(s),a.end();const o=a.manifest;if(n||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(c){o.hasOwnProperty(c)&&delete o[c]}),o.segments&&o.segments.forEach(function(c){["parts","preloadHints"].forEach(function(d){c.hasOwnProperty(d)&&delete c[d]})})),!o.targetDuration){let c=10;o.segments&&o.segments.length&&(c=o.segments.reduce((d,p)=>Math.max(d,p.duration),0)),t&&t({message:`manifest has no targetDuration defaulting to ${c}`}),o.targetDuration=c}const l=xL(o);if(l.length&&!o.partTargetDuration){const c=l.reduce((d,p)=>Math.max(d,p.duration),0);t&&(t({message:`manifest has no partTargetDuration defaulting to ${c}`}),LL.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),o.partTargetDuration=c}return o},Ec=(t,e)=>{t.mediaGroups&&["AUDIO","SUBTITLES"].forEach(s=>{if(t.mediaGroups[s])for(const i in t.mediaGroups[s])for(const r in t.mediaGroups[s][i]){const n=t.mediaGroups[s][i][r];e(n,s,i,r)}})},NL=({playlist:t,uri:e,id:s})=>{t.id=s,t.playlistErrors_=0,e&&(t.uri=e),t.attributes=t.attributes||{}},Qj=t=>{let e=t.playlists.length;for(;e--;){const s=t.playlists[e];NL({playlist:s,id:bu(e,s.uri)}),s.resolvedUri=$i(t.uri,s.uri),t.playlists[s.id]=s,t.playlists[s.uri]=s,s.attributes.BANDWIDTH||LL.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},Jj=t=>{Ec(t,e=>{e.uri&&(e.resolvedUri=$i(t.uri,e.uri))})},Zj=(t,e)=>{const s=bu(0,e),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:Q.location.href,resolvedUri:Q.location.href,playlists:[{uri:e,id:s,resolvedUri:e,attributes:{}}]};return i.playlists[s]=i.playlists[0],i.playlists[e]=i.playlists[0],i},RL=(t,e,s=OL)=>{t.uri=e;for(let r=0;r<t.playlists.length;r++)if(!t.playlists[r].uri){const n=`placeholder-uri-${r}`;t.playlists[r].uri=n}const i=Sf(t);Ec(t,(r,n,a,o)=>{if(!r.playlists||!r.playlists.length){if(i&&n==="AUDIO"&&!r.uri)for(let l=0;l<t.playlists.length;l++){const c=t.playlists[l];if(c.attributes&&c.attributes.AUDIO&&c.attributes.AUDIO===a)return}r.playlists=[xr({},r)]}r.playlists.forEach(function(l,c){const d=s(n,a,o,l),p=bu(c,d);l.uri?l.resolvedUri=l.resolvedUri||$i(t.uri,l.uri):(l.uri=c===0?d:p,l.resolvedUri=l.uri),l.id=l.id||p,l.attributes=l.attributes||{},t.playlists[l.id]=l,t.playlists[l.uri]=l})}),Qj(t),Jj(t)};class zx{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(this.offset_!==null||!e.length)return;const[s]=e;s.programDateTime!==void 0&&(this.offset_=s.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;const[s]=e,i=s.startDate.getTime();this.trimProcessedDateRanges_(i),this.pendingDateRanges_=e.reduce((r,n)=>(r.set(n.id,n),r),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(this.offset_===null)return[];const e={},s=[];this.pendingDateRanges_.forEach((i,r)=>{if(!this.processedDateRanges_.has(r)&&(i.startTime=i.startDate.getTime()/1e3-this.offset_,i.processDateRange=()=>this.processDateRange(i),s.push(i),!!i.class))if(e[i.class]){const n=e[i.class].push(i);i.classListIndex=n-1}else e[i.class]=[i],i.classListIndex=0});for(const i of s){const r=e[i.class]||[];i.endDate?i.endTime=i.endDate.getTime()/1e3-this.offset_:i.endOnNext&&r[i.classListIndex+1]?i.endTime=r[i.classListIndex+1].startTime:i.duration?i.endTime=i.startTime+i.duration:i.plannedDuration?i.endTime=i.startTime+i.plannedDuration:i.endTime=i.startTime}return s}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach((i,r)=>{i.startDate.getTime()<e&&this.processedDateRanges_.delete(r)})}}const{EventTarget:eH}=fe,tH=(t,e)=>{if(e.endList||!e.serverControl)return t;const s={};if(e.serverControl.canBlockReload){const{preloadSegment:i}=e;let r=e.mediaSequence+e.segments.length;if(i){const n=i.parts||[],a=CL(e)-1;a>-1&&a!==n.length-1&&(s._HLS_part=a),(a>-1||n.length)&&r--}s._HLS_msn=r}if(e.serverControl&&e.serverControl.canSkipUntil&&(s._HLS_skip=e.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(s).length){const i=new Q.URL(t);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(r){s.hasOwnProperty(r)&&i.searchParams.set(r,s[r])}),t=i.toString()}return t},sH=(t,e)=>{if(!t)return e;const s=Mt(t,e);if(t.preloadHints&&!e.preloadHints&&delete s.preloadHints,t.parts&&!e.parts)delete s.parts;else if(t.parts&&e.parts)for(let i=0;i<e.parts.length;i++)t.parts&&t.parts[i]&&(s.parts[i]=Mt(t.parts[i],e.parts[i]));return!t.skipped&&e.skipped&&(s.skipped=!1),t.preload&&!e.preload&&(s.preload=!1),s},iH=(t,e,s)=>{const i=t.slice(),r=e.slice();s=s||0;const n=[];let a;for(let o=0;o<r.length;o++){const l=i[o+s],c=r[o];l?(a=l.map||a,n.push(sH(l,c))):(a&&!c.map&&(c.map=a),n.push(c))}return n},ML=(t,e)=>{!t.resolvedUri&&t.uri&&(t.resolvedUri=$i(e,t.uri)),t.key&&!t.key.resolvedUri&&(t.key.resolvedUri=$i(e,t.key.uri)),t.map&&!t.map.resolvedUri&&(t.map.resolvedUri=$i(e,t.map.uri)),t.map&&t.map.key&&!t.map.key.resolvedUri&&(t.map.key.resolvedUri=$i(e,t.map.key.uri)),t.parts&&t.parts.length&&t.parts.forEach(s=>{s.resolvedUri||(s.resolvedUri=$i(e,s.uri))}),t.preloadHints&&t.preloadHints.length&&t.preloadHints.forEach(s=>{s.resolvedUri||(s.resolvedUri=$i(e,s.uri))})},FL=function(t){const e=t.segments||[],s=t.preloadSegment;if(s&&s.parts&&s.parts.length){if(s.preloadHints){for(let i=0;i<s.preloadHints.length;i++)if(s.preloadHints[i].type==="MAP")return e}s.duration=t.targetDuration,s.preload=!0,e.push(s)}return e},BL=(t,e)=>t===e||t.segments&&e.segments&&t.segments.length===e.segments.length&&t.endList===e.endList&&t.mediaSequence===e.mediaSequence&&t.preloadSegment===e.preloadSegment,bb=(t,e,s=BL)=>{const i=Mt(t,{}),r=i.playlists[e.id];if(!r||s(r,e))return null;e.segments=FL(e);const n=Mt(r,e);if(n.preloadSegment&&!e.preloadSegment&&delete n.preloadSegment,r.segments){if(e.skip){e.segments=e.segments||[];for(let a=0;a<e.skip.skippedSegments;a++)e.segments.unshift({skipped:!0})}n.segments=iH(r.segments,e.segments,e.mediaSequence-r.mediaSequence)}n.segments.forEach(a=>{ML(a,n.resolvedUri)});for(let a=0;a<i.playlists.length;a++)i.playlists[a].id===e.id&&(i.playlists[a]=n);return i.playlists[e.id]=n,i.playlists[e.uri]=n,Ec(t,(a,o,l,c)=>{if(a.playlists)for(let d=0;d<a.playlists.length;d++)e.id===a.playlists[d].id&&(a.playlists[d]=n)}),i},Tb=(t,e)=>{const s=t.segments||[],i=s[s.length-1],r=i&&i.parts&&i.parts[i.parts.length-1],n=r&&r.duration||i&&i.duration;return e&&n?n*1e3:(t.partTargetDuration||t.targetDuration||10)*500};class au extends eH{constructor(e,s,i={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=Nr("PlaylistLoader");const{withCredentials:r=!1}=i;this.src=e,this.vhs_=s,this.withCredentials=r,this.addDateRangesToTextTrack_=i.addDateRangesToTextTrack;const n=s.options_;this.customTagParsers=n&&n.customTagParsers||[],this.customTagMappers=n&&n.customTagMappers||[],this.llhls=n&&n.llhls,this.dateRangesStorage_=new zx,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);const s=this.dateRangesStorage_.getDateRangesToProcess();!s.length||!this.addDateRangesToTextTrack_||this.addDateRangesToTextTrack_(s)}handleMediaupdatetimeout_(){if(this.state!=="HAVE_METADATA")return;const e=this.media();let s=$i(this.main.uri,e.uri);this.llhls&&(s=tH(s,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:s,withCredentials:this.withCredentials},(i,r)=>{if(this.request){if(i)return this.playlistRequestError(this.request,this.media(),"HAVE_METADATA");this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})}})}playlistRequestError(e,s,i){const{uri:r,id:n}=s;this.request=null,i&&(this.state=i),this.error={playlist:this.main.playlists[n],status:e.status,message:`HLS playlist request error at URL: ${r}.`,responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")}parseManifest_({url:e,manifestString:s}){return Yj({onwarn:({message:i})=>this.logger_(`m3u8-parser warn for ${e}: ${i}`),oninfo:({message:i})=>this.logger_(`m3u8-parser info for ${e}: ${i}`),manifestString:s,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}haveMetadata({playlistString:e,playlistObject:s,url:i,id:r}){this.request=null,this.state="HAVE_METADATA";const n=s||this.parseManifest_({url:i,manifestString:e});n.lastRequest=Date.now(),NL({playlist:n,uri:i,id:r});const a=bb(this.main,n);this.targetDuration=n.partTargetDuration||n.targetDuration,this.pendingMedia_=null,a?(this.main=a,this.media_=this.main.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(Tb(this.media(),!!a)),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),Q.clearTimeout(this.mediaUpdateTimeout),Q.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new zx,this.off()}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,s){if(!e)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);if(typeof e=="string"){if(!this.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(Q.clearTimeout(this.finalRenditionTimeout),s){const a=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=Q.setTimeout(this.media.bind(this,e,!1),a);return}const i=this.state,r=!this.media_||e.id!==this.media_.id,n=this.main.playlists[e.id];if(n&&n.endList||e.endList&&e.segments.length){this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,r&&(this.trigger("mediachanging"),i==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange"));return}if(this.updateMediaUpdateTimeout_(Tb(e,!0)),!!r){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(a,o)=>
245{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=um(e.resolvedUri,o),a)return this.playlistRequestError(this.request,e,i);this.haveMetadata({playlistString:o.responseText,url:e.uri,id:e.id}),i==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}}pause(){this.mediaUpdateTimeout&&(Q.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),this.state==="HAVE_NOTHING"&&(this.started=!1),this.state==="SWITCHING_MEDIA"?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MAIN_MANIFEST":this.state==="HAVE_CURRENT_METADATA"&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(Q.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const s=this.media();if(e){const i=s?(s.partTargetDuration||s.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=Q.setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},i);return}if(!this.started){this.start();return}s&&!s.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(Q.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),!(!this.media()||this.media().endList)&&(this.mediaUpdateTimeout=Q.setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)},e))}start(){if(this.started=!0,typeof this.src=="object"){this.src.uri||(this.src.uri=Q.location.href),this.src.resolvedUri=this.src.uri,setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);return}this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(e,s)=>{if(!this.request)return;if(this.request=null,e)return this.error={status:s.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:s.responseText,code:2},this.state==="HAVE_NOTHING"&&(this.started=!1),this.trigger("error");this.src=um(this.src,s);const i=this.parseManifest_({manifestString:s.responseText,url:this.src});this.setupInitialPlaylist(i)})}srcUri(){return typeof this.src=="string"?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists){this.main=e,RL(this.main,this.srcUri()),e.playlists.forEac
vendor: 11,952 bytes, lines 245-246
245h(i=>{i.segments=FL(i),i.segments.forEach(r=>{ML(r,i.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.main.playlists[0]);return}const s=this.srcUri()||Q.location.href;this.main=Zj(e,s),this.haveMetadata({playlistObject:e,url:s,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,s){const i=this.main,r=e.ID;let n=i.playlists.length;for(;n--;){const a=i.playlists[n];if(a.attributes["PATHWAY-ID"]===r){const o=a.resolvedUri,l=a.id;if(s){const c=this.createCloneURI_(a.resolvedUri,e),d=bu(r,c),p=this.createCloneAttributes_(r,a.attributes),_=this.createClonePlaylist_(a,d,e,p);i.playlists[n]=_,i.playlists[d]=_,i.playlists[c]=_}else i.playlists.splice(n,1);delete i.playlists[l],delete i.playlists[o]}}this.updateOrDeleteCloneMedia(e,s)}updateOrDeleteCloneMedia(e,s){const i=this.main,r=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(n=>{if(!(!i.mediaGroups[n]||!i.mediaGroups[n][r])){for(const a in i.mediaGroups[n])if(a===r){for(const o in i.mediaGroups[n][a])i.mediaGroups[n][a][o].playlists.forEach((c,d)=>{const p=i.playlists[c.id],_=p.id,b=p.resolvedUri;delete i.playlists[_],delete i.playlists[b]});delete i.mediaGroups[n][a]}}}),s&&this.createClonedMediaGroups_(e)}addClonePathway(e,s={}){const i=this.main,r=i.playlists.length,n=this.createCloneURI_(s.resolvedUri,e),a=bu(e.ID,n),o=this.createCloneAttributes_(e.ID,s.attributes),l=this.createClonePlaylist_(s,a,e,o);i.playlists[r]=l,i.playlists[a]=l,i.playlists[n]=l,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){const s=e.ID,i=e["BASE-ID"],r=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(n=>{if(!(!r.mediaGroups[n]||r.mediaGroups[n][s]))for(const a in r.mediaGroups[n]){if(a===i)r.mediaGroups[n][s]={};else continue;for(const o in r.mediaGroups[n][a]){const l=r.mediaGroups[n][a][o];r.mediaGroups[n][s][o]=xr({},l);const c=r.mediaGroups[n][s][o],d=this.createCloneURI_(l.resolvedUri,e);c.resolvedUri=d,c.uri=d,c.playlists=[],l.playlists.forEach((p,_)=>{const b=r.playlists[p.id],T=OL(n,s,o),y=bu(s,T);if(b&&!r.playlists[y]){const x=this.createClonePlaylist_(b,y,e),A=x.resolvedUri;r.playlists[y]=x,r.playlists[A]=x}c.playlists[_]=this.createClonePlaylist_(p,y,e)})}}})}createClonePlaylist_(e,s,i,r){const n=this.createCloneURI_(e.resolvedUri,i),a={resolvedUri:n,uri:n,id:s};return e.segments&&(a.segments=[]),r&&(a.attributes=r),Mt(e,a)}createCloneURI_(e,s){const i=new URL(e);i.hostname=s["URI-REPLACEMENT"].HOST;const r=s["URI-REPLACEMENT"].PARAMS;for(const n of Object.keys(r))i.searchParams.set(n,r[n]);return i.href}createCloneAttributes_(e,s){const i={"PATHWAY-ID":e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(r=>{s[r]&&(i[r]=e)}),i}getKeyIdSet(e){if(e.contentProtection){const s=new Set;for(const i in e.contentProtection){const r=e.contentProtection[i].attributes.keyId;r&&s.add(r.toLowerCase())}return s}}}const{xhr:rH}=fe,Sb=function(t,e,s,i){const r=t.responseType==="arraybuffer"?t.response:t.responseText;!e&&r&&(t.responseTime=Date.now(),t.roundTripTime=t.responseTime-t.requestTime,t.bytesReceived=r.byteLength||r.length,t.bandwidth||(t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3))),s.headers&&(t.responseHeaders=s.headers),e&&e.code==="ETIMEDOUT"&&(t.timedout=!0),!e&&!t.aborted&&s.statusCode!==200&&s.statusCode!==206&&s.statusCode!==0&&(e=new Error("XHR Failed with a response of: "+(t&&(r||t.responseText)))),i(e,t)},nH=(t,e)=>{if(!t||!t.size)return;let s=e;return t.forEach(i=>{s=i(s)}),s},aH=(t,e,s,i)=>{!t||!t.size||t.forEach(r=>{r(e,s,i)})},UL=function(){const t=function e(s,i){s=Mt({timeout:45e3},s);const r=e.beforeRequest||fe.Vhs.xhr.beforeRequest,n=e._requestCallbackSet||fe.Vhs.xhr._requestCallbackSet||new Set,a=e._responseCallbackSet||fe.Vhs.xhr._responseCallbackSet;r&&typeof r=="function"&&(fe.log.warn("beforeRequest is deprecated, use onRequest instead."),n.add(r));const o=fe.Vhs.xhr.original===!0?rH:fe.Vhs.xhr,l=nH(n,s);n.delete(r);const c=o(l||s,function(p,_){return aH(a,c,p,_),Sb(c,p,_,i)}),d=c.abort;return c.abort=function(){return c.aborted=!0,d.apply(c,arguments)},c.uri=s.uri,c.requestTime=Date.now(),c};return t.original=!0,t},oH=function(t){let e;const s=t.offset;return typeof t.offset=="bigint"||typeof t.length=="bigint"?e=Q.BigInt(t.offset)+Q.BigInt(t.length)-Q.BigInt(1):e=t.offset+t.length-1,"bytes="+s+"-"+e},Eb=function(t){const e={};return t.byterange&&(e.Range=oH(t.byterange)),e},lH=function(t,e){return t.start(e)+"-"+t.end(e)},uH=function(t,e){const s=t.toString(16);return"00".substring(0,2-s.length)+s+(e%2?" ":"")},cH=function(t){return t>=32&&t<126?String.fromCharCode(t):"."},$L=function(t){const e={};return Object.keys(t).forEach(s=>{const i=t[s];CI(i)?e[s]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:e[s]=i}),e},cm=function(t){const e=t.byterange||{length:1/0,offset:0};return[e.length,e.offset,t.resolvedUri].join(",")},jL=function(t){return t.resolvedUri},HL=t=>{const e=Array.prototype.slice.call(t),s=16;let i="",r,n;for(let a=0;a<e.length/s;a++)r=e.slice(a*s,a*s+s).map(uH).join(""),n=e.slice(a*s,a*s+s).map(cH).join(""),i+=r+" "+n+`
246`;return i},dH=({bytes:t})=>HL(t),hH=t=>{let e="",s;for(s=0;s<t.length;s++)e+=lH(t,s)+" ";return e};var fH=Object.freeze({__proto__:null,createTransferableMessage:$L,initSegmentId:cm,segmentKeyId:jL,hexDump:HL,tagDump:dH,textRanges:hH});const qL=.25,pH=(t,e)=>{if(!e.dateTimeObject)return null;const s=e.videoTimingInfo.transmuxerPrependedSeconds,r=e.videoTimingInfo.transmuxedPresentationStart+s,n=t-r;return new Date(e.dateTimeObject.getTime()+n*1e3)},mH=t=>t.transmuxedPresentationEnd-t.transmuxedPresentationStart-t.transmuxerPrependedSeconds,gH=(t,e)=>{let s;try{s=new Date(t)}catch{return null}if(!e||!e.segments||e.segments.length===0)return null;let i=e.segments[0];if(s<new Date(i.dateTimeObject))return null;for(let l=0;l<e.segments.length-1;l++){i=e.segments[l];const c=new Date(e.segments[l+1].dateTimeObject);if(s<c)break}const r=e.segments[e.segments.length-1],n=r.dateTimeObject,a=r.videoTimingInfo?mH(r.videoTimingInfo):r.duration+r.duration*qL,o=new Date(n.getTime()+a*1e3);return s>o?null:(s>new Date(n)&&(i=r),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:qi.duration(e,e.mediaSequence+e.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})},yH=(t,e)=>{if(!e||!e.segments||e.segments.length===0)return null;let s=0,i;for(let n=0;n<e.segments.length&&(i=e.segments[n],s=i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:s+i.duration,!(t<=s));n++);const r=e.segments[e.segments.length-1];if(r.videoTimingInfo&&r.videoTimingInfo.transmuxedPresentationEnd<t)return null;if(t>s){if(t>s+r.duration*qL)return null;i=r}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:s-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}},_H=(t,e)=>{let s,i;try{s=new Date(t),i=new Date(e)}catch{}const r=s.getTime();return(i.getTime()-r)/1e3},vH=t=>{if(!t.segments||t.segments.length===0)return!1;for(let e=0;e<t.segments.length;e++)if(!t.segments[e].dateTimeObject)return!1;return!0},bH=({playlist:t,time:e=void 0,callback:s})=>{if(!s)throw new Error("getProgramTime: callback must be provided");if(!t||e===void 0)return s({message:"getProgramTime: playlist and time must be provided"});const i=yH(e,t);if(!i)return s({message:"valid programTime was not found"});if(i.type==="estimate")return s({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:i.estimatedStart});const r={mediaSeconds:e},n=pH(e,i.segment);return n&&(r.programDateTime=n.toISOString()),s(null,r)},VL=({programTime:t,playlist:e,retryCount:s=2,seekTo:i,pauseAfterSeek:r=!0,tech:n,callback:a})=>{if(!a)throw new Error("seekToProgramTime: callback must be provided");if(typeof t>"u"||!e||!i)return a({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!e.endList&&!n.hasStarted_)return a({message:"player must be playing a live stream to start buffering"});if(!vH(e))return a({message:"programDateTime tags must be provided in the manifest "+e.resolvedUri});const o=gH(t,e);if(!o)return a({message:`${t} was not found in the stream`});const l=o.segment,c=_H(l.dateTimeObject,t);if(o.type==="estimate"){if(s===0)return a({message:`${t} is not buffered yet. Try again`});i(o.estimatedStart+c),n.one("seeked",()=>{VL({programTime:t,playlist:e,retryCount:s-1,seekTo:i,pauseAfterSeek:r,tech:n,callback:a})});return}const d=l.start+c,p=()=>a(null,n.currentTime());n.one("seeked",p),r&&n.pause(),i(d)},w_=(t,e)=>{if(t.readyState===4)return e()},TH=(t,e,s)=>{let i=[],r,n=!1;const a=function(d,p,_,b){return p.abort(),n=!0,s(d,p,_,b)},o=function(d,p){if(n)return;if(d)return a(d,p,"",i);const _=p.responseText.substring(i&&i.byteLength||0,p.responseText.length);if(i=E7(i,wI(_,!0)),r=r||Jd(i),i.length<10||r&&i.length<r+2)return w_(p,()=>a(d,p,"",i));const b=b1(i);return b==="ts"&&i.length<188?w_(p,()=>a(d,p,"",i)):!b&&i.length<376?w_(p,()=>a(d,p,"",i)):a(null,p,b,i)},c=e({uri:t,beforeSend(d){d.overrideMimeType("text/plain; charset=x-user-defined"),d.addEventListener("progress",function({total:p,loaded:_}){return Sb(d,null,{statusCode:d.status},o)})}},function(d,p){return Sb(c,d,p,o)});return c},{EventTarget:SH}=fe,Gx=function(t,e){if(!BL(t,e)||t.sidx&&e.sidx&&(t.sidx.offset!==e.sidx.offset||t.sidx.length!==e.sidx.length))return!1;if(!t.sidx&&e.sidx||t.sidx&&!e.sidx||t.segments&&!e.segments||!t.segments&&e.segments)return!1;if(!t.segments&&!e.segments)return!0;for(let s=0;s<t.segments.length;s++){const i=t.segments[s],r=e.segments[s];if(i.uri!==r.uri)return!1;if(!i.byterange&&!r.byterange)continue;const n=i.byterange,a=r.byterange;if(n&&!a||!n&&a||n.offset!==a.offset||n.length!==a.length)return!1}return!0},EH=(t,e,s,i)=>{const r=i.attributes.NAME||s;return`placeholder-uri-${t}-${e}-${r}`},xH=({mainXml:t,srcUrl:e,clientOffset:s,sidxMapping:i,previousManifest:r})=>{const n=W9(t,{manifestUri:e,clientOffset:s,sidxMapping:i,previousManifest:r});return RL(n,e,EH),n},CH=(t,e)=>{Ec(t,(s,i,r,n)=>{n in e.mediaGroups[i][r]||delete t.mediaGroups[i][r][n]})},wH=(t,e,s)=>{let i=!0,r=Mt(t,{duration:e.duration,minimumUpdatePeriod:e.minimumUpdatePeriod,timelineStarts:e.timelineStarts});for(let n=0;n<e.playlists.length;n++){const a=e.playlists[n];if(a.sidx){const l=yg(a.sidx);s&&s[l]&&s[l].sidx&&y1(a,s[l].sidx,a.sidx.resolvedUri)}const o=bb(r,a,Gx);o&&(r=o,i=!1)}return Ec(e,(n,a,o,l)=>{if(n.playlists&&n.playlists.length){const c=n.playlists[0].id,d=bb(r,n.playlists[0],Gx);d&&(r=d,l in r.mediaGroups[a][o]||(r.mediaGroups[a][o][l]=n),r.mediaGroups[a][o][l].playlists[0]=r.playlists[c],i=!1)}}),CH(r,e),e.minimumUpdatePeriod!==t.minimumUpdatePeriod&&(i=!1),i?null:r},AH=(t,e)=>(!t.map&&!e.map||!!(t.map&&e.map&&t.map.byterange.offset===e.map.byterange.offset&&t.map.byterange.length===e.map.byterange.length))&&t.uri===e.uri&&t.byterange.offset===e.byterange.offset&&t.byterange.length===e.byterange.length,Wx=(t,e)=>{const s={};for(const i in t){const n=t[i].sidx;if(n){const a=yg(n);if(!e[a])break;const o=e[a].sidxInfo;AH(o,n)&&(s[a]=e[a])}}return s},kH=(t,e)=>{let i=Wx(t.playlists,e);return Ec(t,(r,n,a,o)=>{if(r.playlists&&r.playlists.length){const l=r.playlists;i=Mt(i,Wx(l,e))}}),i};class xb extends SH{constructor(e,s,i={},r){super(),this.mainPlaylistLoader_=r||this,r||(this.isMain_=!0);const{withCredentials:n=!1}=i;if(this.vhs_=s,this.withCredentials=n,this.addMetadataToTextTrack=i.addMetadataToTextTrack,!e)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",()=>{this.refreshXml_()}),this.on("mediaupdatetimeout",()=>{this.refreshMedia_(this.media().id)}),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=Nr("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}requestErrored_(e,s,i){if(!this.request)return!0;
246if(this.request=null,e)return this.error=typeof e=="object"&&!(e instanceof Error)?e:{status:s.status,message:"DASH request error at URL: "+s.uri,response:s.response,code:2},i&&(this.state=i),this.trigger("error"),!0}addSidxSegments_(e,s,i){const r=e.sidx&&yg(e.sidx);if(!e.sidx||!r||this.mainPlaylistLoader_.sidxMapping_[r]){this.mediaRequest_=Q.setTimeout(()=>i(!1),0);return}const n=um(e.sidx.resolvedUri),a=(o,l)=>{if(this.requestErrored_(o,l,s))return;const c=this.mainPlaylistLoader_.sidxMapping_;let d;try{d=e$(et(l.response).subarray(8))}catch(p){this.requestErrored_(p,l,s);return}return c[r]={sidxInfo:e.sidx,sidx:d},y1(e,d,e.sidx.resolvedUri),i(!0)};this.request=TH(n,this.vhs_.xhr,(o,l,c,d)=>{if(o)return a(o,l);if(!c||c!=="mp4")return a({status:l.status,message:`Unsupported ${c||"unknown"} container type for sidx segment at URL: ${n}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},l);const{offset:p,length:_}=e.sidx.byterange;if(d.length>=_+p)return a(o,{response:d.subarray(p,p+_),status:l.status,uri:l.uri});this.request=this.vhs_.xhr({uri:n,responseType:"arraybuffer",headers:Eb({byterange:e.sidx.byterange})},a)})}dispose(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},Q.clearTimeout(this.minimumUpdatePeriodTimeout_),Q.clearTimeout(this.mediaRequest_),Q.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);const s=this.state;if(typeof e=="string"){if(!this.mainPlaylistLoader_.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}const i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList){this.state="HAVE_METADATA",this.media_=e,i&&(this.trigger("mediachanging"),this.trigger("mediachange"));return}i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,s,r=>{this.haveMetadata({startingState:s,playlist:e})}))}haveMetadata({startingState:e,playlist:s}){this.state="HAVE_METADATA",this.loadedPlaylists_[s.id]=s,this.mediaRequest_=null,this.refreshMedia_(s.id),e==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),Q.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(Q.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),this.state==="HAVE_NOTHING"&&(this.started=!1)}load(e){Q.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const s=this.media();if(e){const i=s?s.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=Q.setTimeout(()=>this.load(),i);return}if(!this.started){this.start();return}s&&!s.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist")}start(){if(this.started=!0,!this.isMain_){this.mediaRequest_=Q.setTimeout(()=>this.haveMain_(),0);return}this.requestMain_((e,s)=>{this.haveMain_(),!this.hasPendingRequest()&&!this.media_&&this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(e){this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(s,i)=>{if(this.requestErrored_(s,i)){this.state==="HAVE_NOTHING"&&(this.started=!1);return}const r=i.responseText!==this.mainPlaylistLoader_.mainXml_;if(this.mainPlaylistLoader_.mainXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?this.mainLoaded_=Date.parse(i.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=um(this.mainPlaylistLoader_.srcUrl,i),r){this.handleMain_(),this.syncCl
vendor: 55,094 bytes, lines 246-251
246ientServerClock_(()=>e(i,r));return}return e(i,r)})}syncClientServerClock_(e){const s=X9(this.mainPlaylistLoader_.mainXml_);if(s===null)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e();if(s.method==="DIRECT")return this.mainPlaylistLoader_.clientOffset_=s.value-Date.now(),e();this.request=this.vhs_.xhr({uri:$i(this.mainPlaylistLoader_.srcUrl,s.value),method:s.method,withCredentials:this.withCredentials},(i,r)=>{if(!this.request)return;if(i)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e();let n;s.method==="HEAD"?!r.responseHeaders||!r.responseHeaders.date?n=this.mainLoaded_:n=Date.parse(r.responseHeaders.date):n=Date.parse(r.responseText),this.mainPlaylistLoader_.clientOffset_=n-Date.now(),e()})}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){this.mediaRequest_=null;const e=this.mainPlaylistLoader_.main;let s=xH({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(s=wH(e,s,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=s||e;const i=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];return i&&i!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=i),(!e||s&&s.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(s),!!s}updateMinimumUpdatePeriodTimeout_(){const e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(Q.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let s=e.main&&e.main.minimumUpdatePeriod;if(s===0&&(e.media()?s=e.media().targetDuration*1e3:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),typeof s!="number"||s<=0){s<0&&this.logger_(`found invalid minimumUpdatePeriod of ${s}, not setting a timeout`);return}this.createMUPTimeout_(s)}createMUPTimeout_(e){const s=this.mainPlaylistLoader_;s.minimumUpdatePeriodTimeout_=Q.setTimeout(()=>{s.minimumUpdatePeriodTimeout_=null,s.trigger("minimumUpdatePeriod"),s.createMUPTimeout_(e)},e)}refreshXml_(){this.requestMain_((e,s)=>{s&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=kH(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,i=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(e){if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const s=this.mainPlaylistLoader_.main.playlists,i=!this.media_||this.media_!==s[e];if(i?this.media_=s[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const r=()=>{this.media().endList||(this.mediaUpdateTimeout=Q.setTimeout(()=>{this.trigger("mediaupdatetimeout"),r()},Tb(this.media(),!!i)))};r()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){const s=this.mainPlaylistLoader_.main.eventStream.map(i=>({cueTime:i.start,frames:[{data:i.messageData}]}));this.addMetadataToTextTrack("EventStream",s,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){const s=new Set;for(const i in e.contentProtection){const r=e.contentProtection[i].attributes["cenc:default_KID"];r&&s.add(r.replace(/-/g,"").toLowerCase())}return s}}}var Ns={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};const DH=t=>{const e=new Uint8Array(new ArrayBuffer(t.length));for(let s=0;s<t.length;s++)e[s]=t.charCodeAt(s);return e.buffer},zL=function(t){return t.on=t.addEventListener,t.off=t.removeEventListener,t},IH=function(t){try{return URL.createObjectURL(new Blob([t],{type:"application/javascript"}))}catch{const s=new BlobBuilder;return s.append(t),URL.createObjectURL(s.getBlob())}},GL=function(t){return function(){const e=IH(t),s=zL(new Worker(e));s.objURL=e;const i=s.terminate;return s.on=s.addEventListener,s.off=s.removeEventListener,s.terminate=function(){return URL.revokeObjectURL(e),i.call(this)},s}},WL=function(t){return`var browserWorkerPolyFill = ${zL.toString()};
247browserWorkerPolyFill(self);
248`+t},XL=function(t){return t.toString().replace(/^function.+?{/,"").slice(0,-1)},PH=WL(XL(function(){var t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=function(){this.init=function(){var u={};this.on=function(h,m){u[h]||(u[h]=[]),u[h]=u[h].concat(m)},this.off=function(h,m){var f;return u[h]?(f=u[h].indexOf(m),u[h]=u[h].slice(),u[h].splice(f,1),f>-1):!1},this.trigger=function(h){var m,f,g,v;if(m=u[h],!!m)if(arguments.length===2)for(g=m.length,f=0;f<g;++f)m[f].call(this,arguments[1]);else{for(v=[],f=arguments.length,f=1;f<arguments.length;++f)v.push(arguments[f]);for(g=m.length,f=0;f<g;++f)m[f].apply(this,v)}},this.dispose=function(){u={}}}};e.prototype.pipe=function(u){return this.on("data",function(h){u.push(h)}),this.on("done",function(h){u.flush(h)}),this.on("partialdone",function(h){u.partialFlush(h)}),this.on("endedtimeline",function(h){u.endTimeline(h)}),this.on("reset",function(h){u.reset(h)}),u},e.prototype.push=function(u){this.trigger("data",u)},e.prototype.flush=function(u){this.trigger("done",u)},e.prototype.partialFlush=function(u){this.trigger("partialdone",u)},e.prototype.endTimeline=function(u){this.trigger("endedtimeline",u)},e.prototype.reset=function(u){this.trigger("reset",u)};var s=e,i=Math.pow(2,32),r=function(u){var h=new DataView(u.buffer,u.byteOffset,u.byteLength),m;return h.getBigUint64?(m=h.getBigUint64(0),m<Number.MAX_SAFE_INTEGER?Number(m):m):h.getUint32(0)*i+h.getUint32(4)},n={getUint64:r,MAX_UINT32:i},a=n.MAX_UINT32,o,l,c,d,p,_,b,T,y,x,A,C,S,E,w,O,R,$,k,P,j,F,H,te,oe,se,K,X,ne,de,he,Le,qe,Ge,Xe,Et;(function(){var u;if(H={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},!(typeof Uint8Array>"u")){for(u in H)H.hasOwnProperty(u)&&(H[u]=[u.charCodeAt(0),u.charCodeAt(1),u.charCodeAt(2),u.charCodeAt(3)]);te=new Uint8Array([105,115,111,109]),se=new Uint8Array([97,118,99,49]),oe=new Uint8Array([0,0,0,1]),K=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),X=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),ne={video:K,audio:X},Le=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),he=new Uint8Array([0,0,0,0,0,0,0,0]),qe=new Uint8Array([0,0,0,0,0,0,0,0]),Ge=qe,Xe=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Et=qe,de=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),o=function(u){var h=[],m=0,f,g,v;for(f=1;f<arguments.length;f++)h.push(arguments[f]);for(f=h.length;f--;)m+=h[f].byteLength;for(g=new Uint8Array(m+8),v=new DataView(g.buffer,g.byteOffset,g.byteLength),v.setUint32(0,g.byteLength),g.set(u,4),f=0,m=8;f<h.length;f++)g.set(h[f],m),m+=h[f].byteLength;return g},l=function(){return o(H.dinf,o(H.dref,Le))},c=function(u){return o(H.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,u.audioobjecttype<<3|u.samplingfrequencyindex>>>1,u.samplingfrequencyindex<<7|u.channelcount<<3,6,1,2]))},d=function(){return o(H.ftyp,te,oe,te,se)},O=function(u){return o(H.hdlr,ne[u])},p=function(u){return o(H.mdat,u)},w=function(u){var h=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,u.duration>>>24&255,u.duration>>>16&255,u.duration>>>8&255,u.duration&255,85,196,0,0]);return u.samplerate&&(h[12]=u.samplerate>>>24&255,h[13]=u.samplerate>>>16&255,h[14]=u.samplerate>>>8&255,h[15]=u.samplerate&255),o(H.mdhd,h)},E=function(u){return o(H.mdia,w(u),O(u.type),b(u))},_=function(u){return o(H.mfhd,new Uint8Array([0,0,0,0,(u&4278190080)>>24,(u&16711680)>>16,(u&65280)>>8,u&255]))},b=function(u){return o(H.minf,u.type==="video"?o(H.vmhd,de):o(H.smhd,he),l(),$(u))},T=function(u,h){for(var m=[],f=h.length;f--;)m[f]=P(h[f]);return o.apply(null,[H.moof,_(u)].concat(m))},y=function(u){for(var h=u.length,m=[];h--;)m[h]=C(u[h]);return o.apply(null,[H.moov,A(4294967295)].concat(m).concat(x(u)))},x=function(u){for(var h=u.length,m=[];h--;)m[h]=j(u[h]);return o.apply(null,[H.mvex].concat(m))},A=function(u){var h=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(u&4278190080)>>24,(u&16711680)>>16,(u&65280)>>8,u&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return o(H.mvhd,h)},R=function(u){var h=u.samples||[],m=new Uint8Array(4+h.length),f,g;for(g=0;g<h.length;g++)f=h[g].flags,m[g+4]=f.dependsOn<<4|f.isDependedOn<<2|f.hasRedundancy;return o(H.sdtp,m)},$=function(u){return o(H.stbl,k(u),o(H.stts,Et),o(H.stsc,Ge),o(H.stsz,Xe),o(H.stco,qe))},function(){var u,h;k=function(m){return o(H.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),m.type==="video"?u(m):h(m))},u=function(m){var f=m.sps||[],g=m.pps||[],v=[],D=[],I,L;for(I=0;I<f.length;I++)v.push((f[I].byteLength&65280)>>>8),v.push(f[I].byteLength&255),v=v.concat(Array.prototype.slice.call(f[I]));for(I=0;I<g.length;I++)D.push((g[I].byteLength&65280)>>>8),D.push(g[I].byteLength&255),D=D.concat(Array.prototype.slice.call(g[I]));if(L=[H.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(m.width&65280)>>8,m.width&255,(m.height&65280)>>8,m.height&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o(H.avcC,new Uint8Array([1,m.profileIdc,m.profileCompatibility,m.levelIdc,255].concat([f.length],v,[g.length],D))),o(H.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],m.sarRatio){var N=m.sarRatio[0],M=m.sarRatio[1];L.push(o(H.pasp,new Uint8Array([(N&4278190080)>>24,(N&16711680)>>16,(N&65280)>>8,N&255,(M&4278190080)>>24,(M&16711680)>>16,(M&65280)>>8,M&255])))}return o.apply(null,L)},h=function(m){return o(H.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(m.channelcount&65280)>>8,m.channelcount&255,(m.samplesize&65280)>>8,m.samplesize&255,0,0,0,0,(m.samplerate&65280)>>8,m.samplerate&255,0,0]),c(m))}}(),S=function(u){var h=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(u.id&4278190080)>>24,(u.id&16711680)>>16,(u.id&65280)>>8,u.id&255,0,0,0,0,(u.duration&4278190080)>>24,(u.duration&16711680)>>16,(u.duration&65280)>>8,u.duration&255,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(u.width&65280)>>8,u.width&255,0,0,(u.height&65280)>>8,u.height&255,0,0]);return o(H.tkhd,h)},P=function(u){var h,m,f,g,v,D,I;return h=o(H.tfhd,new Uint8Array([0,0,0,58,(u.id&4278190080)>>24,(u.id&16711680)>>16,(u.id&65280)>>8,u.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),D=Math.floor(u.baseMediaDecodeTime/a),I=Math.floor(u.baseMediaDecodeTime%a),m=o(H.tfdt,new Uint8Array([1,0,0,0,D>>>24&255,D>>>16&255,D>>>8&255,D&255,I>>>24&255,I>>>16&255,I>>>8&255,I&255])),v=92,u.type==="audio"?(f=F(u,v),o(H.traf,h,m,f)):(g=R(u),f=F(u,g.length+v),o(H.traf,h,m,f,g))},C=function(u){return u.duration=u.duration||4294967295,o(H.trak,S(u),E(u))},j=function(u){var h=new Uint8Array([0,0,0,0,(u.id&4278190080)>>24,(u.id&16711680)>>16,(u.id&65280)>>8,u.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return u.type!=="video"&&(h[h.length-1]=0),o(H.trex,h)},function(){var u,h,m;m=function(f,g){var v=0,D=0,I=0,L=0;return f.length&&(f[0].duration!==void 0&&(v=1),f[0].size!==void 0&&(D=2),f[0].flags!==void 0&&(I=4),f[0].compositionTimeOffset!==void 0&&(L=8)),[0,0,v|D|I|L,1,(f.length&4278190080)>>>24,(f.length&16711680)>>>16,(f.length&65280)>>>8,f.length&255,(g&4278190080)>>>24,(g&16711680)>>>16,(g&65280)>>>8,g&255]},h=function(f,g){var v,D,I,L,N,M;for(L=f.samples||[],g+=20+16*L.length,I=m(L,g),D=new Uint8Array(I.length+L.length*16),D.set(I),v=I.length,M=0;M<L.length;M++)N=L[M],D[v++]=(N.duration&4278190080)>>>24,D[v++]=(N.duration&16711680)>>>16,D[v++]=(N.duration&65280)>>>8,D[v++]=N.duration&255,D[v++]=(N.size&4278190080)>>>24,D[v++]=(N.size&16711680)>>>16,D[v++]=(N.size&65280)>>>8,D[v++]=N.size&255,D[v++]=N.flags.isLeading<<2|N.flags.dependsOn,D[v++]=N.flags.isDependedOn<<6|N.flags.hasRedundancy<<4|N.flags.paddingValue<<1|N.flags.isNonSyncSample,D[v++]=N.flags.degradationPriority&61440,D[v++]=N.flags.degradationPriority&15,D[v++]=(N.compositionTimeOffset&4278190080)>>>24,D[v++]=(N.compositionTimeOffset&16711680)>>>16,D[v++]=(N.compositionTimeOffset&65280)>>>8,D[v++]=N.compositionTimeOffset&255;return o(H.trun,D)},u=function(f,g){var v,D,I,L,N,M;for(L=f.samples||[],g+=20+8*L.length,I=m(L,g),v=new Uint8Array(I.length+L.length*8),v.set(I),D=I.length,M=0;M<L.length;M++)N=L[M],v[D++]=(N.duration&4278190080)>>>24,v[D++]=(N.duration&16711680)>>>16,v[D++]=(N.duration&65280)>>>8,v[D++]=N.duration&255,v[D++]=(N.size&4278190080)>>>24,v[D++]=(N.size&16711680)>>>16,v[D++]=(N.size&65280)>>>8,v[D++]=N.size&255;return o(H.trun,v)},F=function(f,g){return f.type==="audio"?u(f,g):h(f,g)}}();var me={ftyp:d,mdat:p,moof:T,moov:y,initSegment:function(u){var h=d(),m=y(u),f;return f=new Uint8Array(h.byteLength+m.byteLength),f.set(h),f.set(m,h.byteLength),f}},Ie=function(u){var h,m,f=[],g=[];for(g.byteLength=0,g.nalCount=0,g.duration=0,f.byteLength=0,h=0;h<u.length;h++)m=u[h],m.nalUnitType==="access_unit_delimiter_rbsp"?(f.length&&(f.duration=m.dts-f.dts,g.byteLength+=f.byteLength,g.nalCount+=f.length,g.duration+=f.duration,g.push(f)),f=[m],f.byteLength=m.data.byteLength,f.pts=m.pts,f.dts=m.dts):(m.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"&&(f.keyFrame=!0),f.duration=m.dts-f.dts,f.byteLength+=m.data.byteLength,f.push(m));return g.length&&(!f.duration||f.duration<=0)&&(f.duration=g[g.length-1].duration),g.byteLength+=f.byteLength,g.nalCount+=f.length,g.duration+=f.duration,g.push(f),g},De=function(u){var h,m,f=[],g=[];for(f.byteLength=0,f.nalCount=0,f.duration=0,f.pts=u[0].pts,f.dts=u[0].dts,g.byteLength=0,g.nalCount=0,g.duration=0,g.pts=u[0].pts,g.dts=u[0].dts,h=0;h<u.length;h++)m=u[h],m.keyFrame?(f.length&&(g.push(f),g.byteLength+=f.byteLength,g.nalCount+=f.nalCount,g.duration+=f.duration),f=[m],f.nalCount=m.length,f.byteLength=m.byteLength,f.pts=m.pts,f.dts=m.dts,f.duration=m.duration):(f.duration+=m.duration,f.nalCount+=m.length,f.byteLength+=m.byteLength,f.push(m));return g.length&&f.duration<=0&&(f.duration=g[g.length-1].duration),g.byteLength+=f.byteLength,g.nalCount+=f.nalCount,g.duration+=f.duration,g.push(f),g},Fe=function(u){var h;return!u[0][0].keyFrame&&u.length>1&&(h=u.shift(),u.byteLength-=h.byteLength,u.nalCount-=h.nalCount,u[0][0].dts=h.dts,u[0][0].pts=h.pts,u[0][0].duration+=h.duration),u},Ze=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},rt=function(u,h){var m=Ze();return m.dataOffset=h,m.compositionTimeOffset=u.pts-u.dts,m.duration=u.duration,m.size=4*u.length,m.size+=u.byteLength,u.keyFrame&&(m.flags.dependsOn=2,m.flags.isNonSyncSample=0),m},W=function(u,h){var m,f,g,v,D,I=h||0,L=[];for(m=0;m<u.length;m++)for(v=u[m],f=0;f<v.length;f++)D=v[f],g=rt(D,I),I+=g.size,L.push(g);return L},q=function(u){var h,m,f,g,v,D,I=0,L=u.byteLength,N=u.nalCount,M=L+4*N,G=new Uint8Array(M),le=new DataView(G.buffer);for(h=0;h<u.length;h++)for(g=u[h],m=0;m<g.length;m++)for(v=g[m],f=0;f<v.length;f++)D=v[f],le.setUint32(I,D.data.byteLength),I+=4,G.set(D.data,I),I+=D.data.byteLength;return G},re=function(u,h){var m,f=h||0,g=[];return m=rt(u,f),g.push(m),g},ve=function(u){var h,m,f=0,g=u.byteLength,v=u.length,D=g+4*v,I=new Uint8Array(D),L=new DataView(I.buffer);for(h=0;h<u.length;h++)m=u[h],L.setUint32(f,m.data.byteLength),f+=4,I.set(m.data,f),f+=m.data.byteLength;return I},ge={groupNalsIntoFrames:Ie,groupFramesIntoGops:De,extendFirstKeyFrame:Fe,generateSampleTable:W,concatenateNalData:q,generateSampleTableForFrame:re,concatenateNalDataForFrame:ve},be=[33,16,5,32,164,27],Pe=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],U=function(u){for(var h=[];u--;)h.push(0);return h},z=function(u){return Object.keys(u).reduce(function(h,m){return h[m]=new Uint8Array(u[m].reduce(function(f,g){return f.concat(g)},[])),h},{})},ee,Ee=function(){if(!ee){var u={96e3:[be,[227,64],U(154),[56]],88200:[be,[231],U(170),[56]],64e3:[be,[248,192],U(240),[56]],48e3:[be,[255,192],U(268),[55,148,128],U(54),[112]],44100:[be,[255,192],U(268),[55,163,128],U(84),[112]],32e3:[be,[255,192],U(268),[55,234],U(226),[112]],24e3:[be,[255,192],U(268),[55,255,128],U(268),[111,112],U(126),[224]],16e3:[be,[255,192],U(268),[55,255,128],U(268),[111,255],U(269),[223,108],U(195),[1,192]],12e3:[Pe,U(268),[3,127,248],U(268),[6,255,240],U(268),[13,255,224],U(268),[27,253,128],U(259),[56]],11025:[Pe,U(268),[3,127,248],U(268),[6,255,240],U(268),[13,255,224],U(268),[27,255,192],U(268),[55,175,128],U(108),[112]],8e3:[Pe,U(268),[3,121,16],U(47),[7]]};ee=z(u)}return ee},we=9e4,xe,ae,ce,Ve,Ke,Pt,Lt;xe=function(u){return u*we},ae=function(u,h){return u*h},ce=function(u){return u/we},Ve=function(u,h){return u/h},Ke=function(u,h){return xe(Ve(u,h))},Pt=function(u,h){return ae(ce(u),h)},Lt=function(u,h,m){return ce(m?u:u-h)};var Ue={ONE_SECOND_IN_TS:we,secondsToVideoTs:xe,secondsToAudioTs:ae,videoTsToSeconds:ce,audioTsToSeconds:Ve,audioTsToVideoTs:Ke,videoTsToAudioTs:Pt,metadataTsToSeconds:Lt},fs=Ee,ws=Ue,Wn=function(u){var h,m,f=0;for(h=0;h<u.length;h++)m=u[h],f+=m.data.byteLength;return f},_s=function(u,h,m,f){var g,v=0,D=0,I=0,L=0,N,M,G;if(h.length&&(g=ws.audioTsToVideoTs(u.baseMediaDecodeTime,u.samplerate),v=Math.ceil(ws.ONE_SECOND_IN_TS/(u.samplerate/1024)),m&&f&&(D=g-Math.max(m,f),I=Math.floor(D/v),L=I*v),!(I<1||L>ws.ONE_SECOND_IN_TS/2))){for(N=fs()[u.samplerate],N||(N=h[0].data),M=0;M<I;M++)G=h[0],h.splice(0,0,{data:N,dts:G.dts-v,pts:G.pts-v});return u.baseMediaDecodeTime-=Math.floor(ws.videoTsToAudioTs(L,u.samplerate)),L}},vs=function(u,h,m){return h.minSegmentDts>=m?u:(h.minSegmentDts=1/0,u.filter(function(f){return f.dts>=m?(h.minSegmentDts=Math.min(h.minSegmentDts,f.dts),h.minSegmentPts=h.minSegmentDts,!0):!1}))},Xn=function(u){var h,m,f=[];for(h=0;h<u.length;h++)m=u[h],f.push({size:m.data.byteLength,duration:1024});return f},Mo=function(u){var h,m,f=0,g=new Uint8Array(Wn(u));for(h=0;h<u.length;h++)m=u[h],g.set(m.data,f),f+=m.data.byteLength;return g},Bl={prefixWithSilence:_s,trimAdtsFramesByEarliestDts:vs,generateSampleTable:Xn,concatenateFrameData:Mo},B=Ue.ONE_SECOND_IN_TS,V=function(u,h){typeof h.pts=="number"&&(u.timelineStartInfo.pts===void 0&&(u.timelineStartInfo.pts=h.pts),u.minSegmentPts===void 0?u.minSegmentPts=h.pts:u.minSegmentPts=Math.min(u.minSegmentPts,h.pts),u.maxSegmentPts===void 0?u.maxSegmentPts=h.pts:u.maxSegmentPts=Math.max(u.maxSegmentPts,h.pts)),typeof h.dts=="number"&&(u.timelineStartInfo.dts===void 0&&(u.timelineStartInfo.dts=h.dts),u.minSegmentDts===void 0?u.minSegmentDts=h.dts:u.minSegmentDts=Math.min(u.minSegmentDts,h.dts),u.maxSegmentDts===void 0?u.maxSegmentDts=h.dts:u.maxSegmentDts=Math.max(u.maxSegmentDts,h.dts))},Z=function(u){delete u.minSegmentDts,delete u.maxSegmentDts,delete u.minSegmentPts,delete u.maxSegmentPts},ue=function(u,h){var m,f,g=u.minSegmentDts;return h||(g-=u.timelineStartInfo.dts),m=u.timelineStartInfo.baseMediaDecodeTime,m+=g,m=Math.max(0,m),u.type==="audio"&&(f=u.samplerate/B,m*=f,m=Math.floor(m)),m},Me={clearDtsInfo:Z,calculateTrackBaseMediaDecodeTime:ue,collectDtsInfo:V},it=4,Ut=128,Ot=function(u){for(var h=0,m={payloadType:-1,payloadSize:0},f=0,g=0;h<u.byteLength&&u[h]!==Ut;){for(;u[h]===255;)f+=255,h++;for(f+=u[h++];u[h]===255;)g+=255,h++;if(g+=u[h++],!m.payload&&f===it){var v=String.fromCharCode(u[h+3],u[h+4],u[h+5],u[h+6]);if(v==="GA94"){m.payloadType=f,m.payloadSize=g,m.payload=u.subarray(h,h+g);break}else m.payload=void 0}h+=g,f=0,g=0}return m},Fr=function(u){return u.payload[0]!==181||(u.payload[1]<<8|u.payload[2])!==49||String.fromCharCode(u.payload[3],u.payload[4],u.payload[5],u.payload[6])!=="GA94"||u.payload[7]!==3?null:u.payload.subarray(8,u.payload.length-1)},yr=function(u,h){var m=[],f,g,v,D;if(!(h[0]&64))return m;for(g=h[0]&31,f=0;f<g;f++)v=f*3,D={type:h[v+2]&3,pts:u},h[v+2]&4&&(D.ccData=h[v+3]<<8|h[v+4],m.push(D));return m},er=function(u){for(var h=u.byteLength,m=[],f=1,g,v;f<h-2;)u[f]===0&&u[f+1]===0&&u[f+2]===3?(m.push(f+2),f+=2):f++;if(m.length===0)return u;g=h-m.length,v=new Uint8Array(g);var D=0;for(f=0;f<g;D++,f++)D===m[0]&&(D++,m.shift()),v[f]=u[D];return v},pn={parseSei:Ot,parseUserData:Fr,parseCaptionPackets:yr,discardEmulationPreventionBytes:er,USER_DATA_REGISTERED_ITU_T_T35:it},li=s,qs=pn,wt=function(u){u=u||{},wt.prototype.init.call(this),this.parse708captions_=typeof u.parse708captions=="boolean"?u.parse708captions:!0,this.captionPackets_=[],this.ccStreams_=[new nt(0,0),new nt(0,1),new nt(1,0),new nt(1,1)],this.parse708captions_&&(this.cc708Stream_=new Qe({captionServices:u.captionServices})),this.reset(),this.ccStreams_.forEach(function(h){h.on("data",this.trigger.bind(this,"data")),h.on("partialdone",this.trigger.bind(this,"partialdone")),h.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};wt.prototype=new li,wt.prototype.push=function(u){var h,m,f;if(u.nalUnitType==="sei_rbsp"&&(h=qs.parseSei(u.escapedRBSP),!!h.payload&&h.payloadType===qs.USER_DATA_REGISTERED_ITU_T_T35&&(m=qs.parseUserData(h),!!m))){if(u.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}else if(u.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}f=qs.parseCaptionPackets(u.pts,m),this.captionPackets_=this.captionPackets_.concat(f),this.latestDts_!==u.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=u.dts}},wt.prototype.flushCCStreams=function(u){this.ccStreams_.forEach(function(h){return u==="flush"?h.flush():h.partialFlush()},this)},wt.prototype.flushStream=function(u){if(!this.captionPackets_.length){this.flushCCStreams(u);return}this.captionPackets_.forEach(function(h,m){h.presortIndex=m}),this.captionPackets_.sort(function(h,m){return h.pts===m.pts?h.presortIndex-m.presortIndex:h.pts-m.pts}),this.captionPackets_.forEach(function(h){h.type<2?this.dispatchCea608Packet(h):this.dispatchCea708Packet(h)},this),this.captionPackets_.length=0,this.flushCCStreams(u)},wt.prototype.flush=function(){return this.flushStream("flush")},wt.prototype.partialFlush=function(){return this.flushStream("partialFlush")},wt.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(u){u.reset()})},wt.prototype.dispatchCea608Packet=function(u){this.setsTextOrXDSActive(u)?this.activeCea608Channel_[u.type]=null:this.setsChannel1Active(u)?this.activeCea608Channel_[u.type]=0:this.setsChannel2Active(u)&&(this.activeCea608Channel_[u.type]=1),this.activeCea608Channel_[u.type]!==null&&this.ccStreams_[(u.type<<1)+this.activeCea608Channel_[u.type]].push(u)},wt.prototype.setsChannel1Active=function(u){return(u.ccData&30720)===4096},wt.prototype.setsChannel2Active=function(u){return(u.ccData&30720)===6144},wt.prototype.setsTextOrXDSActive=function(u){return(u.ccData&28928)===256||(u.ccData&30974)===4138||(u.ccData&30974)===6186},wt.prototype.dispatchCea708Packet=function(u){this.parse708captions_&&this.cc708Stream_.push(u)};var Oi={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},Br=function(u){var h=Oi[u]||u;return u&4096&&u===h?"":String.fromCharCode(h)},ui=function(u){return 32<=u&&u<=127||160<=u&&u<=255},ps=function(u){this.windowNum=u,this.reset()};ps.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},ps.prototype.getText=function(){return this.rows.join(`
249`)},ps.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},ps.prototype.newLine=function(u){for(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow=="function"&&this.beforeRowOverflow(u),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},ps.prototype.isEmpty=function(){return this.rows.length===0?!0:this.rows.length===1?this.rows[0]==="":!1},ps.prototype.addText=function(u){this.rows[this.rowIdx]+=u},ps.prototype.backspace=function(){if(!this.isEmpty()){var u=this.rows[this.rowIdx];this.rows[this.rowIdx]=u.substr(0,u.length-1)}};var Js=function(u,h,m){this.serviceNum=u,this.text="",this.currentWindow=new ps(-1),this.windows=[],this.stream=m,typeof h=="string"&&this.createTextDecoder(h)};Js.prototype.init=function(u,h){this.startPts=u;for(var m=0;m<8;m++)this.windows[m]=new ps(m),typeof h=="function"&&(this.windows[m].beforeRowOverflow=h)},Js.prototype.setCurrentWindow=function(u){this.currentWindow=this.windows[u]},Js.prototype.createTextDecoder=function(u){if(typeof TextDecoder>"u")this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(u)}catch(h){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+u+" encoding. "+h})}};var Qe=function(u){u=u||{},Qe.prototype.init.call(this);var h=this,m=u.captionServices||{},f={},g;Object.keys(m).forEach(v=>{g=m[v],/^SERVICE/.test(v)&&(f[v]=g.encoding)}),this.serviceEncodings=f,this.current708Packet=null,this.services={},this.push=function(v){v.type===3?(h.new708Packet(),h.add708Bytes(v)):(h.current708Packet===null&&h.new708Packet(),h.add708Bytes(v))}};Qe.prototype=new li,Qe.prototype.new708Packet=function(){this.current708Packet!==null&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Qe.prototype.add708Bytes=function(u){var h=u.ccData,m=h>>>8,f=h&255;this.current708Packet.ptsVals.push(u.pts),this.current708Packet.data.push(m),this.current708Packet.data.push(f)},Qe.prototype.push708Packet=function(){var u=this.current708Packet,h=u.data,m=null,f=null,g=0,v=h[g++];for(u.seq=v>>6,u.sizeCode=v&63;g<h.length;g++)v=h[g++],m=v>>5,f=v&31,m===7&&f>0&&(v=h[g++],m=v),this.pushServiceBlock(m,g,f),f>0&&(g+=f-1)},Qe.prototype.pushServiceBlock=function(u,h,m){var f,g=h,v=this.current708Packet.data,D=this.services[u];for(D||(D=this.initService(u,g));g<h+m&&g<v.length;g++)f=v[g],ui(f)?g=this.handleText(g,D):f===24?g=this.multiByteCharacter(g,D):f===16?g=this.extendedCommands(g,D):128<=f&&f<=135?g=this.setCurrentWindow(g,D):152<=f&&f<=159?g=this.defineWindow(g,D):f===136?g=this.clearWindows(g,D):f===140?g=this.deleteWindows(g,D):f===137?g=this.displayWindows(g,D):f===138?g=this.hideWindows(g,D):f===139?g=this.toggleWindows(g,D):f===151?g=this.setWindowAttributes(g,D):f===144?g=this.setPenAttributes(g,D):f===145?g=this.setPenColor(g,D):f===146?g=this.setPenLocation(g,D):f===143?D=this.reset(g,D):f===8?D.currentWindow.backspace():f===12?D.currentWindow.clearText():f===13?D.currentWindow.pendingNewLine=!0:f===14?D.currentWindow.clearText():f===141&&g++},Qe.prototype.extendedCommands=function(u,h){var m=this.current708Packet.data,f=m[++u];return ui(f)&&(u=this.handleText(u,h,{isExtended:!0})),u},Qe.prototype.getPts=function(u){return this.current708Packet.ptsVals[Math.floor(u/2)]},Qe.prototype.initService=function(u,h){var f="SERVICE"+u,m=this,f,g;return f in this.serviceEncodings&&(g=this.serviceEncodings[f]),this.services[u]=new Js(u,g,m),this.services[u].init(this.getPts(h),function(v){m.flushDisplayed(v,m.services[u])}),this.services[u]},Qe.prototype.handleText=function(u,h,m){var f=m&&m.isExtended,g=m&&m.isMultiByte,v=this.current708Packet.data,D=f?4096:0,I=v[u],L=v[u+1],N=h.currentWindow,M,G;function le(J){return J.map(Ae=>("0"+(Ae&255).toString(16)).slice(-2)).join("")}if(g?(G=[I,L],u++):G=[I],h.textDecoder_&&!f)M=h.textDecoder_.decode(new Uint8Array(G));else if(g){const J=le(G);M=String.fromCharCode(parseInt(J,16))}else M=Br(D|I);return N.pendingNewLine&&!N.isEmpty()&&N.newLine(this.getPts(u)),N.pendingNewLine=!1,N.addText(M),u},Qe.prototype.multiByteCharacter=function(u,h){var m=this.current708Packet.data,f=m[u+1],g=m[u+2];return ui(f)&&ui(g)&&(u=this.handleText(++u,h,{isMultiByte:!0})),u},Qe.prototype.setCurrentWindow=function(u,h){var m=this.current708Packet.data,f=m[u],g=f&7;return h.setCurrentWindow(g),u},Qe.prototype.defineWindow=function(u,h){var m=this.current708Packet.data,f=m[u],g=f&7;h.setCurrentWindow(g);var v=h.currentWindow;return f=m[++u],v.visible=(f&32)>>5,v.rowLock=(f&16)>>4,v.columnLock=(f&8)>>3,v.priority=f&7,f=m[++u],v.relativePositioning=(f&128)>>7,v.anchorVertical=f&127,f=m[++u],v.anchorHorizontal=f,f=m[++u],v.anchorPoint=(f&240)>>4,v.rowCount=f&15,f=m[++u],v.columnCount=f&63,f=m[++u],v.windowStyle=(f&56)>>3,v.penStyle=f&7,v.virtualRowCount=v.rowCount+1,u},Qe.prototype.setWindowAttributes=function(u,h){var m=this.current708Packet.data,f=m[u],g=h.currentWindow.winAttr;return f=m[++u],g.fillOpacity=(f&192)>>6,g.fillRed=(f&48)>>4,g.fillGreen=(f&12)>>2,g.fillBlue=f&3,f=m[++u],g.borderType=(f&192)>>6,g.borderRed=(f&48)>>4,g.borderGreen=(f&12)>>2,g.borderBlue=f&3,f=m[++u],g.borderType+=(f&128)>>5,g.wordWrap=(f&64)>>6,g.printDirection=(f&48)>>4,g.scrollDirection=(f&12)>>2,g.justify=f&3,f=m[++u],g.effectSpeed=(f&240)>>4,g.effectDirection=(f&12)>>2,g.displayEffect=f&3,u},Qe.prototype.flushDisplayed=function(u,h){for(var m=[],f=0;f<8;f++)h.windows[f].visible&&!h.windows[f].isEmpty()&&m.push(h.windows[f].getText());h.endPts=u,h.text=m.join(`
250
251`),this.pushCaption(h),h.startPts=u},Qe.prototype.pushCaption=function(u){u.text!==""&&(this.trigger("data",{startPts:u.startPts,endPts:u.endPts,text:u.text,stream:"cc708_"+u.serviceNum}),u.text="",u.startPts=u.endPts)},Qe.prototype.displayWindows=function(u,h){var m=this.current708Packet.data,f=m[++u],g=this.getPts(u);this.flushDisplayed(g,h);for(var v=0;v<8;v++)f&1<<v&&(h.windows[v].visible=1);return u},Qe.prototype.hideWindows=function(u,h){var m=this.current708Packet.data,f=m[++u],g=this.getPts(u);this.flushDisplayed(g,h);for(var v=0;v<8;v++)f&1<<v&&(h.windows[v].visible=0);return u},Qe.prototype.toggleWindows=function(u,h){var m=this.current708Packet.data,f=m[++u],g=this.getPts(u);this.flushDisplayed(g,h);for(var v=0;v<8;v++)f&1<<v&&(h.windows[v].visible^=1);return u},Qe.prototype.clearWindows=function(u,h){var m=this.current708Packet.data,f=m[++u],g=this.getPts(u);this.flushDisplayed(g,h);for(var v=0;v<8;v++)f&1<<v&&h.windows[v].clearText();return u},Qe.prototype.deleteWindows=function(u,h){var m=this.current708Packet.data,f=m[++u],g=this.getPts(u);this.flushDisplayed(g,h);for(var v=0;v<8;v++)f&1<<v&&h.windows[v].reset();return u},Qe.prototype.setPenAttributes=function(u,h){var m=this.current708Packet.data,f=m[u],g=h.currentWindow.penAttr;return f=m[++u],g.textTag=(f&240)>>4,g.offset=(f&12)>>2,g.penSize=f&3,f=m[++u],g.italics=(f&128)>>7,g.underline=(f&64)>>6,g.edgeType=(f&56)>>3,g.fontStyle=f&7,u},Qe.prototype.setPenColor=function(u,h){var m=this.current708Packet.data,f=m[u],g=h.currentWindow.penColor;return f=m[++u],g.fgOpacity=(f&192)>>6,g.fgRed=(f&48)>>4,g.fgGreen=(f&12)>>2,g.fgBlue=f&3,f=m[++u],g.bgOpacity=(f&192)>>6,g.bgRed=(f&48)>>4,g.bgGreen=(f&12)>>2,g.bgBlue=f&3,f=m[++u],g.edgeRed=(f&48)>>4,g.edgeGreen=(f&12)>>2,g.edgeBlue=f&3,u},Qe.prototype.setPenLocation=function(u,h){var m=this.current708Packet.data,f=m[u],g=h.currentWindow.penLoc;return h.currentWindow.pendingNewLine=!0,f=m[++u],g.row=f&15,f=m[++u],g.column=f&63,u},Qe.prototype.reset=function(u,h){var m=this.getPts(u);return this.flushDisplayed(m,h),this.initService(h.serviceNum,u)};var cy={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Kn=function(u){return u===null?"":(u=cy[u]||u,String.fromCharCode(u))},Yn=14,dy=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ci=function(){for(var u=[],h=Yn+1;h--;)u.push({text:"",indent:0,offset:0});return u},nt=function(u,h){nt.prototype.init.call(this),this.field_=u||0,this.dataChannel_=h||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(m){var f,g,v,D,I;if(f=m.ccData&32639,f===this.lastControlCode_){this.lastControlCode_=null;return}if((f&61440)===4096?this.lastControlCode_=f:f!==this.PADDING_&&(this.lastControlCode_=null),v=f>>>8,D=f&255,f!==this.PADDING_)if(f===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(f===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(m.pts),this.flushDisplayed(m.pts),g=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=g,this.startPts_=m.pts;else if(f===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(m.pts);else if(f===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(m.pts);else if(f===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(m.pts);else if(f===this.CARRIAGE_RETURN_)this.clearFormatting(m.pts),this.flushDisplayed(m.pts),this.shiftRowsUp_(),this.startPts_=m.pts;else if(f===this.BACKSPACE_)this.mode_==="popOn"?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(f===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(m.pts),this.displayed_=ci();else if(f===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=ci();else if(f===this.RESUME_DIRECT_CAPTIONING_)this.mode_!=="paintOn"&&(this.flushDisplayed(m.pts),this.displayed_=ci()),this.mode_="paintOn",this.startPts_=m.pts;else if(this.isSpecialCharacter(v,D))v=(v&3)<<8,I=Kn(v|D),this[this.mode_](m.pts,I),this.column_++;else if(this.isExtCharacter(v,D))this.mode_==="popOn"?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),v=(v&3)<<8,I=Kn(v|D),this[this.mode_](m.pts,I),this.column_++;else if(this.isMidRowCode(v,D))this.clearFormatting(m.pts),this[this.mode_](m.pts," "),this.column_++,(D&14)===14&&this.addFormatting(m.pts,["i"]),(D&1)===1&&this.addFormatting(m.pts,["u"]);else if(this.isOffsetControlCode(v,D)){const N=D&3;this.nonDisplayed_[this.row_].offset=N,this.column_+=N}else if(this.isPAC(v,D)){var L=dy.indexOf(f&7968);if(this.mode_==="rollUp"&&(L-this.rollUpRows_+1<0&&(L=this.rollUpRows_-1),this.setRollUp(m.pts,L)),L!==this.row_&&(this.clearFormatting(m.pts),this.row_=L),D&1&&this.formatting_.indexOf("u")===-1&&this.addFormatting(m.pts,["u"]),(f&16)===16){const N=(f&14)>>1;this.column_=N*4,this.nonDisplayed_[this.row_].indent+=N}this.isColorPAC(D)&&(D&14)===14&&this.addFormatting(m.pts,["i"])}else this.isNormalChar(v)&&(D===0&&(D=null),I=Kn(v),I+=Kn(D),this[this.mode_](m.pts,I),this.column_+=I.length)}};nt.prototype=new li,nt.prototype.flushDisplayed=function(u){const h=f=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+f+"."})},m=[];this.displayed_.forEach((f,g)=>{if(f&&f.text&&f.text.length){try{f.text=f.text.trim()}catch{h(g)}f.text.length&&m.push({text:f.text,line:g+1,position:10+Math.min(70,f.indent*10)+f.offset*2.5})}else f==null&&h(g)}),m.length&&this.trigger("data",{startPts:this.startPts_,endPts:u,content:m,stream:this.name_})},nt.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=ci(),this.nonDisplayed_=ci(),this.lastControlCode_=null,this.column_=0,this.row_=Yn,this.rollUpRows_=2,this.formatting_=[]},nt.prototype.setConstants=function(){this.dataChannel_===0?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):this.dataChannel_===1&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=this.CONTROL_|32,this.END_OF_CAPTION_=this.CONTROL_|47,this.ROLL_UP_2_ROWS_=this.CONTROL_|37,this.ROLL_UP_3_ROWS_=this.CONTROL_|38,this.ROLL_UP_4_ROWS_=this.CONTROL_|39,this.CARRIAGE_RETURN_=this.CONTROL_|45,this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41,this.BACKSPACE_=this.CONTROL_|33,this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44,this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46},nt.prototype.isSpecialCharacter=function(u,h){return u===this.EXT_&&h>=48&&h<=63},nt.prototype.isExtCharacter=function(u,h){return(u===this.EXT_+1||u===this.EXT_+2)&&h>=32&&h<=63},nt.prototype.isMidRowCode=function(u,h){return u===this.EXT_&&h>=32&&h<=47},nt.prototype.isOffsetControlCode=function(u,h){return u===this.OFFSET_&&h>=33&&h<=35},nt.prototype.isPAC=function(u,h){return u>=this.BASE_&&u<this.BASE_+8&&h>=64&&h<=127},nt.prototype.isColorPAC=function(u){return u>=64&&u<=79||u>=96&&u<=127},nt.prototype.isNormalChar=function(u){return u>=32&&u<=127},nt.prototype.setRollUp=function(u,h){if(this.mode_!=="rollUp"&&(this.row_=Yn,this.mode_="rollUp",this.flushDisplayed(u),this.nonDisplayed_=ci(),this.displayed_=ci()),h!==void 0&&h!==this.row_)for(var m=0;m<this.rollUpRows_;m++)this.displayed_[h-m]=this.displayed_[this.row_-m],this.displayed_[this.row_-m]={text:"",indent:0,offset:0};h===void 0&&(h=this.row_),this.topRow_=h-this.rollUpRows_+1},nt.prototype.addFormatting=function(u,h){this.formatting_=this.formatting_.concat(h);var m=h.reduce(function(f,g){return f+"<"+g+">"},"");this[this.mode_](u,m)},nt.prototype.clearFormatting=function(u){if(this.formatting_.length){var h=this.formatting_.reverse().reduce(function(m,f){return m+"</"+f+">"},"");this.formatting_=[],this[this.mode_](u,h)}},nt.prototype.popOn=function(u,h){var m=this.nonDisplayed_[this.row_].text;m+=h,this.nonDisplayed_[this.row_].text=m},nt.prototype.rollUp=function(u,h){var m=this.displayed_[this.row_].text;m+=h,this.displayed_[this.row_].text=m},nt.prototype.shiftRowsUp_=function(){var u;for(u=0;u<this.topRow_;u++)this.displayed_[u]={text:"",indent:0,offset:0};for(u=this.row_+1;u<Yn+1;u++)this.displayed_[u]={text:"",indent:0,offset:0};for(u=this.topRow_;u<this.row_;u++)this.displayed_[u]=this.displayed_[u+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},nt.prototype.paintOn=function(u,h){var m=this.displayed_[this.row_].text;m+=h,this.displayed_[this.row_].text=m};var Nc={CaptionStream:wt,Cea608Stream:nt,Cea708Stream:Qe},Qn={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},hy=s,fy=8589934592,py=4294967296,Rc="shared",Fo=function(u,h){var m=1;for(u>h&&(m=-1);Math.abs(h-u)>py;)u+=m*fy;return u},Bo=function(u){var h,m;Bo.prototype.init.call(this),this.type_=u||Rc,this.push=function(f){if(f.type==="metadata"){this.trigger("data",f);return}this.type_!==Rc&&f.type!==this.type_||(m===void 0&&(m=f.dts),f.dts=Fo(f.dts,m),f.pts=Fo(f.pts,m),h=f.dts,this.trigger("data",f))},this.flush=function(){m=h,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){m=void 0,h=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Bo.prototype=new hy;var Mc={TimestampRolloverStream:Bo,handleRollover:Fo},my=(u,h,m)=>{if(!u)return-1;for(var f=m;f<u.length;f++)if(u[f]===h)return f;return-1},gy={typedArrayIndexOf:my},Jn=gy.typedArrayIndexOf,Zn={Utf8:3},Fc=function(u,h,m){var f,g="";for(f=h;f<m;f++)g+="%"+("00"+u[f].toString(16)).slice(-2);return g},Ur=function(u,h,m){return decodeURIComponent(Fc(u,h,m))},$r=function(u,h,m){return unescape(Fc(u,h,m))},jr=function(u){return u[0]<<21|u[1]<<14|u[2]<<7|u[3]},Hr={APIC:function(u){var h=1,m,f,g="-->";u.data[0]===Zn.Utf8&&(m=Jn(u.data,0,h),!(m<0)&&(u.mimeType=$r(u.data,h,m),h=m+1,u.pictureType=u.data[h],h++,f=Jn(u.data,0,h),!(f<0)&&(u.description=Ur(u.data,h,f),h=f+1,u.mimeType===g?u.url=$r(u.data,h,u.data.length):u.pictureData=u.data.subarray(h,u.data.length))))},"T*":function(u){u.data[0]===Zn.Utf8&&(u.value=Ur(u.data,1,u.data.length).replace(/\0*$/,""),u.values=u.value.split("\0"))},TXXX:function(u){var h;u.data[0]===Zn.Utf8&&(h=Jn(u.data,0,1),h!==-1&&(u.description=Ur(u.data,1,h),u.value=Ur(u.data,h+1,u.data.length).replace(/\0*$/,""),u.data=u.value))},"W*":function(u){u.url=$r(u.data,0,u.data.length).replace(/\0.*$/,"")},WXXX:function(u){var h;u.data[0]===Zn.Utf8&&(h=Jn(u.data,0,1),h!==-1&&(u.description=Ur(u.data,1,h),u.url=$r(u.data,h+1,u.data.length).replace(/\0.*$/,"")))},PRIV:function(u){var h;for(h=0;h<u.data.length;h++)if(u.data[h]===0){u.owner=$r(u.data,0,h);break}u.privateData=u.data.subarray(h+1),u.data=u.privateData}},yy=function(u){var h,m,f=10,g=0,v=[];if(!(u.length<10||u[0]!==73||u[1]!==68||u[2]!==51)){g=jr(u.subarray(6,10)),g+=10;var D=u[5]&64;D&&(f+=4,f+=jr(u.subarray(10,14)),g-=jr(u.subarray(16,20)));do{if(h=jr(u.subarray(f+4,f+8)),h<1)break;m=String.fromCharCode(u[f],u[f+1],u[f+2],u[f+3]);var I={id:m,data:u.subarray(f+10,f+h+10)};I.key=I.id,Hr[I.id]?Hr[I.id](I):I.id[0]==="T"?Hr["T*"](I):I.id[0]==="W"&&Hr["W*"](I),v.push(I),f+=10,f+=h}while(f<g);return v}},Bc={parseId3Frames:yy,parseSyncSafeInteger:jr,frameParsers:Hr},_y=s,vy=Qn,Vs=Bc,ea;ea=function(u){var h={descriptor:u&&u.descriptor},m=0,f=[],g=0,v;if(ea.prototype.init.call(this),this.dispatchType=vy.METADATA_STREAM_TYPE.toString(16),h.descriptor)for(v=0;v<h.descriptor.length;v++)this.dispatchType+=("00"+h.descriptor[v].toString(16)).slice(-2);this.push=function(D){var I,L,N,M,G,le;if(D.type==="timed-metadata"){if(D.dataAlignmentIndicator&&(g=0,f.length=0),f.length===0&&(D.data.length<10||D.data[0]!==73||D.data[1]!==68||D.data[2]!==51)){this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});return}if(f.push(D),g+=D.data.byteLength,f.length===1&&(m=Vs.parseSyncSafeInteger(D.data.subarray(6,10)),m+=10),!(g<m)){for(I={data:new Uint8Array(m),frames:[],pts:f[0].pts,dts:f[0].dts},G=0;G<m;)I.data.set(f[0].data.subarray(0,m-G),G),G+=f[0].data.byteLength,g-=f[0].data.byteLength,f.shift();L=10,I.data[5]&64&&(L+=4,L+=Vs.parseSyncSafeInteger(I.data.subarray(10,14)),m-=Vs.parseSyncSafeInteger(I.data.subarray(16,20)));do{if(N=Vs.parseSyncSafeInteger(I.data.subarray(L+4,L+8)),N<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if(le=String.fromCharCode(I.data[L],I.data[L+1],I.data[L+2],I.data[L+3]),M={id:le,data:I.data.subarray(L+10,L+N+10)},M.key=M.id,Vs.frameParsers[M.id]?Vs.frameParsers[M.id](M):M.id[0]==="T"?Vs.frameParsers["T*"](M):M.id[0]==="W"&&Vs.frameParsers["W*"](M),M.owner==="com.apple.streaming.transportStreamTimestamp"){var J=M.data,Ae=(J[3]&1)<<30|J[4]<<22|J[5]<<14|J[6]<<6|J[7]>>>2;Ae*=4,Ae+=J[7]&3,M.timeStamp=Ae,I.pts===void 0&&I.dts===void 0&&(I.pts=M.timeStamp,I.dts=M.timeStamp),this.trigger("timestamp",M)}I.frames.push(M),L+=10,L+=N}while(L<m);this.trigger("data",I)}}}},ea.prototype=new _y;var by=ea,Uo=s,$o=Nc,us=Qn,Ty=Mc.TimestampRolloverStream,ta,qr,sa,tr=188,jo=71;ta=function(){var u=new Uint8Array(tr),h=0;ta.prototype.init.call(this),this.push=function(m){var f=0,g=tr,v;for(h?(v=new Uint8Array(m.byteLength+h),v.set(u.subarray(0,h)),v.set(m,h),h=0):v=m;g<v.byteLength;){if(v[f]===jo&&v[g]===jo){this.trigger("data",v.subarray(f,g)),f+=tr,g+=tr;continue}f++,g++}f<v.byteLength&&(u.set(v.subarray(f),0),h=v.byteLength-f)},this.flush=function(){h===tr&&u[0]===jo&&(this.trigger("data",u),h=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){h=0,this.trigger("reset")}},ta.prototype=new Uo,qr=function(){var u,h,m,f;qr.prototype.init.call(this),f=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,u=function(g,v){var D=0;v.payloadUnitStartIndicator&&(D+=g[D]+1),v.type==="pat"?h(g.subarray(D),v):m(g.subarray(D),v)},h=function(g,v){v.section_number=g[7],v.last_section_number=g[8],f.pmtPid=(g[10]&31)<<8|g[11],v.pmtPid=f.pmtPid},m=function(g,v){var D,I,L,N;if(g[5]&1){for(f.programMapTable={video:null,audio:null,"timed-metadata":{}},D=(g[1]&15)<<8|g[2],I=3+D-4,L=(g[10]&15)<<8|g[11],N=12+L;N<I;){var M=g[N],G=(g[N+1]&31)<<8|g[N+2];M===us.H264_STREAM_TYPE&&f.programMapTable.video===null?f.programMapTable.video=G:M===us.ADTS_STREAM_TYPE&&f.programMapTable.audio===null?f.programMapTable.audio=G:M===us.METADATA_STREAM_TYPE&&(f.programMapTable["timed-metadata"][G]=M),N+=((g[N+3]&15)<<8|g[N+4])+5}v.programMapTable=f.programMapTable}},this.push=function(g){var v={},D=4;if(v.payloadUnitStartIndicator=!!(g[1]&64),v.pid=g[1]&31,v.pid<<=8,v.pid|=g[2],(g[3]&48)>>>4>1&&(D+=g[D]+1),v.pid===0)v.type="pat",u(g.subarray(D),v),this.trigger("data",v);else if(v.pid===this.pmtPid)for(v.type="pmt",u(g.subarray(D),v),this.trigger("data",v);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else this.programMapTable===void 0?this.packetsWaitingForPmt.push([g,D,v]):this.processPes_(g,D,v)},this.processPes_=function(g,v,D){D.pid===this.programMapTable.video?D.streamType=us.H264_STREAM_TYPE:D.pid===this.programMapTable.audio?D.streamType=us.ADTS_STREAM_TYPE:D.streamType=this.programMapTable["timed-metadata"][D.pid],D.type="pes",D.data=g.subarray(v),this.trigger("data",D)}},qr.prototype=new Uo,qr.STREAM_TYPES={h264:27,adts:15},sa=function(){var u=this,h=!1,m={data:[],size:0},f={data:[],size:0},g={data:[],size:0},v,D=function(L,N){var M;const G=L[0]<<16|L[1]<<8|L[2];N.data=new Uint8Array,G===1&&(N.packetLength=6+(L[4]<<8|L[5]),N.dataAlignmentIndicator=(L[6]&4)!==0,M=L[7],M&192&&(N.pts=(L[9]&14)<<27|(L[10]&255)<<20|(L[11]&254)<<12|(L[12]&255)<<5|(L[13]&254)>>>3,N.pts*=4,N.pts+=(L[13]&6)>>>1,N.dts=N.pts,M&64&&(N.dts=(L[14]&14)<<27|(L[15]&255)<<20|(L[16]&254)<<12|(L[17]&255)<<5|(L[18]&254)>>>3,N.dts*=4,N.dts+=(L[18]&6)>>>1)),N.data=L.subarray(9+L[8]))},I=function(L,N,M){var G=new Uint8Array(L.size),le={type:N},J=0,Ae=0,Re=!1,xt;if(!(!L.data.length||L.size<9)){for(le.trackId=L.data[0].pid,J=0;J<L.data.length;J++)xt=L.data[J],G.set(xt.data,Ae),Ae+=xt.data.byteLength;D(G,le),Re=N==="video"||le.packetLength<=L.size,(M||Re)&&(L.size=0,L.data.length=0),Re&&u.trigger("data",le)}};sa.prototype.init.call(this),this.push=function(L){({pat:function(){},pes:function(){var N,M;switch(L.streamType){case us.H264_STREAM_TYPE:N=m,M="video";break;case us.ADTS_STREAM_TYPE:N=f,M="audio";break;case us.METADATA_STREAM_TYPE:N=g,M="timed-metadata";break;default:return}L.payloadUnitStartIndicator&&I(N,M,!0),N.data.push(L),N.size+=L.data.byteLength},pmt:function(){var N={type:"metadata",tracks:[]};v=L.programMapTable,v.video!==null&&N.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+v.video,codec:"avc",type:"video"}),v.audio!==null&&N.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+v.audio,codec:"adts",type:"audio"}),h=!0,u.trigger("data",N)}})[L.type]()},this.reset=function(){m.size=0,m.data.length=0,f.size=0,f.data.length=0,this.trigger("reset")},this.flushStreams_=function(){I(m,"video"),I(f,"audio"),I(g,"timed-metadata")},this.flush=function(){if(!h&&v){var L={type:"metadata",tracks:[]};v.video!==null&&L.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+v.video,codec:"avc",type:"video"}),v.audio!==null&&L.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+v.audio,codec:"adts",type:"audio"}),u.trigger("data",L)}h=!1,this.flushStreams_(),this.trigger("done")}},sa.prototype=new Uo;var Uc={PAT_PID:0,MP2T_PACKET_LENGTH:tr,TransportPacketStream:ta,TransportParseStream:qr,ElementaryStream:sa,TimestampRolloverStream:Ty,CaptionStream:$o.CaptionStream,Cea608Stream:$o.Cea608Stream,Cea708Stream:$o.Cea708Stream,MetadataStream:by};for(var Ho in us)us.hasOwnProperty(Ho)&&(Uc[Ho]=us[Ho]);var Sy=Uc,Ey=s,xy=Ue.ONE_SECOND_IN_TS,ia,$c=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];ia=function(u){var h,m=0;ia.prototype.init.call(this),this.skipWarn_=function(f,g){this.trigger("log",{level:"warn",message:`adts skiping bytes ${f} to ${g} in frame ${m} outside syncword`})},this.push=function(f){var g=0,v,D,I,L,N;if(u||(m=0),f.type==="audio"){h&&h.length?(I=h,h=new Uint8Array(I.byteLength+f.data.byteLength),h.set(I),h.set(f.data,I.byteLength)):h=f.data;for(var M;g+7<h.length;){if(h[g]!==255||(h[g+1]&246)!==240){typeof M!="number"&&(M=g),g++;continue}if(typeof M=="number"&&(this.skipWarn_(M,g),M=null),D=(~h[g+1]&1)*2,v=(h[g+3]&3)<<11|h[g+4]<<3|(h[g+5]&224)>>5,L=((h[g+6]&3)+1)*1024,N=L*xy/$c[(h[g+2]&60)>>>2],h.byteLength-g<v)break;this.trigger("data",{pts:f.pts+m*N,dts:f.dts+m*N,sampleCount:L,audioobjecttype:(h[g+2]>>>6&3)+1,channelcount:(h[g+2]&1)<<2|(h[g+3]&192)>>>6,samplerate:$c[(h[g+2]&60)>>>2],samplingfrequencyindex:(h[g+2]&60)>>>2,samplesize:16,data:h.subarray(g+7+D,g+v)}),m++,g+=v}typeof M=="number"&&(this.skipWarn_(M,g),M=null),h=h.subarray(g)}},this.flush=function(){m=0,this.trigger("done")},this.reset=function(){h=void 0,this.trigger("reset")},this.endTimeline=function(){h=void 0,this.trigger("endedtimeline")}},ia.prototype=new Ey;var Cy=ia,jc;jc=function(u){var h=u.byteLength,m=0,f=0;this.length=function(){return 8*h},this.bitsAvailable=function(){return 8*h+f},this.loadWord=function(){var g=u.byteLength-h,v=new Uint8Array(4),D=Math.min(4,h);if(D===0)throw new Error("no bytes available");v.set(u.subarray(g,g+D)),m=new DataView(v.buffer).getUint32(0),f=D*8,h-=D},this.skipBits=function(g){var v;f>g?(m<<=g,f-=g):(g-=f,v=Math.floor(g/8),g-=v*8,h-=v,this.loadWord(),m<<=g,f-=g)},this.readBits=function(g){var v=Math.min(f,g),D=m>>>32-v;return f-=v,f>0?m<<=v:h>0&&this.loadWord(),v=g-v,v>0?D<<v|this.readBits(v):D},this.skipLeadingZeros=function(){var g;for(g=0;g<f;++g)if(m&2147483648>>>g)return m<<=g,f-=g,g;return this.loadWord(),g+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var g=this.skipLeadingZeros();return this.readBits(g+1)-1},this.readExpGolomb=function(){var g=this.readUnsignedExpGolomb();return 1&g?1+g>>>1:-1*(g>>>1)},this.readBoolean=function(){return this.readBits(1)===1},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var wy=jc,Hc=s,Ay=wy,ra,na,qc;na=function(){var u=0,h,m;na.prototype.init.call(this),this.push=function(f){var g;m?(g=new Uint8Array(m.byteLength+f.data.byteLength),g.set(m),g.set(f.data,m.byteLength),m=g):m=f.data;for(var v=m.byteLength;u<v-3;u++)if(m[u+2]===1){h=u+5;break}for(;h<v;)switch(m[h]){case 0:if(m[h-1]!==0){h+=2;break}else if(m[h-2]!==0){h++;break}u+3!==h-2&&this.trigger("data",m.subarray(u+3,h-2));do h++;while(m[h]!==1&&h<v);u=h-2,h+=3;break;case 1:if(m[h-1]!==0||m[h-2]!==0){h+=3;break}this.trigger("data",m.subarray(u+3,h-2)),u=h-2,h+=3;break;default:h+=3;break}m=m.subarray(u),h-=u,u=0},this.reset=function(){m=null,u=0,this.trigger("reset")},this.flush=function(){m&&m.byteLength>3&&this.trigger("data",m.subarray(u+3)),m=null,u=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},na.prototype=new Hc,qc={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},ra=function(){var u=new na,h,m,f,g,v,D,I;ra.prototype.init.call(this),h=this,this.push=function(L){L.type==="video"&&(m=L.trackId,f=L.pts,g=L.dts,u.push(L))},u.on("data",function(L){var N={trackId:m,pts:f,dts:g,data:L,nalUnitTypeCode:L[0]&31};switch(N.nalUnitTypeCode){case 5:N.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:N.nalUnitType="sei_rbsp",N.escapedRBSP=v(L.subarray(1));break;case 7:N.nalUnitType="seq_parameter_set_rbsp",N.escapedRBSP=v(L.subarray(1)),N.config=D(N.escapedRBSP);break;case 8:N.nalUnitType="pic_parameter_set_rbsp";break;case 9:N.nalUnitType="access_unit_delimiter_rbsp";break}h.trigger("data",N)}),u.on("done",function(){h.trigger("done")}),u.on("partialdone",function(){h.trigger("partialdone")}),u.on("reset",function(){h.trigger("reset")}),u.on("endedtimeline",function(){h.trigger("endedtimeline")}),this.flush=function(){u.flush()},this.partialFlush=function(){u.partialFlush()},this.reset=function(){u.reset()},this.endTimeline=function(){u.endTimeline()},I=function(L,N){var M=8,G=8,le,J;for(le=0;le<L;le++)G!==0&&(J=N.readExpGolomb(),G=(M+J+256)%256),M=G===0?M:G},v=function(L){for(var N=L.byteLength,M=[],G=1,le,J;G<N-2;)L[G]===0&&L[G+1]===0&&L[G+2]===3?(M.push(G+2),G+=2):G++;if(M.length===0)return L;le=N-M.length,J=new Uint8Array(le);var Ae=0;for(G=0;G<le;Ae++,G++)Ae===M[0]&&(Ae++,M.shift()),J[G]=L[Ae];return J},D=function(L){var N=0,M=0,G=0,le=0,J,Ae,Re,xt,es,fi,bd,Td,Sd,Yo,Ed,ht=[1,1],xd,pi;if(J=new Ay(L),Ae=J.readUnsignedByte(),xt=J.readUnsignedByte(),Re=J.readUnsignedByte(),J.skipUnsignedExpGolomb(),qc[Ae]&&(es=J.readUnsignedExpGolomb(),es===3&&J.skipBits(1),J.skipUnsignedExpGolomb(),J.skipUnsignedExpGolomb(),J.skipBits(1),J.readBoolean()))for(Ed=es!==3?8:12,pi=0;pi<Ed;pi++)J.readBoolean()&&(pi<6?I(16,J):I(64,J));if(J.skipUnsignedExpGolomb(),fi=J.readUnsignedExpGolomb(),fi===0)J.readUnsignedExpGolomb();else if(fi===1)for(J.skipBits(1),J.skipExpGolomb(),J.skipExpGolomb(),bd=J.readUnsignedExpGolomb(),pi=0;pi<bd;pi++)J.skipExpGolomb();if(J.skipUnsignedExpGolomb(),J.skipBits(1),Td=J.readUnsignedExpGolomb(),Sd=J.readUnsignedExpGolomb(),Yo=J.readBits(1),Yo===0&&J.skipBits(1),J.skipBits(1),J.readBoolean()&&(N=J.readUnsignedExpGolomb(),M=J.readUnsignedExpGolomb(),G=J.readUnsignedExpGolomb(),le=J.readUnsignedExpGolomb()),J.readBoolean()&&J.readBoolean()){switch(xd=J.readUnsignedByte(),xd){case 1:ht=[1,1];break;case 2:ht=[12,11];break;case 3:ht=[10,11];break;case 4:ht=[16,11];break;case 5:ht=[40,33];break;
251case 6:ht=[24,11];break;case 7:ht=[20,11];break;case 8:ht=[32,11];break;case 9:ht=[80,33];break;case 10:ht=[18,11];break;case 11:ht=[15,11];break;case 12:ht=[64,33];break;case 13:ht=[160,99];break;case 14:ht=[4,3];break;case 15:ht=[3,2];break;case 16:ht=[2,1];break;case 255:{ht=[J.readUnsignedByte()<<8|J.readUnsignedByte(),J.readUnsignedByte()<<8|J.readUnsignedByte()];break}}ht&&ht[0]/ht[1]}return{profileIdc:Ae,levelIdc:Re,profileCompatibility:xt,width:(Td+1)*16-N*2-M*2,height:(2-Yo)*(Sd+1)*16-G*2-le*2,sarRatio:ht}}},ra.prototype=new Hc;var ky={H264Stream:ra},Dy=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Vc=function(u,h){var m=u[h+6]<<21|u[h+7]<<14|u[h+8]<<7|u[h+9],f=u[h+5],g=(f&16)>>4;return m=m>=0?m:0,g?m+20:m+10},zc=function(u,h){return u.length-h<10||u[h]!==73||u[h+1]!==68||u[h+2]!==51?h:(h+=Vc(u,h),zc(u,h))},Iy=function(u){var h=zc(u,0);return u.length>=h+2&&(u[h]&255)===255&&(u[h+1]&240)===240&&(u[h+1]&22)===16},Gc=function(u){return u[0]<<21|u[1]<<14|u[2]<<7|u[3]},Py=function(u,h,m){var f,g="";for(f=h;f<m;f++)g+="%"+("00"+u[f].toString(16)).slice(-2);return g},Ly=function(u,h,m){return unescape(Py(u,h,m))},Oy=function(u,h){var m=(u[h+5]&224)>>5,f=u[h+4]<<3,g=u[h+3]&6144;return g|f|m},Ny=function(u,h){return u[h]===73&&u[h+1]===68&&u[h+2]===51?"timed-metadata":u[h]&!0&&(u[h+1]&240)===240?"audio":null},Ry=function(u){for(var h=0;h+5<u.length;){if(u[h]!==255||(u[h+1]&246)!==240){h++;continue}return Dy[(u[h+2]&60)>>>2]}return null},My=function(u){var h,m,f,g;h=10,u[5]&64&&(h+=4,h+=Gc(u.subarray(10,14)));do{if(m=Gc(u.subarray(h+4,h+8)),m<1)return null;if(g=String.fromCharCode(u[h],u[h+1],u[h+2],u[h+3]),g==="PRIV"){f=u.subarray(h+10,h+m+10);for(var v=0;v<f.byteLength;v++)if(f[v]===0){var D=Ly(f,0,v);if(D==="com.apple.streaming.transportStreamTimestamp"){var I=f.subarray(v+1),L=(I[3]&1)<<30|I[4]<<22|I[5]<<14|I[6]<<6|I[7]>>>2;return L*=4,L+=I[7]&3,L}break}}h+=10,h+=m}while(h<u.byteLength);return null},qo={isLikelyAacData:Iy,parseId3TagSize:Vc,parseAdtsSize:Oy,parseType:Ny,parseSampleRate:Ry,parseAacTimestamp:My},Fy=s,Wc=qo,aa;aa=function(){var u=new Uint8Array,h=0;aa.prototype.init.call(this),this.setTimestamp=function(m){h=m},this.push=function(m){var f=0,g=0,v,D,I,L;for(u.length?(L=u.length,u=new Uint8Array(m.byteLength+L),u.set(u.subarray(0,L)),u.set(m,L)):u=m;u.length-g>=3;){if(u[g]===73&&u[g+1]===68&&u[g+2]===51){if(u.length-g<10||(f=W
vendor: 38,874 bytes, line 251
251c.parseId3TagSize(u,g),g+f>u.length))break;D={type:"timed-metadata",data:u.subarray(g,g+f)},this.trigger("data",D),g+=f;continue}else if((u[g]&255)===255&&(u[g+1]&240)===240){if(u.length-g<7||(f=Wc.parseAdtsSize(u,g),g+f>u.length))break;I={type:"audio",data:u.subarray(g,g+f),pts:h,dts:h},this.trigger("data",I),g+=f;continue}g++}v=u.length-g,v>0?u=u.subarray(g):u=new Uint8Array},this.reset=function(){u=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){u=new Uint8Array,this.trigger("endedtimeline")}},aa.prototype=new Fy;var By=aa,Uy=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],$y=Uy,jy=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Hy=jy,oa=s,Vr=me,zr=ge,la=Bl,cs=Me,As=Sy,ua=Ue,Xc=Cy,qy=ky.H264Stream,Vy=By,zy=qo.isLikelyAacData,Gy=Ue.ONE_SECOND_IN_TS,Kc=$y,Yc=Hy,ca,Gr,da,di,Wy=function(u,h){h.stream=u,this.trigger("log",h)},Qc=function(u,h){for(var m=Object.keys(h),f=0;f<m.length;f++){var g=m[f];g==="headOfPipeline"||!h[g].on||h[g].on("log",Wy.bind(u,g))}},Jc=function(u,h){var m;if(u.length!==h.length)return!1;for(m=0;m<u.length;m++)if(u[m]!==h[m])return!1;return!0},Zc=function(u,h,m,f,g,v){var D=m-h,I=f-h,L=g-m;return{start:{dts:u,pts:u+D},end:{dts:u+I,pts:u+L},prependedContentDuration:v,baseMediaDecodeTime:u}};Gr=function(u,h){var m=[],f,g=0,v=0,D=1/0;h=h||{},f=h.firstSequenceNumber||0,Gr.prototype.init.call(this),this.push=function(I){cs.collectDtsInfo(u,I),u&&Kc.forEach(function(L){u[L]=I[L]}),m.push(I)},this.setEarliestDts=function(I){g=I},this.setVideoBaseMediaDecodeTime=function(I){D=I},this.setAudioAppendStart=function(I){v=I},this.flush=function(){var I,L,N,M,G,le,J;if(m.length===0){this.trigger("done","AudioSegmentStream");return}I=la.trimAdtsFramesByEarliestDts(m,u,g),u.baseMediaDecodeTime=cs.calculateTrackBaseMediaDecodeTime(u,h.keepOriginalTimestamps),J=la.prefixWithSilence(u,I,v,D),u.samples=la.generateSampleTable(I),N=Vr.mdat(la.concatenateFrameData(I)),m=[],L=Vr.moof(f,[u]),M=new Uint8Array(L.byteLength+N.byteLength),f++,M.set(L),M.set(N,L.byteLength),cs.clearDtsInfo(u),G=Math.ceil(Gy*1024/u.samplerate),I.length&&(le=I.length*G,this.trigger("segmentTimingInfo",Zc(ua.audioTsToVideoTs(u.baseMediaDecodeTime,u.samplerate),I[0].dts,I[0].pts,I[0].dts+le,I[0].pts+le,J||0)),this.trigger("timingInfo",{start:I[0].pts,end:I[0].pts+le})),this.trigger("data",{track:u,boxes:M}),this.trigger("done","AudioSegmentStream")},this.reset=function(){cs.clearDtsInfo(u),m=[],this.trigger("reset")}},Gr.prototype=new oa,ca=function(u,h){var m,f=[],g=[],v,D;h=h||{},m=h.firstSequenceNumber||0,ca.prototype.init.call(this),delete u.minPTS,this.gopCache_=[],this.push=function(I){cs.collectDtsInfo(u,I),I.nalUnitType==="seq_parameter_set_rbsp"&&!v&&(v=I.config,u.sps=[I.data],Yc.forEach(function(L){u[L]=v[L]},this)),I.nalUnitType==="pic_parameter_set_rbsp"&&!D&&(D=I.data,u.pps=[I.data]),f.push(I)},this.flush=function(){for(var I,L,N,M,G,le,J=0,Ae,Re;f.length&&f[0].nalUnitType!=="access_unit_delimiter_rbsp";)f.shift();if(f.length===0){this.resetStream_(),this.trigger("done","VideoSegmentStream");return}if(I=zr.groupNalsIntoFrames(f),N=zr.groupFramesIntoGops(I),N[0][0].keyFrame||(L=this.getGopForFusion_(f[0],u),L?(J=L.duration,N.unshift(L),N.byteLength+=L.byteLength,N.nalCount+=L.nalCount,N.pts=L.pts,N.dts=L.dts,N.duration+=L.duration):N=zr.extendFirstKeyFrame(N)),g.length){var xt;if(h.alignGopsAtEnd?xt=this.alignGopsAtEnd_(N):xt=this.alignGopsAtStart_(N),!xt){this.gopCache_.unshift({gop:N.pop(),pps:u.pps,sps:u.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),f=[],this.resetStream_(),this.trigger("done","VideoSegmentStream");return}cs.clearDtsInfo(u),N=xt}cs.collectDtsInfo(u,N),u.samples=zr.generateSampleTable(N),G=Vr.mdat(zr.concatenateNalData(N)),u.baseMediaDecodeTime=cs.calculateTrackBaseMediaDecodeTime(u,h.keepOriginalTimestamps),this.trigger("processedGopsInfo",N.map(function(es){return{pts:es.pts,dts:es.dts,byteLength:es.byteLength}})),Ae=N[0],Re=N[N.length-1],this.trigger("segmentTimingInfo",Zc(u.baseMediaDecodeTime,Ae.dts,Ae.pts,Re.dts+Re.duration,Re.pts+Re.duration,J)),this.trigger("timingInfo",{start:N[0].pts,end:N[N.length-1].pts+N[N.length-1].duration}),this.gopCache_.unshift({gop:N.pop(),pps:u.pps,sps:u.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),f=[],this.trigger("baseMediaDecodeTime",u.baseMediaDecodeTime),this.trigger("timelineStartInfo",u.timelineStartInfo),M=Vr.moof(m,[u]),le=new Uint8Array(M.byteLength+G.byteLength),m++,le.set(M),le.set(G,M.byteLength),this.trigger("data",{track:u,boxes:le}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),f=[],this.gopCache_.length=0,g.length=0,this.trigger("reset")},this.resetStream_=function(){cs.clearDtsInfo(u),v=void 0,D=void 0},this.getGopForFusion_=function(I){var L=45e3,N=1/0,M,G,le,J,Ae;for(Ae=0;Ae<this.gopCache_.length;Ae++)J=this.gopCache_[Ae],le=J.gop,!(!(u.pps&&Jc(u.pps[0],J.pps[0]))||!(u.sps&&Jc(u.sps[0],J.sps[0])))&&(le.dts<u.timelineStartInfo.dts||(M=I.dts-le.dts-le.duration,M>=-1e4&&M<=L&&(!G||N>M)&&(G=J,N=M)));return G?G.gop:null},this.alignGopsAtStart_=function(I){var L,N,M,G,le,J,Ae,Re;for(le=I.byteLength,J=I.nalCount,Ae=I.duration,L=N=0;L<g.length&&N<I.length&&(M=g[L],G=I[N],M.pts!==G.pts);){if(G.pts>M.pts){L++;continue}N++,le-=G.byteLength,J-=G.nalCount,Ae-=G.duration}return N===0?I:N===I.length?null:(Re=I.slice(N),Re.byteLength=le,Re.duration=Ae,Re.nalCount=J,Re.pts=Re[0].pts,Re.dts=Re[0].dts,Re)},this.alignGopsAtEnd_=function(I){var L,N,M,G,le,J;for(L=g.length-1,N=I.length-1,le=null,J=!1;L>=0&&N>=0;){if(M=g[L],G=I[N],M.pts===G.pts){J=!0;break}if(M.pts>G.pts){L--;continue}L===g.length-1&&(le=N),N--}if(!J&&le===null)return null;var Ae;if(J?Ae=N:Ae=le,Ae===0)return I;var Re=I.slice(Ae),xt=Re.reduce(function(es,fi){return es.byteLength+=fi.byteLength,es.duration+=fi.duration,es.nalCount+=fi.nalCount,es},{byteLength:0,duration:0,nalCount:0});return Re.byteLength=xt.byteLength,Re.duration=xt.duration,Re.nalCount=xt.nalCount,Re.pts=Re[0].pts,Re.dts=Re[0].dts,Re},this.alignGopsWith=function(I){g=I}},ca.prototype=new oa,di=function(u,h){this.numberOfTracks=0,this.metadataStream=h,u=u||{},typeof u.remux<"u"?this.remuxTracks=!!u.remux:this.remuxTracks=!0,typeof u.keepOriginalTimestamps=="boolean"?this.keepOriginalTimestamps=u.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,di.prototype.init.call(this),this.push=function(m){if(m.content||m.text)return this.pendingCaptions.push(m);if(m.frames)return this.pendingMetadata.push(m);this.pendingTracks.push(m.track),this.pendingBytes+=m.boxes.byteLength,m.track.type==="video"&&(this.videoTrack=m.track,this.pendingBoxes.push(m.boxes)),m.track.type==="audio"&&(this.audioTrack=m.track,this.pendingBoxes.unshift(m.boxes))}},di.prototype=new oa,di.prototype.flush=function(u){var h=0,m={captions:[],captionStreams:{},metadata:[],info:{}},f,g,v,D=0,I;if(this.pendingTracks.length<this.numberOfTracks){if(u!=="VideoSegmentStream"&&u!=="AudioSegmentStream")return;if(this.remuxTracks)return;if(this.pendingTracks.length===0){this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}if(this.videoTrack?(D=this.videoTrack.timelineStartInfo.pts,Yc.forEach(function(L){m.info[L]=this.videoTrack[L]},this)):this.audioTrack&&(D=this.audioTrack.timelineStartInfo.pts,Kc.forEach(function(L){m.info[L]=this.audioTrack[L]},this)),this.videoTrack||this.audioTrack){for(this.pendingTracks.length===1?m.type=this.pendingTracks[0].type:m.type="combined",this.emittedTracks+=this.pendingTracks.length,v=Vr.initSegment(this.pendingTracks),m.initSegment=new Uint8Array(v.byteLength),m.initSegment.set(v),m.data=new Uint8Array(this.pendingBytes),I=0;I<this.pendingBoxes.length;I++)m.data.set(this.pendingBoxes[I],h),h+=this.pendingBoxes[I].byteLength;for(I=0;I<this.pendingCaptions.length;I++)f=this.pendingCaptions[I],f.startTime=ua.metadataTsToSeconds(f.startPts,D,this.keepOriginalTimestamps),f.endTime=ua.metadataTsToSeconds(f.endPts,D,this.keepOriginalTimestamps),m.captionStreams[f.stream]=!0,m.captions.push(f);for(I=0;I<this.pendingMetadata.length;I++)g=this.pendingMetadata[I],g.cueTime=ua.metadataTsToSeconds(g.pts,D,this.keepOriginalTimestamps),m.metadata.push(g);for(m.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",m),I=0;I<m.captions.length;I++)f=m.captions[I],this.trigger("caption",f);for(I=0;I<m.metadata.length;I++)g=m.metadata[I],this.trigger("id3Frame",g)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},di.prototype.setRemux=function(u){this.remuxTracks=u},da=function(u){var h=this,m=!0,f,g;da.prototype.init.call(this),u=u||{},this.baseMediaDecodeTime=u.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var v={};this.transmuxPipeline_=v,v.type="aac",v.metadataStream=new As.MetadataStream,v.aacStream=new Vy,v.audioTimestampRolloverStream=new As.TimestampRolloverStream("audio"),v.timedMetadataTimestampRolloverStream=new As.TimestampRolloverStream("timed-metadata"),v.adtsStream=new Xc,v.coalesceStream=new di(u,v.metadataStream),v.headOfPipeline=v.aacStream,v.aacStream.pipe(v.audioTimestampRolloverStream).pipe(v.adtsStream),v.aacStream.pipe(v.timedMetadataTimestampRolloverStream).pipe(v.metadataStream).pipe(v.coalesceStream),v.metadataStream.on("timestamp",function(D){v.aacStream.setTimestamp(D.timeStamp)}),v.aacStream.on("data",function(D){D.type!=="timed-metadata"&&D.type!=="audio"||v.audioSegmentStream||(g=g||{timelineStartInfo:{baseMediaDecodeTime:h.baseMediaDecodeTime},codec:"adts",type:"audio"},v.coalesceStream.numberOfTracks++,v.audioSegmentStream=new Gr(g,u),v.audioSegmentStream.on("log",h.getLogTrigger_("audioSegmentStream")),v.audioSegmentStream.on("timingInfo",h.trigger.bind(h,"audioTimingInfo")),v.adtsStream.pipe(v.audioSegmentStream).pipe(v.coalesceStream),h.trigger("trackinfo",{hasAudio:!!g,hasVideo:!!f}))}),v.coalesceStream.on("data",this.trigger.bind(this,"data")),v.coalesceStream.on("done",this.trigger.bind(this,"done")),Qc(this,v)},this.setupTsPipeline=function(){var v={};this.transmuxPipeline_=v,v.type="ts",v.metadataStream=new As.MetadataStream,v.packetStream=new As.TransportPacketStream,v.parseStream=new As.TransportParseStream,v.elementaryStream=new As.ElementaryStream,v.timestampRolloverStream=new As.TimestampRolloverStream,v.adtsStream=new Xc,v.h264Stream=new qy,v.captionStream=new As.CaptionStream(u),v.coalesceStream=new di(u,v.metadataStream),v.headOfPipeline=v.packetStream,v.packetStream.pipe(v.parseStream).pipe(v.elementaryStream).pipe(v.timestampRolloverStream),v.timestampRolloverStream.pipe(v.h264Stream),v.timestampRolloverStream.pipe(v.adtsStream),v.timestampRolloverStream.pipe(v.metadataStream).pipe(v.coalesceStream),v.h264Stream.pipe(v.captionStream).pipe(v.coalesceStream),v.elementaryStream.on("data",function(D){var I;if(D.type==="metadata"){for(I=D.tracks.length;I--;)!f&&D.tracks[I].type==="video"?(f=D.tracks[I],f.timelineStartInfo.baseMediaDecodeTime=h.baseMediaDecodeTime):!g&&D.tracks[I].type==="audio"&&(g=D.tracks[I],g.timelineStartInfo.baseMediaDecodeTime=h.baseMediaDecodeTime);f&&!v.videoSegmentStream&&(v.coalesceStream.numberOfTracks++,v.videoSegmentStream=new ca(f,u),v.videoSegmentStream.on("log",h.getLogTrigger_("videoSegmentStream")),v.videoSegmentStream.on("timelineStartInfo",function(L){g&&!u.keepOriginalTimestamps&&(g.timelineStartInfo=L,v.audioSegmentStream.setEarliestDts(L.dts-h.baseMediaDecodeTime))}),v.videoSegmentStream.on("processedGopsInfo",h.trigger.bind(h,"gopInfo")),v.videoSegmentStream.on("segmentTimingInfo",h.trigger.bind(h,"videoSegmentTimingInfo")),v.videoSegmentStream.on("baseMediaDecodeTime",function(L){g&&v.audioSegmentStream.setVideoBaseMediaDecodeTime(L)}),v.videoSegmentStream.on("timingInfo",h.trigger.bind(h,"videoTimingInfo")),v.h264Stream.pipe(v.videoSegmentStream).pipe(v.coalesceStream)),g&&!v.audioSegmentStream&&(v.coalesceStream.numberOfTracks++,v.audioSegmentStream=new Gr(g,u),v.audioSegmentStream.on("log",h.getLogTrigger_("audioSegmentStream")),v.audioSegmentStream.on("timingInfo",h.trigger.bind(h,"audioTimingInfo")),v.audioSegmentStream.on("segmentTimingInfo",h.trigger.bind(h,"audioSegmentTimingInfo")),v.adtsStream.pipe(v.audioSegmentStream).pipe(v.coalesceStream)),h.trigger("trackinfo",{hasAudio:!!g,hasVideo:!!f})}}),v.coalesceStream.on("data",this.trigger.bind(this,"data")),v.coalesceStream.on("id3Frame",function(D){D.dispatchType=v.metadataStream.dispatchType,h.trigger("id3Frame",D)}),v.coalesceStream.on("caption",this.trigger.bind(this,"caption")),v.coalesceStream.on("done",this.trigger.bind(this,"done")),Qc(this,v)},this.setBaseMediaDecodeTime=function(v){var D=this.transmuxPipeline_;u.keepOriginalTimestamps||(this.baseMediaDecodeTime=v),g&&(g.timelineStartInfo.dts=void 0,g.timelineStartInfo.pts=void 0,cs.clearDtsInfo(g),D.audioTimestampRolloverStream&&D.audioTimestampRolloverStream.discontinuity()),f&&(D.videoSegmentStream&&(D.videoSegmentStream.gopCache_=[]),f.timelineStartInfo.dts=void 0,f.timelineStartInfo.pts=void 0,cs.clearDtsInfo(f),D.captionStream.reset()),D.timestampRolloverStream&&D.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(v){g&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(v)},this.setRemux=function(v){var D=this.transmuxPipeline_;u.remux=v,D&&D.coalesceStream&&D.coalesceStream.setRemux(v)},this.alignGopsWith=function(v){f&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(v)},this.getLogTrigger_=function(v){var D=this;return function(I){I.stream=v,D.trigger("log",I)}},this.push=function(v){if(m){var D=zy(v);D&&this.transmuxPipeline_.type!=="aac"?this.setupAacPipeline():!D&&this.transmuxPipeline_.type!=="ts"&&this.setupTsPipeline(),m=!1}this.transmuxPipeline_.headOfPipeline.push(v)},this.flush=function(){m=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},da.prototype=new oa;var Xy={Transmuxer:da},Ky=function(u){return u>>>0},Yy=function(u){return("00"+u.toString(16)).slice(-2)},ha={toUnsigned:Ky,toHexString:Yy},Qy=function(u){var h="";return h+=String.fromCharCode(u[0]),h+=String.fromCharCode(u[1]),h+=String.fromCharCode(u[2]),h+=String.fromCharCode(u[3]),h},ed=Qy,Jy=ha.toUnsigned,Zy=ed,td=function(u,h){var m=[],f,g,v,D,I;if(!h.length)return null;for(f=0;f<u.byteLength;)g=Jy(u[f]<<24|u[f+1]<<16|u[f+2]<<8|u[f+3]),v=Zy(u.subarray(f+4,f+8)),D=g>1?f+g:u.byteLength,v===h[0]&&(h.length===1?m.push(u.subarray(f+8,D)):(I=td(u.subarray(f+8,D),h.slice(1)),I.length&&(m=m.concat(I)))),f=D;return m},sd=td,e0=ha.toUnsigned,t0=n.getUint64,s0=function(u){var h={version:u[0],flags:new Uint8Array(u.subarray(1,4))};return h.version===1?h.baseMediaDecodeTime=t0(u.subarray(4)):h.baseMediaDecodeTime=e0(u[4]<<24|u[5]<<16|u[6]<<8|u[7]),h},id=s0,i0=function(u){return{isLeading:(u[0]&12)>>>2,dependsOn:u[0]&3,isDependedOn:(u[1]&192)>>>6,hasRedundancy:(u[1]&48)>>>4,paddingValue:(u[1]&14)>>>1,isNonSyncSample:u[1]&1,degradationPriority:u[2]<<8|u[3]}},r0=i0,rd=r0,n0=function(u){var h={version:u[0],flags:new Uint8Array(u.subarray(1,4)),samples:[]},m=new DataView(u.buffer,u.byteOffset,u.byteLength),f=h.flags[2]&1,g=h.flags[2]&4,v=h.flags[1]&1,D=h.flags[1]&2,I=h.flags[1]&4,L=h.flags[1]&8,N=m.getUint32(4),M=8,G;for(f&&(h.dataOffset=m.getInt32(M),M+=4),g&&N&&(G={flags:rd(u.subarray(M,M+4))},M+=4,v&&(G.duration=m.getUint32(M),M+=4),D&&(G.size=m.getUint32(M),M+=4),L&&(h.version===1?G.compositionTimeOffset=m.getInt32(M):G.compositionTimeOffset=m.getUint32(M),M+=4),h.samples.push(G),N--);N--;)G={},v&&(G.duration=m.getUint32(M),M+=4),D&&(G.size=m.getUint32(M),M+=4),I&&(G.flags=rd(u.subarray(M,M+4)),M+=4),L&&(h.version===1?G.compositionTimeOffset=m.getInt32(M):G.compositionTimeOffset=m.getUint32(M),M+=4),h.samples.push(G);return h},nd=n0,a0=function(u){var h=new DataView(u.buffer,u.byteOffset,u.byteLength),m={version:u[0],flags:new Uint8Array(u.subarray(1,4)),trackId:h.getUint32(4)},f=m.flags[2]&1,g=m.flags[2]&2,v=m.flags[2]&8,D=m.flags[2]&16,I=m.flags[2]&32,L=m.flags[0]&65536,N=m.flags[0]&131072,M;return M=8,f&&(M+=4,m.baseDataOffset=h.getUint32(12),M+=4),g&&(m.sampleDescriptionIndex=h.getUint32(M),M+=4),v&&(m.defaultSampleDuration=h.getUint32(M),M+=4),D&&(m.defaultSampleSize=h.getUint32(M),M+=4),I&&(m.defaultSampleFlags=h.getUint32(M)),L&&(m.durationIsEmpty=!0),!f&&N&&(m.baseDataOffsetIsMoof=!0),m},ad=a0,Wr;typeof window<"u"?Wr=window:typeof t<"u"?Wr=t:typeof self<"u"?Wr=self:Wr={};var od=Wr,o0=pn.discardEmulationPreventionBytes,l0=Nc.CaptionStream,Xr=sd,u0=id,c0=nd,d0=ad,ld=od,h0=function(u,h){for(var m=u,f=0;f<h.length;f++){var g=h[f];if(m<g.size)return g;m-=g.size}return null},f0=function(u,h,m){var f=new DataView(u.buffer,u.byteOffset,u.byteLength),g={logs:[],seiNals:[]},v,D,I,L;for(D=0;D+4<u.length;D+=I)if(I=f.getUint32(D),D+=4,!(I<=0))switch(u[D]&31){case 6:var N=u.subarray(D+1,D+1+I),M=h0(D,h);if(v={nalUnitType:"sei_rbsp",size:I,data:N,escapedRBSP:o0(N),trackId:m},M)v.pts=M.pts,v.dts=M.dts,L=M;else if(L)v.pts=L.pts,v.dts=L.dts;else{g.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+D+" for trackId "+m+". See mux.js#223."});break}g.seiNals.push(v);break}return g},p0=function(u,h,m){var f=h,g=m.defaultSampleDuration||0,v=m.defaultSampleSize||0,D=m.trackId,I=[];return u.forEach(function(L){var N=c0(L),M=N.samples;M.forEach(function(G){G.duration===void 0&&(G.duration=g),G.size===void 0&&(G.size=v),G.trackId=D,G.dts=f,G.compositionTimeOffset===void 0&&(G.compositionTimeOffset=0),typeof f=="bigint"?(G.pts=f+ld.BigInt(G.compositionTimeOffset),f+=ld.BigInt(G.duration)):(G.pts=f+G.compositionTimeOffset,f+=G.duration)}),I=I.concat(M)}),I},m0=function(u,h){var m=Xr(u,["moof","traf"]),f=Xr(u,["mdat"]),g={},v=[];return f.forEach(function(D,I){var L=m[I];v.push({mdat:D,traf:L})}),v.forEach(function(D){var I=D.mdat,L=D.traf,N=Xr(L,["tfhd"]),M=d0(N[0]),G=M.trackId,le=Xr(L,["tfdt"]),J=le.length>0?u0(le[0]).baseMediaDecodeTime:0,Ae=Xr(L,["trun"]),Re,xt;h===G&&Ae.length>0&&(Re=p0(Ae,J,M),xt=f0(I,Re,G),g[G]||(g[G]={seiNals:[],logs:[]}),g[G].seiNals=g[G].seiNals.concat(xt.seiNals),g[G].logs=g[G].logs.concat(xt.logs))}),g},g0=function(u,h,m){var f;if(h===null)return null;f=m0(u,h);var g=f[h]||{};return{seiNals:g.seiNals,logs:g.logs,timescale:m}},y0=function(){var u=!1,h,m,f,g,v,D;this.isInitialized=function(){return u},this.init=function(I){h=new l0,u=!0,D=I?I.isPartial:!1,h.on("data",function(L){L.startTime=L.startPts/g,L.endTime=L.endPts/g,v.captions.push(L),v.captionStreams[L.stream]=!0}),h.on("log",function(L){v.logs.push(L)})},this.isNewInit=function(I,L){return I&&I.length===0||L&&typeof L=="object"&&Object.keys(L).length===0?!1:f!==I[0]||g!==L[f]},this.parse=function(I,L,N){var M;if(this.isInitialized()){if(!L||!N)return null;if(this.isNewInit(L,N))f=L[0],g=N[f];else if(f===null||!g)return m.push(I),null}else return null;for(;m.length>0;){var G=m.shift();this.parse(G,L,N)}return M=g0(I,f,g),M&&M.logs&&(v.logs=v.logs.concat(M.logs)),M===null||!M.seiNals?v.logs.length?{logs:v.logs,captions:[],captionStreams:[]}:null:(this.pushNals(M.seiNals),this.flushStream(),v)},this.pushNals=function(I){if(!this.isInitialized()||!I||I.length===0)return null;I.forEach(function(L){h.push(L)})},this.flushStream=function(){if(!this.isInitialized())return null;D?h.partialFlush():h.flush()},this.clearParsedCaptions=function(){v.captions=[],v.captionStreams={},v.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;h.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){m=[],f=null,g=null,v?this.clearParsedCaptions():v={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},_0=y0,v0=function(u){for(var h=0,m=String.fromCharCode(u[h]),f="";m!=="\0";)f+=m,h++,m=String.fromCharCode(u[h]);return f+=m,f},b0={uint8ToCString:v0},fa=b0.uint8ToCString,T0=n.getUint64,S0=function(u){var h=4,m=u[0],f,g,v,D,I,L,N,M;if(m===0){f=fa(u.subarray(h)),h+=f.length,g=fa(u.subarray(h)),h+=g.length;var G=new DataView(u.buffer);v=G.getUint32(h),h+=4,I=G.getUint32(h),h+=4,L=G.getUint32(h),h+=4,N=G.getUint32(h),h+=4}else if(m===1){var G=new DataView(u.buffer);v=G.getUint32(h),h+=4,D=T0(u.subarray(h)),h+=8,L=G.getUint32(h),h+=4,N=G.getUint32(h),h+=4,f=fa(u.subarray(h)),h+=f.length,g=fa(u.subarray(h)),h+=g.length}M=new Uint8Array(u.subarray(h,u.byteLength));var le={scheme_id_uri:f,value:g,timescale:v||1,presentation_time:D,presentation_time_delta:I,event_duration:L,id:N,message_data:M};return x0(m,le)?le:void 0},E0=function(u,h,m,f){return u||u===0?u/h:f+m/h},x0=function(u,h){var m=h.scheme_id_uri!=="\0",f=u===0&&ud(h.presentation_time_delta)&&m,g=u===1&&ud(h.presentation_time)&&m;return!(u>1)&&f||g},ud=function(u){return u!==void 0||u!==null},C0={parseEmsgBox:S0,scaleTime:E0},pa=ha.toUnsigned,Kr=ha.toHexString,dt=sd,sr=ed,Vo=C0,w0=ad,A0=nd,k0=id,D0=n.getUint64,cd,dd,hd,fd,pd,zo,md,Go=od,I0=Bc.parseId3Frames;cd=function(u){var h={},m=dt(u,["moov","trak"]);return m.reduce(function(f,g){var v,D,I,L,N;return v=dt(g,["tkhd"])[0],!v||(D=v[0],I=D===0?12:20,L=pa(v[I]<<24|v[I+1]<<16|v[I+2]<<8|v[I+3]),N=dt(g,["mdia","mdhd"])[0],!N)?null:(D=N[0],I=D===0?12:20,f[L]=pa(N[I]<<24|N[I+1]<<16|N[I+2]<<8|N[I+3]),f)},h)},dd=function(u,h){var m;m=dt(h,["moof","traf"]);var f=m.reduce(function(g,v){var D=dt(v,["tfhd"])[0],I=pa(D[4]<<24|D[5]<<16|D[6]<<8|D[7]),L=u[I]||9e4,N=dt(v,["tfdt"])[0],M=new DataView(N.buffer,N.byteOffset,N.byteLength),G;N[0]===1?G=D0(N.subarray(4,12)):G=M.getUint32(4);let le;return typeof G=="bigint"?le=G/Go.BigInt(L):typeof G=="number"&&!isNaN(G)&&(le=G/L),le<Number.MAX_SAFE_INTEGER&&(le=Number(le)),le<g&&(g=le),g},1/0);return typeof f=="bigint"||isFinite(f)?f:0},hd=function(u,h){var m=dt(h,["moof","traf"]),f=0,g=0,v;if(m&&m.length){var D=dt(m[0],["tfhd"])[0],I=dt(m[0],["trun"])[0],L=dt(m[0],["tfdt"])[0];if(D){var N=w0(D);v=N.trackId}if(L){var M=k0(L);f=M.baseMediaDecodeTime}if(I){var G=A0(I);G.samples&&G.samples.length&&(g=G.samples[0].compositionTimeOffset||0)}}var le=u[v]||9e4;typeof f=="bigint"&&(g=Go.BigInt(g),le=Go.BigInt(le));var J=(f+g)/le;return typeof J=="bigint"&&J<Number.MAX_SAFE_INTEGER&&(J=Number(J)),J},fd=function(u){var h=dt(u,["moov","trak"]),m=[];return h.forEach(function(f){var g=dt(f,["mdia","hdlr"]),v=dt(f,["tkhd"]);g.forEach(function(D,I){var L=sr(D.subarray(8,12)),N=v[I],M,G,le;L==="vide"&&(M=new DataView(N.buffer,N.byteOffset,N.byteLength),G=M.getUint8(0),le=G===0?M.getUint32(12):M.getUint32(20),m.push(le))})}),m},zo=function(u){var h=u[0],m=h===0?12:20;return pa(u[m]<<24|u[m+1]<<16|u[m+2]<<8|u[m+3])},pd=function(u){var h=dt(u,["moov","trak"]),m=[];return h.forEach(function(f){var g={},v=dt(f,["tkhd"])[0],D,I;v&&(D=new DataView(v.buffer,v.byteOffset,v.byteLength),I=D.getUint8(0),g.id=I===0?D.getUint32(12):D.getUint32(20));var L=dt(f,["mdia","hdlr"])[0];if(L){var N=sr(L.subarray(8,12));N==="vide"?g.type="video":N==="soun"?g.type="audio":g.type=N}var M=dt(f,["mdia","minf","stbl","stsd"])[0];if(M){var G=M.subarray(8);g.codec=sr(G.subarray(4,8));var le=dt(G,[g.codec])[0],J,Ae;le&&(/^[asm]vc[1-9]$/i.test(g.codec)?(J=le.subarray(78),Ae=sr(J.subarray(4,8)),Ae==="avcC"&&J.length>11?(g.codec+=".",g.codec+=Kr(J[9]),g.codec+=Kr(J[10]),g.codec+=Kr(J[11])):g.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(g.codec)?(J=le.subarray(28),Ae=sr(J.subarray(4,8)),Ae==="esds"&&J.length>20&&J[19]!==0?(g.codec+="."+Kr(J[19]),g.codec+="."+Kr(J[20]>>>2&63).replace(/^0/,"")):g.codec="mp4a.40.2"):g.codec=g.codec.toLowerCase())}var Re=dt(f,["mdia","mdhd"])[0];Re&&(g.timescale=zo(Re)),m.push(g)}),m},md=function(u,h=0){var m=dt(u,["emsg"]);return m.map(f=>{var g=Vo.parseEmsgBox(new Uint8Array(f)),v=I0(g.message_data);return{cueTime:Vo.scaleTime(g.presentation_time,g.timescale,g.presentation_time_delta,h),duration:Vo.scaleTime(g.event_duration,g.timescale),frames:v}})};var Wo={findBox:dt,parseType:sr,timescale:cd,startTime:dd,compositionStartTime:hd,videoTrackIds:fd,tracks:pd,getTimescaleFromMediaHeader:zo,getEmsgID3:md},Xo=Qn,gd=function(u){var h=u[1]&31;return h<<=8,h|=u[2],h},ma=function(u){return!!(u[1]&64)},ga=function(u){var h=0;return(u[3]&48)>>>4>1&&(h+=u[4]+1),h},P0=function(u,h){var m=gd(u);return m===0?"pat":m===h?"pmt":h?"pes":null},L0=function(u){var h=ma(u),m=4+ga(u);return h&&(m+=u[m]+1),(u[m+10]&31)<<8|u[m+11]},O0=function(u){var h={},m=ma(u),f=4+ga(u);if(m&&(f+=u[f]+1),!!(u[f+5]&1)){var g,v,D;g=(u[f+1]&15)<<8|u[f+2],v=3+g-4,D=(u[f+10]&15)<<8|u[f+11];for(var I=12+D;I<v;){var L=f+I;h[(u[L+1]&31)<<8|u[L+2]]=u[L],I+=((u[L+3]&15)<<8|u[L+4])+5}return h}},N0=function(u,h){var m=gd(u),f=h[m];switch(f){case Xo.H264_STREAM_TYPE:return"video";case Xo.ADTS_STREAM_TYPE:return"audio";case Xo.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},R0=function(u){var h=ma(u);if(!h)return null;var m=4+ga(u);if(m>=u.byteLength)return null;var f=null,g;return g=u[m+7],g&192&&(f={},f.pts=(u[m+9]&14)<<27|(u[m+10]&255)<<20|(u[m+11]&254)<<12|(u[m+12]&255)<<5|(u[m+13]&254)>>>3,f.pts*=4,f.pts+=(u[m+13]&6)>>>1,f.dts=f.pts,g&64&&(f.dts=(u[m+14]&14)<<27|(u[m+15]&255)<<20|(u[m+16]&254)<<12|(u[m+17]&255)<<5|(u[m+18]&254)>>>3,f.dts*=4,f.dts+=(u[m+18]&6)>>>1)),f},Ko=function(u){switch(u){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},M0=function(u){for(var h=4+ga(u),m=u.subarray(h),f=0,g=0,v=!1,D;g<m.byteLength-3;g++)if(m[g+2]===1){f=g+5;break}for(;f<m.byteLength;)switch(m[f]){case 0:if(m[f-1]!==0){f+=2;break}else if(m[f-2]!==0){f++;break}g+3!==f-2&&(D=Ko(m[g+3]&31),D==="slice_layer_without_partitioning_rbsp_idr"&&(v=!0));do f++;while(m[f]!==1&&f<m.length);g=f-2,f+=3;break;case 1:if(m[f-1]!==0||m[f-2]!==0){f+=3;break}D=Ko(m[g+3]&31),D==="slice_layer_without_partitioning_rbsp_idr"&&(v=!0),g=f-2,f+=3;break;default:f+=3;break}return m=m.subarray(g),f-=g,g=0,m&&m.byteLength>3&&(D=Ko(m[g+3]&31),D==="slice_layer_without_partitioning_rbsp_idr"&&(v=!0)),v},F0={parseType:P0,parsePat:L0,parsePmt:O0,parsePayloadUnitStartIndicator:ma,parsePesType:N0,parsePesTime:R0,videoPacketContainsKeyFrame:M0},yd=Qn,ir=Mc.handleRollover,Ye={};Ye.ts=F0,Ye.aac=qo;var hi=Ue.ONE_SECOND_IN_TS,Nt=188,bs=71,B0=function(u,h){for(var m=0,f=Nt,g,v;f<u.byteLength;){if(u[m]===bs&&u[f]===bs){switch(g=u.subarray(m,f),v=Ye.ts.parseType(g,h.pid),v){case"pat":h.pid=Ye.ts.parsePat(g);break;case"pmt":var D=Ye.ts.parsePmt(g);h.table=h.table||{},Object.keys(D).forEach(function(I){h.table[I]=D[I]});break}m+=Nt,f+=Nt;continue}m++,f++}},_d=function(u,h,m){for(var f=0,g=Nt,v,D,I,L,N,M=!1;g<=u.byteLength;){if(u[f]===bs&&(u[g]===bs||g===u.byteLength)){switch(v=u.subarray(f,g),D=Ye.ts.parseType(v,h.pid),D){case"pes":I=Ye.ts.parsePesType(v,h.table),L=Ye.ts.parsePayloadUnitStartIndicator(v),I==="audio"&&L&&(N=Ye.ts.parsePesTime(v),N&&(N.type="audio",m.audio.push(N),M=!0));break}if(M)break;f+=Nt,g+=Nt;continue}f++,g++}for(g=u.byteLength,f=g-Nt,M=!1;f>=0;){if(u[f]===bs&&(u[g]===bs||g===u.byteLength)){switch(v=u.subarray(f,g),D=Ye.ts.parseType(v,h.pid),D){case"pes":I=Ye.ts.parsePesType(v,h.table),L=Ye.ts.parsePayloadUnitStartIndicator(v),I==="audio"&&L&&(N=Ye.ts.parsePesTime(v),N&&(N.type="audio",m.audio.push(N),M=!0));break}if(M)break;f-=Nt,g-=Nt;continue}f--,g--}},U0=function(u,h,m){for(var f=0,g=Nt,v,D,I,L,N,M,G,le,J=!1,Ae={data:[],size:0};g<u.byteLength;){if(u[f]===bs&&u[g]===bs){switch(v=u.subarray(f,g),D=Ye.ts.parseType(v,h.pid),D){case"pes":if(I=Ye.ts.parsePesType(v,h.table),L=Ye.ts.parsePayloadUnitStartIndicator(v),I==="video"&&(L&&!J&&(N=Ye.ts.parsePesTime(v),N&&(N.type="video",m.video.push(N),J=!0)),!m.firstKeyFrame)){if(L&&Ae.size!==0){for(M=new Uint8Array(Ae.size),G=0;Ae.data.length;)le=Ae.data.shift(),M.set(le,G),G+=le.byteLength;if(Ye.ts.videoPacketContainsKeyFrame(M)){var Re=Ye.ts.parsePesTime(M);Re?(m.firstKeyFrame=Re,m.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}Ae.size=0}Ae.data.push(v),Ae.size+=v.byteLength}break}if(J&&m.firstKeyFrame)break;f+=Nt,g+=Nt;continue}f++,g++}for(g=u.byteLength,f=g-Nt,J=!1;f>=0;){if(u[f]===bs&&u[g]===bs){switch(v=u.subarray(f,g),D=Ye.ts.parseType(v,h.pid),D){case"pes":I=Ye.ts.parsePesType(v,h.table),L=Ye.ts.parsePayloadUnitStartIndicator(v),I==="video"&&L&&(N=Ye.ts.parsePesTime(v),N&&(N.type="video",m.video.push(N),J=!0));break}if(J)break;f-=Nt,g-=Nt;continue}f--,g--}},$0=function(u,h){if(u.audio&&u.audio.length){var m=h;(typeof m>"u"||isNaN(m))&&(m=u.audio[0].dts),u.audio.forEach(function(v){v.dts=ir(v.dts,m),v.pts=ir(v.pts,m),v.dtsTime=v.dts/hi,v.ptsTime=v.pts/hi})}if(u.video&&u.video.length){var f=h;if((typeof f>"u"||isNaN(f))&&(f=u.video[0].dts),u.video.forEach(function(v){v.dts=ir(v.dts,f),v.pts=ir(v.pts,f),v.dtsTime=v.dts/hi,v.ptsTime=v.pts/hi}),u.firstKeyFrame){var g=u.firstKeyFrame;g.dts=ir(g.dts,f),g.pts=ir(g.pts,f),g.dtsTime=g.dts/hi,g.ptsTime=g.pts/hi}}},j0=function(u){for(var h=!1,m=0,f=null,g=null,v=0,D=0,I;u.length-D>=3;){var L=Ye.aac.parseType(u,D);switch(L){case"timed-metadata":if(u.length-D<10){h=!0;break}if(v=Ye.aac.parseId3TagSize(u,D),v>u.length){h=!0;break}g===null&&(I=u.subarray(D,D+v),g=Ye.aac.parseAacTimestamp(I)),D+=v;break;case"audio":if(u.length-D<7){h=!0;break}if(v=Ye.aac.parseAdtsSize(u,D),v>u.length){h=!0;break}f===null&&(I=u.subarray(D,D+v),f=Ye.aac.parseSampleRate(I)),m++,D+=v;break;default:D++;break}if(h)return null}if(f===null||g===null)return null;var N=hi/f,M={audio:[{type:"audio",dts:g,pts:g},{type:"audio",dts:g+m*1024*N,pts:g+m*1024*N}]};return M},H0=function(u){var h={pid:null,table:null},m={};B0(u,h);for(var f in h.table)if(h.table.hasOwnProperty(f)){var g=h.table[f];switch(g){case yd.H264_STREAM_TYPE:m.video=[],U0(u,h,m),m.video.length===0&&delete m.video;break;case yd.ADTS_STREAM_TYPE:m.audio=[],_d(u,h,m),m.audio.length===0&&delete m.audio;break}}return m},q0=function(u,h){var m=Ye.aac.isLikelyAacData(u),f;return m?f=j0(u):f=H0(u),!f||!f.audio&&!f.video?null:($0(f,h),f)},V0={inspect:q0,parseAudioPes_:_d};const z0=function(u,h){h.on("data",function(m){const f=m.initSegment;m.initSegment={data:f.buffer,byteOffset:f.byteOffset,byteLength:f.byteLength};const g=m.data;m.data=g.buffer,u.postMessage({action:"data",segment:m,byteOffset:g.byteOffset,byteLength:g.byteLength},[m.data])}),h.on("done",function(m){u.postMessage({action:"done"})}),h.on("gopInfo",function(m){u.postMessage({action:"gopInfo",gopInfo:m})}),h.on("videoSegmentTimingInfo",function(m){const f={start:{decode:Ue.videoTsToSeconds(m.start.dts),presentation:Ue.videoTsToSeconds(m.start.pts)},end:{decode:Ue.videoTsToSeconds(m.end.dts),presentation:Ue.videoTsToSeconds(m.end.pts)},baseMediaDecodeTime:Ue.videoTsToSeconds(m.baseMediaDecodeTime)};m.prependedContentDuration&&(f.prependedContentDuration=Ue.videoTsToSeconds(m.prependedContentDuration)),u.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:f})}),h.on("audioSegmentTimingInfo",function(m){const f={start:{decode:Ue.videoTsToSeconds(m.start.dts),presentation:Ue.videoTsToSeconds(m.start.pts)},end:{decode:Ue.videoTsToSeconds(m.end.dts),presentation:Ue.videoTsToSeconds(m.end.pts)},baseMediaDecodeTime:Ue.videoTsToSeconds(m.baseMediaDecodeTime)};m.prependedContentDuration&&(f.prependedContentDuration=Ue.videoTsToSeconds(m.prependedContentDuration)),u.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:f})}),h.on("id3Frame",function(m){u.postMessage({action:"id3Frame",id3Frame:m})}),h.on("caption",function(m){u.postMessage({action:"caption",caption:m})}),h.on("trackinfo",function(m){u.postMessage({action:"trackinfo",trackInfo:m})}),h.on("audioTimingInfo",function(m){u.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:Ue.videoTsToSeconds(m.start),end:Ue.videoTsToSeconds(m.end)}})}),h.on("videoTimingInfo",function(m){u.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:Ue.videoTsToSeconds(m.start),end:Ue.videoTsToSeconds(m.end)}})}),h.on("log",function(m){u.postMessage({action:"log",log:m})})};class vd{constructor(h,m){this.options=m||{},this.self=h,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Xy.Transmuxer(this.options),z0(this.self,this.transmuxer)}pushMp4Captions(h){this.captionParser||(this.captionParser=new _0,this.captionParser.init());const m=new Uint8Array(h.data,h.byteOffset,h.byteLength),f=this.captionParser.parse(m,h.trackIds,h.timescales);this.self.postMessage({action:"mp4Captions",captions:f&&f.captions||[],logs:f&&f.logs||[],data:m.buffer},[m.buffer])}probeMp4StartTime({timescales:h,data:m}){const f=Wo.startTime(h,m);this.self.postMessage({action:"probeMp4StartTime",startTime:f,data:m},[m.buffer])}probeMp4Tracks({data:h}){const m=Wo.tracks(h);this.self.postMessage({action:"probeMp4Tracks",tracks:m,data:h},[h.buffer])}probeEmsgID3({data:h,offset:m}){const f=Wo.getEmsgID3(h,m);this.self.postMessage({action:"probeEmsgID3",id3Frames:f,emsgData:h},[h.buffer])}probeTs({data:h,baseStartTime:m}){const f=typeof m=="number"&&!isNaN(m)?m*Ue.ONE_SECOND_IN_TS:void 0,g=V0.inspect(h,f);let v=null;g&&(v={hasVideo:g.video&&g.video.length===2||!1,hasAudio:g.audio&&g.audio.length===2||!1},v.hasVideo&&(v.videoStart=g.video[0].ptsTime),v.hasAudio&&(v.audioStart=g.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:v,data:h},[h.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(h){const m=new Uint8Array(h.data,h.byteOffset,h.byteLength);this.transmuxer.push(m)}reset(){this.transmuxer.reset()}setTimestampOffset(h){const m=h.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(Ue.secondsToVideoTs(m)))}setAudioAppendStart(h){this.transmuxer.setAudioAppendStart(Math.ceil(Ue.secondsToVideoTs(h.appendStart)))}setRemux(h){this.transmuxer.setRemux(h.remux)}flush(h){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(h){this.transmuxer.alignGopsWith(h.gopsToAlignWith.slice())}}self.onmessage=function(u){if(u.data.action==="init"&&u.data.options){this.messageHandlers=new vd(self,u.data.options);return}this.messageHandlers||(this.messageHandlers=new vd(self)),u.data&&u.data.action&&u.data.action!=="init"&&this.messageHandlers[u.data.action]&&this.messageHandlers[u.data.action](u.data)}}));var LH=GL(PH);const OH=(t,e,s)=>{const{type:i,initSegment:r,captions:n,captionStreams:a,metadata:o,videoFrameDtsTime:l,videoFramePtsTime:c}=t.data.segment;e.buffer.push({captions:n,captionStreams:a,metadata:o});const d=t.data.segment.boxes||{data:t.data.segment.data},p={type:i,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(r.data,r.byteOffset,r.byteLength)};typeof l<"u"&&(p.videoFrameDtsTime=l),typeof c<"u"&&(p.videoFramePtsTime=c),s(p)},NH=({transmuxedData:t,callback:e})=>{t.buffer=[],e(t)},RH=(t,e)=>{e.gopInfo=t.data.gopInfo},KL=t=>{const{transmuxer:e,bytes:s,audioAppendStart:i,gopsToAlignWith:r,remux:n,onData:a,onTrackInfo:o,onAudioTimingInfo:l,onVideoTimingInfo:c,onVideoSegmentTimingInfo:d,onAudioSegmentTimingInfo:p,onId3:_,onCaptions:b,onDone:T,onEndedTimeline:y,onTransmuxerLog:x,isEndOfTimeline:A}=t,C={buffer:[]};let S=A;const E=w=>{e.currentTransmux===t&&(w.data.action==="data"&&OH(w,C,a),w.data.action==="trackinfo"&&o(w.data.trackInfo),w.data.action==="gopInfo"&&RH(w,C),w.data.action==="audioTimingInfo"&&l(w.data.audioTimingInfo),w.data.action==="videoTimingInfo"&&c(w.data.videoTimingInfo),w.data.action==="videoSegmentTimingInfo"&&d(w.data.videoSegmentTimingInfo),w.data.action==="audioSegmentTimingInfo"&&p(w.data.audioSegmentTimingInfo),w.data.action==="id3Frame"&&_([w.data.id3Frame],w.data.id3Frame.dispatchType),w.data.action==="caption"&&b(w.data.caption),w.data.action==="endedtimeline"&&(S=!1,y()),w.data.action==="log"&&x(w.data.log),w.data.type==="transmuxed"&&(S||(e.onmessage=null,NH({transmuxedData:C,callback:T}),YL(e))))};if(e.onmessage=E,i&&e.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&e.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),typeof n<"u"&&e.postMessage({action:"setRemux",remux:n}),s.byteLength){const w=s instanceof ArrayBuffer?s:s.buffer,O=s instanceof ArrayBuffer?0:s.byteOffset;e.postMessage({action:"push",data:w,byteOffset:O,byteLength:s.byteLength},[w])}A&&e.postMessage({action:"endTimeline"}),e.postMessage({action:"flush"})},YL=t=>{t.currentTransmux=null,t.transmuxQueue.length&&(t.currentTransmux=t.transmuxQueue.shift(),typeof t.currentTransmux=="function"?t.currentTransmux():KL(t.currentTransmux))},Xx=(t,e)=>{t.postMessage({action:e}),YL(t)},QL=(t,e)=>{if(!e.currentTransmux){e.currentTransmux=t,Xx(e,t);return}e.transmuxQueue.push(Xx.bind(null,e,t))},MH=t=>{QL("reset",t)},FH=t=>{QL("endTimeline",t)},JL=t=>{if(!t.transmuxer.currentTransmux){t.transmuxer.currentTransmux=t,KL(t);return}t.transmuxer.transmuxQueue.push(t)},BH=t=>{const e=new LH;e.currentTransmux=null,e.transmuxQueue=[];const s=e.terminate;return e.terminate=()=>(e.currentTransmux=null,e.transmuxQueue.length=0,s.call(e)),e.postMessage({action:"init",options:t}),e};var A_={reset:MH,endTimeline:FH,transmux:JL,createTransmuxer:BH};const vh=function(t){const e=t.transmuxer,s=t.endAction||t.action,i=t.callback,r=xr({},t,{endAction:null,transmuxer:null,callback:null}),n=a=>{a.data.action===s&&(e.removeEventListener("message",n),a.data.data&&(a.data.data=new Uint8Array(a.data.data,t.byteOffset||0,t.byteLength||a.data.data.byteLength),t.data&&(t.data=a.data.data)),i(a.data))};if(e.addEventListener("message",n),t.data){const a=t.data instanceof ArrayBuffer;r.byteOffset=a?0:t.data.byteOffset,r.byteLength=t.data.byteLength;const o=[a?t.data:t.data.buffer];e.postMessage(r,o)}else e.postMessage(r)},An={FAILURE:2,TIMEOUT:-101,ABORTED:-102},Cb=t=>
251{t.forEach(e=>{e.abort()})},UH=t=>({bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}),$H=t=>{const e=t.target,i={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-e.requestTime||0};return i.bytesReceived=t.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i},Q1=(t,e)=>e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:An.TIMEOUT,xhr:e}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:An.ABORTED,xhr:e}:t?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:An.FAILURE,xhr:e}:e.responseType==="arraybuffer"&&e.response.byteLength===0?{status:e.status,message:"Empty HLS response at URL: "+e.uri,code:An.FAILURE,xhr:e}:null,Kx=(t,e,s)=>(i,r)=>{const n=r.response,a=Q1(i,r);if(a)return s(a,t);if(n.byteLength!==16)return s({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:An.FAILURE,xhr:r},t);const o=new DataView(n),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]);for(let c=0;c<e.length;c++)e[c].bytes=l;return s(null,t)},ZL=(t,e)=>{const s=b1(t.map.bytes);if(s!=="mp4"){const i=t.map.resolvedUri||t.map.uri;return e({internal:!0,message:`Found unsupported ${s||"unknown"} container for initialization segment at URL: ${i}`,code:An.FAILURE})}vh({action:"probeMp4Tracks",data:t.map.bytes,transmuxer:t.transmuxer,callback:({tracks:i,data:r})=>(t.map.bytes=r,i.forEach(function(n){t.map.tracks=t.map.tracks||{},!t.map.tracks[n.type]&&(t.map.tracks[n.type]=n,typeof n.id=="number"&&n.timescale&&(t.map.timescales=t.map.timescales||{},t.map.timescales[n.id]=n.timescale))}),e(null))})},jH=({segment:t,finishProcessingFn:e})=>(s,i)=>{const r=Q1(s,i);if(r)return e(r,t);const n=new Uint8Array(i.response);if(t.map.key)return t.map.encryptedBytes=n,e(null,t);t.map.bytes=n,ZL(t,function(a){if(a)return a.xhr=i,a.status=i.status,e(a,t);e(null,t)})},HH=({segment:t,finishProcessingFn:e,responseType:s})=>(i,r)=>{const n=Q1(i,r);if(n)return e(n,t);const a=s==="arraybuffer"||!r.responseText?r.response:DH(r.responseText.substring(t.lastReachedChar||0));return t.stats=UH(r),t.key?t.encryptedBytes=new Uint8Array(a):t.bytes=new Uint8Array(a),e(null,t)},qH=({segment:t,bytes:e,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_})=>{const b=t.map&&t.map.tracks||{},T=!!(b.audio&&b.video);let y=i.bind(null,t,"audio","start");const x=i.bind(null,t,"audio","end");let A=i.bind(null,t,"video","start");const C=i.bind(null,t,"video","end"),S=()=>JL({bytes:e,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:T,onData:E=>{E.type=E.type==="combined"?"video":E.type,d(t,E)},onTrackInfo:E=>{s&&(T&&(E.isMuxed=!0),s(t,E))},onAudioTimingInfo:E=>{y&&typeof E.start<"u"&&(y(E.start),y=null),x&&typeof E.end<"u"&&x(E.end)},onVideoTimingInfo:E=>{A&&typeof E.start<"u"&&(A(E.start),A=null),C&&typeof E.end<"u"&&C(E.end)},onVideoSegmentTimingInfo:E=>{r(E)},onAudioSegmentTimingInfo:E=>{n(E)},onId3:(E,w)=>{a(t,E,w)},onCaptions:E=>{o(t,[E])},isEndOfTimeline:l,onEndedTimeline:()=>{c()},onTransmuxerLog:_,onDone:E=>{p&&(E.type=E.type==="combined"?"video":E.type,p(null,t,E))}});vh({action:"probeTs",transmuxer:t.transmuxer,data:e,baseStartTime:t.baseStartTime,callback:E=>{t.bytes=e=E.data;const w=E.result;w&&(s(t,{hasAudio:w.hasAudio,hasVideo:w.hasVideo,isMuxed:T}),s=null),S()}})},eO=({segment:t,bytes:e,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_})=>{let b=new Uint8Array(e);if(m$(b)){t.isFmp4=!0;const{tracks:T}=t.map,y={isFmp4:!0,hasVideo:!!T.video,hasAudio:!!T.audio};T.audio&&T.audio.codec&&T.audio.codec!=="enca"&&(y.audioCodec=T.audio.codec),T.video&&T.video.codec&&T.video.codec!=="encv"&&(y.videoCodec=T.video.codec),T.video&&T.audio&&(y.isMuxed=!0),s(t,y);const x=(A,C)=>{d(t,{data:b,type:y.hasAudio&&!y.isMuxed?"audio":"video"}),C&&C.length&&a(t,C),A&&A.length&&o(t,A),p(null,t,{})};vh({action:"probeMp4StartTime",timescales:t.map.timescales,data:b,transmuxer:t.transmuxer,callback:({data:A,startTime:C})=>{e=A.buffer,t.bytes=b=A,y.hasAudio&&!y.isMuxed&&i(t,"audio","start",C),y.hasVideo&&i(t,"video","start",C),vh({action:"probeEmsgID3",data:b,transmuxer:t.transmuxer,offset:C,callback:({emsgData:S,id3Frames:E})=>{if(e=S.buffer,t.bytes=b=S,!T.video||!S.byteLength||!t.transmuxer){x(void 0,E);return}vh({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:b,timescales:t.map.timescales,trackIds:[T.video.id],callback:w=>
251{e=w.data.buffer,t.bytes=b=w.data,w.logs.forEach(function(O){_(Mt(O,{stream:"mp4CaptionParser"}))}),x(w.captions,E)}})}})}});return}if(!t.transmuxer){p(null,t,{});return}if(typeof t.container>"u"&&(t.container=b1(b)),t.container!=="ts"&&t.container!=="aac"){s(t,{hasAudio:!1,hasVideo:!1}),p(null,t,{});return}qH({segment:t,bytes:e,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_})},tO=function({id:t,key:e,encryptedBytes:s,decryptionWorker:i},r){const n=o=>{if(o.data.source===t){i.removeEventListener("message",n);const l=o.data.decrypted;r(new Uint8Array(l.bytes,l.byteOffset,l.byteLength))}};i.addEventListener("message",n);let a;e.bytes.slice?a=e.bytes.slice():a=new Uint32Array(Array.prototype.slice.call(e.bytes)),i.postMessage($L({source:t,encrypted:s,key:a,iv:e.iv}),[s.buffer,a.buffer])},VH=({decryptionWorker:t,segment:e,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_})=>{tO({id:e.requestId,key:e.key,encryptedBytes:e.encryptedBytes,decryptionWorker:t},b=>{e.bytes=b,eO({segment:e,bytes:e.bytes,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_})})},zH=({activeXhrs:t,decryptionWorker:e,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_})=>{let b=0,T=!1;return(y,x)=>{if(!T){if(y)return T=!0,Cb(t),p(y,x);if(b+=1,b===t.length){const A=function(){if(x.encryptedBytes)return VH({decryptionWorker:e,segment:x,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_});eO({segment:x,bytes:x.bytes,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_})};if(x.endOfAllRequests=Date.now(),x.map&&x.map.encryptedBytes&&!x.map.bytes)return tO({decryptionWorker:e,id:x.requestId+"-init",encryptedBytes:x.map.encryptedBytes,key:x.map.key},C=>{x.map.bytes=C,ZL(x,S=>{if(S)return Cb(t),p(S,x);A()})});A()}}}},GH=({loadendState:t,abortFn:e})=>s=>{s.target.aborted&&e&&!t.calledAbortFn&&(e(),t.calledAbortFn=!0)},WH=({segment:t,progressFn:e,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d})=>p=>{if(!p.target.aborted)return t.stats=Mt(t.stats,$H(p)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),e(p,t)},XH=({xhr:t,xhrOptions:e,decryptionWorker:s,segment:i,abortFn:r,progressFn:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:p,isEndOfTimeline:_,endedTimelineFn:b,dataFn:T,doneFn:y,onTransmuxerLog:x})=>{const A=[],C=zH({activeXhrs:A,decryptionWorker:s,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:p,isEndOfTimeline:_,endedTimelineFn:b,dataFn:T,doneFn:y,onTransmuxerLog:x});if(i.key&&!i.key.bytes){const R=[i.key];i.map&&!i.map.bytes&&i.map.key&&i.map.key.resolvedUri===i.key.resolvedUri&&R.push(i.map.key);const $=Mt(e,{uri:i.key.resolvedUri,responseType:"arraybuffer"}),k=Kx(i,R,C),P=t($,k);A.push(P)}if(i.map&&!i.map.bytes){if(i.map.key&&(!i.key||i.key.resolvedUri!==i.map.key.resolvedUri)){const j=Mt(e,{uri:i.map.key.resolvedUri,responseType:"arraybuffer"}),F=Kx(i,[i.map.key],C),H=t(j,F);A.push(H)}const $=Mt(e,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:Eb(i.map)}),k=jH({segment:i,finishProcessingFn:C}),P=t($,k);A.push(P)}const S=Mt(e,{uri:i.part&&i.part.resolvedUri||i.resolvedUri,responseType:"arraybuffer",headers:Eb(i)}),E=HH({segment:i,finishProcessingFn:C,responseType:S.responseType}),w=t(S,E);w.addEventListener("progress",WH({segment:i,progressFn:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:p,isEndOfTimeline:_,endedTimelineFn:b,dataFn:T})),A.push(w);const O={};return A.forEach(R=>{R.addEventListener("loadend",GH({loadendState:O,abortFn:r}))}),()=>Cb(A)},KH=Nr("CodecUtils"),YH=function(t){const e=t.attributes||{};if(e.CODECS)return _n(e.CODECS)},sO=(t,e)=>{const s=e.attributes||{};return t&&t.mediaGroups&&t.mediaGroups.AUDIO&&s.AUDIO&&t.mediaGroups.AUDIO[s.AUDIO]},QH=(t,e)=>
251{if(!sO(t,e))return!0;const s=e.attributes||{},i=t.mediaGroups.AUDIO[s.AUDIO];for(const r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1},dm=function(t){const e={};return t.forEach(({mediaType:s,type:i,details:r})=>{e[s]=e[s]||[],e[s].push(SI(`${i}${r}`))}),Object.keys(e).forEach(function(s){if(e[s].length>1){KH(`multiple ${s} codecs found as attributes: ${e[s].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),e[s]=null;return}e[s]=e[s][0]}),e},Yx=function(t){let e=0;return t.audio&&e++,t.video&&e++,e},bh=function(t,e){const s=e.attributes||{},i=dm(YH(e)||[]);if(sO(t,e)&&!i.audio&&!QH(t,e)){const r=dm(f7(t,s.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},Yf=Nr("PlaylistSelector"),Qx=function(t){if(!t||!t.playlist)return;const e=t.playlist;return JSON.stringify({id:e.id,bandwidth:t.bandwidth,width:t.width,height:t.height,codecs:e.attributes&&e.attributes.CODECS||""})},hm=function(t,e){if(!t)return"";const s=Q.getComputedStyle(t);return s?s[e]:""},Tu=function(t,e){const s=t.slice();t.sort(function(i,r){const n=e(i,r);return n===0?s.indexOf(i)-s.indexOf(r):n})},J1=function(t,e){let s,i;return t.attributes.BANDWIDTH&&(s=t.attributes.BANDWIDTH),s=s||Q.Number.MAX_VALUE,e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||Q.Number.MAX_VALUE,s-i},JH=function(t,e){let s,i;return t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(s=t.attributes.RESOLUTION.width),s=s||Q.Number.MAX_VALUE,e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||Q.Number.MAX_VALUE,s===i&&t.attributes.BANDWIDTH&&e.attributes.BANDWIDTH?t.attributes.BANDWIDTH-e.attributes.BANDWIDTH:s-i};let iO=function(t,e,s,i,r,n){if(!t)return;const a={bandwidth:e,width:s,height:i,limitRenditionByPlayerDimensions:r};let o=t.playlists;qi.isAudioOnly(t)&&(o=n.getAudioTrackPlaylists_(),a.audioOnly=!0);let l=o.map(w=>{let O;const R=w.attributes&&w.attributes.RESOLUTION&&w.attributes.RESOLUTION.width,$=w.attributes&&w.attributes.RESOLUTION&&w.attributes.RESOLUTION.height;return O=w.attributes&&w.attributes.BANDWIDTH,O=O||Q.Number.MAX_VALUE,{bandwidth:O,width:R,height:$,playlist:w}});Tu(l,(w,O)=>w.bandwidth-O.bandwidth),l=l.filter(w=>!qi.isIncompatible(w.playlist));let c=l.filter(w=>qi.isEnabled(w.playlist));c.length||(c=l.filter(w=>!qi.isDisabled(w.playlist)));const d=c.filter(w=>w.bandwidth*Ns.BANDWIDTH_VARIANCE<e);let p=d[d.length-1];const _=d.filter(w=>w.bandwidth===p.bandwidth)[0];if(r===!1){const w=_||c[0]||l[0];if(w&&w.playlist){let O="sortedPlaylistReps";return _&&(O="bandwidthBestRep"),c[0]&&(O="enabledPlaylistReps"),Yf(`choosing ${Qx(w)} using ${O} with options`,a),w.playlist}return Yf("could not choose a playlist with options",a),null}const b=d.filter(w=>w.width&&w.height);Tu(b,(w,O)=>w.width-O.width);const T=b.filter(w=>w.width===s&&w.height===i);p=T[T.length-1];const y=T.filter(w=>w.bandwidth===p.bandwidth)[0];let x,A,C;y||(x=b.filter(w=>w.width>s||w.height>i),A=x.filter(w=>w.width===x[0].width&&w.height===x[0].height),p=A[A.length-1],C=A.filter(w=>w.bandwidth===p.bandwidth)[0]);let S;if(n.leastPixelDiffSelector){const w=b.map(O=>(O.pixelDiff=Math.abs(O.width-s)+Math.abs(O.height-i),O));Tu(w,(O,R)=>O.pixelDiff===R.pixelDiff?R.bandwidth-O.bandwidth:O.pixelDiff-R.pixelDiff),S=w[0]}const E=S||C||y||_||c[0]||l[0];if(E&&E.playlist){let w="sortedPlaylistReps";return S?w="leastPixelDiffRep":C?w="resolutionPlusOneRep":y?w="resolutionBestRep":_?w="bandwidthBestRep":c[0]&&(w="enabledPlaylistReps"),Yf(`choosing ${Qx(E)} using ${w} with options`,a),E.playlist}return Yf("could not choose a playlist with options",a),null};const Jx=function(){const t=this.useDevicePixelRatio&&Q.devicePixelRatio||1;return iO(this.playlists.main,this.systemBandwidth,parseInt(hm(this.tech_.el(),"width"),10)*t,parseInt(hm(this.tech_.el(),"height"),10)*t,this.limitRenditionByPlayerDimensions,this.playlistController_)},ZH=function(t){let e=-1,s=-1;if(t<0||t>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){const i=this.useDevicePixelRatio&&Q.devicePixelRatio||1;return e<0&&(e=this.systemBandwidth,s=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==s&&(e=t*this.systemBandwidth+(1-t)*e,s=this.systemBandwidth),iO(this.playlists.main,e,parseInt(hm(this.tech_.el(),"width"),10)*i,parseInt(hm(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.playlistController_)}},eq=function(t){const{main:e,currentTime:s,bandwidth:i,duration:r,segmentDuration:n,timeUntilRebuffer:a,currentTimeline:o,syncController:l}=t,c=e.playlists.filter(T=>!qi.isIncompatible(T));let d=c.filter(qi.isEnabled);d.length||(d=c.filter(T=>!qi.isDisabled(T)));const _=d.filter(qi.hasAttribute.bind(null,"BANDWIDTH")).map(T=>{const x=l.getSyncPoint(T,r,o,s)?1:2,C=qi.estimateSegmentRequestTime(n,i,T)*x-a;return{playlist:T,rebufferingImpact:C}}),b=_.filter(T=>T.rebufferingImpact<=0);return Tu(b,(T,y)=>J1(y.playlist,T.playlist)),b.length?b[0]:(Tu(_,(T,y)=>T.rebufferingImpact-y.rebufferingImpact),_[0]||null)},tq=function(){const t=this.playlists.main.playlists.filter(qi.isEnabled);return Tu(t,(s,i)=>J1(s,i)),t.filter(s=>!!bh(this.playlists.main,s).video)[0]||null},sq=t=>{let e=0,s;
vendor: 4,358 bytes, line 251
251return t.bytes&&(s=new Uint8Array(t.bytes),t.segments.forEach(i=>{s.set(i,e),e+=i.byteLength})),s},iq=function(t,e,s){if(!t[s]){e.trigger({type:"usage",name:"vhs-608"});let i=s;/^cc708_/.test(s)&&(i="SERVICE"+s.split("_")[1]);const r=e.textTracks().getTrackById(i);if(r)t[s]=r;else{const n=e.options_.vhs&&e.options_.vhs.captionServices||{};let a=s,o=s,l=!1;const c=n[i];c&&(a=c.label,o=c.language,l=c.default),t[s]=e.addRemoteTextTrack({kind:"captions",id:i,default:l,label:a,language:o},!1).track}}},rq=function({inbandTextTracks:t,captionArray:e,timestampOffset:s}){if(!e)return;const i=Q.WebKitDataCue||Q.VTTCue;e.forEach(r=>{const n=r.stream;r.content?r.content.forEach(a=>{const o=new i(r.startTime+s,r.endTime+s,a.text);o.line=a.line,o.align="left",o.position=a.position,o.positionAlign="line-left",t[n].addCue(o)}):t[n].addCue(new i(r.startTime+s,r.endTime+s,r.text))})},nq=function(t){Object.defineProperties(t.frame,{id:{get(){return fe.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get(){return fe.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get(){return fe.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})},aq=({inbandTextTracks:t,metadataArray:e,timestampOffset:s,videoDuration:i})=>{if(!e)return;const r=Q.WebKitDataCue||Q.VTTCue,n=t.metadataTrack_;if(!n||(e.forEach(d=>{const p=d.cueTime+s;typeof p!="number"||Q.isNaN(p)||p<0||!(p<1/0)||!d.frames||!d.frames.length||d.frames.forEach(_=>{const b=new r(p,p,_.value||_.url||_.data||"");b.frame=_,b.value=_,nq(b),n.addCue(b)})}),!n.cues||!n.cues.length))return;const a=n.cues,o=[];for(let d=0;d<a.length;d++)a[d]&&o.push(a[d]);const l=o.reduce((d,p)=>{const _=d[p.startTime]||[];return _.push(p),d[p.startTime]=_,d},{}),c=Object.keys(l).sort((d,p)=>Number(d)-Number(p));c.forEach((d,p)=>{const _=l[d],b=isFinite(i)?i:d,T=Number(c[p+1])||b;_.forEach(y=>{y.endTime=T})})},oq={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},lq=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),uq=({inbandTextTracks:t,dateRanges:e})=>{const s=t.metadataTrack_;if(!s)return;const i=Q.WebKitDataCue||Q.VTTCue;e.forEach(r=>{for(const n of Object.keys(r)){if(lq.has(n))continue;const a=new i(r.startTime,r.endTime,"");a.id=r.id,a.type="com.apple.quicktime.HLS",a.value={key:oq[n],data:r[n]},(n==="scte35Out"||n==="scte35In")&&(a.value.data=new Uint8Array(a.value.data.match(/[\da-f]{2}/gi)).buffer),s.addCue(a)}r.processDateRange()})},Zx=(t,e,s)=>{t.metadataTrack_||(t.metadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,fe.browser.IS_ANY_SAFARI||(t.metadataTrack_.inBandMetadataTrackDispatchType=e))},eh=function(t,e,s){let i,r;if(s&&s.cues)for(i=s.cues.length;i--;)r=s.cues[i],r.startTime>=t&&r.endTime<=e&&s.removeCue(r)},cq=function(t){const e=t.cues;if(!e)return;const s={};for(let i=e.length-1;i>=0;i--){const r=e[i],n=`${r.startTime}-${r.endTime}-${r.text}`;s[n]?t.removeCue(r):s[n]=r}},dq=(t,e,s)=>{if(typeof e>"u"||e===null||!t.length)return[];const i=Math.ceil((e-s+3)*ul.ONE_SECOND_IN_TS);let r;for(r=0;r<t.length&&!(t[r].pts>i);r++);return t.slice(r)},hq=(t,e,s)=>{if(!e.length)return t;if(s)return e.slice();const i=e[0].pts;let r=0;for(r;r<t.length&&!(t[r].pts>=i);r++);return t.slice(0,r).concat(e)},fq=(t,e,s,i)=>{const r=Math.ceil((e-i)*ul.ONE_SECOND_IN_TS),n=Math.ceil((s-i)*ul.ONE_SECOND_IN_TS),a=t.slice();let o=t.length;for(;o--&&!(t[o].pts<=n););if(o===-1)return a;let l=o+1;for(;l--&&!(t[l].pts<=r););return l=Math.max(l,0),a.splice(l,o-l+1),a},pq=function(t,e){if(!t&&!e||!t&&e||t&&!e)return!1;if(t===e)return!0;const s=Object.keys(t).sort(),i=Object.keys(e).sort();if(s.length!==i.length)return!1;for(let r=0;r<s.length;r++){const n=s[r];if(n!==i[r]||t[n]!==e[n])return!1}return!0},rO=22,mq=function(t,e,s){e=e||[];const i=[];let r=0;for(let n=0;n<e.length;n++){const a=e[n];if(t===a.timeline&&(i.push(n),r+=a.duration,r>s))return n}return i.length===0?0:i[i.length-1]},Fd=1,gq=500,eC=t=>typeof t=="number"&&isFinite(t),Qf=1/60,yq=(t,e,s)=>t!=="main"||!e||!s?null:!s.hasAudio&&!s.hasVideo?"Neither audio nor video foun
251d in segment.":e.hasVideo&&!s.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!e.hasVideo&&s.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null,_q=(t,e,s)=>{let i=e-Ns.BACK_BUFFER_LENGTH;t.length&&(i=Math.max(i,t.start(0)));const r=e-s;return Math.min(r,i)},Xl=t=>{const{startOfSegment:e,duration:s,segment:i,part:r,playlist:{mediaSequence:n,id:a,segments:o=[]},mediaIndex:l,partIndex:c,timeline:d}=t,p=o.length-1;let _="mediaIndex/partIndex increment";t.getMediaInfoForTime?_=`getMediaInfoForTime (${t.getMediaInfoForTime})`:t.isSyncRequest&&(_="getSyncSegmentCandidate (isSyncRequest)"),t.independent&&(_+=` with independent ${t.independent}`);const b=typeof c=="number",T=t.segment.uri?"segment":"pre-segment",y=b?CL({preloadSegment:i})-1:0;return`${T} [${n+l}/${n+p}]`+(b?` part [${c}/${y}]`:"")+` segment start/end [${i.start} => ${i.end}]`+(b?` part start/end [${r.start} => ${r.end}]`:"")+` startOfSegment [${e}] duration [${s}] timeline [${d}] selected by [${_}] playlist [${a}]`},tC=t=>`${t}TimingInfo`,vq=({segmentTimeline:t,currentTimeline:e,startOfSegment:s,buffered:i,overrideCheck:r})=>!r&&t===e?null:t<e?s:i.length?i.end(i.length-1):s,sC=({timelineChangeController:t,currentTimeline:e,segmentTimeline:s,loaderType:i,audioDisabled:r})=>{if(e===s)return!1;if(i==="audio"){const n=t.lastTimelineChange({type:"main"});return!n||n.to!==s}if(i==="main"&&r){const n=t.pendingTimelineChange({type:"audio"});return!(n&&n.to===s)}return!1},bq=t=>{let e=0;return["video","audio"].forEach(function(s){const i=t[`${s}TimingInfo`];if(!i)return;const{start:r,end:n}=i;let a;typeof r=="bigint"||typeof n=="bigint"?a=Q.BigInt(n)-Q.BigInt(r):typeof r=="number"&&typeof n=="number"&&(a=n-r),typeof a<"u"&&a>e&&(e=a)}),typeof e=="bigint"&&e<Number.MAX_SAFE_INTEGER&&(e=Number(e)),e},iC=({segmentDuration:t,maxDuration:e})=>t?Math.round(t)>e+Cn:!1,Tq=(t,e)=>{if(e!=="hls")return null;const s=bq({audioTimingInfo:t.audioTimingInfo,videoTimingInfo:t.videoTimingInfo});if(!s)return null;const i=t.playlist.targetDuration,r=iC({segmentDuration:s,maxDuration:i*2}),n=iC({segmentDuration:s,maxDuration:i}),a=`Segment with index ${t.mediaIndex} from playlist ${t.playlist.id} has a duration of ${s} when the reported duration is ${t.duration} and the target duration is ${i}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;return r||n?{severity:r?"warn":"info",message:a}:null};class wb extends fe.EventTarget{constructor(e,s={}){if(super(),!e)throw new TypeError("Initialization settings are required");if(typeof e.currentTime!="function")throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={}
vendor: 39,922 bytes, lines 251-253
251,this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.logger_=Nr(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(i){i!==this.state_&&(this.logger_(`${this.state_} -> ${i}`),this.state_=i,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),this.loaderType_==="main"&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),this.loaderType_==="audio"&&this.timelineChangeController_.on("timelinechange",()=>{this.hasEnoughInfoToLoad_()&&this.processLoadQueue_(),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})}createTransmuxer_(){return A_.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&Q.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){if(this.state!=="WAITING"){this.pendingSegment_&&(this.pendingSegment_=null);return}this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,Q.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return this.state==="APPENDING"&&!this.pendingSegment_?(this.state="READY",!0):!this.pendingSegment_||this.pendingSegment_.requestId!==e}error(e){return typeof e<"u"&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&A_.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return ri();if(this.loaderType_==="main"){const{hasAudio:s,hasVideo:i,isMuxed:r}=e;if(i&&s&&!this.audioDisabled_&&!r)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,s=!1){if(!e)return null;const i=cm(e);let r=this.initSegments_[i];return s&&!r&&e.bytes&&(this.initSegments_[i]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),r||e}segmentKey(e,s=!1){if(!e)return null;const i=jL(e);let r=this.keyCache_[i];this.cacheEncryptionKeys_&&s&&!r&&e.bytes&&(this.keyCache_[i]=r={resolvedUri:e.resolvedUri,bytes:e.bytes});const n={resolvedUri:(r||e).resolvedUri};return r&&(n.bytes=r.bytes),n}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),!!this.playlist_){if(this.state==="INIT"&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||this.state!=="READY"&&this.state!=="INIT"||(this.state="READY")}}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,s={}){if(!e)return;const i=this.playlist_,r=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=s,this.state==="INIT"&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},this.loaderType_==="main"&&this.syncController_.setDateTimeMappingForStart(e));let n=null;if(i&&(i.id?n=i.id:i.uri&&(n=i.uri)),this.logger_(`playlist update [${n} => ${e.id||e.uri}]`),this.syncController_.updateMediaSequenceMap(e,this.currentTime_(),this.loaderType_),this.trigger("syncinfoupdate"),this.state==="INIT"&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri){this.mediaIndex!==null&&(!e.endList&&typeof e.partTargetDuration=="number"?this.resetLoader():this.resyncLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}const a=e.mediaSequence-i.mediaSequence;if(this.logger_(`live window shift [${a}]`),this.mediaIndex!==null)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const o=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!o.parts||!o.parts.length||!o.parts[this.partIndex])){const l=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=l}}r&&(r.mediaIndex-=a,r.mediaIndex<0?(r.mediaIndex=null,r.partIndex=null):(r.mediaIndex>=0&&(r.segment=e.segments[r.mediaIndex]),r.partIndex>=0&&r.segment.parts&&(r.part=r.segment.parts[r.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}pause(){this.checkBufferTimeout_&&(Q.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return this.checkBufferTimeout_===null}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}resetLoader(){this.fetchAtBuffer_=!1,this.resyncLoader()}resyncLoader(){this.transmuxer_&&A_.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.shouldForceTimestampOffsetAfterResync_=!0,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,s,i=()=>{},r=!1){if(s===1/0&&(s=this.duration_()),s<=e){this.logger_("skipping remove because end ${end} is <= start ${start}");return}if(!this.sourceUpdater_||!this.getMediaInfo_()){this.logger_("skipping remove because no source updater or starting media info");return}let n=1;const a=()=>{n--,n===0&&i()};(r||!this.audioDisabled_)&&(n++,this.sourceUpdater_.removeAudio(e,s,a)),(r||this.loaderType_==="main")&&(this.gopBuffer_=fq(this.gopBuffer_,e,s,this.timeMapping_),n++,this.sourceUpdater_.removeVideo(e,s,a));for(const o in this.inbandTextTracks_)eh(e,s,this.inbandTextTracks_[o]);eh(e,s,this.segmentMetadataTrack_),a()}monitorBuffer_(){this.checkBufferTimeout_&&Q.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=Q.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){this.state==="READY"&&this.fillBuffer_(),this.checkBufferTimeout_&&Q.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=Q.setTimeout(this.monitorBufferTick_.bind(this),gq)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const e=this.chooseNextRequest_();e&&(typeof e.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}isEndOfStream_(e=this.mediaIndex,s=this.playlist_,i=this.partIndex){if(!s||!this.mediaSource_)return!1;const r=typeof e=="number"&&s.segments[e],n=e+1===s.segments.length,a=!r||!r.parts||i+1===r.parts.length;return s.endList&&this.mediaSource_.readyState==="open"&&n&&a}chooseNextRequest_(){const e=this.buffered_(),s=qx(e)||0,i=W1(e,this.currentTime_()),r=!this.hasPlayed_()&&i>=1,n=i>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||r||n)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);const o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(o.isSyncRequest)o.mediaIndex=mq(this.currentTimeline_,a,s),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${o.mediaIndex}`);else if(this.mediaIndex!==null){const _=a[this.mediaIndex],b=typeof this.partIndex=="number"?this.partIndex:-1;o.startOfSegment=_.end?_.end:s,_.parts&&_.parts[b+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=b+1):o.mediaIndex=this.mediaIndex+1}else{const{segmentIndex:_,startTime:b,partIndex:T}=qi.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?s:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});o.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${s}`:`currentTime ${this.currentTime_()}`,o.mediaIndex=_,o.startOfSegment=b,o.partIndex=T,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${o.mediaIndex} `)}const l=a[o.mediaIndex];let c=l&&typeof o.partIndex=="number"&&l.parts&&l.parts[o.partIndex];if(!l||typeof o.partIndex=="number"&&!c)return null;typeof o.partIndex!="number"&&l.parts&&(o.partIndex=0,c=l.parts[0]);const d=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!i&&c&&!d&&!c.independent)if(o.partIndex===0){const _=a[o.mediaIndex-1],b=_.parts&&_.parts.length&&_.parts[_.parts.length-1];b&&b.independent&&(o.mediaIndex-=1,o.partIndex=_.parts.length-1,o.independent="previous segment")}else l.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");const p=this.mediaSource_&&this.mediaSource_.readyState==="ended";return o.mediaIndex>=a.length-1&&p&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,o.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(o))}generateSegmentInfo_(e){const{independent:s,playlist:i,mediaIndex:r,startOfSegment:n,isSyncRequest:a,partIndex:o,forceTimestampOffset:l,getMediaInfoForTime:c}=e,d=i.segments[r],p=typeof o=="number"&&d.parts[o],_={requestId:"segment-loader-"+Math.random(),uri:p&&p.resolvedUri||d.resolvedUri,mediaIndex:r,partIndex:p?o:null,isSyncRequest:a,startOfSegment:n,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:d.timeline,duration:p&&p.duration||d.duration,segment:d,part:p,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:c,independent:s},b=typeof l<"u"?l:this.isPendingTimestampOffset_;_.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:d.timeline,currentTimeline:this.currentTimeline_,startOfSegment:n,buffered:this.buffered_(),overrideCheck:b});const T=qx(this.sourceUpdater_.audioBuffered());return typeof T=="number"&&(_.audioAppendStart=T-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(_.gopsToAlignWith=dq(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),_}timestampOffsetForSegment_(e){return vq(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;const s=this.currentTime_(),i=e.bandwidth,r=this.pendingSegment_.duration,n=qi.estimateSegmentRequestTime(r,i,this.playlist_,e.bytesReceived),a=jj(this.buffered_(),s,this.vhs_.tech_.playbackRate())-1;if(n<=a)return;const o=eq({main:this.vhs_.playlists.main,currentTime:s,bandwidth:i,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!o)return;const c=n-a-o.rebufferingImpact;let d=.5;a<=Cn&&(d=1),!(!o.playlist||o.playlist.uri===this.playlist_.uri||c<d)&&(this.bandwidth=o.playlist.attributes.BANDWIDTH*Ns.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${Xl(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,s){this.earlyAbortWhenNeeded_(s.stats),!this.checkForAbort_(s.requestId)&&this.trigger("progress")}handleTrackInfo_(e,s){this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)&&(this.checkForIllegalMediaSwitch(s)||(s=s||{},pq(this.currentMediaInfo_,s)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=s,this.currentMediaInfo_=s,this.logger_("trackinfo update",s),this.trigger("trackinfo")),!this.checkForAbort_(e.requestId)&&(this.pendingSegment_.trackInfo=s,this.hasEnoughInfoToAppend_()&&this.processCallQueue_())))}handleTimingInfo_(e,s,i,r){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const n=this.pendingSegment_,a=tC(s);n[a]=n[a]||{},n[a][i]=r,this.logger_(`timinginfo: ${s} - ${i} - ${r}`),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}handleCaptions_(e,s){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(s.length===0){this.logger_("SegmentLoader received no captions from a caption event");return}if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,s));return}const r=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),n={};s.forEach(a=>{n[a.stream]=n[a.stream]||{startTime:1/0,captions:[],endTime:0};const o=n[a.stream];o.startTime=Math.min(o.startTime,a.startTime+r),o.endTime=Math.max(o.endTime,a.endTime+r),o.captions.push(a)}),Object.keys(n).forEach(a=>{const{startTime:o,endTime:l,captions:c}=n[a],d=this.inbandTextTracks_;this.logger_(`adding cues from ${o} -> ${l} for ${a}`),iq(d,this.vhs_.tech_,a),eh(o,l,d[a]),rq({captionArray:c,inbandTextTracks:d,timestampOffset:r})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,s,i){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,s,i));return}this.addMetadataToTextTrack(i,s,this.duration_())}processMetadataQueue_(){this.metadataQueue_.id3.forEach(e=>e()),this.metadataQueue_.caption.forEach(e=>e()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const e=this.callQueue_;this.callQueue_=[],e.forEach(s=>s())}processLoadQueue_(){const e=this.loadQueue_;this.loadQueue_=[],e.forEach(s=>s())}hasEnoughInfoToLoad_(){if(this.loaderType_!=="audio")return!0;const e=this.pendingSegment_;return e?this.getCurrentMediaInfo_()?!sC({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}):!0:!1}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const e=this.pendingSegment_,s=this.getCurrentMediaInfo_();if(!e||!s)return!1;const{hasAudio:i,hasVideo:r,isMuxed:n}=s;return!(r&&!e.videoTimingInfo||i&&!this.audioDisabled_&&!n&&!e.audioTimingInfo||sC({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,s){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){this.callQueue_.push(this.handleData_.bind(this,e,s));return}const i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),this.mediaSource_.readyState!=="closed"){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[tC(s.type)].start;else{const r=this.getCurrentMediaInfo_(),n=this.loaderType_==="main"&&r&&r.hasVideo;let a;n&&(a=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:n,firstVideoFrameTimeForData:a,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,s.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:this.loaderType_==="main"});const r=this.chooseNextRequest_();if(r.mediaIndex!==i.mediaIndex||r.partIndex!==i.partIndex){this.logger_("sync segment was incorrect, not appending");return}this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,s)}}updateAppendInitSegmentStatus(e,s){this.loaderType_==="main"&&typeof e.timestampOffset=="number"&&!e.changedTimestampOffset&&(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[s]!==e.playlist&&(this.appendInitSegment_[s]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:s,map:i,playlist:r}){if(i){const n=cm(i);if(this.activeInitSegmentId_===n)return null;s=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=n}return s&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=r,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,s):null}handleQuotaExceededError_({segmentInfo:e,type:s,bytes:i},r){const n=this.sourceUpdater_.audioBuffered(),a=this.sourceUpdater_.videoBuffered();n.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+cl(n).join(", ")),a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+cl(a).join(", "));const o=n.length?n.start(0):0,l=n.length?n.end(n.length-1):0,c=a.length?a.start(0):0,d=a.length?a.end(a.length-1):0;if(l-o<=Fd&&d-c<=Fd){this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${i.byteLength}, audio buffer: ${cl(n).join(", ")}, video buffer: ${cl(a).join(", ")}, `),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),this.trigger("error");return}this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:e,type:s,bytes:i}));const _=this.currentTime_()-Fd;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${_}`),this.remove(0,_,()=>{this.logger_(`On QUOTA_EXCEEDED_ERR, retrying append in ${Fd}s`),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=Q.setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},Fd*1e3)},!0)}handleAppendError_({segmentInfo:e,type:s,bytes:i},r){if(r){if(r.code===rO){this.handleQuotaExceededError_({segmentInfo:e,type:s,bytes:i});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",r),this.error(`${s} append of ${i.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`),this.trigger("appenderror")}}appendToSourceBuffer_({segmentInfo:e,type:s,initSegment:i,data:r,bytes:n}){if(!n){const a=[r];let o=r.byteLength;i&&(a.unshift(i),o+=i.byteLength),n=sq({bytes:o,segments:a})}this.sourceUpdater_.appendBuffer({segmentInfo:e,type:s,bytes:n},this.handleAppendError_.bind(this,{segmentInfo:e,type:s,bytes:n}))}handleSegmentTimingInfo_(e,s,i){if(!this.pendingSegment_||s!==this.pendingSegment_.requestId)return;const r=this.pendingSegment_.segment,n=`${e}TimingInfo`;r[n]||(r[n]={}),r[n].transmuxerPrependedSeconds=i.prependedContentDuration||0,r[n].transmuxedPresentationStart=i.start.presentation,r[n].transmuxedDecodeStart=i.start.decode,r[n].transmuxedPresentationEnd=i.end.presentation,r[n].transmuxedDecodeEnd=i.end.decode,r[n].baseMediaDecodeTime=i.baseMediaDecodeTime}appendData_(e,s){const{type:i,data:r}=s;if(!r||!r.byteLength||i==="audio"&&this.audioDisabled_)return;const n=this.getInitSegmentAndUpdateState_({type:i,initSegment:s.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:n,data:r})}loadSegment_(e){if(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),typeof e.timestampOffset=="number"&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_()){this.loadQueue_.push(()=>{const s=xr({},e,{forceTimestampOffset:!0});xr(e,this.generateSegmentInfo_(s)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)});return}this.updateTransmuxerAndRequestSegment_(e)}updateTransmuxerAndRequestSegment_(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));const s=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=this.mediaIndex!==null,n=e.timeline!==this.currentTimeline_&&e.timeline>0,a=i||r&&n;this.logger_(`Requesting ${Xl(e)}`),s.map&&!s.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=XH({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:s,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:a,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:o,level:l,stream:c})=>{this.logger_(`${Xl(e)} logged from transmuxer stream ${c} as a ${l}: ${o}`)}})}trimBackBuffer_(e){const s=_q(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);s>0&&this.remove(0,s)}createSimplifiedSegmentObj_(e){const s=e.segment,i=e.part,r={resolvedUri:i?i.resolvedUri:s.resolvedUri,byterange:i?i.byterange:s.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},n=e.playlist.segments[e.mediaIndex-1];if(n&&n.timeline===s.timeline&&(n.videoTimingInfo?r.baseStartTime=n.videoTimingInfo.transmuxedDecodeEnd:n.audioTimingInfo&&(r.baseStartTime=n.audioTimingInfo.transmuxedDecodeEnd)),s.key){const a=s.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);r.key=this.segmentKey(s.key),r.key.iv=a}return s.map&&(r.map=this.initSegmentForMap(s.map)),r}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,s){if(this.pendingSegment_.byteLength=s.bytesReceived,e<Qf){this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record ${Qf}`);return}this.bandwidth=s.bandwidth,this.roundTrip=s.roundTripTime}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,s,i){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,s,i));return}if(this.saveTransferStats_(s.stats),!this.pendingSegment_||s.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",e.code===An.ABORTED)return;if(this.pause(),e.code===An.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1,this.error(e),this.trigger("error");return}const r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,s.stats),r.endOfAllRequests=s.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=hq(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(r)}setTimeMapping_(e){const s=this.syncController_.mappingForTimeline(e);s!==null&&(this.timeMapping_=s)}updateMediaSecondsLoaded_(e){typeof e.start=="number"&&typeof e.end=="number"?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return e===null?!1:this.loaderType_==="main"&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset()}trueSegmentStart_({currentStart:e,playlist:s,mediaIndex:i,firstVideoFrameTimeForData:r,currentVideoTimestampOffset:n,useVideoTimingInfo:a,videoTimingInfo:o,audioTimingInfo:l}){if(typeof e<"u")return e;if(!a)return l.start;const c=s.segments[i-1];return i===0||!c||typeof c.start>"u"||c.end!==r+n?r:o.start}waitForAppendsToComplete_(e){const s=this.getCurrentMediaInfo_(e);if(!s){this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),this.trigger("error");return}const{hasAudio:i,hasVideo:r,isMuxed:n}=s,a=this.loaderType_==="main"&&r,o=!this.audioDisabled_&&i&&!n;if(e.waitingOnAppends=0,!e.hasAppendedData_){!e.timingInfo&&typeof e.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),this.checkAppendsDone_(e);return}a&&e.waitingOnAppends++,o&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),o&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,e.waitingOnAppends===0&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){const s=yq(this.loaderType_,this.getCurrentMediaInfo_(),e);return s?(this.error({message:s,playlistExclusionDuration:1/0}),this.trigger("error"),!0):!1}updateSourceBufferTimestampOffset_(e){if(e.timestampOffset===null||typeof e.timingInfo.start!="number"||e.changedTimestampOffset||this.loaderType_!=="main")return;let s=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),s=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),s=!0),s&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:s,timingInfo:i}){return this.useDtsForTimestampOffset_?e&&typeof e.transmuxedDecodeStart=="number"?e.transmuxedDecodeStart:s&&typeof s.transmuxedDecodeStart=="number"?s.transmuxedDecodeStart:i.start:i.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};const s=this.getMediaInfo_(),r=this.loaderType_==="main"&&s&&s.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;r&&(e.timingInfo.end=typeof r.end=="number"?r.end:r.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_){this.state="READY",this.paused()||this.monitorBuffer_();return}const e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:this.loaderType_==="main"});const s=Tq(e,this.sourceType_);if(s&&(s.severity==="warn"?fe.log.warn(s.message):this.logger_(s.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_)){this.logger_(`Throwing away un-appended sync request ${Xl(e)}`);return}this.logger_(`Appended ${Xl(e)}`),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),this.loaderType_==="main"&&!this.audioDisabled_&&this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");const i=e.segment,r=e.part,n=i.end&&this.currentTime_()-i.end>e.playlist.targetDuration*3,a=r&&r.end&&this.currentTime_()-r.end>e.playlist.partTargetDuration*3;if(n||a){this.logger_(`bad ${n?"segment":"part"} ${Xl(e)}`),this.resetEverything();return}this.mediaIndex!==null&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<Qf){this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record ${Qf}`);return}const s=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,r=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(r-s)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;const s=e.segment,i=s.start,r=s.end;if(!eC(i)||!eC(r))return;eh(i,r,this.segmentMetadataTrack_);const n=Q.WebKitDataCue||Q.VTTCue,a={custom:s.custom,dateTimeObject:s.dateTimeObject,dateTimeString:s.dateTimeString,programDateTime:s.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:i,end:r},o=JSON.stringify(a),l=new n(i,r,o);l.value=a,this.segmentMetadataTrack_.addCue(l)}}function Pa(){}const nO=function(t){return typeof t!="string"?t:t.replace(/./,e=>e.toUpperCase())},Sq=["video","audio"],Ab=(t,e)=>{const s=e[`${t}Buffer`];return s&&s.updating||e.queuePending[t]},Eq=(t,e)=>{for(let s=0;s<e.length;s++){const i=e[s];if(i.type==="mediaSource")return null;if(i.type===t)return s}return null},Su=(t,e)=>{if(e.queue.length===0)return;let s=0,i=e.queue[s];if(i.type==="mediaSource"){!e.updating()&&e.mediaSource.readyState!=="closed"&&(e.queue.shift(),i.action(e),i.doneFn&&i.doneFn(),Su("audio",e),Su("video",e));return}if(t!=="mediaSource"&&!(!e.ready()||e.mediaSource.readyState==="closed"||Ab(t,e))){if(i.type!==t){if(s=Eq(t,e.queue),s===null)return;i=e.queue[s]}if(e.queue.splice(s,1),e.queuePending[t]=i,i.action(t,e),!i.doneFn){e.queuePending[t]=null,Su(t,e);return}}},aO=(t,e)=>{const s=e[`${t}Buffer`],i=nO(t);s&&(s.removeEventListener("updateend",e[`on${i}UpdateEnd_`]),s.removeEventListener("error",e[`on${i}Error_`]),e.codecs[t]=null,e[`${t}Buffer`]=null)},bn=(t,e)=>t&&e&&Array.prototype.indexOf.call(t.sourceBuffers,e)!==-1,rr={appendBuffer:(t,e,s)=>(i,r)=>{const n=r[`${i}Buffer`];if(bn(r.mediaSource,n)){r.logger_(`Appending segment ${e.mediaIndex}'s ${t.length} bytes to ${i}Buffer`);try{n.appendBuffer(t)}catch(a){r.logger_(`Error with code ${a.code} `+(a.code===rO?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${e.mediaIndex} to ${i}Buffer`),r.queuePending[i]=null,s(a)}}},remove:(t,e)=>(s,i)=>{const r=i[`${s}Buffer`];if(bn(i.mediaSource,r)){i.logger_(`Removing ${t} to ${e} from ${s}Buffer`);try{r.remove(t,e)}catch{i.logger_(`Remove ${t} to ${e} from ${s}Buffer failed`)}}},timestampOffset:t=>(e,s)=>{const i=s[`${e}Buffer`];bn(s.mediaSource,i)&&(s.logger_(`Setting ${e}timestampOffset to ${t}`),i.timestampOffset=t)},callback:t=>(e,s)=>{t()},endOfStream:t=>e=>{if(e.mediaSource.readyState==="open"){e.logger_(`Calling mediaSource endOfStream(${t||""})`);try{e.mediaSource.endOfStream(t)}catch(s){fe.log.warn("Failed to call media source endOfStream",s)}}},duration:t=>e=>{e.logger_(`Setting mediaSource duration to ${t}`);try{e.mediaSource.duration=t}catch(s){fe.log.warn("Failed to set media source duration",s)}},abort:()=>(t,e)=>{if(e.mediaSource.readyState!=="open")return;const s=e[`${t}Buffer`];if(bn(e.mediaSource,s)){e.logger_(`calling abort on ${t}Buffer`);try{s.abort()}catch(i){fe.log.warn(`Failed to abort on ${t}Buffer`,i)}}},addSourceBuffer:(t,e)=>s=>{const i=nO(t),r=ju(e);s.logger_(`Adding ${t}Buffer with codec ${e} to mediaSource`);const n=s.mediaSource.addSourceBuffer(r);n.addEventListener("updateend",s[`on${i}UpdateEnd_`]),n.addEventListener("error",s[`on${i}Error_`]),s.codecs[t]=e,s[`${t}Buffer`]=n},removeSourceBuffer:t=>e=>{const s=e[`${t}Buffer`];if(aO(t,e),!!bn(e.mediaSource,s)){e.logger_(`Removing ${t}Buffer with codec ${e.codecs[t]} from mediaSource`);try{e.mediaSource.removeSourceBuffer(s)}catch(i){fe.log.warn(`Failed to removeSourceBuffer ${t}Buffer`,i)}}},changeType:t=>(e,s)=>{const i=s[`${e}Buffer`],r=ju(t);if(bn(s.mediaSource,i)&&s.codecs[e]!==t){s.logger_(`changing ${e}Buffer codec from ${s.codecs[e]} to ${t}`);try{i.changeType(r),s.codecs[e]=t}catch(n){fe.log.warn(`Failed to changeType on ${e}Buffer`,n)}}}},nr=({type:t,sourceUpdater:e,action:s,doneFn:i,name:r})=>{e.queue.push({type:t,action:s,doneFn:i,name:r}),Su(t,e)},rC=(t,e)=>s=>{if(e.queuePending[t]){const i=e.queuePending[t].doneFn;e.queuePending[t]=null,i&&i(e[`${t}Error_`])}Su(t,e)};class oO extends fe.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>Su("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=Nr("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=rC("video",this),this.onAudioUpdateEnd_=rC("audio",this),this.onVideoError_=s=>{this.videoError_=s},this.onAudioError_=s=>{this.audioError_=s},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,s){nr({type:"mediaSource",sourceUpdater:this,action:rr.addSourceBuffer(e,s),name:"addSourceBuffer"})}abort(e){nr({type:e,sourceUpdater:this,action:rr.abort(e),name:"abort"})}removeSourceBuffer(e){if(!this.canRemoveSourceBuffer()){fe.log.error("removeSourceBuffer is not supported!");return}nr({type:"mediaSource",sourceUpdater:this,action:rr.removeSourceBuffer(e),name:"removeSourceBuffer"})}canRemoveSourceBuffer(){return!fe.browser.IS_FIREFOX&&Q.MediaSource&&Q.MediaSource.prototype&&typeof Q.MediaSource.prototype.removeSourceBuffer=="function"}static canChangeType(){return Q.SourceBuffer&&Q.SourceBuffer.prototype&&typeof Q.SourceBuffer.prototype.changeType=="function"}canChangeType(){return this.constructor.canChangeType()}changeType(e,s){if(!this.canChangeType()){fe.log.error("changeType is not supported!");return}nr({type:e,sourceUpdater:this,action:rr.changeType(s),name:"changeType"})}addOrChangeSourceBuffers(e){if(!e||typeof e!="object"||Object.keys(e).length===0)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(s=>{const i=e[s];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(s,i);this.canChangeType()&&this.changeType(s,i)})}appendBuffer(e,s){const{segmentInfo:i,type:r,bytes:n}=e;if(this.processedAppend_=!0,r==="audio"&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([e,s]),this.logger_(`delayed audio append of ${n.length} until video append`);return}const a=s;if(nr({type:r,sourceUpdater:this,action:rr.appendBuffer(n,i||{mediaIndex:-1},a),doneFn:s,name:"appendBuffer"}),r==="video"){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const o=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${o.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,o.forEach(l=>{this.appendBuffer.apply(this,l)})}}audioBuffered(){return bn(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:ri()}videoBuffered(){return bn(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:ri()}buffered(){const e=bn(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,s=bn(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return s&&!e?this.audioBuffered():e&&!s?this.videoBuffered():$j(this.audioBuffered(),this.videoBuffered())}setDuration(e,s=Pa){nr({type:"mediaSource",sourceUpdater:this,action:rr.duration(e),name:"duration",doneFn:s})}endOfStream(e=null,s=Pa){typeof e!="string"&&(e=void 0),nr({type:"mediaSource",sourceUpdater:this,action:rr.endOfStream(e),name:"endOfStream",doneFn:s})}removeAudio(e,s,i=Pa){if(!this.audioBuffered().length||this.audioBuffered().end(0)===0){i();return}nr({type:"audio",sourceUpdater:this,action:rr.remove(e,s),doneFn:i,name:"remove"})}removeVideo(e,s,i=Pa){if(!this.videoBuffered().length||this.videoBuffered().end(0)===0){i();return}nr({type:"video",sourceUpdater:this,action:rr.remove(e,s),doneFn:i,name:"remove"})}updating(){return!!(Ab("audio",this)||Ab("video",this))}audioTimestampOffset(e){return typeof e<"u"&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(nr({type:"audio",sourceUpdater:this,action:rr.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return typeof e<"u"&&this.videoBuffer&&this.videoTimestampOffset!==e&&(nr({type:"video",sourceUpdater:this,action:rr.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&nr({type:"audio",sourceUpdater:this,action:rr.callback(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&nr({type:"video",sourceUpdater:this,action:rr.callback(e),name:"callback"})}dispose(){this.trigger("dispose"),Sq.forEach(e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`](()=>aO(e,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const nC=t=>decodeURIComponent(escape(String.fromCharCode.apply(null,t))),xq=t=>{const e=new Uint8Array(t);return Array.from(e).map(s=>s.toString(16).padStart(2,"0")).join("")},aC=new Uint8Array(`
252
253`.split("").map(t=>t.charCodeAt(0)));
253class Cq extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class wq extends wb{constructor(e,s={}){super(e,s),this.mediaSource_=null,this.subtitlesTrack_=null,this.loaderType_="subtitle",this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}createTransmuxer_(){return null}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return ri();const e=this.subtitlesTrack_.cues,s=e[0].startTime,i=e[e.length-1].startTime;return ri([[s,i]])}initSegmentForMap(e,s=!1){if(!e)return null;const i=cm(e);let r=this.initSegments_[i];if(s&&!r&&e.bytes){const n=aC.byteLength+e.bytes.byteLength,a=new Uint8Array(n);a.set(e.bytes),a.set(aC,e.bytes.byteLength),this.initSegments_[i]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return r||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return typeof e>"u"?this.subtitlesTrack_:(this.subtitlesTrack_=e,this.state==="INIT"&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)}remove(e,s){eh(e,s,this.subtitlesTrack_)}fillBuffer_(){const e=this.chooseNextRequest_();if(e){if(this.syncController_.timestampOffsetForTimeline(e.timeline)===null){const s=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};this.syncController_.one("timestampoffset",s),this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,s,i){if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(s.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(e){e.code===An.TIMEOUT&&this.handleTimeout_(),e.code===An.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(e);return}const r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,s.stats),s.key&&this.segmentKey(s.key,!0),this.state="APPENDING",this.trigger("appending");const n=r.segment;if(n.map&&(n.map.bytes=s.map.bytes),r.bytes=s.bytes,typeof Q.WebVTT!="function"&&typeof this.loadVttJs=="function"){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(()=>this.segmentRequestFinished_(e,s,i),()=>this.stopForError({message:"Error loading vtt.js"}));return}n.requested=!0;try{this.parseVTTCues_(r)}catch(a){this.stopForError({message:a.message});return}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=n.duration,r.cues.forEach(a=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new Q.VTTCue(a.startTime,a.endTime,a.text):a)}),cq(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(e){let s,i=!1;if(typeof Q.WebVTT!="function")throw new Cq;typeof Q.TextDecoder=="function"?s=new Q.TextDecoder("utf8"):(s=Q.WebVTT.StringDecoder(),i=!0);const r=new Q.WebVTT.Parser(Q,Q.vttjs,s);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=e.cues.push.bind(e.cues),r.ontimestampmap=a=>{e.timestampmap=a},r.onparsingerror=a=>{fe.log.warn("Error encountered when parsing cues: "+a.message)},e.segment.map){let a=e.segment.map.bytes;i&&(a=nC(a)),r.parse(a)}let n=e.bytes;i&&(n=nC(n)),r.parse(n),r.flush()}updateTimeMapping_(e,s,i){const r=e.segment;if(!s)return;if(!e.cues.length){r.empty=!0;return}const{MPEGTS:n,LOCAL:a}=e.timestampmap,l=n/ul.ONE_SECOND_IN_TS-a+s.mapping;
253if(e.cues.forEach(c=>{const d=c.endTime-c.startTime,p=n===0?c.startTime+l:this.handleRollover_(c.startTime+l,s.time);c.startTime=Math.max(p,0),c.endTime=Math.max(p+d,0)}),!i.syncInfo){const c=e.cues[0].startTime,d=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(c,d-r.duration)}}}handleRollover_(e,s){if(s===null)return e;let i=e*ul.ONE_SECOND_IN_TS;const r=s*ul.ONE_SECOND_IN_TS;let n;for(r<i?n=-8589934592:n=8589934592;Math.abs(i-r)>4294967296;)i+=n;return i/ul.ONE_SECOND_IN_TS}}const Aq=function(t,e){const s=t.cues;for(let i=0;i<s.length;i++){const r=s[i];if(e>=r.adStartTime&&e<=r.adEndTime)return r}return null},kq=function(t,e,s=0){if(!t.segments)return;let i=s,r;for(let n=0;n<t.segments.length;n++){const a=t.segments[n];if(r||(r=Aq(e,i+a.duration/2)),r){if("cueIn"in a){r.endTime=i,r.adEndTime=i,i+=a.duration,r=null;continue}if(i<r.endTime){i+=a.duration;continue}r.endTime+=a.duration}else if("cueOut"in a&&(r=new Q.VTTCue(i,i+a.duration,a.cueOut),r.adStartTime=i,r.adEndTime=i+parseFloat(a.cueOut),e.addCue(r)),"cueOutCont"in a){const[o,l]=a.cueOutCont.split("/").map(parseFloat);r=new Q.VTTCue(i,i+a.duration,""),r.adStartTime=i-o,r.adEndTime=r.adStartTime+l,e.addCue(r)}i+=a.duration}},Dq=86400,k_=[{name:"VOD",run:(t,e,s,i,r)=>s!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(t,e,s,i,r,n)=>{if(!n)return null;const a=t.getMediaSequenceMap(n);if(!a||a.size===0||e.mediaSequence===void 0||!Array.isArray(e.segments)||!e.segments.length)return null;let o=e.mediaSequence,l=0;for(const c of e.segments){const d=a.get(o);if(!d)break;if(r>=d.start&&r<d.end){if(Array.isArray(c.parts)&&c.parts.length){let p=d.start,_=0;for(const b of c.parts){const T=p,y=T+b.duration;if(r>=T&&r<y)return{time:d.start,segmentIndex:l,partIndex:_};_++,p=y}}return{time:d.start,segmentIndex:l,partIndex:null}}l++,o++}return null}},{name:"ProgramDateTime",run:(t,e,s,i,r)=>{if(!Object.keys(t.timelineToDatetimeMappings).length)return null;let n=null,a=null;const o=_b(e);r=r||0;for(let l=0;l<o.length;l++){const c=e.endList||r===0?l:o.length-(l+1),d=o[c],p=d.segment,_=t.timelineToDatetimeMappings[p.timeline];if(!_||!p.dateTimeObject)continue;let T=p.dateTimeObject.getTime()/1e3+_;if(p.parts&&typeof d.partIndex=="number")for(let x=0;x<d.partIndex;x++)T+=p.parts[x].duration;const y=Math.abs(r-T);if(a!==null&&(y===0||a<y))break;a=y,n={time:T,segmentIndex:d.segmentIndex,partIndex:d.partIndex}}return n}},{name:"Segment",run:(t,e,s,i,r)=>{let n=null,a=null;r=r||0;const o=_b(e);for(let l=0;l<o.length;l++){const c=e.endList||r===0?l:o.length-(l+1),d=o[c],p=d.segment,_=d.part&&d.part.start||p&&p.start;if(p.timeline===i&&typeof _<"u"){const b=Math.abs(r-_);if(a!==null&&a<b)break;(!n||a===null||a>=b)&&(a=b,n={time:_,segmentIndex:d.segmentIndex,partIndex:d.partIndex})}}return n}},{name:"Discontinuity",run:(t,e,s,i,r)=>{let n=null;if(r=r||0,e.discontinuityStarts&&e.discontinuityStarts.length){let a=null;for(let o=0;o<e.discontinuityStarts.length;o++){const l=e.discontinuityStarts[o],c=e.discontinuitySequence+o+1,d=t.discontinuities[c];if(d){const p=Math.abs(r-d.time);if(a!==null&&a<p)break;(!n||a===null||a>=p)&&(a=p,n={time:d.time,segmentIndex:l,partIndex:null})}}}return n}},{name:"Playlist",run:(t,e,s,i,r)=>e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence,partIndex:null}:null}];class Iq extends fe.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={},this.mediaSequenceStorage_=new Map,this.logger_=Nr("SyncController")}getMediaSequenceMap(e){return this.mediaSequenceStorage_.get(e)}updateMediaSequenceMap(e,s,i){if(e.mediaSequence===void 0||!Array.isArray(e.segments)||!e.segments.length)return;const r=this.getMediaSequenceMap(i),n=new Map;let a=e.mediaSequence,o;r?r.has(e.mediaSequence)?o=r.get(e.mediaSequence).start:(this.logger_(`MediaSequence sync for ${i} segment loader - received a gap between playlists.
254Fallback base time to: ${s}.
255Received media sequence: ${a}.
256Current map: `,r),o=s):o=0,this.logger_(`MediaSequence sync for ${i} segment loader.
257Received media sequence: ${a}.
258base time is ${o}
259Current map: `,r),e.segments.forEach(l=>{const c=o,d=c+l.duration,p={start:c,end:d};n.set(a,p),a++,o=d}),this.mediaSequenceStorage_.set(i,n)}getSyncPoint(e,s,i,r,n){if(s!==1/0)return k_.find(({name:l})=>l==="VOD").run(this,e,s);const a=this.runStrategies_(e,s,i,r,n);if(!a.length)return null;for(const o of a){const{syncPoint:l,strategy:c}=o,{segmentIndex:d,time:p}=l;if(d<0)continue;const _=e.segments[d],b=p,T=b+_.duration;if(this.logger_(`Strategy: ${c}. Current time: ${r}. selected segment: ${d}. Time: [${b} -> ${T}]}`),r>=b&&r<T)return this.logger_("Found sync point with exact match: ",l),l}return this.selectSyncPoint_(a,{key:"time",value:r})}getExpiredTime(e,s){if(!e||!e.segments)return null;const i=this.runStrategies_(e,s,e.discontinuitySequence,0,"main");if(!i.length)return null;const r=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+_h({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:r.segmentIndex,endIndex:0}))}runStrategies_(e,s,i,r,n){const a=[];for(let o=0;o<k_.length;o++){const l=k_[o],c=l.run(this,e,s,i,r,n);c&&(c.strategy=l.name,a.push({strategy:l.name,syncPoint:c}))}return a}selectSyncPoint_(e,s){let i=e[0].syncPoint,r=Math.abs(e[0].syncPoint[s.key]-s.value),n=e[0].strategy;for(let a=1;a<e.length;a++){const o=Math.abs(e[a].syncPoint[s.key]-s.value);o<r&&(r=o,i=e[a].syncPoint,n=e[a].strategy)}return this.logger_(`syncPoint for [${s.key}: ${s.value}] chosen with strategy [${n}]: [time:${i.time}, segmentIndex:${i.segmentIndex}`+(typeof i.partIndex=="number"?`,partIndex:${i.partIndex}`:"")+"]"),i}saveExpiredSegmentInfo(e,s){const i=s.mediaSequence-e.mediaSequence;if(i>Dq){fe.log.warn(`Not saving expired segment info. Media sequence gap ${i} is too large.`);return}for(let r=i-1;r>=0;r--){const n=e.segments[r];if(n&&typeof n.start<"u"){s.syncInfo={mediaSequence:e.mediaSequence+r,time:n.start},this.logger_(`playlist refresh sync: [time:${s.syncInfo.time}, mediaSequence: ${s.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){const s=e.segments[0],i=s.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[s.timeline]=-i}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:s}){const i=this.calculateSegmentTimeMapping_(e,e.timingInfo,s),r=e.segment;i&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:r.start}));const n=r.dateTimeObject;r.discontinuity&&s&&n&&(this.timelineToDatetimeMappings[r.timeline]=-(n.getTime()/1e3))}timestampOffsetForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].time}mappingForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,s,i){const r=e.segment,n=e.part;let a=this.timelines[e.timeline],o,l;if(typeof e.timestampOffset=="number")a={time:e.startOfSegment,mapping:e.startOfSegment-s.start},i&&(this.timelines[e.timeline]=a,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${a.time}] [mapping: ${a.mapping}]`)),o=e.startOfSegment,l=s.end+a.mapping;else if(a)o=s.start+a.mapping,l=s.end+a.mapping;else return!1;return n&&(n.start=o,n.end=l),(!r.start||o<r.start)&&(r.start=o),r.end=l,!0}saveDiscontinuitySyncInfo_(e){const s=e.playlist,i=e.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(s.discontinuityStarts&&s.discontinuityStarts.length)for(let r=0;r<s.discontinuityStarts.length;r++){const n=s.discontinuityStarts[r],a=s.discontinuitySequence+r+1,o=n-e.mediaIndex,l=Math.abs(o);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>l){let c;o<0?c=i.start-_h({defaultDuration:s.targetDuration,durationList:s.segments,startIndex:e.mediaIndex,endIndex:n}):c=i.end+_h({defaultDuration:s.targetDuration,durationList:s.segments,startIndex:e.mediaIndex+1,endIndex:n}),this.discontinuities[a]={time:c,accuracy:l}}}}dispose(){this.trigger("dispose"),this.off()}}class Pq extends fe.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:s,to:i}){return typeof s=="number"&&typeof i=="number"&&(this.pendingTimelineChanges_[e]={type:e,from:s,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:s,to:i}){return typeof s=="number"&&typeof i=="number"&&(this.lastTimelineChanges_[e]={type:e,from:s,to:i},delete this.pendingTimelineChanges_[e],this.trigger("timelinechange")),this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const Lq=WL(XL(function(){var t=function(){function y(){this.listeners={}}var x=y.prototype;return x.on=function(C,S){this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push(S)},x.off=function(C,S){if(!this.listeners[C])return!1;var E=this.listeners[C].indexOf(S);return this.listeners[C]=this.listeners[C].slice(0),this.listeners[C].splice(E,1),E>-1},x.trigger=function(C){var S=this.listeners[C];if(S)if(arguments.length===2)for(var E=S.length,w=0;w<E;++w)S[w].call(this,arguments[1]);
vendor: 13,945 bytes, line 259
259else for(var O=Array.prototype.slice.call(arguments,1),R=S.length,$=0;$<R;++$)S[$].apply(this,O)},x.dispose=function(){this.listeners={}},x.pipe=function(C){this.on("data",function(S){C.push(S)})},y}();/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */function e(y){return y.subarray(0,y.byteLength-y[y.byteLength-1])}/*! @name aes-decrypter @version 4.0.1 @license Apache-2.0 */const s=function(){const y=[[[],[],[],[],[]],[[],[],[],[],[]]],x=y[0],A=y[1],C=x[4],S=A[4];let E,w,O;const R=[],$=[];let k,P,j,F,H,te;for(E=0;E<256;E++)$[(R[E]=E<<1^(E>>7)*283)^E]=E;for(w=O=0;!C[w];w^=k||1,O=$[O]||1)for(F=O^O<<1^O<<2^O<<3^O<<4,F=F>>8^F&255^99,C[w]=F,S[F]=w,j=R[P=R[k=R[w]]],te=j*16843009^P*65537^k*257^w*16843008,H=R[F]*257^F*16843008,E=0;E<4;E++)x[E][w]=H=H<<24^H>>>8,A[E][F]=te=te<<24^te>>>8;for(E=0;E<5;E++)x[E]=x[E].slice(0),A[E]=A[E].slice(0);return y};let i=null;class r{constructor(x){i||(i=s()),this._tables=[[i[0][0].slice(),i[0][1].slice(),i[0][2].slice(),i[0][3].slice(),i[0][4].slice()],[i[1][0].slice(),i[1][1].slice(),i[1][2].slice(),i[1][3].slice(),i[1][4].slice()]];let A,C,S;const E=this._tables[0][4],w=this._tables[1],O=x.length;let R=1;if(O!==4&&O!==6&&O!==8)throw new Error("Invalid aes key size");const $=x.slice(0),k=[];for(this._key=[$,k],A=O;A<4*O+28;A++)S=$[A-1],(A%O===0||O===8&&A%O===4)&&(S=E[S>>>24]<<24^E[S>>16&255]<<16^E[S>>8&255]<<8^E[S&255],A%O===0&&(S=S<<8^S>>>24^R<<24,R=R<<1^(R>>7)*283)),$[A]=$[A-O]^S;for(C=0;A;C++,A--)S=$[C&3?A:A-4],A<=4||C<4?k[C]=S:k[C]=w[0][E[S>>>24]]^w[1][E[S>>16&255]]^w[2][E[S>>8&255]]^w[3][E[S&255]]}decrypt(x,A,C,S,E,w){const O=this._key[1];let R=x^O[0],$=S^O[1],k=C^O[2],P=A^O[3],j,F,H;const te=O.length/4-2;let oe,se=4;const K=this._tables[1],X=K[0],ne=K[1],de=K[2],he=K[3],Le=K[4];for(oe=0;oe<te;oe++)j=X[R>>>24]^ne[$>>16&255]^de[k>>8&255]^he[P&255]^O[se],F=X[$>>>24]^ne[k>>16&255]^de[P>>8&255]^he[R&255]^O[se+1],H=X[k>>>24]^ne[P>>16&255]^de[R>>8&255]^he[$&255]^O[se+2],P=X[P>>>24]^ne[R>>16&255]^de[$>>8&255]^he[k&255]^O[se+3],se+=4,R=j,$=F,k=H;for(oe=0;oe<4;oe++)E[(3&-oe)+w]=Le[R>>>24]<<24^Le[$>>16&255]<<16^Le[k>>8&255]<<8^Le[P&255]^O[se++],j=R,R=$,$=k,k=P,P=j}}class n extends t{constructor(){super(t),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(x){this.jobs.push(x),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const a=function(y){return y<<24|(y&65280)<<8|(y&16711680)>>8|y>>>24},o=function(y,x,A){const C=new Int32Array(y.buffer,y.byteOffset,y.byteLength>>2),S=new r(Array.prototype.slice.call(x)),E=new Uint8Array(y.byteLength),w=new Int32Array(E.buffer);let O,R,$,k,P,j,F,H,te;for(O=A[0],R=A[1],$=A[2],k=A[3],te=0;te<C.length;te+=4)P=a(C[te]),j=a(C[te+1]),F=a(C[te+2]),H=a(C[te+3]),S.decrypt(P,j,F,H,w,te),w[te]=a(w[te]^O),w[te+1]=a(w[te+1]^R),w[te+2]=a(w[te+2]^$),w[te+3]=a(w[te+3]^k),O=P,R=j,$=F,k=H;return E};class l{constructor(x,A,C,S){const E=l.STEP,w=new Int32Array(x.buffer),O=new Uint8Array(x.byteLength);let R=0;for(this.asyncStream_=new n,this.asyncStream_.push(this.decryptChunk_(w.subarray(R,R+E),A,C,O)),R=E;R<w.length;R+=E)C=new Uint32Array([a(w[R-4]),a(w[R-3]),a(w[R-2]),a(w[R-1])]),this.asyncStream_.push(this.decryptChunk_(w.subarray(R,R+E),A,C,O));this.asyncStream_.push(function(){S(null,e(O))})}static get STEP(){return 32e3}decryptChunk_(x,A,C,S){return function(){const E=o(x,A,C);S.set(E,x.byteOffset)}}}var c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d;typeof window<"u"?d=window:typeof c<"u"?d=c:typeof self<"u"?d=self:d={};var p=d,_=function(x){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(x):x&&x.buffer instanceof ArrayBuffer},b=p.BigInt||Number;b("0x1"),b("0x100"),b("0x10000"),b("0x1000000"),b("0x100000000"),b("0x10000000000"),b("0x1000000000000"),b("0x100000000000000"),b("0x10000000000000000"),function(){var y=new Uint16Array([65484]),x=new Uint8Array(y.buffer,y.byteOffset,y.byteLength);return x[0]===255?"big":x[0]===204?"little":"unknown"}();const T=function(y){const x={};return Object.keys(y).forEach(A=>{const C=y[A];_(C)?x[A]={bytes:C.buffer,byteOffset:C.byteOffset,byteLength:C.byteLength}:x[A]=C}),x};self.onmessage=function(y){const x=y.data,A=new Uint8Array(x.encrypted.bytes,x.encrypted.byteOffset,x.encrypted.byteLength),C=new Uint32Array(x.key.bytes,x.key.byteOffset,x.key.byteLength/4),S=new Uint32Array(x.iv.bytes,x.iv.byteOffset,x.iv.byteLength/4);new l(A,C,S,function(E,w){self.postMessage(T({source:x.source,decrypted:w}),[w.buffer])})}}));var Oq=GL(Lq);const Nq=t=>{let e=t.default?"main":"alternative";return t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0&&(e="main-desc"),e},lO=(t,e)=>{t.abort(),t.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)},kb=(t,e)=>{e.activePlaylistLoader=t,t.load()},Rq=(t,e)=>()=>{const{segmentLoaders:{[t]:s,main:i},mediaTypes:{[t]:r}}=e,n=r.activeTrack(),a=r.getActiveGroup(),o=r.activePlaylistLoader,l=r.lastGroup_;if(!(a&&l&&a.id===l.id)&&(r.lastGroup_=a,r.lastTrack_=n,lO(s,r),!(!a||a.isMainPlaylist))){if(!a.playlistLoader){o&&i.resetEverything();return}s.resyncLoader(),kb(a.playlistLoader,r)}},Mq=(t,e)=>()=>{const{segmentLoaders:{[t]:s},mediaTypes:{[t]:i}}=e;i.lastGroup_=null,s.abort(),s.pause()},Fq=(t,e)=>()=>{const{mainPlaylistLoader:s,segmentLoaders:{[t]:i,main:r},mediaTypes:{[t]:n}}=e,a=n.activeTrack(),o=n.getActiveGroup(),l=n.activePlaylistLoader,c=n.lastTrack_;if(!(c&&a&&c.id===a.id)&&(n.lastGroup_=o,n.lastTrack_=a,lO(i,n),!!o)){if(o.isMainPlaylist){if(!a||!c||a.id===c.id)return;const d=e.vhs.playlistController_,p=d.selectPlaylist();if(d.media()===p)return;n.logger_(`track change. Switching main audio from ${c.id} to ${a.id}`),s.pause(),r.resetEverything(),d.fastQualityChange_(p);return}if(t==="AUDIO"){if(!o.playlistLoader){r.setAudio(!0),r.resetEverything();return}i.setAudio(!0),r.setAudio(!1)}if(l===o.playlistLoader){kb(o.playlistLoader,n);return}i.track&&i.track(a),i.resetEverything(),kb(o.playlistLoader,n)}},fm={AUDIO:(t,e)=>()=>{const{mediaTypes:{[t]:s},excludePlaylist:i}=e,r=s.activeTrack(),n=s.activeGroup(),a=(n.filter(l=>l.default)[0]||n[0]).id,o=s.tracks[a];if(r===o){i({error:{message:"Problem encountered loading the default audio track."}});return}fe.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const l in s.tracks)s.tracks[l].enabled=s.tracks[l]===o;s.onTrackChanged()},SUBTITLES:(t,e)=>()=>{const{mediaTypes:{[t]:s}}=e;fe.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const i=s.activeTrack();i&&(i.mode="disabled"),s.onTrackChanged()}},oC={AUDIO:(t,e,s)=>{if(!e)return;const{tech:i,requestOptions:r,segmentLoaders:{[t]:n}}=s;e.on("loadedmetadata",()=>{const a=e.media();n.playlist(a,r),(!i.paused()||a.endList&&i.preload()!=="none")&&n.load()}),e.on("loadedplaylist",()=>{n.playlist(e.media(),r),i.paused()||n.load()}),e.on("error",fm[t](t,s))},SUBTITLES:(t,e,s)=>{const{tech:i,requestOptions:r,segmentLoaders:{[t]:n},mediaTypes:{[t]:a}}=s;e.on("loadedmetadata",()=>{const o=e.media();n.playlist(o,r),n.track(a.activeTrack()),(!i.paused()||o.endList&&i.preload()!=="none")&&n.load()}),e.on("loadedplaylist",()=>{n.playlist(e.media(),r),i.paused()||n.load()}),e.on("error",fm[t](t,s))}},Bq={AUDIO:(t,e)=>{const{vhs:s,sourceType:i,segmentLoaders:{[t]:r},requestOptions:n,main:{mediaGroups:a},mediaTypes:{[t]:{groups:o,tracks:l,logger_:c}},mainPlaylistLoader:d}=e,p=Sf(d.main);(!a[t]||Object.keys(a[t]).length===0)&&(a[t]={main:{default:{default:!0}}},p&&(a[t].main.default.playlists=d.main.playlists));for(const _ in a[t]){o[_]||(o[_]=[]);for(const b in a[t][_]){let T=a[t][_][b],y;if(p?(c(`AUDIO group '${_}' label '${b}' is a main playlist`),T.isMainPlaylist=!0,y=null):i==="vhs-json"&&T.playlists?y=new au(T.playlists[0],s,n):T.resolvedUri?y=new au(T.resolvedUri,s,n):T.playlists&&i==="dash"?y=new xb(T.playlists[0],s,n,d):y=null,T=Mt({id:b,playlistLoader:y},T),oC[t](t,T.playlistLoader,e),o[_].push(T),typeof l[b]>"u"){const x=new fe.AudioTrack({id:b,kind:Nq(T),enabled:!1,language:T.language,default:T.default,label:b});l[b]=x}}}r.on("error",fm[t](t,e))},SUBTITLES:(t,e)=>{const{tech:s,vhs:i,sourceType:r,segmentLoaders:{[t]:n},requestOptions:a,main:{mediaGroups:o},mediaTypes:{[t]:{groups:l,tracks:c}},mainPlaylistLoader:d}=e;for(const p in o[t]){l[p]||(l[p]=[]);for(const _ in o[t][p]){if(!i.options_.useForcedSubtitles&&o[t][p][_].forced)continue;let b=o[t][p][_],T;if(r==="hls")T=new au(b.resolvedUri,i,a);else if(r==="dash"){if(!b.playlists.filter(x=>x.excludeUntil!==1/0).length)return;T=new xb(b.playlists[0],i,a,d)}else r==="vhs-json"&&(T=new au(b.playlists?b.playlists[0]:b.resolvedUri,i,a));if(b=Mt({id:_,playlistLoader:T},b),oC[t](t,b.playlistLoader,e),l[p].push(b),typeof c[_]>"u"){const y=s.addRemoteTextTrack({id:_,kind:"subtitles",default:b.default&&b.autoselect,language:b.language,label:_},!1).track;c[_]=y}}}n.on("error",fm[t](t,e))},"CLOSED-CAPTIONS":(t,e)=>{const{tech:s,main:{mediaGroups:i},mediaTypes:{[t]:{groups:r,tracks:n}}}=e;for(const a in i[t]){r[a]||(r[a]=[]);for(const o in i[t][a]){const l=i[t][a][o];if(!/^(?:CC|SERVICE)/.test(l.instreamId))continue;const c=s.options_.vhs&&s.options_.vhs.captionServices||{};let d={label:o,language:l.language,instreamId:l.instreamId,default:l.default&&l.autoselect};if(c[d.instreamId]&&(d=Mt(d,c[d.instreamId])),d.default===void 0&&delete d.default,r[a].push(Mt({id:o},l)),typeof n[o]>"u"){const p=s.addRemoteTextTrack({id:d.instreamId,kind:"captions",default:d.default,language:d.language,label:d.label},!1).track;n[o]=p}}}}},uO=(t,e)=>{for(let s=0;s<t.length;s++)if(Y1(e,t[s])||t[s].playlists&&uO(t[s].playlists,e))return!0;return!1},Uq=(t,e)=>s=>{const{mainPlaylistLoader:i,mediaTypes:{[t]:{groups:r}}}=e,n=i.media();if(!n)return null;let a=null;n.attributes[t]&&(a=r[n.attributes[t]]);const o=Object.keys(r);if(!a)if(t==="AUDIO"&&o.length>1&&Sf(e.main))for(let l=0;l<o.length;l++){const c=r[o[l]];if(uO(c,n)){a=c;break}}else r.main?a=r.main:o.length===1&&(a=r[o[0]]);return typeof s>"u"?a:s===null||!a?null:a.filter(l=>l.id===s.id)[0]||null},$q={AUDIO:(t,e)=>()=>{const{mediaTypes:{[t]:{tracks:s}}}=e;for(const i in s)if(s[i].enabled)return s[i];return null},SUBTITLES:(t,e)=>()=>{const{mediaTypes:{[t]:{tracks:s}}}=e;for(const i in s)if(s[i].mode==="showing"||s[i].mode==="hidden")return s[i];return null}},jq=(t,{mediaTypes:e})=>()=>{const s=e[t].activeTrack();return s?e[t].activeGroup(s):null},Hq=t=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(c=>{Bq[c](c,t)});const{mediaTypes:e,mainPlaylistLoader:s,tech:i,vhs:r,segmentLoaders:{["AUDIO"]:n,main:a}}=t;["AUDIO","SUBTITLES"].forEach(c=>{e[c].activeGroup=Uq(c,t),e[c].activeTrack=$q[c](c,t),e[c].onGroupChanged=Rq(c,t),e[c].onGroupChanging=Mq(c,t),e[c].onTrackChanged=Fq(c,t),e[c].getActiveGroup=jq(c,t)});const o=e.AUDIO.activeGroup();if(o){const c=(o.filter(p=>p.default)[0]||o[0]).id;e.AUDIO.tracks[c].enabled=!0,e.AUDIO.onGroupChanged(),e.AUDIO.onTrackChanged(),e.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),n.setAudio(!0)):a.setAudio(!0)}s.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(c=>e[c].onGroupChanged())}),s.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(c=>e[c].onGroupChanging())});const l=()=>{e.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"})};i.audioTracks().addEventListener("change",l),i.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),r.on("dispose",()=>{i.audioTracks().removeEventListener("change",l),i.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)}),i.clearTracks("audio");for(const c in e.AUDIO.tracks)i.audioTracks().addTrack(e.AUDIO.tracks[c])},qq=()=>{const t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Pa,activeTrack:Pa,getActiveGroup:Pa,onGroupChanged:Pa,onTrackChanged:Pa,lastTrack_:null,logger_:Nr(`MediaGroups[${e}]`)}}),t};class lC{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){e===1&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=$i(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(s=>[s.ID,s])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class Vq extends fe.EventTarget{constructor(e,s){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new lC,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=Nr("Content Steering"),this.xhr_=e,this.getBandwidth_=s}assignTagProperties(e,s){this.manifestType_=s.serverUri?"HLS":"DASH";const i=s.serverUri||s.serverURL;if(!i){this.logger_(`steering manifest URL is ${i}, cannot request steering manifest.`),this.trigger("error");return}if(i.startsWith("data:")){this.decodeDataUriManifest_(i.substring(i.indexOf(",")+1));return}this.steeringManifest.reloadUri=$i(e,i),this.defaultPathway=s.pathwayId||s.defaultServiceLocation,this.queryBeforeStart=s.queryBeforeStart,this.proxyServerUrl_=s.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering")}requestSteeringManifest(e){const s=this.steeringManifest.reloadUri;if(!s)return;const i=e?s:this.getRequestURI(s);if(!i){this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),this.dispose();return}this.request_=this.xhr_({uri:i},(r,n)=>
259{if(r){if(n.status===410){this.logger_(`manifest request 410 ${r}.`),this.logger_(`There will be no more content steering requests to ${i} this session.`),this.excludedSteeringManifestURLs.add(i);return}if(n.status===429){const o=n.responseHeaders["retry-after"];this.logger_(`manifest request 429 ${r}.`),this.logger_(`content steering will retry in ${o} seconds.`),this.startTTLTimeout_(parseInt(o,10));return}this.logger_(`manifest failed to load ${r}.`),this.startTTLTimeout_();return}const a=JSON.parse(this.request_.responseText);this.assignSteeringProperties_(a),this.startTTLTimeout_()})}setProxyServerUrl_(e){const s=new Q.URL(e),i=new Q.URL(this.proxyServerUrl_);return i.searchParams.set("url",encodeURI(s.toString())),this.setSteeringParams_(i.toString())}decodeDataUriManifest_(e){const s=JSON.parse(Q.atob(e));this.assignSteeringProperties_(s)}setSteeringParams_(e){const s=new Q.URL(e),i=this.getPathway(),r=this.getBandwidth_();if(i){const n=`_${this.manifestType_}_pathway`;s.searchParams.set(n,i)}if(r){const n=`_${this.manifestType_}_throughput`;s.searchParams.set(n,r)}return s.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version){this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),this.trigger("error");return}this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for content steering. Ending content steering."),this.trigger("error"),this.dispose());const i=(r=>{for(const n of r)if(this.availablePathways_.has(n))return n;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==i&&(this.currentPathway=i,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const s=r=>this.excludedSteeringManifestURLs.has(r);if(this.proxyServerUrl_){const r=this.setProxyServerUrl_(e);if(!s(r))return r}const i=this.setSteeringParams_(e);return s(i)?null:i}startTTLTimeout_(e=this.steeringManifest.ttl){const s=e*1e3;this.ttlTimeout_=Q.setTimeout(()=>{this.requestSteeringManifest()},s)}clearTTLTimeout_(){Q.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new lC}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,s){return!s&&this.steeringManifest.reloadUri||s&&($i(e,s.serverURL)!==this.steeringManifest.reloadUri||s.defaultServiceLocation!==this.defaultPathway||s.queryBeforeStart!==this.queryBeforeStart||s.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}const zq=10;let Ta;const Gq=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Wq=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},Xq=function({currentPlaylist:t,buffered:e,currentTime:s,nextPlaylist:i,bufferLowWaterLine:r,bufferHighWaterLine:n,duration:a,bufferBasedABR:o,log:l}){if(!i)return fe.log.warn("We received no playlist to switch to. Please check your stream."),!1;const c=`allowing switch ${t&&t.id||"null"} -> ${i.id}`;if(!t)return l(`${c} as current playlist is not set`),!0;if(i.id===t.id)return!1;const d=!!nu(e,s).length;if(!t.endList)return!d&&typeof t.partTargetDuration=="number"?(l(`n
259ot ${c} as current playlist is live llhls, but currentTime isn't in buffered.`),!1):(l(`${c} as current playlist is live`),!0);const p=W1(e,s),_=o?Ns.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Ns.MAX_BUFFER_LOW_WATER_LINE;if(a<_)return l(`${c} as duration < max low water line (${a} < ${_})`),!0;const b=i.attributes.BANDWIDTH,T=t.attributes.BANDWIDTH;if(b<T&&(!o||p<n)){let y=`${c} as next bandwidth < current bandwidth (${b} < ${T})`;return o&&(y+=` and forwardBuffer < bufferHighWaterLine (${p} < ${n})`),l(y),!0}if((!o||b>T)&&p>=r){let y=`${c} as forwardBuffer >= bufferLowWaterLine (${p} >= ${r})`;return o&&(y+=` and next bandwidth > current bandwidth (${b} > ${T})`),l(y),!0}return l(`not ${c} as no switching criteria met`),!1};class Kq extends fe.EventTarget{constructor(e){super();const{src:s,withCredentials:i,tech:r,bandwidth:n,externVhs:a,useCueTags:o,playlistExclusionDuration:l,enableLowInitialPlaylist:c,sourceType:d,cacheEncryptionKeys:p,bufferBasedABR:_,leastPixelDiffSelector:b,captionServices:T}=e;if(!s)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:y}=e;(y===null||typeof y>"u")&&(y=1/0),Ta=a,this.bufferBasedABR=!!_,this.leastPixelDiffSelector=!!b,this.withCredentials=i,this.tech_=r,this.vhs_=r.vhs,this.sourceType_=d,this.useCueTags_=o,this.playlistExclusionDuration=l,this.maxPlaylistRetries=y,this.enableLowInitialPlaylist=c,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:i,maxPlaylistRetries:y,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=qq(),this.mediaSource=new Q.MediaSource,this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.seekable_=ri(),this.hasPlayed_=!1,this.syncController_=new Iq(e),this.segmentMetadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new Oq,this.sourceUpdater_=new oO(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new Pq,this.keyStatusMap_=new Map;const x={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:T,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:n,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:p,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_=this.sourceType_==="dash"?new xb(s,this.vhs_,Mt(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new au(s,this.vhs_,Mt(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new wb(Mt(x,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new wb(Mt(x,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new wq(Mt(x,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((S,E)=>{function w(){r.off("vttjserror",O),S()}function O(){r.off("vttjsloaded",w),E()}r.one("vttjsloaded",w),r.one("vttjserror",O),r.addWebVttScript_()})}),e);const A=()=>this.mainSegmentLoader_.bandwidth;this.contentSteeringController_=new Vq(this.vhs_.xhr,A),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),Gq.forEach(S=>{this[S+"_"]=Wq.bind(this,S)}),this.logger_=Nr("pc"),this.triggeredFmp4Usage=!1,this.tech_.preload()==="none"?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const C=this.tech_.preload()==="none"?"play":"loadstart";this.tech_.one(C,()=>{const S=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-S,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),s=this.audioAppendsToLoadedData_();return e===-1||s===-1?-1:e+s}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const s=this.selectPlaylist();s&&this.shouldSwitchToMedia_(s)&&this.switchMedia_(s,e)}switchMedia_(e,s,i){const r=this.media(),n=r&&(r.id||r.uri),a=e&&(e.id||e.uri);n&&n!==a&&(this.logger_(`switch media ${n} -> ${a} from ${s}`),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${s}`})),this.mainPlaylistLoader_.media(e,i)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e
vendor: 12,623 bytes, line 259
259=>{const s=this.mediaTypes_[e],i=s?s.activeGroup():null,r=this.contentSteeringController_.getPathway();if(i&&r){const a=(i.length?i[0].playlists:i.playlists).filter(o=>o.attributes.serviceLocation===r);a.length&&this.mediaTypes_[e].activePlaylistLoader.media(a[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=Q.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(Q.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),s=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return s;const i=e.mediaGroups.AUDIO,r=Object.keys(i);let n;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{const o=i.main||r.length&&i[r[0]];for(const l in o)if(o[l].default){n={label:l};break}}if(!n)return s;const a=[];for(const o in i)if(i[o][n.label]){const l=i[o][n.label];if(l.playlists&&l.playlists.length)a.push.apply(a,l.playlists);else if(l.uri)a.push(l);else if(e.playlists.length)for(let c=0;c<e.playlists.length;c++){const d=e.playlists[c];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===o&&a.push(d)}}return a.length?a:s}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const e=this.mainPlaylistLoader_.media(),s=e.targetDuration*1.5*1e3;vb(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=s,e.endList&&this.tech_.preload()!=="none"&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),Hq({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_();let s;if(this.enableLowInitialPlaylist&&(s=this.selectInitialPlaylist()),s||(s=this.selectPlaylist()),!s||!this.shouldSwitchToMedia_(s)||(this.initialMedia_=s,this.switchMedia_(this.initialMedia_,"initial"),!(this.sourceType_==="vhs-json"&&this.initialMedia_.segments)))return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)}),this.mainPlaylistLoader_.on("error",()=>{const e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const e=this.mainPlaylistLoader_.media(),s=e.targetDuration*1.5*1e3;vb(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=s,this.sourceType_==="dash"&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const e=this.mainPlaylistLoader_.media();if(e.lastExcludeReason_==="playlist-unchanged")return;this.stuckAtPlaylistEnd_(e)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})})}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,s){const i=e.mediaGroups||{};let r=!0;const n=Object.keys(i.AUDIO);for(const a in i.AUDIO)for(const o in i.AUDIO[a])i.AUDIO[a][o].uri||(r=!1);r&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(i.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),Ta.Playlist.isAes(s)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),n.length&&Object.keys(i.AUDIO[n[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const s=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),r=this.bufferLowWaterLine(),n=this.bufferHighWaterLine(),a=this.tech_.buffered();return Xq({buffered:a,currentTime:i,currentPlaylist:s,nextPlaylist:e,bufferLowWaterLine:r,bufferHighWaterLine:n,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{const s=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:s.playlist,error:s})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",s=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:zq}))});const e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const s=this.getCodecsOrExclude_();s&&this.sourceUpdater_.addOrChangeSourceBuffers(s)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}fastQualityChange_(e=this.selectPlaylist()){if(e&&e===this.mainPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(()=>{this.tech_.setCurrentTime(this.tech_.currentTime())})}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const e=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0))return this.tech_.setCurrentTime(e.end(e.length-1))}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const s=this.seekable();if(!s.length)return!1;const i=s.end(0);let r=i;if(e.start){const n=e.start.timeOffset;n<0?r=Math.max(i+n,s.start(0)):r=Math.min(i,n)}this.trigger("firstplay"),this.tech_.setCurrentTime(r)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();typeof e<"u"&&typeof e.then=="function"&&e.then(null,s=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const s=this.duration();e[e.length-1].endTime=isNaN(s)||Math.abs(s)===1/0?Number.MAX_VALUE:s}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const s=this.mainSegmentLoader_.getCurrentMediaInfo_();!s||s.hasVideo?e=e&&this.audioSegmentLoader_.ended_:e=this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;const i=this.syncController_.getExpiredTime(e,this.duration());if(i===null)return!1;const r=Ta.Playlist.playlistEnd(e,i),n=this.tech_.currentTime(),a=this.tech_.buffered();if(!a.length)return r-n<=wn;const o=a.end(a.length-1);return o-n<=wn&&r-o<=wn}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:s={},playlistExclusionDuration:i}){if(e=e||this.mainPlaylistLoader_.media(),i=i||s.playlistExclusionDuration||this.playlistExclusionDuration,!e){this.error=s,this.mediaSource.readyState!=="open"?this.trigger("error"):this.sourceUpdater_.endOfStream("network");return}e.playlistErrors_++;const r=this.mainPlaylistLoader_.main.playlists,n=r.filter(Ng),a=n.length===1&&n[0]===e;if(r.length===1&&i!==1/0)return fe.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(a);if(a){if(this.main().contentSteering){const T=this.pathwayAttribute_(e),y=this.contentSteeringController_.steeringManifest.ttl*1e3;this.contentSteeringController_.excludePathway(T),this.excludeThenChangePathway_(),setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(T)},y);return}let b=!1;r.forEach(T=>{if(T===e)return;const y=T.excludeUntil;typeof y<"u"&&y!==1/0&&(b=!0,delete T.excludeUntil)}),b&&(fe.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let o;e.playlistErrors_>this.maxPlaylistRetries?o=1/0:o=Date.now()+i*1e3,e.excludeUntil=o,s.reason&&(e.lastExcludeReason_=s.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const l=this.selectPlaylist();if(!l){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}const c=s.internal?this.logger_:fe.log.warn,d=s.message?" "+s.message:"";c(`${s.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${d} Switching to playlist ${l.id}.`),l.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const p=l.targetDuration/2*1e3||5*1e3,_=typeof l.lastRequest=="number"&&Date.now()-l.lastRequest<=p;return this.switchMedia_(l,"exclude",a||_)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,s){const i=[],r=e==="all";(r||e==="main")&&i.push(this.mainPlaylistLoader_);const n=[];(r||e==="audio")&&n.push("AUDIO"),(r||e==="subtitle")&&(n.push("CLOSED-CAPTIONS"),n.push("SUBTITLES")),n.forEac
259h(a=>{const o=this.mediaTypes_[a]&&this.mediaTypes_[a].activePlaylistLoader;o&&i.push(o)}),["main","audio","subtitle"].forEach(a=>{const o=this[`${a}SegmentLoader_`];o&&(e===a||e==="all")&&i.push(o)}),i.forEach(a=>s.forEach(o=>{typeof a[o]=="function"&&a[o]()}))}setCurrentTime(e){const s=nu(this.tech_.buffered(),e);if(!(this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media())||!this.mainPlaylistLoader_.media().segments)return 0;if(s&&s.length)return e;this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Ta.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}onSyncInfoUpdate_(){let e;if(!this.mainPlaylistLoader_)return;let s=this.mainPlaylistLoader_.media();if(!s)return;let i=this.syncController_.getExpiredTime(s,this.duration());if(i===null)return;const r=this.mainPlaylistLoader_.main,n=Ta.Playlist.seekable(s,i,Ta.Playlist.liveEdgeDelay(r,s));if(n.length===0||this.mediaTypes_.AUDIO.activePlaylistLoader&&(s=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),i=this.syncController_.getExpiredTime(s,this.duration()),i===null||(e=Ta.Playlist.seekable(s,i,Ta.Playlist.liveEdgeDelay(r,s)),e.length===0)))return;let a,o;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),o=this.seekable_.start(0)),e?e.start(0)>n.end(0)||n.start(0)>e.end(0)?this.seekable_=n:this.seekable_=ri([[e.start(0)>n.start(0)?e.start(0):n.start(0),e.end(0)<n.end(0)?e.end(0):n.end(0)]]):this.seekable_=n,!(this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===a&&this.seekable_.start(0)===o)&&(this.logger_(`seekable updated [${EL(this.seekable_)}]`),this.tech_.trigger("seekablechanged"))}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),this.mediaSource.readyState!=="open"){this.updateDuration_=this.updateDuration.bind(this,e),this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(e){const r=this.seekable();if(!r.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<r.end(r.length-1))&&this.sourceUpdater_.setDuration(r.end(r.length-1));return}const s=this.tech_.buffered();let i=Ta.Playlist.duration(this.mainPlaylistLoader_.media());s.length>0&&(i=Math.max(i,s.end(s.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(e=>{const s=this.mediaTypes_[e].groups;for(const i in s)s[i].forEach(r=>{r.playlistLoader&&r.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,s=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=e?!!this.audioSegmentLoader_.getCurrentMediaInfo_():!0;return!(!s||!i)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},s=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const i=bh(this.main(),s),r={},n=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(r.video=i.video||e.main.videoCodec||m7),e.main.isMuxed&&(r.video+=`,${i.audio||e.main.audioCodec||G2}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||n)&&(r.audio=i.audio||e.main.audioCodec||e.audio.audioCodec||G2,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!r.audio&&!r.video){this.excludePlaylist({playlistToExclude:s,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});return}const a=(c,d)=>c?pp(d):f_(d),o={};let l;if(["video","audio"].forEach(function(c){if(r.hasOwnProperty(c)&&!a(e[c].isFmp4,r[c])){const d=e[c].isFmp4?"browser":"muxer";o[d]=o[d]||[],o[d].push(r[c]),c==="audio"&&(l=d)}}),n&&l&&s.attributes.AUDIO){const c=s.attributes.AUDIO;
vendor: 19,485 bytes, line 259
259this.main().playlists.forEach(d=>{(d.attributes&&d.attributes.AUDIO)===c&&d!==s&&(d.excludeUntil=1/0)}),this.logger_(`excluding audio group ${c} as ${l} does not support codec(s): "${r.audio}"`)}if(Object.keys(o).length){const c=Object.keys(o).reduce((d,p)=>(d&&(d+=", "),d+=`${p} does not support codec(s): "${o[p].join(",")}"`,d),"")+".";this.excludePlaylist({playlistToExclude:s,error:{internal:!0,message:c},playlistExclusionDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const c=[];if(["video","audio"].forEach(d=>{const p=(_n(this.sourceUpdater_.codecs[d]||"")[0]||{}).type,_=(_n(r[d]||"")[0]||{}).type;p&&_&&p.toLowerCase()!==_.toLowerCase()&&c.push(`"${this.sourceUpdater_.codecs[d]}" -> "${r[d]}"`)}),c.length){this.excludePlaylist({playlistToExclude:s,error:{message:`Codec switching not supported: ${c.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0});return}}return r}tryToCreateSourceBuffers_(){if(this.mediaSource.readyState!=="open"||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const s=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(s)}excludeUnsupportedVariants_(){const e=this.main().playlists,s=[];Object.keys(e).forEach(i=>{const r=e[i];if(s.indexOf(r.id)!==-1)return;s.push(r.id);const n=bh(this.main,r),a=[];n.audio&&!f_(n.audio)&&!pp(n.audio)&&a.push(`audio codec ${n.audio}`),n.video&&!f_(n.video)&&!pp(n.video)&&a.push(`video codec ${n.video}`),n.text&&n.text==="stpp.ttml.im1t"&&a.push(`text codec ${n.text}`),a.length&&(r.excludeUntil=1/0,this.logger_(`excluding ${r.id} for unsupported: ${a.join(", ")}`))})}excludeIncompatibleVariants_(e){const s=[],i=this.main().playlists,r=dm(_n(e)),n=Yx(r),a=r.video&&_n(r.video)[0]||null,o=r.audio&&_n(r.audio)[0]||null;Object.keys(i).forEach(l=>{const c=i[l];if(s.indexOf(c.id)!==-1||c.excludeUntil===1/0)return;s.push(c.id);const d=[],p=bh(this.mainPlaylistLoader_.main,c),_=Yx(p);if(!(!p.audio&&!p.video)){if(_!==n&&d.push(`codec count "${_}" !== "${n}"`),!this.sourceUpdater_.canChangeType()){const b=p.video&&_n(p.video)[0]||null,T=p.audio&&_n(p.audio)[0]||null;b&&a&&b.type.toLowerCase()!==a.type.toLowerCase()&&d.push(`video codec "${b.type}" !== "${a.type}"`),T&&o&&T.type.toLowerCase()!==o.type.toLowerCase()&&d.push(`audio codec "${T.type}" !== "${o.type}"`)}d.length&&(c.excludeUntil=1/0,this.logger_(`excluding ${c.id}: ${d.join(" && ")}`))}})}updateAdCues_(e){let s=0;const i=this.seekable();i.length&&(s=i.start(0)),kq(e,this.cueTagsTrack_,s)}goalBufferLength(){const e=this.tech_.currentTime(),s=Ns.GOAL_BUFFER_LENGTH,i=Ns.GOAL_BUFFER_LENGTH_RATE,r=Math.max(s,Ns.MAX_GOAL_BUFFER_LENGTH);return Math.min(s+e*i,r)}bufferLowWaterLine(){const e=this.tech_.currentTime(),s=Ns.BUFFER_LOW_WATER_LINE,i=Ns.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(s,Ns.MAX_BUFFER_LOW_WATER_LINE),n=Math.max(s,Ns.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(s+e*i,this.bufferBasedABR?n:r)}bufferHighWaterLine(){return Ns.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){Zx(this.inbandTextTracks_,"com.apple.streaming",this.tech_),uq({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,s,i){const r=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();Zx(this.inbandTextTracks_,e,this.tech_),aq({inbandTextTracks:this.inbandTextTracks_,metadataArray:s,timestampOffset:r,videoDuration:i})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(e.contentSteering){for(const s of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(s));if(this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart){this.contentSteeringController_.requestSteeringManifest(!0);return}this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),this.sourceType_==="dash"&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{const e=this.main();(this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering)||(()=>{const r=this.contentSteeringController_.getAvailablePathways(),n=[];for(const a of e.playlists){const o=a.attributes.serviceLocation;if(o&&(n.push(o),!r.has(o)))return!0}return!!(!n.length&&r.size)})())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();const i=this.main().playlists,r=new Set;let n=!1;Object.keys(i).forEach(a=>{const o=i[a],l=this.pathwayAttribute_(o),c=l&&e!==l;o.excludeUntil===1/0&&o.lastExcludeReason_==="content-steering"&&!c&&(delete o.excludeUntil,delete o.lastExcludeReason_,n=!0);const p=!o.excludeUntil&&o.excludeUntil!==1/0;!r.has(o.id)&&c&&p&&(r.add(o.id),o.excludeUntil=1/0,o.lastExcludeReason_="content-steering",this.logger_(`excluding ${o.id} for ${o.lastExcludeReason_}`))}),this.contentSteeringController_.manifestType_==="DASH"&&Object.keys(this.mediaTypes_).forEach(a=>{const o=this.mediaTypes_[a];if(o.activePlaylistLoader){const l=o.activePlaylistLoader.media_;l&&l.attributes.serviceLocation!==e&&(n=!0)}}),n&&this.changeSegmentPathway_()}handlePathwayClones_(){const s=this.main().playlists,i=this.contentSteeringController_.currentPathwayClones,r=this.contentSteeringController_.nextPathwayClones;if(i&&i.size||r&&r.size){for(const[a,o]of i.entries())r.get(a)||(this.mainPlaylistLoader_.updateOrDeleteClone(o),this.contentSteeringController_.excludePathway(a));for(const[a,o]of r.entries()){const l=i.get(a);if(!l){s.filter(d=>d.attributes["PATHWAY-ID"]===o["BASE-ID"]).forEach(d=>{this.mainPlaylistLoader_.addClonePathway(o,d)}),this.contentSteeringController_.addAvailablePathway(a);continue}this.equalPathwayClones_(l,o)||(this.mainPlaylistLoader_.updateOrDeleteClone(o,!0),this.contentSteeringController_.addAvailablePathway(a))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...r])))}}equalPathwayClones_(e,s){if(e["BASE-ID"]!==s["BASE-ID"]||e.ID!==s.ID||e["URI-REPLACEMENT"].HOST!==s["URI-REPLACEMENT"].HOST)return!1;const i=e["URI-REPLACEMENT"].PARAMS,r=s["URI-REPLACEMENT"].PARAMS;for(const n in i)if(i[n]!==r[n])return!1;for(const n in r)if(i[n]!==r[n])return!1;return!0}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),this.contentSteeringController_.manifestType_==="DASH"&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0;const s="non-usable";this.mainPlaylistLoader_.main.playlists.forEach(i=>{const r=this.mainPlaylistLoader_.getKeyIdSet(i);!r||!r.size||r.forEach(n=>{const a="usable",o=this.keyStatusMap_.has(n)&&this.keyStatusMap_.get(n)===a,l=i.lastExcludeReason_===s&&i.excludeUntil===1/0;o?o&&l&&(delete i.excludeUntil,delete i.lastExcludeReason_,this.logger_(`enabling playlist ${i.id} because key ID ${n} is ${a}`)):(i.excludeUntil!==1/0&&i.lastExcludeReason_!==s&&(i.excludeUntil=1/0,i.lastExcludeReason_=s,this.logger_(`excluding playlist ${i.id} because the key ID ${n} doesn't exist in the keyStatusMap or is not ${a}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(i=>{const r=i&&i.attributes&&i.attributes.RESOLUTION&&i.attributes.RESOLUTION.height<720,n=i.excludeUntil===1/0&&i.lastExcludeReason_===s;r&&n&&(delete i.excludeUntil,fe.log.warn(`enabling non-HD playlist ${i.id} because all playlists were excluded due to ${s} key IDs`))})}addKeyStatus_(e,s){const n=(typeof e=="string"?e:xq(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${s}' with key ID ${n} added to the keyStatusMap`),this.keyStatusMap_.set(n,s)}updatePlaylistByKeyStatus(e,s){this.addKeyStatus_(e,s),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}const Yq=(t,e,s)=>i=>{const r=t.main.playlists[e],n=K1(r),a=Ng(r);return typeof i>"u"?a:(i?delete r.disabled:r.disabled=!0,i!==a&&!n&&(s(),i?t.trigger("renditionenabled"):t.trigger("renditiondisabled")),i)};class Qq{constructor(e,s,i){const{playlistController_:r}=e,n=r.fastQualityChange_.bind(r);if(s.attributes){const a=s.attributes.RESOLUTION;this.width=a&&a.width,this.height=a&&a.height,this.bandwidth=s.attributes.BANDWIDTH,this.frameRate=s.attributes["FRAME-RATE"]}this.codecs=bh(r.main(),s),this.playlist=s,this.id=i,this.enabled=Yq(e.playlists,s.id,n)}}const Jq=function(t){t.representations=()=>{const e=t.playlistController_.main(),s=Sf(e)?t.playlistController_.getAudioTrackPlaylists_():e.playlists;return s?s.filter(i=>!K1(i)).map((i,r)=>new Qq(t,i,i.id)):[]}},uC=["seeking","seeked","pause","playing","error"];class Zq{constructor(e){this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=Nr("PlaybackWatcher"),this.logger_("initialize");const s=()=>this.monitorCurrentTime_(),i=()=>this.monitorCurrentTime_(),r=()=>this.techWaiting_(),n=()=>this.resetTimeUpdate_(),a=this.playlistController_,o=["main","subtitle","audio"],l={};o.forEach(d=>{l[d]={reset:()=>this.resetSegmentDownloads_(d),updateend:()=>this.checkSegmentDownloads_(d)},a[`${d}SegmentLoader_`].on("appendsdone",l[d].updateend),a[`${d}SegmentLoader_`].on("playlistupdate",l[d].reset),this.tech_.on(["seeked","seeking"],l[d].reset)});const c=d=>{["main","audio"].forEach(p=>{a[`${p}SegmentLoader_`][d]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),c("off"))},this.clearSeekingAppendCheck_=()=>c("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),c("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(uC,n),this.tech_.on("canplay",i),this.tech_.one("play",s),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",r),this.tech_.off(uC,n),this.tech_.off("canplay",i),this.tech_.off("play",s),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),o.forEach(d=>{a[`${d}SegmentLoader_`].off("appendsdone",l[d].updateend),a[`${d}SegmentLoader_`].off("playlistupdate",l[d].reset),this.tech_.off(["seeked","seeking"],l[d].reset)}),this.checkCurrentTimeTimeout_&&Q.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&Q.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=Q.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const s=this.playlistController_[`${e}SegmentLoader_`];this[`${e}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[`${e}StalledDownloads_`]=0,this[`${e}Buffered_`]=s.buffered_()}checkSegmentDownloads_(e){const s=this.playlistController_,i=s[`${e}SegmentLoader_`],r=i.buffered_(),n=Hj(this[`${e}Buffered_`],r);if(this[`${e}Buffered_`]=r,n){this.resetSegmentDownloads_(e);return}this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:i.playlist_&&i.playlist_.id,buffered:cl(r)}),!(this[`${e}StalledDownloads_`]<10)&&(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),e!=="subtitle"&&s.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),s=this.tech_.buffered();if(this.lastRecordedTime===e&&(!s.length||e+wn>=s.end(s.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const s=this.seekable(),i=this.tech_.currentTime(),r=this.afterSeekableWindow_(s,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow);let n;if(r&&(n=s.end(s.length-1)),this.beforeSeekableWindow_(s,i)){const T=s.start(0);n=T+(T===s.end(0)?0:wn)}if(typeof n<"u")return this.logger_(`Trying to seek outside of seekable at time ${i} with seekable range ${EL(s)}. Seeking to ${n}.`),this.tech_.setCurrentTime(n),!0;const a=this.playlistController_.sourceUpdater_,o=this.tech_.buffered(),l=a.audioBuffer?a.audioBuffered():null,c=a.videoBuffer?a.videoBuffered():null,d=this.media(),p=d.partTargetDuration?d.partTargetDuration:(d.targetDuration-Cn)*2,_=[l,c];for(let T=0;T<_.length;T++){if(!_[T])continue;if(W1(_[T],i)<p)return!1}const b=Kf(o,i);return b.length===0?!1:(n=b.start(0)+wn,this.logger_(`Buffered region starts (${b.start(0)})  just beyond seek point (${i}). Seeking to ${n}.`),this.tech_.setCurrentTime(n),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),s=this.tech_.buffered(),i=nu(s,e);if(i.length&&e+3<=i.end(0)){this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${i.start(0)} -> ${i.end(0)}]. Attempting to resume playback by seeking to the current time.`),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"});return}}techWaiting_(){const e=this.seekable(),s=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,s)){const o=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${s}. Seeking to live point (seekable end) ${o}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(o),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const i=this.tech_.vhs.playlistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:s}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(s),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const a=Kf(r,s);return a.length>0?(this.logger_(`Stopped at ${s} and seeking to ${a.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(s),!0):!1}afterSeekableWindow_(e,s,i,r=!1){if(!e.length)return!1;let n=e.end(e.length-1)+wn;const a=!i.endList,o=typeof i.partTargetDuration=="number";return a&&(o||r)&&(n=e.end(e.length-1)+i.targetDuration*3),s>n}beforeSeekableWindow_(e,s){return!!(e.length&&e.start(0)>0&&s<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:s,currentTime:i}){if(!e)return;let r;if(e.length&&s.length){const n=nu(e,i-3),a=nu(e,i),o=nu(s,i);o.length&&!a.length&&n.length&&(r={start:n.end(0),end:o.end(0)})}else Kf(e,i).length||(r=this.gapFromVideoUnderflow_(e,i));return r?(this.logger_(`Encountered a gap in video from ${r.start} to ${r.end}. Seeking to current time ${i}`),!0):!1}skipTheGap_(e){const s=this.tech_.buffered(),i=this.tech_.currentTime(),r=Kf(s,i);this.resetTimeUpdate_(),!(r.length===0||i!==e)&&(this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",r.start(0)),this.tech_.setCurrentTime(r.start(0)+Cn),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}))}gapFromVideoUnderflow_(e,s){const i=Uj(e);for(let r=0;r<i.length;r++){const n=i.start(r),a=i.end(r);if(s-n<4&&s-n>2)return{start:n,end:a}}return null}}const eV={errorInterval:30,getSource(t){const s=this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource();return t(s)}},cO=function(t,e){let s=0,i=0;const r=Mt(eV,e);t.ready(()=>{t.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const n=function(){i&&t.currentTime(i)},a=function(d){d!=null&&(i=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",n),t.src(d),t.trigger({type:"usage",name:"vhs-error-reload"}),t.play())},o=function(){if(Date.now()-s<r.errorInterval*1e3){t.trigger({type:"usage",name:"vhs-error-reload-canceled"});return}if(!r.getSource||typeof r.getSource!="function"){fe.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return s=Date.now(),r.getSource.call(t,a)},l=function(){t.off("loadedmetadata",n),t.off("error",o),t.off("dispose",l)},c=function(d){l(),cO(t,d)};t.on("error",o),t.on("dispose",l),t.reloadSourceOnError=c},tV=function(t){cO(this,t)};var dO="3.10.0",sV="7.0.2",iV="1.3.0",rV="7.1.0",nV="4.0.1";const ds={PlaylistLoader:au,Playlist:qi,utils:fH,STANDARD_PLAYLIST_SELECTOR:Jx,INITIAL_PLAYLIST_SELECTOR:tq,lastBandwidthSelector:Jx,movingAverageBandwidthSelector:ZH,comparePlaylistBandwidth:J1,comparePlaylistResolution:JH,xhr:UL()};Object.keys(Ns).forEach(t=>{Object.defineProperty(ds,t,{get(){return fe.log.warn(`using Vhs.${t} is UNSAFE be sure you know what you are doing`),Ns[t]},set(e){if(fe.log.warn(`using Vhs.${t} is UNSAFE be sure you know what you are doing`),typeof e!="number"||e<0){fe.log.warn(`value of Vhs.${t} must be greater than or equal to 0`);return}Ns[t]=e}})});const hO="videojs-vhs",fO=function(t,e){const s=e.media();let i=-1;for(let r=0;r<t.length;r++)if(t[r].id===s.id){i=r;break}t.selectedIndex_=i,t.trigger({selectedIndex:i,type:"change"})},aV=function(t,e){e.representations().forEach(s=>{t.addQualityLevel(s)}),fO(t,e.playlists)};ds.canPlaySource=function(){return fe.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const oV=(t,e,s)=>{if(!t)return t;let i={};e&&e.attributes&&e.attributes.CODECS&&(i=dm(_n(e.attributes.CODECS))),s&&s.attributes&&s.attributes.CODECS&&(i.audio=s.attributes.CODECS);const r=ju(i.video),n=ju(i.audio),a={};for(const o in t)a[o]={},n&&(a[o].audioContentType=n),r&&(a[o].videoContentType=r),e.contentProtection&&e.contentProtection[o]&&e.contentProtection[o].pssh&&(a[o].pssh=e.contentProtection[o].pssh),typeof t[o]=="string"&&(a[o].url=t[o]);return Mt(t,a)},lV=(t,e)=>t.reduce((s,i)=>{if(!i.contentProtection)return s;const r=e.reduce((n,a)=>{const o=i.contentProtection[a];return o&&o.pssh&&(n[a]={pssh:o.pssh}),n},{});return Object.keys(r).length&&s.push(r),s},[]),uV=({player:t,sourceKeySystems:e,audioMedia:s,mainPlaylists:i})=>{if(!t.eme.initializeMediaKeys)return Promise.resolve();const r=s?i.concat([s]):i,n=lV(r,Object.keys(e)),a=[],o=[];
259return n.forEach(l=>{o.push(new Promise((c,d)=>{t.tech_.one("keysessioncreated",c)})),a.push(new Promise((c,d)=>{t.eme.initializeMediaKeys({keySystems:l},p=>{if(p){d(p);return}c()})}))}),Promise.race([Promise.all(a),Promise.race(o)])},cV=({player:t,sourceKeySystems:e,media:s,audioMedia:i})=>{const r=oV(e,s,i);return r?(t.currentSource().keySystems=r,r&&!t.eme?(fe.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1):!0):!1},pO=()=>{if(!Q.localStorage)return null;const t=Q.localStorage.getItem(hO);if(!t)return null;try{return JSON.parse(t)}catch{return null}},dV=t=>{if(!Q.localStorage)return!1;let e=pO();e=e?Mt(e,t):t;try{Q.localStorage.setItem(hO,JSON.stringify(e))}catch{return!1}return e},hV=t=>t.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")===0?JSON.parse(t.substring(t.indexOf(",")+1)):t,mO=(t,e)=>{t._requestCallbackSet||(t._requestCallbackSet=new Set),t._requestCallbackSet.add(e)},gO=(t,e)=>{t._responseCallbackSet||(t._responseCallbackSet=new Set),t._responseCallbackSet.add(e)},yO=(t,e)=>{t._requestCallbackSet&&(t._requestCallbackSet.delete(e),t._requestCallbackSet.size||delete t._requestCallbackSet)},_O=(t,e)=>{t._responseCallbackSet&&(t._responseCallbackSet.delete(e),t._responseCallbackSet.size||delete t._responseCallbackSet)};ds.supportsNativeHls=function(){if(!Oe||!Oe.createElement)return!1;const t=Oe.createElement("video");return fe.getTech("Html5").isSupported()?["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(s){return/maybe|probably/i.test(t.canPlayType(s))}):!1}();ds.supportsNativeDash=function(){return!Oe||!Oe.createElement||!fe.getTech("Html5").isSupported()?!1:/maybe|probably/i.test(Oe.createElement("video").canPlayType("application/dash+xml"))}();ds.supportsTypeNatively=t=>t==="hls"?ds.supportsNativeHls:t==="dash"?ds.supportsNativeDash:!1;ds.isSupported=function(){return fe.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};ds.xhr.onRequest=function(t){mO(ds.xhr,t)};ds.xhr.onResponse=function(t){gO(ds.xhr,t)};ds.xhr.offRequest=function(t){yO(ds.xhr,t)};ds.xhr.offResponse=function(t){_O(ds.xhr,t)};const fV=fe.getComponent("Component");class vO extends fV{constructor(e,s,i){if(super(s,i.vhs),typeof i.initialBandwidth=="number"&&(this.options_.bandwidth=i.initialBandwidth),this.logger_=Nr("VhsHandler"),s.options_&&s.options_.playerId){const r=fe.getPlayer(s.options_.playerId);this.player_=r}if(this.tech_=s,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&s.overrideNativeAudioTracks&&s.overrideNativeVideoTracks)s.overrideNativeAudioTracks(!0),s.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(s.featuresNativeVideoTracks||s.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(Oe,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=>{const n=Oe.fullscreenElement||Oe.webkitFullscreenElement||Oe.mozFullScreenElement||Oe.msFullscreenElement;n&&n.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=!1;return}this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=Mt(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions!==!1,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage<"u"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||
vendor: 7,116 bytes, line 259
259!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=this.options_.llhls!==!1,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,typeof this.options_.playlistExclusionDuration!="number"&&(this.options_.playlistExclusionDuration=60),typeof this.options_.bandwidth!="number"&&this.options_.useBandwidthFromLocalStorage){const s=pO();s&&s.bandwidth&&(this.options_.bandwidth=s.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),s&&s.throughput&&(this.options_.throughput=s.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}typeof this.options_.bandwidth!="number"&&(this.options_.bandwidth=Ns.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Ns.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(s=>{typeof this.source_[s]<"u"&&(this.options_[s]=this.source_[s])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio}setOptions(e={}){this.setOptions_(e)}src(e,s){if(!e)return;this.setOptions_(),this.options_.src=hV(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=ds,this.options_.sourceType=xI(s),this.options_.seekTo=n=>{this.tech_.setCurrentTime(n)},this.playlistController_=new Kq(this.options_);const i=Mt({liveRangeSafeTimeDelta:wn},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new Zq(i),this.playlistController_.on("error",()=>{const n=fe.players[this.tech_.options_.playerId];let a=this.playlistController_.error;typeof a=="object"&&!a.code?a.code=3:typeof a=="string"&&(a={message:a,code:3}),n.error(a)});const r=this.options_.bufferBasedABR?ds.movingAverageBandwidthSelector(.55):ds.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.playlistController_.selectInitialPlaylist=ds.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(n){this.playlistController_.selectPlaylist=n.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(n){this.playlistController_.mainSegmentLoader_.throughput.rate=n,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let n=this.playlistController_.mainSegmentLoader_.bandwidth;const a=Q.navigator.connection||Q.navigator.mozConnection||Q.navigator.webkitConnection,o=1e7;if(this.options_.useNetworkInformationApi&&a){const l=a.downlink*1e3*1e3;l>=o&&n>=o?n=Math.max(n,l):n=l}return n},set(n){this.playlistController_.mainSegmentLoader_.bandwidth=n,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const n=1/(this.bandwidth||1);let a;return this.throughput>0?a=1/this.throughput:a=0,Math.floor(1/(n+a))},set(){fe.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>cl(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>cl(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&dV({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{Jq(this)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=Q.URL.createObjectURL(this.playlistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),uV({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(s=>{this.logger_("error while creating EME key session",s),this.player_.error({message:"Failed to initialize media ke
259ys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,s=cV({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});if(this.player_.tech_.on("keystatuschange",i=>{this.playlistController_.updatePlaylistByKeyStatus(i.keyId,i.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),!s){this.playlistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()}setupQualityLevels_(){const e=fe.players[this.tech_.options_.playerId];!e||!e.qualityLevels||this.qualityLevels_||(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{aV(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{fO(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":dO,"mux.js":sV,"mpd-parser":iV,"m3u8-parser":rV,"aes-decrypter":nV}}version(){return this.constructor.version()}canChangeType(){return oO.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&Q.URL.revokeObjectURL&&(Q.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,s){return bH({playlist:this.playlistController_.media(),time:e,callback:s})}seekToProgramTime(e,s,i=!0,r=2){return VL({programTime:e,playlist:this.playlistController_.media(),retryCount:r,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:s})}setupXhrHooks_(){this.xhr.onRequest=e=>{mO(this.xhr,e)},this.xhr.onResponse=e=>{gO(this.xhr,e)},this.xhr.offRequest=e=>{yO(this.xhr,e)},this.xhr.offResponse=e=>{_O(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}}const pm={name:"videojs-http-streaming",VERSION:dO,canHandleSource(t,e={}){const s=Mt(fe.options,e);return pm.canPlayType(t.type,s)},handleSource(t,e,s={}){const i=Mt(fe.options,s);return e.vhs=new vO(t,e,i),e.vhs.xhr=UL(),e.vhs.setupXhrHooks_(),e.vhs.src(t.src,t.type),e.vhs},canPlayType(t,e){const s=xI(t);if(!s)return"";const i=pm.getOverrideNative(e);return!ds.supportsTypeNatively(s)||i?"maybe":""},getOverrideNative(t={}){const{vhs:e={}}=t,s=!(fe.browser.IS_ANY_SAFARI||fe.browser.IS_IOS),{overrideNative:i=s}=e;return i}},pV=()=>pp("avc1.4d400d,mp4a.40.2");pV()&&fe.getTech("Html5").registerSourceHandler(pm,0);fe.VhsHandler=vO;fe.VhsSourceHandler=pm;fe.Vhs=ds;fe.use||fe.registerComponent("Vhs",ds);fe.options.vhs=fe.options.vhs||{};(!fe.getPlugin||!fe.getPlugin("reloadSourceOnError"))&&fe.registerPlugin("reloadSourceOnError",tV);function bO(t,e){return function(){return t.apply(e,arguments)}}const{toString:mV}=Object.prototype,{getPrototypeOf:Z1}=Object,Rg=(t=>e=>{const s=mV.call(e);return t[s]||(t[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),hn=t=>(t=t.toLowerCase(),e=>Rg(e)===t),Mg=t=>e=>typeof e===t,{isArray:xc}=Array,Kh=Mg("undefined");function gV(t){return t!==null&&!Kh(t)&&t.constructor!==null&&!Kh(t.constructor)&&Ar(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const TO=hn("ArrayBuffer");function yV(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&TO(t.buffer),e}const _V=Mg("string"),Ar=Mg("function"),SO=Mg("number"),Fg=t=>t!==null&&typeof t=="object",vV=t=>t===!0||t===!1,_p=t=>{if(Rg(t)!=="object")return!1;const e=Z1(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},bV=hn("Date"),TV=hn("File"),SV=hn("Blob"),EV=hn("FileList"),xV=t=>Fg(t)&&Ar(t.pipe),CV=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ar(t.append)&&((e
vendor: 7,260 bytes, line 259
259=Rg(t))==="formdata"||e==="object"&&Ar(t.toString)&&t.toString()==="[object FormData]"))},wV=hn("URLSearchParams"),[AV,kV,DV,IV]=["ReadableStream","Request","Response","Headers"].map(hn),PV=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ef(t,e,{allOwnKeys:s=!1}={}){if(t===null||typeof t>"u")return;let i,r;if(typeof t!="object"&&(t=[t]),xc(t))for(i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else{const n=s?Object.getOwnPropertyNames(t):Object.keys(t),a=n.length;let o;for(i=0;i<a;i++)o=n[i],e.call(null,t[o],o,t)}}function EO(t,e){e=e.toLowerCase();const s=Object.keys(t);let i=s.length,r;for(;i-- >0;)if(r=s[i],e===r.toLowerCase())return r;return null}const xO=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,CO=t=>!Kh(t)&&t!==xO;function Db(){const{caseless:t}=CO(this)&&this||{},e={},s=(i,r)=>{const n=t&&EO(e,r)||r;_p(e[n])&&_p(i)?e[n]=Db(e[n],i):_p(i)?e[n]=Db({},i):xc(i)?e[n]=i.slice():e[n]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&Ef(arguments[i],s);return e}const LV=(t,e,s,{allOwnKeys:i}={})=>(Ef(e,(r,n)=>{s&&Ar(r)?t[n]=bO(r,s):t[n]=r},{allOwnKeys:i}),t),OV=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),NV=(t,e,s,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),s&&Object.assign(t.prototype,s)},RV=(t,e,s,i)=>{let r,n,a;const o={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),n=r.length;n-- >0;)a=r[n],(!i||i(a,t,e))&&!o[a]&&(e[a]=t[a],o[a]=!0);t=s!==!1&&Z1(t)}while(t&&(!s||s(t,e))&&t!==Object.prototype);return e},MV=(t,e,s)=>{t=String(t),(s===void 0||s>t.length)&&(s=t.length),s-=e.length;const i=t.indexOf(e,s);return i!==-1&&i===s},FV=t=>{if(!t)return null;if(xc(t))return t;let e=t.length;if(!SO(e))return null;const s=new Array(e);for(;e-- >0;)s[e]=t[e];return s},BV=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Z1(Uint8Array)),UV=(t,e)=>{const i=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=i.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},$V=(t,e)=>{let s;const i=[];for(;(s=t.exec(e))!==null;)i.push(s);return i},jV=hn("HTMLFormElement"),HV=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,i,r){return i.toUpperCase()+r}),cC=(({hasOwnProperty:t})=>(e,s)=>t.call(e,s))(Object.prototype),qV=hn("RegExp"),wO=(t,e)=>{const s=Object.getOwnPropertyDescriptors(t),i={};Ef(s,(r,n)=>{let a;(a=e(r,n,t))!==!1&&(i[n]=a||r)}),Object.defineProperties(t,i)},VV=t=>{wO(t,(e,s)=>{if(Ar(t)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const i=t[s];if(Ar(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},zV=(t,e)=>{const s={},i=r=>{r.forEach(n=>{s[n]=!0})};return xc(t)?i(t):i(String(t).split(e)),s},GV=()=>{},WV=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,D_="abcdefghijklmnopqrstuvwxyz",dC="0123456789",AO={DIGIT:dC,ALPHA:D_,ALPHA_DIGIT:D_+D_.toUpperCase()+dC},XV=(t=16,e=AO.ALPHA_DIGIT)=>{let s="";const{length:i}=e;for(;t--;)s+=e[Math.random()*i|0];return s};function KV(t){return!!(t&&Ar(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const YV=t=>{const e=new Array(10),s=(i,r)=>{if(Fg(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[r]=i;const n=xc(i)?[]:{};return Ef(i,(a,o)=>{const l=s(a,r+1);!Kh(l)&&(n[o]=l)}),e[r]=void 0,n}}return i};return s(t,0)},QV=hn("AsyncFunction"),JV=t=>t&&(Fg(t)||Ar(t))&&Ar(t.then)&&Ar(t.catch),_e={isArray:xc,isArrayBuffer:TO,isBuffer:gV,isFormData:CV,isArrayBufferView:yV,isString:_V,isNumber:SO,isBoolean:vV,isObject:Fg,isPlainObject:_p,isReadableStream:AV,isRequest:kV,isResponse:DV,isHeaders:IV,isUndefined:Kh,isDate:bV,isFile:TV,isBlob:SV,isRegExp:qV,isFunction:Ar,isStream:xV,isURLSearchParams:wV,isTypedArray:BV,isFileList:EV,forEach:Ef,merge:Db,extend:LV,trim:PV,stripBOM:OV,inherits:NV,toFlatObject:RV,kindOf:Rg,kindOfTest:hn,endsWith:MV,toArray:FV,forEachEntry:UV,matchAll:$V,isHTMLForm:jV,hasOwnProperty:cC,hasOwnProp:cC,reduceDescriptors:wO,freezeMethods:VV,toObjectSet:zV,toCamelCase:HV,noop:GV,toFiniteNumber:WV,findKey:EO,global:xO,isContextDefined:CO,ALPHABET:AO,generateString:XV,isSpecCompliantForm:KV,toJSONObject:YV,isAsyncFn:QV,isThenable:JV};function yt(t,e,s,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),s&&(this.config=s),i&&(this.request=i),r&&(this.response=r)}_e.inherits(yt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_e.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const kO=yt.prototype,DO={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{DO[t]={value:t}});Object.defineProperties(yt,DO);Object.defineProperty(kO,"isAxiosError",{value:!0});yt.from=(t,e,s,i,r,n)=>{const a=Object.create(kO);return _e.toFlatObject(t,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),yt.call(a,t.message,e,s,i,r),a.cause=t,a.name=t.name,n&&Object.assign(a,n),a};const ZV=null;function Ib(t){return _e.isPlainObject(t)||_e.isArray(t)}function IO(t){return _e.endsWith(t,"[]")?t.slice(0,-2):t}function hC(t,e,s){return t?t.concat(e).map(function(r,n){return r=IO(r),!s&&n?"["+r+"]":r}).join(s?".":""):e}function ez(t){return _e.isArray(t)&&!t.some(Ib)}const tz=_e.toFlatObject(_e,{},null,function(e){return/^is[A-Z]/.test(e)});function Bg(t,e,s){if(!_e.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,s=_e.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,x){return!_e.isUndefined(x[y])});const i=s.metaTokens,r=s.visitor||d,n=s.dots,a=s.indexes,l=(s.Blob||typeof Blob<"u"&&Blob)&&_e.isSpecCompliantForm(e);if(!_e.isFunction(r))throw new TypeError("visitor must be a function");function c(T){if(T===null)return"";if(_e.isDate(T))return T.toISOString();if(!l&&_e.isBlob(T))throw new yt("Blob is not supported. Use a Buffer instead.");return _e.isArrayBuffer(T)||_e.isTypedArray(T)?l&&typeof Blob=="function"?new Blob([T]):Buffer.from(T):T}function d(T,y,x){let A=T;if(T&&!x&&typeof T=="object"){if(_e.endsWith(y,"{}"))y=i?y:y.slice(0,-2),T=JSON.stringify(T);else if(_e.isArray(T)&&ez(T)||(_e.isFileList(T)||_e.endsWith(y,"[]"))&&(A=_e.toArray(T)))return y=IO(y),A.forEach(function(S,E){!(_e.isUndefined(S)||S===null)&&e.append(a===!0?hC([y],E,n):a===null?y:y+"[]",c(S))}),!1}return Ib(T)?!0:(e.append(hC(x,y,n),c(T)),!1)}const p=[],_=Object.assign(tz,{defaultVisitor:d,convertValue:c,isVisitable:Ib});function b(T,y){if(!_e.isUndefined(T)){if(p.indexOf(T)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(T),_e.forEach(T,function(A,C){(!(_e.isUndefined(A)||A===null)&&r.call(e,A,_e.isString(C)?C.trim():C,y,_))===!0&&b(A,y?y.concat(C):[C])}),p.pop()}}if(!_e.isObject(t))throw new TypeError("data must be an object");return b(t),e}
vendor: 5,369 bytes, lines 259-260
259function fC(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function eS(t,e){this._pairs=[],t&&Bg(t,this,e)}const PO=eS.prototype;PO.append=function(e,s){this._pairs.push([e,s])};PO.toString=function(e){const s=e?function(i){return e.call(this,i,fC)}:fC;return this._pairs.map(function(r){return s(r[0])+"="+s(r[1])},"").join("&")};function sz(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function LO(t,e,s){if(!e)return t;const i=s&&s.encode||sz,r=s&&s.serialize;let n;if(r?n=r(e,s):n=_e.isURLSearchParams(e)?e.toString():new eS(e,s).toString(i),n){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+n}return t}class pC{constructor(){this.handlers=[]}use(e,s,i){return this.handlers.push({fulfilled:e,rejected:s,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){_e.forEach(this.handlers,function(i){i!==null&&e(i)})}}const OO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},iz=typeof URLSearchParams<"u"?URLSearchParams:eS,rz=typeof FormData<"u"?FormData:null,nz=typeof Blob<"u"?Blob:null,az={isBrowser:!0,classes:{URLSearchParams:iz,FormData:rz,Blob:nz},protocols:["http","https","file","blob","url","data"]},tS=typeof window<"u"&&typeof document<"u",oz=(t=>tS&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),lz=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",uz=tS&&window.location.href||"http://localhost",cz=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:tS,hasStandardBrowserEnv:oz,hasStandardBrowserWebWorkerEnv:lz,origin:uz},Symbol.toStringTag,{value:"Module"})),tn={...cz,...az};function dz(t,e){return Bg(t,new tn.classes.URLSearchParams,Object.assign({visitor:function(s,i,r,n){return tn.isNode&&_e.isBuffer(s)?(this.append(i,s.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}function hz(t){return _e.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function fz(t){const e={},s=Object.keys(t);let i;const r=s.length;let n;for(i=0;i<r;i++)n=s[i],e[n]=t[n];return e}function NO(t){function e(s,i,r,n){let a=s[n++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=n>=s.length;return a=!a&&_e.isArray(r)?r.length:a,l?(_e.hasOwnProp(r,a)?r[a]=[r[a],i]:r[a]=i,!o):((!r[a]||!_e.isObject(r[a]))&&(r[a]=[]),e(s,i,r[a],n)&&_e.isArray(r[a])&&(r[a]=fz(r[a])),!o)}if(_e.isFormData(t)&&_e.isFunction(t.entries)){const s={};return _e.forEachEntry(t,(i,r)=>{e(hz(i),r,s,0)}),s}return null}function pz(t,e,s){if(_e.isString(t))try{return(e||JSON.parse)(t),_e.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(s||JSON.stringify)(t)}const xf={transitional:OO,adapter:["xhr","http","fetch"],transformRequest:[function(e,s){const i=s.getContentType()||"",r=i.indexOf("application/json")>-1,n=_e.isObject(e);if(n&&_e.isHTMLForm(e)&&(e=new FormData(e)),_e.isFormData(e))return r?JSON.stringify(NO(e)):e;if(_e.isArrayBuffer(e)||_e.isBuffer(e)||_e.isStream(e)||_e.isFile(e)||_e.isBlob(e)||_e.isReadableStream(e))return e;if(_e.isArrayBufferView(e))return e.buffer;if(_e.isURLSearchParams(e))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(n){if(i.indexOf("application/x-www-form-urlencoded")>-1)return dz(e,this.formSerializer).toString();if((o=_e.isFileList(e))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Bg(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return n||r?(s.setContentType("application/json",!1),pz(e)):e}],transformResponse:[function(e){const s=this.transitional||xf.transitional,i=s&&s.forcedJSONParsing,r=this.responseType==="json";if(_e.isResponse(e)||_e.isReadableStream(e))return e;if(e&&_e.isString(e)&&(i&&!this.responseType||r)){const a=!(s&&s.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?yt.from(o,yt.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tn.classes.FormData,Blob:tn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_e.forEach(["delete","get","head","post","put","patch"],t=>{xf.headers[t]={}});const mz=_e.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gz=t=>{const e={};let s,i,r;return t&&t.split(`
260`).forEach(function(a){r=a.indexOf(":"),s=a.substring(0,r).trim().toLowerCase(),i=a.substring(r+1).trim(),!(!s||e[s]&&mz[s])&&(s==="set-cookie"?e[s]?e[s].push(i):e[s]=[i]:e[s]=e[s]?e[s]+", "+i:i)}),e},mC=Symbol("internals");function Bd(t){return t&&String(t).trim().toLowerCase()}function vp(t){return t===!1||t==null?t:_e.isArray(t)?t.map(vp):String(t)}function yz(t){const e=Object.create(null),s=/([^\s,;
260=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=s.exec(t);)e[i[1]]=i[2];return e}const _z=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function I_(t,e,s,i,r){if(_e.isFunction(i))return i.call(this,e,s);if(r&&(e=s),!!_e.isString(e)){if(_e.isString(i))return e.indexOf(i)!==-1;if(_e.isRegExp(i))return i.test(e)}}function vz(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,s,i)=>s.toUpperCase()+i)}function bz(t,e){const s=_e.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+s,{value:function(r,n,a){return this[i].call(this,e,r,n,a)},configurable:!0})})}let Wi=class{constructor(e){e&&this.set(e)}set(e,s,i){const r=this;function n(o,l,c){const d=Bd(l);if(!d)throw new Error("header name must be a non-empty string");const p=_e.findKey(r,d);(!p||r[p]===void 0||c===!0||c===void 0&&r[p]!==!1)&&(r[p||l]=vp(o))}const a=(o,l)=>_e.forEach(o,(c,d)=>n(c,d,l));if(_e.isPlainObject(e)||e instanceof this.constructor)a(e,s);else if(_e.isString(e)&&(e=e.trim())&&!_z(e))a(gz(e),s);else if(_e.isHeaders(e))for(const[o,l]of e.entries())n(l,o,i);else e!=null&&n(s,e,i);return this}get(e,s){if(e=Bd(e),e){const i=_e.findKey(this,e);if(i){const r=this[i];if(!s)return r;if(s===!0)return yz(r);if(_e.isFunction(s))return s.call(this,r,i);if(_e.isRegExp(s))return s.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,s){if(e=Bd(e),e){const i=_e.findKey(this,e);return!!(i&&this[i]!==void 0&&(!s||I_(this,this[i],i,s)))}return!1}delete(e,s){const i=this;let r=!1;function n(a){if(a=Bd(a),a){const o=_e.findKey(i,a);o&&(!s||I_(i,i[o],o,s))&&(delete i[o],r=!0)}}return _e.isArray(e)?e.forEach(n):n(e),r}clear(e){const s=Object.keys(this);let i=s.length,r=!1;for(;i--;){const n=s[i];(!e||I_(this,this[n],n,e,!0))&&(delete this[n],r=!0)}return r}normalize(e){const s=this,i={};return _e.forEach(this,(r,n)=>{const a=_e.findKey(i,n);if(a){s[a]=vp(r),delete s[n];return}const o=e?vz(n):String(n).trim();o!==n&&delete s[n],s[o]=vp(r),i[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const s=Object.create(null);return _e.forEach(this,(i,r)=>{i!=null&&i!==!1&&(s[r]=e&&_e.isArray(i)?i.join(", "):i)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,s])=>e+": "+s).join(`
261`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...s){const i=new this(e);return s.forEach(r=>i.set(r)),i}static accessor(e){const i=(this[mC]=this[mC]={accessors:{}}).accessors,r=this.prototype;function n(a){const o=Bd(a);i[o]||(bz(r,a),i[o]=!0)}return _e.isArray(e)?e.forEach(n):n(e),this}};Wi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_e.reduceDescriptors(Wi.prototype,({value:t},e)=>{let s=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[s]=i}}});_e.freezeMethods(Wi);function P_(t,e){const s=this||xf,i=e||s,r=Wi.from(i.headers);let n=i.data;return _e.forEach(t,function(o){n=o.call(s,n,r.normalize(),e?e.status:void 0)}),r.normalize(),n}function RO(t){return!!(t&&t.__CANCEL__)}function Cc(t,e,s){yt.call(this,t??"canceled",yt.ERR_CANCELED,e,s),this.name="CanceledError"}_e.inherits(Cc,yt,{__CANCEL__:!0});function MO(t,e,s){const i=s.config.validateStatus;!s.status||!i||i(s.status)?t(s):e(new yt("Request failed with status code "+s.status,[yt.ERR_BAD_REQUEST,yt.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function Tz(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Sz(t,e){t=t||10;const s=new Array(t),i=new Array(t);let r=0,n=0,a;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),d=i[n];a||(a=c),s[r]=l,i[r]=c;let p=n,_=0;for(;p!==r;)_+=s[p++],p=p%t;if(r=(r+1)%t,r===n&&(n=(n+1)%t),c-a<e)return;const b=d&&c-d;return b?Math.round(_*1e3/b):void 0}}function Ez(t,e){let s=0;const i=1e3/e;let r=null;return function(){const a=this===!0,o=Date.now();if(a||o-s>i)return r&&(clearTimeout(r),r=null),s=o,t.apply(null,arguments);r||(r=setTimeout(()=>(r=null,s=Date.now(),t.apply(null,arguments)),i-(o-s)))}}const mm=(t,e,s=3)=>{let i=0;const r=Sz(50,250);return Ez(n=>{const a=n.loaded,o=n.lengthComputable?n.total:void 0,l=a-i,c=r(l),d=a<=o;i=a;const p={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o&&d?(o-a)/c:void 0,event:n,lengthComputable:o!=null};p[e?"download":"upload"]=!0,t(p)},s)},xz=tn.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");let i;function r(n){let a=n;return e&&(s.setAttribute("href",a),a=s.href),s.setAttribute("href",a),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return i=r(window.location.href),function(a){const o=_e.isString(a)?r(a):a;return o.protocol===i.protocol&&o.host===i.host}}():function(){return function(){return!0}}(),Cz=tn.hasStandardBrowserEnv?{write(t,e,s,i,r,n){const a=[t+"="+encodeURIComponent(e)];_e.isNumber(s)&&a.push("expires="+new Date(s).toGMTString()),_e.isString(i)&&a.push("path="+i),_e.isString(r)&&a.push("domain="+r),n===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function wz(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Az(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function FO(t,e){return t&&!wz(e)?Az(t,e):e}const gC=t=>t instanceof Wi?{...t}:t;function Dl(t,e){e=e||{};const s={};function i(c,d,p){return _e.isPlainObject(c)&&_e.isPlainObject(d)?_e.merge.call({caseless:p},c,d):_e.isPlainObject(d)?_e.merge({},d):_e.isArray(d)?d.slice():d}function r(c,d,p){if(_e.isUndefined(d)){if(!_e.isUndefined(c))return i(void 0,c,p)}else return i(c,d,p)}function n(c,d){if(!_e.isUndefined(d))return i(void 0,d)}function a(c,d){if(_e.isUndefined(d)){if(!_e.isUndefined(c))return i(void 0,c)}else return i(void 0,d)}function o(c,d,p){if(p in e)return i(c,d);if(p in t)return i(void 0,c)}const l={url:n,method:n,data:n,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBo
261dyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(c,d)=>r(gC(c),gC(d),!0)};return _e.forEach(Object.keys(Object.assign({},t,e)),function(d){const p=l[d]||r,_=p(t[d],e[d],d);_e.isUndefined(_)&&p!==o||(s[d]=_)}),s}const BO=t=>{const e=Dl({},t);let{data:s,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:n,headers:a,auth:o}=e;e.headers=a=Wi.from(a),e.url=LO(FO(e.baseURL,e.url),t.params,t.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(_e.isFormData(s)){if(tn.hasStandardBrowserEnv||tn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...d]=l?l.split(";").map(p=>p.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...d].join("; "))}}if(tn.hasStandardBrowserEnv&&(i&&_e.isFunction(i)&&(i=i(e)),i||i!==!1&&xz(e.url))){const c=r&&n&&Cz.read(n);c&&a.set(r,c)}return e},kz=typeof XMLHttpRequest<"u",Dz=kz&&function(t){return new Promise(function(s,i){const r=BO(t);let n=r.data;const a=Wi.from(r.headers).normalize();let{responseType:o}=r,l;function c(){r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}let d=new XMLHttpRequest;d.open(r.method.toUpperCase(),r.url,!0),d.timeout=r.timeout;function p(){if(!d)return;const b=Wi.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!o||o==="text"||o==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:b,config:t,request:d};MO(function(A){s(A),c()},function(A){i(A),c()},y),d=null}"onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(i(new yt("Request aborted",yt.ECONNABORTED,r,d)),d=null)},d.onerror=function(){i(new yt("Network Error",yt.ERR_NETWORK,r,d)),d=null},d.ontimeout=function(){let T=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const y=r.transitional||OO;r.timeoutErrorMessage&&(T=r.timeoutErrorMessage),i(new yt(T,y.clarifyTimeoutError?yt.ETIMEDOUT:yt.ECONNABORTED,r,d)),d=null},n===void 0&&a.setContentType(null),"setRequestHeader"in d&&_e.forEach(a.toJSON(),function(T,y){d.setRequestHeader(y,T)}),_e.isUndefined(r.withCredentials)||(d.withCredentials=!!r.withCredentials),o&&o!=="json"&&(d.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&d.addEventListener("progress",mm(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",mm(r.onUploadProgress)),(r.cancelToken||r.signal)&&(l=b=>{d&&(i(!b||b.type?new Cc(null,t,d):b),d.abort(),d=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));const _=Tz(r.url);if(_&&tn.protocols.indexOf(_)===-1){i(new yt("Unsupported protocol "+_+":",yt.ERR_BAD_REQUEST,t));return}d.send(n||null)})},Iz=(t,e)=>{let s=new AbortController,i;const r=function(l){if(!i){i=!0,a();const c=l instanceof Error?l:this.reason;s.abort(c instanceof yt?c:new Cc(c instanceof Error?c.message:c))}};let n=e&&setTimeout(()=>{r(new yt(`timeout ${e} of ms exceeded`,yt.ETIMEDOUT))},e);const a=()=>{t&&(n&&clearTimeout(n),n=null,t.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",r):l.unsubscribe(r))}),t=null)};t.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",r));const{signal:o}=s;return o.unsubscribe=a,[o,()=>{n&&clearTimeout(n),n=null}]},Pz=function*(t,e){let s=t.byteLength;if(s<e){yield t;return}let i=0,r;for(;i<s;)r=i+e,yield t.slice(i,r),i=r},Lz=async function*(t,e,s){for await(const i of t)yield*Pz(ArrayBuffer.isView(i)?i:await s(String(i)),e)},yC=(t,e,s,i,r)=>{const n=Lz(t,e,r);let a=0;return new ReadableStream({type:"bytes",async pull(o){const{done:l,value:c}=await n.next();if(l){o.close(),i();return}let d=c.byteLength;s&&s(a+=d),o.enqueue(new Uint8Array(c))},cancel(o){return i(o),n.return()}},{highWaterMark:2})},_C=(t,e)=>{const s=t!=null;return i=>setTimeout(()=>e({lengthComputable:s,total:t,loaded:i}))},Ug=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",UO=Ug&&typeof ReadableStream=="function",Pb=Ug&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Oz=UO&&(()=>{let t=!1;
261const e=new Request(tn.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),vC=64*1024,Lb=UO&&!!(()=>{try{return _e.isReadableStream(new Response("").body)}catch{}})(),gm={stream:Lb&&(t=>t.body)};Ug&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!gm[e]&&(gm[e]=_e.isFunction(t[e])?s=>s[e]():(s,i)=>{throw new yt(`Response type '${e}' is not supported`,yt.ERR_NOT_SUPPORT,i)})})})(new Response);const Nz=async t=>{if(t==null)return 0;if(_e.isBlob(t))return t.size;if(_e.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(_e.isArrayBufferView(t))return t.byteLength;if(_e.isURLSearchParams(t)&&(t=t+""),_e.isString(t))return(await Pb(t)).byteLength},Rz=async(t,e)=>{const s=_e.toFiniteNumber(t.getContentLength());return s??Nz(e)},Mz=Ug&&(async t=>{let{url:e,method:s,data:i,signal:r,cancelToken:n,timeout:a,onDownloadProgress:o,onUploadProgress:l,responseType:c,headers:d,withCredentials:p="same-origin",fetchOptions:_}=BO(t);c=c?(c+"").toLowerCase():"text";let[b,T]=r||n||a?Iz([r,n],a):[],y,x;const A=()=>{!y&&setTimeout(()=>{b&&b.unsubscribe()}),y=!0};let C;try{if(l&&Oz&&s!=="get"&&s!=="head"&&(C=await Rz(d,i))!==0){let O=new Request(e,{method:"POST",body:i,duplex:"half"}),R;_e.isFormData(i)&&(R=O.headers.get("content-type"))&&d.setContentType(R),O.body&&(i=yC(O.body,vC,_C(C,mm(l)),null,Pb))}_e.isString(p)||(p=p?"cors":"omit"),x=new Request(e,{..._,signal:b,method:s.toUpperCase(),headers:d.normalize().toJSON(),body:i,duplex:"half",withCredentials:p});let S=await fetch(x);const E=Lb&&(c==="stream"||c==="response");if(Lb&&(o||E)){const O={};["status","statusText","headers"].forEach($=>{O[$]=S[$]});const R=_e.toFiniteNumber(S.headers.get("content-length"));
261S=new Response(yC(S.body,vC,o&&_C(R,mm(o,!0)),E&&A,Pb),O)}c=c||"text";let w=await gm[_e.findKey(gm,c)||"text"](S,t);return!E&&A(),T&&T(),await new Promise((O,R)=>{MO(O,R,{data:w,headers:Wi.from(S.headers),status:S.status,statusText:S.statusText,config:t,request:x})})}catch(S){throw A(),S&&S.name==="TypeError"&&/fetch/i.test(S.message)?Object.assign(new yt("Network Error",yt.ERR_NETWORK,t,x),{cause:S.cause||S}):yt.from(S,S&&S.code,t,x)}}),Ob={http:ZV,xhr:Dz,fetch:Mz};_e.forEach(Ob,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const bC=t=>`- ${t}`,Fz=t=>_e.isFunction(t)||t===null||t===!1,$O={getAdapter:t=>{t=_e.isArray(t)?t:[t];const{length:e}=t;let s,i;const r={};for(let n=0;n<e;n++){s=t[n];let a;if(i=s,!Fz(s)&&(i=Ob[(a=String(s)).toLowerCase()],i===void 0))throw new yt(`Unknown adapter '${a}'`);if(i)break;r[a||"#"+n]=i}if(!i){const n=Object.entries(r).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?n.length>1?`since :
262`+n.map(bC).join(`
263`):" "+bC(n[0]):"as no adapter specified";throw new yt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i},adapters:Ob};function L_(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Cc(null,t)}function TC(t){return L_(t),t.headers=Wi.from(t.headers),t.data=P_.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),$O.getAdapter(t.adapter||xf.adapter)(t).then(function(i){return L_(t),i.data=P_.call(t,t.transformResponse,i),i.headers=Wi.from(i.headers),i},function(i){return RO(i)||(L_(t),i&&i.response&&(i.response.data=P_.call(t,t.transformResponse,i.response),i.response.headers=Wi.from(i.response.headers))),Promise.reject(i)})}const jO="1.7.2",sS={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{sS[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const SC={};sS.transitional=function(e,s,i){function r(n,a){return"[Axios v"+jO+"] Transitional option '"+n+"'"+a+(i?". "+i:"")}return(n,a,o)=>{if(e===!1)throw new yt(r(a," has been removed"+(s?" in "+s:"")),yt.ERR_DEPRECATED);return s&&!SC[a]&&(SC[a]=!0,console.warn(r(a," has been deprecated since v"+s+" and will be removed in the near future"))),e?e(n,a,o):!0}};function Bz(t,e,s){if(typeof t!="object")throw new yt("options must be an object",yt.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const n=i[r],a=e[n];if(a){const o=t[n],l=o===void 0||a(o,n,t);if(l!==!0)throw new yt("option "+n+" must be "+l,yt.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new yt("Unknown option "+n,yt.ERR_BAD_OPTION)}}const Nb={assertOptions:Bz,validators:sS},so=Nb.validators;let Tl=class{constructor(e){this.defaults=e,this.interceptors={request:new pC,response:new pC}}async request(e,s){try{return await this._request(e,s)}catch(i){if(i instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const n=r.stack?r.stack.replace(/^.+\n/,""):"";try{i.stack?n&&!String(i.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(i.stack+=`
264`+n):i.stack=n}catch{}}throw i}}_request(e,s){typeof e=="string"?(s=s||{},s.url=e):s=e||{},s=Dl(this.defaults,s);const{transitional:i,paramsSerializer:r,headers:n}=s;i!==void 0&&Nb.assertOptions(i,{silentJSONParsing:so.transitional(so.boolean),forcedJSONParsing:so.transitional(so.boolean),clarifyTimeoutError:so.transitional(so.boolean)},!1),r!=null&&(_e.isFunction(r)?s.paramsSerializer={serialize:r}:Nb.assertOptions(r,{encode:so.function,serialize:so.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let a=n&&_e.merge(n.common,n[s.method]);n&&_e.forEach(["delete","get","head","post","put","patch","common"],T=>{delete n[T]}),s.headers=Wi.concat(a,n);const o=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(s)===!1||(l=l&&y.synchronous,o.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let d,p=0,_;if(!l){const T=[TC.bind(this),void 0];
vendor: 1,955 bytes, line 264
264for(T.unshift.apply(T,o),T.push.apply(T,c),_=T.length,d=Promise.resolve(s);p<_;)d=d.then(T[p++],T[p++]);return d}_=o.length;let b=s;for(p=0;p<_;){const T=o[p++],y=o[p++];try{b=T(b)}catch(x){y.call(this,x);break}}try{d=TC.call(this,b)}catch(T){return Promise.reject(T)}for(p=0,_=c.length;p<_;)d=d.then(c[p++],c[p++]);return d}getUri(e){e=Dl(this.defaults,e);const s=FO(e.baseURL,e.url);return LO(s,e.params,e.paramsSerializer)}};_e.forEach(["delete","get","head","options"],function(e){Tl.prototype[e]=function(s,i){return this.request(Dl(i||{},{method:e,url:s,data:(i||{}).data}))}});_e.forEach(["post","put","patch"],function(e){function s(i){return function(n,a,o){return this.request(Dl(o||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}Tl.prototype[e]=s(),Tl.prototype[e+"Form"]=s(!0)});let Uz=class HO{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(n){s=n});const i=this;this.promise.then(r=>{if(!i._listeners)return;let n=i._listeners.length;for(;n-- >0;)i._listeners[n](r);i._listeners=null}),this.promise.then=r=>{let n;const a=new Promise(o=>{i.subscribe(o),n=o}).then(r);return a.cancel=function(){i.unsubscribe(n)},a},e(function(n,a,o){i.reason||(i.reason=new Cc(n,a,o),s(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const s=this._listeners.indexOf(e);s!==-1&&this._listeners.splice(s,1)}static source(){let e;return{token:new HO(function(r){e=r}),cancel:e}}};function $z(t){return function(s){return t.apply(null,s)}}function jz(t){return _e.isObject(t)&&t.isAxiosError===!0}const Rb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
264alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Rb).forEach(([t,e])=>{Rb[e]=t});function qO(t){const e=new Tl(t),s=bO(Tl.prototype.request,e);return _e.extend(s,Tl.prototype,e,{allOwnKeys:!0}),_e.extend(s,e,null,{allOwnKeys:!0}),s.create=function(r){return qO(Dl(t,r))},s}const Ts=qO(xf);Ts.Axios=Tl;Ts.CanceledError=Cc;Ts.CancelToken=Uz;Ts.isCancel=RO;Ts.VERSION=jO;Ts.toFormData=Bg;Ts.AxiosError=yt;Ts.Cancel=Ts.CanceledError;Ts.all=function(e){return Promise.all(e)};Ts.spread=$z;Ts.isAxiosError=jz;Ts.mergeConfig=Dl;Ts.AxiosHeaders=Wi;Ts.formToJSON=t=>NO(_e.isHTMLForm(t)?new FormData(t):t);Ts.getAdapter=$O.getAdapter;Ts.HttpStatusCode=Rb;Ts.default=Ts;const{Axios:wie,AxiosError:Aie,CanceledError:kie,isCancel:Die,CancelToken:Iie,VERSION:Pie,all:Lie,Cancel:Oie,isAxiosError:Nie,spread:Rie,toFormData:Mie,AxiosHeaders:Fie,HttpStatusCode:Bie,formToJSON:Uie,getAdapter:$ie,mergeConfig:jie}=Ts,Hz="https://kingfisher.api.firecrest.systems",qz="qIsfA7lTLO9H2jHvNzC2Z72AlI6q6RB370867iM5",Vz="accessmedia.nz",yo=Ts.create({baseURL:Hz,headers:{"Content-Type":"application/json","x-api-key":qz,PrimaryDomain:Vz}}),zz=t=>{const s=new DOMParser().parseFromString(t,"text/xml"),i=r=>{if(r.nodeType===Node.TEXT_NODE)return r.textContent.trim();const n={};if(r.attributes)for(const o of r.attributes)n[o.name]=o.value;const a=Array.from(r.childNodes).filter(o=>o.nodeType===Node.ELEMENT_NODE||o.nodeType===Node.TEXT_NODE&&o.textContent.trim());if(a.length===1&&a[0].nodeType===Node.TEXT_NODE)return a[0].textContent.trim();if(a.length===0)return n.ID!==void 0?n:"";for(const o of a){if(o.nodeType!==Node.ELEMENT_NODE)continue;const l=i(o);n[o.nodeName]!==void 0?(Array.isArray(n[o.nodeName])||(n[o.nodeName]=[n[o.nodeName]]),n[o.nodeName].push(l)):n[o.nodeName]=l}return n};return i(s.documentElement)};yo.interceptors.response.use(t=>((t.headers["content-type"]||"").includes("xml")&&typeof t.data=="string"&&(t.data=zz(t.data)),t));const ei=(t,e)=>`${t}_${e}`,Th=(t,e,s=void 0)=>{s=s??3e5;const i=new Date().getTime()+s;sessionStorage.setItem(t,JSON.stringify({data:e,expiry:i}))},bp=t=>{window.cacheMixin&&window.cacheMixin[t]&&(console.log(`Used SSR cache for "${t}"`),Th(t,window.cacheMixin[t]),delete window.cacheMixin[t]);const e=sessionStorage.getItem(t);if(!e)return null;const{data:s,expiry:i}=JSON.parse(e);return i<new Date().getTime()?(sessionStorage.removeItem(t),null):s},Os=async(t,e,s=i=>i)=>{const i=bp(t);if(i)return i;try{console.log(e);const r=await yo.get(e),n=s(r.data);return Th(t,n),n}catch{console.error(`Error fetching data from ${e}`)}},Gz=async(t=1,e=10)=>{try{return console.log("fetchBatchLatestEpisodes Hit!"),(await yo.get("/station/programmes/latest-episodes",{params:{page:t,pageSize:e}})).data}catch(s){throw console.error("Error fetching batch latest episodes",s),s}},Wz=async(t=1,e=10)=>{try{return console.log("fetchBatchFeaturedProgrammes Hit!"),(await yo.get("/station/programmes/featured",{params:{page:t,pageSize:e}})).data}catch(s){throw console.error("Error fetching batch featured programmes",s),s}},VO=R5("data",{state:()=>({stations:[],programmes:[],episodes:[],relatedProgrammes:[],homeLatestEpisodes:[],episodesPageLatestEpisodes:[],groupedLatestEpisodes:[],homeFeaturedProgrammes:[],programmePageFeaturedProgrammes:[],groupedFeaturedProgrammes:[],languages:[],itunesCategories:[],stationLanguages:[],stationCategories:[],stationProgrammesTags:[],stationProgrammesLanguage:[],stationProgrammesCategory:[],stationEpisodesSlug:[],programmesByCategoryAndLanguage:[],episodesByCategoryAndLanguage:[],selectedSlug:null,selectedStation:null,selectedProgramme:null,selectedEpisode:null,currentEpisode:null,footerCurrentEpisode:null,autoplay:!1,footerAutoplay:!1,footerSourceType:null,programmeImages:{},isPlaying:!1,showMainPlayer:!1,showFooterPlayer:!1,isSingleEpisodeResult:!1}),actions:{async fetchEpisodeById(t){const e=await Os(ei("episode",t),`/episode/${t}`);this.selectedEpisode=e?.Episode??e},async fetchProgrammeById(t){const e=ei("programme",t);
264try{const s=await Os(e,`/programme/${t}`,r=>{if(!r||Object.keys(r).length===0)throw new Error(`Programme with ID ${t} not found.`);return r}),i=s?.Programme??s;this.selectedProgramme=i}catch(s){console.error(`Error fetching programme with ID ${t}:`,s.message),this.selectedProgramme=null}},async fetchProgrammeEpisodes(t){const e=ei("programme_episodes",t);try{const s=await Os(e,`/programme/${t}/episodes`,r=>{if(!r||r.length===0)throw new Error(`No episodes found for programme with ID ${t}.`);return r});let i;s?.Episode?i=Array.isArray(s.Episode)?s.Episode:[s.Episode]:Array.isArray(s)?i=s:s&&typeof s=="object"&&s.ID?i=[s]:i=[],this.episodes=i}catch(s){console.error(`Error fetching episodes for programme with ID ${t}:`,s.message),this.episodes=[]}},async fetchProgrammeRelated(t){const e=ei("programme_related",t);try{const s=await Os(e,`/programme/${t}/related`,i=>{if(!i||i.length===0)throw new Error(`No related programmes found for programme with ID ${t}.`);return i});this.relatedProgrammes=s,console.log("Related Programmes",this.relatedProgrammes)}catch(s){console.error(`Error fetching related programmes for programme with ID ${t}:`,s.message),this.relatedProgrammes=[]}},async fetchAllStations(){this.stations=await Os("stations","/station")},async fetchStationById(t){const e=ei("station",t);try{const s=await Os(e,`station/${t}`,r=>{if(!r||r.length===0)throw new Error(`No Station found for ID ${t}.`);return r}),i=s?.Station??s;this.selectedStation=i}catch(s){console.error(`Error fetching related programmes for programme with ID ${t}:`,s.message),this.selectedStation=null}},async fetchStationProgrammes(t){const e=ei("station_programmes",t);try{const s=await Os(e,`/station/${t}/programmes`,i=>{if(!i||i.length===0)throw new Error(`No Station programmes found for ID ${t}.`);return i});this.programmes=s}catch(s){console.error(`Error fetching related programmes for programme with ID ${t}:`,s.message),this.programmes=[]}},async fetchStationLatestProgrammes(t){this.latestEpisodes=await Os(ei("station_latestProgrammes",t),`/station/${t}/programmes/latest`)},async fetchStationFeaturedProgrammes(t){this.featuredProgrammes=await Os(ei("station_featuredProgrammes",t),`/station/${t}/programmes/featured`)},async fetchStationLanguages(){const t=await Os("languages","/station/languages");Array.isArray(t)&&(this.languages=t)},async fetchItunesCategories(){const t=await Os("categories","/programme/all-programmes/categories");Array.isArray(t)&&(this.itunesCategories=t.map(e=>({...e,Name:e.Value.replace(/&amp;/g,"&")})))},async fetchStationIdLanguages(t){this.stationLanguages=await Os(ei("station_languages",t),`/station/${t}/languages`)},async fetchStationIdCategories(t){this.stationCategories=await Os(ei("station_categories",t),`/station/${t}/categories`)},async fetchStationProgrammesTags(t,e){this.stationProgrammesTags=await Os(ei(`station_tags_${t}`,e),`/station/${t}/programmes/tags/${e}`)},async fetchStationIdProgrammesLanguage(t,e){this.stationProgrammesLanguage=await Os(ei(`station_language_${t}`,e),`/station/${t}/programmes/language/${e}`)},async fetchStationIdProgrammesCategory(t,e){this.stationProgrammesCategory=await Os(ei(`station_category_${t}`,e),`/station/${t}/programmes/category/${e}`)},async fetchStationIdBySlug(t,e){this.selectedSlug=await Os(ei(`station_slug_${t}`,e),`/station/${t}/slug/${e}`)},async fetchStationIdByEpisodesSlug(t,e){this.stationEpisodesSlug=await Os(ei(`station_episodes_slug_${t}`,e),`/station/${t}/slug/${e}/episodes`)},async fetchAllStationLatestEpisodes(t=1,e=10){const s="all_latest_episodes";let i=bp(s);if(i&&i[`${t}_${e}`]){const r=i[`${t}_${e}`];this.homeLatestEpisodes=r.homeLatestEpisodes,this.episodesPageLatestEpisodes=r.episodesPageLatestEpisodes,this.groupedLatestEpisodes=r.groupedLatestEpisodes;return}try{const r=await Gz(t,e),n=[];for(const c in r){const d=r[c].Station,p=r[c].Programmes,_=[];for(const b in p){const T=p[b].Programme,y=p[b].Episodes.map(x=>({...x,station:d.DisplayName,folder:d.Folder,id:d.ID,programmeImage:`https://images.accessmedia.nz/StationFolder/${d.Folder}/Images/${T.Image}`.replace(/ /g,"%20")}));_.push({programme:T,episodes:y})}n.push({stationId:d.ID,station:d.DisplayName,programmes:_,folder:d.Folder})}const a=n.flatMap(c=>c.programmes.flatMap(d=>
264d.episodes));a.sort((c,d)=>new Date(d.PublishDate)-new Date(c.PublishDate));const l=n.flatMap(c=>c.programmes.flatMap(d=>d.episodes)).sort((c,d)=>new Date(d.PublishDate)-new Date(c.PublishDate));this.homeLatestEpisodes=a,this.episodesPageLatestEpisodes=l.slice(0,12),this.groupedLatestEpisodes=n,i=i||{},i[`${t}_${e}`]={homeLatestEpisodes:this.homeLatestEpisodes,episodesPageLatestEpisodes:this.episodesPageLatestEpisodes,groupedLatestEpisodes:this.groupedLatestEpisodes},Th(s,i)}catch(r){console.error("Error fetching all latest episodes",r)}},async fetchAllStationFeaturedProgrammes(t=1,e=10){const s="all_featured_programmes";let i=bp(s);if(i&&i[`${t}_${e}`]){const r=i[`${t}_${e}`];this.homeFeaturedProgrammes=r.homeFeaturedProgrammes,this.programmePageFeaturedProgrammes=r.programmePageFeaturedProgrammes,this.groupedFeaturedProgrammes=r.groupedFeaturedProgrammes;return}try{const r=await Wz(t,e),n=[];for(const l in r){const c=r[l].Station,d=r[l].Programmes.map(p=>({...p,station:c.DisplayName,folder:c.Folder}));n.push({stationId:c.ID,station:c.DisplayName,programmes:d.slice(0,6),folder:c.Folder})}const a=n.flatMap(l=>l.programmes);a.sort((l,c)=>new Date(c.LastEditedOn)-new Date(l.LastEditedOn));const o=n.flatMap(l=>l.programmes);o.sort((l,c)=>new Date(c.LastEditedOn)-new Date(l.LastEditedOn)),this.homeFeaturedProgrammes=a,this.programmePageFeaturedProgrammes=o,this.groupedFeaturedProgrammes=n,i=i||{},i[`${t}_${e}`]={homeFeaturedProgrammes:this.homeFeaturedProgrammes,programmePageFeaturedProgrammes:this.programmePageFeaturedProgrammes,groupedFeaturedProgrammes:this.groupedFeaturedProgrammes},Th(s,i)}catch(r){console.error("Error fetching all featured programmes",r)}},async searchProgrammesAndEpisodes(t,e=null,s=null,i){const r={searchType:"ProgrammesEpisodes",searchTerm:t,itunesCategory:e,language:s};return i&&(r.station=i),(await yo.get("/search",{params:r})).data},async fetchProgrammesByCategoryAndLanguage(t,e,s=1,i=10){const r=encodeURIComponent(t),n=encodeURIComponent(e);console.log("Encoded Category:",r),console.log("Encoded Language:",n);const a=ei(`category_${r}_language_${n}`,`${s}_${i}`);let o=bp(a);if(o){this.programmesByCategoryAndLanguage=o.programmes,this.episodesByCategoryAndLanguage=o.episodes;return}try{console.log("fetchProgrammesByCategoryAndLanguage Hit!");const c=(await yo.get(`/programme/all-programmes/${r}/${n}`,{params:{page:s,pageSize:i}})).data,d=Object.values(c).flatMap(_=>_.Programmes.map(b=>({...b.Programme,StationName:_.Station.DisplayName,StationFolder:_.Station.Folder,Episodes:b.Episodes}))),p=d.flatMap(_=>_.Episodes.map(b=>({...b,ProgrammeTitle:_.Title,StationName:_.StationName,StationFolder:_.StationFolder,ProgrammeImage:_.Image}))).sort((_,b)=>new Date(b.LastEditedOn)-new Date(_.LastEditedOn));this.programmesByCategoryAndLanguage=d,this.episodesByCategoryAndLanguage=p,Th(a,{programmes:d,episodes:p})}catch(l){console.error("Error fetching programmes by category and language",l)}},async fetchProgrammesByLanguage(t,e=1,s=10){try{return console.log("fetchProgrammesByLanguage Hit!"),(await yo.get(`/programme/all-programmes/${t}`,{params:{page:e,pageSize:s}})).data}catch(i){throw console.error("Error fetching programmes by language",i),i}},async fetchProgrammesByCategory(t,e=1,s=10){try{return console.log("fetchProgrammesByCategory Hit!"),(await yo.get(`/programme/all-programmes/${t}`,{params:{page:e,pageSize:s}})).data}catch(i){throw console.error("Error fetching programmes by category",i),i}},setCurrentEpisode(t,e=!1){try{this.currentEpisode=t,this.autoplay=e,this.showMainPlayer=!0}catch(s){throw console.error("Cannot set current episode",s),s}},setFooterCurrentEpisode(t,e=!1){try{if(this.footerCurrentEpisode=t,this.footerAutoplay=e,t.url.includes(".mp4"))return this.footerSourceType="audio/mp3";this.footerSourceType=t.type,this.showFooterPlayer=!0,this.showMainPlayer=!1}catch(s){throw console.error("Cannot set current episode",s),s}}}}),Xz={class:"footerContainer z-index-3 fixed-bottom w-100"},Kz={class:"row contain p-0"},Yz={class:"col-md-4 pb-1"},Qz={key:0,class:"text-white text-sm epOverflow"},Jz=Cs({__name:"FooterPlayer",setup(t){const e=VO(),s=Je(null),i=mt(()=>({audioOnlyMode:!0,controls:!0,autoplay:e.footerAutoplay,sources:[{src:e.footerCurrentEpisode?e.footerCurrentEpisode.url:"",type:e.footerSourceType}],playbackRates:[.5,1,1.5,2],controlBar:{skipButtons:{forward:10,backward:10}},disablePictureInPicture:!0})),r=async()=>{await an(),s.value&&s.value.dispose(),document.getElementById("audioPlayerParent").innerHTML=`<video
265id="audioPlayer"
266class="vue-fc-footer-player video-js vjs-default-skin"
267controls
268preload="auto"
269width="100%"
270height="50"
271></video>`;const n=document.getElementById("audioPlayer");if(console.log(n),!n){console.error("Audio element not found");return}s.value=fe(n,i.value,()=>{s.value.log("audioplayer is ready")}),e.footerAutoplay&&s.value.play()};return mr(()=>{$s(()=>e.footerCurrentEpisode,async n=>{n&&n.url?(await r(),console.log("New Footer Episode URL:",n.url)):console.log("New Footer Episode is undefined or URL is missing")},{immediate:!0})}),Wa(()=>{s.value&&s.value.dispose()}),(n,a)=>{const o=Gn("RouterLink");return Ce(),ke("div",Xz,[ie("div",Kz,[a[2]||(a[2]=ie("div",{id:"audioPlayerParent",class:"col-md-8"},[ie("video",{id:"audioPlayer",class:"vue-fc-footer-player video-js vjs-default-skin",controls:"",preload:"auto",width:"100%",height:"50"})],-1)),ie("div",Yz,[gt(e).footerCurrentEpisode?.Title?(Ce(),ke("span",Qz," Playing: "+Be(gt(e).footerCurrentEpisode?.Title||"Nothing to play"),1)):vt("",!0),gt(e).footerCurrentEpisode?.Programme?(Ce(),on(o,{key:1,class:"text-white text-sm",to:gt(e).footerCurrentEpisode?.url?{name:"programme-page",params:{PID:gt(e).footerCurrentEpisode.Programme}}:"#"},{default:ot(()=>a[0]||(a[0]=[ie("i",{class:"fa-solid fa-list"},null,-1),ys(" More episodes ")])),_:1},8,["to"])):(Ce(),on(o,{key:2,class:"text-white text-sm",to:gt(e).footerCurrentEpisode?.url?{name:"station",query:{SID:gt(e).footerCurrentEpisode.StationId}}:"#"},{default:ot(()=>a[1]||(a[1]=[ie("i",{class:"fa-solid fa-list"},null,-1),ys(" Station Info ")])),_:1},8,["to"]))])])])}}}),Zz=hI(Jz,[["__scopeId","data-v-864888fc"]]),eG=Cs({__name:"App",setup(t){const e=VO();return(s,i)=>(Ce(),ke(_t,null,[ze(gt($D)),s.$route.meta.hideFooter?vt("",!0):(Ce(),on(lU,{key:0,class:"mt-4"})),!s.$route.meta.hideFooterPlayer&&gt(e).showFooterPlayer?(Ce(),on(Zz,{key:1})):vt("",!0)],64))}}),iS=M6({history:h6("/"),scrollBehavior(t,e,s){return s||(t.path===e.path&&t.hash===e.hash?!1:t.hash?{el:t.hash}:{top:0})},routes:[{path:"/",name:"/",redirect:"/home"},{path:"/home",name:"home",component:()=>_i(()=>import("./Home.DwMa7ZmX.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))},{path:"/about",name:"about",component:()=>_i(()=>import("./About.iTih-cHa.js"),__vite__mapDeps([10,11,1,2,8])),meta:{title:"About accessmedia.nz"}},{path:"/accessibility",name:"accessibility",component:()=>_i(()=>import("./Accessibility.DeM7f2Z1.js"),__vite__mapDeps([12,11,1,2,13,14,15,8])),meta:{title:"accessmedia.nz Accessibility"}},{path:"/contact",name:"contact",component:()=>_i(()=>import("./Contact.CrMCs0Gk.js"),__vite__mapDeps([16,1,2,11,13,14,15,8])),meta:{title:"Contact accessmedia.nz"}},{path:"/privacy",name:"privacy",component:()=>_i(()=>import("./Privacy.C4-H2wKl.js"),__vite__mapDeps([17,11,1,2,8])),meta:{title:"Privacy Policy"}},{path:"/terms",name:"terms",component:()=>_i(()=>import("./Terms.FKaHuAJz.js"),__vite__mapDeps([18,11,1,2,8])),meta:{title:"Terms and Conditions"}},{path:"/error",name:"error",component:Error,meta:{title:"Sorry there was a problem"}},{path:"/search",name:"search",component:()=>_i(()=>import("./Search.Csrs6ZVR.js"),__vite__mapDeps([19,5,1,2,20,21,11,3,4,6,7,8,22])),meta:{title:"Search accessmedia.nz Podcasts and Programmes"}},{path:"/programmes",name:"programmes",component:()=>_i(()=>import("./Programmes.BuPt-yVg.js"),__vite__mapDeps([23,5,1,2,11,3,4,8])),meta:{title:"accessmedia.nz Podcasts and Programmes"}},{path:"/programme-page/:PID",name:"programme-page",component:()=>_i(()=>import("./ProgrammePage.CaMwSxoD.js"),__vite__mapDeps([24,5,11,1,2,25,6,26,3,4,14,7,27,28,8,29])),meta:{title:"accessmedia.nz Programme Page"}},{path:"/player",name:"player",component:()=>_i(()=>import("./Player.CS17LyIT.js"),__vite__mapDeps([30,25,6,26,3,4,7,27,28,5,8,31])),props:t=>({id:t.params.EID||t.params.PID}),meta:{title:"Player",hideFooter:!0,hideFooterPlayer:!0}},{path:"/episodes",name:"episodes",component:()=>_i(()=>import("./Episodes.B1neblEW.js"),__vite__mapDeps([32,5,6,1,2,11,3,4,7,8])),meta:{title:"accessmedia.nz Podcasts Episodes"}},{path:"/episode/:EID",name:"episode",component:()=>_i(()=>import("./Episode.C-R1zhDM.js"),__vite__mapDeps([33,11,3,4,27,28,1,2,25,6,26,8,34])),meta:{title:"accessmedia.nz Episode"}},{path:"/station",name:"station",component:()=>_i(()=>import("./Station.BMHCnnfZ.js"),__vite__mapDeps([35,5,1,2,11,3,4,6,27,28,20,21,7,8])),meta:{title:"accessmedia.nz Stations"}},{path:"/notfound",name:"Page not found",component:()=>_i(()=>import("./Error.DHk7uhep.js"),__vite__mapDeps([36,1,2,8,37])),meta:{title:"Page not found!"}}]});iS.beforeEach(async t=>{if(document.title=t.meta?.title??"accessmedia.nz | Stream Online Podcasts Free",!t.name)return{name:"Page not found"}});function tG(t,e){Object.keys(e).forEach(function(s){t.setAttribute(s,e[s])})}if(document.querySelectorAll(".input-group").length!=0){var sG=document.querySelectorAll("input.form-control");sG.forEach(t=>tG(t,{onfocus:"focused(this)",onfocusout:"defocused(this)"}))}window.onload=function(){for(var t=document.querySelectorAll(".btn"),e=0;e<t.length;e++)t[e].addEventListener("click",function(s){var i=s.target,r=i.querySelector(".ripple");r=document.createElement("span"),r.classList.add("ripple"),r.style.width=r.style.height=Math.max(i.offsetWidth,i.offsetHeight)+"px",i.appendChild(r),r.style.left=s.offsetX-r.offsetWidth/2+"px",r.style.top=s.offsetY-r.offsetHeight/2+"px",r.classList.add("ripple"),setTimeout(function(){r.parentElement.removeChild(r)},600)},!1)};let iG="";const rG={install(){},getCompiledCss(){return iG}};var Yh={},zO={},ec={},Cf={},nG=Yi&&Yi.__awaiter||function(t,e,s,i){function r(n){return n instanceof s?n:new s(function(a){a(n)})}
271return new(s||(s=Promise))(function(n,a){function o(d){try{c(i.next(d))}catch(p){a(p)}}function l(d){try{c(i.throw(d))}catch(p){a(p)}}function c(d){d.done?n(d.value):r(d.value).then(o,l)}c((i=i.apply(t,e||[])).next())})},aG=Yi&&Yi.__generator||function(t,e){var s={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,r,n,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(d){return l([c,d])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(s=0)),s;)try{if(i=1,r&&(n=c[0]&2?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[c[0]&2,n.value]),c[0]){case 0:case 1:n=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(n=s.trys,!(n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){s=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){s.label=c[1];break}if(c[0]===6&&s.label<n[1]){s.label=n[1],n=c;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(c);break}n[2]&&s.ops.pop(),s.trys.pop();continue}c=e.call(t,s)}catch(d){c=[6,d],r=0}finally{i=n=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(Cf,"__esModule",{value:!0});Cf.ReCaptchaInstance=void 0;var oG=function(){function t(e,s,i){this.siteKey=e,this.recaptchaID=s,this.recaptcha=i,this.styleContainer=null}return t.prototype.execute=function(e){return nG(this,void 0,void 0,function(){var s;return aG(this,function(i){switch(i.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:e})]:[3,2];case 1:return s=i.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:e})];case 3:s=i.sent(),i.label=4;case 4:return[2,s]}})})},t.prototype.getSiteKey=function(){return this.siteKey},t.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},t.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},t}();Cf.ReCaptchaInstance=oG;var Mb=Yi&&Yi.__assign||function(){return Mb=Object.assign||function(t){for(var e,s=1,i=arguments.length;s<i;s++){e=arguments[s];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Mb.apply(this,arguments)};Object.defineProperty(ec,"__esModule",{value:!0});ec.getInstance=ec.load=void 0;var lG=Cf,mo;(function(t){t[t.NOT_LOADED=0]="NOT_LOADED",t[t.LOADING=1]="LOADING",t[t.LOADED=2]="LOADED"})(mo||(mo={}));var GO=function(){function t(){}return t.load=function(e,s){if(s===void 0&&(s={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(t.getLoadingState()===mo.LOADED)return t.instance.getSiteKey()===e?Promise.resolve(t.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(t.getLoadingState()===mo.LOADING)return e!==t.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(r,n){t.successfulLoadingConsumers.push(function(a){return r(a)}),t.errorLoadingRunnable.push(function(a){return n(a)})});t.instanceSiteKey=e,t.setLoadingState(mo.LOADING);var i=new t;return new Promise(function(r,n){i.loadScript(e,s.useRecaptchaNet||!1,s.useEnterprise||!1,s.renderParameters?s.renderParameters:{},s.customUrl).then(function(){t.setLoadingState(mo.LOADED);var a=i.doExplicitRender(grecaptcha,e,s.explicitRenderParameters?s.explicitRenderParameters:{},s.useEnterprise||!1),o=new lG.ReCaptchaInstance(e,a,grecaptcha);t.successfulLoadingConsumers.forEach(function(l){return l(o)}),t.successfulLoadingConsumers=[],s.autoHideBadge&&o.hideBadge(),t.instance=o,r(o)}).catch(function(a){t.errorLoadingRunnable.forEach(function(o){return o(a)}),t.errorLoadingRunnable=[],n(a)})})},t.getInstance=function(){return t.instance},t.setLoadingState=function(e){t.loadingState=e},t.getLoadingState=function(){return t.loadingState===null?mo.NOT_LOADED:t.loadingState},t.prototype.loadScript=function(e,s,i,r,n){var a=this;s===void 0&&(s=!1),i===void 0&&(i=!1),r===void 0&&(r={}),n===void 0&&(n="");var o=document.createElement("script");o.setAttribute("recaptcha-v3-script",""),o.setAttribute("async",""),o.setAttribute("defer","");var l="https://www.google.com/recaptcha/api.js";s?i?l="https://recaptcha.net/recaptcha/enterprise.js":l="https://recaptcha.net/recaptcha/api.js":i&&(l="https://www.google.com/recaptcha/enterprise.js"),n&&(l=n),r.render&&(r.render=void 0);var c=this.buildQueryString(r);return o.src=l+"?render=explicit"+c,new Promise(function(d,p){o.addEventListener("load",a.waitForScriptToLoad(function(){d(o)},i),!1),o.onerror=function(_){t.setLoadingState(mo.NOT_LOADED),p(_)},document.head.appendChild(o)})},t.prototype.buildQueryString=function(e){var s=Object.keys(e);return s.length<1?"":"&"+Object.keys(e).filter(function(i){return!!e[i]}).map(function(i){return i+"="+e[i]}).join("&")},t.prototype.waitForScriptToLoad=function(e,s){var i=this;return function(){window.grecaptcha===void 0?setTimeout(function(){i.waitForScriptToLoad(e,s
271)},t.SCRIPT_LOAD_DELAY):s?window.grecaptcha.enterprise.ready(function(){e()}):window.grecaptcha.ready(function(){e()})}},t.prototype.doExplicitRender=function(e,s,i,r){var n=Mb({sitekey:s},i);return i.container?r?e.enterprise.render(i.container,n):e.render(i.container,n):r?e.enterprise.render(n):e.render(n)},t.loadingState=null,t.instance=null,t.instanceSiteKey=null,t.successfulLoadingConsumers=[],t.errorLoadingRunnable=[],t.SCRIPT_LOAD_DELAY=25,t}();ec.load=GO.load;ec.getInstance=GO.getInstance;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ReCaptchaInstance=t.getInstance=t.load=void 0;var e=ec;Object.defineProperty(t,"load",{enumerable:!0,get:function(){return e.load}}),Object.defineProperty(t,"getInstance",{enumerable:!0,get:function(){return e.getInstance}});var s=Cf;Object.defineProperty(t,"ReCaptchaInstance",{enumerable:!0,get:function(){return s.ReCaptchaInstance}})})(zO);const uG=_T(k5);var WO=Yi&&Yi.__awaiter||function(t,e,s,i){function r(n){return n instanceof s?n:new s(function(a){a(n)})}return new(s||(s=Promise))(function(n,a){function o(d){try{c(i.next(d))}catch(p){a(p)}}function l(d){try{c(i.throw(d))}catch(p){a(p)}}function c(d){d.done?n(d.value):r(d.value).then(o,l)}c((i=i.apply(t,e||[])).next())})},XO=Yi&&Yi.__generator||function(t,e){var s={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,r,n,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(c){return function(d){return l([c,d])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,r&&(n=c[0]&2?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[c[0]&2,n.value]),c[0]){case 0:case 1:n=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,r=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(n=s.trys,!(n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){s=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){s.label=c[1];break}if(c[0]===6&&s.label<n[1]){s.label=n[1],n=c;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(c);break}n[2]&&s.ops.pop(),s.trys.pop();continue}c=e.call(t,s)}catch(d){c=[6,d],r=0}finally{i=n=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(Yh,"__esModule",{value:!0});Yh.useReCaptcha=YO=Yh.VueReCaptcha=void 0;var cG=zO,Fb=uG,KO=Symbol("VueReCaptchaInjectKey"),Eu={loadedWaiters:[],error:null},YO=Yh.VueReCaptcha={install:function(t,e){var s=Fb.ref(!1),i=Fb.ref(void 0);t.config.globalProperties.$recaptchaLoaded=EC(s),hG(e).then(function(r){s.value=!0,i.value=r,t.config.globalProperties.$recaptcha=xC(i),t.config.globalProperties.$recaptchaInstance=i,Eu.loadedWaiters.forEach(function(n){return n.resolve(!0)})}).catch(function(r){Eu.error=r,Eu.loadedWaiters.forEach(function(n){return n.reject(r)})}),t.provide(KO,{instance:i,isLoaded:s,executeRecaptcha:xC(i),recaptchaLoaded:EC(s)})}};function dG(){return Fb.inject(KO)}Yh.useReCaptcha=dG;function hG(t){return WO(this,void 0,void 0,function(){return XO(this,function(e){switch(e.label){case 0:return[4,cG.load(t.siteKey,t.loaderOptions)];case 1:return[2,e.sent()]}})})}function EC(t){return function(){return new Promise(function(e,s){if(Eu.error!==null)return s(Eu.error);if(t.value)return e(!0);Eu.loadedWaiters.push({resolve:e,reject:s})})}}function xC(t){var e=this;return function(s){return WO(e,void 0,void 0,function(){var i;return XO(this,function(r){switch(r.label){case 0:return[4,(i=t.value)===null||i===void 0?void 0:i.execute(s)];case 1:return[2,r.sent()]}})})}}function Bb(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}function CC(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),s.push.apply(s,i)}return s}function Ub(t){for(var e=1;e<arguments.length;e++){var s=arguments[e]!=null?arguments[e]:{};
271e%2?CC(Object(s),!0).forEach(function(i){Bb(t,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):CC(Object(s)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))})}return t}var fG=function(e){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(i,r){if(!(typeof document>"u")){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");if(a.async=!0,a.src=e,a.defer=s.defer,s.preconnectOrigin){var o=document.createElement("link");o.href=s.preconnectOrigin,o.rel="preconnect",n.appendChild(o)}n.appendChild(a),a.onload=i,a.onerror=r}})},pG=function t(e){for(var s=arguments.length,i=new Array(s>1?s-1:0),r=1;r<s;r++)i[r-1]=arguments[r];if(!i.length)return e;var n=i.shift();if(!(!fl(e)||!fl(n))){for(var a in n)fl(n[a])?(e[a]||Object.assign(e,Bb({},a,{})),t(e[a],n[a])):Object.assign(e,Bb({},a,n[a]));return t.apply(void 0,[e].concat(i))}},$g=function(){return!(typeof window>"u"||typeof document>"u")},wC=function(e){},mG=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return wC('Missing "appName" property inside the plugin options.',e.app_name==null),wC('Missing "name" property in the route.',e.screen_name==null),e};function gG(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=t.split("/"),i=e.split("/");return s[0]===""&&e[e.length-1]==="/"&&s.shift(),i.join("/")+s.join("/")}var yG=function(){return{bootstrap:!0,onReady:null,onError:null,onBeforeTrack:null,onAfterTrack:null,pageTrackerTemplate:null,customResourceURL:"https://www.googletagmanager.com/gtag/js",customPreconnectOrigin:"https://www.googletagmanager.com",deferScriptLoad:!1,pageTrackerExcludedRoutes:[],pageTrackerEnabled:!0,enabled:!0,disableScriptLoad:!1,pageTrackerScreenviewEnabled:!1,appName:null,pageTrackerUseFullPath:!1,pageTrackerPrependBase:!0,pageTrackerSkipSamePath:!0,globalDataLayerName:"dataLayer",globalObjectName:"gtag",defaultGroupName:"default",includes:null,config:{id:null,params:{send_page_view:!1}}}},QO={},_G=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=yG();QO=pG(s,e)},gr=function(){return QO},Il=function(){var t,e=gr(),s=e.globalObjectName;!$g()||typeof window[s]>"u"||(t=window)[s].apply(t,arguments)},rS=function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];var i=gr(),r=i.config,n=i.includes;Il.apply(void 0,["config",r.id].concat(e)),Array.isArray(n)&&n.forEach(function(a){Il.apply(void 0,["config",a.id].concat(e))})},AC=function(e,s){$g()&&(window["ga-disable-".concat(e)]=s)},JO=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=gr(),s=e.config,i=e.includes;AC(s.id,t),Array.isArray(i)&&i.forEach(function(r){return AC(r.id,t)})},ZO=function(){JO(!0)},vG=function(){JO(!1)},e4,bG=function(e){e4=e},nS=function(){return e4},Fl=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=gr(),i=s.includes,r=s.defaultGroupName;e.send_to==null&&Array.isArray(i)&&i.length&&(e.send_to=i.map(function(n){return n.id}).concat(r)),Il("event",t,e)},t4=function(t){if($g()){var e;if(typeof t=="string")e={page_path:t};else if(t.path||t.fullPath){var s=gr(),i=s.pageTrackerUseFullPath,r=s.pageTrackerPrependBase,n=nS(),a=n&&n.options.base,o=i?t.fullPath:t.path;e=Ub(Ub({},t.name&&{page_title:t.name}),{},{page_path:r?gG(o,a):o})}else e=t;e.page_location==null&&(e.page_location=window.location.href),e.send_page_view==null&&(e.send_page_view=!0),Fl("page_view",e)}},s4=function(t){var e=gr(),s=e.appName;if(t){var i;typeof t=="string"?i={screen_name:t}:i=t,i.app_name=i.app_name||s,Fl("screen_view",i)}},TG=function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];Fl.apply(void 0,["exception"].concat(e))},SG=function(t){rS("linker",t)},EG=function(t){Fl("timing_complete",t)},xG=function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];Il.apply(void 0,["set"].concat(e))},CG=function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];Fl.apply(void 0,["refund"].concat(e))},wG=function(t){Fl("purchase",t)},AG=function(t){rS({custom_map:t})},kG=Object.freeze({__proto__:null,query:Il,config:rS,optOut:ZO,optIn:vG,pageview:t4,screenview:s4,exception:TG,linker:SG,time:EG,set:xG,refund:CG,purchase:wG,customMap:AG,event:Fl}),DG=function(e){e.config.globalProperties.$gtag=kG},IG=function(){if($g()){var t=gr(),e=t.enabled,s=t.globalObjectName,i=t.globalDataLayerName;return window[s]==null&&(window[i]=window[i]||[],window[s]=function(){window[i].push(arguments)}),window[s]("js",new Date),e||ZO(),window[s]}},kC=function(e){return Ub({send_page_view:!1},e)},i4=function(){var t=gr(),e=t.config,s=t.includes;
271Il("config",e.id,kC(e.params)),Array.isArray(s)&&s.forEach(function(i){Il("config",i.id,kC(i.params))})},DC=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=gr(),i=s.appName,r=s.pageTrackerTemplate,n=s.pageTrackerScreenviewEnabled,a=s.pageTrackerSkipSamePath;if(!(a&&t.path===e.path)){var o=t;if(st(r)?o=r(t,e):n&&(o=mG({app_name:i,screen_name:t.name})),n){s4(o);return}t4(o)}},IC=function(e){var s=gr(),i=s.pageTrackerExcludedRoutes;return i.includes(e.path)||i.includes(e.name)},PG=function(){var t=gr(),e=t.onBeforeTrack,s=t.onAfterTrack,i=nS();i.isReady().then(function(){an().then(function(){var r=i.currentRoute;i4(),!IC(r.value)&&DC(r.value)}),i.afterEach(function(r,n){an().then(function(){IC(r)||(st(e)&&e(r,n),DC(r,n),st(s)&&s(r,n))})})})},LG=function(){var t=gr(),e=t.onReady,s=t.onError,i=t.globalObjectName,r=t.globalDataLayerName,n=t.config,a=t.customResourceURL,o=t.customPreconnectOrigin,l=t.deferScriptLoad,c=t.pageTrackerEnabled,d=t.disableScriptLoad,p=!!(c&&nS());if(IG(),p?PG():i4(),!d)return fG("".concat(a,"?id=").concat(n.id,"&l=").concat(r),{preconnectOrigin:o,defer:l}).then(function(){e&&e(window[i])}).catch(function(_){return s&&s(_),_})},OG=function(e){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;DG(e),_G(s),bG(i),gr().bootstrap&&LG()};const NG=async t=>{const e=await fetch(`https://static.krp.co.nz/assets/translation/${t}.json`);if(!e.ok)throw new Error(`Failed to load translations for ${t}`);return e.json()},RG=async()=>{const t=["en-nz","mi","tl-ph"],e={};for(const s of t)try{e[s]=await NG(s)}catch(i){console.error(i)}return DB({legacy:!1,locale:"en-nz",fallbackLocale:"en-nz",messages:e,globalInjection:!0})},MG=await RG(),r4=6048e5,FG=864e5,PC=Symbol.for("constructDateFrom");function Va(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&PC in t?t[PC](e):t instanceof Date?new t.constructor(e):new Date(e)}function Rr(t,e){return Va(e||t,t)}function n4(t,e,s){const i=Rr(t,void 0);return isNaN(e)?Va(t,NaN):(e&&i.setDate(i.getDate()+e),i)}let BG={};function jg(){return BG}function tc(t,e){var s,i,r,n;const a=jg(),o=e?.weekStartsOn??((i=(s=e?.locale)==null?void 0:s.options)==null?void 0:i.weekStartsOn)??a.weekStartsOn??((n=(r=a.locale)==null?void 0:r.options)==null?void 0:n.weekStartsOn)??0,l=Rr(t,e?.in),c=l.getDay(),d=(c<o?7:0)+c-o;return l.setDate(l.getDate()-d),l.setHours(0,0,0,0),l}function ym(t,e){return tc(t,{...e,weekStartsOn:1})}function a4(t,e){const s=Rr(t,void 0),i=s.getFullYear(),r=Va(s,0);r.setFullYear(i+1,0,4),r.setHours(0,0,0,0);const n=ym(r),a=Va(s,0);a.setFullYear(i,0,4),a.setHours(0,0,0,0);const o=ym(a);return s.getTime()>=n.getTime()?i+1:s.getTime()>=o.getTime()?i:i-1}function LC(t){const e=Rr(t),s=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return s.setUTCFullYear(e.getFullYear()),+t-+s}function UG(t,...e){const s=Va.bind(null,e.find(i=>typeof i=="object"));return e.map(s)}function OC(t,e){const s=Rr(t,void 0);return s.setHours(0,0,0,0),s}function $G(t,e,s){const[i,r]=UG(void 0,t,e),n=OC(i),a=OC(r),o=+n-LC(n),l=+a-LC(a);return Math.round((o-l)/FG)}function jG(t,e){const s=a4(t),i=Va(t,0);return i.setFullYear(s,0,4),i.setHours(0,0,0,0),ym(i)}function o4(t,e,s){return n4(t,e*7)}function HG(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function qG(t){return!(!HG(t)&&typeof t!="number"||isNaN(+Rr(t)))}function VG(t,e){const s=Rr(t,void 0);return s.setFullYear(s.getFullYear(),0,1),s.setHours(0,0,0,0),s}const zG={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},GG=(t,e,s)=>{let i;const r=zG[t];
vendor: 12,711 bytes, line 271
271return typeof r=="string"?i=r:e===1?i=r.one:i=r.other.replace("{{count}}",e.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+i:i+" ago":i};function O_(t){return(e={})=>{const s=e.width?String(e.width):t.defaultWidth;return t.formats[s]||t.formats[t.defaultWidth]}}const WG={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},XG={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},KG={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},YG={date:O_({formats:WG,defaultWidth:"full"}),time:O_({formats:XG,defaultWidth:"full"}),dateTime:O_({formats:KG,defaultWidth:"full"})},QG={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},JG=(t,e,s,i)=>QG[t];function Ud(t){return(e,s)=>{const i=s!=null&&s.context?String(s.context):"standalone";let r;if(i==="formatting"&&t.formattingValues){const a=t.defaultFormattingWidth||t.defaultWidth,o=s!=null&&s.width?String(s.width):a;r=t.formattingValues[o]||t.formattingValues[a]}else{const a=t.defaultWidth,o=s!=null&&s.width?String(s.width):t.defaultWidth;r=t.values[o]||t.values[a]}const n=t.argumentCallback?t.argumentCallback(e):e;return r[n]}}const ZG={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},eW={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},tW={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},sW={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},iW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},rW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},nW=(t,e)=>{const s=Number(t),i=s%100;if(i>20||i<10)switch(i%10){case 1:return s+"st";case 2:return s+"nd";case 3:return s+"rd"}return s+"th"},aW={ordinalNumber:nW,era:Ud({values:ZG,defaultWidth:"wide"}),quarter:Ud({values:eW,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Ud({values:tW,defaultWidth:"wide"}),day:Ud({values:sW,defaultWidth:"wide"}),dayPeriod:Ud({values:iW,defaultWidth:"wide",formattingValues:rW,defaultFormattingWidth:"wide"})};function $d(t){return(e,s={})=>{const i=s.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],n=e.match(r);if(!n)return null;const a=n[0],o=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(o)?lW(o,p=>p.test(a)):oW(o,p=>p.test(a));let c;c=t.valueCallback?t.valueCallback(l):l,c=s.valueCallback?s.valueCallback(c):c;const d=e.slice(a.length);return{value:c,rest:d}}}function oW(t,e){for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&e(t[s]))return s}function lW(t,e){for(let s=0;s<t.length;s++)if(e(t[s]))return s}function uW(t){return(e,s={})=>{const i=e.match(t.matchPattern);if(!i)return null;const r=i[0],n=e.match(t.parsePattern);if(!n)return null;let a=t.valueCallback?t.valueCallback(n[0]):n[0];a=s.valueCallback?s.valueCallback(a):a;const o=e.slice(r.length);return{value:a,rest:o}}}const cW=/^(\d+)(th|st|nd|rd)?/i,dW=/\d+/i,hW={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},fW={any:[/^b/i,/^(a|c)/i]},pW={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},mW={any:[/1/i,/2/i,/3/i,/4/i]},gW={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},yW={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},_W={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},vW={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},bW={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},TW={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},SW={ordinalNumber:uW({matchPattern:cW,parsePattern:dW,valueCallback:t=>parseInt(t,10)}),era:$d({matchPatterns:hW,defaultMatchWidth:"wide",parsePatterns:fW,defaultParseWidth:"any"}),quarter:$d({matchPatterns:pW,defaultMatchWidth:"wide",parsePatterns:mW,defaultParseWidth:"any",valueCallback:t=>t+1}),month:$d({matchPatterns:gW,defaultMatchWidth:"wide",parsePatterns:yW,defaultParseWidth:"any"}),day:$d({matchPatterns:_W,defaultMatchWidth:"wide",parsePatterns:vW,defaultParseWidth:"any"}),dayPeriod:$d({matchPatterns:bW,defaultMatchWidth:"any",parsePatterns:TW,defaultParseWidth:"any"})},EW={code:"en-US",formatDistance:GG,formatLong:YG,formatRelative:JG,localize:aW,match:SW,options:{weekStartsOn:0,firstWeekContainsDate:1}};function xW(t,e){const s=Rr(t,void 0);return $G(s,VG(s))+1}function CW(t,e){const s=Rr(t,void 0),i=+ym(s)-+jG(s);return Math.round(i/r4)+1}function l4(t,e){var s,i,r,n;const a=Rr(t,e?.in),o=a.getFullYear(),l=jg(),c=e?.firstWeekContainsDate??((i=(s=e?.locale)==null?void 0:s.options)==null?void 0:i.firstWeekContainsDate)??l.firstWeekContainsDate??((n=(r=l.locale)==null?void 0:r.options)==null?void 0:n.firstWeekContainsDate)??1,d=Va(e?.in||t,0);d.setFullYear(o+1,0,c),d.setHours(0,0,0,0);const p=tc(d,e),_=Va(e?.in||t,0);_.setFullYear(o,0,c),_.setHours(0,0,0,0);const b=tc(_,e);return+a>=+p?o+1:+a>=+b?o:o-1}function wW(t,e){var s,i,r,n;const a=jg(),o=e?.firstWeekContainsDate??((i=(s=e?.locale)==null?void 0:s.options)==null?void 0:i.firstWeekContainsDate)??a.firstWeekContainsDate??((n=(r=a.locale)==null?void 0:r.options)==null?void 0:n.firstWeekContainsDate)??1,l=l4(t,e),c=Va(e?.in||t,0);return c.setFullYear(l,0,o),c.setHours(0,0,0,0),tc(c,e)}function AW(t,e){const s=Rr(t,e?.in),i=+tc(s,e)-+wW(s,e);return Math.round(i/r4)+1}function $t(t,e){const s=t<0?"-":"",i=Math.abs(t).toString().padStart(e,"0");return s+i}const io={y(t,e){const s=t.getFullYear(),i=s>0?s:1-s;return $t(e==="yy"?i%100:i,e.length)},M(t,e){const s=t.getMonth();return e==="M"?String(s+1):$t(s+1,2)},d(t,e){return $t(t.getDate(),e.length)},a(t,e){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return s.toUpperCase();case"aaa":return s;case"aaaaa":return s[0];case"aaaa":default:return s==="am"?"a.m.":"p.m."}},h(t,e){return $t(t.getHours()%12||12,e.length)},H(t,e){return $t(t.getHours(),e.length)},m(t,e){return $t(t.getMinutes(),e.length)},s(t,e){return $t(t.getSeconds(),e.length)},S(t,e){const s=e.length,i=t.getMilliseconds(),r=Math.trunc(i*Math.pow(10,s-3));return $t(r,e.length)}},Kl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},NC={G:function(t,e,s){const i=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return s.era(i,{width:"abbreviated"});case"GGGGG":return s.era(i,{width:"narrow"});case"GGGG":default:return s.era(i,{width:"wide"})}},y:function(t,e,s){if(e==="yo"){const i=t.getFullYear(),r=i>0?i:1-i;return s.ordinalNumber(r,{unit:"year"})}return io.y(t,e)},Y:function(t,e,s,i){const r=l4(t,i),n=r>0?r:1-r;if(e==="YY"){const a=n%100;return $t(a,2)}return e==="Yo"?s.ordinalNumber(n,{unit:"year"}):$t(n,e.length)},R:function(t,e){const s=a4(t);return $t(s,e.length)},u:function(t,e){const s=t.getFullYear();return $t(s,e.length)},Q:function(t,e,s){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(i);case"QQ":return $t(i,2);case"Qo":return s.ordinalNumber(i,{unit:"quarter"});case"QQQ":return s.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return s.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,e,s){const i=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(i);case"qq":return $t(i,2);case"qo":return s.ordinalNumber(i,{unit:"quarter"});case"qqq":return s.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return s.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,e,s){const i=t.getMonth();switch(e){case"M":case"MM":return io.M(t,e);case"Mo":return s.ordinalNumber(i+1,{unit:"month"});case"MMM":return s.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return s.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(i,{width:"wide",context:"formatting"})}},L:function(t,e,s){const i=t.getMonth();switch(e){case"L":return String(i+1);case"LL":return $t(i+1,2);case"Lo":return s.ordinalNumber(i+1,{unit:"month"});case"LLL":return s.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return s.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(i,{width:"wide",context:"standalone"})}},w:function(t,e,s,i){const r=AW(t,i);return e==="wo"?s.ordinalNumber(r,{unit:"week"}):$t(r,e.length)},I:function(t,e,s){const i=CW(t);return e==="Io"?s.ordinalNumber(i,{unit:"week"}):$t(i,e.length)},d:function(t,e,s){return e==="do"?s.ordinalNumber(t.getDate(),{unit:"date"}):io.d(t,e)},D:function(t,e,s){const i=xW(t);return e==="Do"?s.ordinalNumber(i,{unit:"dayOfYear"}):$t(i,e.length)},E:function(t,e,s){const i=t.getDay();switch(e){case"E":case"EE":case"EEE":return s.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return s.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(i,{width:"short",context:"formatting"});case"EEEE":default:return s.day(i,{width:"wide",context:"formatting"})}},e:function(t,e,s,i){const r=t.getDay(),n=(r-i.weekStartsOn+8)%7||7;switch(e){case"e":return String(n);case"ee":return $t(n,2);case"eo":return s.ordinalNumber(n,{unit:"day"});case"eee":return s.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return s.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(r,{width:"short",context:"formatting"});case"eeee":default:return s.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,s,i){const r=t.getDay(),n=(r-i.weekStartsOn+8)%7||7;switch(e){case"c":return String(n);case"cc":return $t(n,e.length);case"co":return s.ordinalNumber(n,{unit:"day"});case"ccc":return s.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return s.day(r,{width:"narrow",context:"standalone"});case"cccccc":return s.day(r,{width:"short",context:"standalone"});case"cccc":default:return s.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,s){const i=t.getDay(),r=i===0?7:i;switch(e){case"i":return String(r);case"ii":return $t(r,e.length);case"io":return s.ordinalNumber(r,{unit:"day"});case"iii":return s.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return s.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return s.day(i,{width:"short",context:"formatting"});case"iiii":default:return s.day(i,{width:"wide",context:"formatting"})}},a:function(t,e,s){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return s.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,s){const i=t.getHours();let r;switch(i===12?r=Kl.noon:i===0?r=Kl.midnight:r=i/12>
vendor: 4,381 bytes, line 271
271=1?"pm":"am",e){case"b":case"bb":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,s){const i=t.getHours();let r;switch(i>=17?r=Kl.evening:i>=12?r=Kl.afternoon:i>=4?r=Kl.morning:r=Kl.night,e){case"B":case"BB":case"BBB":return s.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return s.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,s){if(e==="ho"){let i=t.getHours()%12;return i===0&&(i=12),s.ordinalNumber(i,{unit:"hour"})}return io.h(t,e)},H:function(t,e,s){return e==="Ho"?s.ordinalNumber(t.getHours(),{unit:"hour"}):io.H(t,e)},K:function(t,e,s){const i=t.getHours()%12;return e==="Ko"?s.ordinalNumber(i,{unit:"hour"}):$t(i,e.length)},k:function(t,e,s){let i=t.getHours();return i===0&&(i=24),e==="ko"?s.ordinalNumber(i,{unit:"hour"}):$t(i,e.length)},m:function(t,e,s){return e==="mo"?s.ordinalNumber(t.getMinutes(),{unit:"minute"}):io.m(t,e)},s:function(t,e,s){return e==="so"?s.ordinalNumber(t.getSeconds(),{unit:"second"}):io.s(t,e)},S:function(t,e){return io.S(t,e)},X:function(t,e,s){const i=t.getTimezoneOffset();if(i===0)return"Z";switch(e){case"X":return MC(i);case"XXXX":case"XX":return nl(i);case"XXXXX":case"XXX":default:return nl(i,":")}},x:function(t,e,s){const i=t.getTimezoneOffset();switch(e){case"x":return MC(i);case"xxxx":case"xx":return nl(i);case"xxxxx":case"xxx":default:return nl(i,":")}},O:function(t,e,s){const i=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+RC(i,":");case"OOOO":default:return"GMT"+nl(i,":")}},z:function(t,e,s){const i=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+RC(i,":");case"zzzz":default:return"GMT"+nl(i,":")}},t:function(t,e,s){const i=Math.trunc(+t/1e3);return $t(i,e.length)},T:function(t,e,s){return $t(+t,e.length)}};function RC(t,e=""){const s=t>0?"-":"+",i=Math.abs(t),r=Math.trunc(i/60),n=i%60;return n===0?s+String(r):s+String(r)+e+$t(n,2)}function MC(t,e){return t%60===0?(t>0?"-":"+")+$t(Math.abs(t)/60,2):nl(t,e)}function nl(t,e=""){const s=t>0?"-":"+",i=Math.abs(t),r=$t(Math.trunc(i/60),2),n=$t(i%60,2);return s+r+e+n}const FC=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},u4=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},kW=(t,e)=>{const s=t.match(/(P+)(p+)?/)||[],i=s[1],r=s[2];if(!r)return FC(t,e);let n;switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;case"PPPP":default:n=e.dateTime({width:"full"});break}return n.replace("{{date}}",FC(i,e)).replace("{{time}}",u4(r,e))},DW={p:u4,P:kW},IW=/^D+$/,PW=/^Y+$/,LW=["D","DD","YY","YYYY"];function OW(t){return IW.test(t)}function NW(t){return PW.test(t)}function RW(t,e,s){const i=MW(t,e,s);if(console.warn(i),LW.includes(t))throw new RangeError(i)}function MW(t,e,s){const i=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${i} to the input \`${s}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const FW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,BW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,UW=/^'([^]*?)'?$/,$W=/''/g,jW=/[a-zA-Z]/;function $b(t,e,s){var i,r,n,a;const o=jg(),l=o.locale??EW,c=o.firstWeekContainsDate??((r=(i=o.locale)==null?void 0:i.options)==null?void 0:r.firstWeekContainsDate)??1,d=o.weekStartsOn??((a=(n=o.locale)==null?void 0:n.options)==null?void 0:a.weekStartsOn)??0,p=Rr(t,void 0);if(!qG(p))throw new RangeError("Invalid time value");let _=e.match(BW).map(T=>{const y=T[0];if(y==="p"||y==="P"){const x=DW[y];return x(T,l.formatLong)}return T}).join("").match(FW).map(T=>{if(T==="''")return{isToken:!1,value:"'"};const y=T[0];if(y==="'")return{isToken:!1,value:HW(T)};if(NC[y])return{isToken:!0,value:T};
271if(y.match(jW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:T}});l.localize.preprocessor&&(_=l.localize.preprocessor(p,_));const b={firstWeekContainsDate:c,weekStartsOn:d,locale:l};return _.map(T=>{if(!T.isToken)return T.value;const y=T.value;(NW(y)||OW(y))&&RW(y,e,String(t));const x=NC[y[0]];return x(p,y,l.localize,b)}).join("")}function HW(t){const e=t.match(UW);return e?e[1].replace($W,"'"):t}function qW(t,e,s){return o4(t,-1)}function Hg(){const t=Je(!0);return{currentNZDateTime:mt(()=>new Date().toLocaleString("en-US",{timeZone:"Pacific/Auckland"})),formatDate:(e,s="dd/M/yyyy h:mm a")=>$b(new Date(e),s),logDebug:e=>{t.value&&console.debug(`[DEBUG]: ${e}`)}}}function BC(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function aS(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(s=>{typeof t[s]>"u"?t[s]=e[s]:BC(e[s])&&BC(t[s])&&Object.keys(e[s]).length>0&&aS(t[s],e[s])})}const c4={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Xi(){const t=typeof document<"u"?document:{};return aS(t,c4),t}const VW={document:c4,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function Qs(){const t=typeof window<"u"?window:{};return aS(t,VW),t}function zW(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function GW(t){const e=t;Object.keys(e).forEach(s=>{try{e[s]=null}catch{}try{delete e[s]}catch{}})}function jb(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function _m(){return Date.now()}function WW(t){const e=Qs();let s;return e.getComputedStyle&&(s=e.getComputedStyle(t,null)),!s&&t.currentStyle&&(s=t.currentStyle),s||(s=t.style),s}function XW(t,e){e===void 0&&(e="x");const s=Qs();let i,r,n;const a=WW(t);return s.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(o=>o.replace(",",".")).join(", ")),n=new s.WebKitCSSMatrix(r==="none"?"":r)):(n=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=n.toString().split(",")),e==="x"&&(s.WebKitCSSMatrix?r=n.m41:i.length===16?r=parseFloat(i[12]):r=parseFloat(i[4])),e==="y"&&(s.WebKitCSSMatrix?r=n.m42:i.length===16?r=parseFloat(i[13]):r=parseFloat(i[5])),r||0}function Jf(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function KW(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function lr(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let s=1;s<arguments.length;s+=1){const i=s<0||arguments.length<=s?void 0:arguments[s];if(i!=null&&!KW(i)){const r=Object.keys(Object(i)).filter(n=>e.indexOf(n)<0);for(let n=0,a=r.length;n<a;n+=1){const o=r[n],l=Object.getOwnPropertyDescriptor(i,o);l!==void 0&&l.enumerable&&(Jf(t[o])&&Jf(i[o])?i[o].__swiper__?t[o]=i[o]:lr(t[o],i[o]):!Jf(t[o])&&Jf(i[o])?(t[o]={},i[o].__swiper__?t[o]=i[o]:lr(t[o],i[o])):t[o]=i[o])}}}return t}function Zf(t,e,s){t.style.setProperty(e,s)}function d4(t){let{swiper:e,targetPosition:s,side:i}=t;const r=Qs(),n=-e.translate;let a=null,o;const l=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const c=s>n?"next":"prev",d=(_,b)=>c==="next"&&_>=b||c==="prev"&&_<=b,p=()=>{o=new Date().getTime(),a===null&&(a=o);const _=Math.max(Math.min((o-a)/l,1),0),b=.5-Math.cos(_*Math.PI)/2;let T=n+b*(s-n);if(d(T,s)&&(T=s),e.wrapperEl.scrollTo({[i]:T}),d(T,s)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:T})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(p)};p()}function kn(t,e){e===void 0&&(e="");const s=Qs(),i=[...t.children];return s.HTMLSlotElement&&t instanceof HTMLSlotElement&&i.push(...t.assignedElements()),e?i.filter(r=>r.matches(e)):i}function YW(t,e){var s,i;const r=[e];for(;r.length>0;){const n=r.shift();if(t===n)return!0;r.push(...n.children,...((s=n.shadowRoot)==null?void 0:s.children)||[],...((i=n.assignedElements)==null?void 0:i.call(n))||[])}}function QW(t,e){const s=Qs();let i=e.contains(t);return!i&&s.HTMLSlotElement&&e instanceof HTMLSlotElement&&(i=[...e.assignedElements()].includes(t),i||(i=YW(t,e))),i}function vm(t){try{console.warn(t);return}catch{}}function Qh(t,e){e===void 0&&(e=[]);const s=document.createElement(t);return s.classList.add(...Array.isArray(e)?e:zW(e)),s}function JW(t){const e=Qs(),s=Xi(),i=t.getBoundingClientRect(),r=s.body,n=t.clientTop||r.clientTop||0,a=t.clientLeft||r.clientLeft||0,o=t===e?e.scrollY:t.scrollTop,l=t===e?e.scrollX:t.scrollLeft;return{top:i.top+o-n,left:i.left+l-a}}function ZW(t,e){const s=[];for(;t.previousElementSibling;){const i=t.previousElementSibling;e?i.matches(e)&&s.push(i):s.push(i),t=i}return s}function eX(t,e){const s=[];for(;t.nextElementSibling;){const i=t.nextElementSibling;e?i.matches(e)&&s.push(i):s.push(i),t=i}return s}function _o(t,e){return Qs().getComputedStyle(t,null).getPropertyValue(e)}function Hb(t){let e=t,s;if(e){for(s=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(s+=1);return s}}function qb(t,e){const s=[];let i=t.parentElement;for(;i;)e?i.matches(e)&&s.push(i):s.push(i),i=i.parentElement;return s}function UC(t,e,s){const i=Qs();return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}function zt(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let N_;function tX(){const t=Qs(),e=Xi();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function h4(){return N_||(N_=tX()),N_}let R_;function sX(t){let{userAgent:e}=t===void 0?{}:t;const s=h4(),i=Qs(),r=i.navigator.platform,n=e||i.navigator.userAgent,a={ios:!1,android:!1},o=i.screen.width,l=i.screen.height,c=n.match(/(Android);?[\s\/]+([\d.]+)?/);let d=n.match(/(iPad).*OS\s([\d_]+)/);const p=n.match(/(iPod)(.*OS\s([\d_]+))?/),_=!d&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),b=r==="Win32";let T=r==="MacIntel";const y=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!d&&T&&s.touch&&y.indexOf(`${o}x${l}`)>=0&&(d=n.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),T=!1),c&&!b&&(a.os="android",a.android=!0),(d||_||p)&&(a.os="ios",a.ios=!0),a}function f4(t){return t===void 0&&(t={}),R_||(R_=sX(t)),R_}let M_;function iX(){const t=Qs(),e=f4();let s=!1;function i(){const o=t.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(i()){const o=String(t.navigator.userAgent);if(o.includes("Version/")){const[l,c]=o.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));s=l<16||l===16&&c<2}}
271const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),n=i(),a=n||r&&e.ios;return{isSafari:s||n,needPerspectiveFix:s,need3dFix:a,isWebView:r}}function p4(){return M_||(M_=iX()),M_}function rX(t){let{swiper:e,on:s,emit:i}=t;const r=Qs();let n=null,a=null;const o=()=>{!e||e.destroyed||!e.initialized||(i("beforeResize"),i("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(n=new ResizeObserver(p=>{a=r.requestAnimationFrame(()=>{const{width:_,height:b}=e;let T=_,y=b;p.forEach(x=>{let{contentBoxSize:A,contentRect:C,target:S}=x;S&&S!==e.el||(T=C?C.width:(A[0]||A).inlineSize,y=C?C.height:(A[0]||A).blockSize)}),(T!==_||y!==b)&&o()})}),n.observe(e.el))},c=()=>{a&&r.cancelAnimationFrame(a),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},d=()=>{!e||e.destroyed||!e.initialized||i("orientationchange")};s("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){l();return}r.addEventListener("resize",o),r.addEventListener("orientationchange",d)}),s("destroy",()=>{c(),r.removeEventListener("resize",o),r.removeEventListener("orientationchange",d)})}function nX(t){let{swiper:e,extendParams:s,on:i,emit:r}=t;const n=[],a=Qs(),o=function(d,p){p===void 0&&(p={});const _=a.MutationObserver||a.WebkitMutationObserver,b=new _(T=>{if(e.__preventObserver__)return;if(T.length===1){r("observerUpdate",T[0]);return}const y=function(){r("observerUpdate",T[0])};a.requestAnimationFrame?a.requestAnimationFrame(y):a.setTimeout(y,0)});b.observe(d,{attributes:typeof p.attributes>"u"?!0:p.attributes,childList:e.isElement||(typeof p.childList>"u"?!0:p).childList,characterData:typeof p.characterData>"u"?!0:p.characterData}),n.push(b)},l=()=>{if(e.params.observer){if(e.params.observeParents){const d=qb(e.hostEl);for(let p=0;p<d.length;p+=1)o(d[p])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}},c=()=>{n.forEach(d=>{d.disconnect()}),n.splice(0,n.length)};s({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",l),i("destroy",c)}var aX={on(t,e,s){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;const r=s?"unshift":"push";return t.split(" ").forEach(n=>{i.eventsListeners[n]||(i.eventsListeners[n]=[]),i.eventsListeners[n][r](e)}),i},once(t,e,s){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;function r(){i.off(t,r),r.__emitterProxy&&delete r.__emitterProxy;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];e.apply(i,a)}return r.__emitterProxy=e,i.on(t,r,s)},onAny(t,e){const s=this;if(!s.eventsListeners||s.destroyed||typeof t!="function")return s;const i=e?"unshift":"push";return s.eventsAnyListeners.indexOf(t)<0&&s.eventsAnyListeners[i](t),s},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const s=e.eventsAnyListeners.indexOf(t);return s>=0&&e.eventsAnyListeners.splice(s,1),e},off(t,e){const s=this;return!s.eventsListeners||s.destroyed||!s.eventsListeners||t.split(" ").forEach(i=>{typeof e>"u"?s.eventsListeners[i]=[]:s.eventsListeners[i]&&s.eventsListeners[i].forEac
271h((r,n)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&s.eventsListeners[i].splice(n,1)})}),s},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,s,i;for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return typeof n[0]=="string"||Array.isArray(n[0])?(e=n[0],s=n.slice(1,n.length),i=t):(e=n[0].events,s=n[0].data,i=n[0].context||t),s.unshift(i),(Array.isArray(e)?e:e.split(" ")).forEach(o=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(l=>{l.apply(i,[o,...s])}),t.eventsListeners&&t.eventsListeners[o]&&t.eventsListeners[o].forEach(l=>{l.apply(i,s)})}),t}};function oX(){const t=this;let e,s;const i=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=i.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?s=t.params.height:s=i.clientHeight,!(e===0&&t.isHorizontal()||s===0&&t.isVertical())&&(e=e-parseInt(_o(i,"padding-left")||0,10)-parseInt(_o(i,"padding-right")||0,10),s=s-parseInt(_o(i,"padding-top")||0,10)-parseInt(_o(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(s)&&(s=0),Object.assign(t,{width:e,height:s,size:t.isHorizontal()?e:s}))}function lX(){const t=this;function e(P,j){return parseFloat(P.getPropertyValue(t.getDirectionLabel(j))||0)}const s=t.params,{wrapperEl:i,slidesEl:r,size:n,rtlTranslate:a,wrongRTL:o}=t,l=t.virtual&&s.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,d=kn(r,`.${t.params.slideClass}, swiper-slide`),p=l?t.virtual.slides.length:d.length;let _=[];const b=[],T=[];let y=s.slidesOffsetBefore;typeof y=="function"&&(y=s.slidesOffsetBefore.call(t));let x=s.slidesOffsetAfter;typeof x=="function"&&(x=s.slidesOffsetAfter.call(t));const A=t.snapGrid.length,C=t.slidesGrid.length;let S=s.spaceBetween,E=-y,w=0,O=0;if(typeof n>"u")return;typeof S=="string"&&S.indexOf("%")>=0?S=parseFloat(S.replace("%",""))/100*n:typeof S=="string"&&(S=parseFloat(S)),t.virtualSize=-S,d.forEach(P=>{a?P.style.marginLeft="":P.style.marginRight="",P.style.marginBottom="",P.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(Zf(i,"--swiper-centered-offset-before",""),Zf(i,"--swiper-centered-offset-after",""));const R=s.grid&&s.grid.rows>1&&t.grid;R?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let $;const k=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(P=>typeof s.breakpoints[P].slidesPerView<"u").length>0;for(let P=0;P<p;P+=1){$=0;let j;if(d[P]&&(j=d[P]),R&&t.grid.updateSlide(P,j,d),!(d[P]&&_o(j,"display")==="none")){if(s.slidesPerView==="auto"){k&&(d[P].style[t.getDirectionLabel("width")]="");const F=getComputedStyle(j),H=j.style.transform,te=j.style.webkitTransform;if(H&&(j.style.transform="none"),te&&(j.style.webkitTransform="none"),s.roun
vendor: 9,806 bytes, line 271
271dLengths)$=t.isHorizontal()?UC(j,"width"):UC(j,"height");else{const oe=e(F,"width"),se=e(F,"padding-left"),K=e(F,"padding-right"),X=e(F,"margin-left"),ne=e(F,"margin-right"),de=F.getPropertyValue("box-sizing");if(de&&de==="border-box")$=oe+X+ne;else{const{clientWidth:he,offsetWidth:Le}=j;$=oe+se+K+X+ne+(Le-he)}}H&&(j.style.transform=H),te&&(j.style.webkitTransform=te),s.roundLengths&&($=Math.floor($))}else $=(n-(s.slidesPerView-1)*S)/s.slidesPerView,s.roundLengths&&($=Math.floor($)),d[P]&&(d[P].style[t.getDirectionLabel("width")]=`${$}px`);d[P]&&(d[P].swiperSlideSize=$),T.push($),s.centeredSlides?(E=E+$/2+w/2+S,w===0&&P!==0&&(E=E-n/2-S),P===0&&(E=E-n/2-S),Math.abs(E)<1/1e3&&(E=0),s.roundLengths&&(E=Math.floor(E)),O%s.slidesPerGroup===0&&_.push(E),b.push(E)):(s.roundLengths&&(E=Math.floor(E)),(O-Math.min(t.params.slidesPerGroupSkip,O))%t.params.slidesPerGroup===0&&_.push(E),b.push(E),E=E+$+S),t.virtualSize+=$+S,w=$,O+=1}}if(t.virtualSize=Math.max(t.virtualSize,n)+x,a&&o&&(s.effect==="slide"||s.effect==="coverflow")&&(i.style.width=`${t.virtualSize+S}px`),s.setWrapperSize&&(i.style[t.getDirectionLabel("width")]=`${t.virtualSize+S}px`),R&&t.grid.updateWrapperSize($,_),!s.centeredSlides){const P=[];for(let j=0;j<_.length;j+=1){let F=_[j];s.roundLengths&&(F=Math.floor(F)),_[j]<=t.virtualSize-n&&P.push(F)}_=P,Math.floor(t.virtualSize-n)-Math.floor(_[_.length-1])>1&&_.push(t.virtualSize-n)}if(l&&s.loop){const P=T[0]+S;if(s.slidesPerGroup>1){const j=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/s.slidesPerGroup),F=P*s.slidesPerGroup;for(let H=0;H<j;H+=1)_.push(_[_.length-1]+F)}for(let j=0;j<t.virtual.slidesBefore+t.virtual.slidesAfter;j+=1)s.slidesPerGroup===1&&_.push(_[_.length-1]+P),b.push(b[b.length-1]+P),t.virtualSize+=P}if(_.length===0&&(_=[0]),S!==0){const P=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");d.filter((j,F)=>!s.cssMode||s.loop?!0:F!==d.length-1).forEach(j=>{j.style[P]=`${S}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let P=0;T.forEach(F=>{P+=F+(S||0)}),P-=S;const j=P>n?P-n:0;_=_.map(F=>F<=0?-y:F>j?j+x:F)}if(s.centerInsufficientSlides){let P=0;T.forEach(F=>{P+=F+(S||0)}),P-=S;const j=(s.slidesOffsetBefore||0)+(s.slidesOffsetAfter||0);if(P+j<n){const F=(n-P-j)/2;_.forEach((H,te)=>{_[te]=H-F}),b.forEach((H,te)=>{b[te]=H+F})}}if(Object.assign(t,{slides:d,snapGrid:_,slidesGrid:b,slidesSizesGrid:T}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){Zf(i,"--swiper-centered-offset-before",`${-_[0]}px`),Zf(i,"--swiper-centered-offset-after",`${t.size/2-T[T.length-1]/2}px`);const P=-t.snapGrid[0],j=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(F=>F+P),t.slidesGrid=t.slidesGrid.map(F=>F+j)}if(p!==c&&t.emit("slidesLengthChange"),_.length!==A&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),b.length!==C&&t.emit("slidesGridLengthChange"),s.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!l&&!s.cssMode&&(s.effect==="slide"||s.effect==="fade")){const P=`${s.containerModifierClass}backface-hidden`,j=t.el.classList.contains(P);p<=s.maxBackfaceHiddenSlides?j||t.el.classList.add(P):j&&t.el.classList.remove(P)}}function uX(t){const e=this,s=[],i=e.virtual&&e.params.virtual.enabled;let r=0,n;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=o=>i?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{s.push(o)});else for(n=0;n<Math.ceil(e.params.slidesPerView);n+=1){const o=e.activeIndex+n;if(o>e.slides.length&&!i)break;s.push(a(o))}else s.push(a(e.activeIndex));for(n=0;n<s.length;n+=1)if(typeof s[n]<"u"){const o=s[n].offsetHeight;r=o>r?o:r}(r||r===0)&&(e.wrapperEl.style.height=`${r}px`)}function cX(){const t=this,e=t.slides,s=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=(t.isHorizontal()?e[i].offsetLeft:e[i].offsetTop)-s-t.cssOverflowAdjustment()}const $C=(t,e,s)=>{e&&!t.classList.contains(s)?t.classList.add(s):!e&&t.classList.contains(s)&&t.classList.remove(s)};function dX(t){t===void 0&&(t=this&&this.translate||0);const e=this,s=e.params,{slides:i,rtlTranslate:r,snapGrid:n}=e;if(i.length===0)return;typeof i[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;r&&(a=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=s.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let l=0;l<i.length;l+=1){const c=i[l];let d=c.swiperSlideOffset;s.cssMode&&s.centeredSlides&&(d-=i[0].swiperSlideOffset);const p=(a+(s.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+o),_=(a-n[0]+(s.centeredSlides?e.minTranslate():0)-d)/(c.swiperSlideSize+o),b=-(a-d),T=b+e.slidesSizesGrid[l],y=b>=0&&b<=e.size-e.slidesSizesGrid[l],x=b>=0&&b<e.size-1||T>1&&T<=e.size||b<=0&&T>=e.size;x&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(l)),$C(c,x,s.slideVisibleClass),$C(c,y,s.slideFullyVisibleClass),c.progress=r?-p:p,c.originalProgress=r?-_:_}}function hX(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const s=e.params,i=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:n,isEnd:a,progressLoop:o}=e;const l=n,c=a;if(i===0)r=0,n=!0,a=!0;else{r=(t-e.minTranslate())/i;const d=Math.abs(t-e.minTranslate())<1,p=Math.abs(t-e.maxTranslate())<1;n=d||r<=0,a=p||r>=1,d&&(r=0),p&&(r=1)}if(s.loop){const d=e.getSlideIndexByData(0),p=e.getSlideIndexByData(e.slides.length-1),_=e.slidesGrid[d],b=e.slidesGrid[p],T=e.slidesGrid[e.slidesGrid.length-1],y=Math.abs(t);y>=_?o=(y-_)/T:o=(y+T-b)/T,o>1&&(o-=1)}Object.assign(e,{progress:r,progressLoop:o,isBeginning:n,isEnd:a}),(s.watchSlidesProgress||s.centeredSlides&&s.autoHeight)&&e.updateSlidesProgress(t),n&&!l&&e.emit("reachBeginning toEdge"),a&&!c&&e.emit("reachEnd toEdge"),(l&&!n||c&&!a)&&e.emit("fromEdge"),e.emit("progress",r)}const F_=(t,e,s)=>{e&&!t.classList.contains(s)?t.classList.add(s):!e&&t.classList.contains(s)&&t.classList.remove(s)};function fX(){const t=this,{slides:e,params:s,slidesEl:i,activeIndex:r}=t,n=t.virtual&&s.virtual.enabled,a=t.grid&&s.grid&&s.grid.rows>1,o=p=>kn(i,`.${s.slideClass}${p}, swiper-slide${p}`)[0];let l,c,d;if(n)if(s.loop){let p=r-t.virtual.slidesBefore;p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),l=o(`[data-swiper-slide-index="${p}"]`)}else l=o(`[data-swiper-slide-index="${r}"]`);else a?(l=e.find(p=>p.column===r),d=e.find(p=>p.column===r+1),c=e.find(p=>p.column===r-1)):l=e[r];l&&(a||(d=eX(l,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!d&&(d=e[0]),c=ZW(l,`.${s.slideClass}, swiper-slide`)[0],s.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(p=>{F_(p,p===l,s.slideActiveClass),F_(p,p===d,s.slideNextClass),F_(p,p===c,s.slidePrevClass)}),t.emitSlidesClasses()}const Tp=(t,e)=>{if(!t||t.destroyed||!t.params)return;const s=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,i=e.closest(s());if(i){let r=i.querySelector(`.${t.params.lazyPreloaderClass}`);!r&&t.isElement&&(i.shadowRoot?r=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(r=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},B_=(t,e)=>{if(!t.slides[e])return;const s=t.slides[e].querySelector('[loading="lazy"]');s&&s.removeAttribute("loading")},Vb=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const s=t.slides.length;if(!s||!e||e<0)return;e=Math.min(e,s);const i=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),r=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=r,o=[a-e];o.push(...Array.from({length:e}).map((l,c)=>a+i+c)),t.slides.forEach((l,c)=>{o.includes(l.column)&&B_(t,c)});return}const n=r+i-1;if(t.params.rewind||t.params.loop)for(let a=r-e;a<=n+e;a+=1){const o=(a%s+s)%s;(o<r||o>n)&&B_(t,o)}else for(let a=Math.max(r-e,0);a<=Math.min(n+e,s-1);a+=1)a!==r&&(a>n||a<r)&&B_(t,a)};function pX(t){const{slidesGrid:e,params:s}=t,i=t.rtlTranslate?t.translate:-t.translate;let r;for(let n=0;n<e.length;n+=1)typeof e[n+1]<"u"?i>=e[n]&&i<e[n+1]-(e[n+1]-e[n])/2?r=n:i>=e[n]&&i<e[n+1]&&(r=n+1):i>=e[n]&&(r=n);return s.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function mX(t){const e=this,s=e.rtlTranslate?e.translate:-e.translate,{snapGrid:i,params:r,activeIndex:n,realIndex:a,snapIndex:o}=e;let l=t,c;const d=b=>{let T=b-e.virtual.slidesBefore;return T<0&&(T=e.virtual.slides.length+T),T>=e.virtual.slides.length&&(T-=e.virtual.slides.length),T};if(typeof l>"u"&&(l=pX(e)),i.indexOf(s)>=0)c=i.indexOf(s);else{const b=Math.min(r.slidesPerGroupSkip,l);c=b+Math.floor((l-b)/r.slidesPerGroup)}if(c>=i.length&&(c=i.length-1),l===n&&!e.params.loop){c!==o&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(l===n&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(l);return}const p=e.grid&&r.grid&&r.grid.rows>1;let _;if(e.virtual&&r.virtual.enabled&&r.loop)_=d(l);else if(p){const b=e.slides.find(y=>y.column===l);let T=parseInt(b.getAttribute("data-swiper-slide-index"),10);Number.isNaN(T)&&(T=Math.max(e.slides.indexOf(b),0)),_=Math.floor(T/r.grid.rows)}else if(e.slides[l]){const b=e.slides[l].getAttribute("data-swiper-slide-index");b?_=parseInt(b,10):_=l}else _=l;Object.assign(e,{previousSnapIndex:o,snapIndex:c,previousRealIndex:a,realIndex:_,previousIndex:n,activeIndex:l}),e.initialized&&Vb(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==_&&e.emit("realIndexChange"),e.emit("slideChange"))}function gX(t,e){const s=this,i=s.params;let r=t.closest(`.${i.slideClass}, swiper-slide`);!r&&s.isElement&&e&&e.length>
vendor: 8,436 bytes, line 271
2711&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(o=>{!r&&o.matches&&o.matches(`.${i.slideClass}, swiper-slide`)&&(r=o)});let n=!1,a;if(r){for(let o=0;o<s.slides.length;o+=1)if(s.slides[o]===r){n=!0,a=o;break}}if(r&&n)s.clickedSlide=r,s.virtual&&s.params.virtual.enabled?s.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):s.clickedIndex=a;else{s.clickedSlide=void 0,s.clickedIndex=void 0;return}i.slideToClickedSlide&&s.clickedIndex!==void 0&&s.clickedIndex!==s.activeIndex&&s.slideToClickedSlide()}var yX={updateSize:oX,updateSlides:lX,updateAutoHeight:uX,updateSlidesOffset:cX,updateSlidesProgress:dX,updateProgress:hX,updateSlidesClasses:fX,updateActiveIndex:mX,updateClickedSlide:gX};function _X(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:s,rtlTranslate:i,translate:r,wrapperEl:n}=e;if(s.virtualTranslate)return i?-r:r;if(s.cssMode)return r;let a=XW(n,t);return a+=e.cssOverflowAdjustment(),i&&(a=-a),a||0}function vX(t,e){const s=this,{rtlTranslate:i,params:r,wrapperEl:n,progress:a}=s;let o=0,l=0;const c=0;s.isHorizontal()?o=i?-t:t:l=t,r.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?o:l,r.cssMode?n[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-o:-l:r.virtualTranslate||(s.isHorizontal()?o-=s.cssOverflowAdjustment():l-=s.cssOverflowAdjustment(),n.style.transform=`translate3d(${o}px, ${l}px, ${c}px)`);let d;const p=s.maxTranslate()-s.minTranslate();p===0?d=0:d=(t-s.minTranslate())/p,d!==a&&s.updateProgress(t),s.emit("setTranslate",s.translate,e)}function bX(){return-this.snapGrid[0]}function TX(){return-this.snapGrid[this.snapGrid.length-1]}function SX(t,e,s,i,r){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),s===void 0&&(s=!0),i===void 0&&(i=!0);const n=this,{params:a,wrapperEl:o}=n;if(n.animating&&a.preventInteractionOnTransition)return!1;const l=n.minTranslate(),c=n.maxTranslate();let d;if(i&&t>l?d=l:i&&t<c?d=c:d=t,n.updateProgress(d),a.cssMode){const p=n.isHorizontal();if(e===0)o[p?"scrollLeft":"scrollTop"]=-d;else{if(!n.support.smoothScroll)return d4({swiper:n,targetPosition:-d,side:p?"left":"top"}),!0;o.scrollTo({[p?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(n.setTransition(0),n.setTranslate(d),s&&(n.emit("beforeTransitionStart",e,r),n.emit("transitionEnd"))):(n.setTransition(e),n.setTranslate(d),s&&(n.emit("beforeTransitionStart",e,r),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(p){!n||n.destroyed||p.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,n.animating=!1,s&&n.emit("transitionEnd"))}),n.wrapperEl.addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd))),!0}var EX={getTranslate:_X,setTranslate:vX,minTranslate:bX,maxTranslate:TX,translateTo:SX};function xX(t,e){const s=this;s.params.cssMode||(s.wrapperEl.style.transitionDuration=`${t}ms`,s.wrapperEl.style.transitionDelay=t===0?"0ms":""),s.emit("setTransition",t,e)}function m4(t){let{swiper:e,runCallbacks:s,direction:i,step:r}=t;const{activeIndex:n,previousIndex:a}=e;let o=i;if(o||(n>a?o="next":n<a?o="prev":o="reset"),e.emit(`transition${r}`),s&&n!==a){if(o==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),o==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function CX(t,e){t===void 0&&(t=!0);const s=this,{params:i}=s;i.cssMode||(i.autoHeight&&s.updateAutoHeight(),m4({swiper:s,runCallbacks:t,direction:e,step:"Start"}))}function wX(t,e){t===void 0&&(t=!0);const s=this,{params:i}=s;s.animating=!1,!i.cssMode&&(s.setTransition(0),m4({swiper:s,runCallbacks:t,direction:e,step:"End"}))}var AX={setTransition:xX,transitionStart:CX,transitionEnd:wX};function kX(t,e,s,i,r){t===void 0&&(t=0),s===void 0&&(s=!0),typeof t=="string"&&(t=parseInt(t,10));const n=this;let a=t;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:p,rtlTranslate:_,wrapperEl:b,enabled:T}=n;if(!T&&!i&&!r||n.destroyed||n.animating&&o.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=n.params.speed);const y=Math.min(n.params.slidesPerGroupSkip,a);let x=y+Math.floor((a-y)/n.params.slidesPerGroup);x>=l.length&&(x=l.length-1);const A=-l[x];if(o.normalizeSlideIndex)for(let w=0;w<c.length;w+=1){const O=-Math.floor(A*100),R=Math.floor(c[w]*100),$=Math.floor(c[w+1]*100);typeof c[w+1]<"u"?O>=R&&O<$-($-R)/2?a=w:O>=R&&O<$&&(a=w+1):O>=R&&(a=w)}if(n.initialized&&a!==p&&(!n.allowSlideNext&&(_?A>n.translate&&A>n.minTranslate():A<n.translate&&A<n.minTranslate())||!n.allowSlidePrev&&A>n.translate&&A>n.maxTranslate()&&(p||0)!==a))return!1;a!==(d||0)&&s&&n.emit("beforeSlideChangeStart"),n.updateProgress(A);let C;a>p?C="next":a<p?C="prev":C="reset";const S=n.virtual&&n.params.virtual.enabled;if(!(S&&r)&&(_&&-A===n.translate||!_&&A===n.translate))return n.updateActiveIndex(a),o.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),o.effect!=="slide"&&n.setTranslate(A),C!=="reset"&&(n.transitionStart(s,C),n.transitionEnd(s,C)),!1;if(o.cssMode){const w=n.isHorizontal(),O=_?A:-A;if(e===0)S&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),S&&!n._cssModeVirtualInitialSet&&n.params.initialSlide>0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{b[w?"scrollLeft":"scrollTop"]=O})):b[w?"scrollLeft":"scrollTop"]=O,S&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1});else{if(!n.support.smoothScroll)return d4({swiper:n,targetPosition:O,side:w?"left":"top"}),!0;b.scrollTo({[w?"left":"top"]:O,behavior:"smooth"})}return!0}const E=p4().isSafari;return S&&!r&&E&&n.isElement&&n.virtual.update(!1,!1,a),n.setTransition(e),n.setTranslate(A),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",e,i),n.transitionStart(s,C),e===0?n.transitionEnd(s,C):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(w){!n||n.destroyed||w.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(s,C))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0}function DX(t,e,s,i){t===void 0&&(t=0),s===void 0&&(s=!0),typeof t=="string"&&(t=parseInt(t,10));const r=this;if(r.destroyed)return;typeof e>"u"&&(e=r.params.speed);const n=r.grid&&r.params.grid&&r.params.grid.rows>1;let a=t;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)a=a+r.virtual.slidesBefore;else{let o;if(n){const _=a*r.params.grid.rows;o=r.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===_).column}else o=r.getSlideIndexByData(a);const l=n?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:c}=r.params;let d=r.params.slidesPerView;d==="auto"?d=r.slidesPerViewDynamic():(d=Math.ceil(parseFloat(r.params.slidesPerView,10)),c&&d%2===0&&(d=d+1));let p=l-o<d;if(c&&(p=p||o<Math.ceil(d/2)),i&&c&&r.params.slidesPerView!=="auto"&&!n&&(p=!1),p){const _=c?o<r.activeIndex?"prev":"next":o-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:_,slideTo:!0,activeSlideIndex:_==="next"?o+1:o-l+1,slideRealIndex:_==="next"?r.realIndex:void 0})}if(n){const _=a*r.params.grid.rows;a=r.slides.find(b=>b.getAttribute("data-swiper-slide-index")*1===_).column}else a=r.getSlideIndexByData(a)}return requestAnimationFrame(()=>{r.slideTo(a,e,s,i)}),r}function IX(t,e,s){e===void 0&&(e=!0);const i=this,{enabled:r,params:n,animating:a}=i;if(!r||i.destroyed)return i;typeof t>"u"&&(t=i.params.speed);let o=n.slidesPerGroup;n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(o=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<n.slidesPerGroupSkip?1:o,c=i.virtual&&n.virtual.enabled;if(n.loop){if(a&&!c&&n.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&n.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,t,e,s)}),!0}return n.rewind&&i.isEnd?i.slideTo(0,t,e,s):i.slideTo(i.activeIndex+l,t,e,s)}function PX(t,e,s){e===void 0&&(e=!0);const i=this,{params:r,snapGrid:n,slidesGrid:a,rtlTranslate:o,enabled:l,animating:c}=i;
271if(!l||i.destroyed)return i;typeof t>"u"&&(t=i.params.speed);const d=i.virtual&&r.virtual.enabled;if(r.loop){if(c&&!d&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}const p=o?i.translate:-i.translate;function _(C){return C<0?-Math.floor(Math.abs(C)):Math.floor(C)}const b=_(p),T=n.map(C=>_(C)),y=r.freeMode&&r.freeMode.enabled;let x=n[T.indexOf(b)-1];if(typeof x>"u"&&(r.cssMode||y)){let C;n.forEach((S,E)=>{b>=S&&(C=E)}),typeof C<"u"&&(x=y?n[C]:n[C>0?C-1:C])}let A=0;if(typeof x<"u"&&(A=a.indexOf(x),A<0&&(A=i.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(A=A-i.slidesPerViewDynamic("previous",!0)+1,A=Math.max(A,0))),r.rewind&&i.isBeginning){const C=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(C,t,e,s)}else if(r.loop&&i.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{i.slideTo(A,t,e,s)}),!0;return i.slideTo(A,t,e,s)}function LX(t,e,s){e===void 0&&(e=!0);const i=this;if(!i.destroyed)return typeof t>"u"&&(t=i.params.speed),i.slideTo(i.activeIndex,t,e,s)}function OX(t,e,s,i){e===void 0&&(e=!0),i===void 0&&(i=.5);const r=this;if(r.destroyed)return;typeof t>"u"&&(t=r.params.speed);let n=r.activeIndex;const a=Math.min(r.params.slidesPerGroupSkip,n),o=a+Math.floor((n-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){const c=r.snapGrid[o],d=r.snapGrid[o+1];l-c>(d-c)*i&&(n+=r.params.slidesPerGroup)}else{const c=r.snapGrid[o-1],d=r.snapGrid[o];l-c<=(d-c)*i&&(n-=r.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,r.slidesGrid.length-1),r.slideTo(n,t,e,s)}function NX(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:s}=t,i=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let r=t.clickedIndex,n;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;n=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?r<t.loopedSlides-i/2||r>t.slides.length-t.loopedSlides+i/2?(t.loopFix(),r=t.getSlideIndex(kn(s,`${a}[data-swiper-slide-index="${n}"]`)[0]),jb(()=>{t.slideTo(r)})):t.slideTo(r):r>t.slides.length-i?(t.loopFix(),r=t.getSlideIndex(kn(s,`${a}[data-swiper-slide-index="${n}"]`)[0]),jb(()=>{t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}var RX={slideTo:kX,slideToLoop:DX,slideNext:IX,slidePrev:PX,slideReset:LX,slideToClosest:OX,slideToClickedSlide:NX};function MX(t){const e=this,{params:s,slidesEl:i}=e;if(!s.loop||e.virtual&&e.params.virtual.enabled)return;const r=()=>{kn(i,`.${s.slideClass}, swiper-slide`).forEach((d,p)=>{d.setAttribute("data-swiper-slide-index",p)})},n=e.grid&&s.grid&&s.grid.rows>1,a=s.slidesPerGroup*(n?s.grid.rows:1),o=e.slides.length%a!==0,l=n&&e.slides.length%s.grid.rows!==0,c=d=>{for(let p=0;p<d;p+=1){const _=e.isElement?Qh("swiper-slide",[s.slideBlankClass]):Qh("div",[s.slideClass,s.slideBlankClass]);e.slidesEl.append(_)}};if(o){if(s.loopAddBlankSlides){const d=a-e.slides.length%a;c(d),e.recalcSlides(),e.updateSlides()}else vm("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else if(l){if(s.loopAddBlankSlides){const d=s.grid.rows-e.slides.length%s.grid.rows;c(d),e.recalcSlides(),e.updateSlides()}else vm("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else r();e.loopFix({slideRealIndex:t,direction:s.centeredSlides?void 0:"next"})}function FX(t){let{slideRealIndex:e,slideTo:s=!0,direction:i,setTranslate:r,activeSlideIndex:n,byController:a,byMousewheel:o}=t===void 0?{}:t;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:p,slidesEl:_,params:b}=l,{centeredSlides:T}=b;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&b.virtual.enabled){s&&(!b.centeredSlides&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):b.centeredSlides&&l.snapIndex<b.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0)),l.allowSlidePrev=d,l.allowSlideNext=p,l.emit("loopFix");return}let y=b.slidesPerView;y==="auto"?y=l.slidesPerViewDynamic():(y=Math.ceil(parseFloat(b.slidesPerView,10)),T&&y%2===0&&(y=y+1));const x=b.slidesPerGroupAuto?y:b.slidesPerGroup;
271let A=x;A%x!==0&&(A+=x-A%x),A+=b.loopAdditionalSlides,l.loopedSlides=A;const C=l.grid&&b.grid&&b.grid.rows>1;c.length<y+A?vm("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):C&&b.grid.fill==="row"&&vm("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const S=[],E=[];let w=l.activeIndex;typeof n>"u"?n=l.getSlideIndex(c.find(F=>F.classList.contains(b.slideActiveClass))):w=n;const O=i==="next"||!i,R=i==="prev"||!i;let $=0,k=0;const P=C?Math.ceil(c.length/b.grid.rows):c.length,j=(C?c[n].column:n)+(T&&typeof r>"u"?-y/2+.5:0);if(j<A){$=Math.max(A-j,x);for(let F=0;F<A-j;F+=1){const H=F-Math.floor(F/P)*P;if(C){const te=P-H-1;for(let oe=c.length-1;oe>=0;oe-=1)c[oe].column===te&&S.push(oe)}else S.push(P-H-1)}}else if(j+y>P-A){k=Math.max(j-(P-A*2),x);for(let F=0;F<k;F+=1){const H=F-Math.floor(F/P)*P;C?c.forEach((te,oe)=>{te.column===H&&E.push(oe)}):E.push(H)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}
vendor: 23,291 bytes, line 271
271),R&&S.forEach(F=>{c[F].swiperLoopMoveDOM=!0,_.prepend(c[F]),c[F].swiperLoopMoveDOM=!1}),O&&E.forEach(F=>{c[F].swiperLoopMoveDOM=!0,_.append(c[F]),c[F].swiperLoopMoveDOM=!1}),l.recalcSlides(),b.slidesPerView==="auto"?l.updateSlides():C&&(S.length>0&&R||E.length>0&&O)&&l.slides.forEach((F,H)=>{l.grid.updateSlide(H,F,l.slides)}),b.watchSlidesProgress&&l.updateSlidesOffset(),s){if(S.length>0&&R){if(typeof e>"u"){const F=l.slidesGrid[w],H=l.slidesGrid[w+$]-F;o?l.setTranslate(l.translate-H):(l.slideTo(w+Math.ceil($),0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-H,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-H))}else if(r){const F=C?S.length/b.grid.rows:S.length;l.slideTo(l.activeIndex+F,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(E.length>0&&O)if(typeof e>"u"){const F=l.slidesGrid[w],H=l.slidesGrid[w-k]-F;o?l.setTranslate(l.translate-H):(l.slideTo(w-k,0,!1,!0),r&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-H,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-H))}else{const F=C?E.length/b.grid.rows:E.length;l.slideTo(l.activeIndex-F,0,!1,!0)}}if(l.allowSlidePrev=d,l.allowSlideNext=p,l.controller&&l.controller.control&&!a){const F={slideRealIndex:e,direction:i,setTranslate:r,activeSlideIndex:n,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(H=>{!H.destroyed&&H.params.loop&&H.loopFix({...F,slideTo:H.params.slidesPerView===b.slidesPerView?s:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...F,slideTo:l.controller.control.params.slidesPerView===b.slidesPerView?s:!1})}l.emit("loopFix")}function BX(){const t=this,{params:e,slidesEl:s}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const i=[];t.slides.forEach(r=>{const n=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;i[n]=r}),t.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),i.forEach(r=>{s.append(r)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var UX={loopCreate:MX,loopFix:FX,loopDestroy:BX};function $X(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const s=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),s.style.cursor="move",s.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function jX(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var HX={setGrabCursor:$X,unsetGrabCursor:jX};function qX(t,e){e===void 0&&(e=this);function s(i){if(!i||i===Xi()||i===Qs())return null;i.assignedSlot&&(i=i.assignedSlot);const r=i.closest(t);return!r&&!i.getRootNode?null:r||s(i.getRootNode().host)}return s(e)}function jC(t,e,s){const i=Qs(),{params:r}=t,n=r.edgeSwipeDetection,a=r.edgeSwipeThreshold;return n&&(s<=a||s>=i.innerWidth-a)?n==="prevent"?(e.preventDefault(),!0):!1:!0}function VX(t){const e=this,s=Xi();let i=t;i.originalEvent&&(i=i.originalEvent);const r=e.touchEventsData;if(i.type==="pointerdown"){if(r.pointerId!==null&&r.pointerId!==i.pointerId)return;r.pointerId=i.pointerId}else i.type==="touchstart"&&i.targetTouches.length===1&&(r.touchId=i.targetTouches[0].identifier);if(i.type==="touchstart"){jC(e,i,i.targetTouches[0].pageX);return}const{params:n,touches:a,enabled:o}=e;if(!o||!n.simulateTouch&&i.pointerType==="mouse"||e.animating&&n.preventInteractionOnTransition)return;!e.animating&&n.cssMode&&n.loop&&e.loopFix();let l=i.target;if(n.touchEventsTarget==="wrapper"&&!QW(l,e.wrapperEl)||"which"in i&&i.which===3||"button"in i&&i.button>0||r.isTouched&&r.isMoved)return;const c=!!n.noSwipingClass&&n.noSwipingClass!=="",d=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&d&&(l=d[0]);const p=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,_=!!(i.target&&i.target.shadowRoot);if(n.noSwiping&&(_?qX(p,l):l.closest(p))){e.allowClick=!0;return}if(n.swipeHandler&&!l.closest(n.swipeHandler))return;a.currentX=i.pageX,a.currentY=i.pageY;const b=a.currentX,T=a.currentY;if(!jC(e,i,b))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=b,a.startY=T,r.touchStartTime=_m(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1);let y=!0;l.matches(r.focusableElements)&&(y=!1,l.nodeName==="SELECT"&&(r.isTouched=!1)),s.activeElement&&s.activeElement.matches(r.focusableElements)&&s.activeElement!==l&&(i.pointerType==="mouse"||i.pointerType!=="mouse"&&!l.matches(r.focusableElements))&&s.activeElement.blur();const x=y&&e.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||x)&&!l.isContentEditable&&i.preventDefault(),n.freeMode&&n.freeMode.enabled&&e.freeMode&&e.animating&&!n.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",i)}function zX(t){const e=Xi(),s=this,i=s.touchEventsData,{params:r,touches:n,rtlTranslate:a,enabled:o}=s;if(!o||!r.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(i.touchId!==null||l.pointerId!==i.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].find(w=>w.identifier===i.touchId),!c||c.identifier!==i.touchId)return}else c=l;if(!i.isTouched){i.startMoving&&i.isScrolling&&s.emit("touchMoveOpposite",l);return}const d=c.pageX,p=c.pageY;if(l.preventedByNestedSwiper){n.startX=d,n.startY=p;return}if(!s.allowTouchMove){l.target.matches(i.focusableElements)||(s.allowClick=!1),i.isTouched&&(Object.assign(n,{startX:d,startY:p,currentX:d,currentY:p}),i.touchStartTime=_m());return}if(r.touchReleaseOnEdges&&!r.loop){if(s.isVertical()){if(p<n.startY&&s.translate<=s.maxTranslate()||p>n.startY&&s.translate>=s.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else if(d<n.startX&&s.translate<=s.maxTranslate()||d>n.startX&&s.translate>=s.minTranslate())return}if(e.activeElement&&e.activeElement.matches(i.focusableElements)&&e.activeElement!==l.target&&l.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&l.target===e.activeElement&&l.target.matches(i.focusableElements)){i.isMoved=!0,s.allowClick=!1;return}i.allowTouchCallbacks&&s.emit("touchMove",l),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=d,n.currentY=p;const _=n.currentX-n.startX,b=n.currentY-n.startY;if(s.params.threshold&&Math.sqrt(_**2+b**2)<s.params.threshold)return;if(typeof i.isScrolling>"u"){let w;s.isHorizontal()&&n.currentY===n.startY||s.isVertical()&&n.currentX===n.startX?i.isScrolling=!1:_*_+b*b>=25&&(w=Math.atan2(Math.abs(b),Math.abs(_))*180/Math.PI,i.isScrolling=s.isHorizontal()?w>r.touchAngle:90-w>r.touchAngle)}if(i.isScrolling&&s.emit("touchMoveOpposite",l),typeof i.startMoving>"u"&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(i.startMoving=!0),i.isScrolling||l.type==="touchmove"&&i.preventTouchMoveFromPointerMove){i.isTouched=!1;return}if(!i.startMoving)return;s.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation();let T=s.isHorizontal()?_:b,y=s.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(T=Math.abs(T)*(a?1:-1),y=Math.abs(y)*(a?1:-1)),n.diff=T,T*=r.touchRatio,a&&(T=-T,y=-y);const x=s.touchesDirection;s.swipeDirection=T>0?"prev":"next",s.touchesDirection=y>0?"prev":"next";const A=s.params.loop&&!r.cssMode,C=s.touchesDirection==="next"&&s.allowSlideNext||s.touchesDirection==="prev"&&s.allowSlidePrev;if(!i.isMoved){if(A&&C&&s.loopFix({direction:s.swipeDirection}),i.startTranslate=s.getTranslate(),s.setTransition(0),s.animating){const w=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});s.wrapperEl.dispatchEvent(w)}i.allowMomentumBounce=!1,r.grabCursor&&(s.allowSlideNext===!0||s.allowSlidePrev===!0)&&s.setGrabCursor(!0),s.emit("sliderFirstMove",l)}if(new Date().getTime(),r._loopSwapReset!==!1&&i.isMoved&&i.allowThresholdMove&&x!==s.touchesDirection&&A&&C&&Math.abs(T)>=1){Object.assign(n,{startX:d,startY:p,currentX:d,currentY:p,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,i.startTranslate=i.currentTranslate;return}s.emit("sliderMove",l),i.isMoved=!0,i.currentTranslate=T+i.startTranslate;let S=!0,E=r.resistanceRatio;if(r.touchReleaseOnEdges&&(E=0),T>0?(A&&C&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?s.minTranslate()-s.slidesSizesGrid[s.activeIndex+1]-(r.slidesPerView!=="auto"&&s.slides.length-r.slidesPerView>=2?s.slidesSizesGrid[s.activeIndex+1]+s.params.spaceBetween:0)-s.params.spaceBetween:s.minTranslate())&&s.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>s.minTranslate()&&(S=!1,r.resistance&&(i.currentTranslate=s.minTranslate()-1+(-s.minTranslate()+i.startTranslate+T)**E))):T<0&&(A&&C&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?s.maxTranslate()+s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween+(r.slidesPerView!=="auto"&&s.slides.length-r.slidesPerView>=2?s.slidesSizesGrid[s.slidesSizesGrid.length-1]+s.params.spaceBetween:0):s.maxTranslate())&&s.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:s.slides.length-(r.slidesPerView==="auto"?s.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<s.maxTranslate()&&(S=!1,r.resistance&&(i.currentTranslate=s.maxTranslate()+1-(s.maxTranslate()-i.startTranslate-T)**E))),S&&(l.preventedByNestedSwiper=!0),!s.allowSlideNext&&s.swipeDirection==="next"&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!s.allowSlidePrev&&s.swipeDirection==="prev"&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),!s.allowSlidePrev&&!s.allowSlideNext&&(i.currentTranslate=i.startTranslate),r.threshold>0)if(Math.abs(T)>r.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,i.currentTranslate=i.startTranslate,n.diff=s.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY;return}}else{i.currentTranslate=i.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&s.freeMode||r.watchSlidesProgress)&&(s.updateActiveIndex(),s.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&s.freeMode&&s.freeMode.onTouchMove(),s.updateProgress(i.currentTranslate),s.setTranslate(i.currentTranslate))}function GX(t){const e=this,s=e.touchEventsData;let i=t;i.originalEvent&&(i=i.originalEvent);let r;if(i.type==="touchend"||i.type==="touchcancel"){if(r=[...i.changedTouches].find(E=>E.identifier===s.touchId),!r||r.identifier!==s.touchId)return}else{if(s.touchId!==null||i.pointerId!==s.pointerId)return;r=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&!(["pointercancel","contextmenu"].includes(i.type)&&(e.browser.isSafari||e.browser.isWebView)))return;s.pointerId=null,s.touchId=null;const{params:n,touches:a,rtlTranslate:o,slidesGrid:l,enabled:c}=e;if(!c||!n.simulateTouch&&i.pointerType==="mouse")return;if(s.allowTouchCallbacks&&e.emit("touchEnd",i),s.allowTouchCallbacks=!1,!s.isTouched){s.isMoved&&n.grabCursor&&e.setGrabCursor(!1),s.isMoved=!1,s.startMoving=!1;return}n.grabCursor&&s.isMoved&&s.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const d=_m(),p=d-s.touchStartTime;if(e.allowClick){const E=i.path||i.composedPath&&i.composedPath();e.updateClickedSlide(E&&E[0]||i.target,E),e.emit("tap click",i),p<300&&d-s.lastClickTime<300&&e.emit("doubleTap doubleClick",i)}if(s.lastClickTime=_m(),jb(()=>{e.destroyed||(e.allowClick=!0)}),!s.isTouched||!s.isMoved||!e.swipeDirection||a.diff===0&&!s.loopSwapReset||s.currentTranslate===s.startTranslate&&!s.loopSwapReset){s.isTouched=!1,s.isMoved=!1,s.startMoving=!1;return}s.isTouched=!1,s.isMoved=!1,s.startMoving=!1;let _;if(n.followFinger?_=o?e.translate:-e.translate:_=-s.currentTranslate,n.cssMode)return;if(n.freeMode&&n.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:_});return}const b=_>=-e.maxTranslate()&&!e.params.loop;let T=0,y=e.slidesSizesGrid[0];for(let E=0;E<l.length;E+=E<n.slidesPerGroupSkip?1:n.slidesPerGroup){const w=E<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;typeof l[E+w]<"u"?(b||_>=l[E]&&_<l[E+w])&&(T=E,y=l[E+w]-l[E]):(b||_>=l[E])&&(T=E,y=l[l.length-1]-l[l.length-2])}let x=null,A=null;n.rewind&&(e.isBeginning?A=n.virtual&&n.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(x=0));const C=(_-l[T])/y,S=T<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(p>n.longSwipesMs){if(!n.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(C>=n.longSwipesRatio?e.slideTo(n.rewind&&e.isEnd?x:T+S):e.slideTo(T)),e.swipeDirection==="prev"&&(C>1-n.longSwipesRatio?e.slideTo(T+S):A!==null&&C<0&&Math.abs(C)>n.longSwipesRatio?e.slideTo(A):e.slideTo(T))}else{if(!n.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(i.target===e.navigation.nextEl||i.target===e.navigation.prevEl)?i.target===e.navigation.nextEl?e.slideTo(T+S):e.slideTo(T):(e.swipeDirection==="next"&&e.slideTo(x!==null?x:T+S),e.swipeDirection==="prev"&&e.slideTo(A!==null?A:T))}}function HC(){const t=this,{params:e,el:s}=t;if(s&&s.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:n}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const o=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!o?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=r,t.allowSlideNext=i,t.params.watchOverflow&&n!==t.snapGrid&&t.checkOverflow()}function WX(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function XX(){const t=this,{wrapperEl:e,rtlTranslate:s,enabled:i}=t;if(!i)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let r;const n=t.maxTranslate()-t.minTranslate();n===0?r=0:r=(t.translate-t.minTranslate())/n,r!==t.progress&&t.updateProgress(s?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function KX(t){const e=this;Tp(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function YX(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const g4=(t,e)=>{const s=Xi(),{params:i,el:r,wrapperEl:n,device:a}=t,o=!!i.nested,l=e==="on"?"addEventListener":"removeEventListener",c=e;!r||typeof r=="string"||(s[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:o}),r[l]("touchstart",t.onTouchStart,{passive:!1}),r[l]("pointerdown",t.onTouchStart,{passive:!1}),s[l]("touchmove",t.onTouchMove,{passive:!1,capture:o}),s[l]("pointermove",t.onTouchMove,{passive:!1,capture:o}),s[l]("touchend",t.onTouchEnd,{passive:!0}),s[l]("pointerup",t.onTouchEnd,{passive:!0}),s[l]("pointercancel",t.onTouchEnd,{passive:!0}),s[l]("touchcancel",t.onTouchEnd,{passive:!0}),s[l]("pointerout",t.onTouchEnd,{passive:!0}),s[l]("pointerleave",t.onTouchEnd,{passive:!0}),s[l]("contextmenu",t.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[l]("click",t.onClick,!0),i.cssMode&&n[l]("scroll",t.onScroll),i.updateOnWindowResize?t[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",HC,!0):t[c]("observerUpdate",HC,!0),r[l]("load",t.onLoad,{capture:!0}))};function QX(){const t=this,{params:e}=t;t.onTouchStart=VX.bind(t),t.onTouchMove=zX.bind(t),t.onTouchEnd=GX.bind(t),t.onDocumentTouchStart=YX.bind(t),e.cssMode&&(t.onScroll=XX.bind(t)),t.onClick=WX.bind(t),t.onLoad=KX.bind(t),g4(t,"on")}function JX(){g4(this,"off")}var ZX={attachEvents:QX,detachEvents:JX};const qC=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function eK(){const t=this,{realIndex:e,initialized:s,params:i,el:r}=t,n=i.breakpoints;if(!n||n&&Object.keys(n).length===0)return;const a=Xi(),o=i.breakpointsBase==="window"||!i.breakpointsBase?i.breakpointsBase:"container",l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?t.el:a.querySelector(i.breakpointsBase),c=t.getBreakpoint(n,o,l);if(!c||t.currentBreakpoint===c)return;const d=(c in n?n[c]:void 0)||t.originalParams,p=qC(t,i),_=qC(t,d),b=t.params.grabCursor,T=d.grabCursor,y=i.enabled;p&&!_?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),t.emitContainerClasses()):!p&&_&&(r.classList.add(`${i.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&i.grid.fill==="column")&&r.classList.add(`${i.containerModifierClass}grid-column`),t.emitContainerClasses()),b&&!T?t.unsetGrabCursor():!b&&T&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(w=>{if(typeof d[w]>"u")return;const O=i[w]&&i[w].enabled,R=d[w]&&d[w].enabled;O&&!R&&t[w].disable(),!O&&R&&t[w].enable()});const x=d.direction&&d.direction!==i.direction,A=i.loop&&(d.slidesPerView!==i.slidesPerView||x),C=i.loop;x&&s&&t.changeDirection(),lr(t.params,d);const S=t.params.enabled,E=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),y&&!S?t.disable():!y&&S&&t.enable(),t.currentBreakpoint=c,t.emit("_beforeBreakpoint",d),s&&(A?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!C&&E?(t.loopCreate(e),t.updateSlides()):C&&!E&&t.loopDestroy()),t.emit("breakpoint",d)}function tK(t,e,s){if(e===void 0&&(e="window"),!t||e==="container"&&!s)return;let i=!1;const r=Qs(),n=e==="window"?r.innerHeight:s.clientHeight,a=Object.keys(t).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const l=parseFloat(o.substr(1));return{value:n*l,point:o}}return{value:o,point:o}});a.sort((o,l)=>parseInt(o.value,10)-parseInt(l.value,10));for(let o=0;o<a.length;o+=1){const{point:l,value:c}=a[o];e==="window"?r.matchMedia(`(min-width: ${c}px)`).matches&&(i=l):c<=s.clientWidth&&(i=l)}return i||"max"}var sK={setBreakpoint:eK,getBreakpoint:tK};function iK(t,e){const s=[];return t.forEach(i=>{typeof i=="object"?Object.keys(i).forEach(r=>{i[r]&&s.push(e+r)}):typeof i=="string"&&s.push(e+i)}),s}function rK(){const t=this,{classNames:e,params:s,rtl:i,el:r,device:n}=t,a=iK(["initialized",s.direction,{"free-mode":t.params.freeMode&&s.freeMode.enabled},{autoheight:s.autoHeight},{rtl:i},{grid:s.grid&&s.grid.rows>1},{"grid-column":s.grid&&s.grid.rows>1&&s.grid.fill==="column"},{android:n.android},{ios:n.ios},{"css-mode":s.cssMode},{centered:s.cssMode&&s.centeredSlides},{"watch-progress":s.watchSlidesProgress}],s.containerModifierClass);e.push(...a),r.classList.add(...e),t.emitContainerClasses()}function nK(){const t=this,{el:e,classNames:s}=t;!e||typeof e=="string"||(e.classList.remove(...s),t.emitContainerClasses())}var aK={addClasses:rK,removeClasses:nK};function oK(){const t=this,{isLocked:e,params:s}=t,{slidesOffsetBefore:i}=s;if(i){const r=t.slides.length-1,n=t.slidesGrid[r]+t.slidesSizesGrid[r]+i*2;t.isLocked=t.size>n}else t.isLocked=t.snapGrid.length===1;s.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),s.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var lK={checkOverflow:oK},zb={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function uK(t,e){return function(s){s===void 0&&(s={});const i=Object.keys(s)[0],r=s[i];if(typeof r!="object"||r===null){lr(e,s);return}if(t[i]===!0&&(t[i]={enabled:!0}),i==="navigation"&&t[i]&&t[i].enabled&&!t[i].prevEl&&!t[i].nextEl&&(t[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&t[i]&&t[i].enabled&&!t[i].el&&(t[i].auto=!0),!(i in t&&"enabled"in r)){lr(e,s);return}typeof t[i]=="object"&&!("enabled"in t[i])&&(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}),lr(e,s)}}const U_={eventsEmitter:aX,update:yX,translate:EX,transition:AX,slide:RX,loop:UX,grabCursor:HX,events:ZX,breakpoints:sK,checkOverflow:lK,classes:aK},$_={};let oS=class xa{constructor(){let e,s;for(var i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];r.length===1&&r[0].constructor&&Object.prototype.toString.call(r[0]).slice(8,-1)==="Object"?s=r[0]:[e,s]=r,s||(s={}),s=lr({},s),e&&!s.el&&(s.el=e);const a=Xi();if(s.el&&typeof s.el=="string"&&a.querySelectorAll(s.el).length>1){const d=[];return a.querySelectorAll(s.el).forEach(p=>{const _=lr({},s,{el:p});d.push(new xa(_))}),d}const o=this;o.__swiper__=!0,o.support=h4(),o.device=f4({userAgent:s.userAgent}),o.browser=p4(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],s.modules&&Array.isArray(s.modules)&&o.modules.push(...s.modules);const l={};
vendor: 6,200 bytes, line 271
271o.modules.forEach(d=>{d({params:s,swiper:o,extendParams:uK(s,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const c=lr({},zb,l);return o.params=lr({},c,$_,s),o.originalParams=lr({},o.params),o.passedParams=lr({},s),o.params&&o.params.on&&Object.keys(o.params.on).forEach(d=>{o.on(d,o.params.on[d])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:s,params:i}=this,r=kn(s,`.${i.slideClass}, swiper-slide`),n=Hb(r[0]);return Hb(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(s=>s.getAttribute("data-swiper-slide-index")*1===e))}recalcSlides(){const e=this,{slidesEl:s,params:i}=e;e.slides=kn(s,`.${i.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,s){const i=this;e=Math.min(Math.max(e,0),1);const r=i.minTranslate(),n=(i.maxTranslate()-r)*e+r;i.translateTo(n,typeof s>"u"?0:s),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const s=e.el.className.split(" ").filter(i=>i.indexOf("swiper")===0||i.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",s.join(" "))}getSlideClasses(e){const s=this;return s.destroyed?"":e.className.split(" ").filter(i=>i.indexOf("swiper-slide")===0||i.indexOf(s.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const s=[];e.slides.forEach(i=>{const r=e.getSlideClasses(i);s.push({slideEl:i,classNames:r}),e.emit("_slideClass",i,r)}),e.emit("_slideClasses",s)}slidesPerViewDynamic(e,s){e===void 0&&(e="current"),s===void 0&&(s=!1);const i=this,{params:r,slides:n,slidesGrid:a,slidesSizesGrid:o,size:l,activeIndex:c}=i;let d=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let p=n[c]?Math.ceil(n[c].swiperSlideSize):0,_;for(let b=c+1;b<n.length;b+=1)n[b]&&!_&&(p+=Math.ceil(n[b].swiperSlideSize),d+=1,p>l&&(_=!0));for(let b=c-1;b>=0;b-=1)n[b]&&!_&&(p+=n[b].swiperSlideSize,d+=1,p>l&&(_=!0))}else if(e==="current")for(let p=c+1;p<n.length;p+=1)(s?a[p]+o[p]-a[c]<l:a[p]-a[c]<l)&&(d+=1);else for(let p=c-1;p>=0;p-=1)a[c]-a[p]<l&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:s,params:i}=e;i.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&Tp(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){const a=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}let n;if(i.freeMode&&i.freeMode.enabled&&!i.cssMode)r(),i.autoHeight&&e.updateAutoHeight();else{if((i.slidesPerView==="auto"||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){const a=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(a.length-1,0,!1,!0)}else n=e.slideTo(e.activeIndex,0,!1,!0);n||r()}i.watchOverflow&&s!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,s){s===void 0&&(s=!0);const i=this,r=i.params.direction;return e||(e=r==="horizontal"?"vertical":"horizontal"),e===r||e!=="horizontal"&&e!=="vertical"||(i.el.classList.remove(`${i.params.containerModifierClass}${r}`),i.el.classList.add(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.forEach(n=>{e==="vertical"?n.style.width="":n.style.height=""}),i.emit("changeDirection"),s&&i.update()),i}changeLanguageDirection(e){const s=this;s.rtl&&e==="rtl"||!s.rtl&&e==="ltr"||(s.rtl=e==="rtl",s.rtlTranslate=s.params.direction==="horizontal"&&s.rtl,s.rtl?(s.el.classList.add(`${s.params.containerModifierClass}rtl`),s.el.dir="rtl"):(s.el.classList.remove(`${s.params.containerModifierClass}rtl`),s.el.dir="ltr"),s.update())}mount(e){const s=this;if(s.mounted)return!0;let i=e||s.params.el;if(typeof i=="string"&&(i=document.querySelector(i)),!i)return!1;i.swiper=s,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===s.params.swiperElementNodeName.toUpperCase()&&(s.isElement=!0);const r=()=>`.${(s.params.wrapperClass||"").trim().split(" ").join(".")}`;let n=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(r()):kn(i,r())[0];return!n&&s.params.createElements&&(n=Qh("div",s.params.wrapperClass),i.append(n),kn(i,`.${s.params.slideClass}`).forEach(a=>{n.append(a)})),Object.assign(s,{el:i,wrapperEl:n,slidesEl:s.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:n,hostEl:s.isElement?i.parentNode.host:i,mounted:!0,rtl:i.dir.toLowerCase()==="rtl"||_o(i,"direction")==="rtl",rtlTranslate:s.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||_o(i,"direction")==="rtl"),wrongRTL:_o(n,"dis
271play")==="-webkit-box"}),!0}init(e){const s=this;if(s.initialized||s.mount(e)===!1)return s;s.emit("beforeInit"),s.params.breakpoints&&s.setBreakpoint(),s.addClasses(),s.updateSize(),s.updateSlides(),s.params.watchOverflow&&s.checkOverflow(),s.params.grabCursor&&s.enabled&&s.setGrabCursor(),s.params.loop&&s.virtual&&s.params.virtual.enabled?s.slideTo(s.params.initialSlide+s.virtual.slidesBefore,0,s.params.runCallbacksOnInit,!1,!0):s.slideTo(s.params.initialSlide,0,s.params.runCallbacksOnInit,!1,!0),s.params.loop&&s.loopCreate(),s.attachEvents();const i=[...s.el.querySelectorAll('[loading="lazy"]')];return s.isElement&&i.push(...s.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(r=>{r.complete?Tp(s,r):r.addEventListener("load",n=>{Tp(s,n.target)})}),Vb(s),s.initialized=!0,Vb(s),s.emit("init"),s.emit("afterInit"),s}destroy(e,s){e===void 0&&(e=!0),s===void 0&&(s=!0);const i=this,{params:r,el:n,wrapperEl:a,slides:o}=i;return typeof i.params>"u"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),r.loop&&i.loopDestroy(),s&&(i.removeClasses(),n&&typeof n!="string"&&n.removeAttribute("style"),a&&a.removeAttribute("style"),o&&o.length&&o.forEach(l=>{l.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(l=>{i.off(l)}),e!==!1&&(i.el&&typeof i.el!="string"&&(i.el.swiper=null),GW(i)),i.destroyed=!0),null}static extendDefaults(e){lr($_,e)}static get extendedDefaults(){return $_}static get defaults(){return zb}static installModule(e){xa.prototype.__modules__||(xa.prototype.__modules__=[]);const s=xa.prototype.__modules__;typeof e=="function"&&s.indexOf(e)<0&&s.push(e)}static use(e){return Array.isArray(e)?(e.forEach(s=>xa.installModule(s)),xa):(xa.installModule(e),xa)}};Object.keys(U_).forEach(t=>{Object.keys(U_[t]).forEach(e=>{oS.prototype[e]=U_[t][e]})});oS.use([rX,nX]);const y4=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Pl(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function xu(t,e){const s=["__proto__","constructor","prototype"];Object.keys(e).filter(i=>
vendor: 3,519 bytes, line 271
271s.indexOf(i)<0).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Pl(e[i])&&Pl(t[i])&&Object.keys(e[i]).length>0?e[i].__swiper__?t[i]=e[i]:xu(t[i],e[i]):t[i]=e[i]})}function _4(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function v4(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function b4(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function T4(t){t===void 0&&(t="");const e=t.split(" ").map(i=>i.trim()).filter(i=>!!i),s=[];return e.forEach(i=>{s.indexOf(i)<0&&s.push(i)}),s.join(" ")}function cK(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function dK(t){let{swiper:e,slides:s,passedParams:i,changedParams:r,nextEl:n,prevEl:a,scrollbarEl:o,paginationEl:l}=t;const c=r.filter(k=>k!=="children"&&k!=="direction"&&k!=="wrapperClass"),{params:d,pagination:p,navigation:_,scrollbar:b,virtual:T,thumbs:y}=e;let x,A,C,S,E,w,O,R;r.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&!i.thumbs.swiper.destroyed&&d.thumbs&&(!d.thumbs.swiper||d.thumbs.swiper.destroyed)&&(x=!0),r.includes("controller")&&i.controller&&i.controller.control&&d.controller&&!d.controller.control&&(A=!0),r.includes("pagination")&&i.pagination&&(i.pagination.el||l)&&(d.pagination||d.pagination===!1)&&p&&!p.el&&(C=!0),r.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||o)&&(d.scrollbar||d.scrollbar===!1)&&b&&!b.el&&(S=!0),r.includes("navigation")&&i.navigation&&(i.navigation.prevEl||a)&&(i.navigation.nextEl||n)&&(d.navigation||d.navigation===!1)&&_&&!_.prevEl&&!_.nextEl&&(E=!0);const $=k=>{e[k]&&(e[k].destroy(),k==="navigation"?(e.isElement&&(e[k].prevEl.remove(),e[k].nextEl.remove()),d[k].prevEl=void 0,d[k].nextEl=void 0,e[k].prevEl=void 0,e[k].nextEl=void 0):(e.isElement&&e[k].el.remove(),d[k].el=void 0,e[k].el=void 0))};r.includes("loop")&&e.isElement&&(d.loop&&!i.loop?w=!0:!d.loop&&i.loop?O=!0:R=!0),c.forEach(k=>{if(Pl(d[k])&&Pl(i[k]))Object.assign(d[k],i[k]),(k==="navigation"||k==="pagination"||k==="scrollbar")&&"enabled"in i[k]&&!i[k].enabled&&$(k);else{const P=i[k];(P===!0||P===!1)&&(k==="navigation"||k==="pagination"||k==="scrollbar")?P===!1&&$(k):d[k]=i[k]}}),c.includes("controller")&&!A&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),r.includes("children")&&s&&T&&d.virtual.enabled?(T.slides=s,T.update(!0)):r.includes("virtual")&&T&&d.virtual.enabled&&(s&&(T.slides=s),T.update(!0)),r.includes("children")&&s&&d.loop&&(R=!0),x&&y.init()&&y.update(!0),A&&(e.controller.control=d.controller.control),C&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(d.pagination.el=l),p.init(),p.render(),p.update()),S&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),e.el.appendChild(o)),o&&(d.scrollbar.el=o),b.init(),b.updateSize(),b.setTranslate()),E&&(e.isElement&&((!n||typeof n=="string")&&(n=document.createElement("div"),n.classList.add("swiper-button-next"),n.innerHTML=e.hostEl.constructor.nextButtonSvg,n.part.add("button-next"),e.el.appendChild(n)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),n&&(d.navigation.nextEl=n),a&&(d.navigation.prevEl=a),_.init(
271),_.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=i.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=i.allowSlidePrev),r.includes("direction")&&e.changeDirection(i.direction,!1),(w||R)&&e.loopDestroy(),(O||R)&&e.loopCreate(),e.update()}function VC(t,e){t===void 0&&(t={});const s={on:{}},i={},r={};xu(s,zb),s._emitClasses=!0,s.init=!1;const n={},a=y4.map(l=>l.replace(/_/,"")),o=Object.assign({},t);return Object.keys(o).forEach(l=>{typeof t[l]>"u"||(a.indexOf(l)>=0?Pl(t[l])?(s[l]={},r[l]={},xu(s[l],t[l]),xu(r[l],t[l])):(s[l]=t[l],r[l]=t[l]):l.search(/on[A-Z]/)===0&&typeof t[l]=="function"?s.on[`${l[2].toLowerCase()}${l.substr(3)}`]=t[l]:n[l]=t[l])}),["navigation","pagination","scrollbar"].forEach(l=>{s[l]===!0&&(s[l]={}),s[l]===!1&&delete s[l]}),{params:s,passedParams:r,rest:n,events:i}}function hK(t,e){let{el:s,nextEl:i,prevEl:r,paginationEl:n,scrollbarEl:a,swiper:o}=t;_4(e)&&i&&r&&(o.params.navigation.nextEl=i,o.originalParams.navigation.nextEl=i,o.params.navigation.prevEl=r,o.originalParams.navigation.prevEl=r),v4(e)&&n&&(o.params.pagination.el=n,o.originalParams.pagination.el=n),b4(e)&&a&&(o.params.scrollbar.el=a,o.originalParams.scrollbar.el=a),o.init(s)}function fK(t,e,s,i,r){const n=[];if(!e)return n;const a=o=>{n.indexOf(o)<0&&n.push(o)};if(s&&i){const o=i.map(r),l=s.map(r);o.join("")!==l.join("")&&a("children"),i.length!==s.length&&a("children")}return y4.filter(o=>o[0]==="_").map(o=>o.replace(/_/,"")).forEach(o=>{if(o in t&&o in e)if(Pl(t[o])&&Pl(e[o])){const l=Object.keys(t[o]),c=Object.keys(e[o]);l.length!==c.length?a(o):(l.forEach(d=>{t[o][d]!==e[o][d]&&a(o)}),c.forEach(d=>{t[o][d]!==e[o][d]&&a(o)}))}else t[o]!==e[o]&&a(o)}),n}const pK=t=>{!t||t.destroyed||!t.params.virtual||t.params.virtual&&!t.params.virtual.enabled||(t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.parallax&&t.params.parallax&&t.params.parallax.enabled&&t.parallax.setTranslate())};function j_(t,e,s){t===void 0&&(t={});const i=[],r={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},n=(a,o)=>{Array.isArray(a)&&a.forEach(l=>{const c=typeof l.type=="symbol";o==="default"&&(o="container-end"),c&&l.children?n(l.children,o):l.type&&(l.type.name==="SwiperSlide"||l.type.name==="AsyncComponentWrapper")||l.componentOptions&&l.componentOptions.tag==="SwiperSlide"?i.push(l):r[o]&&r[o].push(l)})};return Object.keys(t).forEach(a=>{if(typeof t[a]!="function")return;const o=t[a]();n(o,a)}),s.value=e.value,e.value=i,{slides:i,slots:r}}function mK(t,e,s){if(!s)return null;const i=d=>{let p=d;return d<0?p=e.length+d:p>=e.length&&(p=p-e.length),p},r=t.value.isHorizontal()?{[t.value.rtlTranslate?"right":"left"]:`${s.offset}px`}:{top:`${s.offset}px`},{from:n,to:a}=s,o=t.value.params.loop?-e.length:0,l=t.value.params.loop?e.length*2:e.length,c=[];for(let d=o;d<l;d+=1)d>=n&&d<=a&&c.length<e.length&&c.push(e[i(d)]);return c.map(d=>{if(d.props||(d.props={}),d.props.style||(d.props.style={}),d.props.swiperRef=t,d.props.style=r,d.type)return Ms(d.type,{...d.props},d.children);if(d.componentOptions)return Ms(d.componentOptions.Ctor,{...d.props},d.componentOptions.children)})}const lS={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},swiperElementNodeName:{type:String,default:"SWIPER-CONTAINER"},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},breakpointsBase:{type:String,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0}
271,centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideFullyVisibleClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slidesUpdated","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(t,e){let{slots:s,emit:i}=e;const{tag:r,wrapperTag:n}=t,a=Je("swiper"),o=Je(null),l=Je(!1),c=Je(!1),d=Je(null),p=Je(null),_=Je(null),b={value:[]},T={value:[]},y=Je(null),x=Je(null),A=Je(null),C=Je(null),{params:S,passedParams:E}=VC(t);j_(s,b,T),_.value=E,T.value=b.value;const w=()=>{j_(s,b,T),l.value=!0};S.onAny=function($){for(var k=arguments.length,P=new Array(k>1?k-1:0),j=1;j<k;j++)P[j-1]=arguments[j];i($,...P)},Object.assign(S.on,{_beforeBreakpoint:w,_containerClasses($,k){a.value=k}});const O={...S};if(delete O.wrapperClass,p.value=new oS(O),p.value.virtual&&p.value.params.virtual.enabled){p.value.virtual.slides=b.value;const $={cache:!1,slides:b.value,renderExternal:k=>{o.value=k},renderExternalUpdate:!1};xu(p.value.params.virtual,$),xu(p.value.originalParams.virtual,$)}pc(()=>{!c.value&&p.value&&(p.value.emitSlidesClasses(),c.value=!0);const{passedParams:$}=VC(t),k=fK($,_.value,b.value,T.value,P=>P.props&&P.props.key);_.value=$,(k.length||l.value)&&p.value&&!p.value.destroyed&&dK({swiper:p.value,slides:b.value,passedParams:$,changedParams:k,nextEl:y.value,prevEl:x.value,scrollbarEl:C.value,paginationEl:A.value}),l.value=!1}),gl("swiper",p),$s(o,()=>{an(()=>{pK(p.value)})}),mr(()=>{d.value&&(hK({el:d.value,nextEl:y.value,prevEl:x.value,paginationEl:A.value,scrollbarEl:C.value,swiper:p.value},S),i("swiper",p.value))}),Wa(()=>{p.value&&!p.value.destroyed&&p.value.destroy(!0,!1)});function R($){return S.virtual?mK(p,$,o.value):($.forEach((k,P)=>{k.props||(k.props={}),k.props.swiperRef=p,k.props.swiperSlideIndex=P}),$)}return()=>{const{slides:$,slots:k}=j_(s,b,T);return Ms(r,{ref:d,class:T4(a.value)},[k["container-start"],Ms(n,{class:cK(S.wrapperClass)},[k["wrapper-start"],R($),k["wrapper-end"]]),_4(t)&&[Ms("div",{ref:x,class:"swiper-button-prev"}),Ms("div",{ref:y,class:"swiper-button-next"})],b4(t)&&Ms("div",{ref:C,class:"swiper-scrollbar"}),v4(t)&&Ms("div",{ref:A,class:"swiper-pagination"}),k["container-end"]])}}},uS={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(t,e){let{slots:s}=e,i=!1;const{swiperRef:r}=t,n=Je(null),a=Je("swiper-slide"),o=Je(!1);
271function l(p,_,b){_===n.value&&(a.value=b)}mr(()=>{!r||!r.value||(r.value.on("_slideClass",l),i=!0)}),Zm(()=>{i||!r||!r.value||(r.value.on("_slideClass",l),i=!0)}),pc(()=>{!n.value||!r||!r.value||(typeof t.swiperSlideIndex<"u"&&(n.value.swiperSlideIndex=t.swiperSlideIndex),r.value.destroyed&&a.value!=="swiper-slide"&&(a.value="swiper-slide"))}),Wa(()=>{!r||!r.value||r.value.off("_slideClass",l)});const c=mt(()=>({isActive:a.value.indexOf("swiper-slide-active")>=0,isVisible:a.value.indexOf("swiper-slide-visible")>=0,isPrev:a.value.indexOf("swiper-slide-prev")>=0,isNext:a.value.indexOf("swiper-slide-next")>=0}));gl("swiperSlide",c);const d=()=>{o.value=!0};return()=>Ms(t.tag,{class:T4(`${a.value}`),ref:n,"data-swiper-slide-index":typeof t.virtualIndex>"u"&&r&&r.value&&r.value.params.loop?t.swiperSlideIndex:t.virtualIndex,onLoadCapture:d},t.zoom?Ms("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof t.zoom=="number"?t.zoom:void 0},[s.default&&s.default(c.value),t.lazy&&!o.value&&Ms("div",{class:"swiper-lazy-preloader"})]):[s.default&&s.default(c.value),t.lazy&&!o.value&&Ms("div",{class:"swiper-lazy-preloader"})])}};function cS(t){let{swiper:e,extendParams:s,on:i,emit:r}=t;const n=Xi(),a=Qs();e.keyboard={enabled:!1},s({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function o(d){if(!e.enabled)return;const{rtlTranslate:p}=e;let _=d;_.originalEvent&&(_=_.originalEvent);const b=_.keyCode||_.charCode,T=e.params.keyboard.pageUpDown,y=T&&b===33,x=T&&b===34,A=b===37,C=b===39,S=b===38,E=b===40;if(!e.allowSlideNext&&(e.isHorizontal()&&C||e.isVertical()&&E||x)||!e.allowSlidePrev&&(e.isHorizontal()&&A||e.isVertical()&&S||y))return!1;if(!(_.shiftKey||_.altKey||_.ctrlKey||_.metaKey)&&!(n.activeElement&&n.activeElement.nodeName&&(n.activeElement.nodeName.toLowerCase()==="input"||n.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(y||x||A||C||S||E)){let w=!1;if(qb(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&qb(e.el,`.${e.params.slideActiveClass}`).length===0)return;const O=e.el,R=O.clientWidth,$=O.clientHeight,k=a.innerWidth,P=a.innerHeight,j=JW(O);p&&(j.left-=O.scrollLeft);const F=[[j.left,j.top],[j.left+R,j.top],[j.left,j.top+$],[j.left+R,j.top+$]];for(let H=0;H<F.length;H+=1){const te=F[H];if(te[0]>=0&&te[0]<=k&&te[1]>=0&&te[1]<=P){if(te[0]===0&&te[1]===0)continue;w=!0}}if(!w)return}e.isHorizontal()?((y||x||A||C)&&(_.preventDefault?_.preventDefault():_.returnValue=!1),((x||C)&&!p||(y||A)&&p)&&e.slideNext(),((y||A)&&!p||(x||C)&&p)&&e.slidePrev()):((y||x||S||E)&&(_.preventDefault?_.preventDefault():_.returnValue=!1),(x||E)&&e.slideNext(),(y||S)&&e.slidePrev()),r("keyPress",b)}}function l(){e.keyboard.enabled||(n.addEventListener("keydown",o),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(n.removeEventListener("keydown",o),e.keyboard.enabled=!1)}i("init",()=>{e.params.keyboard.enabled&&l()}),i("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:l,disable:c})}function gK(t,e,s,i){return t.params.createElements&&Object.keys(i).forEac
vendor: 9,989 bytes, line 271
271h(r=>{if(!s[r]&&s.auto===!0){let n=kn(t.el,`.${i[r]}`)[0];n||(n=Qh("div",i[r]),n.className=i[r],t.el.append(n)),s[r]=n,e[r]=n}}),s}function dS(t){let{swiper:e,extendParams:s,on:i,emit:r}=t;s({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function n(T){let y;return T&&typeof T=="string"&&e.isElement&&(y=e.el.querySelector(T)||e.hostEl.querySelector(T),y)?y:(T&&(typeof T=="string"&&(y=[...document.querySelectorAll(T)]),e.params.uniqueNavElements&&typeof T=="string"&&y&&y.length>1&&e.el.querySelectorAll(T).length===1?y=e.el.querySelector(T):y&&y.length===1&&(y=y[0])),T&&!y?T:y)}function a(T,y){const x=e.params.navigation;T=zt(T),T.forEach(A=>{A&&(A.classList[y?"add":"remove"](...x.disabledClass.split(" ")),A.tagName==="BUTTON"&&(A.disabled=y),e.params.watchOverflow&&e.enabled&&A.classList[e.isLocked?"add":"remove"](x.lockClass))})}function o(){const{nextEl:T,prevEl:y}=e.navigation;if(e.params.loop){a(y,!1),a(T,!1);return}a(y,e.isBeginning&&!e.params.rewind),a(T,e.isEnd&&!e.params.rewind)}function l(T){T.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function c(T){T.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function d(){const T=e.params.navigation;if(e.params.navigation=gK(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(T.nextEl||T.prevEl))return;let y=n(T.nextEl),x=n(T.prevEl);Object.assign(e.navigation,{nextEl:y,prevEl:x}),y=zt(y),x=zt(x);const A=(C,S)=>{C&&C.addEventListener("click",S==="next"?c:l),!e.enabled&&C&&C.classList.add(...T.lockClass.split(" "))};y.forEach(C=>A(C,"next")),x.forEach(C=>A(C,"prev"))}function p(){let{nextEl:T,prevEl:y}=e.navigation;T=zt(T),y=zt(y);const x=(A,C)=>{A.removeEventListener("click",C==="next"?c:l),A.classList.remove(...e.params.navigation.disabledClass.split(" "))};T.forEach(A=>x(A,"next")),y.forEach(A=>x(A,"prev"))}i("init",()=>{e.params.navigation.enabled===!1?b():(d(),o())}),i("toEdge fromEdge lock unlock",()=>{o()}),i("destroy",()=>{p()}),i("enable disable",()=>{let{nextEl:T,prevEl:y}=e.navigation;if(T=zt(T),y=zt(y),e.enabled){o();return}[...T,...y].filter(x=>!!x).forEach(x=>x.classList.add(e.params.navigation.lockClass))}),i("click",(T,y)=>{let{nextEl:x,prevEl:A}=e.navigation;x=zt(x),A=zt(A);const C=y.target;let S=A.includes(C)||x.includes(C);if(e.isElement&&!S){const E=y.path||y.composedPath&&y.composedPath();E&&(S=E.find(w=>x.includes(w)||A.includes(w)))}if(e.params.navigation.hideOnClick&&!S){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===C||e.pagination.el.contains(C)))return;let E;x.length?E=x[0].classList.contains(e.params.navigation.hiddenClass):A.length&&(E=A[0].classList.contains(e.params.navigation.hiddenClass)),r(E===!0?"navigationShow":"navigationHide"),[...x,...A].filter(w=>!!w).forEach(w=>w.classList.toggle(e.params.navigation.hiddenClass))}});const _=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),o()},b=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),p()};Object.assign(e.navigation,{enable:_,disable:b,update:o,init:d,destroy:p})}function H_(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function hS(t){let{swiper:e,extendParams:s,on:i}=t;s({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),e.a11y={clicked:!1};let r=null,n,a,o=new Date().getTime();function l(K){const X=r;X.length!==0&&(X.innerHTML="",X.innerHTML=K)}function c(K){const X=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(K).replace(/x/g,X)}function d(K){K=zt(K),K.forEach(X=>{X.setAttribute("tabIndex","0")})}function p(K){K=zt(K),K.forEach(X=>{X.setAttribute("tabIndex","-1")})}function _(K,X){K=zt(K),K.forEach(ne=>{ne.setAttribute("role",X)})}function b(K,X){K=zt(K),K.forEach(ne=>{ne.setAttribute("aria-roledescription",X)})}function T(K,X){K=zt(K),K.forEach(ne=>{ne.setAttribute("aria-controls",X)})}function y(K,X){K=zt(K),K.forEach(ne=>{ne.setAttribute("aria-label",X)})}function x(K,X){K=zt(K),K.forEach(ne=>{ne.setAttribute("id",X)})}function A(K,X){K=zt(K),K.forEach(ne=>{ne.setAttribute("aria-live",X)})}function C(K){K=zt(K),K.forEach(X=>{X.setAttribute("aria-disabled",!0)})}function S(K){K=zt(K),K.forEach(X=>{X.setAttribute("aria-disabled",!1)})}function E(K){if(K.keyCode!==13&&K.keyCode!==32)return;const X=e.params.a11y,ne=K.target;if(!(e.pagination&&e.pagination.el&&(ne===e.pagination.el||e.pagination.el.contains(K.target))&&!K.target.matches(H_(e.params.pagination.bulletClass)))){if(e.navigation&&e.navigation.prevEl&&e.navigation.nextEl){const de=zt(e.navigation.prevEl);zt(e.navigation.nextEl).includes(ne)&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?l(X.lastSlideMessage):l(X.nextSlideMessage)),de.includes(ne)&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?l(X.firstSlideMessage):l(X.prevSlideMessage))}e.pagination&&ne.matches(H_(e.params.pagination.bulletClass))&&ne.click()}}function w(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:K,prevEl:X}=e.navigation;X&&(e.isBeginning?(C(X),p(X)):(S(X),d(X))),K&&(e.isEnd?(C(K),p(K)):(S(K),d(K)))}function O(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function R(){return O()&&e.params.pagination.clickable}function $(){const K=e.params.a11y;O()&&e.pagination.bullets.forEach(X=>{e.params.pagination.clickable&&(d(X),e.params.pagination.renderBullet||(_(X,"button"),y(X,K.paginationBulletMessage.replace(/\{\{index\}\}/,Hb(X)+1)))),X.matches(H_(e.params.pagination.bulletActiveClass))?X.setAttribute("aria-current","true"):X.removeAttribute("aria-current")})}const k=(K,X,ne)=>{d(K),K.tagName!=="BUTTON"&&(_(K,"button"),K.addEventListener("keydown",E)),y(K,ne),T(K,X)},P=K=>{a&&a!==K.target&&!a.contains(K.target)&&(n=!0),e.a11y.clicked=!0},j=()=>{n=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},F=K=>{o=new Date().getTime()},H=K=>{if(e.a11y.clicked||!e.params.a11y.scrollOnFocus||new Date().getTime()-o<100)return;const X=K.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!X||!e.slides.includes(X))return;a=X;const ne=e.slides.indexOf(X)===e.activeIndex,de=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(X);ne||de||K.sourceCapabilities&&K.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,requestAnimationFrame(()=>{n||(e.params.loop?e.slideToLoop(parseInt(X.getAttribute("data-swiper-slide-index")),0):e.slideTo(e.slides.indexOf(X),0),n=!1)}))},te=()=>{const K=e.params.a11y;K.itemRoleDescriptionMessage&&b(e.slides,K.itemRoleDescriptionMessage),K.slideRole&&_(e.slides,K.slideRole);const X=e.slides.length;K.slideLabelMessage&&e.slides.forEach((ne,de)=>{const he=e.params.loop?parseInt(ne.getAttribute("data-swiper-slide-index"),10):de,Le=K.slideLabelMessage.replace(/\{\{index\}\}/,he+1).replace(/\{\{slidesLength\}\}/,X);y(ne,Le)})},oe=()=>{const K=e.params.a11y;e.el.append(r);const X=e.el;K.containerRoleDescriptionMessage&&b(X,K.containerRoleDescriptionMessage),K.containerMessage&&y(X,K.containerMessage),K.containerRole&&_(X,K.containerRole);const ne=e.wrapperEl,de=K.id||ne.getAttribute("id")||`swiper-wrapper-${c(16)}`,he=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";x(ne,de),A(ne,he),te();let{nextEl:Le,prevEl:qe}=e.navigation?e.navigation:{};Le=zt(Le),qe=zt(qe),Le&&Le.forEach(Ge=>k(Ge,de,K.nextSlideMessage)),qe&&qe.forEach(Ge=>k(Ge,de,K.prevSlideMessage)),R()&&zt(e.pagination.el).forEach(Ge=>{Ge.addEventListener("keydown",E)}),Xi().addEventListener("visibilitychange",F),e.el.addEventListener("focus",H,!0),e.el.addEventListener("focus",H,!0),e.el.addEventListener("pointerdown",P,!0),e.el.addEventListener("pointerup",j,!0)};function se(){r&&r.remove();let{nextEl:K,prevEl:X}=e.navigation?e.navigation:{};K=zt(K),X=zt(X),K&&K.forEach(ne=>ne.removeEventListener("keydown",E)),X&&X.forEach(ne=>ne.removeEventListener("keydown",E)),R()&&zt(e.pagination.el).forEach(ne=>{ne.removeEventListener("keydown",E)}),Xi().removeEventListener("visibilitychange",F),e.el&&typeof e.el!="string"&&(e.el.removeEventListener("focus",H,!0),e.el.removeEventListener("pointerdown",P,!0),e.el.removeEventListener("pointerup",j,!0))}i("beforeInit",()=>{r=Qh("span",e.params.a11y.notificationClass),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true")}),i("afterInit",()=>{e.params.a11y.enabled&&oe()}),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&te()}),i("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&w()}),i("paginationUpdate",()=>{e.params.a11y.enabled&&$()}),i("destroy",()=>{e.params.a11y.enabled&&se()})}function fS(t){let{swiper:e,extendParams:s,on:i,emit:r,params:n}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},s({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,o,l=n&&n.autoplay?n.autoplay.delay:3e3,c=n&&n.autoplay?n.autoplay.delay:3e3,d,p=new Date().getTime(),_,b,T,y,x,A,C;function S(X){!e||e.destroyed||!e.wrapperEl||X.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",S),!(C||X.detail&&X.detail.bySwiperTouchMove)&&P())}const E=()=>
vendor: 1,977 bytes, line 271
271{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?_=!0:_&&(c=d,_=!1);const X=e.autoplay.paused?d:p+c-new Date().getTime();e.autoplay.timeLeft=X,r("autoplayTimeLeft",X,X/l),o=requestAnimationFrame(()=>{E()})},w=()=>{let X;return e.virtual&&e.params.virtual.enabled?X=e.slides.find(ne=>ne.classList.contains("swiper-slide-active")):X=e.slides[e.activeIndex],X?parseInt(X.getAttribute("data-swiper-autoplay"),10):void 0},O=X=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),E();let ne=typeof X>"u"?e.params.autoplay.delay:X;l=e.params.autoplay.delay,c=e.params.autoplay.delay;const de=w();!Number.isNaN(de)&&de>0&&typeof X>"u"&&(ne=de,l=de,c=de),d=ne;const he=e.params.speed,Le=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(he,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,he,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(he,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,he,!0,!0),r("autoplay")),e.params.cssMode&&(p=new Date().getTime(),requestAnimationFrame(()=>{O()})))};return ne>0?(clearTimeout(a),a=setTimeout(()=>{Le()},ne)):requestAnimationFrame(()=>{Le()}),ne},R=()=>{p=new Date().getTime(),e.autoplay.running=!0,O(),r("autoplayStart")},$=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(o),r("autoplayStop")},k=(X,ne)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),X||(A=!0);const de=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",S):P()};if(e.autoplay.paused=!0,ne){x&&(d=e.params.autoplay.delay),x=!1,de();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-p),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),de())},P=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(p=new Date().getTime(),A?(A=!1,O(d)):O(),e.autoplay.paused=!1,r("autoplayResume"))},j=()=>
271{if(e.destroyed||!e.autoplay.running)return;const X=Xi();X.visibilityState==="hidden"&&(A=!0,k(!0)),X.visibilityState==="visible"&&P()},F=X=>{X.pointerType==="mouse"&&(A=!0,C=!0,!(e.animating||e.autoplay.paused)&&k(!0))},H=X=>{X.pointerType==="mouse"&&(C=!1,e.autoplay.paused&&P())},te=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",F),e.el.addEventListener("pointerleave",H))},oe=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",F),e.el.removeEventListener("pointerleave",H))},se=()=>{Xi().addEventListener("visibilitychange",j)},K=()=>{Xi().removeEventListener("visibilitychange",j)};i("init",()=>{e.params.autoplay.enabled&&(te(),se(),R())}),i("destroy",()=>{oe(),K(),e.autoplay.running&&$()}),i("_freeModeStaticRelease",()=>{(T||A)&&P()}),i("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?$():k(!0,!0)}),i("beforeTransitionStart",(X,ne,de)=>{e.destroyed||!e.autoplay.running||(de||!e.params.autoplay.disableOnInteraction?k(!0,!0):$())}),i("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){$();return}b=!0,T=!1,A=!1,y=setTimeout(()=>{A=!0,T=!0,k(!0)},200)}}),i("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!b)){if(clearTimeout(y),clearTimeout(a),e.params.autoplay.disableOnInteraction){T=!1,b=!1;return}T&&e.params.cssMode&&P(),T=!1,b=!1}}),i("slideChange",()=>{e.destroyed||!e.autoplay.running||(x=!0)}),Object.assign(e.autoplay,{start:R,stop:$,pause:k,resume:P})}function pS(t){let{swiper:e,extendParams:s,on:i}=t;s({grid:{rows:1,fill:"column"}});let r,n,a,o;const l=()=>{let y=e.params.spaceBetween;return typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*e.size:typeof y=="string"&&(y=parseFloat(y)),y},c=y=>{const{slidesPerView:x}=e.params,{rows:A,fill:C}=e.params.grid,S=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:y.length;a=Math.floor(S/A),Math.floor(S/A)===S/A?r=S:r=Math.ceil(S/A)*A,x!=="auto"&&C==="row"&&(r=Math.max(r,x*A)),n=r/A},d=()=>{e.slides&&e.slides.forEach(y=>{y.swiperSlideGridSet&&(y.style.height="",y.style[e.getDirectionLabel("margin-top")]="")})},p=(y,x,A)=>{const{slidesPerGroup:C}=e.params,S=l(),{rows:E,fill:w}=e.params.grid,O=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:A.length;let R,$,k;if(w==="row"&&C>1){const P=Math.floor(y/(C*E)),j=y-E*C*P,F=P===0?C:Math.min(Math.ceil((O-P*E*C)/E),C);k=Math.floor(j/F),$=j-k*F+P*C,R=$+k*r/E,x.style.order=R}else w==="column"?($=Math.floor(y/E),k=y-$*E,($>a||$===a&&k===E-1)&&(k+=1,k>=E&&(k=0,$+=1))):(k=Math.floor(y/n),$=y-k*n);x.row=k,x.column=$,x.style.height=`calc((100% - ${(E-1)*S}px) / ${E})`,x.style[e.getDirectionLabel("margin-top")]=k!==0?S&&`${S}px`:"",x.swiperSlideGridSet=!0},_=(y,x)=>{const{centeredSlides:A,roundLengths:C}=e.params,S=l(),{rows:E}=e.params.grid;if(e.virtualSize=(y+S)*r,e.virtualSize=Math.ceil(e.virtualSize/E)-S,e.params.cssMode||(e.wrapperEl.style[e.getDirectionLabel("width")]=`${e.virtualSize+S}px`),A){const w=[];for(let O=0;O<x.length;O+=1){let R=x[O];C&&(R=Math.floor(R)),x[O]<e.virtualSize+x[0]&&w.push(R)}x.splice(0,x.length),x.push(...w)}},b=()=>{o=e.params.grid&&e.params.grid.rows>1},T=()=>{const{params:y,el:x}=e,A=y.grid&&y.grid.rows>1;o&&!A?(x.classList.remove(`${y.containerModifierClass}grid`,`${y.containerModifierClass}grid-column`),a=1,e.emitContainerClasses()):!o&&A&&(x.classList.add(`${y.containerModifierClass}grid`),y.grid.fill==="column"&&x.classList.add(`${y.containerModifierClass}grid-column`),e.emitContainerClasses()),o=A};i("init",b),i("update",T),e.grid={initSlides:c,unsetSlides:d,updateSlide:p,updateWrapperSize:_}}const yK={class:"default-episode"},_K=["src","alt"],vK=["onClick"],bK={class:"swiper-container-wrapper",style:{position:"relative"}},TK={class:"episode-slide"},SK={class:"default-episode"},EK=["src","alt"],xK=["onClick"],CK={class:"default-footer"},wK=Cs({__name:"LatestEpisodes",props:{episodes:{type:Array,required:!0},loading:{type:Boolean,default:!1},limit:{type:Number,default:10},defaultImage:{type:String,default:"/images/default.png"},enableSwiper:{type:Boolean,default:!1},customSwiperOptions:{type:Object,default:()=>({})},containerClass:String,loaderClass:String,listClass:String,itemClass:String,imageClass:String,buttonClass:String,titleClass:String,dateClass:String,descClass:String,routerName:String,routerClass:String},emits:["play-episode"],setup(t,{emit:e}){const s=[pS,dS,hS,cS,fS],i=t,{formatDate:r}=Hg(),n=e,a=x=>{n("play-episode",x)},o=x=>{x.target.src=i.defaultImage},l={slidesPerView:1,spaceBetween:0,loop:!0,keyboard:{enabled:!0},navigation:{nextEl:null,prevEl:null},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",slideLabelMessage:"Slide {{index}} of {{slidesLength}}"},breakpoint:{600:{slidesPerView:2,spaceBetween:15},1200:{slidesPerView:3,spaceBetween:15},1500:{slidesPerView:4,spaceBetween:15},2100:{slidesPerView:5,spaceBetween:15}}},c=mt(()=>({...l,...i.customSwiperOptions,navigation:{...l.navigation,...i.customSwiperOptions.navigation||{}},a11y:{...l.a11y,...i.customSwiperOptions.a11y||{}},breakpoints:{...l.breakpoint,...i.customSwiperOptions.breakpoints||{}}})),d=Je(null),p=Je(null),_=Je(null),b=x=>{_.value=x};$s([_,d,p],([x,A,C])=>{x&&A&&C&&(x.params.navigation.nextEl=A,x.params.navigation.prevEl=C,x.navigation&&x.navigation.destroy&&x.navigation.init&&(x.navigation.destroy(),x.navigation.init(),x.navigation.update()))});function T(x){var A;x.key==="Enter"&&((A=d.value)==null||A.click())}function y(x){var A;x.key==="Enter"&&((A=p.value)==null||A.click())}return(x,A)=>{const C=Gn("RouterLink");return Ce(),ke("div",{class:ye(["latest-episodes",t.containerClass])},[t.enableSwiper?(Ce(),ke(_t,{key:1},[t.episodes&&t.episodes.length?(Ce(),ke("div",{key:0,class:ye(["episodes-list",t.listClass])},[ie("div",bK,[ze(gt(lS),df({modules:s},c.value,{onSwiper:b,style:{width:"100%"}}),{default:ot(()=>[(Ce(!0),ke(_t,null,Ws(t.episodes.slice(0,t.limit),S=>(Ce(),on(gt(uS),{key:S.ID,class:ye(["episode-item",t.itemClass])},{default:ot(()=>[ie("div",TK,[bt(x.$slots,"episode",{episode:S},()=>[ie("div",SK,[ze(C,{to:{name:t.routerName,params:{EID:S.ID}},title:S.Title,class:ye(t.routerClass)},{default:ot(()=>[ie("img",{src:S.programmeImage||t.defaultImage,alt:S.Title,class:ye(["episode-image",t.imageClass]),onError:o},null,42,EK)]),_:2},1032,["to","title","class"]),ie("button",{onClick:Sn(E=>a(S),["stop"]),type:"button",class:ye(["play-button",t.buttonClass]),"aria-label":"Play episode"},A[1]||(A[1]=[ie("i",{class:"material-icons","aria-hidden":"true"},"play_arrow",-1)]),10,xK),ze(C,{to:{name:t.routerName,params:{EID:S.ID}},title:S.Title,class:ye(t.routerClass)},{default:ot(()=>[ie("p",{class:ye(["episode-date",t.dateClass])}," Published: "+Be(gt(r)(S.PublishDate)),3),ie("h5",{class:ye(["episode-title",t.titleClass])},Be(S.Title),3),ie("span",{class:ye(["episode-desc",t.descClass])}
271,Be(S.Description),3)]),_:2},1032,["to","title","class"])])],!0)])]),_:2},1032,["class"]))),128))]),_:3},16),ie("button",{class:"swiper-button-next",ref_key:"nextElEpisode",ref:d,onKeydown:T},A[2]||(A[2]=[ie("span",{class:"sr-only"},"Next",-1)]),544),ie("button",{class:"swiper-button-prev",ref_key:"prevElEpisode",ref:p,onKeydown:y},A[3]||(A[3]=[ie("span",{class:"sr-only"},"Prev",-1)]),544)])],2)):vt("",!0)],64)):(Ce(),ke(_t,{key:0},[t.episodes&&t.episodes.length?(Ce(),ke("div",{key:0,class:ye(["episodes-list",t.listClass])},[(Ce(!0),ke(_t,null,Ws(t.episodes.slice(0,t.limit),S=>(Ce(),ke("div",{key:S.ID,class:ye(["episode-item",t.itemClass])},[bt(x.$slots,"episode",{episode:S},()=>[ie("div",yK,[ze(C,{to:{name:t.routerName,params:{slug:S.programmeSlug}},title:S.Title,class:ye(t.routerClass)},{default:ot(()=>[ie("img",{src:S.programmeImage||t.defaultImage,alt:S.Title,class:ye(["episode-image",t.imageClass]),onError:o},null,42,_K)]),_:2},1032,["to","title","class"]),ie("button",{onClick:Sn(E=>a(S),["stop"]),type:"button",class:ye(["play-button",t.buttonClass]),"aria-label":"Play episode"},A[0]||(A[0]=[ie("i",{class:"material-icons","aria-hidden":"true"},"play_arrow",-1)]),10,vK),ze(C,{to:{name:t.routerName,params:{slug:S.programmeSlug}},title:S.Title,class:ye(t.routerClass)},{default:ot(()=>[ie("p",{class:ye(["episode-date",t.dateClass])}," Published: "+Be(gt(r)(S.PublishDate)),3),ie("h5",{class:ye(["episode-title",t.titleClass])},Be(S.Title),3),ie("span",{class:ye(["episode-desc",t.descClass])},Be(S.Description),3)]),_:2},1032,["to","title","class"])])],!0)],2))),128))],2)):vt("",!0)],64)),bt(x.$slots,"footer",{},()=>[ie("div",CK,[ze(C,{to:"/episodes"},{default:ot(()=>A[4]||(A[4]=[ys("Find more latest episodes")])),_:1})])],!0)],2)}}}),wc=(t,e)=>{const s=t.__vccOpts||t;for(const[i,r]of e)s[i]=r;return s},AK=wc(wK,[["__scopeId","data-v-5994d4e7"]]),kK={class:"default-programme"},DK=["src","alt"],IK={class:"swiper-container-wrapper",style:{position:"relative"}},PK={class:"programme-slide"},LK={class:"default-programme"},OK=["src","alt"],NK={class:"default-footer"},RK=Cs({__name:"FeaturedProgrammes",props:{programmes:{type:Array,required:!0},loading:{type:Boolean,default:!1},defaultImage:{type:String,default:"/images/default.png"},enableSwiper:{type:Boolean,default:!1},customSwiperOptions:{type:Object,default:()=>({})},containerClass:String,loaderClass:String,listClass:String,itemClass:String,imageClass:String,titleClass:String,dateClass:String,descClass:String,emptyClass:String,routerName:String,routerClass:String},setup(t){const e=[pS,dS,hS,cS,fS],s=t,i=_=>{_.target.src=s.defaultImage},r={slidesPerView:1,spaceBetween:0,loop:!0,keyboard:{enabled:!0},navigation:{nextEl:null,prevEl:null},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",slideLabelMessage:"Slide {{index}} of {{slidesLength}}"},breakpoint:{600:{slidesPerView:2,spaceBetween:15},1200:{slidesPerView:3,spaceBetween:15},1500:{slidesPerView:4,spaceBetween:15},2100:{slidesPerView:5,spaceBetween:15}}},n=mt(()=>({...r,...s.customSwiperOptions,navigation:{...r.navigation,...s.customSwiperOptions.navigation||{}},a11y:{...r.a11y,...s.customSwiperOptions.a11y||{}},breakpoints:{...r.breakpoint,...s.customSwiperOptions.breakpoints||{}}})),a=Je(null),o=Je(null),l=Je(null),c=_=>{l.value=_};$s([l,a,o],([_,b,T])=>{_&&b&&T&&(_.params.navigation.nextEl=b,_.params.navigation.prevEl=T,_.navigation&&_.navigation.destroy&&_.navigation.init&&(_.navigation.destroy(),_.navigation.init(),_.navigation.update()))});const d=_=>{var b;_.key==="Enter"&&((b=a.value)==null||b.click())},p=_=>{var b;_.key==="Enter"&&((b=o.value)==null||b.click())};return(_,b)=>{const T=Gn("RouterLink");return Ce(),ke("div",{class:ye(["featured-programmes",t.containerClass])},[t.enableSwiper?(Ce(),ke(_t,{key:1},[t.programmes&&t.programmes.length?(Ce(),ke("div",{key:0,class:ye(["programmes-list",t.listClass])},[ie("div",IK,[ze(gt(lS),df({modules:e},n.value,{onSwiper:c,style:{width:"100%"}}),{default:ot(()=>[(Ce(!0),ke(_t,null,Ws(t.programmes,y=>(Ce(),on(gt(uS),{key:y.ID,class:ye(["programme-item",t.itemClass])},{default:ot(()=>[ie("div",PK,[bt(_.$slots,"programme",{programme:y},()=>[ie("div",LK,[ze(T,{to:{name:t.routerName,params:{slug:y.Slug}},title:y.Title},{default:ot(()=>[ie("img",{src:`https://images.accessmedia.nz/StationFolder/${y.folder}/Images/${y.Image}`,alt:y.Title,class:"img-raised rounded",onError:i},null,40,OK)]),_:2},1032,["to","title"]),ze(T,{to:{name:t.routerName,params:{slug:y.Slug}},title:y.Title,class:ye(t.routerClass)},{default:ot(()=>[ie("h5",{class:ye(["programme-title",t.titleClass])},Be(y.Title),3),ie("span",{class:ye(["programme-desc",t.descClass])}
271,Be(y.Short_Description),3)]),_:2},1032,["to","title","class"])])],!0)])]),_:2},1032,["class"]))),128))]),_:3},16),ie("button",{class:"swiper-button-next",ref_key:"nextElProgramme",ref:a,onKeydown:d},b[1]||(b[1]=[ie("span",{class:"sr-only"},"Next",-1)]),544),ie("button",{class:"swiper-button-prev",ref_key:"prevElProgramme",ref:o,onKeydown:p},b[2]||(b[2]=[ie("span",{class:"sr-only"},"Prev",-1)]),544)])],2)):(Ce(),ke("div",{key:1,class:ye(["no-programmes",t.emptyClass])},[bt(_.$slots,"empty",{},()=>[b[3]||(b[3]=ie("p",null,"No programmes available.",-1))],!0)],2))],64)):(Ce(),ke(_t,{key:0},[t.programmes&&t.programmes.length?(Ce(),ke("div",{key:0,class:ye(["programmes-list",t.listClass])},[(Ce(!0),ke(_t,null,Ws(t.programmes,y=>(Ce(),ke("div",{key:y.ID,class:ye(["programme-item",t.itemClass])},[bt(_.$slots,"programme",{programme:y},()=>[ie("div",kK,[ze(T,{to:{name:t.routerName,params:{slug:y.Slug}},title:y.Title},{default:ot(()=>[ie("img",{src:`https://images.accessmedia.nz/StationFolder/${y.folder}/Images/${y.Image}`,alt:y.Title,class:"img-raised rounded",onError:i},null,40,DK)]),_:2},1032,["to","title"]),ze(T,{to:{name:t.routerName,params:{slug:y.Slug}},title:y.Title,class:ye(t.routerClass)},{default:ot(()=>[ie("h5",{class:ye(["programme-title",t.titleClass])},Be(y.Title),3),ie("span",{class:ye(["programme-desc",t.descClass])},Be(y.Short_Description),3)]),_:2},1032,["to","title","class"])])],!0)],2))),128))],2)):(Ce(),ke("div",{key:1,class:ye(["no-programmes",t.emptyClass])},[bt(_.$slots,"empty",{},()=>[b[0]||(b[0]=ie("p",null,"No programmes available.",-1))],!0)],2))],64)),bt(_.$slots,"footer",{},()=>[ie("div",NK,[ze(T,{to:"/programmes"},{default:ot(()=>b[4]||(b[4]=[ys("Find more featured programmes")])),_:1})])],!0)],2)}}}),MK=wc(RK,[["__scopeId","data-v-8ef15d86"]]),FK={class:"programme-header"},BK={class:"programme-image-wrapper"},UK=["src","alt"],$K={key:0,class:"programme-host"},jK={key:1,class:"programme-category"},HK={key:2,class:"programme-language"},qK={key:3,class:"programme-broadcast-times"},VK=["innerHTML"],zK={key:0,class:"programme-sponsor"},GK={class:"sponsor-info"},WK=["src","alt"],XK={key:0},KK={class:"sponsor-details"},YK={key:0},QK=["href"],JK=["href"],ZK=["href"],eY=["title"],tY={key:1},sY={class:"episode-header"},iY=["onClick"],rY={class:"material-icons","aria-hidden":"true"},nY={class:"episode-description"},aY={class:"episode-icons"},oY=["onClick"],lY=["title","onClick"],zC=10,uY=Cs({__name:"ProgrammeItem",props:{station:{type:Object,required:!0},selectedProgramme:{type:Object,required:!0},episodes:{type:Array,required:!0},loading:{type:Boolean,default:!1},defaultImage:{type:String,default:"/images/default.png"},routerSearch:{type:String,required:!0},routerEpisode:{type:String,required:!0},titleClass:String,containerClass:String,detailsSectionClass:String,imageClass:String,metadataClass:String,descriptionClass:String,linksClass:String,emptyClass:String,episodeContainerClass:String,episodeListClass:String,episodeItemClass:String,episodeTitleClass:String,episodeDateClass:String,episodePlayerClass:String,episodeButtonClass:String,episodeDownloadClass:String,episodeCopyClass:String,videoPlayerClass:String,sponsorImageClass:String,useHtmlDescription:{type:Boolean,default:!1}},emits:["play-episode","now-playing"],setup(t,{emit:e}){const s=t,{formatDate:i,currentNZDateTime:r}=Hg(),n=Je(null),a=Je("https://ondemand.accessmedia.nz"),o=Je("https://accessmedia.nz/player"),l=Je([]),c=Je(!1),d=e;$s(()=>s.selectedProgramme,(E,w)=>{E!==w&&(c.value=!0,setTimeout(()=>{c.value=!1},500))},{immediate:!0}),$s(()=>s.episodes,E=>{l.value=E.slice(0,zC)},{immediate:!0});const p=()=>{const E=l.value.length,w=s.episodes.slice(E,E+zC);l.value.push(...w)},_=E=>{E.target.src=s.defaultImage},b=E=>{navigator.clipboard.writeText(E).then(()=>{alert("Link copied to clipboard!")})},T=E=>{d("play-episode",E),n.value=E.ID},y=E=>{if(!E.PublishDate)return!1;const w=new Date(E.PublishDate).getTime(),O=new Date(r.value).getTime(),R=7*24*60*60*1e3;return O-w<=R},x=E=>{const w=`/StationFolder/${s.station.Folder}/`,O=`${a.value}${w}${E.MediaFile}`,R=document.createElement("a");R.href=O,R.download=E.Title||"download",document.body.appendChild(R),R.click(),document.body.removeChild(R)},A=mt(()=>`https://feeds.accessmedia.nz/V2/itunes/${s.selectedProgramme.ID}`),C=mt(()=>`https://images.accessmedia.nz/StationFolder/${s.station.Folder}/Images/${s.selectedProgramme.Image}`.replace(/ /g,"%20")),S=mt(()=>s.selectedProgramme.SponsorImage?`https://images.accessmedia.nz/StationFolder/${s.selectedProgramme.SponsorImage}`.replace(/ /g,"%20"):s.defaultImage);return(E,w)=>{const O=Gn("RouterLink");return Ce(),ke("div",{class:ye(["programme-item",t.containerClass])},[ie("div",FK,[ie("div",BK,[bt(E.$slots,"image",{},()=>[ie("img",{src:C.value||t.defaultImage,alt:t.selectedProgramme.Title,class:ye(["programme-image",t.imageClass]),onError:_},null,42,UK)],!0)]),bt(E.$slots,"title",{},()=>[ie("h1",{class:ye(["programme-title",t.titleClass])},Be(t.selectedProgramme.Title),3)],!0)]),ie("div",{class:ye(["programme-details-section",t.detailsSectionClass])},[bt(E.$slots,"metadata",{},()=>[ie("p",null,[t.selectedProgramme.Host?(Ce(),ke("span",$K," Host: "+Be(t.selectedProgramme.Host),1)):vt("",!0),t.selectedProgramme.Category?(Ce(),ke("span",jK,[w[
2711]||(w[1]=ys(" Categories: ")),ze(O,{to:{name:t.routerSearch,query:{Category:t.selectedProgramme.Category}}},{default:ot(()=>[ys(Be(t.selectedProgramme.Category),1)]),_:1},8,["to"])])):vt("",!0),t.selectedProgramme.Language?(Ce(),ke("span",HK,[w[2]||(w[2]=ys(" Languages: ")),ze(O,{to:{name:t.routerSearch,query:{Language:t.selectedProgramme.Language}}},{default:ot(()=>[ys(Be(t.selectedProgramme.Language),1)]),_:1},8,["to"])])):vt("",!0),t.selectedProgramme.BroadcastTimes?(Ce(),ke("span",qK," Broadcast Times: "+Be(t.selectedProgramme.BroadcastTimes),1)):vt("",!0)])],!0)],2),bt(E.$slots,"description",{},()=>[t.useHtmlDescription&&t.selectedProgramme.Web_Description?(Ce(),ke("div",{key:0,class:ye(["programme-description",t.descriptionClass]),innerHTML:t.selectedProgramme.Web_Description},null,10,VK)):(Ce(),ke("p",{key:1,class:ye(["programme-description",t.descriptionClass])},Be(t.selectedProgramme.Long_Description||"Description not available"),3))],!0),bt(E.$slots,"sponsor",{},()=>[t.selectedProgramme.SponsorName||t.selectedProgramme.SponsorWebsite||t.selectedProgramme.SponsorDescription?(Ce(),ke("div",zK,[w[3]||(w[3]=ie("h3",null,"This programme is sponsored by",-1)),ie("div",GK,[ie("img",{src:S.value||t.defaultImage,alt:t.selectedProgramme.SponsorName,class:ye(["sponsor-image",t.sponsorImageClass]),onError:_},null,42,WK),t.selectedProgramme.SponsorName?(Ce(),ke("h5",XK,Be(t.selectedProgramme.SponsorName),1)):vt("",!0),ie("div",KK,[t.selectedProgramme.SponsorDescription?(Ce(),ke("p",YK,Be(t.selectedProgramme.SponsorDescription),1)):vt("",!0),t.selectedProgramme.SponsorWebsite?(Ce(),ke("a",{key:1,href:t.selectedProgramme.SponsorWebsite,target:"_blank",rel:"noopener noreferrer"},"See sponsor's website",8,QK)):vt("",!0)])])])):vt("",!0)],!0),bt(E.$slots,"links",{},()=>[ie("div",{class:ye(["programme-links",t.linksClass])},[t.selectedProgramme.ITunes_Link?(Ce(),ke("a",{key:0,href:t.selectedProgramme.ITunes_Link,target:"_blank","aria-label":"iTunes Link"},w[4]||(w[4]=[ie("i",{class:"fa-brands fa-itunes"},null,-1)]),8,JK)):vt("",!0),t.selectedProgramme.Spotify_Link?(Ce(),ke("a",{key:1,href:t.selectedProgramme.Spotify_Link,target:"_blank","aria-label":"Spotify Link"},w[5]||(w[5]=[ie("i",{class:"fa-brands fa-spotify"},null,-1)]),8,ZK)):vt("",!0),ie("a",{title:"Copy podcast link "+A.value,onClick:w[0]||(w[0]=Sn(R=>b(A.value),["stop"])),"aria-label":"copy podcast link"},w[6]||(w[6]=[ie("i",{class:"fa fa-clipboard"},null,-1)]),8,eY)],2)],!0),bt(E.$slots,"episodes",{},()=>[ie("div",{class:ye(["episode-list-container",t.episodeContainerClass])},[ie("div",{id:"vid-player-section",class:ye(["video-player",t.videoPlayerClass])},[ie("div",{class:ye(["episodes-list-section",t.episodeListClass])},[l.value.length===0?(Ce(),ke("div",{key:0,class:ye(["no-episodes",t.emptyClass])},[bt(E.$slots,"empty",{},()=>[w[7]||(w[7]=ie("p",null,"No episodes available.",-1))],!0)],2)):(Ce(),ke("div",tY,[bt(E.$slots,"header",{},()=>[w[8]||(w[8]=ie("h4",{class:"default-header"},"All Episodes",-1))],!0),(Ce(!0),ke(_t,null,Ws(l.value,(R,$)=>(Ce(),ke("div",{key:$,class:ye(["episode-item",t.episodeItemClass])},[bt(E.$slots,"episode-item",{episode:R},()=>[ie("div",sY,[ie("button",{onClick:Sn(k=>T(R),["stop"]),type:"button",class:ye(["episode-playbtn",t.episodeButtonClass]),"aria-label":"Play episode"},[ie("i",rY,Be(n.value===R.ID?"chevron_right":"play_arrow"),1)],10,iY),ze(O,{class:"go-to-episode-link",to:{name:t.routerEpisode,params:{EID:R.ID}}},{default:ot(()=>[ie("h5",{class:ye(t.episodeTitleClass)},Be(R.Title),3)]),_:2},1032,["to"])]),ie("p",{class:ye(t.episodeDateClass)}," Published: "+Be(gt(i)(R.PublishDate,"do MMMM yyyy")),3),ie("div",nY,[ze(O,{class:"go-to-episode-link",to:{name:t.routerEpisode,params:{EID:R.ID}}},{default:ot(()=>[ie("p",null,Be(R.Description),1)]),_:2},1032,["to"])]),ie("div",aY,[y(R)?(Ce(),ke("a",{key:0,tabindex:"0",onClick:Sn(k=>x(R),["stop"]),class:ye(["download-icon",t.episodeDownloadClass]),"aria-label":"download episode",title:"download episode"},w[9]||(w[9]=[ie("i",{class:"fa-regular fa-circle-down fa-xl"},null,-1)]),10,oY)):vt("",!0),ie("a",{tabindex:"0",title:"Copy episode link "+o.value+"?EID="+
271R.ID,onClick:Sn(k=>b(o.value+"?EID="+R.ID),["stop"]),class:ye(["copy-icon",t.episodeCopyClass]),"aria-label":"copy podcast link to clipboard"},w[10]||(w[10]=[ie("i",{class:"fa fa-clipboard fa-xl"},null,-1)]),10,lY)])],!0),w[11]||(w[11]=ie("hr",null,null,-1))],2))),128)),l.value.length<t.episodes.length?(Ce(),ke("button",{key:0,onClick:p,type:"button",class:"load-more","aria-label":"Load more episodes"}," Load More Episodes ")):vt("",!0)]))],2)],2)],2)],!0)],2)}}}),cY=wc(uY,[["__scopeId","data-v-2662aa3b"]]);var bm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function dY(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var s=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};s.prototype=e.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(s,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),s}var q_,GC;function qg(){if(GC)return q_;GC=1;var t;return typeof window<"u"?t=window:typeof bm<"u"?t=bm:typeof self<"u"?t=self:t={},q_=t,q_}var hY=qg();const Y=Oo(hY),fY={},pY=Object.freeze(Object.defineProperty({__proto__:null,default:fY},Symbol.toStringTag,{value:"Module"})),mY=dY(pY);var V_,WC;function S4(){if(WC)return V_;WC=1;var t=typeof bm<"u"?bm:typeof window<"u"?window:{},e=mY,s;return typeof document<"u"?s=document:(s=t["__GLOBAL_DOCUMENT_CACHE@4"],s||(s=t["__GLOBAL_DOCUMENT_CACHE@4"]=e)),V_=s,V_}var gY=S4();const Ne=Oo(gY);var z_={exports:{}},XC;function yY(){return XC||(XC=1,function(t,e){function s(l){if(l&&typeof l=="object"){var c=l.which||l.keyCode||l.charCode;c&&(l=c)}if(typeof l=="number")return a[l];var d=String(l),p=i[d.toLowerCase()];if(p)return p;var p=r[d.toLowerCase()];if(p)return p;if(d.length===1)return d.charCodeAt(0)}s.isEventKey=function(l,c){if(l&&typeof l=="object"){var d=l.which||l.keyCode||l.charCode;if(d==null)return!1;if(typeof c=="string"){var p=i[c.toLowerCase()];if(p)return p===d;var p=r[c.toLowerCase()];if(p)return p===d}else if(typeof c=="number")return c===d;return!1}},e=t.exports=s;var i=e.code=e.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=e.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
272 * Programatically add the following
273 */for(n=97;n<123;n++)i[String.fromCharCode(n)]=n-32;for(var n=48;n<58;n++)i[n-48]=n;for(n=1;n<13;n++)i["f"+n]=n+111;for(n=0;n<10;n++)i["numpad "+n]=n+96;var a=e.names=e.title={};for(n in i)a[i[n]]=n;for(var o in r)i[o]=r[o]}(z_,z_.exports)),z_.exports}var _Y=yY();const ct=Oo(_Y);var G_,KC;function vY(){if(KC)return G_;KC=1,G_=t;function t(e,s){var i,r=null;try{i=JSON.parse(e,s)}catch(n){r=n}return[r,i]}return G_}var bY=vY();const TY=Oo(bY);var ep={exports:{}},YC={exports:{}},QC;function SY(){return QC||(QC=1,function(t){function e(){return t.exports=e=Object.assign?Object.assign.bind():function(s){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var n in r)({}).hasOwnProperty.call(r,n)&&(s[n]=r[n])}return s},t.exports.__esModule=!0,t.exports.default=t.exports,e.apply(null,arguments)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(YC)),YC.exports}var W_,JC;function EY(){if(JC)return W_;JC=1,W_=e;var t=Object.prototype.toString;function e(s){if(!s)return!1;var i=t.call(s);return i==="[object Function]"||typeof s=="function"&&i!=="[object RegExp]"||typeof window<"u"&&(s===window.setTimeout||s===window.alert||s===window.confirm||s===window.prompt)}return W_}var X_,ZC;function xY(){if(ZC)return X_;ZC=1;var t=qg(),e=function(i,r){return r===void 0&&(r=!1),function(n,a,o){if(n){i(n);return}if(a.statusCode>=400&&a.statusCode<=599){var l=o;if(r)if(t.TextDecoder){var c=s(a.headers&&a.headers["content-type"]);try{l=new TextDecoder(c).decode(o)}catch{}}else l=String.fromCharCode.apply(null,new Uint8Array(o));i({cause:l});return}i(null,o)}};function s(i){return i===void 0&&(i=""),i.toLowerCase().split(";").reduce(function(r,n){var a=n.split("="),o=a[0],l=a[1];return o.trim()==="charset"?l.trim():r},"utf-8")}return X_=e,X_}var ew;function CY(){if(ew)return ep.exports;ew=1;var t=qg(),e=SY(),s=EY();o.httpHandler=xY();/**
274 * @license
275 * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
276 * Copyright (c) 2014 David Björklund
277 * Available under the MIT license
278 * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
279 */var i=function(p){var _={};return p&&p.trim().split(`
280`).forEach(function(b){var T=b.indexOf(":"),y=b.slice(0,T).trim().toLowerCase(),x=b.slice(T+1).trim();typeof _[y]>"u"?_[y]=x:Array.isArray(_[y])?_[y].push(x):_[y]=[_[y],x]}),_};
vendor: 6,321 bytes, line 280
280ep.exports=o,ep.exports.default=o,o.XMLHttpRequest=t.XMLHttpRequest||d,o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:t.XDomainRequest,r(["get","put","post","patch","head","delete"],function(p){o[p==="delete"?"del":p]=function(_,b,T){return b=a(_,b,T),b.method=p.toUpperCase(),l(b)}});function r(p,_){for(var b=0;b<p.length;b++)_(p[b])}function n(p){for(var _ in p)if(p.hasOwnProperty(_))return!1;return!0}function a(p,_,b){var T=p;return s(_)?(b=_,typeof p=="string"&&(T={uri:p})):T=e({},_,{uri:p}),T.callback=b,T}function o(p,_,b){return _=a(p,_,b),l(_)}function l(p){if(typeof p.callback>"u")throw new Error("callback argument missing");var _=!1,b=function(H,te,oe){_||(_=!0,p.callback(H,te,oe))};function T(){C.readyState===4&&setTimeout(A,0)}function y(){var H=void 0;if(C.response?H=C.response:H=C.responseText||c(C),P)try{H=JSON.parse(H)}catch{}return H}function x(H){return clearTimeout(j),H instanceof Error||(H=new Error(""+(H||"Unknown XMLHttpRequest Error"))),H.statusCode=0,b(H,F)}function A(){if(!E){var H;clearTimeout(j),p.useXDR&&C.status===void 0?H=200:H=C.status===1223?204:C.status;var te=F,oe=null;return H!==0?(te={body:y(),statusCode:H,method:O,headers:{},url:w,rawRequest:C},C.getAllResponseHeaders&&(te.headers=i(C.getAllResponseHeaders()))):oe=new Error("Internal XMLHttpRequest Error"),b(oe,te,te.body)}}var C=p.xhr||null;C||(p.cors||p.useXDR?C=new o.XDomainRequest:C=new o.XMLHttpRequest);var S,E,w=C.url=p.uri||p.url,O=C.method=p.method||"GET",R=p.body||p.data,$=C.headers=p.headers||{},k=!!p.sync,P=!1,j,F={body:void 0,headers:{},statusCode:0,method:O,url:w,rawRequest:C};if("json"in p&&p.json!==!1&&(P=!0,$.accept||$.Accept||($.Accept="application/json"),O!=="GET"&&O!=="HEAD"&&($["content-type"]||$["Content-Type"]||($["Content-Type"]="application/json"),R=JSON.stringify(p.json===!0?R:p.json))),C.onreadystatechange=T,C.onload=A,C.onerror=x,C.onprogress=function(){},C.onabort=function(){E=!0},C.ontimeout=x,C.open(O,w,!k,p.username,p.password),k||(C.withCredentials=!!p.withCredentials),!k&&p.timeout>0&&(j=setTimeout(function(){if(!E){E=!0,C.abort("timeout");var H=new Error("XMLHttpRequest timeout");H.code="ETIMEDOUT",x(H)}},p.timeout)),C.setRequestHeader)for(S in $)$.hasOwnProperty(S)&&C.setRequestHeader(S,$[S]);else if(p.headers&&!n(p.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in p&&(C.responseType=p.responseType),"beforeSend"in p&&typeof p.beforeSend=="function"&&p.beforeSend(C),C.send(R||null),C}function c(p){try{if(p.responseType==="document")return p.responseXML;var _=p.responseXML&&p.responseXML.documentElement.nodeName==="parsererror";if(p.responseType===""&&!_)return p.responseXML}catch{}return null}function d(){}return ep.exports}var wY=CY();const E4=Oo(wY);var K_={exports:{}},Y_,tw;function AY(){if(tw)return Y_;tw=1;var t=S4(),e=Object.create||function(){function k(){}return function(P){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return k.prototype=P,new k}}();function s(k,P){this.name="ParsingError",this.code=k.code,this.message=P||k.message}s.prototype=e(Error.prototype),s.prototype.constructor=s,s.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function i(k){function P(F,H,te,oe){return(F|0)*3600+(H|0)*60+(te|0)+(oe|0)/1e3}var j=k.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return j?j[3]?P(j[1],j[2],j[3].replace(":",""),j[4]):j[1]>59?P(j[1],j[2],0,j[4]):P(0,j[1],j[2],j[4]):null}function r(){this.values=e(null)}r.prototype={set:function(k,P){!this.get(k)&&P!==""&&(this.values[k]=P)},get:function(k,P,j){return j?this.has(k)?this.values[k]:P[j]:this.has(k)?this.values[k]:P},has:function(k){return k in this.values},alt:function(k,P,j){for(var F=0;F<j.length;++F)if(P===j[F]){this.set(k,P);break}},integer:function(k,P){/^-?\d+$/.test(P)&&this.set(k,parseInt(P,10))},percent:function(k,P){return P.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(P=parseFloat(P),P>=0&&P<=100)?(this.set(k,P),!0):!1}};function n(k,P,j,F){var H=F?k.split(F):[k];for(var te in H)if(typeof H[te]=="string"){var oe=H[te].split(j);if(oe.length===2){var se=oe[0].trim(),K=oe[1].trim();P(se,K)}}}function a(k,P,j){var F=k;function H(){var se=i(k);if(se===null)throw new s(s.Errors.BadTimeStamp,"Malformed timestamp: "+F);return k=k.replace(/^[^\sa-zA-Z-]+/,""),se}function te(se,K){var X=new r;n(se,function(ne,de){switch(ne){case"region":for(var he=j.length-1;he>=0;he--)if(j[he].id===de){X.set(ne,j[he].region);break}break;case"vertical":X.alt(ne,de,["rl","lr"]);break;case"line":var Le=de.split(","),qe=Le[0];X.integer(ne,qe),X.percent(ne,qe)&&X.set("snapToLines",!1),X.alt(ne,qe,["auto"]),Le.length===2&&X.alt("lineAlign",Le[1],["start","center","end"]);break;case"position":Le=de.split(","),X.percent(ne,Le[0]),Le.length===2&&X.alt("positionAlign",Le[1],["start","center","end"]);break;case"size":X.percent(ne,de);break;case"align":X.alt(ne,de,["start","center","end","left","right"]);break}},/:/,/\s/),K.region=X.get("region",null),K.vertical=X.get("vertical","");try{K.line=X.get("line","auto")}catch{}K.lineAlign=X.get("lineAlign","start"),K.snapToLines=X.get("snapToLines",!0),K.size=X.get("size",100);try{K.align=X.get("align","center")}catch{K.align=X.get("align","middle")}try{K.position=X.get("position","auto")}catch{K.position=X.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},K.align)}K.positionAlign=X.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},K.align)}function oe(){k=k.replace(/^\s+/,"")}if(oe(),P.startTime=H(),oe(),k.substr(0,3)!=="-->")throw new s(s.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+F);k=k.substr(3),oe(),P.endTime=H(),oe(),te(k,P)}var o=t.createElement&&t.createElement("textarea"),l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},c={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},d={v:"title",lang:"lang"},p={rt:"ruby"};function _(k,P){function j(){if(!P)return null;function qe(Xe){return P=P.substr(Xe.length),Xe}var Ge=P.match(/^([^<]*)(<[^>
280]*>?)?/);return qe(Ge[1]?Ge[1]:Ge[2])}function F(qe){return o.innerHTML=qe,qe=o.textContent,o.textContent="",qe}function H(qe,Ge){return!p[Ge.localName]||p[Ge.localName]===qe.localName}function te(qe,Ge){var Xe=l[qe];if(!Xe)return null;var Et=k.document.createElement(Xe),me=d[qe];return me&&Ge&&(Et[me]=Ge.trim()),Et}for(var oe=k.document.createElement("div"),se=oe,K,X=[];(K=j())!==null;){if(K[0]==="<"){if(K[1]==="/"){X.length&&X[X.length-1]===K.substr(2).replace(">","")&&(X.pop(),se=se.parentNode);continue}var ne=i(K.substr(1,K.length-2)),de;if(ne){de=k.document.createProcessingInstruction("timestamp",ne),se.appendChild(de);continue}var he=K.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!he||(de=te(he[1],he[3]),!de)||!H(se,de))continue;if(he[2]){var Le=he[2].split(".");Le.forEach(function(qe){var Ge=/^bg_/.test(qe),Xe=Ge?qe.slice(3):qe;if(c.hasOwnProperty(Xe)){var Et=Ge?"background-color":"color",me=c[Xe];de.style[Et]=me}}),de.className=Le.join(" ")}X.push(he[1]),se.appendChild(de),se=de;continue}se.appendChild(k.document.createTextNode(F(K)))}return oe}var b=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function T(k){for(var P=0;P<b.length;P++){var j=b[P];if(k>=j[0]&&k<=j[1])return!0}return!1}function y(k){var P=[],j="",F;if(!k||!k.childNodes)return"ltr";function H(se,K){for(var X=K.childNodes.length-1;X>=0;X--)se.push(K.childNodes[X])}function te(se){if(!se||!se.length)return null;var K=se.pop(),X=K.textContent||K.innerText;if(X){var ne=X.match(/^.*(\n|\r)/);return ne?(se.length=0,ne[0]):X}if(K.tagName==="ruby")return te(se);if(K.childNodes)return H(se,K),te(se)}for(H(P,k);j=te(P);)for(var oe=0;oe<j.length;oe++)if(F=j.charCodeAt(oe),T(F))return"rtl";return"ltr"}function x(k){if(typeof k.line=="number"&&(k.snapToLines||k.line>=0&&k.line<=100))return k.line;if(!k.track||!k.track.textTrackList||!k.track.textTrackList.mediaElement)return-1;for(var P=k.track,j=P.textTrackList,F=0,H=0;H<j.length&&j[H]!==P;H++)j[H].mode==="showing"&&F++;return++F*-1}function A(){}A.prototype.applyStyles=function(k,P){P=P||this.div;for(var j in k)k.hasOwnProperty(j)&&(P.style[j]=k[j])},A.prototype.formatStyle=function(k,P){return k===0?0:k+P};function C(k,P,j){A.call(this),this.cue=P,this.cueDiv=_(k,P.text);var F={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:P.vertical===""?"horizontal-tb":P.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(F,this.cueDiv),this.div=k.document.createElement("div"),F={direction:y(this.cueDiv),writingMode:P.vertical===""?"horizontal-tb":P.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:P.align==="middle"?"center":P.align,font:j.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(F),this.div.appendChild(this.cueDiv);var H=0;switch(P.positionAlign){case"start":case"line-left":H=P.position;break;case"center":H=P.position-P.size/2;break;case"end":case"line-right":H=P.position-P.size;break}P.vertical===""?this.applyStyles({left:this.formatStyle(H,"%"),width:this.formatStyle(P.size,"%")}):this.applyStyles({top:this.formatStyle(H,"%"),height:this.formatStyle(P.size,"%")}),this.move=function(te){this.applyStyles({top:this.formatStyle(te.to
vendor: 6,692 bytes, lines 280-282
280p,"px"),bottom:this.formatStyle(te.bottom,"px"),left:this.formatStyle(te.left,"px"),right:this.formatStyle(te.right,"px"),height:this.formatStyle(te.height,"px"),width:this.formatStyle(te.width,"px")})}}C.prototype=e(A.prototype),C.prototype.constructor=C;function S(k){var P,j,F,H;if(k.div){j=k.div.offsetHeight,F=k.div.offsetWidth,H=k.div.offsetTop;var te=(te=k.div.childNodes)&&(te=te[0])&&te.getClientRects&&te.getClientRects();k=k.div.getBoundingClientRect(),P=te?Math.max(te[0]&&te[0].height||0,k.height/te.length):0}this.left=k.left,this.right=k.right,this.top=k.top||H,this.height=k.height||j,this.bottom=k.bottom||H+(k.height||j),this.width=k.width||F,this.lineHeight=P!==void 0?P:k.lineHeight}S.prototype.move=function(k,P){switch(P=P!==void 0?P:this.lineHeight,k){case"+x":this.left+=P,this.right+=P;break;case"-x":this.left-=P,this.right-=P;break;case"+y":this.top+=P,this.bottom+=P;break;case"-y":this.top-=P,this.bottom-=P;break}},S.prototype.overlaps=function(k){return this.left<k.right&&this.right>k.left&&this.top<k.bottom&&this.bottom>k.top},S.prototype.overlapsAny=function(k){for(var P=0;P<k.length;P++)if(this.overlaps(k[P]))return!0;return!1},S.prototype.within=function(k){return this.top>=k.top&&this.bottom<=k.bottom&&this.left>=k.left&&this.right<=k.right},S.prototype.overlapsOppositeAxis=function(k,P){switch(P){case"+x":return this.left<k.left;case"-x":return this.right>k.right;case"+y":return this.top<k.top;case"-y":return this.bottom>k.bottom}},S.prototype.intersectPercentage=function(k){var P=Math.max(0,Math.min(this.right,k.right)-Math.max(this.left,k.left)),j=Math.max(0,Math.min(this.bottom,k.bottom)-Math.max(this.top,k.top)),F=P*j;return F/(this.height*this.width)},S.prototype.toCSSCompatValues=function(k){return{top:this.top-k.top,bottom:k.bottom-this.bottom,left:this.left-k.left,right:k.right-this.right,height:this.height,width:this.width}},S.getSimpleBoxPosition=function(k){var P=k.div?k.div.offsetHeight:k.tagName?k.offsetHeight:0,j=k.div?k.div.offsetWidth:k.tagName?k.offsetWidth:0,F=k.div?k.div.offsetTop:k.tagName?k.offsetTop:0;k=k.div?k.div.getBoundingClientRect():k.tagName?k.getBoundingClientRect():k;var H={left:k.left,right:k.right,top:k.top||F,height:k.height||P,bottom:k.bottom||F+(k.height||P),width:k.width||j};return H};function E(k,P,j,F){function H(Xe,Et){for(var me,Ie=new S(Xe),De=1,Fe=0;Fe<Et.length;Fe++){for(;Xe.overlapsOppositeAxis(j,Et[Fe])||Xe.within(j)&&Xe.overlapsAny(F);)Xe.move(Et[Fe]);if(Xe.within(j))return Xe;var Ze=Xe.intersectPercentage(j);De>Ze&&(me=new S(Xe),De=Ze),Xe=new S(Ie)}return me||Ie}var te=new S(P),oe=P.cue,se=x(oe),K=[];if(oe.snapToLines){var X;switch(oe.vertical){case"":K=["+y","-y"],X="height";break;case"rl":K=["+x","-x"],X="width";break;case"lr":K=["-x","+x"],X="width";break}var ne=te.lineHeight,de=ne*Math.round(se),he=j[X]+ne,Le=K[0];Math.abs(de)>he&&(de=de<0?-1:1,de*=Math.ceil(he/ne)*ne),se<0&&(de+=oe.vertical===""?j.height:j.width,K=K.reverse()),te.move(Le,de)}else{var qe=te.lineHeight/j.height*100;switch(oe.lineAlign){case"center":se-=qe/2;break;case"end":se-=qe;break}switch(oe.vertical){case"":P.applyStyles({top:P.formatStyle(se,"%")});break;case"rl":P.applyStyles({left:P.formatStyle(se,"%")});break;case"lr":P.applyStyles({right:P.formatStyle(se,"%")});break}K=["+y","-x","+x","-y"],te=new S(P)}var Ge=H(te,K);P.move(Ge.toCSSCompatValues(j))}function w(){}w.StringDecoder=function(){return{decode:function(k){if(!k)return"";if(typeof k!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(k))}}},w.convertCueToDOMTree=function(k,P){return!k||!P?null:_(k,P)};var O=.05,R="sans-serif",$="1.5%";return w.processCues=function(k,P,j){if(!k||!P||!j)return null;for(;j.firstChild;)j.removeChild(j.firstChild);var F=k.document.createElement("div");F.style.position="absolute",F.style.left="0",F.style.right="0",F.style.top="0",F.style.bottom="0",F.style.margin=$,j.appendChild(F);function H(ne){for(var de=0;de<ne.length;de++)if(ne[de].hasBeenReset||!ne[de].displayState)return!0;return!1}if(!H(P)){for(var te=0;te<P.length;te++)F.appendChild(P[te].displayState);return}var oe=[],se=S.getSimpleBoxPosition(F),K=Math.round(se.height*O*100)/100,X={font:K+"px "+R};(function(){for(var ne,de,he=0;he<P.length;he++)de=P[he],ne=new C(k,de,X),F.appendChild(ne.div),E(k,ne,se,oe),de.displayState=ne.div,oe.push(S.getSimpleBoxPosition(ne))})()},w.Parser=function(k,P,j){j||(j=P,P={}),P||(P={}),this.window=k,this.vttjs=P,this.state="INITIAL",this.buffer="",this.decoder=j||new TextDecoder("utf8"),this.regionList=[]},w.Parser.prototype={reportOrThrowError:function(k){if(k instanceof s)this.onparsingerror&&this.onparsingerror(k);else throw k},parse:function(k){var P=this;k&&(P.buffer+=P.decoder.decode(k,{stream:!0}));function j(){for(var ne=P.buffer,de=0;de<ne.length&&ne[de]!=="\r"&&ne[de]!==`
281`;)++de;var he=ne.substr(0,de);return ne[de]==="\r"&&++de,ne[de]===`
282`&&++de,P.buffer=ne.substr(de),he}function F(ne){var de=new r;if(n(ne,function(Le,qe){switch(Le){case"id":de.set(Le,qe);break;case"width":de.percent(Le,qe);break;case"lines":de.integer(Le,qe);break;case"regionanchor":case"viewportanchor":var Ge=qe.split(",");if(Ge.length!==2)break;var Xe=new r;if(Xe.percent("x",Ge[0]),Xe.percent("y",Ge[1]),!Xe.has("x")||!Xe.has("y"))break;de.set(Le+"X",Xe.get("x")),de.set(Le+"Y",Xe.get("y"));break;case"scroll":de.alt(Le,qe,["up"]);break}},/=/,/\s/),de.has("id")){var he=new(P.vttjs.VTTRegion||P.window.VTTRegion);he.width=de.get("width",100),he.lines=de.get("lines",3),he.regionAnchorX=de.get("regionanchorX",0),he.regionAnchorY=de.get("regionanchorY",100),he.viewportAnchorX=de.get("viewportanchorX",0),he.viewportAnchorY=de.get("viewportanchorY",100),he.scroll=de.get("scroll",""),P.onregion&&P.onregion(he),P.regionList.push({id:de.get("id"),region:he})}}function H(ne){var de=new r;n(ne,function(he,Le){switch(he){case"MPEGT":de.integer(he+"S",Le);break;case"LOCA":de.set(he+"L",i(Le));break}},/[^\d]:/,/,/),P.ontimestampmap&&P.ontimestampmap({MPEGTS:de.get("MPEGTS"),LOCAL:de.get("LOCAL")})}function te(ne){ne.match(/X-TIMESTAMP-MAP/)?n(ne,function(de,he){switch(de){case"X-TIMESTAMP-MAP":H(he);break}},/=/):n(ne,function(de,he){switch(de){case"Region":F(he);break}},/:/)}try{var oe;if(P.state==="INITIAL"){if(!/\r\n|\n/.test(P.buffer))return this;oe=j();var se=oe.match(/^WEBVTT([ \t].*)?$/);if(!se||!se[0])throw new s(s.Errors.BadSignature);P.state="HEADER"}for(var K=!1;P.buffer;){if(!/\r\n|\n/.test(P.buffer))return this;switch(K?K=!1:oe=j(),P.state){case"HEADER":/:/.test(oe)?te(oe):oe||(P.state="ID");continue;case"NOTE":oe||(P.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(oe)){P.state="NOTE";break}if(!oe)continue;
282P.cue=new(P.vttjs.VTTCue||P.window.VTTCue)(0,0,"");try{P.cue.align="center"}catch{P.cue.align="middle"}if(P.state="CUE",oe.indexOf("-->")===-1){P.cue.id=oe;continue}case"CUE":try{a(oe,P.cue,P.regionList)}catch(ne){P.reportOrThrowError(ne),P.cue=null,P.state="BADCUE";continue}P.state="CUETEXT";continue;case"CUETEXT":var X=oe.indexOf("-->")!==-1;if(!oe||X&&(K=!0)){P.oncue&&P.oncue(P.cue),P.cue=null,P.state="ID";continue}P.cue.text&&(P.cue.text+=`
283`),P.cue.text+=oe.replace(/\u2028/g,`
284`).replace(/u2029/g,`
285`);continue;case"BADCUE":oe||(P.state="ID");continue}}}catch(ne){P.reportOrThrowError(ne),P.state==="CUETEXT"&&P.cue&&P.oncue&&P.oncue(P.cue),P.cue=null,P.state=P.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var k=this;try{if(k.buffer+=k.decoder.decode(),(k.cue||k.state==="HEADER")&&(k.buffer+=`
286
287`,k.parse()),k.state==="INITIAL")throw new s(s.Errors.BadSignature)}catch(P){k.reportOrThrowError(P)}return k.onflush&&k.onflush(),this}},Y_=w,Y_}var Q_,sw;function kY(){if(sw)return Q_;sw=1;var t="auto",e={"":1,lr:1,rl:1},s={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function i(a){if(typeof a!="string")return!1;var o=e[a.toLowerCase()];return o?a.toLowerCase():!1}function r(a){if(typeof a!="string")return!1;var o=s[a.toLowerCase()];return o?a.toLowerCase():!1}function n(a,o,l){this.hasBeenReset=!1;var c="",d=!1,p=a,_=o,b=l,T=null,y="",x=!0,A="auto",C="start",S="auto",E="auto",w=100,O="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return c},set:function(R){c=""+R}},pauseOnExit:{enumerable:!0,get:function(){return d},set:function(R){d=!!R}},startTime:{enumerable:!0,get:function(){return p},set:function(R){if(typeof R!="number")throw new TypeError("Start time must be set to a number.");p=R,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return _},set:function(R){if(typeof R!="number")throw new TypeError("End time must be set to a number.");_=R,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return b},set:function(R){b=""+R,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return T},set:function(R){T=R,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return y},set:function(R){var $=i(R);if($===!1)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");y=$,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return x},set:function(R){x=!!R,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return A},set:function(R){if(typeof R!="number"&&R!==t)throw new SyntaxError("Line: an invalid number or illegal string was specified.");A=R,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return C},set:function(R){var $=r(R);$?(C=$,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return S},set:function(R){if(R<0||R>100)throw new Error("Position must be between 0 and 100.");S=R,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return E},set:function(R){var $=r(R);$?(E=$,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return w},set:function(R){if(R<0||R>100)throw new Error("Size must be between 0 and 100.");w=R,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return O},set:function(R){var $=r(R);if(!$)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");O=$,this.hasBeenReset=!0}}}),this.displayState=void 0}return n.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},Q_=n,Q_}var J_,iw;function DY(){if(iw)return J_;iw=1;var t={"":!0,up:!0};function e(r){if(typeof r!="string")return!1;var n=t[r.toLowerCase()];return n?r.toLowerCase():!1}function s(r){return typeof r=="number"&&r>=0&&r<=100}function i(){var r=100,n=3,a=0,o=100,l=0,c=100,d="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return r},set:function(p){if(!s(p))throw new Error("Width must be between 0 and 100.");r=p}},lines:{enumerable:!0,get:function(){return n},set:function(p){if(typeof p!="number")throw new TypeError("Lines must be set to a number.");n=p}},regionAnchorY:{enumerable:!0,get:function(){return o}
287,set:function(p){if(!s(p))throw new Error("RegionAnchorX must be between 0 and 100.");o=p}},regionAnchorX:{enumerable:!0,get:function(){return a},set:function(p){if(!s(p))throw new Error("RegionAnchorY must be between 0 and 100.");a=p}},viewportAnchorY:{enumerable:!0,get:function(){return c},set:function(p){if(!s(p))throw new Error("ViewportAnchorY must be between 0 and 100.");c=p}},viewportAnchorX:{enumerable:!0,get:function(){return l},set:function(p){if(!s(p))throw new Error("ViewportAnchorX must be between 0 and 100.");l=p}},scroll:{enumerable:!0,get:function(){return d},set:function(p){var _=e(p);_===!1?console.warn("Scroll: an invalid or illegal string was specified."):d=_}}})}return J_=i,J_}var rw;function IY(){if(rw)return K_.exports;rw=1;var t=qg(),e=K_.exports={WebVTT:AY(),VTTCue:kY(),VTTRegion:DY()};t.vttjs=e,t.WebVTT=e.WebVTT;var s=e.VTTCue,i=e.VTTRegion,r=t.VTTCue,n=t.VTTRegion;return e.shim=function(){t.VTTCue=s,t.VTTRegion=i},e.restore=function(){t.VTTCue=r,t.VTTRegion=n},t.VTTCue||e.shim(),K_.exports}var PY=IY();const nw=Oo(PY);function sn(){return sn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];for(var i in s)({}).hasOwnProperty.call(s,i)&&(t[i]=s[i])}return t},sn.apply(null,arguments)}var aw={exports:{}},ow;function LY(){return ow||(ow=1,function(t,e){(function(s){var i=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,n=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(l,c,d){if(d=d||{},l=l.trim(),c=c.trim(),!c){if(!d.alwaysNormalize)return l;var p=o.parseURL(l);if(!p)throw new Error("Error trying to parse base URL.");return p.path=o.normalizePath(p.path),o.buildURLFromParts(p)}var _=o.parseURL(c);if(!_)throw new Error("Error trying to parse relative URL.");if(_.scheme)return d.alwaysNormalize?(_.path=o.normalizePath(_.path),o.buildURLFromParts(_)):c;var b=o.parseURL(l);if(!b)throw new Error("Error trying to parse base URL.");if(!b.netLoc&&b.path&&b.path[0]!=="/"){var T=r.exec(b.path);b.netLoc=T[1],b.path=T[2]}b.netLoc&&!b.path&&(b.path="/");var y={scheme:b.scheme,netLoc:_.netLoc,path:null,params:_.params,query:_.query,fragment:_.fragment};if(!_.netLoc&&(y.netLoc=b.netLoc,_.path[0]!=="/"))if(!_.path)y.path=b.path,_.params||(y.params=b.params,_.query||(y.query=b.query));else{var x=b.path,A=x.substring(0,x.lastIndexOf("/")+1)+_.path;y.path=o.normalizePath(A)}return y.path===null&&(y.path=d.alwaysNormalize?o.normalizePath(_.path):_.path),o.buildURLFromParts(y)},parseURL:function(l){var c=i.exec(l);return c?{scheme:c[1]||"",netLoc:c[2]||"",path:c[3]||"",params:c[4]||"",query:c[5]||"",fragment:c[6]||""}:null},normalizePath:function(l){for(l=l.split("").reverse().join("").replace(n,"");l.length!==(l=l.replace(a,"")).length;);return l.split("").reverse().join("")},buildURLFromParts:function(l){return l.scheme+l.netLoc+l.path+l.params+l.query+l.fragment}};t.exports=o})()}(aw)),aw.exports}var OY=LY();const lw=Oo(OY);var uw="http://example.com",Vg=function(t,e){if(/^[a-z]+:/i.test(e))return e;/^data:/.test(t)&&(t=Y.location&&Y.location.href||"");var s=typeof Y.URL=="function",i=/^\/\//.test(t),r=!Y.location&&!/\/\//i.test(t);if(s?t=new Y.URL(t,Y.location||uw):/\/\//i.test(t)||(t=lw.buildAbsoluteURL(Y.location&&Y.location.href||"",t)),s){var n=new URL(e,t);return r?n.href.slice(uw.length):i?n.href.slice(n.protocol.length):n.href}return lw.buildAbsoluteURL(t,e)},mS=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(s,i){this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push(i)},e.off=function(s,i){if(!this.listeners[s])return!1;var r=this.listeners[s].indexOf(i);return this.listeners[s]=this.listeners[s].slice(0),this.listeners[s].splice(r,1),r>-1},e.trigger=function(s){var i=this.listeners[s];if(i)if(arguments.length===2)for(var r=i.length,n=0;n<r;++n)i[n].call(this,arguments[1]);else for(var a=Array.prototype.slice.call(arguments,1),o=i.length,l=0;l<o;++l)i[l].apply(this,a)},e.dispose=function(){this.listeners={}},e.pipe=function(s){this.on("data",function(i){s.push(i)})},t}(),NY=function(t){return Y.atob?Y.atob(t):Buffer.from(t,"base64").toString("binary")};function RY(t){for(var e=NY(t),s=new Uint8Array(e.length),i=0;i<e.length;i++)s[i]=e.charCodeAt(i);return s}/*! @name m3u8-parser @version 7.2.0 @license Apache-2.0 */class MY extends mS{constructor(){super(),this.buffer=""}push(e){let s;for(this.buffer+=e,s=this.buffer.indexOf(`
288`);s>-1;s=this.buffer.indexOf(`
289`))this.trigger("data",this.buffer.substring(0,s)),this.buffer=this.buffer.substring(s+1)}}const FY="	",Z_=function(t){const e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),s={};return e[1]&&(s.length=parseInt(e[1],10)),e[2]&&(s.offset=parseInt(e[2],10)),s},BY=function(){const t='(?:[^=]*)=(?:"[^"]*"|[^,]*)';return new RegExp("(?:^|,)("+t+")")},gi=function(t){const e={};if(!t)return e;const s=t.split(BY());let i=s.length,r;for(;i--;)s[i]!==""&&(r=/([^=]*)=(.*)/.exec(s[i]).slice(1),r[0]=r[0].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^['"](.*)['"]$/g,"$1"),e[r[0]]=r[1]);return e},cw=t=>{const e=t.split("x"),s={};return e[0]&&(s.width=parseInt(e[0],10)),e[1]&&(s.height=parseInt(e[1],10)),s};class UY extends mS{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let s,i;if(e=e.trim(),e.length!==0){if(e[0]!=="#"){this.trigger("data",{type:"uri",uri:e});return}this.tagMappers.reduce((r,n)=>{const a=n(e);return a===e?r:r.concat([a])}
vendor: 9,260 bytes, line 289
289,[e]).forEach(r=>{for(let n=0;n<this.customParsers.length;n++)if(this.customParsers[n].call(this,r))return;if(r.indexOf("#EXT")!==0){this.trigger("data",{type:"comment",text:r.slice(1)});return}if(r=r.replace("\r",""),s=/^#EXTM3U/.exec(r),s){this.trigger("data",{type:"tag",tagType:"m3u"});return}if(s=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(r),s){i={type:"tag",tagType:"inf"},s[1]&&(i.duration=parseFloat(s[1])),s[2]&&(i.title=s[2]),this.trigger("data",i);return}if(s=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(r),s){i={type:"tag",tagType:"targetduration"},s[1]&&(i.duration=parseInt(s[1],10)),this.trigger("data",i);return}if(s=/^#EXT-X-VERSION:([0-9.]*)?/.exec(r),s){i={type:"tag",tagType:"version"},s[1]&&(i.version=parseInt(s[1],10)),this.trigger("data",i);return}if(s=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(r),s){i={type:"tag",tagType:"media-sequence"},s[1]&&(i.number=parseInt(s[1],10)),this.trigger("data",i);return}if(s=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(r),s){i={type:"tag",tagType:"discontinuity-sequence"},s[1]&&(i.number=parseInt(s[1],10)),this.trigger("data",i);return}if(s=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(r),s){i={type:"tag",tagType:"playlist-type"},s[1]&&(i.playlistType=s[1]),this.trigger("data",i);return}if(s=/^#EXT-X-BYTERANGE:(.*)?$/.exec(r),s){i=sn(Z_(s[1]),{type:"tag",tagType:"byterange"}),this.trigger("data",i);return}if(s=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(r),s){i={type:"tag",tagType:"allow-cache"},s[1]&&(i.allowed=!/NO/.test(s[1])),this.trigger("data",i);return}if(s=/^#EXT-X-MAP:(.*)$/.exec(r),s){if(i={type:"tag",tagType:"map"},s[1]){const n=gi(s[1]);n.URI&&(i.uri=n.URI),n.BYTERANGE&&(i.byterange=Z_(n.BYTERANGE))}this.trigger("data",i);return}if(s=/^#EXT-X-STREAM-INF:(.*)$/.exec(r),s){i={type:"tag",tagType:"stream-inf"},s[1]&&(i.attributes=gi(s[1]),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=cw(i.attributes.RESOLUTION)),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))),this.trigger("data",i);return}if(s=/^#EXT-X-MEDIA:(.*)$/.exec(r),s){i={type:"tag",tagType:"media"},s[1]&&(i.attributes=gi(s[1])),this.trigger("data",i);return}if(s=/^#EXT-X-ENDLIST/.exec(r),s){this.trigger("data",{type:"tag",tagType:"endlist"});return}if(s=/^#EXT-X-DISCONTINUITY/.exec(r),s){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(s=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(r),s){i={type:"tag",tagType:"program-date-time"},s[1]&&(i.dateTimeString=s[1],i.dateTimeObject=new Date(s[1])),this.trigger("data",i);return}if(s=/^#EXT-X-KEY:(.*)$/.exec(r),s){i={type:"tag",tagType:"key"},s[1]&&(i.attributes=gi(s[1]),i.attributes.IV&&(i.attributes.IV.substring(0,2).toLowerCase()==="0x"&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=parseInt(i.attributes.IV[2],16),i.attributes.IV[3]=parseInt(i.attributes.IV[3],16),i.attributes.IV=new Uint32Array(i.attributes.IV))),this.trigger("data",i);return}if(s=/^#EXT-X-START:(.*)$/.exec(r),s){i={type:"tag",tagType:"start"},s[1]&&(i.attributes=gi(s[1]),i.attributes["TIME-OFFSET"]=parseFloat(i.attributes["TIME-OFFSET"]),i.attributes.PRECISE=/YES/.test(i.attributes.PRECISE)),this.trigger("data",i);return}if(s=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(r),s){i={type:"tag",tagType:"cue-out-cont"},s[1]?i.data=s[1]:i.data="",this.trigger("data",i);return}if(s=/^#EXT-X-CUE-OUT:(.*)?$/.exec(r),s){i={type:"tag",tagType:"cue-out"},s[1]?i.data=s[1]:i.data="",this.trigger("data",i);return}if(s=/^#EXT-X-CUE-IN:?(.*)?$/.exec(r),s){i={type:"tag",tagType:"cue-in"},s[1]?i.data=s[1]:i.data="",this.trigger("data",i);return}if(s=/^#EXT-X-SKIP:(.*)$/.exec(r),s&&s[1]){i={type:"tag",tagType:"skip"},i.attributes=gi(s[1]),i.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(i.attributes["SKIPPED-SEGMENTS"]=parseInt(i.attributes["SKIPPED-SEGMENTS"],10)),i.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(i.attributes["RECENTLY-REMOVED-DATERANGES"]=i.attributes["RECENTLY-REMOVED-DATERANGES"].split(FY)),this.trigger("data",i);return}if(s=/^#EXT-X-PART:(.*)$/.exec(r),s&&s[1]){i={type:"tag",tagType:"part"},i.attributes=gi(s[1]),["DURATION"].forEach(function(n){i.attributes.hasOwnProperty(n)&&(i.attributes[n]=parseFloat(i.attributes[n]))}),["INDEPENDENT","GAP"].forEach(function(n){i.attributes.hasOwnProperty(n)&&(i.attributes[n]=/YES/.test(i.attributes[n]))}),i.attributes.hasOwnProperty("BYTERANGE")&&(i.attributes.byterange=Z_(i.attributes.BYTERANGE)),this.trigger("data",i);return}if(s=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(r),s&&s[1]){i={type:"tag",tagType:"server-control"},i.attributes=gi(s[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(n){i.attributes.hasOwnProperty(n)&&(i.attributes[n]=parseFloat(i.attributes[n]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(n){i.attributes.hasOwnProperty(n)&&(i.attributes[n]=/YES/.test(i.attributes[n]))}),this.trigger("data",i);return}if(s=/^#EXT-X-PART-INF:(.*)$/.exec(r),s&&s[1]){i={type:"tag",tagType:"part-inf"},i.attributes=gi(s[1]),["PART-TARGET"].forEach(function(n){i.attributes.hasOwnProperty(n)&&(i.attributes[n]=parseFloat(i.attributes[n]))}),this.trigger("data",i);return}if(s=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(r),s&&s[1]){i={type:"tag",tagType:"preload-hint"},i.attributes=gi(s[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(n){if(i.attributes.hasOwnProperty(n)){i.attributes[n]=parseInt(i.attributes[n],10);const a=n==="BYTERANGE-LENGTH"?"length":"offset";i.attributes.byterange=i.attributes.byterange||{},i.attributes.byterange[a]=i.attributes[n],delete i.attributes[n]}}),this.trigger("data",i);return}if(s=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(r),s&&s[1]){i={type:"tag",tagType:"rendition-report"},i.attributes=gi(s[1]),["LAST-MSN","LAST-PART"].forEach(function(n){i.attributes.hasOwnProperty(n)&&(i.attributes[n]=parseInt(i.attributes[n],10))}),this.trigger("data",i);return}if(s=/^#EXT-X-DATERANGE:(.*)$/.exec(r),s&&s[1]){i={type:"tag",tagType:"daterange"},i.attributes=gi(s[1]),["ID","CLASS"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=String(i.attributes[a]))}),["START-DATE","END-DATE"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=new Date(i.attributes[a]))}),["DURATION","PLANNED-DURATION"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=parseFloat(i.attributes[a]))}),["END-ON-NEXT"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=/YES/i.test(i.attributes[a]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(a){i.attributes.hasOwnProperty(a)&&(i.attributes[a]=i.attributes[a].toString(16))});const n=/^X-([A-Z]+-)+[A-Z]+$/;for(const a in i.attributes){if(!n.test(a))continue;const o=/[0-9A-Fa-f]{6}/g.test(i.attributes[a]),l=/^\d+(\.\d+)?$/.test(i.attributes[a]);i.attributes[a]=o?i.attributes[a].toString(16):l?parseFloat(i.attributes[a]):String(i.attributes[a])}this.trigger("data",i);return}if(s=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(r),s){this.trigger("data",{type:"tag",tagType:"independent-segments"});return}if(s=/^#EXT-X-I-FRAMES-ONLY/.exec(r),s){this.trigger("data",{type:"tag",tagType:"i-frames-only"});return}if(s=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(r),s){i={type:"tag",tagType:"content-steering"},i.attributes=gi(s[1]),this.trigger("data",i);return}if(s=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(r),s){i={type:"tag",tagType:"i-frame-playlist"},i.attributes=gi(s[1]),i.attributes.URI&&(i.uri=i.attributes.URI),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=cw(i.attributes.RESOLUTION)),i.attributes["AVERAGE-BANDWIDTH"]&&(i.attributes["AVERAGE-BANDWIDTH"]=parseInt(i.attributes["AVERAGE-BANDWIDTH"],10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),this.trigger("data",i);return}if(s=/^#EXT-X-DEFINE:(.*)$/.exec(r),s){i={type:"tag",tagType:"define"},i.attributes=gi(s[1]),this.trigger("data",i);return}this.trigger("data",{type:"tag",data:r.slice(4)})})}}addParser({expression:e,customType:s,dataParser:i,segment:r}){typeof i!="function"&&(i=n=>n),this.customParsers.push(n=>{if(e.exec(n))return this.trigger("data",{type:"custom",data:i(n),customType:s,segment:r}),!0})}addTagMapper({expression:e,map:s}){const i=r=>e.test(r)?s(r):r;this.tagMappers.push(i)}}const $Y=t=>t.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase()),ro=function(t){const e={};return Object.keys(t).forEach(function(s){e[$Y(s)]=t[s]}),e},ev=function(t){const{serverControl:e,targetDuration:s,partTargetDuration:i}=t;if(!e)return;const r="#EXT-X-SERVER-CONTROL",n="holdBack",a="partHoldBack",o=s&&s*3,l=i&&i*2;s&&!e.hasOwnProperty(n)&&(e[n]=o,this.trigger("info",{message:`${r} defaulting HOLD-BACK to targetDuration * 3 (${o}).`})),o&&e[n]<o&&(this.trigger("warn",{message:`${r} clamping HOLD-BACK (${e[n]}) to targetDuration * 3 (${o})`}),e[n]=o),i&&!e.hasOwnProperty(a)&&(e[a]=i*3,this.trigger("info",{message:`${r}
289 defaulting PART-HOLD-BACK to partTargetDuration * 3 (${e[a]}).`})),i&&e[a]<l&&(this.trigger("warn",{message:`${r} clamping PART-HOLD-BACK (${e[a]}) to partTargetDuration * 2 (${l}).`}),e[a]=l)};class jY extends mS{constructor(e={}){super(),this.lineStream=new MY,this.parseStream=new UY,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;const s=this,i=[];let r={},n,a,o=!1;const l=function(){},c={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},d="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";let p=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let _=0,b=0;const T={};this.on("end",()=>{r.uri||!r.parts&&!r.preloadHints||(!r.map&&n&&(r.map=n),!r.key&&a&&(r.key=a),!r.timeline&&typeof p=="number"&&(r.timeline=p),this.manifest.preloadSegment=r)}),this.parseStream.on("data",function(y){let x,A;if(s.manifest.definitions){for(const C in s.manifest.definitions)if(y.uri&&(y.uri=y.uri.replace(`{$${C}}`,s.manifest.definitions[C])),y.attributes)for(const S in y.attributes)typeof y.attributes[S]=="string"&&(y.attributes[S]=y.attributes[S].replace(`{$${C}}`,s.manifest.definitions[C]))}({tag(){({version(){y.version&&(this.manifest.version=y.version)},"allow-cache"(){this.manifest.allowCache=y.allowed,"allowed"in y||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const C={};"length"in y&&(r.byterange=C,C.length=y.length,"offset"in y||(y.offset=_)),"offset"in y&&(r.byterange=C,C.offset=y.offset),_=C.offset+C.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),y.title&&(r.title=y.title),y.duration>0&&(r.duration=y.duration),y.duration===0&&(r.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=i},key(){if(!y.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(y.attributes.METHOD==="NONE"){a=null;return}if(!y.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(y.attributes.KEYFORMAT==="com.apple.streamingkeydelivery"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:y.attributes};return}if(y.attributes.KEYFORMAT==="com.microsoft.playready"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:y.attributes.URI};return}if(y.attributes.KEYFORMAT===d){if(["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(y.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(y.attributes.METHOD==="SAMPLE-AES-CENC"&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),y.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(y.attributes.KEYID&&y.attributes.KEYID.substring(0,2)==="0x")){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:y.attributes.KEYFORMAT,keyId:y.attributes.KEYID.substring(2)},pssh:RY(y.attributes.URI.split(",")[1])};return}y.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),a={method:y.attributes.METHOD||"AES-128",uri:y.attributes.URI},typeof y.attributes.IV<"u"&&(a.iv=y.attributes.IV)},"media-sequence"(){if(!isFinite(y.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+y.number});return}this.manifest.mediaSequence=y.number},"discontinuity-sequence"(){if(!isFinite(y.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+y.number});return}this.manifest.discontinuitySequence=y.number,p=y.number},"playlist-type"(){if(!/VOD|EVENT/.test(y.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+y.playlist});return}this.manifest.playlistType=y.playlistType},map(){n={},y.uri&&(n.uri=y.uri),y.byterange&&(n.byterange=y.byterange),a&&(n.key=a)}
vendor: 5,316 bytes, line 289
289,"stream-inf"(){if(this.manifest.playlists=i,this.manifest.mediaGroups=this.manifest.mediaGroups||c,!y.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}r.attributes||(r.attributes={}),sn(r.attributes,y.attributes)},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||c,!(y.attributes&&y.attributes.TYPE&&y.attributes["GROUP-ID"]&&y.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}const C=this.manifest.mediaGroups[y.attributes.TYPE];C[y.attributes["GROUP-ID"]]=C[y.attributes["GROUP-ID"]]||{},x=C[y.attributes["GROUP-ID"]],A={default:/yes/i.test(y.attributes.DEFAULT)},A.default?A.autoselect=!0:A.autoselect=/yes/i.test(y.attributes.AUTOSELECT),y.attributes.LANGUAGE&&(A.language=y.attributes.LANGUAGE),y.attributes.URI&&(A.uri=y.attributes.URI),y.attributes["INSTREAM-ID"]&&(A.instreamId=y.attributes["INSTREAM-ID"]),y.attributes.CHARACTERISTICS&&(A.characteristics=y.attributes.CHARACTERISTICS),y.attributes.FORCED&&(A.forced=/yes/i.test(y.attributes.FORCED)),x[y.attributes.NAME]=A},discontinuity(){p+=1,r.discontinuity=!0,this.manifest.discontinuityStarts.push(i.length)},"program-date-time"(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=y.dateTimeString,this.manifest.dateTimeObject=y.dateTimeObject),r.dateTimeString=y.dateTimeString,r.dateTimeObject=y.dateTimeObject;const{lastProgramDateTime:C}=this;this.lastProgramDateTime=new Date(y.dateTimeString).getTime(),C===null&&this.manifest.segments.reduceRight((S,E)=>(E.programDateTime=S-E.duration*1e3,E.programDateTime),this.lastProgramDateTime)},targetduration(){if(!isFinite(y.duration)||y.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+y.duration});return}this.manifest.targetDuration=y.duration,ev.call(this,this.manifest)},start(){if(!y.attributes||isNaN(y.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:y.attributes["TIME-OFFSET"],precise:y.attributes.PRECISE}},"cue-out"(){r.cueOut=y.data},"cue-out-cont"(){r.cueOutCont=y.data},"cue-in"(){r.cueIn=y.data},skip(){this.manifest.skip=ro(y.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",y.attributes,["SKIPPED-SEGMENTS"])},part(){o=!0;const C=this.manifest.segments.length,S=ro(y.attributes);r.parts=r.parts||[],r.parts.push(S),S.byterange&&(S.byterange.hasOwnProperty("offset")||(S.byterange.offset=b),b=S.byterange.offset+S.byterange.length);const E=r.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${E} for segment #${C}`,y.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((w,O)=>{w.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${O} lacks required attribute(s): LAST-PART`})})},"server-control"(){const C=this.manifest.serverControl=ro(y.attributes);C.hasOwnProperty("canBlockReload")||(C.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),ev.call(this,this.manifest),C.canSkipDateranges&&!C.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const C=this.manifest.segments.length,S=ro(y.attributes),E=S.type&&S.type==="PART";r.preloadHints=r.preloadHints||[],r.preloadHints.push(S),S.byterange&&(S.byterange.hasOwnProperty("offset")||(S.byterange.offset=E?b:0,E&&(b=S.byterange.offset+S.byterange.length)));const w=r.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${w} for segment #${C}`,y.attributes,["TYPE","URI"]),!!S.type)for(let O=0;O<r.preloadHints.length-1;O++){const R=r.preloadHints[O];R.type&&R.type===S.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${w} for segment #${C} has the same TYPE ${S.type} as preload hint #${O}`})}},"rendition-report"(){const C=ro(y.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(C);const S=this.manifest.renditionReports.length-1,E=["LAST-MSN","URI"];o&&E.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${S}`,y.attributes,E)},"part-inf"(){this.manifest.partInf=ro(y.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",y.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),ev.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(ro(y.attributes));const C=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${C}`,y.attributes,["ID","START-DATE"]);const S=this.manifest.dateRanges[C];S.endDate&&S.startDate&&new Date(S.endDate)<new Date(S.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),S.duration&&S.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),S.plannedDuration&&S.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const E=!!S.endOnNext;if(E&&!S.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT
289=YES attribute must have a CLASS attribute"}),E&&(S.duration||S.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),S.duration&&S.endDate){const w=S.startDate.getTime()+S.duration*1e3;this.manifest.dateRanges[C].endDate=new Date(w)}if(!T[S.id])T[S.id]=S;else{for(const O in T[S.id])if(S[O]&&JSON.stringify(T[S.id][O])!==JSON.stringify(S[O])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const w=this.manifest.dateRanges.findIndex(O=>O.id===S.id);this.manifest.dateRanges[w]=sn(this.manifest.dateRanges[w],S),T[S.id]=sn(T[S.id],S),this.manifest.dateRanges.pop()}},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=ro(y.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",y.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};const C=(S,E)=>{if(S in this.manifest.definitions){this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${S}`});return}this.manifest.definitions[S]=E};if("QUERYPARAM"in y.attributes){if("NAME"in y.attributes||"IMPORT"in y.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}const S=this.params.get(y.attributes.QUERYPARAM);if(!S){this.trigger("error",{message:`EXT-X-DEFINE: No query param ${y.attributes.QUERYPARAM}`});return}C(y.attributes.QUERYPARAM,decodeURIComponent(S));return}if("NAME"in y.attributes){if("IMPORT"in y.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}if(!("VALUE"in y.attributes)||typeof y.attributes.VALUE!="string"){this.trigger("error",{message:`EXT-X-DEFINE: No value for ${y.attributes.NAME}`});return}C(y.attributes.NAME,y.attributes.VALUE);return}if("IMPORT"in y.attributes){if(!this.mainDefinitions[y.attributes.IMPORT]){this.trigger("error",{message:`EXT-X-DEFINE: No value ${y.attributes.IMPORT} to import, or IMPORT used on main playlist`});return}C(y.attributes.IMPORT,this.mainDefinitions[y.attributes.IMPORT]);return}this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:y.attributes,uri:y.uri,timeline:p}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",y.attributes,["BANDWIDTH","URI"])}}[y.tagType]||l).call(s)},uri(){r.uri=y.uri,i.push(r),this.manifest.targetDuration&&!("duration"in r)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),r.duration=this.manifest.targetDuration),a&&(r.key=a),r.timeline=p,n&&(r.map=n),b=0,this.lastProgramDateTime!==null&&(r.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=r.duration*1e3),r={}},comment(){},custom(){y.segment?(r.custom=r.custom||{},r.custom[y.customType]=y.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[y.customType]=y.data)}})[y.type].call(s)})}requiredCompatibilityversion(e,s){(e<s||!e)&&this.trigger("warn",{message:`manifest must be at least version ${s}`})}warnOnMissingAttributes_(e,s,i){const r=[];i.forEach(function(n){s.hasOwnProperty(n)||r.push(n)}),r.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${r.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push(`
290`),this.manifest.dateRanges.length&&this.lastProgramDateTime===null&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}var Sl={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},HY=["video","audio","text"],dw=["Video","Audio","Text"],x4=function(t){return t&&t.replace(/avc1\.(\d+)\.(\d+)/i,function(e,s,i){var r=("00"+Number(s).toString(16)).slice(-2),n=("00"+Number(i).toString(16)).slice(-2);
vendor: 11,129 bytes, line 290
290return"avc1."+r+"00"+n})},vn=function(t){t===void 0&&(t="");var e=t.split(","),s=[];return e.forEach(function(i){i=i.trim();var r;HY.forEach(function(n){var a=Sl[n].exec(i.toLowerCase());if(!(!a||a.length<=1)){r=n;var o=i.substring(0,a[1].length),l=i.replace(o,"");s.push({type:o,details:l,mediaType:n})}}),r||s.push({type:i,details:"",mediaType:"unknown"})}),s},qY=function(t,e){if(!t.mediaGroups.AUDIO||!e)return null;var s=t.mediaGroups.AUDIO[e];if(!s)return null;for(var i in s){var r=s[i];if(r.default&&r.playlists)return vn(r.playlists[0].attributes.CODECS)}return null},C4=function(t){return t===void 0&&(t=""),Sl.audio.test(t.trim().toLowerCase())},VY=function(t){return t===void 0&&(t=""),Sl.text.test(t.trim().toLowerCase())},Jh=function(t){if(!(!t||typeof t!="string")){var e=t.toLowerCase().split(",").map(function(r){return x4(r.trim())}),s="video";e.length===1&&C4(e[0])?s="audio":e.length===1&&VY(e[0])&&(s="application");var i="mp4";return e.every(function(r){return Sl.mp4.test(r)})?i="mp4":e.every(function(r){return Sl.webm.test(r)})?i="webm":e.every(function(r){return Sl.ogg.test(r)})&&(i="ogg"),s+"/"+i+';codecs="'+t+'"'}},Sp=function(t){return t===void 0&&(t=""),Y.MediaSource&&Y.MediaSource.isTypeSupported&&Y.MediaSource.isTypeSupported(Jh(t))||!1},tv=function(t){return t===void 0&&(t=""),t.toLowerCase().split(",").every(function(e){e=e.trim();for(var s=0;s<dw.length;s++){var i=dw[s];if(Sl["muxer"+i].test(e))return!0}return!1})},hw="mp4a.40.2",zY="avc1.4d400d",GY=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,WY=/^application\/dash\+xml/i,w4=function(t){return GY.test(t)?"hls":WY.test(t)?"dash":t==="application/vnd.videojs.vhs+json"?"vhs-json":null},XY=function(t){return t.toString(2).length},KY=function(t){return Math.ceil(XY(t)/8)},A4=function(t){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},YY=function(t){return A4(t)},tt=function(t){return t instanceof Uint8Array?t:(!Array.isArray(t)&&!YY(t)&&!(t instanceof ArrayBuffer)&&(typeof t!="number"||typeof t=="number"&&t!==t?t=0:t=[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0))},Gs=Y.BigInt||Number,Gb=[Gs("0x1"),Gs("0x100"),Gs("0x10000"),Gs("0x1000000"),Gs("0x100000000"),Gs("0x10000000000"),Gs("0x1000000000000"),Gs("0x100000000000000"),Gs("0x10000000000000000")];(function(){var t=new Uint16Array([65484]),e=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);return e[0]===255?"big":e[0]===204?"little":"unknown"})();var QY=function(t,e){var s=e===void 0?{}:e,i=s.signed,r=i===void 0?!1:i,n=s.le,a=n===void 0?!1:n;t=tt(t);var o=a?"reduce":"reduceRight",l=t[o]?t[o]:Array.prototype[o],c=l.call(t,function(p,_,b){var T=a?b:Math.abs(b+1-t.length);return p+Gs(_)*Gb[T]},Gs(0));if(r){var d=Gb[t.length]/Gs(2)-Gs(1);c=Gs(c),c>d&&(c-=d,c-=d,c-=Gs(2))}return Number(c)},JY=function(t,e){var s={},i=s.le,r=i===void 0?!1:i;(typeof t!="bigint"&&typeof t!="number"||typeof t=="number"&&t!==t)&&(t=0),t=Gs(t);for(var n=KY(t),a=new Uint8Array(new ArrayBuffer(n)),o=0;o<n;o++){var l=r?o:Math.abs(o+1-a.length);a[l]=Number(t/Gb[o]&Gs(255)),t<0&&(a[l]=Math.abs(~a[l]),a[l]-=o===0?1:2)}return a},k4=function(t,e){if(typeof t!="string"&&t&&typeof t.toString=="function"&&(t=t.toString()),typeof t!="string")return new Uint8Array;e||(t=unescape(encodeURIComponent(t)));for(var s=new Uint8Array(t.length),i=0;i<t.length;i++)s[i]=t.charCodeAt(i);return s},ZY=function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];if(e=e.filter(function(a){return a&&(a.byteLength||a.length)&&typeof a!="string"}),e.length<=1)return tt(e[0]);var i=e.reduce(function(a,o,l){return a+(o.byteLength||o.length)},0),r=new Uint8Array(i),n=0;return e.forEach(function(a){a=tt(a),r.set(a,n),n+=a.byteLength}),r},ns=function(t,e,s){var i=s===void 0?{}:s,r=i.offset,n=r===void 0?0:r,a=i.mask,o=a===void 0?[]:a;t=tt(t),e=tt(e);var l=e.every?e.every:Array.prototype.every;return e.length&&t.length-n>=e.length&&l.call(e,function(c,d){var p=o[d]?o[d]&t[n+d]:t[n+d];return c===p})},eQ=function(t,e,s){e.forEach(function(i){for(var r in t.mediaGroups[i])for(var n in t.mediaGroups[i][r]){var a=t.mediaGroups[i][r][n];s(a,i,r,n)}})},tQ=function(t){return Y.atob?Y.atob(t):Buffer.from(t,"base64").toString("binary")};function sQ(t){for(var e=tQ(t),s=new Uint8Array(e.length),i=0;i<e.length;i++)s[i]=e.charCodeAt(i);return s}var jd={},Sa={},sl={},fw;function zg(){if(fw)return sl;fw=1;function t(n,a,o){if(o===void 0&&(o=Array.prototype),n&&typeof o.find=="function")return o.find.call(n,a);for(var l=0;l<n.length;l++)if(Object.prototype.hasOwnProperty.call(n,l)){var c=n[l];if(a.call(void 0,c,l,n))return c}}function e(n,a){return a===void 0&&(a=Object),a&&typeof a.freeze=="function"?a.freeze(n):n}function s(n,a){if(n===null||typeof n!="object")throw new TypeError("target is not an object");for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o]);return n}var i=e({HTML:"text/html",isHTML:function(n){return n===i.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),r=e({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(n){return n===r.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return sl.assign=s,sl.find=t,sl.freeze=e,sl.MIME_TYPE=i,sl.NAMESPACE=r,sl}var pw;function D4(){if(pw)return Sa;pw=1;var t=zg(),e=t.find,s=t.NAMESPACE;function i(B){return B!==""}function r(B){return B?B.split(/[\t\n\f\r ]+/).filter(i):[]}function n(B,V){return B.hasOwnProperty(V)||(B[V]=!0),B}function a(B){if(!B)return[];var V=r(B);return Object.keys(V.reduce(n,{}))}function o(B){return function(V){return B&&B.indexOf(V)!==-1}}function l(B,V){for(var Z in B)Object.prototype.hasOwnProperty.call(B,Z)&&(V[Z]=B[Z])}function c(B,V){var Z=B.prototype;if(!(Z instanceof V)){let ue=function(){};ue.prototype=V.prototype,ue=new ue,l(Z,ue),B.prototype=Z=ue}Z.constructor!=B&&(typeof B!="function"&&console.error("unknown Class:"+B),Z.constructor=B)}var d={},p=d.ELEMENT_NODE=1,_=d.ATTRIBUTE_NODE=2,b=d.TEXT_NODE=3,T=d.CDATA_SECTION_NODE=4,y=d.ENTITY_REFERENCE_NODE=5,x=d.ENTITY_NODE=6,A=d.PROCESSING_INSTRUCTION_NODE=7,C=d.COMMENT_NODE=8,S=d.DOCUMENT_NODE=9,E=d.DOCUMENT_TYPE_NODE=10,w=d.DOCUMENT_FRAGMENT_NODE=11,O=d.NOTATION_NODE=12,R={},$={};R.INDEX_SIZE_ERR=($[1]="Index size error",1),R.DOMSTRING_SIZE_ERR=($[2]="DOMString size error",2);var k=R.HIERARCHY_REQUEST_ERR=($[3]="Hierarchy request error",3);R.WRONG_DOCUMENT_ERR=($[4]="Wrong document",4),R.INVALID_CHARACTER_ERR=($[5]="Invalid character",5),R.NO_DATA_ALLOWED_ERR=($[6]="No data allowed",6),R.NO_MODIFICATION_ALLOWED_ERR=($[7]="No modification allowed",7);var P=R.NOT_FOUND_ERR=($[8]="Not found",8);R.NOT_SUPPORTED_ERR=($[9]="Not supported",9);var j=R.INUSE_ATTRIBUTE_ERR=($[10]="Attribute in use",10);R.INVALID_STATE_ERR=($[11]="Invalid state",11),R.SYNTAX_ERR=($[12]="Syntax error",12),R.INVALID_MODIFICATION_ERR=($[13]="Invalid modification",13),R.NAMESPACE_ERR=($[14]="Invalid namespace",14),R.INVALID_ACCESS_ERR=($[15]="Invalid access",15);function F(B,V){if(V instanceof Error)var Z=V;else Z=this,Error.call(this,$[B]),this.message=$[B],Error.captureStackTrace&&Error.captureStackTrace(this,F);return Z.code=B,V&&(this.message=this.message+": "+V),Z}F.prototype=Error.prototype,l(R,F);function H(){}H.prototype={length:0,item:function(B){return B>=0&&B<this.length?this[B]:null},toString:function(B,V){for(var Z=[],ue=0;ue<this.length;ue++)vs(this[ue],Z,B,V);return Z.join("")},filter:function(B){return Array.prototype.filter.call(this,B)},indexOf:function(B){return Array.prototype.indexOf.call(this,B)}};function te(B,V){this._node=B,this._refresh=V,oe(this)}function oe(B){var V=B._node._inc||B._node.ownerDocument._inc;if(B._inc!==V){var Z=B._refresh(B._node);if(Bl(B,"length",Z.length),!B.$$length||Z.length<B.$$length)for(var ue=Z.length;ue in B;ue++)Object.prototype.hasOwnProperty.call(B,ue)&&delete B[ue];l(Z,B),B._inc=V}}te.prototype.item=function(B){return oe(this),this[B]||null},c(te,H);function se(){}function K(B,V){for(var Z=B.length;Z--;)if(B[Z]===V)return Z}function X(B,V,Z,ue){if(ue?V[K(V,ue)]=Z:V[V.length++]=Z,B){Z.ownerElement=B;var Me=B.ownerDocument;Me&&(ue&&Et(Me,B,ue),Xe(Me,B,Z))}}function ne(B,V,Z){var ue=K(V,Z);if(ue>=0){for(var Me=V.length-1;ue<Me;)V[ue]=V[++ue];if(V.length=Me,B){var it=B.ownerDocument;it&&(Et(it,B,Z),Z.ownerElement=null)}}else throw new F(P,new Error(B.tagName+"@"+Z))}se.prototype={length:0,item:H.prototype.item,getNamedItem:function(B){for(var V=this.length;V--;){var Z=this[V];if(Z.nodeName==B)return Z}},setNamedItem:function(B){var V=B.ownerElement;if(V&&V!=this._ownerElement)throw new F(j);var Z=this.getNamedItem(B.nodeName);return X(this._ownerElement,this,B,Z),Z},setNamedItemNS:function(B){var V=B.ownerElement,Z;if(V&&V!=this._ownerElement)throw new F(j);return Z=this.getNamedItemNS(B.namespaceURI,B.localName),X(this._ownerElement,this,B,Z),Z},removeNamedItem:function(B){var V=this.getNamedItem(B);return ne(this._ownerElement,this,V),V},removeNamedItemNS:function(B,V){var Z=this.getNamedItemNS(B,V);return ne(this._ownerElement,this,Z),Z},getNamedItemNS:function(B,V){for(var Z=this.length;Z--;){var ue=this[Z];if(ue.localName==V&&ue.namespaceURI==B)return ue}return null}};function de(){}de.prototype={hasFeature:function(B,V){return!0},createDocument:function(B,V,Z){var ue=new Ge;if(ue.implementation=this,ue.childNodes=new H,ue.doctype=Z||null,Z&&ue.appendChild(Z),V){var Me=ue.createElementNS(B,V);ue.appendChild(Me)}return ue},createDocumentType:function(B,V,Z){var ue=new ce;return ue.name=B,ue.nodeName=B,ue.publicId=V||"",ue.systemId=Z||"",ue}};function he(){}he.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(B,V){return Pe(this,B,V)},replaceChild:function(B,V){Pe(this,B,V,be),V&&this.removeChild(V)},removeChild:function(B){return Ie(this,B)},appendChild:function(B){return this.insertBefore(B,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(B){return Mo(this.ownerDocument||this,this,B)},normalize:function(){for(var B=this.firstChild;B;){var V=B.nextSibling;V&&V.nodeType==b&&B.nodeType==b?(this.removeChild(V),B.appendData(V.data)):(B.normalize(),B=V)}},isSupported:function(B,V){return this.ownerDocument.implementation.hasFeature(B,V)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(B){for(var V=this;V;){var Z=V._nsMap;if(Z){for(var ue in Z)if(Object.prototype.hasOwnProperty.call(Z,ue)&&Z[ue]===B)return ue}V=V.nodeType==_?V.ownerDocument:V.parentNode}return null},lookupNamespaceURI:function(B){for(var V=this;V;){var Z=V._nsMap;if(Z&&Object.prototype.hasOwnProperty.call(Z,B))return Z[B];V=V.nodeType==_?V.ownerDocument:V.parentNode}return null},isDefaultNamespace:function(B){var V=this.lookupPrefix(B);return V==null}};function Le(B){return B=="<"&&"&lt;"||B==">"&&"&gt;"||B=="&"&&"&amp;"||B=='"'&&"&quot;
290"||"&#"+B.charCodeAt()+";"}l(d,he),l(d,he.prototype);function qe(B,V){if(V(B))return!0;if(B=B.firstChild)do if(qe(B,V))return!0;while(B=B.nextSibling)}function Ge(){this.ownerDocument=this}function Xe(B,V,Z){B&&B._inc++;var ue=Z.namespaceURI;ue===s.XMLNS&&(V._nsMap[Z.prefix?Z.localName:""]=Z.value)}function Et(B,V,Z,ue){B&&B._inc++;var Me=Z.namespaceURI;Me===s.XMLNS&&delete V._nsMap[Z.prefix?Z.localName:""]}function me(B,V,Z){if(B&&B._inc){B._inc++;var ue=V.childNodes;if(Z)ue[ue.length++]=Z;else{for(var Me=V.firstChild,it=0;Me;)ue[it++]=Me,Me=Me.nextSibling;ue.length=it,delete ue[ue.length]}}}function Ie(B,V){var Z=V.previousSibling,ue=V.nextSibling;return Z?Z.nextSibling=ue:B.firstChild=ue,ue?ue.previousSibling=Z:B.lastChild=Z,V.parentNode=null,V.previousSibling=null,V.nextSibling=null,me(B.ownerDocument,B),V}function De(B){return B&&(B.nodeType===he.DOCUMENT_NODE||B.nodeType===he.DOCUMENT_FRAGMENT_NODE||B.nodeType===he.ELEMENT_NODE)}function Fe(B){return B&&(rt(B)||W(B)||Ze(B)||B.nodeType===he.DOCUMENT_FRAGMENT_NODE||B.nodeType===he.COMMENT_NODE||B.nodeType===he.PROCESSING_INSTRUCTION_NODE)}function Ze(B){return B&&B.nodeType===he.DOCUMENT_TYPE_NODE}function rt(B){return B&&B.nodeType===he.ELEMENT_NODE}function W(B){return B&&B.nodeType===he.TEXT_NODE}function q(B,V){var Z=B.childNodes||[];if(e(Z,rt)||Ze(V))return!1;var ue=e(Z,Ze);return!(V&&ue&&Z.indexOf(ue)>Z.indexOf(V))}function re(B,V){var Z=B.childNodes||[];function ue(it){return rt(it)&&it!==V}if(e(Z,ue))return!1;var Me=e(Z,Ze);return!(V&&Me&&Z.indexOf(Me)>Z.indexOf(V))}function ve(B,V,Z){if(!De(B))throw new F(k,"Unexpected parent node type "+B.nodeType);if(Z&&Z.parentNode!==B)throw new F(P,"child not in parent");if(!Fe(V)||Ze(V)&&B.nodeType!==he.DOCUMENT_NODE)throw new F(k,"Unexpected node type "+V.nodeType+" for parent node type "+B.nodeType)}function ge(B,V,Z){var ue=B.childNodes||[],Me=V.childNodes||[];if(V.nodeType===he.DOCUMENT_FRAGMENT_NODE){var it=Me.filter(rt);if(it.length>1||e(Me,W))throw new F(k,"More than one element or text in fragment");if(it.length===1&&!q(B,Z))throw new F(k,"Element in fragment can not be inserted before doctype")}if(rt(V)&&!q(B,Z))throw new F(k,"Only one element can be added and only after doctype");if(Ze(V)){if(e(ue,Ze))throw new F(k,"Only one doctype is allowed");var Ut=e(ue,rt);if(Z&&ue.indexOf(Ut)<ue.indexOf(Z))throw new F(k,"Doctype can only be inserted before an element");if(!Z&&Ut)throw new F(k,"Doctype can not be appended since element is present")}}function be(B,V,Z){var ue=B.childNodes||[],Me=V.childNodes||[];if(V.nodeType===he.DOCUMENT_FRAGMENT_NODE){var it=Me.filter(rt);if(it.length>1||e(Me,W))throw new F(k,"More than one element or text in fragment");if(it.length===1&&!re(B,Z))throw new F(k,"Element in fragment can not be inserted before doctype")}if(rt(V)&&!re(B,Z))throw new F(k,"Only one element can be added and only after doctype");if(Ze(V)){if(e(ue,function(Ot){return Ze(Ot)&&Ot!==Z}))throw new F(k,"Only one doctype is allowed");var Ut=e(ue,rt);if(Z&&ue.indexOf(Ut)<ue.indexOf(Z))throw new F(k,"Doctype can only be inserted before an element")}}function Pe(B,V,Z,ue){ve(B,V,Z),B.nodeType===he.DOCUMENT_NODE&&(ue||ge)(B,V,Z);var Me=V.parentNode;if(Me&&Me.removeChild(V),V.nodeType===w){var it=V.firstChild;if(it==null)return V;var Ut=V.lastChild}else it=Ut=V;var Ot=Z?Z.previousSibling:B.lastChild;it.previousSibling=Ot,Ut.nextSibling=Z,Ot?Ot.nextSibling=it:B.firstChild=it,Z==null?B.lastChild=Ut:Z.previousSibling=Ut;do it.parentNode=B;while(it!==Ut&&(it=it.nextSibling));return me(B.ownerDocument||B,B),V.nodeType==w&&(V.firstChild=V.lastChild=null),V}function U(B,V){return V.parentNode&&V.parentNode.removeChild(V),V.parentNode=B,V.previousSibling=B.lastChild,V.nextSibling=null,V.previousSibling?V.previousSibling.nextSibling=V:B.firstChild=V,B.lastChild=V,me(B.ownerDocument,B,V),V}Ge.prototype={nodeName:"#document",nodeType:S,doctype:null,documentElement:null,_inc:1,insertBefore:function(B,V){if(B.nodeType==w){for(var Z=B.firstChild;Z;){var ue=Z.nextSibling;this.insertBefore(Z,V),Z=ue}return B}return Pe(this,B,V),B.ownerDocument=this,this.documentElement===null&&B.nodeType===p&&(this.documentElement=B),B},removeChild:function(B){return this.documentElement==B&&(this.documentElement=null),Ie(this,B)},replaceChild:function(B,V){Pe(this,B,V,be),B.ownerDocument=this,V&&this.removeChild(V),rt(B)&&
vendor: 8,934 bytes, line 290
290(this.documentElement=B)},importNode:function(B,V){return Xn(this,B,V)},getElementById:function(B){var V=null;return qe(this.documentElement,function(Z){if(Z.nodeType==p&&Z.getAttribute("id")==B)return V=Z,!0}),V},getElementsByClassName:function(B){var V=a(B);return new te(this,function(Z){var ue=[];return V.length>0&&qe(Z.documentElement,function(Me){if(Me!==Z&&Me.nodeType===p){var it=Me.getAttribute("class");if(it){var Ut=B===it;if(!Ut){var Ot=a(it);Ut=V.every(o(Ot))}Ut&&ue.push(Me)}}}),ue})},createElement:function(B){var V=new z;V.ownerDocument=this,V.nodeName=B,V.tagName=B,V.localName=B,V.childNodes=new H;var Z=V.attributes=new se;return Z._ownerElement=V,V},createDocumentFragment:function(){var B=new Lt;return B.ownerDocument=this,B.childNodes=new H,B},createTextNode:function(B){var V=new we;return V.ownerDocument=this,V.appendData(B),V},createComment:function(B){var V=new xe;return V.ownerDocument=this,V.appendData(B),V},createCDATASection:function(B){var V=new ae;return V.ownerDocument=this,V.appendData(B),V},createProcessingInstruction:function(B,V){var Z=new Ue;return Z.ownerDocument=this,Z.tagName=Z.nodeName=Z.target=B,Z.nodeValue=Z.data=V,Z},createAttribute:function(B){var V=new ee;return V.ownerDocument=this,V.name=B,V.nodeName=B,V.localName=B,V.specified=!0,V},createEntityReference:function(B){var V=new Pt;return V.ownerDocument=this,V.nodeName=B,V},createElementNS:function(B,V){var Z=new z,ue=V.split(":"),Me=Z.attributes=new se;return Z.childNodes=new H,Z.ownerDocument=this,Z.nodeName=V,Z.tagName=V,Z.namespaceURI=B,ue.length==2?(Z.prefix=ue[0],Z.localName=ue[1]):Z.localName=V,Me._ownerElement=Z,Z},createAttributeNS:function(B,V){var Z=new ee,ue=V.split(":");return Z.ownerDocument=this,Z.nodeName=V,Z.name=V,Z.namespaceURI=B,Z.specified=!0,ue.length==2?(Z.prefix=ue[0],Z.localName=ue[1]):Z.localName=V,Z}},c(Ge,he);function z(){this._nsMap={}}z.prototype={nodeType:p,hasAttribute:function(B){return this.getAttributeNode(B)!=null},getAttribute:function(B){var V=this.getAttributeNode(B);return V&&V.value||""},getAttributeNode:function(B){return this.attributes.getNamedItem(B)},setAttribute:function(B,V){var Z=this.ownerDocument.createAttribute(B);Z.value=Z.nodeValue=""+V,this.setAttributeNode(Z)},removeAttribute:function(B){var V=this.getAttributeNode(B);V&&this.removeAttributeNode(V)},appendChild:function(B){return B.nodeType===w?this.insertBefore(B,null):U(this,B)},setAttributeNode:function(B){return this.attributes.setNamedItem(B)},setAttributeNodeNS:function(B){return this.attributes.setNamedItemNS(B)},removeAttributeNode:function(B){return this.attributes.removeNamedItem(B.nodeName)},removeAttributeNS:function(B,V){var Z=this.getAttributeNodeNS(B,V);Z&&this.removeAttributeNode(Z)},hasAttributeNS:function(B,V){return this.getAttributeNodeNS(B,V)!=null},getAttributeNS:function(B,V){var Z=this.getAttributeNodeNS(B,V);return Z&&Z.value||""},setAttributeNS:function(B,V,Z){var ue=this.ownerDocument.createAttributeNS(B,V);ue.value=ue.nodeValue=""+Z,this.setAttributeNode(ue)},getAttributeNodeNS:function(B,V){return this.attributes.getNamedItemNS(B,V)},getElementsByTagName:function(B){return new te(this,function(V){var Z=[];return qe(V,function(ue){ue!==V&&ue.nodeType==p&&(B==="*"||ue.tagName==B)&&Z.push(ue)}),Z})},getElementsByTagNameNS:function(B,V){return new te(this,function(Z){var ue=[];return qe(Z,function(Me){Me!==Z&&Me.nodeType===p&&(B==="*"||Me.namespaceURI===B)&&(V==="*"||Me.localName==V)&&ue.push(Me)}),ue})}},Ge.prototype.getElementsByTagName=z.prototype.getElementsByTagName,Ge.prototype.getElementsByTagNameNS=z.prototype.getElementsByTagNameNS,c(z,he);function ee(){}ee.prototype.nodeType=_,c(ee,he);function Ee(){}Ee.prototype={data:"",substringData:function(B,V){return this.data.substring(B,B+V)},appendData:function(B){B=this.data+B,this.nodeValue=this.data=B,this.length=B.length},insertData:function(B,V){this.replaceData(B,0,V)},appendChild:function(B){throw new Error($[k])},deleteData:function(B,V){this.replaceData(B,V,"")},replaceData:function(B,V,Z){var ue=this.data.substring(0,B),Me=this.data.substring(B+V);Z=ue+Z+Me,this.nodeValue=this.data=Z,this.length=Z.length}},c(Ee,he);function we(){}we.prototype={nodeName:"#text",nodeType:b,splitText:function(B){var V=this.data,Z=V.substring(B);V=V.substring(0,B),this.data=this.nodeValue=V,this.length=V.length;var ue=this.ownerDocument.createTextNode(Z);return this.parentNode&&this.parentNode.insertBefore(ue,this.nextSibling),ue}},c(we,Ee);function xe(){}xe.prototype={nodeName:"#comment",nodeType:C},c(xe,Ee);function ae(){}ae.prototype={nodeName:"#cdata-section",nodeType:T},c(ae,Ee);function ce(){}ce.prototype.nodeType=E,c(ce,he);function Ve(){}Ve.prototype.nodeType=O,c(Ve,he);function Ke(){}Ke.prototype.nodeType=x,c(Ke,he);function Pt(){}Pt.prototype.nodeType=y,c(Pt,he);function Lt(){}Lt.prototype.nodeName="#document-fragment",Lt.prototype.nodeType=w,c(Lt,he);function Ue(){}Ue.prototype.nodeType=A,c(Ue,he);function fs(){}fs.prototype.serializeToString=function(B,V,Z){return ws.call(B,V,Z)},he.prototype.toString=ws;function ws(B,V){var Z=[],ue=this.nodeType==9&&this.documentElement||this,Me=ue.prefix,it=ue.namespaceURI;if(it&&Me==null){var Me=ue.lookupPrefix(it);if(Me==null)var Ut=[{namespace:it,prefix:null}]}return vs(this,Z,B,V,Ut),Z.join("")}function Wn(B,V,Z){var ue=B.prefix||"",Me=B.namespaceURI;if(!Me||ue==="xml"&&Me===s.XML||Me===s.XMLNS)return!1;for(var it=Z.length;it--;){var Ut=Z[it];if(Ut.prefix===ue)return Ut.namespace!==Me}return!0}function _s(B,V,Z){B.push(" ",V,'="',Z.replace(/[<>&"\t\n\r]/g,Le),'"')}function vs(B,V,Z,ue,Me){if(Me||(Me=[]),ue)if(B=ue(B),B){if(typeof B=="string"){V.push(B);return}}else return;switch(B.nodeType){case p:var it=B.attributes,Ut=it.length,Ot=B.firstChild,Fr=B.tagName;Z=s.isHTML(B.namespaceURI)||Z;var yr=Fr;if(!Z&&!B.prefix&&B.namespaceURI){for(var er,pn=0;pn<it.length;pn++)if(it.item(pn).name==="xmlns"){er=it.item(pn).value;break}if(!er)for(var li=Me.length-1;li>=0;li--){var qs=Me[li];if(qs.prefix===""&&qs.namespace===B.namespaceURI){er=qs.namespace;break}}if(er!==B.namespaceURI)for(var li=Me.length-1;li>=0;li--){var qs=Me[li];if(qs.namespace===B.namespaceURI){qs.prefix&&(yr=qs.prefix+":"+Fr);break}}}V.push("<",yr);for(var wt=0;wt<Ut;wt++){var Oi=it.item(wt);Oi.prefix=="xmlns"?Me.push({prefix:Oi.localName,namespace:Oi.value}):Oi.nodeName=="xmlns"&&Me.push({prefix:"",namespace:Oi.value})}for(var wt=0;wt<Ut;wt++){var Oi=it.item(wt);if(Wn(Oi,Z,Me)){var Br=Oi.prefix||"",ui=Oi.namespaceURI;_s(V,Br?"xmlns:"+Br:"xmlns",ui),Me.push({prefix:Br,namespace:ui})}vs(Oi,V,Z,ue,Me)}if(Fr===yr&&Wn(B,Z,Me)){var Br=B.prefix||"",ui=B.namespaceURI;_s(V,Br?"xmlns:"+Br:"xmlns",ui),Me.push({prefix:Br,namespace:ui})}if(Ot||Z&&!/^(?:meta|link|img|br|hr|input)$/i.test(Fr)){if(V.push(">"),Z&&/^script$/i.test(Fr))for(;Ot;)Ot.data?V.push(Ot.data):vs(Ot,V,Z,ue,Me.slice()),Ot=Ot.nextSibling;else for(;Ot;)vs(Ot,V,Z,ue,Me.slice()),Ot=Ot.nextSibling;V.push("</",yr,">")}else V.push("/>");return;case S:case w:for(var Ot=B.firstChild;Ot;)vs(Ot,V,Z,ue,Me.slice()),Ot=Ot.nextSibling;return;case _:return _s(V,B.name,B.value);case b:return V.push(B.data.replace(/[<&>]/g,Le));case T:return V.push("<![CDATA[",B.data,"]]>");case C:return V.push("<!--",B.data,"-->");case E:var ps=B.publicId,Js=B.systemId;if(V.push("<!DOCTYPE ",B.name),ps)V.push(" PUBLIC ",ps),Js&&Js!="."&&V.push(" ",Js),V.push(">");else if(Js&&Js!=".")V.push(" SYSTEM ",Js,">");else{var Qe=B.internalSubset;Qe&&V.push(" [",Qe,"]"),V.push(">")}return;case A:return V.push("<?",B.target," ",B.data,"?>");case y:return V.push("&",B.nodeName,";");default:V.push("??",B.nodeName)}}function Xn(B,V,Z){var ue;switch(V.nodeType){case p:ue=V.cloneNode(!1),ue.ownerDocument=B;case w:break;case _:Z=!0;break}if(ue||(ue=V.cloneNode(!1)),ue.ownerDocument=B,ue.parentNode=null,Z)for(var Me=V.firstChild;Me;)ue.appendChild(Xn(B,Me,Z)),Me=Me.nextSibling;return ue}function Mo(B,V,Z){var ue=new V.constructor;for(var Me in V)if(Object.prototype.hasOwnProperty.call(V,Me)){var it=V[Me];typeof it!="object"&&it!=ue[Me]&&(ue[Me]=it)}switch(V.childNodes&&(ue.childNodes=new H),ue.ownerDocument=B,ue.nodeType){case p:var Ut=V.attributes,Ot=ue.attributes=new se,Fr=Ut.length;Ot._ownerElement=ue;for(var yr=0;yr<Fr;yr++)ue.setAttributeNode(Mo(B,Ut.item(yr),!0));break;case _:Z=!0}if(Z)for(var er=V.firstChild;er;)ue.appendChild(Mo(B,er,Z)),er=er.nextSibling;return ue}function Bl(B,V,Z){B[V]=Z}try{if(Object.defineProperty){let B=function(V){switch(V.nodeType){case p:case w:var Z=[];for(V=V.firstChild;V;)V.nodeType!==7&&V.nodeType!==8&&Z.push(B(V)),V=V.nextSibling;return Z.join("");default:return V.nodeValue}};Object.defineProperty(te.prototype,"length",{get:function(){return oe(this),this.$$length}}),Object.defineProperty(he.prototype,"textContent",{get:function(){return B(this)},set:function(V){switch(this.nodeType){case p:case w:for(;this.firstChild;)this.removeChild(this.firstChild);
290(V||String(V))&&this.appendChild(this.ownerDocument.createTextNode(V));break;default:this.data=V,this.value=V,this.nodeValue=V}}}),Bl=function(V,Z,ue){V["$$"+Z]=ue}}}catch{}return Sa.DocumentType=ce,Sa.DOMException=F,Sa.DOMImplementation=de,Sa.Element=z,Sa.Node=he,Sa.NodeList=H,Sa.XMLSerializer=fs,Sa}var Hd={},mw={},gw;function iQ(){return gw||(gw=1,function(t){var e=zg().freeze;t.XML_ENTITIES=e({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=e
vendor: 14,815 bytes, line 290
290({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:
290`
291`
vendor: 9,925 bytes, line 291
291,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"
291	",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES}(mw)),mw}var tp={},yw;function rQ(){if(yw)return tp;yw=1;var t=zg().NAMESPACE,e=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=new RegExp("[\\-\\.0-9"+e.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+e.source+s.source+"*(?::"+e.source+s.source+"*)?$"),r=0,n=1,a=2,o=3,l=4,c=5,d=6,p=7;function _(k,P){this.message=k,this.locator=P,Error.captureStackTrace&&Error.captureStackTrace(this,_)}
vendor: 5,465 bytes, line 291
291_.prototype=new Error,_.prototype.name=_.name;function b(){}b.prototype={parse:function(k,P,j){var F=this.domBuilder;F.startDocument(),E(P,P={}),T(k,P,j,F,this.errorHandler),F.endDocument()}};function T(k,P,j,F,H){function te(z){if(z>65535){z-=65536;var ee=55296+(z>>10),Ee=56320+(z&1023);return String.fromCharCode(ee,Ee)}else return String.fromCharCode(z)}function oe(z){var ee=z.slice(1,-1);return Object.hasOwnProperty.call(j,ee)?j[ee]:ee.charAt(0)==="#"?te(parseInt(ee.substr(1).replace("x","0x"))):(H.error("entity not found:"+z),z)}function se(z){if(z>Ge){var ee=k.substring(Ge,z).replace(/&#?\w+;/g,oe);he&&K(Ge),F.characters(ee,0,z-Ge),Ge=z}}function K(z,ee){for(;z>=ne&&(ee=de.exec(k));)X=ee.index,ne=X+ee[0].length,he.lineNumber++;he.columnNumber=z-X+1}for(var X=0,ne=0,de=/.*(?:\r\n?|\n)|.*$/g,he=F.locator,Le=[{currentNSMap:P}],qe={},Ge=0;;){try{var Xe=k.indexOf("<",Ge);if(Xe<0){if(!k.substr(Ge).match(/^\s*$/)){var Et=F.doc,me=Et.createTextNode(k.substr(Ge));Et.appendChild(me),F.currentElement=me}return}switch(Xe>Ge&&se(Xe),k.charAt(Xe+1)){case"/":var ve=k.indexOf(">",Xe+3),Ie=k.substring(Xe+2,ve).replace(/[ \t\n\r]+$/g,""),De=Le.pop();ve<0?(Ie=k.substring(Xe+2).replace(/[\s<].*/,""),H.error("end tag name: "+Ie+" is not complete:"+De.tagName),ve=Xe+1+Ie.length):Ie.match(/\s</)&&(Ie=Ie.replace(/[\s<].*/,""),H.error("end tag name: "+Ie+" maybe not complete"),ve=Xe+1+Ie.length);var Fe=De.localNSMap,Ze=De.tagName==Ie,rt=Ze||De.tagName&&De.tagName.toLowerCase()==Ie.toLowerCase();if(rt){if(F.endElement(De.uri,De.localName,Ie),Fe)for(var W in Fe)Object.prototype.hasOwnProperty.call(Fe,W)&&F.endPrefixMapping(W);Ze||H.fatalError("end tag name: "+Ie+" is not match the current start tagName:"+De.tagName)}else Le.push(De);ve++;break;case"?":he&&K(Xe),ve=O(k,Xe,F);break;case"!":he&&K(Xe),ve=w(k,Xe,F,H);break;default:he&&K(Xe);var q=new R,re=Le[Le.length-1].currentNSMap,ve=x(k,Xe,q,re,oe,H),ge=q.length;if(!q.closed&&S(k,ve,q.tagName,qe)&&(q.closed=!0,j.nbsp||H.warning("unclosed xml attribute")),he&&ge){for(var be=y(he,{}),Pe=0;Pe<ge;Pe++){var U=q[Pe];K(U.offset),U.locator=y(he,{})}F.locator=be,A(q,F,re)&&Le.push(q),F.locator=he}else A(q,F,re)&&Le.push(q);t.isHTML(q.uri)&&!q.closed?ve=C(k,ve,q.tagName,oe,F):ve++}}catch(z){if(z instanceof _)throw z;H.error("element parse error: "+z),ve=-1}ve>Ge?Ge=ve:se(Math.max(Xe,Ge)+1)}}function y(k,P){return P.lineNumber=k.lineNumber,P.columnNumber=k.columnNumber,P}function x(k,P,j,F,H,te){function oe(he,Le,qe){j.attributeNames.hasOwnProperty(he)&&te.fatalError("Attribute "+he+" redefined"),j.addValue(he,Le.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,H),qe)}for(var se,K,X=++P,ne=r;;){var de=k.charAt(X);switch(de){case"=":if(ne===n)se=k.slice(P,X),ne=o;else if(ne===a)ne=o;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(ne===o||ne===n)if(ne===n&&(te.warning('attribute value must after "="'),se=k.slice(P,X)),P=X+1,X=k.indexOf(de,P),X>0)K=k.slice(P,X),oe(se,K,P-1),ne=c;else throw new Error("attribute value no end '"+de+"' match");else if(ne==l)K=k.slice(P,X),oe(se,K,P),te.warning('attribute "'+se+'" missed start quot('+de+")!!"),P=X+1,ne=c;else throw new Error('attribute value must after "="');break;case"/":switch(ne){case r:j.setTagName(k.slice(P,X));case c:case d:case p:ne=p,j.closed=!0;case l:case n:break;case a:j.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return te.error("unexpected end of input"),ne==r&&j.setTagName(k.slice(P,X)),X;case">":switch(ne){case r:j.setTagName(k.slice(P,X));case c:case d:case p:break;case l:case n:K=k.slice(P,X),K.slice(-1)==="/"&&(j.closed=!0,K=K.slice(0,-1));case a:ne===a&&(K=se),ne==l?(te.warning('attribute "'+K+'" missed quot(")!'),oe(se,K,P)):((!t.isHTML(F[""])||!K.match(/^(?:disabled|checked|selected)$/i))&&te.warning('attribute "'+K+'" missed value!! "'+K+'" instead!!'),oe(K,K,P));break;case o:throw new Error("attribute value missed!!")}return X;case"€":de=" ";default:if(de<=" ")switch(ne){case r:j.setTagName(k.slice(P,X)),ne=d;break;case n:se=k.slice(P,X),ne=a;break;case l:var K=k.slice(P,X);te.warning('attribute "'+K+'" missed quot(")!!'),oe(se,K,P);case c:ne=d;break}else switch(ne){case a:j.tagName,(!t.isHTML(F[""])||!se.match(/^(?:disabled|checked|selected)$/i))&&te.warning('attribute "'+se+'" missed value!! "'+se+'" instead2!!'),oe(se,se,P),P=X,ne=n;break;case c:te.warning('attribute space is required"'+se+'"!!');case d:ne=n,P=X;break;case o:ne=l,P=X;break;case p:throw new Error("elements closed character '/' and '>' must be connected to")}}X++}}function A(k,P,j){for(var F=k.tagName,H=null,te=k.length;te--;){var oe=k[te],se=oe.qName,K=oe.value,he=se.indexOf(":");if(he>0)var X=oe.prefix=se.slice(0,he),ne=se.slice(he+1),de=X==="xmlns"&&ne;else ne=se,X=null,de=se==="xmlns"&&"";oe.localName=ne,de!==!1&&(H==null&&(H={},E(j,j={})),j[de]=H[de]=K,oe.uri=t.XMLNS,P.startPrefixMapping(de,K))}for(var te=k.length;te--;){oe=k[te];var X=oe.prefix;X&&(X==="xml"&&(oe.uri=t.XML),X!=="xmlns"&&(oe.uri=j[X||""]))}var he=F.indexOf(":");he>0?(X=k.prefix=F.slice(0,he),ne=k.localName=F.slice(he+1)):(X=null,ne=k.localName=F);var Le=k.uri=j[X||""];if(P.startElement(Le,ne,F,k),k.closed){if(P.endElement(Le,ne,F),H)for(X in H)Object.prototype.hasOwnProperty.call(H,X)&&P.endPrefixMapping(X)}else return k.currentNSMap=j,k.localNSMap=H,!0}function C(k,P,j,F,H){if(/^(?:script|textarea)$/i.test(j)){var te=k.indexOf("</"+j+">",P),oe=k.substring(P+1,te);
vendor: 4,845 bytes, lines 291-294
291if(/[&<]/.test(oe))return/^script$/i.test(j)?(H.characters(oe,0,oe.length),te):(oe=oe.replace(/&#?\w+;/g,F),H.characters(oe,0,oe.length),te)}return P+1}function S(k,P,j,F){var H=F[j];return H==null&&(H=k.lastIndexOf("</"+j+">"),H<P&&(H=k.lastIndexOf("</"+j)),F[j]=H),H<P}function E(k,P){for(var j in k)Object.prototype.hasOwnProperty.call(k,j)&&(P[j]=k[j])}function w(k,P,j,F){var H=k.charAt(P+2);switch(H){case"-":if(k.charAt(P+3)==="-"){var te=k.indexOf("-->",P+4);return te>P?(j.comment(k,P+4,te-P-4),te+3):(F.error("Unclosed comment"),-1)}else return-1;default:if(k.substr(P+3,6)=="CDATA["){var te=k.indexOf("]]>",P+9);return j.startCDATA(),j.characters(k,P+9,te-P-9),j.endCDATA(),te+3}var oe=$(k,P),se=oe.length;if(se>1&&/!doctype/i.test(oe[0][0])){var K=oe[1][0],X=!1,ne=!1;se>3&&(/^public$/i.test(oe[2][0])?(X=oe[3][0],ne=se>4&&oe[4][0]):/^system$/i.test(oe[2][0])&&(ne=oe[3][0]));var de=oe[se-1];return j.startDTD(K,X,ne),j.endDTD(),de.index+de[0].length}}return-1}function O(k,P,j){var F=k.indexOf("?>",P);if(F){var H=k.substring(P,F).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return H?(H[0].length,j.processingInstruction(H[1],H[2]),F+2):-1}return-1}function R(){this.attributeNames={}}R.prototype={setTagName:function(k){if(!i.test(k))throw new Error("invalid tagName:"+k);this.tagName=k},addValue:function(k,P,j){if(!i.test(k))throw new Error("invalid attribute:"+k);this.attributeNames[k]=this.length,this[this.length++]={qName:k,value:P,offset:j}},length:0,getLocalName:function(k){return this[k].localName},getLocator:function(k){return this[k].locator},getQName:function(k){return this[k].qName},getURI:function(k){return this[k].uri},getValue:function(k){return this[k].value}};function $(k,P){var j,F=[],H=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(H.lastIndex=P,H.exec(k);j=H.exec(k);)if(F.push(j),j[1])return F}return tp.XMLReader=b,tp.ParseError=_,tp}var _w;function nQ(){if(_w)return Hd;_w=1;var t=zg(),e=D4(),s=iQ(),i=rQ(),r=e.DOMImplementation,n=t.NAMESPACE,a=i.ParseError,o=i.XMLReader;function l(x){return x.replace(/\r[\n\u0085]/g,`
292`).replace(/[\r\u0085\u2028]/g,`
293`)}function c(x){this.options=x||{locator:{}}}c.prototype.parseFromString=function(x,A){var C=this.options,S=new o,E=C.domBuilder||new p,w=C.errorHandler,O=C.locator,R=C.xmlns||{},$=/\/x?html?$/.test(A),k=$?s.HTML_ENTITIES:s.XML_ENTITIES;O&&E.setDocumentLocator(O),S.errorHandler=d(w,E,O),S.domBuilder=C.domBuilder||E,$&&(R[""]=n.HTML),R.xml=R.xml||n.XML;var P=C.normalizeLineEndings||l;return x&&typeof x=="string"?S.parse(P(x),R,k):S.errorHandler.error("invalid doc source"),E.doc};function d(x,A,C){if(!x){if(A instanceof p)return A;x=A}var S={},E=x instanceof Function;C=C||{};function w(O){var R=x[O];!R&&E&&(R=x.length==2?function($){x(O,$)}:x),S[O]=R&&function($){R("[xmldom "+O+"]	"+$+b(C))}||function(){}}return w("warning"),w("error"),w("fatalError"),S}function p(){this.cdata=!1}function _(x,A){A.lineNumber=x.lineNumber,A.columnNumber=x.columnNumber}p.prototype={startDocument:function(){this.doc=new r().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(x,A,C,S){var E=this.doc,w=E.createElementNS(x,C||A),O=S.length;y(this,w),this.currentElement=w,this.locator&&_(this.locator,w);for(var R=0;R<O;R++){var x=S.getURI(R),$=S.getValue(R),C=S.getQName(R),k=E.createAttributeNS(x,C);this.locator&&_(S.getLocator(R),k),k.value=k.nodeValue=$,w.setAttributeNode(k)}},endElement:function(x,A,C){var S=this.currentElement;S.tagName,this.currentElement=S.parentNode},startPrefixMapping:function(x,A){},endPrefixMapping:function(x){},processingInstruction:function(x,A){var C=this.doc.createProcessingInstruction(x,A);this.locator&&_(this.locator,C),y(this,C)},ignorableWhitespace:function(x,A,C){},characters:function(x,A,C){if(x=T.apply(this,arguments),x){if(this.cdata)var S=this.doc.createCDATASection(x);else var S=this.doc.createTextNode(x);this.currentElement?this.currentElement.appendChild(S):/^\s*$/.test(x)&&this.doc.appendChild(S),this.locator&&_(this.locator,S)}},skippedEntity:function(x){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(x){(this.locator=x)&&(x.lineNumber=0)},comment:function(x,A,C){x=T.apply(this,arguments);var S=this.doc.createComment(x);this.locator&&_(this.locator,S),y(this,S)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(x,A,C){var S=this.doc.implementation;if(S&&S.createDocumentType){var E=S.createDocumentType(x,A,C);this.locator&&_(this.locator,E),y(this,E),this.doc.doctype=E}},warning:function(x){console.warn("[xmldom warning]	"+x,b(this.locator))},error:function(x){console.error("[xmldom error]	"+x,b(this.locator))},fatalError:function(x){throw new a(x,this.locator)}};function b(x){if(x)return`
294@`+(x.systemId||"")+"#[line:"+x.lineNumber+",col:"+x.columnNumber+"]"}
294function T(x,A,C){return typeof x=="string"?x.substr(A,C):x.length>=A+C||A?new java.lang.String(x,A,C)+"":x}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(x){p.prototype[x]=function(){return null}});function y(x,A){x.currentElement?x.currentElement.appendChild(A):x.doc.appendChild(A)}return Hd.__DOMHandler=p,Hd.normalizeLineEndings=l,Hd.DOMParser=c,Hd}var vw;function aQ(){if(vw)return jd;vw=1;var t=D4();return jd.DOMImplementation=t.DOMImplementation,jd.XMLSerializer=t.XMLSerializer,jd.DOMParser=nQ().DOMParser,jd}var oQ=aQ();/*! @name mpd-parser @version 1.3.1 @license Apache-2.0 */const bw=t=>!!t&&typeof t=="object",Us=(...t)=>t.reduce((e,s)=>(typeof s!="object"||Object.keys(s).forEach(i=>{Array.isArray(e[i])&&Array.isArray(s[i])?e[i]=e[i].concat(s[i]):bw(e[i])&&bw(s[i])?e[i]=Us(e[i],s[i]):e[i]=s[i]}),e),{}),I4=t=>Object.keys(t).map(e=>t[e]),lQ=(t,e)=>{const s=[];for(let i=t;i<e;i++)s.push(i);return s},sc=t=>t.reduce((e,s)=>e.concat(s),[]),P4=t=>{if(!t.length)return[];const e=[];for(let s=0;s<t.length;s++)e.push(t[s]);return e},uQ=(t,e)=>t.reduce((s,i,r)=>(i[e]&&s.push(r),s),[]),cQ=(t,e)=>I4(t.reduce((s,i)=>(i.forEach(r=>{s[e(r)]=r}),s),{}));var ic={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"};const Zh=({baseUrl:t="",source:e="",range:s="",indexRange:i=""})=>{const r={uri:e,resolvedUri:Vg(t||"",e)};if(s||i){const n=(s||i).split("-");let a=Y.BigInt?Y.BigInt(n[0]):parseInt(n[0],10),o=Y.BigInt?Y.BigInt(n[1]):parseInt(n[1],10);a<Number.MAX_SAFE_INTEGER&&typeof a=="bigint"&&(a=Number(a)),o<Number.MAX_SAFE_INTEGER&&typeof o=="bigint"&&(o=Number(o));let l;typeof o=="bigint"||typeof a=="bigint"?l=Y.BigInt(o)-Y.BigInt(a)+Y.BigInt(1):l=o-a+1,typeof l=="bigint"&&l<Number.MAX_SAFE_INTEGER&&(l=Number(l)),r.byterange={length:l,offset:a}}return r},dQ=t=>{let e;return typeof t.offset=="bigint"||typeof t.length=="bigint"?e=Y.BigInt(t.offset)+Y.BigInt(t.length)-Y.BigInt(1):e=t.offset+t.length-1,`${t.offset}-${e}`},Tw=t=>(t&&typeof t!="number"&&(t=parseInt(t,10)),isNaN(t)?null:t),hQ={static(t){const{duration:e,timescale:s=1,sourceDuration:i,periodDuration:r}=t,n=Tw(t.endNumber),a=e/s;return typeof n=="number"?{start:0,end:n}:typeof r=="number"?{start:0,end:r/a}:{start:0,end:i/a}},dynamic(t){const{NOW:e,clientOffset:s,availabilityStartTime:i,timescale:r=1,duration:n,periodStart:a=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:l=1/0}=t,c=Tw(t.endNumber),d=(e+s)/1e3,p=i+a,_=d+o-p,b=Math.ceil(_*r/n),T=Math.floor((d-p-l)*r/n),y=Math.floor((d-p)*r/n);return{start:Math.max(0,T),end:typeof c=="number"?c:Math.min(b,y)}}},fQ=t=>e=>{const{duration:s,timescale:i=1,periodStart:r,startNumber:n=1}=t;return{number:n+e,duration:s/i,timeline:r,time:e*s}},gS=t=>{const{type:e,duration:s,timescale:i=1,periodDuration:r,sourceDuration:n}=t,{start:a,end:o}=hQ[e](t),l=lQ(a,o).map(fQ(t));if(e==="static"){const c=l.length-1,d=typeof r=="number"?r:n;l[c].duration=d-s/i*c}return l},L4=t=>{const{baseUrl:e,initialization:s={},sourceDuration:i,indexRange:r="",periodStart:n,presentationTime:a,number:o=0,duration:l}=t;if(!e)throw new Error(ic.NO_BASE_URL);const c=Zh({baseUrl:e,source:s.sourceURL,range:s.range}),d=Zh({baseUrl:e,source:e,indexRange:r});if(d.map=c,l){const p=gS(t);p.length&&(d.duration=p[0].duration,d.timeline=p[0].timeline)}else i&&(d.duration=i,d.timeline=n);return d.presentationTime=a||n,d.number=o,[d]},yS=(t,e,s)=>{const i=t.sidx.map?t.sidx.map:null,r=t.sidx.duration,n=t.timeline||0,a=t.sidx.byterange,o=a.offset+a.length,l=e.timescale,c=e.references.filter(x=>x.referenceType!==1),d=[],p=t.endList?"static":"dynamic",_=t.sidx.timeline;let b=_,T=t.mediaSequence||0,y;typeof e.firstOffset=="bigint"?y=Y.BigInt(o)+e.firstOffset:y=o+e.firstOffset;for(let x=0;x<c.length;x++){const A=e.references[x],C=A.referencedSize,S=A.subsegmentDuration;let E;typeof y=="bigint"?E=y+Y.BigInt(C)-Y.BigInt(1):E=y+C-1;const w=`${y}-${E}`,O=L4({baseUrl:s,timescale:l,timeline:n,periodStart:_,presentationTime:b,number:T,duration:S,sourceDuration:r,indexRange:w,type:p})[0];i&&(O.map=i),d.push(O),typeof y=="bigint"?y+=Y.BigInt(C):y+=C,b+=S/l,T++}return t.segments=d,t},pQ=["AUDIO","SUBTITLES"],mQ=1/60,O4=t=>cQ(t,({timeline:e})=>e).sort((e,s)=>e.timeline>s.timeline?1:-1),gQ=(t,e)=>{for(let s=0;s<t.length;s++)if(t[s].attributes.NAME===e)return t[s];return null},Sw=t=>{let e=[];
vendor: 24,478 bytes, lines 294-304
294return eQ(t,pQ,(s,i,r,n)=>{e=e.concat(s.playlists||[])}),e},Ew=({playlist:t,mediaSequence:e})=>{t.mediaSequence=e,t.segments.forEach((s,i)=>{s.number=t.mediaSequence+i})},yQ=({oldPlaylists:t,newPlaylists:e,timelineStarts:s})=>{e.forEach(i=>{i.discontinuitySequence=s.findIndex(function({timeline:o}){return o===i.timeline});const r=gQ(t,i.attributes.NAME);if(!r||i.sidx)return;const n=i.segments[0],a=r.segments.findIndex(function(o){return Math.abs(o.presentationTime-n.presentationTime)<mQ});if(a===-1){Ew({playlist:i,mediaSequence:r.mediaSequence+r.segments.length}),i.segments[0].discontinuity=!0,i.discontinuityStarts.unshift(0),(!r.segments.length&&i.timeline>r.timeline||r.segments.length&&i.timeline>r.segments[r.segments.length-1].timeline)&&i.discontinuitySequence--;return}r.segments[a].discontinuity&&!n.discontinuity&&(n.discontinuity=!0,i.discontinuityStarts.unshift(0),i.discontinuitySequence--),Ew({playlist:i,mediaSequence:r.segments[a].number})})},_Q=({oldManifest:t,newManifest:e})=>{const s=t.playlists.concat(Sw(t)),i=e.playlists.concat(Sw(e));return e.timelineStarts=O4([t.timelineStarts,e.timelineStarts]),yQ({oldPlaylists:s,newPlaylists:i,timelineStarts:e.timelineStarts}),e},Gg=t=>t&&t.uri+"-"+dQ(t.byterange),sv=t=>{const e=t.reduce(function(i,r){return i[r.attributes.baseUrl]||(i[r.attributes.baseUrl]=[]),i[r.attributes.baseUrl].push(r),i},{});let s=[];return Object.values(e).forEach(i=>{const r=I4(i.reduce((n,a)=>{const o=a.attributes.id+(a.attributes.lang||"");return n[o]?(a.segments&&(a.segments[0]&&(a.segments[0].discontinuity=!0),n[o].segments.push(...a.segments)),a.attributes.contentProtection&&(n[o].attributes.contentProtection=a.attributes.contentProtection)):(n[o]=a,n[o].attributes.timelineStarts=[]),n[o].attributes.timelineStarts.push({start:a.attributes.periodStart,timeline:a.attributes.periodStart}),n},{}));s=s.concat(r)}),s.map(i=>(i.discontinuityStarts=uQ(i.segments||[],"discontinuity"),i))},_S=(t,e)=>{const s=Gg(t.sidx),i=s&&e[s]&&e[s].sidx;return i&&yS(t,i,t.sidx.resolvedUri),t},vQ=(t,e={})=>{if(!Object.keys(e).length)return t;for(const s in t)t[s]=_S(t[s],e);return t},bQ=({attributes:t,segments:e,sidx:s,mediaSequence:i,discontinuitySequence:r,discontinuityStarts:n},a)=>{const o={attributes:{NAME:t.id,BANDWIDTH:t.bandwidth,CODECS:t.codecs,"PROGRAM-ID":1},uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,discontinuitySequence:r,discontinuityStarts:n,timelineStarts:t.timelineStarts,mediaSequence:i,segments:e};return t.contentProtection&&(o.contentProtection=t.contentProtection),t.serviceLocation&&(o.attributes.serviceLocation=t.serviceLocation),s&&(o.sidx=s),a&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o},TQ=({attributes:t,segments:e,mediaSequence:s,discontinuityStarts:i,discontinuitySequence:r})=>{typeof e>"u"&&(e=[{uri:t.baseUrl,timeline:t.periodStart,resolvedUri:t.baseUrl||"",duration:t.sourceDuration,number:0}],t.duration=t.sourceDuration);const n={NAME:t.id,BANDWIDTH:t.bandwidth,"PROGRAM-ID":1};t.codecs&&(n.CODECS=t.codecs);const a={attributes:n,uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,timelineStarts:t.timelineStarts,discontinuityStarts:i,discontinuitySequence:r,mediaSequence:s,segments:e};return t.serviceLocation&&(a.attributes.serviceLocation=t.serviceLocation),a},SQ=(t,e={},s=!1)=>{let i;const r=t.reduce((n,a)=>{const o=a.attributes.role&&a.attributes.role.value||"",l=a.attributes.lang||"";let c=a.attributes.label||"main";if(l&&!a.attributes.label){const p=o?` (${o})`:"";c=`${a.attributes.lang}${p}`}n[c]||(n[c]={language:l,autoselect:!0,default:o==="main",playlists:[],uri:""});const d=_S(bQ(a,s),e);return n[c].playlists.push(d),typeof i>"u"&&o==="main"&&(i=a,i.default=!0),n},{});if(!i){const n=Object.keys(r)[0];r[n].default=!0}return r},EQ=(t,e={})=>t.reduce((s,i)=>{const r=i.attributes.label||i.attributes.lang||"text",n=i.attributes.lang||"und";return s[r]||(s[r]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),s[r].playlists.push(_S(TQ(i),e)),s},{}),xQ=t=>t.reduce((e,s)=>(s&&s.forEach(i=>{const{channel:r,language:n}=i;e[n]={autoselect:!1,default:!1,instreamId:r,language:n},i.hasOwnProperty("aspectRatio")&&(e[n].aspectRatio=i.aspectRatio),i.hasOwnProperty("easyReader")&&(e[n].easyReader=i.easyReader),i.hasOwnProperty("3D")&&(e[n]["3D"]=i["3D"])}),e),{}),CQ=({attributes:t,segments:e,sidx:s,discontinuityStarts:i})=>{const r={attributes:{NAME:t.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:t.width,height:t.height},CODECS:t.codecs,BANDWIDTH:t.bandwidth,"PROGRAM-ID":1},uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,discontinuityStarts:i,timelineStarts:t.timelineStarts,segments:e};return t.frameRate&&(r.attributes["FRAME-RATE"]=t.frameRate),t.contentProtection&&(r.contentProtection=t.contentProtection),t.serviceLocation&&(r.attributes.serviceLocation=t.serviceLocation),s&&(r.sidx=s),r},wQ=({attributes:t})=>t.mimeType==="video/mp4"||t.mimeType==="video/webm"||t.contentType==="video",AQ=({attributes:t})=>t.mimeType==="audio/mp4"||t.mimeType==="audio/webm"||t.contentType==="audio",kQ=({attributes:t})=>t.mimeType==="text/vtt"||t.contentType==="text",DQ=(t,e)=>{t.forEach(s=>{s.mediaSequence=0,s.discontinuitySequence=e.findIndex(function({timeline:i}){return i===s.timeline}),s.segments&&s.segments.forEach((i,r)=>{i.number=r})})},xw=t=>t?Object.keys(t).reduce((e,s)=>{const i=t[s];return e.concat(i.playlists)},[]):[],IQ=({dashPlaylists:t,locations:e,contentSteering:s,sidxMapping:i={},previousManifest:r,eventStream:n})=>{if(!t.length)return{};const{sourceDuration:a,type:o,suggestedPresentationDelay:l,minimumUpdatePeriod:c}=t[0].attributes,d=sv(t.filter(wQ)).map(CQ),p=sv(t.filter(AQ)),_=sv(t.filter(kQ)),b=t.map(E=>E.attributes.captionServices).filter(Boolean),T={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:a,playlists:vQ(d,i)};c>=0&&(T.minimumUpdatePeriod=c*1e3),e&&(T.locations=e),s&&(T.contentSteering=s),o==="dynamic"&&(T.suggestedPresentationDelay=l),n&&n.length>0&&(T.eventStream=n);const y=T.playlists.length===0,x=p.length?SQ(p,i,y):null,A=_.length?EQ(_,i):null,C=d.concat(xw(x),xw(A)),S=C.map(({timelineStarts:E})=>E);return T.timelineStarts=O4(S),DQ(C,T.timelineStarts),x&&(T.mediaGroups.AUDIO.audio=x),A&&(T.mediaGroups.SUBTITLES.subs=A),b.length&&(T.mediaGroups["CLOSED-CAPTIONS"].cc=xQ(b)),r?_Q({oldManifest:r,newManifest:T}):T},PQ=(t,e,s)=>{const{NOW:i,clientOffset:r,availabilityStartTime:n,timescale:a=1,periodStart:o=0,minimumUpdatePeriod:l=0}=t,c=(i+r)/1e3,d=n+o,p=c+l-d;return Math.ceil((p*a-e)/s)},N4=(t,e)=>{const{type:s,minimumUpdatePeriod:i=0,media:r="",sourceDuration:n,timescale:a=1,startNumber:o=1,periodStart:l}=t,c=[];let d=-1;for(let p=0;p<e.length;p++){const _=e[p],b=_.d,T=_.r||0,y=_.t||0;d<0&&(d=y),y&&y>d&&(d=y);let x;if(T<0){const S=p+1;S===e.length?s==="dynamic"&&i>0&&r.indexOf("$Number$")>0?x=PQ(t,d,b):x=(n*a-d)/b:x=(e[S].t-d)/b}else x=T+1;const A=o+c.length+x;let C=o+c.length;for(;C<A;)c.push({number:C,duration:b/a,time:d,timeline:l}),d+=b,C++}return c},LQ=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,OQ=t=>(e,s,i,r)=>{if(e==="$$")return"$";if(typeof t[s]>"u")return e;const n=""+t[s];return s==="RepresentationID"||(i?r=parseInt(r,10):r=1,n.length>=r)?n:`${new Array(r-n.length+1).join("0")}${n}`},Cw=(t,e)=>t.replace(LQ,OQ(e)),NQ=(t,e)=>!t.duration&&!e?[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]:t.duration?gS(t):N4(t,e),RQ=(t,e)=>{const s={RepresentationID:t.id,Bandwidth:t.bandwidth||0},{initialization:i={sourceURL:"",range:""}}=t,r=Zh({baseUrl:t.baseUrl,source:Cw(i.sourceURL,s),range:i.range});return NQ(t,e).map(n=>{s.Number=n.number,s.Time=n.time;const a=Cw(t.media||"",s),o=t.timescale||1,l=t.presentationTimeOffset||0,c=t.periodStart+(n.time-l)/o;return{uri:a,timeline:n.timeline,duration:n.duration,resolvedUri:Vg(t.baseUrl||"",a),map:r,number:n.number,presentationTime:c}})},MQ=(t,e)=>{const{baseUrl:s,initialization:i={}}=t,r=Zh({baseUrl:s,source:i.sourceURL,range:i.range}),n=Zh({baseUrl:s,source:e.media,range:e.mediaRange});return n.map=r,n},FQ=(t,e)=>{const{duration:s,segmentUrls:i=[],periodStart:r}=t;if(!s&&!e||s&&e)throw new Error(ic.SEGMENT_TIME_UNSPECIFIED);const n=i.map(o=>MQ(t,o));let a;return s&&(a=gS(t)),e&&(a=N4(t,e)),a.map((o,l)=>{if(n[l]){const c=n[l],d=t.timescale||1,p=t.presentationTimeOffset||0;return c.timeline=o.timeline,c.duration=o.duration,c.number=o.number,c.presentationTime=r+(o.time-p)/d,c}}).filter(o=>o)},BQ=({attributes:t,segmentInfo:e})=>{let s,i;e.template?(i=RQ,s=Us(t,e.template)):e.base?(i=L4,s=Us(t,e.base)):e.list&&(i=FQ,s=Us(t,e.list));const r={attributes:t};if(!i)return r;const n=i(s,e.segmentTimeline);if(s.duration){const{duration:a,timescale:o=1}=s;s.duration=a/o}else n.length?s.duration=n.reduce((a,o)=>Math.max(a,Math.ceil(o.duration)),0):s.duration=0;return r.attributes=s,r.segments=n,e.base&&s.indexRange&&(r.sidx=n[0],r.segments=[]),r},UQ=t=>t.map(BQ),os=(t,e)=>P4(t.childNodes).filter(({tagName:s})=>s===e),wf=t=>t.textContent.trim(),$Q=t=>parseFloat(t.split("/").reduce((e,s)=>e/s)),Yl=t=>{const e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!e)return 0;const[s,i,r,n,a,o]=e.slice(1);return parseFloat(s||0)*31536e3+parseFloat(i||0)*2592e3+parseFloat(r||0)*86400+parseFloat(n||0)*3600+parseFloat(a||0)*60+parseFloat(o||0)},jQ=t=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t)&&(t+="Z"),Date.parse(t)),ww={mediaPresentationDuration(t){return Yl(t)},availabilityStartTime(t){return jQ(t)/1e3},minimumUpdatePeriod(t){return Yl(t)},suggestedPresentationDelay(t){return Yl(t)},type(t){return t},timeShiftBufferDepth(t){return Yl(t)},start(t){return Yl(t)},width(t){return parseInt(t,10)},height(t){return parseInt(t,10)},bandwidth(t){return parseInt(t,10)},frameRate(t){return $Q(t)},startNumber(t){return parseInt(t,10)},timescale(t){return parseInt(t,10)},presentationTimeOffset(t){return parseInt(t,10)},duration(t){const e=parseInt(t,10);return isNaN(e)?Yl(t):e},d(t){return parseInt(t,10)},t(t){return parseInt(t,10)},r(t){return parseInt(t,10)},presentationTime(t){return parseInt(t,10)},DEFAULT(t){return t}},Es=t=>t&&t.attributes?P4(t.attributes).reduce((e,s)=>{const i=ww[s.name]||ww.DEFAULT;return e[s.name]=i(s.value),e},{}):{},HQ={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},Wg=(t,e)=>e.length?sc(t.map(function(s){return e.map(function(i){const r=wf(i),n=Vg(s.baseUrl,r),a=Us(Es(i),{baseUrl:n});return n!==r&&!a.serviceLocation&&s.serviceLocation&&(a.serviceLocation=s.serviceLocation),a})})):t,vS=t=>{const e=os(t,"SegmentTemplate")[0],s=os(t,"SegmentList")[0],i=s&&os(s,"SegmentURL").map(p=>Us({tag:"SegmentURL"},Es(p))),r=os(t,"SegmentBase")[0],n=s||e,a=n&&os(n,"SegmentTimeline")[0],o=s||r||e,l=o&&os(o,"Initialization")[0],c=e&&Es(e);c&&l?c.initialization=l&&Es(l):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});const d={template:c,segmentTimeline:a&&os(a,"S").map(p=>Es(p)),list:s&&Us(Es(s),{segmentUrls:i,initialization:Es(l)}),base:r&&Us(Es(r),{initialization:Es(l)})};return Object.keys(d).forEach(p=>{d[p]||delete d[p]}),d},qQ=(t,e,s)=>i=>{const r=os(i,"BaseURL"),n=Wg(e,r),a=Us(t,Es(i)),o=vS(i);return n.map(l=>({segmentInfo:Us(s,o),attributes:Us(a,l)}))},VQ=t=>t.reduce((e,s)=>{const i=Es(s);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());const r=HQ[i.schemeIdUri];if(r){e[r]={attributes:i};const n=os(s,"cenc:pssh")[0];if(n){const a=wf(n);e[r].pssh=a&&sQ(a)}}return e},{}),zQ=t=>{if(t.schemeIdUri==="urn:scte:dash:cc:cea-608:2015")return(typeof t.value!="string"?[]:t.value.split(";")).map(e=>{let s,i;return i=e,/^CC\d=/.test(e)?[s,i]=e.split("="):/^CC\d$/.test(e)&&(s=e),{channel:s,language:i}});if(t.schemeIdUri==="urn:scte:dash:cc:cea-708:2015")return(typeof t.value!="string"?[]:t.value.split(";")).map(e=>{const s={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){const[i,r=""]=e.split("=");s.channel=i,s.language=e,r.split(",").forEach(n=>{const[a,o]=n.split(":");a==="lang"?s.language=o:a==="er"?s.easyReader=Number(o):a==="war"?s.aspectRatio=Number(o):a==="3D"&&(s["3D"]=Number(o))})}else s.language=e;return s.channel&&(s.channel="SERVICE"+s.channel),s})},GQ=t=>sc(os(t.node,"EventStream").map(e=>{const s=Es(e),i=s.schemeIdUri;return os(e,"Event").map(r=>{const n=Es(r),a=n.presentationTime||0,o=s.timescale||1,l=n.duration||0,c=a/o+t.attributes.start;return{schemeIdUri:i,value:s.value,id:n.id,start:c,end:c+l/o,messageData:wf(r)||n.messageData,contentEncoding:s.contentEncoding,presentationTimeOffset:s.presentationTimeOffset||0}})})),WQ=(t,e,s)=>i=>{const r=Es(i),n=Wg(e,os(i,"BaseURL")),a=os(i,"Role")[0],o={role:Es(a)};let l=Us(t,r,o);const c=os(i,"Accessibility")[0],d=zQ(Es(c));d&&(l=Us(l,{captionServices:d}));const p=os(i,"Label")[0];if(p&&p.childNodes.length){const x=p.childNodes[0].nodeValue.trim();l=Us(l,{label:x})}const _=VQ(os(i,"ContentProtection"));Object.keys(_).length&&(l=Us(l,{contentProtection:_}));const b=vS(i),T=os(i,"Representation"),y=Us(s,b);return sc(T.map(qQ(l,n,y)))},XQ=(t,e)=>(s,i)=>{const r=Wg(e,os(s.node,"BaseURL")),n=Us(t,{periodStart:s.attributes.start});typeof s.attributes.duration=="number"&&(n.periodDuration=s.attributes.duration);const a=os(s.node,"AdaptationSet"),o=vS(s.node);return sc(a.map(WQ(n,r,o)))},KQ=(t,e)=>{if(t.length>1&&e({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!t.length)return null;const s=Us({serverURL:wf(t[0])},Es(t[0]));return s.queryBeforeStart=s.queryBeforeStart==="true",s},YQ=({attributes:t,priorPeriodAttributes:e,mpdType:s})=>typeof t.start=="number"?t.start:e&&typeof e.start=="number"&&typeof e.duration=="number"?e.start+e.duration:!e&&s==="static"?0:null,QQ=(t,e={})=>{const{manifestUri:s="",NOW:i=Date.now(),clientOffset:r=0,eventHandler:n=function(){}}=e,a=os(t,"Period");if(!a.length)throw new Error(ic.INVALID_NUMBER_OF_PERIOD);const o=os(t,"Location"),l=Es(t),c=Wg([{baseUrl:s}],os(t,"BaseURL")),d=os(t,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=i,l.clientOffset=r,o.length&&(l.locations=o.map(wf));const p=[];return a.forEach((_,b)=>{const T=Es(_),y=p[b-1];T.start=YQ({attributes:T,priorPeriodAttributes:y?y.attributes:null,mpdType:l.type}),p.push({node:_,attributes:T})}),{locations:l.locations,contentSteeringInfo:KQ(d,n),representationInfo:sc(p.map(XQ(l,c))),eventStream:sc(p.map(GQ))}},R4=t=>{if(t==="")throw new Error(ic.DASH_EMPTY_MANIFEST);const e=new oQ.DOMParser;let s,i;try{s=e.parseFromString(t,"application/xml"),i=s&&s.documentElement.tagName==="MPD"?s.documentElement:null}catch{}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error(ic.DASH_INVALID_XML);return i},JQ=t=>{const e=os(t,"UTCTiming")[0];if(!e)return null;const s=Es(e);switch(s.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":s.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":s.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":s.method="DIRECT",s.value=Date.parse(s.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(ic.UNSUPPORTED_UTC_TIMING_SCHEME)}return s},ZQ=(t,e={})=>{const s=QQ(R4(t),e),i=UQ(s.representationInfo);return IQ({dashPlaylists:i,locations:s.locations,contentSteering:s.contentSteeringInfo,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest,eventStream:s.eventStream})},eJ=t=>JQ(R4(t));var iv,Aw;function tJ(){if(Aw)return iv;Aw=1;var t=Math.pow(2,32),e=function(s){var i=new DataView(s.buffer,s.byteOffset,s.byteLength),r;return i.getBigUint64?(r=i.getBigUint64(0),r<Number.MAX_SAFE_INTEGER?Number(r):r):i.getUint32(0)*t+i.getUint32(4)};return iv={getUint64:e,MAX_UINT32:t},iv}var rv,kw;function sJ(){if(kw)return rv;kw=1;var t=tJ().getUint64,e=function(s){var i=new DataView(s.buffer,s.byteOffset,s.byteLength),r={version:s[0],flags:new Uint8Array(s.subarray(1,4)),references:[],referenceId:i.getUint32(4),timescale:i.getUint32(8)},n=12;r.version===0?(r.earliestPresentationTime=i.getUint32(n),r.firstOffset=i.getUint32(n+4),n+=8):(r.earliestPresentationTime=t(s.subarray(n)),r.firstOffset=t(s.subarray(n+8)),n+=16),n+=2;var a=i.getUint16(n);for(n+=2;a>0;n+=12,a--)r.references.push({referenceType:(s[n]&128)>>>7,referencedSize:i.getUint32(n)&2147483647,subsegmentDuration:i.getUint32(n+4),startsWithSap:!!(s[n+8]&128),sapType:(s[n+8]&112)>>>4,sapDeltaTime:i.getUint32(n+8)&268435455});return r};return rv=e,rv}var iJ=sJ();const rJ=Oo(iJ);var nJ=tt([73,68,51]),aJ=function(t,e){e===void 0&&(e=0),t=tt(t);var s=t[e+5],i=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9],r=(s&16)>>4;return r?i+20:i+10},th=function t(e,s){return s===void 0&&(s=0),e=tt(e),e.length-s<10||!ns(e,nJ,{offset:s})?s:(s+=aJ(e,s),t(e,s))},Dw=function(t){return typeof t=="string"?k4(t):t},oJ=function(t){return Array.isArray(t)?t.map(function(e){return Dw(e)}):[Dw(t)]},lJ=function t(e,s,i){i===void 0&&(i=!1),s=oJ(s),e=tt(e);var r=[];if(!s.length)return r;for(var n=0;n<e.length;){var a=(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3])>>>0,o=e.subarray(n+4,n+8);if(a===0)break;var l=n+a;if(l>e.length){if(i)break;l=e.length}var c=e.subarray(n+8,l);ns(o,s[0])&&(s.length===1?r.push(c):r.push.apply(r,t(c,s.slice(1),i))),n=l}return r},sp={EBML:tt([26,69,223,163]),DocType:tt([66,130]),Segment:tt([24,83,128,103]),SegmentInfo:tt([21,73,169,102]),Tracks:tt([22,84,174,107]),Track:tt([174]),TrackNumber:tt([215]),DefaultDuration:tt([35,227,131]),TrackEntry:tt([174]),TrackType:tt([131]),FlagDefault:tt([136]),CodecID:tt([134]),CodecPrivate:tt([99,162]),VideoTrack:tt([224]),AudioTrack:tt([225]),Cluster:tt([31,67,182,117]),Timestamp:tt([231]),TimestampScale:tt([42,215,177]),BlockGroup:tt([160]),BlockDuration:tt([155]),Block:tt([161]),SimpleBlock:tt([163])},Wb=[128,64,32,16,8,4,2,1],uJ=function(t){for(var e=1,s=0;s<Wb.length&&!(t&Wb[s]);s++)e++;return e},Tm=function(t,e,s,i){s===void 0&&(s=!0),i===void 0&&(i=!1);var r=uJ(t[e]),n=t.subarray(e,e+r);return s&&(n=Array.prototype.slice.call(t,e,e+r),n[0]^=Wb[r-1]),{length:r,value:QY(n,{signed:i}),bytes:n}},Iw=function t(e){return typeof e=="string"?e.match(/.{1,2}/g).map(function(s){return t(s)}):typeof e=="number"?JY(e):e},cJ=function(t){return Array.isArray(t)?t.map(function(e){return Iw(e)}):[Iw(t)]},dJ=function t(e,s,i){if(i>=s.length)return s.length;var r=Tm(s,i,!1);if(ns(e.bytes,r.bytes))return i;var n=Tm(s,i+r.length);return t(e,s,i+n.length+n.value+r.length)},Pw=function t(e,s){s=cJ(s),e=tt(e);var i=[];if(!s.length)return i;for(var r=0;r<e.length;){var n=Tm(e,r,!1),a=Tm(e,r+n.length),o=r+n.length+a.length;a.value===127&&(a.value=dJ(n,e,o),a.value!==e.length&&(a.value-=o));var l=o+a.value>e.length?e.length:o+a.value,c=e.subarray(o,l);ns(s[0],n.bytes)&&(s.length===1?i.push(c):i=i.concat(t(c,s.slice(1))));var d=n.length+a.length+c.length;r+=d}return i},hJ=tt([0,0,0,1]),fJ=tt([0,0,1]),pJ=tt([0,0,3]),mJ=function(t){for(var e=[],s=1;s<t.length-2;)ns(t.subarray(s,s+3),pJ)&&(e.push(s+2),s++),s++;if(e.length===0)return t;var i=t.length-e.length,r=new Uint8Array(i),n=0;for(s=0;s<i;n++,s++)n===e[0]&&(n++,e.shift()),r[s]=t[n];return r},M4=function(t,e,s,i){t=tt(t),s=[].concat(s);for(var r=0,n,a=0;r<t.length&&(a<i||n);){var o=void 0;if(ns(t.subarray(r),hJ)?o=4:ns(t.subarray(r),fJ)&&(o=3),!o){r++;continue}if(a++,n)return mJ(t.subarray(n,r));var l=void 0;e==="h264"?l=t[r+o]&31:e==="h265"&&(l=t[r+o]>>1&63),s.indexOf(l)!==-1&&(n=r+o),r+=o+(e==="h264"?1:2)}return t.subarray(0,0)},gJ=function(t,e,s){return M4(t,"h264",e,s)},yJ=function(t,e,s){return M4(t,"h265",e,s)},yi={webm:tt([119,101,98,109]),matroska:tt([109,97,116,114,111,115,107,97]),flac:tt([102,76,97,67]),ogg:tt([79,103,103,83]),ac3:tt([11,119]),riff:tt([82,73,70,70]),avi:tt([65,86,73]),wav:tt([87,65,86,69]),"3gp":tt([102,116,121,112,51,103]),mp4:tt([102,116,121,112]),fmp4:tt([115,116,121,112]),mov:tt([102,116,121,112,113,116]),moov:tt([109,111,111,118]),moof:tt([109,111,111,102])},rc={aac:function(t){var e=th(t);return ns(t,[255,16],{offset:e,mask:[255,22]})},mp3:function(t){var e=th(t);return ns(t,[255,2],{offset:e,mask:[255,6]})},webm:function(t){var e=Pw(t,[sp.EBML,sp.DocType])[0];return ns(e,yi.webm)},mkv:function(t){var e=Pw(t,[sp.EBML,sp.DocType])[0];return ns(e,yi.matroska)},mp4:function(t){if(rc["3gp"](t)||rc.mov(t))return!1;if(ns(t,yi.mp4,{offset:4})||ns(t,yi.fmp4,{offset:4})||ns(t,yi.moof,{offset:4})||ns(t,yi.moov,{offset:4}))return!0},mov:function(t){return ns(t,yi.mov,{offset:4})},"3gp":function(t){return ns(t,yi["3gp"],{offset:4})},ac3:function(t){var e=th(t);return ns(t,yi.ac3,{offset:e})},ts:function(t){if(t.length<189&&t.length>=1)return t[0]===71;for(var e=0;e+188<t.length&&e<188;){if(t[e]===71&&t[e+188]===71)return!0;e+=1}return!1},flac:function(t){var e=th(t);return ns(t,yi.flac,{offset:e})},ogg:function(t){return ns(t,yi.ogg)},avi:function(t){return ns(t,yi.riff)&&ns(t,yi.avi,{offset:8})},wav:function(t){return ns(t,yi.riff)&&ns(t,yi.wav,{offset:8})},h264:function(t){return gJ(t,7,3).length},h265:function(t){return yJ(t,[32,33],3).length}},Xb=Object.keys(rc).filter(function(t){return t!=="ts"&&t!=="h264"&&t!=="h265"}).concat(["ts","h264","h265"]);Xb.forEach(function(t){var e=rc[t];rc[t]=function(s){return e(tt(s))}});var _J=rc,bS=function(t){t=tt(t);for(var e=0;e<Xb.length;e++){var s=Xb[e];if(_J[s](t))return s}return""},vJ=function(t){return lJ(t,["moof"]).length>0},nv,Lw;function bJ(){if(Lw)return nv;Lw=1;var t=9e4,e,s,i,r,n,a,o;return e=function(l){return l*t},s=function(l,c){return l*c},i=function(l){return l/t},r=function(l,c){return l/c},n=function(l,c){return e(r(l,c))},a=function(l,c){return s(i(l),c)},o=function(l,c,d){return i(d?l:l-c)},nv={ONE_SECOND_IN_TS:t,secondsToVideoTs:e,secondsToAudioTs:s,videoTsToSeconds:i,audioTsToSeconds:r,audioTsToVideoTs:n,videoTsToAudioTs:a,metadataTsToSeconds:o},nv}var dl=bJ();/**
295 * @license
296 * Video.js 8.10.0 <http://videojs.com/>
297 * Copyright Brightcove, Inc. <https://www.brightcove.com/>
298 * Available under Apache License Version 2.0
299 * <https://github.com/videojs/video.js/blob/main/LICENSE>
300 *
301 * Includes vtt.js <https://github.com/mozilla/vtt.js>
302 * Available under Apache License Version 2.0
303 * <https://github.com/mozilla/vtt.js/blob/main/LICENSE>
304 */var Kb="8.10.0";const La={},wo=function(t,e){return La[t]=La[t]||[],e&&(La[t]=La[t].concat(e)),La[t]},TJ=function(t,e){wo(t,e)},F4=function(t,e){const s=wo(t).indexOf(e);return s<=-1?!1:(La[t]=La[t].slice(),La[t].splice(s,1),!0)},SJ=function(t,e){wo(t,[].concat(e).map(s=>{const i=(...r)=>(F4(t,i),s(...r));return i}))},Sm={prefixed:!0},Ep=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],Ow=Ep[0];let sh;for(let t=0;t<Ep.length;t++)if(Ep[t][1]in Ne){sh=Ep[t];break}if(sh){for(let t=0;t<sh.length;t++)Sm[Ow[t]]=sh[t];Sm.prefixed=sh[0]!==Ow[0]}let Fi=[];const EJ=(t,e,s)=>(i,r,n)=>{const a=e.levels[r],o=new RegExp(`^(${a})$`);let l=t;if(i!=="log"&&n.unshift(i.toUpperCase()+":"),s&&(l=`%c${t}`,n.unshift(s)),n.unshift(l+":"),Fi){Fi.push([].concat(n));const d=Fi.length-1e3;Fi.splice(0,d>0?d:0)}if(!Y.console)return;let c=Y.console[i];!c&&i==="debug"&&(c=Y.console.info||Y.console.log),!(!c||!a||!o.test(i))&&c[Array.isArray(n)?"apply":"call"](Y.console,n)};function Yb(t,e=":",s=""){let i="info",r;const n=function(...a){r("log",i,a)};return r=EJ(t,n,s),n.createLogger=(a,o,l)=>{const c=o!==void 0?o:e,d=l!==void 0?l:s,p=`${t} ${c} ${a}`;return Yb(p,c,d)},n.createNewLogger=(a,o,l)=>Yb(a,o,l),n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:i},n.level=a=>
304{if(typeof a=="string"){if(!n.levels.hasOwnProperty(a))throw new Error(`"${a}" in not a valid log level`);i=a}return i},n.history=()=>Fi?[].concat(Fi):[],n.history.filter=a=>(Fi||[]).filter(o=>new RegExp(`.*${a}.*`).test(o[0])),n.history.clear=()=>{Fi&&(Fi.length=0)},n.history.disable=()=>{Fi!==null&&(Fi.length=0,Fi=null)},n.history.enable=()=>{Fi===null&&(Fi=[])},n.error=(...a)=>r("error",i,a),n.warn=(...a)=>r("warn",i,a),n.debug=(...a)=>r("debug",i,a),n}const kt=Yb("VIDEOJS"),B4=kt.createLogger,xJ=Object.prototype.toString,U4=function(t){return Hn(t)?Object.keys(t):[]};function Cu(t,e){U4(t).forEach(s=>e(t[s],s))}function $4(t,e,s=0){return U4(t).reduce((i,r)=>e(i,t[r],r),s)}function Hn(t){return!!t&&typeof t=="object"}function nc(t){return Hn(t)&&xJ.call(t)==="[object Object]"&&t.constructor===Object}function Yt(...t){const e={};return t.forEach(s=>{s&&Cu(s,(i,r)=>{if(!nc(i)){e[r]=i;return}nc(e[r])||(e[r]={}),e[r]=Yt(e[r],i)})}),e}function j4(t={}){const e=[];for(const s in t)if(t.hasOwnProperty(s)){const i=t[s];e.push(i)}return e}function Xg(t,e,s,i=!0){const r=a=>Object.defineProperty(t,e,{value:a,enumerable:!0,writable:!0}),n={configurable:!0,enumerable:!0,get(){const a=s();return r(a),a}};return i&&(n.set=r),Object.defineProperty(t,e,n)}var CJ=Object.freeze({__proto__:null,each:Cu,reduce:$4,isObject:Hn,isPlain:nc,merge:Yt,values:j4,defineLazyProperty:Xg});let TS=!1,H4=null,qn=!1,q4,V4=!1,wu=!1,Au=!1,Vn=!1,SS=null,Kg=null,z4=null,Em=!1,Yg=!1,xm=!1,Qg=!1;const ef=!!(Ac()&&("ontouchstart"in Y||Y.navigator.maxTouchPoints||Y.DocumentTouch&&Y.document instanceof Y.DocumentTouch)),no=Y.navigator&&Y.navigator.userAgentData;no&&no.platform&&no.brands&&(qn=no.platform==="Android",wu=!!no.brands.find(t=>t.brand==="Microsoft Edge"),Au=!!no.brands.find(t=>t.brand==="Chromium"),Vn=!wu&&Au,SS=Kg=(no.brands.find(t=>t.brand==="Chromium")||{}).version||null,Yg=no.platform==="Windows");if(!Au){const t=Y.navigator&&Y.navigator.userAgent||"";TS=/iPod/i.test(t),H4=function(){const e=t.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),qn=/Android/i.test(t),q4=function(){const e=t.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;const s=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return s&&i?parseFloat(e[1]+"."+e[2]):s||null}(),V4=/Firefox/i.test(t),wu=/Edg/i.test(t),Au=/Chrome/i.test(t)||/CriOS/i.test(t),Vn=!wu&&Au,SS=Kg=function(){const e=t.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),z4=function(){const e=/MSIE\s(\d+)\.\d/.exec(t);let s=e&&parseFloat(e[1]);return!s&&/Trident\/7.0/i.test(t)&&/rv:11.0/.test(t)&&(s=11),s}(),Em=/Safari/i.test(t)&&!Vn&&!qn&&!wu,Yg=/Windows/i.test(t),xm=/iPad/i.test(t)||Em&&ef&&!/iPhone/i.test(t),Qg=/iPhone/i.test(t)&&!xm}const Li=Qg||xm||TS,Jg=(Em||Li)&&!Vn;var wJ=Object.freeze({__proto__:null,get IS_IPOD(){return TS},get IOS_VERSION(){return H4},get IS_ANDROID(){return qn},get ANDROID_VERSION(){return q4},get IS_FIREFOX(){return V4},get IS_EDGE(){return wu},get IS_CHROMIUM(){return Au},get IS_CHROME(){return Vn},get CHROMIUM_VERSION(){return SS},get CHROME_VERSION(){return Kg},get IE_VERSION(){return z4},get IS_SAFARI(){return Em},get IS_WINDOWS(){return Yg},get IS_IPAD(){return xm},get IS_IPHONE(){return Qg},TOUCH_ENABLED:ef,IS_IOS:Li,IS_ANY_SAFARI:Jg});function Nw(t){return typeof t=="string"&&!!t.trim()}function AJ(t){if(t.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Ac(){return Ne===Y.document}function kc(t){return Hn(t)&&t.nodeType===1}function G4(){try{return Y.parent!==Y.self}catch{return!0}}function W4(t){return function(e,s){if(!Nw(e))return Ne[t](null);Nw(s)&&(s=Ne.querySelector(s));const i=kc(s)?s:Ne;return i[t]&&i[t](e)}}function St(t="div",e={},s={},i){const r=Ne.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(n){const a=e[n];n==="textContent"?No(r,a):(r[n]!==a||n==="tabIndex")&&(r[n]=a)}),Object.getOwnPropertyNames(s).forEach(function(n){r.setAttribute(n,s[n])}),i&&ES(r,i),r}function No(t,e){return typeof t.textContent>"u"?t.innerText=e:t.textContent=e,t}function Qb(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function Sh(t,e){return AJ(e),t.classList.contains(e)}function El(t,...e){return t.classList.add(...e.reduce((s,i)=>s.concat(i.split(/\s+/)),[])),t}function Zg(t,...e){return t?(t.classList.remove(...e.reduce((s,i)=>s.concat(i.split(/\s+/)),[])),t):(kt.warn("removeClass was called with an element that doesn't exist"),null)}function X4(t,e,s){return typeof s=="function"&&(s=s(t,e)),typeof s!="boolean"&&(s=void 0),e.split(/\s+/).forEac
304h(i=>t.classList.toggle(i,s)),t}function K4(t,e){Object.getOwnPropertyNames(e).forEach(function(s){const i=e[s];i===null||typeof i>"u"||i===!1?t.removeAttribute(s):t.setAttribute(s,i===!0?"":i)})}function go(t){const e={},s=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(t&&t.attributes&&t.attributes.length>0){const i=t.attributes;for(let r=i.length-1;r>=0;r--){const n=i[r].name;let a=i[r].value;s.includes(n)&&(a=a!==null),e[n]=a}}return e}function Y4(t,e){return t.getAttribute(e)}function ac(t,e,s){t.setAttribute(e,s)}function ey(t,e){t.removeAttribute(e)}function Q4(){Ne.body.focus(),Ne.onselectstart=function(){return!1}}function J4(){Ne.onselectstart=function(){return!0}}function oc(t){if(t&&t.getBoundingClientRect&&t.parentNode){const e=t.getBoundingClientRect(),s={};return["bottom","height","left","right","top","width"].forEach(i=>{e[i]!==void 0&&(s[i]=e[i])}),s.height||(s.height=parseFloat(lc(t,"height"))),s.width||(s.width=parseFloat(lc(t,"width"))),s}}function tf(t){if(!t||t&&!t.offsetParent)return{left:0,top:0,width:0,height:0};const e=t.offsetWidth,s=t.offsetHeight;let i=0,r=0;for(;t.offsetParent&&t!==Ne[Sm.fullscreenElement];)i+=t.offsetLeft,r+=t.offsetTop,t=t.offsetParent;return{left:i,top:r,width:e,height:s}}function ty(t,e){const s={x:0,y:0};if(Li){let d=t;for(;d&&d.nodeName.toLowerCase()!=="html";){const p=lc(d,"transform");
vendor: 10,333 bytes, line 304
304if(/^matrix/.test(p)){const _=p.slice(7,-1).split(/,\s/).map(Number);s.x+=_[4],s.y+=_[5]}else if(/^matrix3d/.test(p)){const _=p.slice(9,-1).split(/,\s/).map(Number);s.x+=_[12],s.y+=_[13]}d=d.parentNode}}const i={},r=tf(e.target),n=tf(t),a=n.width,o=n.height;let l=e.offsetY-(n.top-r.top),c=e.offsetX-(n.left-r.left);return e.changedTouches&&(c=e.changedTouches[0].pageX-n.left,l=e.changedTouches[0].pageY+n.top,Li&&(c-=s.x,l-=s.y)),i.y=1-Math.max(0,Math.min(1,l/o)),i.x=Math.max(0,Math.min(1,c/a)),i}function Z4(t){return Hn(t)&&t.nodeType===3}function sy(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function eN(t){return typeof t=="function"&&(t=t()),(Array.isArray(t)?t:[t]).map(e=>{if(typeof e=="function"&&(e=e()),kc(e)||Z4(e))return e;if(typeof e=="string"&&/\S/.test(e))return Ne.createTextNode(e)}).filter(e=>e)}function ES(t,e){return eN(e).forEach(s=>t.appendChild(s)),t}function tN(t,e){return ES(sy(t),e)}function sf(t){return t.button===void 0&&t.buttons===void 0||t.button===0&&t.buttons===void 0||t.type==="mouseup"&&t.button===0&&t.buttons===0?!0:!(t.button!==0||t.buttons!==1)}const Ao=W4("querySelector"),sN=W4("querySelectorAll");function lc(t,e){if(!t||!e)return"";if(typeof Y.getComputedStyle=="function"){let s;try{s=Y.getComputedStyle(t)}catch{return""}return s?s.getPropertyValue(e)||s[e]:""}return""}function iN(t){[...Ne.styleSheets].forEach(e=>{try{const s=[...e.cssRules].map(r=>r.cssText).join(""),i=Ne.createElement("style");i.textContent=s,t.document.head.appendChild(i)}catch{const s=Ne.createElement("link");s.rel="stylesheet",s.type=e.type,s.media=e.media.mediaText,s.href=e.href,t.document.head.appendChild(s)}})}var rN=Object.freeze({__proto__:null,isReal:Ac,isEl:kc,isInFrame:G4,createEl:St,textContent:No,prependTo:Qb,hasClass:Sh,addClass:El,removeClass:Zg,toggleClass:X4,setAttributes:K4,getAttributes:go,getAttribute:Y4,setAttribute:ac,removeAttribute:ey,blockTextSelection:Q4,unblockTextSelection:J4,getBoundingClientRect:oc,findPosition:tf,getPointerPosition:ty,isTextNode:Z4,emptyEl:sy,normalizeContent:eN,appendContent:ES,insertContent:tN,isSingleLeftClick:sf,$:Ao,$$:sN,computedStyle:lc,copyStyleSheetsToWindow:iN});let nN=!1,Jb;const kJ=function(){if(Jb.options.autoSetup===!1)return;const t=Array.prototype.slice.call(Ne.getElementsByTagName("video")),e=Array.prototype.slice.call(Ne.getElementsByTagName("audio")),s=Array.prototype.slice.call(Ne.getElementsByTagName("video-js")),i=t.concat(e,s);if(i&&i.length>0)for(let r=0,n=i.length;r<n;r++){const a=i[r];if(a&&a.getAttribute)a.player===void 0&&a.getAttribute("data-setup")!==null&&Jb(a);else{Zb(1);break}}else nN||Zb(1)};function Zb(t,e){Ac()&&(e&&(Jb=e),Y.setTimeout(kJ,t))}function eT(){nN=!0,Y.removeEventListener("load",eT)}Ac()&&(Ne.readyState==="complete"?eT():Y.addEventListener("load",eT));const aN=function(t){const e=Ne.createElement("style");return e.className=t,e},oN=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e};var Di=new WeakMap;const DJ=3;let IJ=DJ;function cn(){return IJ++}function Rw(t,e){if(!Di.has(t))return;const s=Di.get(t);s.handlers[e].length===0&&(delete s.handlers[e],t.removeEventListener?t.removeEventListener(e,s.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,s.dispatcher)),Object.getOwnPropertyNames(s.handlers).length<=0&&(delete s.handlers,delete s.dispatcher,delete s.disabled),Object.getOwnPropertyNames(s).length===0&&Di.delete(t)}function xS(t,e,s,i){s.forEach(function(r){t(e,r,i)})}function iy(t){if(t.fixed_)return t;function e(){return!0}function s(){return!1}if(!t||!t.isPropagationStopped||!t.isImmediatePropagationStopped){const i=t||Y.event;t={};for(const r in i)r!=="layerX"&&r!=="layerY"&&r!=="keyLocation"&&r!=="webkitMovementX"&&r!=="webkitMovementY"&&r!=="path"&&(r==="returnValue"&&i.preventDefault||(t[r]=i[r]));if(t.target||(t.target=t.srcElement||Ne),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){i.preventDefault&&i.preventDefault(),t.returnValue=!1,i.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),t.cancelBubble=!0,i.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=s,t.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=s,t.clientX!==null&&t.clientX!==void 0){const r=Ne.documentElement,n=Ne.body;t.pageX=t.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),t.pageY=t.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)}t.which=t.charCode||t.keyCode,t.button!==null&&t.button!==void 0&&(t.button=t.button&1?0:t.button&4?1:t.button&2?2:0)}return t.fixed_=!0,t}let ip;const PJ=function(){if(typeof ip!="boolean"){ip=!1;try{const t=Object.defineProperty({},"passive",{get(){ip=!0}});Y.addEventListener("test",null,t),Y.removeEventListener("test",null,t)}catch{}}return ip},LJ=["touchstart","touchmove"];function pr(t,e,s){if(Array.isArray(e))return xS(pr,t,e,s);Di.has(t)||Di.set(t,{});const i=Di.get(t);if(i.handlers||(i.handlers={}),i.handlers[e]||(i.handlers[e]=[]),s.guid||(s.guid=cn()),i.handlers[e].push(s),i.dispatcher||(i.disabled=!1,i.dispatcher=function(r,n){if(i.disabled)return;r=iy(r);const a=i.handlers[r.type];if(a){const o=a.slice(0);for(let l=0,c=o.length;l<c&&!r.isImmediatePropagationStopped();l++)try{o[l].call(t,r,n)}catch(d){kt.error(d)}}}),i.handlers[e].length===1)if(t.addEventListener){let r=!1;PJ()&&LJ.indexOf(e)>-1&&(r={passive:!0}),t.addEventListener(e,i.dispatcher,r)}else t.attachEvent&&t.attachEvent("on"+e,i.dispatcher)}function ai(t,e,s){if(!Di.has(t))return;const i=Di.get(t);if(!i.handlers)return;if(Array.isArray(e))return xS(ai,t,e,s);const r=function(a,o){i.handlers[o]=[],Rw(a,o)};if(e===void 0){for(const a in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},a)&&r(t,a);return}const n=i.handlers[e];if(n){if(!s){r(t,e);return}if(s.guid)for(let a=0;a<n.length;a++)n[a].guid===s.guid&&n.splice(a--,1);Rw(t,e)}}function Dc(t,e,s){const i=Di.has(t)?Di.get(t):{},r=t.parentNode||t.ownerDocument;if(typeof e=="string"?e={type:e,target:t}:e.target||(e.target=t),e=iy(e),i.dispatcher&&i.dispatcher.call(t,e,s),r&&!e.isPropagationStopped()&&e.bubbles===!0)Dc.call(null,r,e,s);else if(!r&&!e.defaultPrevented&&e.target&&e.target[e.type]){Di.has(e.target)||Di.set(e.target,{});const n=Di.get(e.target);e.target[e.type]&&(n.disabled=!0,typeof e.target[e.type]=="function"&&e.target[e.type](),n.disabled=!1)}return!e.defaultPrevented}function ry(t,e,s){if(Array.isArray(e))return xS(ry,t,e,s);const i=function(){ai(t,e,i),s.apply(this,arguments)};i.guid=s.guid=s.guid||cn(),pr(t,e,i)}function CS(t,e,s){const i=function(){ai(t,e,i),s.apply(this,arguments)};i.guid=s.guid=s.guid||cn(),pr(t,e,i)}var OJ=Object.freeze({__proto__:null,fixEvent:iy,on:pr,off:ai,trigger:Dc,one:ry,any:CS});const Lr=30,Jt=function(t,e,s){e.guid||(e.guid=cn());const i=e.bind(t);return i.guid=s?s+"_"+e.guid:e.guid,i},zn=function(t,e){let s=Y.performance.now();return function(...i){const r=Y.performance.now();r-s>=e&&(t(...i),s=r)}},lN=function(t,e,s,i=Y){let r;const n=()=>{i.clearTimeout(r),r=null},a=function(){const o=this,l=arguments;let c=function(){r=null,c=null,s||t.apply(o,l)};!r&&s&&t.apply(o,l),i.clearTimeout(r),r=i.setTimeout(c,e)};return a.cancel=n,a};var NJ=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:Lr,bind_:Jt,throttle:zn,debounce:lN});let qd;class Or{on(e,s){const i=this.addEventListener;this.addEventListener=()=>{},pr(this,e,s),this.addEventListener=i}off(e,s){ai(this,e,s)}one(e,s){const i=this.addEventListener;this.addEventListener=()=>{},ry(this,e,s),this.addEventListener=i}any(e,s){const i=this.addEventListener;this.addEventListener=()=>{},CS(this,e,s),this.addEventListener=i}trigger(e){const s=e.type||e;typeof e=="string"&&(e={type:s}),e=iy(e),this.allowedEvents_[s]&&this["on"+s]&&this["on"+s](e),Dc(this,e)}queueTrigger(e){qd||(qd=new Map);const s=e.type||e;let i=qd.get(this);i||(i=new Map,qd.set(this,i));const r=i.get(s);i.delete(s),Y.clearTimeout(r);const n=Y.setTimeout(()=>{i.delete(s),i.size===0&&(i=null,qd.delete(this)),this.trigger(e)},0);i.set(s,n)}}Or.prototype.allowedEvents_={};Or.prototype.addEventListener=Or.prototype.on;Or.prototype.removeEventListener=Or.prototype.off;Or.prototype.dispatchEvent=Or.prototype.trigger;const ny=t=>typeof t.name=="function"?t.name():typeof t.name=="string"?t.name:t.name_?t.name_:t.constructor&&t.constructor.name?t.constructor.name:typeof t,Ba=t=>t instanceof Or||!!t.eventBusEl_&&["on","one","off","trigger"].every(e=>typeof t[e]=="function"),RJ=(t,e)=>{Ba(t)?e():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(e))},tT=t=>typeof t=="string"&&/\S/.test(t)||Array.isArray(t)&&!!t.length,Cm=(t,e,s)=>{if(!t||!t.nodeName&&!Ba(t))throw new Error(`Invalid target for ${ny(e)}#${s}; must be a DOM node or evented object.`)},uN=(t,e,s)=>{if(!tT(t))throw new Error(`Invalid event type for ${ny(e)}#${s}; must be a non-empty string or array.`)},cN=(t,e,s)=>{if(typeof t!="function")throw new Error(`Invalid listener for ${ny(e)}#${s}; must be a function.`)},av=(t,e,s)=>{const i=e.length<3||e[0]===t||e[0]===t.eventBusEl_;let r,n,a;return i?(r=t.eventBusEl_,e.length>=3&&e.shift(),[n,a]=e):[r,n,a]=e,Cm(r,t,s),uN(n,t,s),cN(a,t,s),a=Jt(t,a),{isTargetingSelf:i,target:r,type:n,listener:a}},il=(t,e,s,i)=>{Cm(t,t,e),t.nodeName?OJ[e](t,s,i):t[e](s,i)},MJ={on(...t){const{isTargetingSelf:e,target:s,type:i,listener:r}=av(this,t,"on");if(il(s,"on",i,r),!e){const n=()=>this.off(s,i,r);n.guid=r.guid;const a=()=>this.off("dispose",n);a.guid=r.guid,il(this,"on","dispose",n),il(s,"on","dispose",a)}},one(...t){const{isTargetingSelf:e,target:s,type:i,listener:r}=av(this,t,"one");if(e)il(s,"one",i,r);else{const n=(...a)=>{this.off(s,i,n),r.apply(null,a)};n.guid=r.guid,il(s,"one",i,n)}},any(...t){const{isTargetingSelf:e,target:s,type:i,listener:r}=av(this,t,"any");if(e)il(s,"any",i,r);else{const n=(...a)=>{this.off(s,i,n),r.apply(null,a)};n.guid=r.guid,il(s,"any",i,n)}},off(t,e,s){if(!t||tT(t))ai(this.eventBusEl_,t,e);else{const i=t,r=e;Cm(i,this,"off"),uN(r,this,"off"),cN(s,this,"off"),s=Jt(this,s),this.off("dispose",s),i.nodeName?(ai(i,r,s),ai(i,"dis
304pose",s)):Ba(i)&&(i.off(r,s),i.off("dispose",s))}},trigger(t,e){Cm(this.eventBusEl_,this,"trigger");const s=t&&typeof t!="string"?t.type:t;if(!tT(s))throw new Error(`Invalid event type for ${ny(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return Dc(this.eventBusEl_,t,e)}};function wS(t,e={}){const{eventBusKey:s}=e;if(s){if(!t[s].nodeName)throw new Error(`The eventBusKey "${s}" does not refer to an element.`);t.eventBusEl_=t[s]}else t.eventBusEl_=St("span",{className:"vjs-event-bus"});return Object.assign(t,MJ),t.eventedCallbacks&&t.eventedCallbacks.forEach(i=>{i()}),t.on("dispose",()=>{t.off(),[t,t.el_,t.eventBusEl_].forEach(function(i){i&&Di.has(i)&&Di.delete(i)}),Y.setTimeout(()=>{t.eventBusEl_=null},0)}),t}const FJ={state:{},setState(t){typeof t=="function"&&(t=t());let e;return Cu(t,(s,i)=>{this.state[i]!==s&&(e=e||{},e[i]={from:this.state[i],to:s}),this.state[i]=s}),e&&Ba(this)&&this.trigger({changes:e,type:"statechanged"}),e}};function dN(t,e){return Object.assign(t,FJ),t.state=Object.assign({},t.state,e),typeof t.handleStateChanged=="function"&&Ba(t)&&t.on("statechanged",t.handleStateChanged),t}const Eh=function(t){return typeof t!="string"?t:t.replace(/./,e=>e.toLowerCase())},gs=function(t){return typeof t!="string"?t:t.replace(/./,e=>e.toUpperCase())},hN=function(t,e){return gs(t)===gs(e)};var BJ=Object.freeze({__proto__:null,toLowerCase:Eh,toTitleCase:gs,titleCaseEquals:hN});class Se{constructor(e,s,i){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Yt({},this.options_),s=this.options_=Yt(this.options_,s),this.id_=s.id||s.el&&s.el.id,!this.id_){const r=e&&e.id&&e.id()||"no_player";this.id_=`${r}_component_${cn()}`}this.name_=s.name||null,s.el?this.el_=s.el:s.createEl!==!1&&(this.el_=this.createEl()),s.className&&this.el_&&s.className.split(" ").forEach(r=>this.addClass(r)),["on","off","one","any","trigger"].forEach(r=>{this[r]=void 0}),s.evented!==!1&&(wS(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),dN(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,s.initChildren!==!1&&this.initChildren(),this.ready(i),s.reportTouchActivity!==!1&&this.enableTouchActivity()}on(e,s){}off(e,s){}one(e,s){}any(e,s){}trigger(e,s){}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let s=this.children_.length-1;s>=0;s--)this.children_[s].dispose&&this.children_[s].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return!!this.isDisposed_}player(){return this.player_}options(e){return e?(this.options_=Yt(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,s,i){return St(e,s,i)}localize(e,s,i=e){const r=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages(),a=n&&n[r],o=r&&r.split("-")[0],l=n&&n[o];let c=i;return a&&a[e]?c=a[e]:l&&l[e]&&(c=l[e]),s&&(c=c.replace(/\{(\d+)\}/g,function(d,p){const _=s[p-1];let b=_;return typeof _>"u"&&(b=d),b})),c}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce((i,r)=>i.concat(r),[]);let s=this;for(let i=0;i<e.length;i++)if(s=s.getChild(e[i]),!s||!s.getChild)return;return s}setIcon(e,s=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const i="http://www.w3.org/2000/svg",r=St("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),n=Ne.createElementNS(i,"svg");n.setAttributeNS(null,"viewBox","0 0 512 512");const a=Ne.createElementNS(i,"use");return n.appendChild(a),a.setAttributeNS(null,"href",`#vjs-icon-${e}`),r.appendChild(n),this.iconIsSet_?s.replaceChild(r,s.querySelector(".vjs-icon-placeholder")):s.appendChild(r),this.iconIsSet_=!0,r}addChild(e,s={},i=this.children_.length){let r,n;if(typeof e=="string"){n=gs(e);const a=s.componentClass||n;s.name=n;const o=Se.getComponent(a);if(!o)throw new Error(`Component ${a} does not exist`);if(typeof o!="function")return null;r=new o(this.player_||this,s)}else r=e;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,typeof r.id=="function"&&(this.childIndex_[r.id()]=r),n=n||r.name&&gs(r.name()),n&&(this.childNameIndex_[n]=r,this.childNameIndex_[Eh(n)]=r),typeof r.el=="function"&&r.el()){let a=null;this.children_[i+1]&&(this.children_[i+1].el_?a=this.children_[i+1].el_:kc(this.children_[i+1])&&(a=this.children_[i+1])),this.contentEl().insertBefore(r.el(),a)}return r}removeChild(e){if(typeof e=="string"&&(e=this.getChild(e)),!e||!this.children_)return;let s=!1;for(let r=this.children_.length-1;r>=0;r--)if(this.children_[r]===e){s=!0,this.children_.splice(r,1);break}if(!s)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[gs(e.name())]=null,this.childNameIndex_[Eh(e.name())]=null;const i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){const e=this.options_.children;if(e){const s=this.options_,i=a=>{const o=a.name;let l=a.opts;if(s[o]!==void 0&&(l=s[o]),l===!1)return;l===!0&&(l={}),l.playerOptions=this.options_.playerOptions;const c=this.addChild(o,l);c&&(this[o]=c)};let r;const n=Se.getComponent("Tech");Array.isArray(e)?r=e:r=Object.keys(e),r.concat(Object.keys(this.options_).filter(function(a){return!r.some(function(o){return typeof o=="str
304ing"?a===o:a===o.name})})).map(a=>{let o,l;return typeof a=="string"?(o=a,l=e[o]||this.options_[o]||{}):(o=a.name,l=a),{name:o,opts:l}}).filter(a=>{const o=Se.getComponent(a.opts.componentClass||gs(a.name));return o&&!n.isTech(o)}).forEach(i)}}buildCSSClass(){return""}ready(e,s=!1){if(e){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(e);return}s?e.call(this):this.setTimeout(e,1)}}triggerReady(){this.isReady_=!0,this.setTimeout(function(){const e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(s){s.call(this)},this),this.trigger("ready")},1)}$(e,s){return Ao(e,s||this.contentEl())}$$(e,s){return sN(e,s||this.contentEl())}hasClass(e){return Sh(this.el_,e)}addClass(...e){El(this.el_,...e)}removeClass(...e){Zg(this.el_,...e)}toggleClass(e,s){X4(this.el_,e,s)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return Y4(this.el_,e)}setAttribute(e,s){ac(this.el_,e,s)}removeAttribute(e){ey(this.el_,e)}width(e,s){return this.dimension("width",e,s)}height(e,s){return this.dimension("height",e,s)}dimensions(e,s){this.width(e,!0),this.height(s)}dimension(e,s,i){if(s!==void 0){(s===null||s!==s)&&(s=0),(""+s).indexOf("%")!==-1||(""+s).indexOf("px")!==-1?this.el_.style[e]=s:s==="auto"?this.el_.style[e]="":this.el_.style[e]=s+"px",i||this.trigger("componentresize");return}if(!this.el_)return 0;const r=this.el_.style[e],n=r.indexOf("px");return parseInt(n!==-1?r.slice(0,n):this.el_["offset"+gs(e)],10)}currentDimension(e){let s=0;if(e!=="width"&&e!=="height")throw new Error("currentDimension only accepts width or height value");if(s=lc(this.el_,e),s=parseFloat(s),s===0||isNaN(s)){const i=`offset${gs(e)}`;s=this.el_[i]}return s}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&(ct.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e=0,s=null;const i=10,r=200;let n;this.on("touchstart",function(o){o.touches.length===1&&(s={pageX:o.touches[0].pageX,pageY:o.touches[0].pageY},e=Y.performance.now(),n=!0)}),this.on("touchmove",function(o){if(o.touches.length>1)n=!1;else if(s){const l=o.touches[0].pageX-s.pageX,c=o.touches[0].pageY-s.pageY;Math.sqrt(l*l+c*c)>i&&(n=!1)}});const a=function(){n=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",function(o){s=null,n===!0&&Y.performance.now()-e<r&&(o.preventDefault(),this.trigger("tap"))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=Jt(this.player(),this.player().reportUserActivity);let s;this.on("touchstart",function(){e(),this.clearInterval(s),s=this.setInterval(e,250)});const i=function(r){e(),this.clearInterval(s)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}setTimeout(e,s){var i;return e=Jt(this,e),this.clearTimersOnDispose_(),i=Y.setTimeout(()=>{this.setTimeoutIds_.has(i)&&this.setTimeoutIds_.delete(i),e()},s),this.setTimeoutIds_.add(i),i}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),Y.clearTimeout(e)),e}setInterval(e,s){e=Jt(this,e),this.clearTimersOnDispose_();const i=Y.setInterval(e,s);return this.setIntervalIds_.add(i),i}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),Y.clearInterval(e)),e}requestAnimationFrame(e){this.clearTimersOnDispose_();var s;return e=Jt(this,e),s=Y.requestAnimationFrame(()=>{this.rafIds_.has(s)&&this.rafIds_.delete(s),e()}),this.rafIds_.add(s),s}requestNamedAnimationFrame(e,s){if(this.namedRafs_.has(e))return;this.clearTimersOnDispose_(),s=Jt(this,s);const i=this.requestAnimationFrame(()=>{s(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,i),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),Y.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
304h(([e,s])=>{this[e].forEach((i,r)=>this[s](r))}),this.clearingTimersOnDispose_=!1}))}static registerComponent(e,s){if(typeof e!="string"||!e)throw new Error(`Illegal component name, "${e}"; must be a non-empty string.`);const i=Se.getComponent("Tech"),r=i&&i.isTech(s),n=Se===s||Se.prototype.isPrototypeOf(s.prototype);if(r||!n){let o;throw r?o="techs must be registered using Tech.registerTech()":o="must be a Component subclass",new Error(`Illegal component, "${e}"; ${o}.`)}e=gs(e),Se.components_||(Se.components_={});const a=Se.getComponent("Player");if(e==="Player"&&a&&a.players){const o=a.players,l=Object.keys(o);if(o&&l.length>0&&l.map(c=>o[c]).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return Se.components_[e]=s,Se.components_[Eh(e)]=s,s}static getComponent(e){if(!(!e||!Se.components_))return Se.components_[e]}}Se.registerComponent("Component",Se);function UJ(t,e,s){if(typeof e!="number"||e<0||e>s)throw new Error(`Failed to execute '${t}' on 'TimeRanges': The index provided (${e}) is non-numeric or out of bounds (0-${s}).`)}function Mw(t,e,s,i){return UJ(t,i,s.length-1),s[i][e]}function ov(t){let e;return t===void 0||t.length===0?e={length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:e={length:t.length,start:Mw.bind(null,"start",0,t),end:Mw.bind(null,"end",1,t)},Y.Symbol&&Y.Symbol.iterator&&(e[Y.Symbol.iterator]=()=>(t||[]).values()),e}function rn(t,e){return Array.isArray(t)?ov(t):t===void 0||e===void 0?ov():ov([[t,e]])}const fN=function(t,e){t=t<0?0:t;let s=Math.floor(t%60),i=Math.floor(t/60%60),r=Math.floor(t/3600);const n=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(r=i=s="-"),r=r>0||a>0?r+":":"",i=((r||n>=10)&&i<10?"0"+i:i)+":",s=s<10?"0"+s:s,r+i+s};let AS=fN;function pN(t){AS=t}function mN(){AS=fN}function Ll(t,e=t){return AS(t,e)}var $J=Object.freeze({__proto__:null,createTimeRanges:rn,createTimeRange:rn,setFormatTime:pN,resetFormatTime:mN,formatTime:Ll});function gN(t,e){let s=0,i,r;if(!e)return 0;(!t||!t.length)&&(t=rn(0,0));for(let n=0;n<t.length;n++)i=t.start(n),r=t.end(n),r>e&&(r=e),s+=r-i;return s/e}function Ii(t){if(t instanceof Ii)return t;typeof t=="number"?this.code=t:typeof t=="string"?this.message=t:Hn(t)&&(typeof t.code=="number"&&(this.code=t.code),Object.assign(this,t)),this.message||(this.message=Ii.defaultMessages[this.code]||"")}Ii.prototype.code=0;Ii.prototype.message="";Ii.prototype.status=null;Ii.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];Ii.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(let t=0;t<Ii.errorTypes.length;t++)Ii[Ii.errorTypes[t]]=t,Ii.prototype[Ii.errorTypes[t]]=t;function xh(t){return t!=null&&typeof t.then=="function"}function Dn(t){xh(t)&&t.then(null,e=>{})}const sT=function(t){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((e,s,i)=>(t[s]&&(e[s]=t[s]),e),{cues:t.cues&&Array.prototype.map.call(t.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},jJ=function(t){const e=t.$$("track"),s=Array.prototype.map.call(e,i=>i.track);return Array.prototype.map.call(e,function(i){const r=sT(i.track);return i.src&&(r.src=i.src),r}).concat(Array.prototype.filter.call(t.textTracks(),function(i){return s.indexOf(i)===-1}).map(sT))},HJ=function(t,e){return t.forEach(function(s){const i=e.addRemoteTextTrack(s).track;!s.src&&s.cues&&s.cues.forEach(r=>i.addCue(r))}),e.textTracks()};var Fw={textTracksToJson:jJ,jsonToTextTracks:HJ,trackToJson_:sT};const lv="vjs-modal-dialog";class Ic extends Se{constructor(e,s){super(e,s),this.handleKeyDown_=i=>this.handleKeyDown(i),this.close_=i=>this.close(i),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=St("div",{className:`${lv}-content`},{role:"document"}),this.descEl_=St("p",{className:`${lv}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),No(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${lv} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}open(){if(!this.opened_){const e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpe
304n&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}}opened(e){return typeof e=="boolean"&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if(typeof e=="boolean"){const s=this.closeable_=!!e;let i=this.getChild("closeButton");if(s&&!i){const r=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(i,"close",this.close_)}!s&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){const s=this.contentEl(),i=s.parentNode,r=s.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(s),this.empty(),tN(s,e),this.trigger("modalfill"),r?i.insertBefore(s,r):i.appendChild(s);const n=this.getChild("closeButton");n&&i.appendChild(n.el_)}empty(){this.trigger("beforemodalempty"),sy(this.contentEl()),this.trigger("modalempty")}content(e){return typeof e<"u"&&(this.content_=e),this.content_}conditionalFocus_(){const e=Ne.activeElement,s=this.player_.el_;this.previouslyActiveEl_=null,(s.contains(e)||s===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){if(e.stopPropagation(),ct.isEventKey(e,"Escape")&&this.closeable()){e.preventDefault(),this.close();return}if(!ct.isEventKey(e,"Tab"))return;const s=this.focusableEls_(),i=this.el_.querySelector(":focus");let r;for(let n=0;n<s.length;n++)if(i===s[n]){r=n;break}Ne.activeElement===this.el_&&(r=0),e.shiftKey&&r===0?(s[s.length-1].focus(),e.preventDefault()):!e.shiftKey&&r===s.length-1&&(s[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,s=>(s instanceof Y.HTMLAnchorElement||s instanceof Y.HTMLAreaElement)&&s.hasAttribute("href")||(s instanceof Y.HTMLInputElement||s instanceof Y.HTMLSelectElement||s instanceof Y.HTMLTextAreaElement||s instanceof Y.HTMLButtonElement)&&!s.hasAttribute("disabled")||s instanceof Y.HTMLIFrameElement||s instanceof Y.HTMLObjectElement||s instanceof Y.HTMLEmbedElement||s.hasAttribute("tabindex")&&s.getAttribute("tabindex")!==-1||s.hasAttribute("contenteditable"))}}Ic.prototype.options_={pauseOnOpen:!0,temporary:!0};Se.registerComponent("ModalDialog",Ic);class uc extends Or{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let s=0;s<e.length;s++)this.addTrack(e[s])}addTrack(e){const s=this.tracks_.length;""+s in this||Object.defineProperty(this,s,{get(){return this.tracks_[s]}}),this.tracks_.indexOf(e)===-1&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},Ba(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let s;for(let i=0,r=this.length;i<r;i++)if(this[i]===e){s=this[i],s.off&&s.off(),this.tracks_.splice(i,1);break}s&&this.trigger({track:s,type:"removetrack",target:this})}getTrackById(e){let s=null;for(let i=0,r=this.length;i<r;i++){const n=this[i];if(n.id===e){s=n;break}}return s}}uc.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const t in uc.prototype.allowedEvents_)uc.prototype["on"+t]=null;const uv=function(t,e){for(let s=0;s<t.length;s++)!Object.keys(t[s]).length||e.id===t[s].id||(t[s].enabled=!1)};class qJ extends uc{constructor(e=[]){for(let s=e.length-1;s>=0;s--)if(e[s].enabled){uv(e,e[s]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&uv(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,uv(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}}const cv=function(t,e){for(let s=0;s<t.length;
304s++)!Object.keys(t[s]).length||e.id===t[s].id||(t[s].selected=!1)};class VJ extends uc{constructor(e=[]){for(let s=e.length-1;s>=0;s--)if(e[s].selected){cv(e,e[s]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let s=0;s<this.length;s++)if(this[s].selected)return s;return-1},set(){}})}addTrack(e){e.selected&&cv(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,cv(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}}class yN extends uc{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_),["metadata","chapters"].indexOf(e.kind)===-1&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}class zJ{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let s=0,i=e.length;s<i;s++)this.addTrackElement_(e[s])}addTrackElement_(e){const s=this.trackElements_.length;""+s in this||Object.defineProperty(this,s,{get(){return this.trackElements_[s]}}),this.trackElements_.indexOf(e)===-1&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let s;for(let i=0,r=this.trackElements_.length;i<r;i++)if(e===this.trackElements_[i].track){s=this.trackElements_[i];break}return s}removeTrackElement_(e){for(let s=0,i=this.trackElements_.length;s<i;s++)if(e===this.trackElements_[s]){this.trackElements_[s].track&&typeof this.trackElements_[s].track.off=="function"&&this.trackElements_[s].track.off(),typeof this.trackElements_[s].off=="function"&&this.trackElements_[s].off(),this.trackElements_.splice(s,1);break}}}class wm{constructor(e){wm.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const s=this.length||0;let i=0;const r=e.length;this.cues_=e,this.length_=e.length;const n=function(a){""+a in this||Object.defineProperty(this,""+a,{get(){return this.cues_[a]}})};if(s<r)for(i=s;i<r;i++)n.call(this,i)}getCueById(e){let s=null;for(let i=0,r=this.length;i<r;i++){const n=this[i];if(n.id===e){s=n;break}}return s}}const GJ={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},WJ={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},XJ={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Bw={disabled:"disabled",hidden:"hidden",showing:"showing"};class kS extends Or{constructor(e={}){super();const s={id:e.id||"vjs_track_"+cn(),kind:e.kind||"",language:e.language||""};let i=e.label||"";for(const r in s)Object.defineProperty(this,r,{get(){return s[r]},set(){}});Object.defineProperty(this,"label",{get(){return i},set(r){r!==i&&(i=r,this.trigger("labelchange"))}})}}const DS=function(t){const e=["protocol","hostname","port","pathname","search","hash","host"],s=Ne.createElement("a");s.href=t;const i={};for(let r=0;r<e.length;r++)i[e[r]]=s[e[r]];return i.protocol==="http:"&&(i.host=i.host.replace(/:80$/,"")),i.protocol==="https:"&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=Y.location.protocol),i.host||(i.host=Y.location.host),i},_N=function(t){if(!t.match(/^https?:\/\//)){const e=Ne.createElement("a");e.href=t,t=e.href}return t},IS=function(t){if(typeof t=="string"){const e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(t);if(e)return e.pop().toLowerCase()}return""},ay=function(t,e=Y.location){const s=DS(t);return(s.protocol===":"?e.protocol:s.protocol)+s.host!==e.protocol+e.host};var KJ=Object.freeze({__proto__:null,parseUrl:DS,getAbsoluteURL:_N,getFileExtension:IS,isCrossOrigin:ay});const Uw=function(t,e){const s=new Y.WebVTT.Parser(Y,Y.vttjs,Y.WebVTT.StringDecoder()),i=[];
vendor: 8,749 bytes, line 304
304s.oncue=function(r){e.addCue(r)},s.onparsingerror=function(r){i.push(r)},s.onflush=function(){e.trigger({type:"loadeddata",target:e})},s.parse(t),i.length>0&&(Y.console&&Y.console.groupCollapsed&&Y.console.groupCollapsed(`Text Track parsing errors for ${e.src}`),i.forEach(r=>kt.error(r)),Y.console&&Y.console.groupEnd&&Y.console.groupEnd()),s.flush()},$w=function(t,e){const s={uri:t},i=ay(t);i&&(s.cors=i);const r=e.tech_.crossOrigin()==="use-credentials";r&&(s.withCredentials=r),E4(s,Jt(this,function(n,a,o){if(n)return kt.error(n,a);e.loaded_=!0,typeof Y.WebVTT!="function"?e.tech_&&e.tech_.any(["vttjsloaded","vttjserror"],l=>{if(l.type==="vttjserror"){kt.error(`vttjs failed to load, stopping trying to process ${e.src}`);return}return Uw(o,e)}):Uw(o,e)}))};class Af extends kS{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const s=Yt(e,{kind:XJ[e.kind]||"subtitles",language:e.language||e.srclang||""});let i=Bw[s.mode]||"disabled";const r=s.default;(s.kind==="metadata"||s.kind==="chapters")&&(i="hidden"),super(s),this.tech_=s.tech,this.cues_=[],this.activeCues_=[],this.preload_=this.tech_.preloadTextTracks!==!1;const n=new wm(this.cues_),a=new wm(this.activeCues_);let o=!1;this.timeupdateHandler=Jt(this,function(c={}){if(!this.tech_.isDisposed()){if(!this.tech_.isReady_){c.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,o&&(this.trigger("cuechange"),o=!1),c.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}});const l=()=>{this.stopTracking()};this.tech_.one("dispose",l),i!=="disabled"&&this.startTracking(),Object.defineProperties(this,{default:{get(){return r},set(){}},mode:{get(){return i},set(c){Bw[c]&&i!==c&&(i=c,!this.preload_&&i!=="disabled"&&this.cues.length===0&&$w(this.src,this),this.stopTracking(),i!=="disabled"&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?n:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(this.cues.length===0)return a;const c=this.tech_.currentTime(),d=[];for(let p=0,_=this.cues.length;p<_;p++){const b=this.cues[p];b.startTime<=c&&b.endTime>=c&&d.push(b)}if(o=!1,d.length!==this.activeCues_.length)o=!0;else for(let p=0;p<d.length;p++)this.activeCues_.indexOf(d[p])===-1&&(o=!0);return this.activeCues_=d,a.setCues_(this.activeCues_),a},set(){}}}),s.src?(this.src=s.src,this.preload_||(this.loaded_=!0),(this.preload_||s.kind!=="subtitles"&&s.kind!=="captions")&&$w(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let s=e;if(!("getCueAsHTML"in s)){s=new Y.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(const r in e)r in s||(s[r]=e[r]);s.id=e.id,s.originalCue_=e}const i=this.tech_.textTracks();for(let r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(s);this.cues_.push(s),this.cues.setCues_(this.cues_)}removeCue(e){let s=this.cues_.length;for(;s--;){const i=this.cues_[s];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(s,1),this.cues.setCues_(this.cues_);break}}}}Af.prototype.allowedEvents_={cuechange:"cuechange"};class vN extends kS{constructor(e={}){const s=Yt(e,{kind:WJ[e.kind]||""});super(s);let i=!1;Object.defineProperty(this,"enabled",{get(){return i},set(r){typeof r!="boolean"||r===i||(i=r,this.trigger("enabledchange"))}}),s.enabled&&(this.enabled=s.enabled),this.loaded_=!0}}class bN extends kS{constructor(e={}){const s=Yt(e,{kind:GJ[e.kind]||""});super(s);let i=!1;Object.defineProperty(this,"selected",{get(){return i},set(r){typeof r!="boolean"||r===i||(i=r,this.trigger("selectedchange"))}}),s.selected&&(this.selected=s.selected)}}class za extends Or{constructor(e={}){super();let s;const i=new Af(e);this.kind=i.kind,this.src=i.src,this.srclang=i.language,this.label=i.label,this.default=i.default,Object.defineProperties(this,{readyState:{get(){return s}},track:{get(){return i}}}),s=za.NONE,i.addEventListener("loadeddata",()=>{s=za.LOADED,this.trigger({type:"load",target:this})})}}za.prototype.allowedEvents_={load:"load"};za.NONE=0;za.LOADING=1;za.LOADED=2;za.ERROR=3;const kr={audio:{ListClass:qJ,TrackClass:vN,capitalName:"Audio"},video:{ListClass:VJ,TrackClass:bN,capitalName:"Video"},text:{ListClass:yN,TrackClass:Af,capitalName:"Text"}};Object.keys(kr).forEach(function(t){kr[t].getterName=`${t}Tracks`,kr[t].privateName=`${t}Tracks_`});const cc={remoteText:{ListClass:yN,TrackClass:Af,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:zJ,TrackClass:za,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Ci=Object.assign({},kr,cc);cc.names=Object.keys(cc);kr.names=Object.keys(kr);Ci.names=[].concat(cc.names).concat(kr.names);function YJ(t,e,s,i,r={}){const n=t.textTracks();r.kind=e,s&&(r.label=s),i&&(r.language=i),r.tech=t;const a=new Ci.text.TrackClass(r);return n.addTrack(a),a}class pt extends Se{constructor(e={},s=function(){}){e.reportTouchActivity=!1,super(null,e,s),this.onDurationChange_=i=>this.onDurationChange(i),this.trackProgress_=i=>this.trackProgress(i),this.trackCurrentTime_=i=>this.trackCurrentTime(i),this.stopTrackingCurrentTime_=i=>this.stopTrackingCurrentTime(i),this.disposeSourceHandler_=i=>this.disposeSourceHandler(i),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),Ci.names.forEach(i=>{const r=Ci[i];e&&e[r.getterName]&&(this[r.privateName]=e[r.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(i=>{e[`native${i}Tracks`]===!1&&(this[`featuresNative${i}Tracks`]=!1)}),e.nativeCaptions===!1||e.nativeTextTracks===!1?this.featuresNativeTextTracks=!1:(e.nativeCaptions===!0||e.nativeTextTracks===!0)&&(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=e.preloadTextTracks!==!1,this.autoRemoteTextTracks_=new Ci.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Jt(this,function(){const s=this.bufferedPercent();this.bufferedPercent_!==s&&this.trigger("progress"),this.bufferedPercent_=s,s===1&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return rn(0,0)}bufferedPercent(){return gN(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(kr.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(e){e=[].concat(e),e.forEach(s=>{const i=this[`${s}Tracks`]()||[];let r=i.length;for(;r--;){const n=i[r];s==="text"&&this.removeRemoteTextTrack(n),i.removeTrack(n)}})}cleanupAutoTextTracks(){const e=this.autoRemoteTextTracks_||[];let s=e.length;for(;s--;){const i=e[s];this.removeRemoteTextTrack(i)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return e!==void 0&&(this.error_=new Ii(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?rn(0,0):rn()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}
304initTrackListeners(){kr.names.forEach(e=>{const s=kr[e],i=()=>{this.trigger(`${e}trackchange`)},r=this[s.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),this.on("dispose",()=>{r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)})})}addWebVttScript_(){if(!Y.WebVTT)if(Ne.body.contains(this.el())){if(!this.options_["vtt.js"]&&nc(nw)&&Object.keys(nw).length>0){this.trigger("vttjsloaded");return}const e=Ne.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{e.onload=null,e.onerror=null}),Y.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const e=this.textTracks(),s=this.remoteTextTracks(),i=o=>e.addTrack(o.track),r=o=>e.removeTrack(o.track);s.on("addtrack",i),s.on("removetrack",r),this.addWebVttScript_();const n=()=>this.trigger("texttrackchange"),a=()=>{n();for(let o=0;o<e.length;o++){const l=e[o];l.removeEventListener("cuechange",n),l.mode==="showing"&&l.addEventListener("cuechange",n)}};a(),e.addEventListener("change",a),e.addEventListener("addtrack",a),e.addEventListener("removetrack",a),this.on("dispose",function(){s.off("addtrack",i),s.off("removetrack",r),e.removeEventListener("change",a),e.removeEventListener("addtrack",a),e.removeEventListener("removetrack",a);for(let o=0;o<e.length;o++)e[o].removeEventListener("cuechange",n)})}addTextTrack(e,s,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return YJ(this,e,s,i)}createRemoteTextTrack(e){const s=Yt(e,{tech:this});return new cc.remoteTextEl.TrackClass(s)}addRemoteTextTrack(e={},s){const i=this.createRemoteTextTrack(e);return typeof s!="boolean"&&(s=!1),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),s===!1&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(i.track)),i}removeRemoteTextTrack(e){const s=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(s),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){const s=cn();return!this.isReady_||this.paused()?(this.queuedHanders_.add(s),this.one("playing",()=>{this.queuedHanders_.has(s)&&(this.queuedHanders_.delete(s),e())})):this.requestNamedAnimationFrame(s,e),s}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,s){return pt.canPlayType(e.type)}static isTech(e){return e.prototype instanceof pt||e instanceof pt||e===pt}static registerTech(e,s){if(pt.techs_||(pt.techs_={}),!pt.isTech(s))throw new Error(`Tech ${e} must be a Tech`);if(!pt.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!pt.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=gs(e),pt.techs_[e]=s,pt.techs_[Eh(e)]=s,e!=="Tech"&&pt.defaultTechOrder_.push(e),s}static getTech(e){if(e){if(pt.techs_&&pt.techs_[e])return pt.techs_[e];if(e=gs(e),Y&&Y.videojs&&Y.videojs[e])return kt.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),Y.videojs[e]}}}Ci.names.forEach(function(t){const e=Ci[t];pt.prototype[e.getterName]=function(){return this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName]}});pt.prototype.featuresVolumeControl=!0;pt.prototype.featuresMuteControl=!0;pt.prototype.featuresFullscreenResize=!1;pt.prototype.featuresPlaybackRate=!1;pt.prototype.featuresProgressEvents=!1;pt.prototype.featuresSourceset=!1;pt.prototype.featuresTimeupdateEvents=!1;pt.prototype.featuresNativeTextTracks=!1;pt.prototype.featuresVideoFrameCallback=!1;pt.withSourceHandlers=function(t){t.registerSourceHandler=function(e,s){let i=t.sourceHandlers;
vendor: 3,869 bytes, line 304
304i||(i=t.sourceHandlers=[]),s===void 0&&(s=i.length),i.splice(s,0,e)},t.canPlayType=function(e){const s=t.sourceHandlers||[];let i;for(let r=0;r<s.length;r++)if(i=s[r].canPlayType(e),i)return i;return""},t.selectSourceHandler=function(e,s){const i=t.sourceHandlers||[];let r;for(let n=0;n<i.length;n++)if(r=i[n].canHandleSource(e,s),r)return i[n];return null},t.canPlaySource=function(e,s){const i=t.selectSourceHandler(e,s);return i?i.canHandleSource(e,s):""},["seekable","seeking","duration"].forEach(function(e){const s=this[e];typeof s=="function"&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):s.apply(this,arguments)})},t.prototype),t.prototype.setSource=function(e){let s=t.selectSourceHandler(e,this.options_);s||(t.nativeSourceHandler?s=t.nativeSourceHandler:kt.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),s!==t.nativeSourceHandler&&(this.currentSource_=e),this.sourceHandler_=s.handleSource(e,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},t.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}};Se.registerComponent("Tech",pt);pt.registerTech("Tech",pt);pt.defaultTechOrder_=[];const xl={},iT={},Am={};function QJ(t,e){xl[t]=xl[t]||[],xl[t].push(e)}function JJ(t,e,s){t.setTimeout(()=>al(e,xl[e.type],s,t),1)}function ZJ(t,e){t.forEach(s=>s.setTech&&s.setTech(e))}function eZ(t,e,s){return t.reduceRight(PS(s),e[s]())}function tZ(t,e,s,i){return e[s](t.reduce(PS(s),i))}function jw(t,e,s,i=null){const r="call"+gs(s),n=t.reduce(PS(r),i),a=n===Am,o=a?null:e[s](n);return rZ(t,s,o,a),o}const sZ={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},iZ={setCurrentTime:1,setMuted:1,setVolume:1},Hw={play:1,pause:1};function PS(t){return(e,s)=>e===Am?Am:s[t]?s[t](e):e}function rZ(t,e,s,i){for(let r=t.length-1;r>=0;r--){const n=t[r];n[e]&&n[e](i,s)}}function nZ(t){iT[t.id()]=null}function aZ(t,e){const s=iT[t.id()];let i=null;if(s==null)return i=e(t),iT[t.id()]=[[e,i]],i;for(let r=0;r<s.length;r++){const[n,a]=s[r];n===e&&(i=a)}return i===null&&(i=e(t),s.push([e,i])),i}function al(t={},e=[],s,i,r=[],n=!1){const[a,...o]=e;if(typeof a=="string")al(t,xl[a],s,i,r,n);else if(a){const l=aZ(i,a);if(!l.setSource)return r.push(l),al(t,o,s,i,r,n);l.setSource(Object.assign({},t),function(c,d){if(c)return al(t,o,s,i,r,n);r.push(l),al(d,t.type===d.type?o:xl[d.type],s,i,r,n)})}else o.length?al(t,o,s,i,r,n):n?s(t,r):al(t,xl["*"],s,i,r,!0)}const oZ={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},km=function(t=""){const e=IS(t);return oZ[e.toLowerCase()]||""},lZ=(t,e)=>{if(!e)return"";if(t.cache_.source.src===e&&t.cache_.source.type)return t.cache_.source.type;const s=t.cache_.sources.filter(r=>r.src===e);if(s.length)return s[0].type;const i=t.$$("source");for(let r=0;r<i.length;r++){const n=i[r];if(n.type&&n.src&&n.src===e)return n.type}return km(e)},TN=function(t){if(Array.isArray(t)){let e=[];t.forEach(function(s){s=TN(s),Array.isArray(s)?e=e.concat(s):Hn(s)&&e.push(s)}),t=e}else typeof t=="string"&&t.trim()?t=[qw({src:t})]:Hn(t)&&typeof t.src=="string"&&t.src&&t.src.trim()?t=[qw(t)]:t=[];return t};function qw(t){if(!t.type){const e=km(t.src);e&&(t.type=e)}return t}var uZ
vendor: 16,212 bytes, lines 304-436
304=`<svg xmlns="http://www.w3.org/2000/svg">
305  <defs>
306    <symbol viewBox="0 0 48 48" id="vjs-icon-play">
307      <path d="M16 10v28l22-14z"></path>
308    </symbol>
309    <symbol viewBox="0 0 48 48" id="vjs-icon-pause">
310      <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>
311    </symbol>
312    <symbol viewBox="0 0 48 48" id="vjs-icon-audio">
313      <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>
314    </symbol>
315    <symbol viewBox="0 0 48 48" id="vjs-icon-captions">
316      <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>
317    </symbol>
318    <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">
319      <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>
320    </symbol>
321    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">
322      <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>
323    </symbol>
324    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">
325      <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>
326    </symbol>
327    <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">
328      <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>
329    </symbol>
330    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">
331      <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>
332    </symbol>
333    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">
334      <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>
335    </symbol>
336    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">
337      <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>
338    </symbol>
339    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">
340      <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>
341    </symbol>
342    <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">
343      <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>
344    </symbol>
345    <symbol viewBox="0 0 24 24" id="vjs-icon-hd">
346      <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>
347    </symbol>
348    <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">
349      <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>
350    </symbol>
351    <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">
352      <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>
353    </symbol>
354    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">
355      <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>
356    </symbol>
357    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">
358      <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>
359    </symbol>
360    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">
361      <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>
362    </symbol>
363    <symbol viewBox="0 0 48 48" id="vjs-icon-share">
364      <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>
365    </symbol>
366    <symbol viewBox="0 0 48 48" id="vjs-icon-cog">
367      <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>
368    </symbol>
369    <symbol viewBox="0 0 48 48" id="vjs-icon-square">
370      <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>
371    </symbol>
372    <symbol viewBox="0 0 48 48" id="vjs-icon-circle">
373      <circle cx="24" cy="24" r="20"></circle>
374    </symbol>
375    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">
376      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>
377    </symbol>
378    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">
379      <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>
380    </symbol>
381    <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">
382      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>
383    </symbol>
384    <symbol viewBox="0 0 48 48" id="vjs-icon-replay">
385      <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>
386    </symbol>
387    <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">
388      <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>
389    </symbol>
390    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">
391      <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>
392    </symbol>
393    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">
394      <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>
395    </symbol>
396    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">
397      <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>
398    </symbol>
399    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">
400      <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>
401    </symbol>
402    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">
403      <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>
404    </symbol>
405    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">
406      <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>
407    </symbol>
408    <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">
409      <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>
410    </symbol>
411    <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">
412      <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>
413    </symbol>
414    <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">
415      <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>
416    </symbol>
417    <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">
418      <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>
419    </symbol>
420    <symbol viewBox="0 0 48 48" id="vjs-icon-cast">
421      <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>
422    </symbol>
423    <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">
424      <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>
425    </symbol>
426    <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">
427      <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>
428      <path fill="none" d="M-1-3h24v24H-1z"></path>
429    </symbol>
430    <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">
431      <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>
432    </symbol>
433    <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">
434      <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>
435    </symbol>
436    <symbol viewBox="0 0 1
436792 1792" id="vjs-icon-twitter">
437      <path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5T1369.5 1125 1185 1335.5t-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5T285 1033q33 5 61 5 43 0 85-11-112-23-185.5-111.5T172 710v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5T884 653q-8-38-8-74 0-134 94.5-228.5T1199 256q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"></path>
438    </symbol>
439    <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">
440      <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>
441    </symbol>
442    <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">
443      <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>
444    </symbol>
445  </defs>
446</svg>`;class cZ extends Se{constructor(e,s,i){const r=Yt({createEl:!1},s);if(super(e,r,i),!s.playerOptions.sources||s.playerOptions.sources.length===0)for(let n=0,a=s.playerOptions.techOrder;n<a.length;n++){const o=gs(a[n]);let l=pt.getTech(o);if(o||(l=Se.getComponent(o)),l&&l.isSupported()){e.loadTech_(o);break}}else e.src(s.playerOptions.sources)}}Se.registerComponent("MediaLoader",cZ);class oy extends Se{constructor(e,s){super(e,s),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=i=>this.handleMouseOver(i),this.handleMouseOut_=i=>this.handleMouseOut(i),this.handleClick_=i=>this.handleClick(i),this.handleKeyDown_=i=>this.handleKeyDown(i),this.emitTapEvents(),this.enable()}createEl(e="div",s={},i={}){s=Object.assign({className:this.buildCSSClass(),tabIndex:0},s),e==="button"&&kt.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),i=Object.assign({role:"button"},i),this.tabIndex_=s.tabIndex;const r=St(e,s,i);return this.player_.options_.experimentalSvgIcons||r.appendChild(St("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=St("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,s=this.el()){if(e===void 0)return this.controlText_||"Need Text";const i=this.localize(e);this.controlText_=e,No(this.controlTextEl_,i),!this.nonIconControl&&!this.player_.options_.noUITitleAttributes&&s.setAttribute("title",i)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){ct.isEventKey(e,"Space")||ct.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}Se.registerComponent("ClickableComponent",oy);class rT extends oy{constructor(e,s){super(e,s),this.update(),this.update_=i=>this.update(i),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return St("div",{className:"vjs-poster"})}crossOrigin(e){if(typeof e>"u")return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;if(e!==null&&e!=="anonymous"&&e!=="use-credentials"){this.player_.log.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`);return}this.$("img")&&(this.$("img").crossOrigin=e)}update(e){const s=this.player().poster();this.setSrc(s),s?this.show():this.hide()}setSrc(e){if(!e){this.el_.textContent="";return}this.$("img")||this.el_.appendChild(St("picture",{className:"vjs-poster",tabIndex:-1},{},St("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?Dn(this.player_.play()):this.player_.pause())}}rT.prototype.crossorigin=rT.prototype.crossOrigin;Se.registerComponent("PosterImage",rT);const br="#222",Vw="#ccc",dZ={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',
vendor: 4,974 bytes, line 446
446script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function dv(t,e){let s;if(t.length===4)s=t[1]+t[1]+t[2]+t[2]+t[3]+t[3];else if(t.length===7)s=t.slice(1);else throw new Error("Invalid color code provided, "+t+"; must be formatted as e.g. #f0e or #f604e2.");return"rgba("+parseInt(s.slice(0,2),16)+","+parseInt(s.slice(2,4),16)+","+parseInt(s.slice(4,6),16)+","+e+")"}function Vd(t,e,s){try{t.style[e]=s}catch{return}}function zw(t){return t?`${t}px`:""}class hZ extends Se{constructor(e,s,i){super(e,s,i);const r=a=>this.updateDisplay(a),n=a=>{this.updateDisplayOverlay(),this.updateDisplay(a)};e.on("loadstart",a=>this.toggleDisplay(a)),e.on("texttrackchange",r),e.on("loadedmetadata",a=>{this.updateDisplayOverlay(),this.preselectTrack(a)}),e.ready(Jt(this,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks){this.hide();return}e.on("fullscreenchange",n),e.on("playerresize",n);const a=Y.screen.orientation||Y,o=Y.screen.orientation?"change":"orientationchange";a.addEventListener(o,n),e.on("dispose",()=>a.removeEventListener(o,n));const l=this.options_.playerOptions.tracks||[];for(let c=0;c<l.length;c++)this.player_.addRemoteTextTrack(l[c],!0);this.preselectTrack()}))}preselectTrack(){const e={captions:1,subtitles:1},s=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage;let r,n,a;for(let o=0;o<s.length;o++){const l=s[o];i&&i.enabled&&i.language&&i.language===l.language&&l.kind in e?l.kind===i.kind?a=l:a||(a=l):i&&!i.enabled?(a=null,r=null,n=null):l.default&&(l.kind==="descriptions"&&!r?r=l:l.kind in e&&!n&&(n=l))}a?a.mode="showing":n?n.mode="showing":r&&(r.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){typeof Y.WebVTT=="function"&&Y.WebVTT.processCues(Y,[],this.el_)}updateDisplay(){const e=this.player_.textTracks(),s=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),s){const a=[];for(let o=0;o<e.length;++o){const l=e[o];l.mode==="showing"&&a.push(l)}this.updateForTrack(a);return}let i=null,r=null,n=e.length;for(;n--;){const a=e[n];a.mode==="showing"&&(a.kind==="descriptions"?i=a:r=a)}r?(this.getAttribute("aria-live")!=="off"&&this.setAttribute("aria-live","off"),this.updateForTrack(r)):i&&(this.getAttribute("aria-live")!=="assertive"&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i))}updateDisplayOverlay(){if(!this.player_.videoHeight()||!Y.CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),s=this.player_.currentHeight(),i=e/s,r=this.player_.videoWidth()/this.player_.videoHeight();let n=0,a=0;Math.abs(i-r)>.1&&(i>r?n=Math.round((e-s*r)/2):a=Math.round((s-e/r)/2)),Vd(this.el_,"insetInline",zw(n)),Vd(this.el_,"insetBlock",zw(a))}updateDisplayState(e){const s=this.player_.textTrackSettings.getValues(),i=e.activeCues;let r=i.length;for(;r--;){const n=i[r];if(!n)continue;const a=n.displayState;if(s.color&&(a.firstChild.style.color=s.color),s.textOpacity&&Vd(a.firstChild,"color",dv(s.color||"#fff",s.textOpacity)),s.backgroundColor&&(a.firstChild.style.backgroundColor=s.backgroundColor),s.backgroundOpacity&&Vd(a.firstChild,"backgroundColor",dv(s.backgroundColor||"#000",s.backgroundOpacity)),s.windowColor&&(s.windowOpacity?Vd(a,"backgroundColor",dv(s.windowColor,s.windowOpacity)):a.style.backgroundColor=s.windowColor),s.edgeStyle&&(s.edgeStyle==="dropshadow"?a.firstChild.style.textShadow=`2px 2px 3px ${br}, 2px 2px 4px ${br}, 2px 2px 5px ${br}`:s.edgeStyle==="raised"?a.firstChild.style.textShadow=`1px 1px ${br}, 2px 2px ${br}, 3px 3px ${br}`:s.edgeStyle==="depressed"?a.firstChild.style.textShadow=`1px 1px ${Vw}, 0 1px ${Vw}, -1px -1px ${br}, 0 -1px ${br}`:s.edgeStyle==="uniform"&&(a.firstChild.style.textShadow=`0 0 4px ${br}, 0 0 4px ${br}, 0 0 4px ${br}, 0 0 4px ${br}`)),s.fontPercent&&s.fontPercent!==1){const o=Y.parseFloat(a.style.fontSize);a.style.fontSize=o*s.fontPercent+"px",a.style.height="auto",a.style.top="auto"}s.fontFamily&&s.fontFamily!=="default"&&(s.fontFamily==="small-caps"?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=dZ[s.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),typeof Y.WebVTT!="function"||e.every(i=>!i.activeCues))return;const s=[];for(let i=0;i<e.length;++i){const r=e[i];for(let n=0;n<r.activeCues.length;++n)s.push(r.activeCues[n])}Y.WebVTT.processCues(Y,s,this.el_);for(let i=0;i<e.length;++i){const r=e[i];for(let n=0;n<r.activeCues.length;++n){const a=r.activeCues[n].displayState;El(a,"vjs-text-track-cue","vjs-text-track-cue-"+(r.language?r.language:i)),r.language&&ac(a,"lang",r.language)}this.player_.textTrackSettings&&this.updateDisplayState(r)}}}Se.registerComponent("TextTrackDisplay",hZ);class fZ extends Se{createEl(){const e=this.player_.isAudio(),s=this.localize(e?"Audio Player":"
446Video Player"),i=St("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[s])}),r=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}}Se.registerComponent("LoadingSpinner",fZ);class hr extends oy{createEl(e,s={},i={}){e="button",s=Object.assign({className:this.buildCSSClass()},s),i=Object.assign({type:"button"},i);const r=St(e,s,i);return this.player_.options_.experimentalSvgIcons||r.appendChild(St("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}addChild(e,s={}){const i=this.constructor.name;return kt.warn(`Adding an actionable (user controllable) child to a Button (${i}) is not supported; use a ClickableComponent instead.`),Se.prototype.addChild.call(this,e,s)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){if(ct.isEventKey(e,"Space")||ct.isEventKey(e,"Enter")){e.stopPropagation();return}super.handleKeyDown(e)}}Se.registerComponent("Button",hr);class SN extends hr{constructor(e,s){super(e,s),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",i=>this.handleMouseDown(i))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){const s=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e){Dn(s),this.player_.tech(!0)&&this.player_.tech(!0).focus();return}const i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(!r){this.player_.tech(!0).focus();return}const n=()=>r.focus();xh(s)?s.then(n,()=>{}):this.setTimeout(n,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}SN.prototype.controlText_="Play Video";Se.registerComponent("BigPlayButton",SN);class pZ extends hr{constructor(e,s){super(e,s),this.setIcon("cancel"),this.controlText(s&&s.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){ct.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}Se.registerComponent("CloseButton",pZ);class EN extends hr{constructor(e,s={}){super(e,s),s.replay=s.replay===void 0||s.replay,this.setIcon("play"),this.on(e,"play",i=>this.handlePlay(i)),this.on(e,"pause",i=>this.handlePause(i)),s.replay&&this.on(e,"ended",i=>this.handleEnded(i))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?Dn(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",s=>this.handleSeeked(s))}}EN.prototype.controlText_="Play";Se.registerComponent("PlayToggle",EN);class Pc extends Se{constructor(e,s){super(e,s),this.on(e,["timeupdate","ended","seeking"],i=>this.update(i)),this.updateTextNode_()}createEl(){const e=this.buildCSSClass(),s=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),i=St("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)} `},{role:"presentation"});return s.appendChild(i),this.contentEl_=St("span",{className:`${e}-display`},{role:"presentation"}),s.appendChild(this.contentEl_),s}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){!this.player_.options_.enableSmoothSeeking&&e.type==="seeking"||this.updateContent(e)}updateTextNode_(e=0){e=Ll(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let s=this.textNode_;s&&this.contentEl_.firstChild!==s&&(s=null,kt.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=Ne.createTextNode(this.formattedTime_),this.textNode_&&(s?this.contentEl_.replaceChild(this.textNode_,s):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}}Pc.prototype.labelText_="Time";Pc.prototype.controlText_="Time";Se.registerComponent("TimeDisplay",Pc);class LS extends Pc{buildCSSClass(){return"vjs-current-time"}updateContent(e){let s;this.player_.ended()?s=this.player_.duration():s=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(s)}}LS.prototype.labelText_="Current Time";LS.prototype.controlText_="Current Time";Se.registerComponent("CurrentTimeDisplay",LS);class OS extends Pc{constructor(e,s){super(e,s);const i=r=>this.updateContent(r);
vendor: 7,286 bytes, line 446
446this.on(e,"durationchange",i),this.on(e,"loadstart",i),this.on(e,"loadedmetadata",i)}buildCSSClass(){return"vjs-duration"}updateContent(e){const s=this.player_.duration();this.updateTextNode_(s)}}OS.prototype.labelText_="Duration";OS.prototype.controlText_="Duration";Se.registerComponent("DurationDisplay",OS);class mZ extends Se{createEl(){const e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),s=super.createEl("div"),i=super.createEl("span",{textContent:"/"});return s.appendChild(i),e.appendChild(s),e}}Se.registerComponent("TimeDivider",mZ);class NS extends Pc{constructor(e,s){super(e,s),this.on(e,"durationchange",i=>this.updateContent(i))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const e=super.createEl();return this.options_.displayNegative!==!1&&e.insertBefore(St("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if(typeof this.player_.duration()!="number")return;let s;this.player_.ended()?s=0:this.player_.remainingTimeDisplay?s=this.player_.remainingTimeDisplay():s=this.player_.remainingTime(),this.updateTextNode_(s)}}NS.prototype.labelText_="Remaining Time";NS.prototype.controlText_="Remaining Time";Se.registerComponent("RemainingTimeDisplay",NS);class gZ extends Se{constructor(e,s){super(e,s),this.updateShowing(),this.on(this.player(),"durationchange",i=>this.updateShowing(i))}createEl(){const e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=St("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(St("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")} `})),this.contentEl_.appendChild(Ne.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}}Se.registerComponent("LiveDisplay",gZ);class xN extends hr{constructor(e,s){super(e,s),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=i=>this.updateLiveEdgeStatus(i),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=St("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}xN.prototype.controlText_="Seek to live, currently playing live";Se.registerComponent("SeekToLive",xN);function kf(t,e,s){return t=Number(t),Math.min(s,Math.max(e,isNaN(t)?e:t))}var yZ=Object.freeze({__proto__:null,clamp:kf});class RS extends Se{constructor(e,s){super(e,s),this.handleMouseDown_=i=>this.handleMouseDown(i),this.handleMouseUp_=i=>this.handleMouseUp(i),this.handleKeyDown_=i=>this.handleKeyDown(i),this.handleClick_=i=>this.handleClick(i),this.handleMouseMove_=i=>this.handleMouseMove(i),this.update_=i=>this.update(i),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;const e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,s={},i={}){return s.className=s.className+" vjs-slider",s=Object.assign({tabIndex:0},s),i=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},i),super.createEl(e,s,i)}handleMouseDown(e){const s=this.bar.el_.ownerDocument;e.type==="mousedown"&&e.preventDefault(),e.type==="touchstart"&&!Vn&&e.preventDefault(),Q4(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(s,"mousemove",this.handleMouseMove_),this.on(s,"mouseup",this.handleMouseUp_),this.on(s,"touchmove",this.handleMouseMove_),this.on(s,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){const s=this.bar.el_.ownerDocument;J4(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(s,"mousemove",this.handleMouseMove_),this.off(s,"mouseup",this.handleMouseUp_),this.off(s,"touchmove",this.handleMouseMove_),this.off(s,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",()=>{const s=this.vertical()?"height":"width";this.bar.el().style[s]=(e*100).toFixed(2)+"%"})),e}getProgress(){return Number(kf(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const s=ty(this.el_,e);return this.vertical()?s.y:s.x}handleKeyDown(e){ct.isEventKey(e,"Left")||ct.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):ct.isEventKey(e,"Right")||ct.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(e===void 0)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}Se.registerComponent("Slider",RS);const hv=(t,e)=>kf(t/e*100,0,100).toFixed(2)+"%";class _Z extends Se{constructor(e,s){super(e,s),this.partEls_=[],this.on(e,"progress",i=>this.update(i))}createEl(){const e=super.createEl("div",{className:"vjs-load-progress"}),s=St("span",{className:"vjs-control-text"}),i=St("span",{textContent:this.localize("Loaded")}),r=Ne.createTextNode(": ");return this.percentageEl_=St("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(s),s.appendChild(i),s.appendChild(r),s.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{const s=this.player_.liveTracker,i=this.player_.buffered(),r=s&&s.isLive
446()?s.seekableEnd():this.player_.duration(),n=this.player_.bufferedEnd(),a=this.partEls_,o=hv(n,r);this.percent_!==o&&(this.el_.style.width=o,No(this.percentageEl_,o),this.percent_=o);for(let l=0;l<i.length;l++){const c=i.start(l),d=i.end(l);let p=a[l];p||(p=this.el_.appendChild(St()),a[l]=p),!(p.dataset.start===c&&p.dataset.end===d)&&(p.dataset.start=c,p.dataset.end=d,p.style.left=hv(c,n),p.style.width=hv(d-c,n))}for(let l=a.length;l>i.length;l--)this.el_.removeChild(a[l-1]);a.length=i.length})}}Se.registerComponent("LoadProgressBar",_Z);class vZ extends Se{constructor(e,s){super(e,s),this.update=zn(Jt(this,this.update),Lr)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,s,i){const r=tf(this.el_),n=oc(this.player_.el()),a=e.width*s;if(!n||!r)return;const o=e.left-n.left+a,l=e.width-a+(n.right-e.right);let c=r.width/2;o<c?c+=c-o:l<c&&(c=l),c<0?c=0:c>r.width&&(c=r.width),c=Math.round(c),this.el_.style.right=`-${c}px`,this.write(i)}write(e){No(this.el_,e)}updateTime(e,s,i,r){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let n;const a=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const o=this.player_.liveTracker.liveWindow(),l=o-s*o;n=(l<1?"":"-")+Ll(l,o)}else n=Ll(i,a);this.update(e,s,n),r&&r()})}}Se.registerComponent("TimeTooltip",vZ);class MS extends Se{constructor(e,s){super(e,s),this.setIcon("circle"),this.update=zn(Jt(this,this.update),Lr)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,s){const i=this.getChild("timeTooltip");if(!i)return;const r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,s,r)}}MS.prototype.options_={children:[]};!Li&&!qn&&MS.prototype.options_.children.push("timeTooltip");Se.registerComponent("PlayProgressBar",MS);class CN extends Se{constructor(e,s){super(e,s),this.update=zn(Jt(this,this.update),Lr)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,s){const i=s*this.player_.duration();this.getChild("timeTooltip").updateTime(e,s,i,()=>{this.el_.style.left=`${e.width*s}px`})}}CN.prototype.options_={children:["timeTooltip"]};Se.registerComponent("MouseTimeDisplay",CN);const rp=5,Gw=12;class FS extends RS{constructor(e,s){super(e,s),this.setEventHandlers_()}setEventHandlers_(){this.update_=Jt(this,this.update),this.update=zn(this.update_,Lr),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in Ne&&"visibilityState"in Ne&&this.on(Ne,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){Ne.visibilityState==="hidden"?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(!this.player_.ended()&&!this.player_.paused()&&this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,Lr))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&e.type!=="ended"||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if(Ne.visibilityState==="hidden")return;const s=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{const i=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),r=this.player_.liveTracker;let n=this.player_.duration();r&&r.isLive()&&(n=this.player_.liveTracker.liveCurrentTime()),this.percent_!==s&&(this.el_.setAttribute("aria-valuenow",(s*100).toFixed(2)),this.percent_=s),(this.currentTime_!==i||this.duration_!==n)&&(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[Ll(i,n),Ll(n,n)],"{1} of {2}")),this.currentTime_=i,this.duration_=n),this.bar&&this.bar.update(oc(this.el()),this.getProgress())}),s}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){const e=this.getCurrentTime_();let s;const i=this.player_.liveTracker;
446return i&&i.isLive()?(s=(e-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(s=1)):s=e/this.player_.duration(),s}handleMouseDown(e){sf(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,s=!1){if(!sf(e)||isNaN(this.player_.duration()))return;!s&&!this.player_.scrubbing()&&this.player_.scrubbing(!0);let i;const r=this.calculateDistance(e),n=this.player_.liveTracker;if(!n||!n.isLive())i=r*this.player_.duration(),i===this.player_.duration()&&(i=i-.1);else{if(r>=.99){n.seekToLiveEdge();return}const a=n.seekableStart(),o=n.liveCurrentTime();if(i=a+r*n.liveWindow(),i>=o&&(i=o),i<=a&&(i=a+.1),i===1/0)return}this.userSeek_(i),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();const e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();const e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Dn(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+rp)}stepBack(){this.userSeek_(this.player_.currentTime()-rp)}handleAction(e){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){const s=this.player_.liveTracker;if(ct.isEventKey(e,"Space")||ct.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(ct.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(ct.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),s&&s.isLive()?this.userSeek_(s.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(ct(e))){e.preventDefault(),e.stopPropagation();const i=(ct.codes[ct(e)]-ct.codes[0])*10/100;s&&s.isLive()?this.userSeek_(s.seekableStart()+s.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else ct.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-rp*Gw)):ct.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+rp*Gw)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in Ne&&"visibilityState"in Ne&&this.off(Ne,"visibilitychange",this.toggleVisibility_),super.dispose()}}FS.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"};!Li&&!qn&&FS.prototype.options_.children.splice(1,0,"mouseTimeDisplay");Se.registerComponent("SeekBar",FS);class wN extends Se{constructor(e,s){super(e,s),this.handleMouseMove=zn(Jt(this,this.handleMouseMove),Lr),this.throttledHandleMouseSeek=zn(Jt(this,this.handleMouseSeek),Lr),this.handleMouseUpHandler_=i=>this.handleMouseUp(i),this.handleMouseDownHandler_=i=>this.handleMouseDown(i),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){const s=this.getChild("seekBar");if(!s)return;const i=s.getChild("playProgressBar"),r=s.getChild("mouseTimeDisplay");if(!i&&!r)return;const n=s.el(),a=tf(n);let o=ty(n,e).x;o=kf(o,0,1),r&&r.update(a,o),i&&i.update(a,s.getProgress())}handleMouseSeek(e){const s=this.getChild("seekBar");s&&s.handleMouseMove(e)}enabled(){return this.enabled_}
446disable(){if(this.children().forEach(e=>e.disable&&e.disable()),!!this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){const e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&Dn(this.player_.play())}}enable(){this.children().forEach(e=>e.enable&&e.enable()),!this.enabled()&&(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){const e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}handleMouseDown(e){const s=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(s,"mousemove",this.throttledHandleMouseSeek),this.on(s,"touchmove",this.throttledHandleMouseSeek),this.on(s,"mouseup",this.handleMouseUpHandler_),this.on(s,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const s=this.getChild("seekBar");s&&s.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}wN.prototype.options_={children:["seekBar"]};Se.registerComponent("ProgressControl",wN);class AN extends hr{constructor(e,s){super(e,s),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],i=>this.handlePictureInPictureChange(i)),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],i=>this.handlePictureInPictureEnabledChange(i)),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){if(!(this.player_.currentType().substring(0,5)==="audio"||this.player_.audioPosterMode()||this.player_.audioOnlyMode())){this.show();return}this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()}handlePictureInPictureEnabledChange(){Ne.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===!1||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in Y?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){typeof Ne.exitPictureInPicture=="function"&&super.show()}}AN.prototype.controlText_="Picture-in-Picture";Se.registerComponent("PictureInPictureToggle",AN);class kN extends hr{constructor(e,s){super(e,s),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",i=>this.handleFullscreenChange(i)),Ne[e.fsApi_.fullscreenEnabled]===!1&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}kN.prototype.controlText_="Fullscreen";Se.registerComponent("FullscreenToggle",kN);const bZ=function(t,e){e.tech_&&!e.tech_.featuresVolumeControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresVolumeControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})};class TZ extends Se{createEl(){const e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}}
vendor: 4,238 bytes, line 446
446Se.registerComponent("VolumeLevel",TZ);class SZ extends Se{constructor(e,s){super(e,s),this.update=zn(Jt(this,this.update),Lr)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,s,i,r){if(!i){const n=oc(this.el_),a=oc(this.player_.el()),o=e.width*s;if(!a||!n)return;const l=e.left-a.left+o,c=e.width-o+(a.right-e.right);let d=n.width/2;l<d?d+=d-l:c<d&&(d=c),d<0?d=0:d>n.width&&(d=n.width),this.el_.style.right=`-${d}px`}this.write(`${r}%`)}write(e){No(this.el_,e)}updateVolume(e,s,i,r,n){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(e,s,i,r.toFixed(0)),n&&n()})}}Se.registerComponent("VolumeLevelTooltip",SZ);class DN extends Se{constructor(e,s){super(e,s),this.update=zn(Jt(this,this.update),Lr)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,s,i){const r=100*s;this.getChild("volumeLevelTooltip").updateVolume(e,s,i,r,()=>{i?this.el_.style.bottom=`${e.height*s}px`:this.el_.style.left=`${e.width*s}px`})}}DN.prototype.options_={children:["volumeLevelTooltip"]};Se.registerComponent("MouseVolumeLevelDisplay",DN);class ly extends RS{constructor(e,s){super(e,s),this.on("slideractive",i=>this.updateLastVolume_(i)),this.on(e,"volumechange",i=>this.updateARIAAttributes(i)),e.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){sf(e)&&super.handleMouseDown(e)}handleMouseMove(e){const s=this.getChild("mouseVolumeLevelDisplay");if(s){const i=this.el(),r=oc(i),n=this.vertical();let a=ty(i,e);a=n?a.y:a.x,a=kf(a,0,1),s.update(r,a,n)}sf(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){const s=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",s),this.el_.setAttribute("aria-valuetext",s+"%")}volumeAsPercentage_(){return Math.round(this.player_.volume()*100)}updateLastVolume_(){const e=this.player_.volume();this.one("sliderinactive",()=>{this.player_.volume()===0&&this.player_.lastVolume_(e)})}}ly.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};!Li&&!qn&&ly.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay");ly.prototype.playerEvent="volumechange";Se.registerComponent("VolumeBar",ly);class IN extends Se{constructor(e,s={}){s.vertical=s.vertical||!1,(typeof s.volumeBar>"u"||nc(s.volumeBar))&&(s.volumeBar=s.volumeBar||{},s.volumeBar.vertical=s.vertical),super(e,s),bZ(this,e),this.throttledHandleMouseMove=zn(Jt(this,this.handleMouseMove),Lr),this.handleMouseUpHandler_=i=>this.handleMouseUp(i),this.on("mousedown",i=>this.handleMouseDown(i)),this.on("touchstart",i=>this.handleMouseDown(i)),this.on("mousemove",i=>this.handleMouseMove(i)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){const s=this.el_.ownerDocument;this.on(s,"mousemove",this.throttledHandleMouseMove),this.on(s,"touchmove",this.throttledHandleMouseMove),this.on(s,"mouseup",this.handleMouseUpHandler_),this.on(s,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const s=this.el_.ownerDocument;this.off(s,"mousemove",this.throttledHandleMouseMove),this.off(s,"touchmove",this.throttledHandleMouseMove),this.off(s,"mouseup",this.handleMouseUpHandler_),this.off(s,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}IN.prototype.options_={children:["volumeBar"]};
446Se.registerComponent("VolumeControl",IN);const EZ=function(t,e){e.tech_&&!e.tech_.featuresMuteControl&&t.addClass("vjs-hidden"),t.on(e,"loadstart",function(){e.tech_.featuresMuteControl?t.removeClass("vjs-hidden"):t.addClass("vjs-hidden")})};class PN extends hr{constructor(e,s){super(e,s),EZ(this,e),this.on(e,["loadstart","volumechange"],i=>this.update(i))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){const s=this.player_.volume(),i=this.player_.lastVolume_();if(s===0){const r=i<.1?.1:i;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const e=this.player_.volume();let s=3;this.setIcon("volume-high"),Li&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),e===0||this.player_.muted()?(this.setIcon("volume-mute"),s=0):e<.33?(this.setIcon("volume-low"),s=1):e<.67&&(this.setIcon("volume-medium"),s=2),Zg(this.el_,[0,1,2,3].reduce((i,r)=>i+`${r?" ":""}vjs-vol-${r}`,"")),El(this.el_,`vjs-vol-${s}`)}updateControlText_(){const e=this.player_.muted()||this.player_.volume()===0?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)}}PN.prototype.controlText_="Mute";Se.registerComponent("MuteToggle",PN);class LN extends Se{constructor(e,s={}){typeof s.inline<"u"?s.inline=s.inline:s.inline=!0,(typeof s.volumeControl>"u"||nc(s.volumeControl))&&(s.volumeControl=s.volumeControl||{},s.volumeControl.vertical=!s.inline),super(e,s),this.handleKeyPressHandler_=i=>this.handleKeyPress(i),this.on(e,["loadstart"],i=>this.volumePanelState_(i)),this.on(this.muteToggle,"keyup",i=>this.handleKeyPress(i)),this.on(this.volumeControl,"keyup",i=>this.handleVolumeControlKeyUp(i)),this.on("keydown",i=>this.handleKeyPress(i)),this.on("mouseover",i=>this.handleMouseOver(i)),this.on("mouseout",i=>this.handleMouseOut(i)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){ct.isEventKey(e,"Esc")&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),pr(Ne,"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),ai(Ne,"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){ct.isEventKey(e,"Esc")&&this.handleMouseOut()}}LN.prototype.options_={children:["muteToggle","volumeControl"]};Se.registerComponent("VolumePanel",LN);class ON extends hr{constructor(e,s){super(e,s),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime])),this.show()):this.hide()}getSkipForwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;const s=this.player_.currentTime(),i=this.player_.liveTracker,r=i&&i.isLive()?i.seekableEnd():this.player_.duration();let n;s+this.skipTime<=r?n=s+this.skipTime:n=r,this.player_.currentTime(n)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}ON.prototype.controlText_="Skip Forward";Se.registerComponent("SkipForward",ON);class NN extends hr{constructor(e,s){super(e,s),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime])),this.show()):this.hide()}getSkipBackwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}
vendor: 6,086 bytes, line 446
446buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){const s=this.player_.currentTime(),i=this.player_.liveTracker,r=i&&i.isLive()&&i.seekableStart();let n;r&&s-this.skipTime<=r?n=r:s>=this.skipTime?n=s-this.skipTime:n=0,this.player_.currentTime(n)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}NN.prototype.controlText_="Skip Backward";Se.registerComponent("SkipBackward",NN);class RN extends Se{constructor(e,s){super(e,s),s&&(this.menuButton_=s.menuButton),this.focusedChild_=-1,this.on("keydown",i=>this.handleKeyDown(i)),this.boundHandleBlur_=i=>this.handleBlur(i),this.boundHandleTapClick_=i=>this.handleTapClick(i)}addEventListenerForItem(e){e instanceof Se&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof Se&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){typeof e=="string"&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){const s=this.addChild(e);s&&this.addEventListenerForItem(s)}createEl(){const e=this.options_.contentElType||"ul";this.contentEl_=St(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const s=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return s.appendChild(this.contentEl_),pr(s,"click",function(i){i.preventDefault(),i.stopImmediatePropagation()}),s}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){const s=e.relatedTarget||Ne.activeElement;if(!this.children().some(i=>i.el()===s)){const i=this.menuButton_;i&&i.buttonPressed_&&s!==i.el().firstChild&&i.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();const s=this.children();if(!Array.isArray(s))return;const i=s.filter(r=>r.el()===e.target)[0];if(!i)return;i.name()!=="CaptionSettingsMenuItem"&&this.menuButton_.focus()}}handleKeyDown(e){ct.isEventKey(e,"Left")||ct.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(ct.isEventKey(e,"Right")||ct.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){const s=this.children().slice();s.length&&s[0].hasClass("vjs-menu-title")&&s.shift(),s.length>0&&(e<0?e=0:e>=s.length&&(e=s.length-1),this.focusedChild_=e,s[e].el_.focus())}}Se.registerComponent("Menu",RN);class BS extends Se{constructor(e,s={}){super(e,s),this.menuButton_=new hr(e,s),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const i=hr.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+i,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const r=n=>this.handleClick(n);this.handleMenuKeyUp_=n=>this.handleMenuKeyUp(n),this.on(this.menuButton_,"tap",r),this.on(this.menuButton_,"click",r),this.on(this.menuButton_,"keydown",n=>this.handleKeyDown(n)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),pr(Ne,"keyup",this.handleMenuKeyUp_)}),this.on("mouseleave",n=>this.handleMouseLeave(n)),this.on("keydown",n=>this.handleSubmenuKeyDown(n))}update(){const e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const e=new RN(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const s=St("li",{className:"vjs-menu-title",textContent:gs(this.options_.title),tabIndex:-1}),i=new Se(this.player_,{el:s});e.addItem(i)}if(this.items=this.createItems(),this.items)for(let s=0;s<this.items.length;s++)e.addItem(this.items[s]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";this.options_.inline===!0?e+="-inline":e+="-popup";const s=hr.prototype.buildCSSClass();return`vjs-menu-button ${e} ${s} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return this.options_.inline===!0?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,s=this.menuButton_.el()){return this.menuButton_.controlText(e,s)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),ai(Ne,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){ct.isEventKey(e,"Esc")||ct.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),ct.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(ct.isEventKey(e,"Up")||ct.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))}handleMenuKeyUp(e){(ct.isEventKey(e,"Esc")||ct.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){(ct.isEventKey(e,"Esc")||ct.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),ct.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Li&&G4())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","fal
446se"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}Se.registerComponent("MenuButton",BS);class US extends BS{constructor(e,s){const i=s.tracks;if(super(e,s),this.items.length<=1&&this.hide(),!i)return;const r=Jt(this,this.update);i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),i.addEventListener("labelchange",r),this.player_.on("ready",r),this.player_.on("dispose",function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r),i.removeEventListener("labelchange",r)})}}Se.registerComponent("TrackButton",US);const xZ=["Tab","Esc","Up","Down","Right","Left"];class Df extends oy{constructor(e,s){super(e,s),this.selectable=s.selectable,this.isSelected_=s.selected||!1,this.multiSelectable=s.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(e,s,i){this.nonIconControl=!0;const r=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},s),i),n=St("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?r.appendChild(n):r.replaceChild(n,r.querySelector(".vjs-icon-placeholder")),r}handleKeyDown(e){xZ.some(s=>ct.isEventKey(e,s))||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}Se.registerComponent("MenuItem",Df);class If extends Df{constructor(e,s){const i=s.track,r=e.textTracks();s.label=i.label||i.language||"Unknown",s.selected=i.mode==="showing",super(e,s),this.track=i,this.kinds=(s.kinds||[s.kind||this.track.kind]).filter(Boolean);const n=(...o)=>{this.handleTracksChange.apply(this,o)},a=(...o)=>{this.handleSelectedLanguageChange.apply(this,o)};if(e.on(["loadstart","texttrackchange"],n),r.addEventListener("change",n),r.addEventListener("selectedlanguagechange",a),this.on("dispose",function(){e.off(["loadstart","texttrackchange"],n),r.removeEventListener("change",n),r.removeEventListener("selectedlanguagechange",a)}),r.onchange===void 0){let o;this.on(["tap","click"],function(){if(typeof Y.Event!="object")try{o=new Y.Event("change")}catch{}o||(o=Ne.createEvent("Event"),o.initEvent("change",!0,!0)),r.dispatchEvent(o)})}this.handleTracksChange()}handleClick(e){const s=this.track,i=this.player_.textTracks();if(super.handleClick(e),!!i)for(let r=0;r<i.length;r++){const n=i[r];this.kinds.indexOf(n.kind)!==-1&&(n===s?n.mode!=="showing"&&(n.mode="showing"):n.mode!=="disabled"&&(n.mode="disabled"))}}handleTracksChange(e){const s=this.track.mode==="showing";s!==this.isSelected_&&this.selected(s)}handleSelectedLanguageChange(e){if(this.track.mode==="showing"){const s=this.player_.cache_.selectedLanguage;if(s&&s.enabled&&s.language===this.track.language&&s.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}Se.registerComponent("TextTrackMenuItem",If);class MN extends If{constructor(e,s){s.track={player:e,kind:s.kind,kinds:s.kinds,default:!1,mode:"disabled"},s.kinds||(s.kinds=[s.kind]),s.label?s.track.label=s.label:s.track.label=s.kinds.join(" and ")+" off",s.selectable=!0,s.multiSelectable=!1,super(e,s)}handleTracksChange(e){const s=this.player().textTracks();let i=!0;for(let r=0,n=s.length;r<n;r++){const a=s[r];if(this.options_.kinds.indexOf(a.kind)>-1&&a.mode==="showing"){i=!1;break}}i!==this.isSelected_&&this.selected(i)}handleSelectedLanguageChange(e){const s=this.player().textTracks();let i=!0;for(let r=0,n=s.length;r<n;r++){const a=s[r];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&a.mode==="showing"){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}Se.registerComponent("OffTextTrackMenuItem",MN);class Lc extends US{constructor(e,s={}){s.tracks=e.textTracks(),super(e,s)}createItems(e=[],s=If){let i;this.label_&&(i=`${this.label_} off`),e.push(new MN(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;const r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let n=0;n<r.length;n++){const a=r[n];if(this.kinds_.indexOf(a.kind)>-1){const o=new s(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});o.addClass(`vjs-${a.kind}-menu-item`),e.push(o)}}return e}}Se.registerComponent("TextTrackButton",Lc);class FN extends Df{constructor(e,s){const i=s.track,r=s.cue,n=e.currentTime();s.selectable=!0,s.multiSelectable=!1,s.label=r.text,s.selected=r.startTime<=n&&n<r.endTime,super(e,s),this.track=i,this.cue=r}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}Se.registerComponent("ChaptersTrackMenuItem",FN);class $S extends Lc{constructor(e,s,i){super(e,s,i),this.setIcon("chapters"),this.selectCurrentItem_=()=>
vendor: 7,096 bytes, line 446
446{this.items.forEach(r=>{r.selected(this.track_.activeCues[0]===r.cue)})}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&e.track.kind!=="chapters")return;const s=this.findChaptersTrack();s!==this.track_?(this.setTrack(s),super.update()):(!this.items||s&&s.cues&&s.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const s=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);s&&s.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";const s=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);s&&s.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const e=this.player_.textTracks()||[];for(let s=e.length-1;s>=0;s--){const i=e[s];if(i.kind===this.kind_)return i}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(gs(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const e=[];if(!this.track_)return e;const s=this.track_.cues;if(!s)return e;for(let i=0,r=s.length;i<r;i++){const n=s[i],a=new FN(this.player_,{track:this.track_,cue:n});e.push(a)}return e}}$S.prototype.kind_="chapters";$S.prototype.controlText_="Chapters";Se.registerComponent("ChaptersButton",$S);class jS extends Lc{constructor(e,s,i){super(e,s,i),this.setIcon("audio-description");const r=e.textTracks(),n=Jt(this,this.handleTracksChange);r.addEventListener("change",n),this.on("dispose",function(){r.removeEventListener("change",n)})}handleTracksChange(e){const s=this.player().textTracks();let i=!1;for(let r=0,n=s.length;r<n;r++){const a=s[r];if(a.kind!==this.kind_&&a.mode==="showing"){i=!0;break}}i?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}jS.prototype.kind_="descriptions";jS.prototype.controlText_="Descriptions";Se.registerComponent("DescriptionsButton",jS);class HS extends Lc{constructor(e,s,i){super(e,s,i),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}HS.prototype.kind_="subtitles";HS.prototype.controlText_="Subtitles";Se.registerComponent("SubtitlesButton",HS);class qS extends If{constructor(e,s){s.track={player:e,kind:s.kind,label:s.kind+" settings",selectable:!1,default:!1,mode:"disabled"},s.selectable=!1,s.name="CaptionSettingsMenuItem",super(e,s),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+s.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}Se.registerComponent("CaptionSettingsMenuItem",qS);class VS extends Lc{constructor(e,s,i){super(e,s,i),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){const e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new qS(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}VS.prototype.kind_="captions";VS.prototype.controlText_="Captions";Se.registerComponent("CaptionsButton",VS);class BN extends If{createEl(e,s,i){const r=super.createEl(e,s,i),n=r.querySelector(".vjs-menu-item-text");return this.options_.track.kind==="captions"&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",r):n.appendChild(St("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),n.appendChild(St("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),r}}Se.registerComponent("SubsCapsMenuItem",BN);class zS extends Lc{constructor(e,s={}){super(e,s),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(gs(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new qS(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,BN),e}}zS.prototype.kinds_=["captions","subtitles"];zS.prototype.controlText_="Subtitles";Se.registerComponent("SubsCapsButton",zS);class UN extends Df{constructor(e,s){const i=s.track,r=e.audioTracks();s.label=i.label||i.language||"Unknown",s.selected=i.enabled,super(e,s),this.track=i,this.addClass(`vjs-${i.kind}-menu-item`);const n=(...a)=>{this.handleTracksChange.apply(this,a)};r.addEventListener("change",n),this.on("dispose",()=>{r.removeEventListener("change",n)})}createEl(e,s,i){const r=super.createEl(e,s,i),n=r.querySelector(".vjs-menu-item-text");return["main-desc","description"].indexOf(this.options_.track.kind)>=0&&(n.appendChild(St("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),n.appendChild(St("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const s=this.player_.audioTracks();for(let i=0;i<s.length;i++){const r=s[i];r!==this.track&&(r.enabled=r===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}Se.registerComponent("AudioTrackMenuItem",UN);class $N extends US{constructor(e,s={}){s.tracks=e.audioTracks(),super(e,s),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;const s=this.player_.audioTracks();for(let i=0;i<s.length;i++){const r=s[i];e.push(new UN(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return e}}$N.prototype.controlText_="Audio Track";Se.registerComponent("AudioTrackButton",$N);class GS extends Df{constructor(e,s){const i=s.rate,r=parseFloat(i,10);s.label=i,s.selected=r===e.playbackRate(),s.selectable=!0,s.multiSelectable=!1,super(e,s),this.label=i,this.rate=r,this.on(e,"ratechange",n=>this.update(n))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}GS.prototype.contentElType="button";Se.registerComponent("PlaybackRateMenuItem",GS);
446class jN extends BS{constructor(e,s){super(e,s),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",i=>this.updateVisibility(i)),this.on(e,"ratechange",i=>this.updateLabel(i)),this.on(e,"playbackrateschange",i=>this.handlePlaybackRateschange(i))}createEl(){const e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=St("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){const e=this.playbackRates(),s=[];for(let i=e.length-1;i>=0;i--)s.push(new GS(this.player(),{rate:e[i]+"x"}));return s}handlePlaybackRateschange(e){this.update()}playbackRates(){const e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}jN.prototype.controlText_="Playback Rate";Se.registerComponent("PlaybackRateMenuButton",jN);class HN extends Se{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",s={},i={}){return s.className||(s.className=this.buildCSSClass()),super.createEl(e,s,i)}}Se.registerComponent("Spacer",HN);class CZ extends HN{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:" "})}}Se.registerComponent("CustomControlSpacer",CZ);class qN extends Se{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}qN.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]};Se.registerComponent("ControlBar",qN);class VN extends Ic{constructor(e,s){super(e,s),this.on(e,"error",i=>{this.close(),this.open(i)})}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){const e=this.player().error();return e?this.localize(e.message):""}}VN.prototype.options_=Object.assign({},Ic.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0});Se.registerComponent("ErrorDisplay",VN);const fv="vjs-text-track-settings",Ww=["#000","Black"],Xw=["#00F","Blue"],Kw=["#0FF","Cyan"],Yw=["#0F0","Green"],Qw=["#F0F","Magenta"],Jw=["#F00","Red"],Zw=["#FFF","White"],eA=["#FF0","Yellow"],pv=["1","Opaque"],mv=["0.5","Semi-Transparent"],tA=["0","Transparent"],ll={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Ww,Zw,Jw,Yw,Xw,eA,Qw,Kw]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[pv,mv,tA]},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Zw,Ww,Jw,Yw,Xw,eA,Qw,Kw]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:t=>t==="1.00"?null:Number(t)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[pv,mv]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[tA,mv,pv]}};ll.windowColor.options=ll.backgroundColor.options;function zN(t,e){if(e&&(t=e(t)),t&&t!=="none")return t}
446function wZ(t,e){const s=t.options[t.options.selectedIndex].value;return zN(s,e)}function AZ(t,e,s){if(e){for(let i=0;i<t.options.length;i++)if(zN(t.options[i].value,s)===e){t.selectedIndex=i;break}}}class kZ extends Ic{constructor(e,s){s.temporary=!1,super(e,s),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.endDialog=St("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),s.persistTextTrackSettings===void 0&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.on(this.$(".vjs-done-button"),"click",()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),"click",()=>{this.setDefaults(),this.updateDisplay()}),Cu(ll,i=>{this.on(this.$(i.selector),"change",this.updateDisplay)}),this.options_.persistTextTrackSettings&&this.restoreSettings()}dispose(){this.endDialog=null,super.dispose()}createElSelect_(e,s="",i="label"){const r=ll[e],n=r.id.replace("%s",this.id_),a=[s,n].join(" ").trim(),o=`vjs_select_${cn()}`;return[`<${i} id="${n}"${i==="label"?` for="${o}" class="vjs-label"`:""}>`,this.localize(r.label),`</${i}>`,`<select aria-labelledby="${a}" id="${o}">`].concat(r.options.map(l=>{const c=n+"-"+l[1].replace(/\W+/g,"");return[`<option id="${c}" value="${l[0]}" `,`aria-labelledby="${a} ${c}">`,this.localize(l[1]),"</option>"].join("")})).concat("</select>").join("")}createElFgColor_(){const e=`captions-text-legend-${this.id_}`;return['<fieldset class="vjs-fg vjs-track-setting">',`<legend id="${e}">`,this.localize("Text"),"</legend>",'<span class="vjs-text-color">',this.createElSelect_("color",e),"</span>",'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")}createElBgColor_(){const e=`captions-background-${this.id_}`;return['<fieldset class="vjs-bg vjs-track-setting">',`<legend id="${e}">`,this.localize("Text Background"),"</legend>",'<span class="vjs-bg-color">',this.createElSelect_("backgroundColor",e),"</span>",'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")}createElWinColor_(){const e=`captions-window-${this.id_}`;return['<fieldset class="vjs-window vjs-track-setting">',`<legend id="${e}">`,this.localize("Caption Area Background"),"</legend>",'<span class="vjs-window-color">',this.createElSelect_("windowColor",e),"</span>",'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")}createElColors_(){return St("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})}createElFont_(){return St("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})}createElControls_(){const e=this.localize("restore all settings to the default values");return St("div",{className:"vjs-track-settings-controls",innerHTML:[`<button type="button" class="vjs-default-button" title="${e}">`,this.localize("Reset"),`<span class="vjs-control-text"> ${e}</span>`,"</button>",`<button type="button" class="vjs-done-button">${this.localize("Done")}</button>`].join("")})}content(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return $4(ll,(e,s,i)=>{const r=wZ(this.$(s.selector),s.parser);return r!==void 0&&(e[i]=r),e},{})}setValues(e){Cu(ll,(s,i)=>{AZ(this.$(s.selector),e[i],s.parser)})}setDefaults(){Cu(ll,e=>{const s=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=s})}restoreSettings(){let e;try{e=JSON.parse(Y.localStorage.getItem(fv))}catch(s){kt.warn(s)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?Y.localStorage.setItem(fv,JSON.stringify(e)):Y.localStorage.removeItem(fv)}catch(s){kt.warn(s)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}conditionalBlur_(){this.previouslyActiveEl_=null;const e=this.player_.controlBar,s=e&&e.subsCapsButton,i=e&&e.captionsButton;s?s.focus():i&&i.focus()}handleLanguagechange(){this.fill()}}Se.registerComponent("TextTrackSettings",kZ);class DZ extends Se{constructor(e,s){let i=s.ResizeObserver||Y.ResizeObserver;s.ResizeObserver===null&&(i=!1);const r=Yt({createEl:!i,reportTouchActivity:!1},s);super(e,r),this.ResizeObserver=s.ResizeObserver||Y.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=lN(()=>{this.resizeHandler()},100,!1,this),i?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el(
vendor: 16,629 bytes, lines 446-447
446))):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const n=this.debouncedHandler_;let a=this.unloadListener_=function(){ai(this,"resize",n),ai(this,"unload",a),a=null};pr(this.el_.contentWindow,"unload",a),pr(this.el_.contentWindow,"resize",n)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){!this.player_||!this.player_.trigger||this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}}Se.registerComponent("ResizeManager",DZ);const IZ={trackingThreshold:20,liveTolerance:15};class PZ extends Se{constructor(e,s){const i=Yt(IZ,s,{createEl:!1});super(e,i),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=r=>this.handlePlay(r),this.handleFirstTimeupdate_=r=>this.handleFirstTimeupdate(r),this.handleSeeked_=r=>this.handleSeeked(r),this.seekToLiveEdge_=r=>this.seekToLiveEdge(r),this.reset_(),this.on(this.player_,"durationchange",r=>this.handleDurationchange(r)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){const e=this.player_.seekable();if(!e||!e.length)return;const s=Number(Y.performance.now().toFixed(4)),i=this.lastTime_===-1?0:(s-this.lastTime_)/1e3;this.lastTime_=s,this.pastSeekEnd_=this.pastSeekEnd()+i;const r=this.liveCurrentTime(),n=this.player_.currentTime();let a=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-n)>this.options_.liveTolerance;(!this.timeupdateSeen_||r===1/0)&&(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,Lr),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const e=this.player_.seekable(),s=[];let i=e?e.length:0;for(;i--;)s.push(e.end(i));return s.length?s.sort()[s.length-1]:1/0}seekableStart(){const e=this.player_.seekable(),s=[];let i=e?e.length:0;for(;i--;)s.push(e.start(i));return s.length?s.sort()[0]:0}liveWindow(){const e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const e=this.seekableEnd();return this.lastSeekEnd_!==-1&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return typeof this.trackingInterval_=="number"}seekToLiveEdge(){this.seekedBehindLive_=!1,!this.atLiveEdge()&&(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}}Se.registerComponent("LiveTracker",PZ);class LZ extends Se{constructor(e,s){super(e,s),this.on("statechanged",i=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:St("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${cn()}`}),description:St("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${cn()}`})},St("div",{className:"vjs-title-bar"},{},j4(this.els))}updateDom_(){const e=this.player_.tech_,s=e&&e.el_,i={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(r=>{const n=this.state[r],a=this.els[r],o=i[r];sy(a),n&&No(a,n),s&&(s.removeAttribute(o),n&&s.setAttribute(o,a.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){const e=this.player_.tech_,s=e&&e.el_;s&&(s.removeAttribute("aria-labelledby"),s.removeAttribute("aria-describedby")),super.dispose(),this.els=null}}Se.registerComponent("TitleBar",LZ);const nT=t=>{const e=t.el();if(e.hasAttribute("src"))return t.triggerSourceset(e.src),!0;const s=t.$$("source"),i=[];let r="";if(!s.length)return!1;for(let n=0;n<s.length;n++){const a=s[n].src;a&&i.indexOf(a)===-1&&i.push(a)}return i.length?(i.length===1&&(r=i[0]),t.triggerSourceset(r),!0):!1},OZ=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(t){const e=Ne.createElement(this.nodeName.toLowerCase());e.innerHTML=t;const s=Ne.createDocumentFragment();for(;e.childNodes.length;)s.appendChild(e.childNodes[0]);return this.innerText="",Y.Element.prototype.appendChild.call(this,s),this.innerHTML}}),GN=(t,e)=>{let s={};for(let i=0;i<t.length&&(s=Object.getOwnPropertyDescriptor(t[i],e),!(s&&s.set&&s.get));i++);return s.enumerable=!0,s.configurable=!0,s},NZ=t=>GN([t.el(),Y.HTMLMediaElement.prototype,Y.Element.prototype,OZ],"innerHTML"),sA=function(t){const e=t.el();if(e.resetSourceWatch_)return;const s={},i=NZ(t),r=n=>(...a)=>{const o=n.apply(e,a);return nT(t),o};["append","appendChild","insertAdjacentHTML"].forEach(n=>{e[n]&&(s[n]=e[n],e[n]=r(s[n]))}),Object.defineProperty(e,"innerHTML",Yt(i,{set:r(i.set)})),e.resetSourceWatch_=()=>{e.resetSourceWatch_=null,Object.keys(s).forEach(n=>{e[n]=s[n]}),Object.defineProperty(e,"innerHTML",i)},t.one("sourceset",e.resetSourceWatch_)},RZ=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?_N(Y.Element.prototype.getAttribute.call(this,"src")):""},set(t){return Y.Element.prototype.setAttribute.call(this,"src",t),t}}),MZ=t=>GN([t.el(),Y.HTMLMediaElement.prototype,RZ],"src"),FZ=function(t){if(!t.featuresSourceset)return;const e=t.el();if(e.resetSourceset_)return;const s=MZ(t),i=e.setAttribute,r=e.load;Object.defineProperty(e,"src",Yt(s,{set:n=>{const a=s.set.call(e,n);return t.triggerSourceset(e.src),a}})),e.setAttribute=(n,a)=>{const o=i.call(e,n,a);return/src/i.test(n)&&t.triggerSourceset(e.src),o},e.load=()=>{const n=r.call(e);return nT(t)||(t.triggerSourceset(""),sA(t)),n},e.currentSrc?t.triggerSourceset(e.currentSrc):nT(t)||sA(t),e.resetSourceset_=()=>{e.resetSourceset_=null,e.load=r,e.setAttribute=i,Object.defineProperty(e,"src",s),e.resetSourceWatch_&&e.resetSourceWatch_()}};class He extends pt{constructor(e,s){super(e,s);const i=e.source;let r=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&this.el_.tagName==="VIDEO",i&&(this.el_.currentSrc!==i.src||e.tag&&e.tag.initNetworkState_===3)?this.setSource(i):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const n=this.el_.childNodes;let a=n.length;const o=[];for(;a--;){const l=n[a];l.nodeName.toLowerCase()==="track"&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(l),this.remoteTextTracks().addTrack(l.track),this.textTracks().addTrack(l.track),!r&&!this.el_.hasAttribute("crossorigin")&&ay(l.src)&&(r=!0)):o.push(l))}for(let l=0;l<o.length;l++)this.el_.removeChild(o[l])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&r&&kt.warn(`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
447This may prevent text tracks from loading.`),this.restoreMetadataTracksInIOSNativePlayer_(),(ef||Qg)&&e.nativeControlsForTouch===!0&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),He.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){FZ(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let s;const i=()=>{s=[];for(let n=0;n<e.length;n++){const a=e[n];a.kind==="metadata"&&s.push({track:a,storedMode:a.mode})}};i(),e.addEventListener("change",i),this.on("dispose",()=>e.removeEventListener("change",i));const r=()=>{for(let n=0;n<s.length;n++){const a=s[n];a.track.mode==="disabled"&&a.track.mode!==a.storedMode&&(a.track.mode=a.storedMode)}e.removeEventListener("change",r)};this.on("webkitbeginfullscreen",()=>{e.removeEventListener("change",i),e.removeEventListener("change",r),e.addEventListener("change",r)}),this.on("webkitendfullscreen",()=>{e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",r)})}overrideNative_(e,s){if(s!==this[`featuresNative${e}Tracks`])return;const i=e.toLowerCase();this[`${i}TracksListeners_`]&&Object.keys(this[`${i}TracksListeners_`]).forEach(r=>{this.el()[`${i}Tracks`].removeEventListener(r,this[`${i}TracksListeners_`][r])}),this[`featuresNative${e}Tracks`]=!s,this[`${i}TracksListeners_`]=null,this.proxyNativeTracksForType_(i)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const s=kr[e],i=this.el()[s.getterName],r=this[s.getterName]();if(!this[`featuresNative${s.capitalName}Tracks`]||!i||!i.addEventListener)return;const n={change:o=>{const l={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(l),e==="text"&&this[cc.remoteText.getterName]().trigger(l)},addtrack(o){r.addTrack(o.track)},removetrack(o){r.removeTrack(o.track)}},a=function(){const o=[];for(let l=0;l<r.length;l++){let c=!1;for(let d=0;d<i.length;d++)if(i[d]===r[l]){c=!0;break}c||o.push(r[l])}for(;o.length;)r.removeTrack(o.shift())};this[s.getterName+"Listeners_"]=n,Object.keys(n).forEach(o=>{const l=n[o];i.addEventListener(o,l),this.on("dispose",c=>i.removeEventListener(o,l))}),this.on("loadstart",a),this.on("dispose",o=>this.off("loadstart",a))}proxyNativeTracks_(){kr.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(e){const i=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(i,e),He.disposeMediaElement(e),e=i}else{e=Ne.createElement("video");const i=this.options_.tag&&go(this.options_.tag),r=Yt({},i);(!ef||this.options_.nativeControlsForTouch!==!0)&&delete r.controls,K4(e,Object.assign(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&ac(e,"preload",this.options_.preload),this.options_.disablePictureInPicture!==void 0&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);const s=["loop","muted","playsinline","autoplay"];for(let i=0;i<s.length;i++){const r=s[i],n=this.options_[r];typeof n<"u"&&(n?ac(e,r,r):ey(e,r),e[r]=n)}return e}handleLateInit_(e){if(e.networkState===0||e.networkState===3)return;if(e.readyState===0){let i=!1;const r=function(){i=!0};this.on("loadstart",r);const n=function(){i||this.trigger("loadstart")};this.on("loadedmetadata",n),this.ready(function(){this.off("loadstart",r),this.off("loadedmetadata",n),i||this.trigger("loadstart")});return}const s=["loadstart"];s.push("loadedmetadata"),e.readyState>=2&&s.push("loadeddata"),e.readyState>=3&&s.push("canplay"),e.readyState>=4&&s.push("canplaythrough"),this.ready(function(){s.forEach(function(i){this.trigger(i)},this)})}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&Jg?this.el_.fastSeek(e):this.el_.currentTime=e}catch(s){kt(s,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&qn&&Vn&&this.el_.currentTime===0){const e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},s=function(){"webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",s),this.on("dispose",()=>{this.off("webkitbeginfullscreen",s),this.off("webkitendfullscreen",e)})}supportsFullScreen(){return typeof this.el_.webkitEnterFullScreen=="function"}enterFullScreen(){const e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Dn(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(s){this.trigger("fullscreenerror",s)}},0);else try{e.webkitEnterFullScreen()}catch(s){this.trigger("fullscreenerror",s)}}exitFullScreen(){if(!this.el_.webkitDisplayingFullscreen){this.trigger("fullscreenerror",new Error("The video is not fullscreen"));return}this.el_.webkitExitFullScreen()}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(e===void 0)return this.el_.src;this.setSrc(e)}reset(){He.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,s,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,s,i):super.addTextTrack(e,s,i)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);const s=Ne.createElement("track");return e.kind&&(s.kind=e.kind),e.label&&(s.label=e.label),(e.language||e.srclang)&&(s.srclang=e.language||e.srclang),e.default&&(s.default=e.default),e.id&&(s.id=e.id),e.src&&(s.src=e.src),s}addRemoteTextTrack(e,s){const i=super.addRemoteTextTrack(e,s);return this.featuresNativeTextTracks&&this.el().appendChild(i),i}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){const s=this.$$("track");let i=s.length;for(;i--;)(e===s[i]||e===s[i].track)&&this.el().removeChild(s[i])}}getVideoPlaybackQuality(){if(typeof this.el().getVideoPlaybackQuality=="function")return this.el().getVideoPlaybackQuality();const e={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),Y.performance&&(e.creationTime=Y.performance.now()),e}}Xg(He,"TEST_VID",function(){if(!Ac())return;const t=Ne.createElement("video"),e=Ne.createElement("track");return e.kind="captions",e.srclang="en",e.label="English",t.appendChild(e),t});He.isSupported=function(){try{He.TEST_VID.volume=.5}catch{return!1}return!!(He.TEST_VID&&He.TEST_VID.canPlayType)};He.canPlayType=function(t){return He.TEST_VID.canPlayType(t)};He.canPlaySource=function(t,e){return He.canPlayType(t.type)};He.canControlVolume=function(){try{const t=He.TEST_VID.volume;
447He.TEST_VID.volume=t/2+.1;const e=t!==He.TEST_VID.volume;return e&&Li?(Y.setTimeout(()=>{He&&He.prototype&&(He.prototype.featuresVolumeControl=t!==He.TEST_VID.volume)}),!1):e}catch{return!1}};He.canMuteVolume=function(){try{const t=He.TEST_VID.muted;return He.TEST_VID.muted=!t,He.TEST_VID.muted?ac(He.TEST_VID,"muted","muted"):ey(He.TEST_VID,"muted","muted"),t!==He.TEST_VID.muted}catch{return!1}};He.canControlPlaybackRate=function(){if(qn&&Vn&&Kg<58)return!1;try{const t=He.TEST_VID.playbackRate;return He.TEST_VID.playbackRate=t/2+.1,t!==He.TEST_VID.playbackRate}catch{return!1}};He.canOverrideAttributes=function(){try{const t=()=>{};Object.defineProperty(Ne.createElement("video"),"src",{get:t,set:t}),Object.defineProperty(Ne.createElement("audio"),"src",{get:t,set:t}),Object.defineProperty(Ne.createElement("video"),"innerHTML",{get:t,set:t}),Object.defineProperty(Ne.createElement("audio"),"innerHTML",{get:t,set:t})}catch{return!1}return!0};He.supportsNativeTextTracks=function(){return Jg||Li&&Vn};He.supportsNativeVideoTracks=function(){return!!(He.TEST_VID&&He.TEST_VID.videoTracks)};He.supportsNativeAudioTracks=function(){return!!(He.TEST_VID&&He.TEST_VID.audioTracks)};He.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"];[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function([t,e]){Xg(He.prototype,t,()=>He[e](),!0)});He.prototype.featuresVolumeControl=He.canControlVolume();He.prototype.movingMediaElementInDOM=!Li;He.prototype.featuresFullscreenResize=!0;He.prototype.featuresProgressEvents=!0;He.prototype.featuresTimeupdateEvents=!0;He.prototype.featuresVideoFrameCallback=!!(He.TEST_VID&&He.TEST_VID.requestVideoFrameCallback);He.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),typeof t.load=="function"&&function(){try{t.load()}catch{}}()}};He.resetMediaElement=function(t){if(!t)return;const e=t.querySelectorAll("source");let s=e.length;for(;s--;)t.removeChild(e[s]);t.removeAttribute("src"),typeof t.load=="function"&&function(){try{t.load()}catch{}}()};["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(t){He.prototype[t]=function(){return this.el_[t]||this.el_.hasAttribute(t)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){He.prototype["set"+gs(t)]=function(e){this.el_[t]=e,e?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}});["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(t){He.prototype[t]=function(){return this.el_[t]}});["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(t){He.prototype["set"+gs(t)]=function(e){this.el_[t]=e}});["pause","load","play"].forEach(function(t){He.prototype[t]=function(){return this.el_[t]()}});pt.withSourceHandlers(He);He.nativeSourceHandler={};He.nativeSourceHandler.canPlayType=function(t){try{return He.TEST_VID.canPlayType(t)}catch{return""}};He.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return He.nativeSourceHandler.canPlayType(t.type);if(t.src){const s=IS(t.src);return He.nativeSourceHandler.canPlayType(`video/${s}`)}return""};He.nativeSourceHandler.handleSource=function(t,e,s){e.setSrc(t.src)};He.nativeSourceHandler.dispose=function(){};He.registerSourceHandler(He.nativeSourceHandler);pt.registerTech("Html5",He);const WN=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],gv={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},aT=["tiny","xsmall","small","medium","large","xlarge","huge"],xp={};aT.forEach(t=>{const e=t.charAt(0)==="x"?`x-${t.substring(1)}`:t;xp[t]=`vjs-layout-${e}`});const BZ={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class is extends Se{constructor(e,s,i){if(e.id=e.id||s.id||`vjs_video_${cn()}`,s=Object.assign(is.getTagSettings(e),s),s.initChildren=!1,s.createEl=!1,s.evented=!1,s.reportTouchActivity=!1,!s.language){const a=e.closest("[lang]");a&&(s.language=a.getAttribute("lang"))}if(super(null,s,i),this.boundDocumentFullscreenChange_=a=>this.documentFullscreenChange_(a),this.boundFullWindowOnEscKey_=a=>this.fullWindowOnEscKey(a),this.boundUpdateStyleEl_=a=>this.updateStyleEl_(a),this.boundApplyInitTime_=a=>this.applyInitTime_(a),this.boundUpdateCurrentBreakpoint_=a=>this.updateCurrentBreakpoint_(a),this.boundHandleTechClick_=a=>this.handleTechClick_(a),this.boundHandleTechDoubleClick_=a=>this.handleTechDoubleClick_(a),this.boundHandleTechTouchStart_=a=>this.handleTechTouchStart_(a),this.boundHandleTechTouchMove_=a=>this.handleTechTouchMove_(a),this.boundHandleTechTouchEnd_=a=>this.handleTechTouchEnd_(a),this.boundHandleTechTap_=a=>
vendor: 11,308 bytes, lines 447-456
447this.handleTechTap_(a),this.isFullscreen_=!1,this.log=B4(this.id_),this.fsApi_=Sm,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=e,this.tagAttributes=e&&go(e),this.language(this.options_.language),s.languages){const a={};Object.getOwnPropertyNames(s.languages).forEach(function(o){a[o.toLowerCase()]=s.languages[o]}),this.languages_=a}else this.languages_=is.prototype.options_.languages;this.resetCache_(),this.poster_=s.poster||"",this.controls_=!!s.controls,e.controls=!1,e.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],e.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),s.plugins&&Object.keys(s.plugins).forEach(a=>{if(typeof this[a]!="function")throw new Error(`plugin "${a}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),wS(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(pr(Ne,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const r=Yt(this.options_);if(s.plugins&&Object.keys(s.plugins).forEach(a=>{this[a](s.plugins[a])}),s.debug&&this.debug(!0),this.options_.playerOptions=r,this.middleware_=[],this.playbackRates(s.playbackRates),s.experimentalSvgIcons){const a=new Y.DOMParser().parseFromString(uZ,"image/svg+xml");if(a.querySelector("parsererror"))kt.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const o=a.documentElement;o.style.display="none",this.el_.appendChild(o),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio(e.nodeName.toLowerCase()==="audio"),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),ef&&this.addClass("vjs-touch-enabled"),Li||this.addClass("vjs-workinghover"),is.players[this.id_]=this;const n=Kb.split(".")[0];this.addClass(`vjs-v${n}`),this.userActive(!0),this.reportUserActivity(),this.one("play",a=>this.listenForUserActivity_(a)),this.on("keydown",a=>this.handleKeyDown(a)),this.on("languagechange",a=>this.handleLanguagechange(a)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){this.trigger("dispose"),this.off("dispose"),ai(Ne,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),ai(Ne,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),is.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),nZ(this),Ci.names.forEach(e=>{const s=Ci[e],i=this[s.getterName]();i&&i.off&&i.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e=this.tag,s,i=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player");const r=this.tag.tagName.toLowerCase()==="video-js";i?s=this.el_=e.parentNode:r||(s=this.el_=super.createEl("div"));const n=go(e);if(r){for(s=this.el_=e,e=this.tag=Ne.createElement("video");s.children.length;)e.appendChild(s.firstChild);Sh(s,"video-js")||El(s,"video-js"),s.appendChild(e),i=this.playerElIngest_=s,Object.keys(s).forEach(o=>{try{e[o]=s[o]}catch{}})}if(e.setAttribute("tabindex","-1"),n.tabindex="-1",Vn&&Yg&&(e.setAttribute("role","application"),n.role="application"),e.removeAttribute("width"),e.removeAttribute("height"),"width"in n&&delete n.width,"height"in n&&delete n.height,Object.getOwnPropertyNames(n).forEach(function(o){r&&o==="class"||s.setAttribute(o,n[o]),r&&e.setAttribute(o,n[o])}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=s.player=this,this.addClass("vjs-paused"),Y.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=aN("vjs-styles-dimensions");const o=Ao(".vjs-styles-defaults"),l=Ao("head");l.insertBefore(this.styleEl_,o?o.nextSibling:l.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);const a=e.getElementsByTagName("a");for(let o=0;o<a.length;o++){const l=a.item(o);El(l,"vjs-hidden"),l.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&&!i&&e.parentNode.insertBefore(s,e),Qb(e,s),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=s,s}crossOrigin(e){if(typeof e>"u")return this.techGet_("crossOrigin");if(e!==null&&e!=="anonymous"&&e!=="use-credentials"){kt.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`);return}this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,s){const i=e+"_";if(s===void 0)return this[i]||0;if(s===""||s==="auto"){this[i]=void 0,this.updateStyleEl_();return}const r=parseFloat(s);if(isNaN(r)){kt.error(`Improper value "${s}" supplied for for ${e}`);return}this[i]=r,this.updateStyleEl_()}fluid(e){if(e===void 0)return!!this.fluid_;this.fluid_=!!e,Ba(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),RJ(this,()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(e===void 0)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(e){if(e===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(Y.VIDEOJS_NO_DYNAMIC_STYLE===!0){const o=typeof this.width_=="number"?this.width_:this.options_.width,l=typeof this.height_=="number"?this.height_:this.options_.height,c=this.tech_&&this.tech_.el();c&&(o>=0&&(c.width=o),l>=0&&(c.height=l));return}let e,s,i,r;this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?i=this.aspectRatio_:this.videoWidth()>0?i=this.videoWidth()+":"+this.videoHeight():i="16:9";const n=i.split(":"),a=n[1]/n[0];this.width_!==void 0?e=this.width_:this.height_!==void 0?e=this.height_/a:e=this.videoWidth()||300,this.height_!==void 0?s=this.height_:s=e*a,/^[^a-zA-Z]/.test(this.id())?r="dimensions-"+this.id():r=this.id()+"-dimensions",this.addClass(r),oN(this.styleEl_,`
448      .${r} {
449        width: ${e}px;
450        height: ${s}px;
451      }
452
453      .${r}.vjs-fluid:not(.vjs-audio-only-mode) {
454        padding-top: ${a*100}%;
455      }
456    `)}loadTech_(e,s){this.tech_&&this.unloadTech_();const i=gs(e),r=e.charAt(0).toLowerCase()+e.slice(1);i!=="Html5"&&this.tag&&(pt.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;let n=this.autoplay();(typeof this.autoplay()=="string"||this.autoplay()===!0&&this.options_.normalizeAutoplay)&&(n=!1);const a={source:s,autoplay:n,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${r}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};Ci.names.forEach(l=>{const c=Ci[l];a[c.getterName]=this[c.privateName]}),Object.assign(a,this.options_[i]),Object.assign(a,this.options_[r]),Object.assign(a,this.options_[e.toLowerCase()]),this.tag&&(a.tag=this.tag),s&&s.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);const o=pt.getTech(e);if(!o)throw new Error(`No Tech named '${i}' exists! '${i}' should be registered using videojs.registerTech()'`);this.tech_=new o(a),this.tech_.ready(Jt(this,this.handleTechReady_),!0),Fw.jsonToTextTracks(this.textTracksJson_||[],this.tech_),WN.forEach(l=>{this.on(this.tech_,l,c=>this[`handleTech${gs(l)}_`](c))}),Object.keys(gv).forEach(l=>{this.on(this.tech_,l,c=>{if(this.tech_.playbackRate()===0&&this.tech_.seeking()){this.queuedCallbacks_.push({callback:this[`handleTech${gv[l]}_`].bind(this),event:c});return}this[`handleTech${gv[l]}_`](c)})}),this.on(this.tech_,"loadstart",l=>this.handleTechLoadStart_(l)),this.on(this.tech_,"sourceset",l=>this.handleTechSourceset_(l)),this.on(this.tech_,"waiting",l=>this.handleTechWaiting_(l)),this.on(this.tech_,"ended",l=>this.handleTechEnded_(l)),this.on(this.tech_,"seeking",l=>this.handleTechSeeking_(l)),this.on(this.tech_,"play",l=>this.handleTechPlay_(l)),this.on(this.tech_,"pause",l=>this.handleTechPause_(l)),this.on(this.tech_,"durationchange",l=>this.handleTechDurationChange_(l)),this.on(this.tech_,"fullscreenchange",(l,c)=>this.handleTechFullscreenChange_(l,c)),this.on(this.tech_,"fullscreenerror",(l,c)=>this.handleTechFullscreenError_(l,c)),this.on(this.tech_,"enterpictureinpicture",l=>this.handleTechEnterPictureInPicture_(l)),this.on(this.tech_,"leavepictureinpicture",l=>this.handleTechLeavePictureInPicture_(l)),this.on(this.tech_,"error",l=>this.handleTechError_(l)),this.on(this.tech_,"posterchange",l=>this.handleTechPosterChange_(l)),this.on(this.tech_,"textdata",l=>this.handleTechTextData_(l)),this.on(this.tech_,"ratechange",l=>this.handleTechRateChange_(l)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&(i!=="Html5"||!this.tag)&&Qb(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){Ci.names.forEach(e=>{const s=Ci[e];this[s.privateName]=this[s.getterName]()}),this.textTracksJson_=Fw.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return e===void 0&&kt.warn(`Using the tech directly can be dangerous. I hope you know 
456what you're doing.
457See https://github.com/videojs/video.js/issues/2617 for more info.
458`),this.tech_}version(){return{"video.js":Kb}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(this.autoplay()===!0&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||typeof e!="string")return;const s=()=>{const r=this.muted();this.muted(!0);const n=()=>{this.muted(r)};this.playTerminatedQueue_.push(n);const a=this.play();if(xh(a))return a.catch(o=>{throw n(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${o||""}`)})};let i;if(e==="any"&&!this.muted()?(i=this.play(),xh(i)&&(i=i.catch(s))):e==="muted"&&!this.muted()?i=s():i=this.play(),!!xh(i))return i.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})})}updateSourceCaches_(e=""){let s=e,i="";typeof s!="string"&&(s=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],s&&!i&&(i=lZ(this,s)),this.cache_.source=Yt({},e,{src:s,type:i});const r=this.cache_.sources.filter(l=>l.src&&l.src===s),n=[],a=this.$$("source"),o=[];for(let l=0;l<a.length;l++){const c=go(a[l]);n.push(c),c.src&&c.src===s&&o.push(c.src)}o.length&&!r.length?this.cache_.sources=n:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=s}handleTechSourceset_(e){if(!this.changingSrc_){let s=n=>this.updateSourceCaches_(n);const i=this.currentSource().src,r=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(s=()=>{}),s(r),e.src||this.tech_.any(["sourceset","loadstart"],n=>{if(n.type==="sourceset")return;const a=this.techGet_("currentSrc");this.lastSource_.tech=a,this.updateSourceCaches_(a)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(e===void 0)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&this.cache_.lastPlaybackRate===0&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),s=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",s))};this.on("timeupdate",s)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}
vendor: 28,098 bytes, line 458
458handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){this.controls_&&(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.click===void 0||this.options_.userActions.click!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.click=="function"?this.options_.userActions.click.call(this,e):this.paused()?Dn(this.play()):this.pause())}handleTechDoubleClick_(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),s=>s.contains(e.target))||(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.doubleClick===void 0||this.options_.userActions.doubleClick!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.doubleClick=="function"?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){const s=e.target.player;if(s&&s!==this)return;const i=this.el();let r=Ne[this.fsApi_.fullscreenElement]===i;!r&&i.matches&&(r=i.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}handleTechFullscreenChange_(e,s){s&&(s.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(s.isFullscreen))}handleTechFullscreenError_(e,s){this.trigger("fullscreenerror",s)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){const e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,s){this.ready(function(){if(e in iZ)return tZ(this.middleware_,this.tech_,e,s);if(e in Hw)return jw(this.middleware_,this.tech_,e,s);try{this.tech_&&this.tech_[e](s)}catch(i){throw kt(i),i}},!0)}techGet_(e){if(!(!this.tech_||!this.tech_.isReady_)){if(e in sZ)return eZ(this.middleware_,this.tech_,e);if(e in Hw)return jw(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(s){throw this.tech_[e]===void 0?(kt(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,s),s):s.name==="TypeError"?(kt(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,s),this.tech_.isReady_=!1,s):(kt(s),s)}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=Dn){this.playCallbacks_.push(e);const s=!!(!this.changingSrc_&&(this.src()||this.currentSrc())),i=!!(Jg||Li);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!s){this.waitToPlay_=n=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!s&&i&&this.load();return}const r=this.techGet_("play");i&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),r===null?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)}runPlayTerminatedQueue_(){const e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(s){s()})}runPlayCallbacks_(e){const s=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],s.forEach(function(i){i(e)})}pause(){this.techCall_("pause")}paused(){return this.techGet_("paused")!==!1}played(){return this.techGet_("played")||rn(0,0)}scrubbing(e){if(typeof e>"u")return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(e){if(e===void 0)return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime;if(e<0&&(e=0),!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),this.one("canplay",this.boundApplyInitTime_);return}this.techCall_("setCurrentTime",e),this.cache_.initTime=0,isFinite(e)&&(this.cache_.currentTime=Number(e))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(e===void 0)return this.cache_.duration!==void 0?this.cache_.duration:NaN;e=parseFloat(e),e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return(!e||!e.length)&&(e=rn(0,0)),e}seekable(){let e=this.techGet_("seekable");return(!e||!e.length)&&(e=rn(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return gN(this.buffered(),this.duration())}bufferedEnd(){const e=this.buffered(),s=this.duration();let i=e.end(e.length-1);return i>s&&(i=s),i}volume(e){let s;if(e!==void 0){s=Math.max(0,Math.min(1,e)),this.cache_.volume=s,this.techCall_("setVolume",s),s>0&&this.lastVolume_(s);return}return s=parseFloat(this.techGet_("volume")),isNaN(s)?1:s}muted(e){if(e!==void 0){this.techCall_("setMuted",e);return}return this.techGet_("muted")||!1}defaultMuted(e){return e!==void 0&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(e!==void 0&&e!==0){this.cache_.lastVolume=e;return}return this.cache_.lastVolume}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(e!==void 0){const s=this.isFullscreen_;this.isFullscreen_=!!e,this.isFullscreen_!==s&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_();return}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();const s=this;return new Promise((i,r)=>{function n(){s.off("fullscreenerror",o),s.off("fullscreenchange",a)}function a(){n(),i()}function o(c,d){n(),r(d)}s.one("fullscreenchange",a),s.one("fullscreenerror",o);const l=s.requestFullscreenHelper_(e);l&&(l.then(n,n),l.then(i,r))})}requestFullscreenHelper_(e){let s;if(this.fsApi_.prefixed||(s=this.options_.fullscreen&&this.options_.fullscreen.options||{},e!==void 0&&(s=e)),this.fsApi_.requestFullscreen){const i=this.el_[this.fsApi_.requestFullscreen](s);return i&&i.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),i}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const e=this;return new Promise((s,i)=>{function r(){e.off("fullscreenerror",a),e.off("fullscreenchange",n)}function n(){r(),s()}function a(l,c){r(),i(c)}e.one("fullscreenchange",n),e.one("fullscreenerror",a);const o=e.exitFullscreenHelper_();o&&(o.then(r,r),o.then(s,i))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=Ne[this.fsApi_.exitFullscreen]();return e&&Dn(e.then(()=>this.isFullscreen(!1))),e}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=Ne.documentElement.style.overflow,pr(Ne,"keydown",this.boundFullWindowOnEscKey_),Ne.documentElement.style.overflow="hidden",El(Ne.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){ct.isEventKey(e,"Esc")&&this.isFullscreen()===!0&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,ai(Ne,"keydown",this.boundFullWindowOnEscKey_),Ne.documentElement.style.overflow=this.docOrigOverflow,Zg(Ne.body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(e===void 0)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){if(e!==void 0){this.isInPictureInPicture_=!!e,this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&Y.documentPictureInPicture){const e=Ne.createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(St("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),Y.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(s=>(iN(s),this.el_.parentNode.insertBefore(e,this.el_),s.document.body.appendChild(this.el_),s.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger("enterpictureinpicture"),s.addEventListener("pagehide",i=>{const r=i.target.querySelector(".video-js");e.parentNode.replaceChild(r,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),s))}return"pictureInPictureEnabled"in Ne&&this.disablePictureInPicture()===!1?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){if(Y.documentPictureInPicture&&Y.documentPictureInPicture.window)return Y.documentPictureInPicture.window.close(),Promise.resolve();if("pictureInPictureEnabled"in Ne)return Ne.exitPictureInPicture()}handleKeyDown(e){const{userActions:s}=this.options_;!s||!s.hotkeys||(i=>{const r=i.tagName.toLowerCase();return i.isContentEditable?!0:r==="input"?["button","checkbox","hidden","radio","reset","submit"].indexOf(i.type)===-1:["textarea"].indexOf(r)!==-1})(this.el_.ownerDocument.activeElement)||(typeof s.hotkeys=="function"?s.hotkeys.call(this,e):this.handleHotkeys(e))}handleHotkeys(e){const s=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:i=a=>ct.isEventKey(a,"f"),muteKey:r=a=>ct.isEventKey(a,"m"),playPauseKey:n=a=>ct.isEventKey(a,"k")||ct.isEventKey(a,"Space")}=s;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();const a=Se.getComponent("FullscreenToggle");Ne[this.fsApi_.fullscreenEnabled]!==!1&&a.prototype.handleClick.call(this,e)}else r.call(this,e)?(e.preventDefault(),e.stopPropagation(),Se.getComponent("MuteToggle").prototype.handleClick.call(this,e)):n.call(this,e)&&(e.preventDefault(),e.stopPropagation(),Se.getComponent("PlayToggle").prototype.handleClick.call(this,e))}canPlayType(e){let s;for(let i=0,r=this.options_.techOrder;i<r.length;i++){const n=r[i];let a=pt.getTech(n);if(a||(a=Se.getComponent(n)),!a){kt.error(`The "${n}" tech is undefined. Skipped browser support check for that tech.`);continue}if(a.isSupported()&&(s=a.canPlayType(e),s))return s}return""}selectSource(e){const s=this.options_.techOrder.map(o=>[o,pt.getTech(o)]).filter(([o,l])=>l?l.isSupported():(kt.error(`The "${o}" tech is undefined. Skipped browser support check for that tech.`),!1)),i=function(o,l,c){let d;return o.some(p=>l.some(_=>{if(d=c(p,_),d)return!0})),d};let r;const n=o=>(l,c)=>o(c,l),a=([o,l],c)=>{if(l.canPlaySource(c,this.options_[o.toLowerCase()]))return{source:c,tech:o}};return this.options_.sourceOrder?r=i(e,s,n(a)):r=i(s,e,a),r||!1}handleSrc_(e,s){if(typeof e>"u")return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const i=TN(e);if(!i.length){this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);return}if(this.changingSrc_=!0,s||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),JJ(this,i[0],(r,n)=>{if(this.middleware_=n,s||(this.cache_.sources=i),this.updateSourceCaches_(r),this.src_(r)){if(i.length>1)return this.handleSrc_(i.slice(1));this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),this.triggerReady();return}ZJ(n,this.tech_)}),i.length>1){const r=()=>{this.error(null),this.handleSrc_(i.slice(1),!0)},n=()=>{this.off("error",r)};this.one("error",r),this.one("playing",n),this.resetRetryOnError_=()=>{this.off("error",r),this.off("playing",n)}}}src(e){return this.handleSrc_(e,!1)}src_(e){const s=this.selectSource([e]);return s?hN(s.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(s.tech,s.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1):!0}load(){if(this.tech_&&this.tech_.vhs){this.src(this.currentSource());return}this.techCall_("load")}reset(){if(this.paused())this.doReset_();else{const e=this.play();Dn(e.then(()=>this.doReset_()))}}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),Ba(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:s,progressControl:i,remainingTimeDisplay:r}=this.controlBar||{},{seekBar:n}=i||{};e&&e.updateContent(),s&&s.updateContent(),r&&r.updateContent(),n&&(n.update(),n.loadProgressBar&&n.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const e=this.currentSource(),s=[];return Object.keys(e).length!==0&&s.push(e),this.cache_.sources||s}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){if(e!==void 0){this.techCall_("setPreload",e),this.options_.preload=e;return}return this.techGet_("preload")}autoplay(e){if(e===void 0)return this.options_.autoplay||!1;let s;typeof e=="string"&&/(any|play|muted)/.test(e)||e===!0&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_(typeof e=="string"?e:"play"),s=!1):e?this.options_.autoplay=!0:this.options_.autoplay=!1,s=typeof s>"u"?this.options_.autoplay:s,this.tech_&&this.techCall_("setAutoplay",s)}playsinline(e){return e!==void 0&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){if(e!==void 0){this.techCall_("setLoop",e),this.options_.loop=e;return}return this.techGet_("loop")}poster(e){if(e===void 0)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(e){if(e===void 0)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(e===void 0)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(e){if(e===void 0)return this.error_||null;if(wo("beforeerror").forEach(s=>{const i=s(this,e);if(!(Hn(i)&&!Array.isArray(i)||typeof i=="string"||typeof i=="number"||i===null)){this.log.error("please return a value that MediaError expects in beforeerror hooks");return}e=i}),this.options_.suppressNotSupportedError&&e&&e.code===4){const s=function(){this.error(e)};this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],s),this.one("loadstart",function(){this.off(["click","touchstart"],s)});return}if(e===null){this.error_=null,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new Ii(e),this.addClass("vjs-error"),kt.error(`(CODE:${this.error_.code} ${Ii.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),wo("error").forEach(s=>s(this,this.error_))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(e===void 0)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_){this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");return}this.tech_&&this.tech_.one("mousemove",function(s){s.stopPropagation(),s.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,s,i;const r=Jt(this,this.reportUserActivity),n=function(p){(p.screenX!==s||p.screenY!==i)&&(s=p.screenX,i=p.screenY,r())},a=function(){r(),this.clearInterval(e),e=this.setInterval(r,250)},o=function(p){r(),this.clearInterval(e)};this.on("mousedown",a),this.on("mousemove",n),this.on("mouseup",o),this.on("mouseleave",o);const l=this.getChild("controlBar");l&&!Li&&!qn&&(l.on("mouseenter",function(p){this.player().options_.inactivityTimeout!==0&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),l.on("mouseleave",function(p){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r);let c;const d=function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(c);const p=this.options_.inactivityTimeout;p<=0||(c=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},p))};this.setInterval(d,250)}playbackRate(e){if(e!==void 0){this.techCall_("setPlaybackRate",e);return}return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1}defaultPlaybackRate(e){return e!==void 0?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(e!==void 0){this.isAudio_=!!e;return}return!!this.isAudio_}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const e=this.children(),s=this.getChild("ControlBar"),i=s&&s.currentHeight();e.forEach(r=>{r!==s&&r.el_&&!r.hasClass("vjs-hidden")&&(r.hide(),this.audioOnlyCache_.hiddenChildren.push(r))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(i),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(e=>e.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if(typeof e!="boolean"||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){const s=[];return this.isInPictureInPicture()&&s.push(this.exitPictureInPicture()),this.isFullscreen()&&s.push(this.exitFullscreen()),this.audioPosterMode()&&s.push(this.audioPosterMode(!1)),Promise.all(s).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){return typeof e!="boolean"||e===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=e,e?this.audioOnlyMode()?this.audioOnlyMode(!1).then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.disablePosterModeUI_()}))}addTextTrack(e,s,i){if(this.tech_)return this.tech_.addTextTrack(e,s,i)}addRemoteTextTrack(e,s){if(this.tech_)return this.tech_.addRemoteTextTrack(e,s)}removeRemoteTextTrack(e={}){let{track:s}=e;if(s||(s=e),this.tech_)return this.tech_.removeRemoteTextTrack(s)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(e===void 0)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Ba(this)&&this.trigger("languagechange"))}languages(){return Yt(is.prototype.options_.languages,this.languages_)}toJSON(){const e=Yt(this.options_),s=e.tracks;e.tracks=[];for(let i=0;i<s.length;i++){let r=s[i];r=Yt(r),r.player=void 0,e.tracks[i]=r}return e}createModal(e,s){s=s||{},s.content=e||"";const i=new Ic(this,s);return this.addChild(i),i.on("dispose",()=>{this.removeChild(i)}),i.open(),i}updateCurrentBreakpoint_(){if(!this.responsive())return;const e=this.currentBreakpoint(),s=this.currentWidth();for(let i=0;i<aT.length;i++){const r=aT[i],n=this.breakpoints_[r];if(s<=n){if(e===r)return;e&&this.removeClass(xp[e]),this.addClass(xp[r]),this.breakpoint_=r;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return e===void 0?Object.assign(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=Object.assign({},BZ,e),this.updateCurrentBreakpoint_(),Object.assign(this.breakpoints_))}responsive(e){if(e===void 0)return this.responsive_;e=!!e;const s=this.responsive_;if(e!==s)return this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return xp[this.breakpoint_]||""}loadMedia(e,s){if(!e||typeof e!="object")return;const i=this.crossOrigin();this.reset(),this.cache_.media=Yt(e);const{artist:r,artwork:n,description:a,poster:o,src:l,textTracks:c,title:d}=this.cache_.media;!n&&o&&(this.cache_.media.artwork=[{src:o,type:km(o)}]),i&&this.crossOrigin(i),l&&this.src(l),o&&this.poster(o),Array.isArray(c)&&c.forEach(p=>this.addRemoteTextTrack(p,!1)),this.titleBar&&this.titleBar.update({title:d,description:a||r||""}),this.ready(s)}getMedia(){if(!this.cache_.media){const e=this.poster(),s=this.currentSources(),i=Array.prototype.map.call(this.remoteTextTracks(),n=>({kind:n.kind,label:n.label,language:n.language,src:n.src})),r={src:s,textTracks:i};return e&&(r.poster=e,r.artwork=[{src:r.poster,type:km(r.poster)}]),r}return Yt(this.cache_.media)}static getTagSettings(e){const s={sources:[],tracks:[]},i=go(e),r=i["data-setup"];if(Sh(e,"vjs-fill")&&(i.fill=!0),Sh(e,"vjs-fluid")&&(i.fluid=!0),r!==null){const[n,a]=TY(r||"{}");n&&kt.error(n),Object.assign(i,a)}if(Object.assign(s,i),e.hasChildNodes()){const n=e.childNodes;for(let a=0,o=n.length;a<o;a++){const l=n[a],c=l.nodeName.toLowerCase();c==="source"?s.sources.push(go(l)):c==="track"&&s.tracks.push(go(l))}}return s}debug(e){if(e===void 0)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){if(e===void 0)return this.cache_.playbackRates;Array.isArray(e)&&e.every(s=>typeof s=="number")&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}}Ci.names.forEach(function(t){const e=Ci[t];is.prototype[e.getterName]=function(){return this.tech_?this.tech_[e.getterName]():(this[e.privateName]=this[e.privateName]||new e.ListClass,this[e.privateName])}});is.prototype.crossorigin=is.prototype.crossOrigin;is.players={};const zd=Y.navigator;is.prototype.options_={techOrder:pt.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:zd&&(zd.languages&&zd.languages[0]||zd.userLanguage||zd.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,enableSmoothSeeking:!1};WN.forEach(function(t){is.prototype[`handleTech${gs(t)}_`]=function(){return this.trigger(t)}});Se.registerComponent("Player",is);const Dm="plugin",ku="activePlugins_",ou={},Im=t=>ou.hasOwnProperty(t),Cp=t=>Im(t)?ou[t]:void 0,XN=(t,e)=>{t[ku]=t[ku]||{},t[ku][e]=!0},Pm=(t,e,s)=>{const i=(s?"before":"")+"pluginsetup";t.trigger(i,e),t.trigger(i+":"+e.name,e)},UZ=function(t,e){const s=function(){Pm(this,{name:t,plugin:e,instance:null},!0);const i=e.apply(this,arguments);return XN(this,t),Pm(this,{name:t,plugin:e,instance:i}),i};return Object.keys(e).forEach(function(i){s[i]=e[i]}),s},iA=(t,e)=>(e.prototype.name=t,function(...s){Pm(this,{name:t,plugin:e,instance:null},!0);const i=new e(this,...s);return this[t]=()=>i,Pm(this,i.getEventHash()),i});class Ki{constructor(e){if(this.constructor===Ki)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),wS(this),delete this.trigger,dN(this,this.constructor.defaultState),XN(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,s={}){return Dc(this.eventBusEl_,e,this.getEventHash(s))}handleStateChanged(e){}dispose(){const{name:e,player:s}=this;this.trigger("dispose"),this.off(),s.off("dispose",this.dispose),s[ku][e]=!1,this.player=this.state=null,s[e]=iA(e,ou[e])}static isBasic(e){const s=typeof e=="string"?Cp(e):e;return typeof s=="function"&&!Ki.prototype.isPrototypeOf(s.prototype)}static registerPlugin(e,s){if(typeof e!="string")throw new Error(`Illegal plugin name, "${e}", must be a string, was ${typeof e}.`);if(Im(e))kt.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);else if(is.prototype.hasOwnProperty(e))throw new Error(`Illegal plugin name, "${e}", cannot share a name with an existing player method!`);if(typeof s!="function")throw new Error(`Illegal plugin for "${e}", must be a function, was ${typeof s}.`);
458return ou[e]=s,e!==Dm&&(Ki.isBasic(s)?is.prototype[e]=UZ(e,s):is.prototype[e]=iA(e,s)),s}static deregisterPlugin(e){if(e===Dm)throw new Error("Cannot de-register base plugin.");Im(e)&&(delete ou[e],delete is.prototype[e])}static getPlugins(e=Object.keys(ou)){let s;return e.forEach(i=>{const r=Cp(i);r&&(s=s||{},s[i]=r)}),s}static getPluginVersion(e){const s=Cp(e);return s&&s.VERSION||""}}Ki.getPlugin=Cp;Ki.BASE_PLUGIN_NAME=Dm;Ki.registerPlugin(Dm,Ki);is.prototype.usingPlugin=function(t){return!!this[ku]&&this[ku][t]===!0};is.prototype.hasPlugin=function(t){return!!Im(t)};function $Z(t,e){let s=!1;return function(...i){return s||kt.warn(t),s=!0,e.apply(this,i)}}function fn(t,e,s,i){return $Z(`${e} is deprecated and will be removed in ${t}.0; please use ${s} instead.`,i)}const KN=t=>t.indexOf("#")===0?t.slice(1):t;function pe(t,e,s){let i=pe.getPlayer(t);if(i)return e&&kt.warn(`Player "${t}" is already initialised. Options will not be applied.`),s&&i.ready(s),i;const r=typeof t=="string"?Ao("#"+KN(t)):t;if(!kc(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");const n="getRootNode"in r&&r.getRootNode()instanceof Y.ShadowRoot?r.getRootNode():r.ownerDocument.body;(!r.ownerDocument.defaultView||!n.contains(r))&&kt.warn("The element supplied is not included in the DOM"),e=e||{},e.restoreEl===!0&&(e.restoreEl=(r.parentNode&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),wo("beforesetup").forEach(o=>{const l=o(r,Yt(e));if(!Hn(l)||Array.isArray(l)){kt.error("please return an object in beforesetup hooks");return}e=Yt(e,l)});const a=Se.getComponent("Player");return i=new a(r,e,s),wo("setup").forEach(o=>o(i)),i}pe.hooks_=La;pe.hooks=wo;pe.hook=TJ;pe.hookOnce=SJ;pe.removeHook=F4;if(Y.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&Ac()){let t=Ao(".vjs-styles-defaults");if(!t){t=aN("vjs-styles-defaults");const e=Ao("head");e&&e.insertBefore(t,e.firstChild),oN(t,`
459      .video-js {
460        width: 300px;
461        height: 150px;
462      }
463
464      .vjs-fluid:not(.vjs-audio-only-mode) {
465        padding-top: 56.25%
466      }
467    `)}}Zb(1,pe);pe.VERSION=Kb;pe.options=is.prototype.options_;pe.getPlayers=()=>is.players;pe.getPlayer=t=>{const e=is.players;let s;if(typeof t=="string"){const i=KN(t),r=e[i];if(r)return r;s=Ao("#"+i)}else s=t;if(kc(s)){const{player:i,playerId:r}=s;if(i||e[r])return i||e[r]}};pe.getAllPlayers=()=>Object.keys(is.players).map(t=>is.players[t]).filter(Boolean);pe.players=is.players;pe.getComponent=Se.getComponent;pe.registerComponent=(t,e)=>(pt.isTech(e)&&kt.warn(`The ${t} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),Se.registerComponent.call(Se,t,e));pe.getTech=pt.getTech;pe.registerTech=pt.registerTech;pe.use=QJ;Object.defineProperty(pe,"middleware",{value:{},writeable:!1,enumerable:!0});Object.defineProperty(pe.middleware,"TERMINATOR",{value:Am,writeable:!1,enumerable:!0});pe.browser=wJ;pe.obj=CJ;pe.mergeOptions=fn(9,"videojs.mergeOptions","videojs.obj.merge",Yt);pe.defineLazyProperty=fn(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",Xg);pe.bind=fn(9,"videojs.bind","native Function.prototype.bind",Jt);pe.registerPlugin=Ki.registerPlugin;pe.deregisterPlugin=Ki.deregisterPlugin;pe.plugin=(t,e)=>(kt.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Ki.registerPlugin(t,e));pe.getPlugins=Ki.getPlugins;pe.getPlugin=Ki.getPlugin;pe.getPluginVersion=Ki.getPluginVersion;pe.addLanguage=function(t,e){return t=(""+t).toLowerCase(),pe.options.languages=Yt(pe.options.languages,{[t]:e}),pe.options.languages[t]};pe.log=kt;pe.createLogger=B4;pe.time=$J;pe.createTimeRange=fn(9,"videojs.createTimeRange","videojs.time.createTimeRanges",rn);pe.createTimeRanges=fn(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",rn);pe.formatTime=fn(9,"videojs.formatTime","videojs.time.formatTime",Ll);pe.setFormatTime=fn(9,"videojs.setFormatTime","videojs.time.setFormatTime",pN);pe.resetFormatTime=fn(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",mN);pe.parseUrl=fn(9,"videojs.parseUrl","videojs.url.parseUrl",DS);pe.isCrossOrigin=fn(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",ay);pe.EventTarget=Or;pe.any=CS;pe.on=pr;pe.one=ry;pe.off=ai;pe.trigger=Dc;pe.xhr=E4;pe.TextTrack=Af;pe.AudioTrack=vN;pe.VideoTrack=bN;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(t=>{pe[t]=function(){return kt.warn(`videojs.${t}() is deprecated; use videojs.dom.${t}() instead`),rN[t].apply(null,arguments)}});pe.computedStyle=fn(9,"videojs.computedStyle","videojs.dom.computedStyle",lc);pe.dom=rN;pe.fn=NJ;pe.num=yZ;pe.str=BJ;pe.url=KJ;/*! @name videojs-contrib-quality-levels @version 4.0.0 @license Apache-2.0 */class jZ{constructor(e){let s=this;return s.id=e.id,s.label=s.id,s.width=e.width,s.height=e.height,s.bitrate=e.bandwidth,s.frameRate=e.frameRate,s.enabled_=e.enabled,Object.defineProperty(s,"enabled",{get(){return s.enabled_()},set(i){s.enabled_(i)}}),s}}class Lm extends pe.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get(){return e.selectedIndex_}}),Object.defineProperty(e,"length",{get(){return e.levels_.length}}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let s=this.getQualityLevelById(e.id);if(s)return s;const i=this.levels_.length;return s=new jZ(e),""+i in this||Object.defineProperty(this,i,{get(){return this.levels_[i]}}),this.levels_.push(s),this.trigger({qualityLevel:s,type:"addqualitylevel"}),s}removeQualityLevel(e){let s=null;for(let i=0,r=this.length;i<r;i++)if(this[i]===e){s=this.levels_.splice(i,1)[0],this.selectedIndex_===i?this.selectedIndex_=-1:this.selectedIndex_>i&&this.selectedIndex_--;break}return s&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),s}getQualityLevelById(e){for(let s=0,i=this.length;s<i;s++){const r=this[s];if(r.id===e)return r}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}Lm.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const t in Lm.prototype.allowedEvents_)Lm.prototype["on"+t]=null;var YN="4.0.0";const HZ=function(t,e){const s=t.qualityLevels,i=new Lm,r=function(){i.dispose(),t.qualityLevels=s,t.off("dispose",r)};return t.on("dispose",r),t.qualityLevels=()=>i,t.qualityLevels.VERSION=YN,i},QN=function(t){return HZ(this,pe.obj.merge({},t))};pe.registerPlugin("qualityLevels",QN);QN.VERSION=YN;/*! @name @videojs/http-streaming @version 3.10.0 @license Apache-2.0 */const ji=Vg,Om=(t,e)=>e&&e.responseURL&&t!==e.responseURL?e.responseURL:t,Mr=t=>pe.log.debug?pe.log.debug.bind(pe,"VHS:",`${t} >`):function(){};function Ft(...t){const e=pe.obj||pe;return(e.merge||e.mergeOptions).apply(e,t)}function Qi(...t){const e=pe.time||pe;return(e.createTimeRanges||e.createTimeRanges).apply(e,t)}const In=1/30,Pn=In*3,JN=function(t,e){const s=[];let i;if(t&&t.length)for(i=0;i<t.length;
vendor: 17,811 bytes, line 467
467i++)e(t.start(i),t.end(i))&&s.push([t.start(i),t.end(i)]);return Qi(s)},lu=function(t,e){return JN(t,function(s,i){return s-Pn<=e&&i+Pn>=e})},np=function(t,e){return JN(t,function(s){return s-In>=e})},qZ=function(t){if(t.length<2)return Qi();const e=[];for(let s=1;s<t.length;s++){const i=t.end(s-1),r=t.start(s);e.push([i,r])}return Qi(e)},VZ=function(t,e){let s=null,i=null,r=0;const n=[],a=[];if(!t||!t.length||!e||!e.length)return Qi();let o=t.length;for(;o--;)n.push({time:t.start(o),type:"start"}),n.push({time:t.end(o),type:"end"});for(o=e.length;o--;)n.push({time:e.start(o),type:"start"}),n.push({time:e.end(o),type:"end"});for(n.sort(function(l,c){return l.time-c.time}),o=0;o<n.length;o++)n[o].type==="start"?(r++,r===2&&(s=n[o].time)):n[o].type==="end"&&(r--,r===1&&(i=n[o].time)),s!==null&&i!==null&&(a.push([s,i]),s=null,i=null);return Qi(a)},ZN=t=>{const e=[];if(!t||!t.length)return"";for(let s=0;s<t.length;s++)e.push(t.start(s)+" => "+t.end(s));return e.join(", ")},zZ=function(t,e,s=1){return((t.length?t.end(t.length-1):0)-e)/s},hl=t=>{const e=[];for(let s=0;s<t.length;s++)e.push({start:t.start(s),end:t.end(s)});return e},GZ=function(t,e){if(t===e)return!1;if(!t&&e||!e&&t||t.length!==e.length)return!0;for(let s=0;s<t.length;s++)if(t.start(s)!==e.start(s)||t.end(s)!==e.end(s))return!0;return!1},rA=function(t){if(!(!t||!t.length||!t.end))return t.end(t.length-1)},WS=function(t,e){let s=0;if(!t||!t.length)return s;for(let i=0;i<t.length;i++){const r=t.start(i),n=t.end(i);if(!(e>n)){if(e>r&&e<=n){s+=n-e;continue}s+=n-r}}return s},XS=(t,e)=>{if(!e.preload)return e.duration;let s=0;return(e.parts||[]).forEach(function(i){s+=i.duration}),(e.preloadHints||[]).forEach(function(i){i.type==="PART"&&(s+=t.partTargetDuration)}),s},oT=t=>(t.segments||[]).reduce((e,s,i)=>(s.parts?s.parts.forEach(function(r,n){e.push({duration:r.duration,segmentIndex:i,partIndex:n,part:r,segment:s})}):e.push({duration:s.duration,segmentIndex:i,partIndex:null,segment:s,part:null}),e),[]),eR=t=>{const e=t.segments&&t.segments.length&&t.segments[t.segments.length-1];return e&&e.parts||[]},tR=({preloadSegment:t})=>{if(!t)return;const{parts:e,preloadHints:s}=t;let i=(s||[]).reduce((r,n)=>r+(n.type==="PART"?1:0),0);return i+=e&&e.length?e.length:0,i},sR=(t,e)=>{if(e.endList)return 0;if(t&&t.suggestedPresentationDelay)return t.suggestedPresentationDelay;const s=eR(e).length>0;return s&&e.serverControl&&e.serverControl.partHoldBack?e.serverControl.partHoldBack:s&&e.partTargetDuration?e.partTargetDuration*3:e.serverControl&&e.serverControl.holdBack?e.serverControl.holdBack:e.targetDuration?e.targetDuration*3:0},WZ=function(t,e){let s=0,i=e-t.mediaSequence,r=t.segments[i];if(r){if(typeof r.start<"u")return{result:r.start,precise:!0};if(typeof r.end<"u")return{result:r.end-r.duration,precise:!0}}for(;i--;){if(r=t.segments[i],typeof r.end<"u")return{result:s+r.end,precise:!0};if(s+=XS(t,r),typeof r.start<"u")return{result:s+r.start,precise:!0}}return{result:s,precise:!1}},XZ=function(t,e){let s=0,i,r=e-t.mediaSequence;for(;r<t.segments.length;r++){if(i=t.segments[r],typeof i.start<"u")return{result:i.start-s,precise:!0};if(s+=XS(t,i),typeof i.end<"u")return{result:i.end-s,precise:!0}}return{result:-1,precise:!1}},iR=function(t,e,s){if(typeof e>"u"&&(e=t.mediaSequence+t.segments.length),e<t.mediaSequence)return 0;const i=WZ(t,e);if(i.precise)return i.result;const r=XZ(t,e);return r.precise?r.result:i.result+s},rR=function(t,e,s){if(!t)return 0;if(typeof s!="number"&&(s=0),typeof e>"u"){if(t.totalDuration)return t.totalDuration;if(!t.endList)return Y.Infinity}return iR(t,e,s)},Ch=function({defaultDuration:t,durationList:e,startIndex:s,endIndex:i}){let r=0;if(s>i&&([s,i]=[i,s]),s<0){for(let n=s;n<Math.min(0,i);n++)r+=t;s=0}for(let n=s;n<i;n++)r+=e[n].duration;return r},nR=function(t,e,s,i){if(!t||!t.segments)return null;if(t.endList)return rR(t);if(e===null)return null;e=e||0;let r=iR(t,t.mediaSequence+t.segments.length,e);return s&&(i=typeof i=="number"?i:sR(null,t),r-=i),Math.max(0,r)},KZ=function(t,e,s){const i=e||0;let r=nR(t,e,!0,s);return r===null?Qi():(r<i&&(r=i),Qi(i,r))},YZ=function({playlist:t,currentTime:e,startingSegmentIndex:s,startingPartIndex:i,startTime:r,exactManifestTimings:n}){let a=e-r;const o=oT(t);let l=0;for(let c=0;c<o.length;c++){const d=o[c];if(s===d.segmentIndex&&!(typeof i=="number"&&typeof d.partIndex=="number"&&i!==d.partIndex)){l=c;break}}if(a<0){if(l>0)for(let c=l-1;c>=0;c--){const d=o[c];if(a+=d.duration,n){if(a<0)continue}else if(a+In<=0)continue;return{partIndex:d.partIndex,segmentIndex:d.segmentIndex,startTime:r-Ch({defaultDuration:t.targetDuration,durationList:o,startIndex:l,endIndex:c})}}return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:e}}if(l<0){for(let c=l;c<0;c++)if(a-=t.targetDuration,a<0)return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:e};l=0}for(let c=l;c<o.length;c++){const d=o[c];a-=d.duration;const p=d.duration>In,_=a===0,b=p&&a+In>=0;if(!((_||b)&&c!==o.length-1)){if(n){if(a>0)continue}else if(a-In>=0)continue;return{partIndex:d.partIndex,segmentIndex:d.segmentIndex,startTime:r+Ch({defaultDuration:t.targetDuration,durationList:o,startIndex:l,endIndex:c})}}}return{segmentIndex:o[o.length-1].segmentIndex,partIndex:o[o.length-1].partIndex,startTime:e}},aR=function(t){return t.excludeUntil&&t.excludeUntil>Date.now()},KS=function(t){return t.excludeUntil&&t.excludeUntil===1/0},uy=function(t){const e=aR(t);return!t.disabled&&!e},QZ=function(t){return t.disabled},JZ=function(t){for(let e=0;e<t.segments.length;e++)if(t.segments[e].key)return!0;return!1},oR=function(t,e){return e.attributes&&e.attributes[t]},ZZ=function(t,e,s,i=0){return oR("BANDWIDTH",s)?(t*s.attributes.BANDWIDTH-i*8)/e:NaN},lT=(t,e)=>{if(t.playlists.length===1)return!0;const s=e.attributes.BANDWIDTH||Number.MAX_VALUE;return t.playlists.filter(i=>uy(i)?(i.attributes.BANDWIDTH||0)<s:!1).length===0},YS=(t,e)=>!t&&!e||!t&&e||t&&!e?!1:!!(t===e||t.id&&e.id&&t.id===e.id||t.resolvedUri&&e.resolvedUri&&t.resolvedUri===e.resolvedUri||t.uri&&e.uri&&t.uri===e.uri),nA=function(t,e){const s=t&&t.mediaGroups&&t.mediaGroups.AUDIO||{};let i=!1;for(const r in s){for(const n in s[r])if(i=e(s[r][n]),i)break;if(i)break}return!!i},Pf=t=>{if(!t||!t.playlists||!t.playlists.length)return nA(t,e=>e.playlists&&e.playlists.length||e.uri);for(let e=0;e<t.playlists.length;e++){const s=t.playlists[e],i=s.attributes&&s.attributes.CODECS;if(!(i&&i.split(",").every(r=>C4(r))||nA(t,r=>YS(s,r))))return!1}return!0};var Vi={liveEdgeDelay:sR,duration:rR,seekable:KZ,getMediaInfoForTime:YZ,isEnabled:uy,isDisabled:QZ,isExcluded:aR,isIncompatible:KS,playlistEnd:nR,isAes:JZ,hasAttribute:oR,estimateSegmentRequestTime:ZZ,isLowestEnabledRendition:lT,isAudioOnly:Pf,playlistMatch:YS,segmentDurationWithParts:XS};const{log:lR}=pe,Du=(t,e)=>`${t}-${e}`,uR=(t,e,s)=>`placeholder-uri-${t}-${e}-${s}`,eee=({onwarn:t,oninfo:e,manifestString:s,customTagParsers:i=[],customTagMappers:r=[],llhls:n})=>{const a=new jY;t&&a.on("warn",t),e&&a.on("info",e),i.forEach(c=>a.addParser(c)),r.forEach(c=>a.addTagMapper(c)),a.push(s),a.end();const o=a.manifest;if(n||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(c){o.hasOwnProperty(c)&&delete o[c]}),o.segments&&o.segments.forEach(function(c){["parts","preloadHints"].forEach(function(d){c.hasOwnProperty(d)&&delete c[d]})})),!o.targetDuration){let c=10;o.segments&&o.segments.length&&(c=o.segments.reduce((d,p)=>Math.max(d,p.duration),0)),t&&t({message:`manifest has no targetDuration defaulting to ${c}`}),o.targetDuration=c}const l=eR(o);if(l.length&&!o.partTargetDuration){const c=l.reduce((d,p)=>Math.max(d,p.duration),0);t&&(t({message:`manifest has no partTargetDuration defaulting to ${c}`}),lR.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),o.partTargetDuration=c}return o},Oc=(t,e)=>{t.mediaGroups&&["AUDIO","SUBTITLES"].forEach(s=>{if(t.mediaGroups[s])for(const i in t.mediaGroups[s])for(const r in t.mediaGroups[s][i]){const n=t.mediaGroups[s][i][r];e(n,s,i,r)}})},cR=({playlist:t,uri:e,id:s})=>{t.id=s,t.playlistErrors_=0,e&&(t.uri=e),t.attributes=t.attributes||{}},tee=t=>{let e=t.playlists.length;for(;e--;){const s=t.playlists[e];cR({playlist:s,id:Du(e,s.uri)}),s.resolvedUri=ji(t.uri,s.uri),t.playlists[s.id]=s,t.playlists[s.uri]=s,s.attributes.BANDWIDTH||lR.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},see=t=>{Oc(t,e=>{e.uri&&(e.resolvedUri=ji(t.uri,e.uri))})},iee=(t,e)=>{const s=Du(0,e),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:Y.location.href,resolvedUri:Y.location.href,playlists:[{uri:e,id:s,resolvedUri:e,attributes:{}}]};return i.playlists[s]=i.playlists[0],i.playlists[e]=i.playlists[0],i},dR=(t,e,s=uR)=>{t.uri=e;for(let r=0;r<t.playlists.length;r++)if(!t.playlists[r].uri){const n=`placeholder-uri-${r}`;t.playlists[r].uri=n}const i=Pf(t);Oc(t,(r,n,a,o)=>{if(!r.playlists||!r.playlists.length){if(i&&n==="AUDIO"&&!r.uri)for(let l=0;l<t.playlists.length;l++){const c=t.playlists[l];if(c.attributes&&c.attributes.AUDIO&&c.attributes.AUDIO===a)return}r.playlists=[sn({},r)]}r.playlists.forEach(function(l,c){const d=s(n,a,o,l),p=Du(c,d);l.uri?l.resolvedUri=l.resolvedUri||ji(t.uri,l.uri):(l.uri=c===0?d:p,l.resolvedUri=l.uri),l.id=l.id||p,l.attributes=l.attributes||{},t.playlists[l.id]=l,t.playlists[l.uri]=l})}),tee(t),see(t)};class aA{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(this.offset_!==null||!e.length)return;const[s]=e;s.programDateTime!==void 0&&(this.offset_=s.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;const[s]=e,i=s.startDate.getTime();this.trimProcessedDateRanges_(i),this.pendingDateRanges_=e.reduce((r,n)=>(r.set(n.id,n),r),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(this.offset_===null)return[];const e={},s=[];this.pendingDateRanges_.forEach((i,r)=>{if(!this.processedDateRanges_.has(r)&&(i.startTime=i.startDate.getTime()/1e3-this.offset_,i.processDateRange=()=>this.processDateRange(i),s.push(i),!!i.class))if(e[i.class]){const n=e[i.class].push(i);i.classListIndex=n-1}else e[i.class]=[i],i.classListIndex=0});for(const i of s){const r=e[i.class]||[];i.endDate?i.endTime=i.endDate.getTime()/1e3-this.offset_:i.endOnNext&&r[i.classListIndex+1]?i.endTime=r[i.classListIndex+1].startTime:i.duration?i.endTime=i.startTime+i.duration:i.plannedDuration?i.endTime=i.startTime+i.plannedDuration:i.endTime=i.startTime}return s}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach((s,i)=>{s.startDate.getTime()<e&&this.processedDateRanges_.delete(i)})}}const{EventTarget:ree}=pe,nee=(t,e)=>{if(e.endList||!e.serverControl)return t;const s={};if(e.serverControl.canBlockReload){const{preloadSegment:i}=e;let r=e.mediaSequence+e.segments.length;if(i){const n=i.parts||[],a=tR(e)-1;a>-1&&a!==n.length-1&&(s._HLS_part=a),(a>-1||n.length)&&r--}s._HLS_msn=r}if(e.serverControl&&e.serverControl.canSkipUntil&&(s._HLS_skip=e.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(s).length){const i=new Y.URL(t);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(r){s.hasOwnProperty(r)&&i.searchParams.set(r,s[r])}),t=i.toString()}return t},aee=(t,e)=>{if(!t)return e;const s=Ft(t,e);if(t.preloadHints&&!e.preloadHints&&delete s.preloadHints,t.parts&&!e.parts)delete s.parts;else if(t.parts&&e.parts)for(let i=0;i<e.parts.length;i++)t.parts&&t.parts[i]&&(s.parts[i]=Ft(t.parts[i],e.parts[i]));return!t.skipped&&e.skipped&&(s.skipped=!1),t.preload&&!e.preload&&(s.preload=!1),s},oee=(t,e,s)=>{const i=t.slice(),r=e.slice();s=s||0;const n=[];let a;for(let o=0;o<r.length;o++){const l=i[o+s],c=r[o];l?(a=l.map||a,n.push(aee(l,c))):(a&&!c.map&&(c.map=a),n.push(c))}return n},hR=(t,e)=>{!t.resolvedUri&&t.uri&&(t.resolvedUri=ji(e,t.uri)),t.key&&!t.key.resolvedUri&&(t.key.resolvedUri=ji(e,t.key.uri)),t.map&&!t.map.resolvedUri&&(t.map.resolvedUri=ji(e,t.map.uri)),t.map&&t.map.key&&!t.map.key.resolvedUri&&(t.map.key.resolvedUri=ji(e,t.map.key.uri)),t.parts&&t.parts.length&&t.parts.forEach(s=>{s.resolvedUri||(s.resolvedUri=ji(e,s.uri))}),t.preloadHints&&t.preloadHints.length&&t.preloadHints.forEach(s=>{s.resolvedUri||(s.resolvedUri=ji(e,s.uri))})},fR=function(t){const e=t.segments||[],s=t.preloadSegment;if(s&&s.parts&&s.parts.length){if(s.preloadHints){for(let i=0;i<s.preloadHints.length;i++)if(s.preloadHints[i].type==="MAP")return e}s.duration=t.targetDuration,s.preload=!0,e.push(s)}return e},pR=(t,e)=>t===e||t.segments&&e.segments&&t.segments.length===e.segments.length&&t.endList===e.endList&&t.mediaSequence===e.mediaSequence&&t.preloadSegment===e.preloadSegment,uT=(t,e,s=pR)=>{const i=Ft(t,{}),r=i.playlists[e.id];if(!r||s(r,e))return null;e.segments=fR(e);const n=Ft(r,e);if(n.preloadSegment&&!e.preloadSegment&&delete n.preloadSegment,r.segments){if(e.skip){e.segments=e.segments||[];for(let a=0;a<e.skip.skippedSegments;a++)e.segments.unshift({skipped:!0})}n.segments=oee(r.segments,e.segments,e.mediaSequence-r.mediaSequence)}n.segments.forEach(a=>{hR(a,n.resolvedUri)});for(let a=0;a<i.playlists.length;a++)i.playlists[a].id===e.id&&(i.playlists[a]=n);return i.playlists[e.id]=n,i.playlists[e.uri]=n,Oc(t,(a,o,l,c)=>{if(a.playlists)for(let d=0;d<a.playlists.length;d++)e.id===a.playlists[d].id&&(a.playlists[d]=n)}),i},cT=(t,e)=>{const s=t.segments||[],i=s[s.length-1],r=i&&i.parts&&i.parts[i.parts.length-1],n=r&&r.duration||i&&i.duration;return e&&n?n*1e3:(t.partTargetDuration||t.targetDuration||10)*500};class uu extends ree{constructor(e,s,i={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=Mr("PlaylistLoader");const{withCredentials:r=!1}=i;this.src=e,this.vhs_=s,this.withCredentials=r,this.addDateRangesToTextTrack_=i.addDateRangesToTextTrack;const n=s.options_;this.customTagParsers=n&&n.customTagParsers||[],this.customTagMappers=n&&n.customTagMappers||[],this.llhls=n&&n.llhls,this.dateRangesStorage_=new aA,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);const s=this.dateRangesStorage_.getDateRangesToProcess();!s.length||!this.addDateRangesToTextTrack_||this.addDateRangesToTextTrack_(s)}handleMediaupdatetimeout_(){if(this.state!=="HAVE_METADATA")return;const e=this.media();let s=ji(this.main.uri,e.uri);this.llhls&&(s=nee(s,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:s,withCredentials:this.withCredentials},(i,r)=>{if(this.request){if(i)return this.playlistRequestError(this.request,this.media(),"HAVE_METADATA");this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})}})}playlistRequestError(e,s,i){const{uri:r,id:n}=s;this.request=null,i&&(this.state=i),this.error={playlist:this.main.playlists[n],status:e.status,message:`HLS playlist request error at URL: ${r}.`,responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")}parseManifest_({url:e,manifestString:s}){return eee({onwarn:({message:i})=>this.logger_(`m3u8-parser warn for ${e}: ${i}`),oninfo:({message:i})=>this.logger_(`m3u8-parser info for ${e}: ${i}`),manifestString:s,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}haveMetadata({playlistString:e,playlistObject:s,url:i,id:r}){this.request=null,this.state="HAVE_METADATA";const n=s||this.parseManifest_({url:i,manifestString:e});n.lastRequest=Date.now(),cR({playlist:n,uri:i,id:r});const a=uT(this.main,n);this.targetDuration=n.partTargetDuration||n.targetDuration,this.pendingMedia_=null,a?(this.main=a,this.media_=this.main.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(cT(this.media(),!!a)),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),Y.clearTimeout(this.mediaUpdateTimeout),Y.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new aA,this.off()}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,s){if(!e)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);if(typeof e=="string"){if(!this.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(Y.clearTimeout(this.finalRenditionTimeout),s){const a=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=Y.setTimeout(this.media.bind(this,e,!1),a);return}const i=this.state,r=!this.media_||e.id!==this.media_.id,n=this.main.playlists[e.id];if(n&&n.endList||e.endList&&e.segments.length){this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,r&&(this.trigger("mediachanging"),i==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange"));return}if(this.updateMediaUpdateTimeout_(cT(e,!0)),!!r){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(a,o)=>
467{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=Om(e.resolvedUri,o),a)return this.playlistRequestError(this.request,e,i);this.haveMetadata({playlistString:o.responseText,url:e.uri,id:e.id}),i==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}}pause(){this.mediaUpdateTimeout&&(Y.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),this.state==="HAVE_NOTHING"&&(this.started=!1),this.state==="SWITCHING_MEDIA"?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MAIN_MANIFEST":this.state==="HAVE_CURRENT_METADATA"&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(Y.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const s=this.media();if(e){const i=s?(s.partTargetDuration||s.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=Y.setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},i);return}if(!this.started){this.start();return}s&&!s.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(Y.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),!(!this.media()||this.media().endList)&&(this.mediaUpdateTimeout=Y.setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)},e))}start(){if(this.started=!0,typeof this.src=="object"){this.src.uri||(this.src.uri=Y.location.href),this.src.resolvedUri=this.src.uri,setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);return}this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(e,s)=>{if(!this.request)return;if(this.request=null,e)return this.error={status:s.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:s.responseText,code:2},this.state==="HAVE_NOTHING"&&(this.started=!1),this.trigger("error");this.src=Om(this.src,s);const i=this.parseManifest_({manifestString:s.responseText,url:this.src});this.setupInitialPlaylist(i)})}srcUri(){return typeof this.src=="string"?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists){this.main=e,dR(this.main,this.srcUri()),e.playlists.forEac
vendor: 10,095 bytes, lines 467-468
467h(i=>{i.segments=fR(i),i.segments.forEach(r=>{hR(r,i.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.main.playlists[0]);return}const s=this.srcUri()||Y.location.href;this.main=iee(e,s),this.haveMetadata({playlistObject:e,url:s,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,s){const i=this.main,r=e.ID;let n=i.playlists.length;for(;n--;){const a=i.playlists[n];if(a.attributes["PATHWAY-ID"]===r){const o=a.resolvedUri,l=a.id;if(s){const c=this.createCloneURI_(a.resolvedUri,e),d=Du(r,c),p=this.createCloneAttributes_(r,a.attributes),_=this.createClonePlaylist_(a,d,e,p);i.playlists[n]=_,i.playlists[d]=_,i.playlists[c]=_}else i.playlists.splice(n,1);delete i.playlists[l],delete i.playlists[o]}}this.updateOrDeleteCloneMedia(e,s)}updateOrDeleteCloneMedia(e,s){const i=this.main,r=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(n=>{if(!(!i.mediaGroups[n]||!i.mediaGroups[n][r])){for(const a in i.mediaGroups[n])if(a===r){for(const o in i.mediaGroups[n][a])i.mediaGroups[n][a][o].playlists.forEach((l,c)=>{const d=i.playlists[l.id],p=d.id,_=d.resolvedUri;delete i.playlists[p],delete i.playlists[_]});delete i.mediaGroups[n][a]}}}),s&&this.createClonedMediaGroups_(e)}addClonePathway(e,s={}){const i=this.main,r=i.playlists.length,n=this.createCloneURI_(s.resolvedUri,e),a=Du(e.ID,n),o=this.createCloneAttributes_(e.ID,s.attributes),l=this.createClonePlaylist_(s,a,e,o);i.playlists[r]=l,i.playlists[a]=l,i.playlists[n]=l,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){const s=e.ID,i=e["BASE-ID"],r=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(n=>{if(!(!r.mediaGroups[n]||r.mediaGroups[n][s]))for(const a in r.mediaGroups[n]){if(a===i)r.mediaGroups[n][s]={};else continue;for(const o in r.mediaGroups[n][a]){const l=r.mediaGroups[n][a][o];r.mediaGroups[n][s][o]=sn({},l);const c=r.mediaGroups[n][s][o],d=this.createCloneURI_(l.resolvedUri,e);c.resolvedUri=d,c.uri=d,c.playlists=[],l.playlists.forEach((p,_)=>{const b=r.playlists[p.id],T=uR(n,s,o),y=Du(s,T);if(b&&!r.playlists[y]){const x=this.createClonePlaylist_(b,y,e),A=x.resolvedUri;r.playlists[y]=x,r.playlists[A]=x}c.playlists[_]=this.createClonePlaylist_(p,y,e)})}}})}createClonePlaylist_(e,s,i,r){const n=this.createCloneURI_(e.resolvedUri,i),a={resolvedUri:n,uri:n,id:s};return e.segments&&(a.segments=[]),r&&(a.attributes=r),Ft(e,a)}createCloneURI_(e,s){const i=new URL(e);i.hostname=s["URI-REPLACEMENT"].HOST;const r=s["URI-REPLACEMENT"].PARAMS;for(const n of Object.keys(r))i.searchParams.set(n,r[n]);return i.href}createCloneAttributes_(e,s){const i={"PATHWAY-ID":e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(r=>{s[r]&&(i[r]=e)}),i}getKeyIdSet(e){if(e.contentProtection){const s=new Set;for(const i in e.contentProtection){const r=e.contentProtection[i].attributes.keyId;r&&s.add(r.toLowerCase())}return s}}}const{xhr:lee}=pe,dT=function(t,e,s,i){const r=t.responseType==="arraybuffer"?t.response:t.responseText;!e&&r&&(t.responseTime=Date.now(),t.roundTripTime=t.responseTime-t.requestTime,t.bytesReceived=r.byteLength||r.length,t.bandwidth||(t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3))),s.headers&&(t.responseHeaders=s.headers),e&&e.code==="ETIMEDOUT"&&(t.timedout=!0),!e&&!t.aborted&&s.statusCode!==200&&s.statusCode!==206&&s.statusCode!==0&&(e=new Error("XHR Failed with a response of: "+(t&&(r||t.responseText)))),i(e,t)},uee=(t,e)=>{if(!t||!t.size)return;let s=e;return t.forEach(i=>{s=i(s)}),s},cee=(t,e,s,i)=>{!t||!t.size||t.forEach(r=>{r(e,s,i)})},mR=function(){const t=function e(s,i){s=Ft({timeout:45e3},s);const r=e.beforeRequest||pe.Vhs.xhr.beforeRequest,n=e._requestCallbackSet||pe.Vhs.xhr._requestCallbackSet||new Set,a=e._responseCallbackSet||pe.Vhs.xhr._responseCallbackSet;r&&typeof r=="function"&&(pe.log.warn("beforeRequest is deprecated, use onRequest instead."),n.add(r));const o=pe.Vhs.xhr.original===!0?lee:pe.Vhs.xhr,l=uee(n,s);n.delete(r);const c=o(l||s,function(p,_){return cee(a,c,p,_),dT(c,p,_,i)}),d=c.abort;return c.abort=function(){return c.aborted=!0,d.apply(c,arguments)},c.uri=s.uri,c.requestTime=Date.now(),c};return t.original=!0,t},dee=function(t){let e;const s=t.offset;return typeof t.offset=="bigint"||typeof t.length=="bigint"?e=Y.BigInt(t.offset)+Y.BigInt(t.length)-Y.BigInt(1):e=t.offset+t.length-1,"bytes="+s+"-"+e},hT=function(t){const e={};return t.byterange&&(e.Range=dee(t.byterange)),e},hee=function(t,e){return t.start(e)+"-"+t.end(e)},fee=function(t,e){const s=t.toString(16);return"00".substring(0,2-s.length)+s+(e%2?" ":"")},pee=function(t){return t>=32&&t<126?String.fromCharCode(t):"."},gR=function(t){const e={};return Object.keys(t).forEach(s=>{const i=t[s];A4(i)?e[s]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:e[s]=i}),e},Nm=function(t){const e=t.byterange||{length:1/0,offset:0};return[e.length,e.offset,t.resolvedUri].join(",")},yR=function(t){return t.resolvedUri},_R=t=>{const e=Array.prototype.slice.call(t),s=16;let i="",r,n;for(let a=0;a<e.length/s;a++)r=e.slice(a*s,a*s+s).map(fee).join(""),n=e.slice(a*s,a*s+s).map(pee).join(""),i+=r+" "+n+`
468`;return i},mee=({bytes:t})=>_R(t),gee=t=>{let e="",s;for(s=0;s<t.length;s++)e+=hee(t,s)+" ";return e};var yee=Object.freeze({__proto__:null,createTransferableMessage:gR,initSegmentId:Nm,segmentKeyId:yR,hexDump:_R,tagDump:mee,textRanges:gee});const vR=.25,_ee=(t,e)=>{if(!e.dateTimeObject)return null;const s=e.videoTimingInfo.transmuxerPrependedSeconds,i=e.videoTimingInfo.transmuxedPresentationStart+s,r=t-i;return new Date(e.dateTimeObject.getTime()+r*1e3)},vee=t=>t.transmuxedPresentationEnd-t.transmuxedPresentationStart-t.transmuxerPrependedSeconds,bee=(t,e)=>{let s;try{s=new Date(t)}catch{return null}if(!e||!e.segments||e.segments.length===0)return null;let i=e.segments[0];if(s<new Date(i.dateTimeObject))return null;for(let l=0;l<e.segments.length-1;l++){i=e.segments[l];const c=new Date(e.segments[l+1].dateTimeObject);if(s<c)break}const r=e.segments[e.segments.length-1],n=r.dateTimeObject,a=r.videoTimingInfo?vee(r.videoTimingInfo):r.duration+r.duration*vR,o=new Date(n.getTime()+a*1e3);return s>o?null:(s>new Date(n)&&(i=r),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:Vi.duration(e,e.mediaSequence+e.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})},Tee=(t,e)=>{if(!e||!e.segments||e.segments.length===0)return null;let s=0,i;for(let n=0;n<e.segments.length&&(i=e.segments[n],s=i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:s+i.duration,!(t<=s));n++);const r=e.segments[e.segments.length-1];if(r.videoTimingInfo&&r.videoTimingInfo.transmuxedPresentationEnd<t)return null;if(t>s){if(t>s+r.duration*vR)return null;i=r}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:s-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}},See=(t,e)=>{let s,i;try{s=new Date(t),i=new Date(e)}catch{}const r=s.getTime();return(i.getTime()-r)/1e3},Eee=t=>{if(!t.segments||t.segments.length===0)return!1;for(let e=0;e<t.segments.length;e++)if(!t.segments[e].dateTimeObject)return!1;return!0},xee=({playlist:t,time:e=void 0,callback:s})=>{if(!s)throw new Error("getProgramTime: callback must be provided");if(!t||e===void 0)return s({message:"getProgramTime: playlist and time must be provided"});const i=Tee(e,t);if(!i)return s({message:"valid programTime was not found"});if(i.type==="estimate")return s({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:i.estimatedStart});const r={mediaSeconds:e},n=_ee(e,i.segment);return n&&(r.programDateTime=n.toISOString()),s(null,r)},bR=({programTime:t,playlist:e,retryCount:s=2,seekTo:i,pauseAfterSeek:r=!0,tech:n,callback:a})=>{if(!a)throw new Error("seekToProgramTime: callback must be provided");if(typeof t>"u"||!e||!i)return a({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!e.endList&&!n.hasStarted_)return a({message:"player must be playing a live stream to start buffering"});if(!Eee(e))return a({message:"programDateTime tags must be provided in the manifest "+e.resolvedUri});const o=bee(t,e);if(!o)return a({message:`${t} was not found in the stream`});const l=o.segment,c=See(l.dateTimeObject,t);if(o.type==="estimate"){if(s===0)return a({message:`${t} is not buffered yet. Try again`});i(o.estimatedStart+c),n.one("seeked",()=>{bR({programTime:t,playlist:e,retryCount:s-1,seekTo:i,pauseAfterSeek:r,tech:n,callback:a})});return}const d=l.start+c,p=()=>a(null,n.currentTime());n.one("seeked",p),r&&n.pause(),i(d)},yv=(t,e)=>{if(t.readyState===4)return e()},Cee=(t,e,s)=>{let i=[],r,n=!1;const a=function(c,d,p,_){return d.abort(),n=!0,s(c,d,p,_)},o=function(c,d){if(n)return;if(c)return a(c,d,"",i);const p=d.responseText.substring(i&&i.byteLength||0,d.responseText.length);if(i=ZY(i,k4(p,!0)),r=r||th(i),i.length<10||r&&i.length<r+2)return yv(d,()=>a(c,d,"",i));const _=bS(i);return _==="ts"&&i.length<188?yv(d,()=>a(c,d,"",i)):!_&&i.length<376?yv(d,()=>a(c,d,"",i)):a(null,d,_,i)},l=e({uri:t,beforeSend(c){c.overrideMimeType("text/plain; charset=x-user-defined"),c.addEventListener("progress",function({total:d,loaded:p}){return dT(c,null,{statusCode:c.status},o)})}},function(c,d){return dT(l,c,d,o)});return l},{EventTarget:wee}=pe,oA=function(t,e){if(!pR(t,e)||t.sidx&&e.sidx&&(t.sidx.offset!==e.sidx.offset||t.sidx.length!==e.sidx.length)||!t.sidx&&e.sidx||t.sidx&&!e.sidx||t.segments&&!e.segments||!t.segments&&e.segments)return!1;if(!t.segments&&!e.segments)return!0;for(let s=0;s<t.segments.length;s++){const i=t.segments[s],r=e.segments[s];if(i.uri!==r.uri)return!1;if(!i.byterange&&!r.byterange)continue;const n=i.byterange,a=r.byterange;if(n&&!a||!n&&a||n.offset!==a.offset||n.length!==a.length)return!1}return!0},Aee=(t,e,s,i)=>{const r=i.attributes.NAME||s;return`placeholder-uri-${t}-${e}-${r}`},kee=({mainXml:t,srcUrl:e,clientOffset:s,sidxMapping:i,previousManifest:r})=>{const n=ZQ(t,{manifestUri:e,clientOffset:s,sidxMapping:i,previousManifest:r});return dR(n,e,Aee),n},Dee=(t,e)=>
468{Oc(t,(s,i,r,n)=>{n in e.mediaGroups[i][r]||delete t.mediaGroups[i][r][n]})},Iee=(t,e,s)=>{let i=!0,r=Ft(t,{duration:e.duration,minimumUpdatePeriod:e.minimumUpdatePeriod,timelineStarts:e.timelineStarts});for(let n=0;n<e.playlists.length;n++){const a=e.playlists[n];if(a.sidx){const l=Gg(a.sidx);s&&s[l]&&s[l].sidx&&yS(a,s[l].sidx,a.sidx.resolvedUri)}const o=uT(r,a,oA);o&&(r=o,i=!1)}return Oc(e,(n,a,o,l)=>{if(n.playlists&&n.playlists.length){const c=n.playlists[0].id,d=uT(r,n.playlists[0],oA);d&&(r=d,l in r.mediaGroups[a][o]||(r.mediaGroups[a][o][l]=n),r.mediaGroups[a][o][l].playlists[0]=r.playlists[c],i=!1)}}),Dee(r,e),e.minimumUpdatePeriod!==t.minimumUpdatePeriod&&(i=!1),i?null:r},Pee=(t,e)=>(!t.map&&!e.map||!!(t.map&&e.map&&t.map.byterange.offset===e.map.byterange.offset&&t.map.byterange.length===e.map.byterange.length))&&t.uri===e.uri&&t.byterange.offset===e.byterange.offset&&t.byterange.length===e.byterange.length,lA=(t,e)=>{const s={};for(const i in t){const r=t[i].sidx;if(r){const n=Gg(r);if(!e[n])break;const a=e[n].sidxInfo;Pee(a,r)&&(s[n]=e[n])}}return s},Lee=(t,e)=>{let s=lA(t.playlists,e);return Oc(t,(i,r,n,a)=>{if(i.playlists&&i.playlists.length){const o=i.playlists;s=Ft(s,lA(o,e))}}),s};class fT extends wee{constructor(e,s,i={},r){super(),this.mainPlaylistLoader_=r||this,r||(this.isMain_=!0);const{withCredentials:n=!1}=i;if(this.vhs_=s,this.withCredentials=n,this.addMetadataToTextTrack=i.addMetadataToTextTrack,!e)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",()=>{this.refreshXml_()}),this.on("mediaupdatetimeout",()=>{this.refreshMedia_(this.media().id)}),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=Mr("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}requestErrored_(e,s,i){if(!this.request)return!0;if(this.request=null,e)return this.error=typeof e=="object"&&!(e instanceof Error)?e:{status:s.status,message:"DASH request error at URL: "+s.uri,response:s.response,code:2},i&&(this.state=i),this.trigger("error"),!0}addSidxSegments_(e,s,i){const r=e.sidx&&Gg(e.sidx);if(!e.sidx||!r||this.mainPlaylistLoader_.sidxMapping_[r]){this.mediaRequest_=Y.setTimeout(()=>i(!1),0);return}const n=Om(e.sidx.resolvedUri),a=(o,l)=>{if(this.requestErrored_(o,l,s))return;const c=this.mainPlaylistLoader_.sidxMapping_;let d;try{d=rJ(tt(l.response).subarray(8))}catch(p){this.requestErrored_(p,l,s);return}return c[r]={sidxInfo:e.sidx,sidx:d},yS(e,d,e.sidx.resolvedUri),i(!0)};this.request=Cee(n,this.vhs_.xhr,(o,l,c,d)=>{if(o)return a(o,l);if(!c||c!=="mp4")return a({status:l.status,message:`Unsupported ${c||"unknown"} container type for sidx segment at URL: ${n}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},l);const{offset:p,length:_}=e.sidx.byterange;if(d.length>=_+p)return a(o,{response:d.subarray(p,p+_),status:l.status,uri:l.uri});this.request=this.vhs_.xhr({uri:n,responseType:"arraybuffer",headers:hT({byterange:e.sidx.byterange})},a)})}dispose(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},Y.clearTimeout(this.minimumUpdatePeriodTimeout_),Y.clearTimeout(this.mediaRequest_),Y.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);const s=this.state;if(typeof e=="string"){if(!this.mainPlaylistLoader_.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}const i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList){this.state="HAVE_METADATA",this.media_=e,i&&(this.trigger("mediachanging"),this.trigger("mediachange"));return}i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,s,r=>{this.haveMetadata({startingState:s,playlist:e})}))}haveMetadata({startingState:e,playlist:s}){this.state="HAVE_METADATA",this.loadedPlaylists_[s.id]=s,this.mediaRequest_=null,this.refreshMedia_(s.id),e==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),Y.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(Y.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),this.state==="HAVE_NOTHING"&&(this.started=!1)}load(e){Y.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const s=this.media();if(e){const i=s?s.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=Y.setTimeout(()=>this.load(),i);return}if(!this.started){this.start();return}s&&!s.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist")}
vendor: 55,893 bytes, lines 468-473
468start(){if(this.started=!0,!this.isMain_){this.mediaRequest_=Y.setTimeout(()=>this.haveMain_(),0);return}this.requestMain_((e,s)=>{this.haveMain_(),!this.hasPendingRequest()&&!this.media_&&this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(e){this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(s,i)=>{if(this.requestErrored_(s,i)){this.state==="HAVE_NOTHING"&&(this.started=!1);return}const r=i.responseText!==this.mainPlaylistLoader_.mainXml_;if(this.mainPlaylistLoader_.mainXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?this.mainLoaded_=Date.parse(i.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=Om(this.mainPlaylistLoader_.srcUrl,i),r){this.handleMain_(),this.syncClientServerClock_(()=>e(i,r));return}return e(i,r)})}syncClientServerClock_(e){const s=eJ(this.mainPlaylistLoader_.mainXml_);if(s===null)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e();if(s.method==="DIRECT")return this.mainPlaylistLoader_.clientOffset_=s.value-Date.now(),e();this.request=this.vhs_.xhr({uri:ji(this.mainPlaylistLoader_.srcUrl,s.value),method:s.method,withCredentials:this.withCredentials},(i,r)=>{if(!this.request)return;if(i)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e();let n;s.method==="HEAD"?!r.responseHeaders||!r.responseHeaders.date?n=this.mainLoaded_:n=Date.parse(r.responseHeaders.date):n=Date.parse(r.responseText),this.mainPlaylistLoader_.clientOffset_=n-Date.now(),e()})}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){this.mediaRequest_=null;const e=this.mainPlaylistLoader_.main;let s=kee({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(s=Iee(e,s,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=s||e;const i=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];return i&&i!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=i),(!e||s&&s.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(s),!!s}updateMinimumUpdatePeriodTimeout_(){const e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(Y.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let s=e.main&&e.main.minimumUpdatePeriod;if(s===0&&(e.media()?s=e.media().targetDuration*1e3:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),typeof s!="number"||s<=0){s<0&&this.logger_(`found invalid minimumUpdatePeriod of ${s}, not setting a timeout`);return}this.createMUPTimeout_(s)}createMUPTimeout_(e){const s=this.mainPlaylistLoader_;s.minimumUpdatePeriodTimeout_=Y.setTimeout(()=>{s.minimumUpdatePeriodTimeout_=null,s.trigger("minimumUpdatePeriod"),s.createMUPTimeout_(e)},e)}refreshXml_(){this.requestMain_((e,s)=>{s&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=Lee(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,i=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(e){if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const s=this.mainPlaylistLoader_.main.playlists,i=!this.media_||this.media_!==s[e];if(i?this.media_=s[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const r=()=>{this.media().endList||(this.mediaUpdateTimeout=Y.setTimeout(()=>{this.trigger("mediaupdatetimeout"),r()},cT(this.media(),!!i)))};r()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){const s=this.mainPlaylistLoader_.main.eventStream.map(i=>({cueTime:i.start,frames:[{data:i.messageData}]}));this.addMetadataToTextTrack("EventStream",s,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){const s=new Set;for(const i in e.contentProtection){const r=e.contentProtection[i].attributes["cenc:default_KID"];r&&s.add(r.replace(/-/g,"").toLowerCase())}return s}}}var Rs={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};const Oee=t=>{const e=new Uint8Array(new ArrayBuffer(t.length));for(let s=0;s<t.length;s++)e[s]=t.charCodeAt(s);return e.buffer},TR=function(t){return t.on=t.addEventListener,t.off=t.removeEventListener,t},Nee=function(t){try{return URL.createObjectURL(new Blob([t],{type:"application/javascript"}))}catch{const e=new BlobBuilder;return e.append(t),URL.createObjectURL(e.getBlob())}},SR=function(t){return function(){const e=Nee(t),s=TR(new Worker(e));s.objURL=e;const i=s.terminate;return s.on=s.addEventListener,s.off=s.removeEventListener,s.terminate=function(){return URL.revokeObjectURL(e),i.call(this)},s}},ER=function(t){return`var browserWorkerPolyFill = ${TR.toString()};
469browserWorkerPolyFill(self);
470`+t},xR=function(t){return t.toString().replace(/^function.+?{/,"").slice(0,-1)},Ree=ER(xR(function(){var t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=function(){this.init=function(){var u={};this.on=function(h,m){u[h]||(u[h]=[]),u[h]=u[h].concat(m)},this.off=function(h,m){var f;return u[h]?(f=u[h].indexOf(m),u[h]=u[h].slice(),u[h].splice(f,1),f>-1):!1},this.trigger=function(h){var m,f,g,v;if(m=u[h],!!m)if(arguments.length===2)for(g=m.length,f=0;f<g;++f)m[f].call(this,arguments[1]);else{for(v=[],f=arguments.length,f=1;f<arguments.length;++f)v.push(arguments[f]);for(g=m.length,f=0;f<g;++f)m[f].apply(this,v)}},this.dispose=function(){u={}}}};e.prototype.pipe=function(u){return this.on("data",function(h){u.push(h)}),this.on("done",function(h){u.flush(h)}),this.on("partialdone",function(h){u.partialFlush(h)}),this.on("endedtimeline",function(h){u.endTimeline(h)}),this.on("reset",function(h){u.reset(h)}),u},e.prototype.push=function(u){this.trigger("data",u)},e.prototype.flush=function(u){this.trigger("done",u)},e.prototype.partialFlush=function(u){this.trigger("partialdone",u)},e.prototype.endTimeline=function(u){this.trigger("endedtimeline",u)},e.prototype.reset=function(u){this.trigger("reset",u)};var s=e,i=Math.pow(2,32),r=function(u){var h=new DataView(u.buffer,u.byteOffset,u.byteLength),m;return h.getBigUint64?(m=h.getBigUint64(0),m<Number.MAX_SAFE_INTEGER?Number(m):m):h.getUint32(0)*i+h.getUint32(4)},n={getUint64:r,MAX_UINT32:i},a=n.MAX_UINT32,o,l,c,d,p,_,b,T,y,x,A,C,S,E,w,O,R,$,k,P,j,F,H,te,oe,se,K,X,ne,de,he,Le,qe,Ge,Xe,Et;(function(){var u;if(H={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},!(typeof Uint8Array>"u")){for(u in H)H.hasOwnProperty(u)&&(H[u]=[u.charCodeAt(0),u.charCodeAt(1),u.charCodeAt(2),u.charCodeAt(3)]);te=new Uint8Array([105,115,111,109]),se=new Uint8Array([97,118,99,49]),oe=new Uint8Array([0,0,0,1]),K=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),X=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),ne={video:K,audio:X},Le=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),he=new Uint8Array([0,0,0,0,0,0,0,0]),qe=new Uint8Array([0,0,0,0,0,0,0,0]),Ge=qe,Xe=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Et=qe,de=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),o=function(u){var h=[],m=0,f,g,v;for(f=1;f<arguments.length;f++)h.push(arguments[f]);for(f=h.length;f--;)m+=h[f].byteLength;for(g=new Uint8Array(m+8),v=new DataView(g.buffer,g.byteOffset,g.byteLength),v.setUint32(0,g.byteLength),g.set(u,4),f=0,m=8;f<h.length;f++)g.set(h[f],m),m+=h[f].byteLength;return g},l=function(){return o(H.dinf,o(H.dref,Le))},c=function(u){return o(H.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,u.audioobjecttype<<3|u.samplingfrequencyindex>>>1,u.samplingfrequencyindex<<7|u.channelcount<<3,6,1,2]))},d=function(){return o(H.ftyp,te,oe,te,se)},O=function(u){return o(H.hdlr,ne[u])},p=function(u){return o(H.mdat,u)},w=function(u){var h=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,u.duration>>>24&255,u.duration>>>16&255,u.duration>>>8&255,u.duration&255,85,196,0,0]);return u.samplerate&&(h[12]=u.samplerate>>>24&255,h[13]=u.samplerate>>>16&255,h[14]=u.samplerate>>>8&255,h[15]=u.samplerate&255),o(H.mdhd,h)},E=function(u){return o(H.mdia,w(u),O(u.type),b(u))},_=function(u){return o(H.mfhd,new Uint8Array([0,0,0,0,(u&4278190080)>>24,(u&16711680)>>16,(u&65280)>>8,u&255]))},b=function(u){return o(H.minf,u.type==="video"?o(H.vmhd,de):o(H.smhd,he),l(),$(u))},T=function(u,h){for(var m=[],f=h.length;f--;)m[f]=P(h[f]);return o.apply(null,[H.moof,_(u)].concat(m))},y=function(u){for(var h=u.length,m=[];h--;)m[h]=C(u[h]);return o.apply(null,[H.moov,A(4294967295)].concat(m).concat(x(u)))},x=function(u){for(var h=u.length,m=[];h--;)m[h]=j(u[h]);return o.apply(null,[H.mvex].concat(m))},A=function(u){var h=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(u&4278190080)>>24,(u&16711680)>>16,(u&65280)>>8,u&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return o(H.mvhd,h)},R=function(u){var h=u.samples||[],m=new Uint8Array(4+h.length),f,g;for(g=0;g<h.length;g++)f=h[g].flags,m[g+4]=f.dependsOn<<4|f.isDependedOn<<2|f.hasRedundancy;return o(H.sdtp,m)},$=function(u){return o(H.stbl,k(u),o(H.stts,Et),o(H.stsc,Ge),o(H.stsz,Xe),o(H.stco,qe))},function(){var u,h;k=function(m){return o(H.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),m.type==="video"?u(m):h(m))},u=function(m){var f=m.sps||[],g=m.pps||[],v=[],D=[],I,L;for(I=0;I<f.length;I++)v.push((f[I].byteLength&65280)>>>8),v.push(f[I].byteLength&255),v=v.concat(Array.prototype.slice.call(f[I]));for(I=0;I<g.length;I++)D.push((g[I].byteLength&65280)>>>8),D.push(g[I].byteLength&255),D=D.concat(Array.prototype.slice.call(g[I]));if(L=[H.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(m.width&65280)>>8,m.width&255,(m.height&65280)>>8,m.height&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o(H.avcC,new Uint8Array([1,m.profileIdc,m.profileCompatibility,m.levelIdc,255].concat([f.length],v,[g.length],D))),o(H.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],m.sarRatio){var N=m.sarRatio[0],M=m.sarRatio[1];L.push(o(H.pasp,new Uint8Array([(N&4278190080)>>24,(N&16711680)>>16,(N&65280)>>8,N&255,(M&4278190080)>>24,(M&16711680)>>16,(M&65280)>>8,M&255])))}return o.apply(null,L)},h=function(m){return o(H.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(m.channelcount&65280)>>8,m.channelcount&255,(m.samplesize&65280)>>8,m.samplesize&255,0,0,0,0,(m.samplerate&65280)>>8,m.samplerate&255,0,0]),c(m))}}(),S=function(u){var h=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(u.id&4278190080)>>24,(u.id&16711680)>>16,(u.id&65280)>>8,u.id&255,0,0,0,0,(u.duration&4278190080)>>24,(u.duration&16711680)>>16,(u.duration&65280)>>8,u.duration&255,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(u.width&65280)>>8,u.width&255,0,0,(u.height&65280)>>8,u.height&255,0,0]);return o(H.tkhd,h)},P=function(u){var h,m,f,g,v,D,I;return h=o(H.tfhd,new Uint8Array([0,0,0,58,(u.id&4278190080)>>24,(u.id&16711680)>>16,(u.id&65280)>>8,u.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),D=Math.floor(u.baseMediaDecodeTime/a),I=Math.floor(u.baseMediaDecodeTime%a),m=o(H.tfdt,new Uint8Array([1,0,0,0,D>>>24&255,D>>>16&255,D>>>8&255,D&255,I>>>24&255,I>>>16&255,I>>>8&255,I&255])),v=92,u.type==="audio"?(f=F(u,v),o(H.traf,h,m,f)):(g=R(u),f=F(u,g.length+v),o(H.traf,h,m,f,g))},C=function(u){return u.duration=u.duration||4294967295,o(H.trak,S(u),E(u))},j=function(u){var h=new Uint8Array([0,0,0,0,(u.id&4278190080)>>24,(u.id&16711680)>>16,(u.id&65280)>>8,u.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return u.type!=="video"&&(h[h.length-1]=0),o(H.trex,h)},function(){var u,h,m;m=function(f,g){var v=0,D=0,I=0,L=0;return f.length&&(f[0].duration!==void 0&&(v=1),f[0].size!==void 0&&(D=2),f[0].flags!==void 0&&(I=4),f[0].compositionTimeOffset!==void 0&&(L=8)),[0,0,v|D|I|L,1,(f.length&4278190080)>>>24,(f.length&16711680)>>>16,(f.length&65280)>>>8,f.length&255,(g&4278190080)>>>24,(g&16711680)>>>16,(g&65280)>>>8,g&255]},h=function(f,g){var v,D,I,L,N,M;for(L=f.samples||[],g+=20+16*L.length,I=m(L,g),D=new Uint8Array(I.length+L.length*16),D.set(I),v=I.length,M=0;M<L.length;M++)N=L[M],D[v++]=(N.duration&4278190080)>>>24,D[v++]=(N.duration&16711680)>>>16,D[v++]=(N.duration&65280)>>>8,D[v++]=N.duration&255,D[v++]=(N.size&4278190080)>>>24,D[v++]=(N.size&16711680)>>>16,D[v++]=(N.size&65280)>>>8,D[v++]=N.size&255,D[v++]=N.flags.isLeading<<2|N.flags.dependsOn,D[v++]=N.flags.isDependedOn<<6|N.flags.hasRedundancy<<4|N.flags.paddingValue<<1|N.flags.isNonSyncSample,D[v++]=N.flags.degradationPriority&61440,D[v++]=N.flags.degradationPriority&15,D[v++]=(N.compositionTimeOffset&4278190080)>>>24,D[v++]=(N.compositionTimeOffset&16711680)>>>16,D[v++]=(N.compositionTimeOffset&65280)>>>8,D[v++]=N.compositionTimeOffset&255;return o(H.trun,D)},u=function(f,g){var v,D,I,L,N,M;for(L=f.samples||[],g+=20+8*L.length,I=m(L,g),v=new Uint8Array(I.length+L.length*8),v.set(I),D=I.length,M=0;M<L.length;M++)N=L[M],v[D++]=(N.duration&4278190080)>>>24,v[D++]=(N.duration&16711680)>>>16,v[D++]=(N.duration&65280)>>>8,v[D++]=N.duration&255,v[D++]=(N.size&4278190080)>>>24,v[D++]=(N.size&16711680)>>>16,v[D++]=(N.size&65280)>>>8,v[D++]=N.size&255;return o(H.trun,v)},F=function(f,g){return f.type==="audio"?u(f,g):h(f,g)}}();var me={ftyp:d,mdat:p,moof:T,moov:y,initSegment:function(u){var h=d(),m=y(u),f;return f=new Uint8Array(h.byteLength+m.byteLength),f.set(h),f.set(m,h.byteLength),f}},Ie=function(u){var h,m,f=[],g=[];for(g.byteLength=0,g.nalCount=0,g.duration=0,f.byteLength=0,h=0;h<u.length;h++)m=u[h],m.nalUnitType==="access_unit_delimiter_rbsp"?(f.length&&(f.duration=m.dts-f.dts,g.byteLength+=f.byteLength,g.nalCount+=f.length,g.duration+=f.duration,g.push(f)),f=[m],f.byteLength=m.data.byteLength,f.pts=m.pts,f.dts=m.dts):(m.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"&&(f.keyFrame=!0),f.duration=m.dts-f.dts,f.byteLength+=m.data.byteLength,f.push(m));return g.length&&(!f.duration||f.duration<=0)&&(f.duration=g[g.length-1].duration),g.byteLength+=f.byteLength,g.nalCount+=f.length,g.duration+=f.duration,g.push(f),g},De=function(u){var h,m,f=[],g=[];for(f.byteLength=0,f.nalCount=0,f.duration=0,f.pts=u[0].pts,f.dts=u[0].dts,g.byteLength=0,g.nalCount=0,g.duration=0,g.pts=u[0].pts,g.dts=u[0].dts,h=0;h<u.length;h++)m=u[h],m.keyFrame?(f.length&&(g.push(f),g.byteLength+=f.byteLength,g.nalCount+=f.nalCount,g.duration+=f.duration),f=[m],f.nalCount=m.length,f.byteLength=m.byteLength,f.pts=m.pts,f.dts=m.dts,f.duration=m.duration):(f.duration+=m.duration,f.nalCount+=m.length,f.byteLength+=m.byteLength,f.push(m));return g.length&&f.duration<=0&&(f.duration=g[g.length-1].duration),g.byteLength+=f.byteLength,g.nalCount+=f.nalCount,g.duration+=f.duration,g.push(f),g},Fe=function(u){var h;return!u[0][0].keyFrame&&u.length>1&&(h=u.shift(),u.byteLength-=h.byteLength,u.nalCount-=h.nalCount,u[0][0].dts=h.dts,u[0][0].pts=h.pts,u[0][0].duration+=h.duration),u},Ze=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},rt=function(u,h){var m=Ze();return m.dataOffset=h,m.compositionTimeOffset=u.pts-u.dts,m.duration=u.duration,m.size=4*u.length,m.size+=u.byteLength,u.keyFrame&&(m.flags.dependsOn=2,m.flags.isNonSyncSample=0),m},W=function(u,h){var m,f,g,v,D,I=h||0,L=[];for(m=0;m<u.length;m++)for(v=u[m],f=0;f<v.length;f++)D=v[f],g=rt(D,I),I+=g.size,L.push(g);return L},q=function(u){var h,m,f,g,v,D,I=0,L=u.byteLength,N=u.nalCount,M=L+4*N,G=new Uint8Array(M),le=new DataView(G.buffer);for(h=0;h<u.length;h++)for(g=u[h],m=0;m<g.length;m++)for(v=g[m],f=0;f<v.length;f++)D=v[f],le.setUint32(I,D.data.byteLength),I+=4,G.set(D.data,I),I+=D.data.byteLength;return G},re=function(u,h){var m,f=h||0,g=[];return m=rt(u,f),g.push(m),g},ve=function(u){var h,m,f=0,g=u.byteLength,v=u.length,D=g+4*v,I=new Uint8Array(D),L=new DataView(I.buffer);for(h=0;h<u.length;h++)m=u[h],L.setUint32(f,m.data.byteLength),f+=4,I.set(m.data,f),f+=m.data.byteLength;return I},ge={groupNalsIntoFrames:Ie,groupFramesIntoGops:De,extendFirstKeyFrame:Fe,generateSampleTable:W,concatenateNalData:q,generateSampleTableForFrame:re,concatenateNalDataForFrame:ve},be=[33,16,5,32,164,27],Pe=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],U=function(u){for(var h=[];u--;)h.push(0);return h},z=function(u){return Object.keys(u).reduce(function(h,m){return h[m]=new Uint8Array(u[m].reduce(function(f,g){return f.concat(g)},[])),h},{})},ee,Ee=function(){if(!ee){var u={96e3:[be,[227,64],U(154),[56]],88200:[be,[231],U(170),[56]],64e3:[be,[248,192],U(240),[56]],48e3:[be,[255,192],U(268),[55,148,128],U(54),[112]],44100:[be,[255,192],U(268),[55,163,128],U(84),[112]],32e3:[be,[255,192],U(268),[55,234],U(226),[112]],24e3:[be,[255,192],U(268),[55,255,128],U(268),[111,112],U(126),[224]],16e3:[be,[255,192],U(268),[55,255,128],U(268),[111,255],U(269),[223,108],U(195),[1,192]],12e3:[Pe,U(268),[3,127,248],U(268),[6,255,240],U(268),[13,255,224],U(268),[27,253,128],U(259),[56]],11025:[Pe,U(268),[3,127,248],U(268),[6,255,240],U(268),[13,255,224],U(268),[27,255,192],U(268),[55,175,128],U(108),[112]],8e3:[Pe,U(268),[3,121,16],U(47),[7]]};ee=z(u)}return ee},we=9e4,xe,ae,ce,Ve,Ke,Pt,Lt;xe=function(u){return u*we},ae=function(u,h){return u*h},ce=function(u){return u/we},Ve=function(u,h){return u/h},Ke=function(u,h){return xe(Ve(u,h))},Pt=function(u,h){return ae(ce(u),h)},Lt=function(u,h,m){return ce(m?u:u-h)};var Ue={ONE_SECOND_IN_TS:we,secondsToVideoTs:xe,secondsToAudioTs:ae,videoTsToSeconds:ce,audioTsToSeconds:Ve,audioTsToVideoTs:Ke,videoTsToAudioTs:Pt,metadataTsToSeconds:Lt},fs=Ee,ws=Ue,Wn=function(u){var h,m,f=0;for(h=0;h<u.length;h++)m=u[h],f+=m.data.byteLength;return f},_s=function(u,h,m,f){var g,v=0,D=0,I=0,L=0,N,M,G;if(h.length&&(g=ws.audioTsToVideoTs(u.baseMediaDecodeTime,u.samplerate),v=Math.ceil(ws.ONE_SECOND_IN_TS/(u.samplerate/1024)),m&&f&&(D=g-Math.max(m,f),I=Math.floor(D/v),L=I*v),!(I<1||L>ws.ONE_SECOND_IN_TS/2))){for(N=fs()[u.samplerate],N||(N=h[0].data),M=0;M<I;M++)G=h[0],h.splice(0,0,{data:N,dts:G.dts-v,pts:G.pts-v});return u.baseMediaDecodeTime-=Math.floor(ws.videoTsToAudioTs(L,u.samplerate)),L}},vs=function(u,h,m){return h.minSegmentDts>=m?u:(h.minSegmentDts=1/0,u.filter(function(f){return f.dts>=m?(h.minSegmentDts=Math.min(h.minSegmentDts,f.dts),h.minSegmentPts=h.minSegmentDts,!0):!1}))},Xn=function(u){var h,m,f=[];for(h=0;h<u.length;h++)m=u[h],f.push({size:m.data.byteLength,duration:1024});return f},Mo=function(u){var h,m,f=0,g=new Uint8Array(Wn(u));for(h=0;h<u.length;h++)m=u[h],g.set(m.data,f),f+=m.data.byteLength;return g},Bl={prefixWithSilence:_s,trimAdtsFramesByEarliestDts:vs,generateSampleTable:Xn,concatenateFrameData:Mo},B=Ue.ONE_SECOND_IN_TS,V=function(u,h){typeof h.pts=="number"&&(u.timelineStartInfo.pts===void 0&&(u.timelineStartInfo.pts=h.pts),u.minSegmentPts===void 0?u.minSegmentPts=h.pts:u.minSegmentPts=Math.min(u.minSegmentPts,h.pts),u.maxSegmentPts===void 0?u.maxSegmentPts=h.pts:u.maxSegmentPts=Math.max(u.maxSegmentPts,h.pts)),typeof h.dts=="number"&&(u.timelineStartInfo.dts===void 0&&(u.timelineStartInfo.dts=h.dts),u.minSegmentDts===void 0?u.minSegmentDts=h.dts:u.minSegmentDts=Math.min(u.minSegmentDts,h.dts),u.maxSegmentDts===void 0?u.maxSegmentDts=h.dts:u.maxSegmentDts=Math.max(u.maxSegmentDts,h.dts))},Z=function(u){delete u.minSegmentDts,delete u.maxSegmentDts,delete u.minSegmentPts,delete u.maxSegmentPts},ue=function(u,h){var m,f,g=u.minSegmentDts;return h||(g-=u.timelineStartInfo.dts),m=u.timelineStartInfo.baseMediaDecodeTime,m+=g,m=Math.max(0,m),u.type==="audio"&&(f=u.samplerate/B,m*=f,m=Math.floor(m)),m},Me={clearDtsInfo:Z,calculateTrackBaseMediaDecodeTime:ue,collectDtsInfo:V},it=4,Ut=128,Ot=function(u){for(var h=0,m={payloadType:-1,payloadSize:0},f=0,g=0;h<u.byteLength&&u[h]!==Ut;){for(;u[h]===255;)f+=255,h++;for(f+=u[h++];u[h]===255;)g+=255,h++;if(g+=u[h++],!m.payload&&f===it){var v=String.fromCharCode(u[h+3],u[h+4],u[h+5],u[h+6]);if(v==="GA94"){m.payloadType=f,m.payloadSize=g,m.payload=u.subarray(h,h+g);break}else m.payload=void 0}h+=g,f=0,g=0}return m},Fr=function(u){return u.payload[0]!==181||(u.payload[1]<<8|u.payload[2])!==49||String.fromCharCode(u.payload[3],u.payload[4],u.payload[5],u.payload[6])!=="GA94"||u.payload[7]!==3?null:u.payload.subarray(8,u.payload.length-1)},yr=function(u,h){var m=[],f,g,v,D;if(!(h[0]&64))return m;for(g=h[0]&31,f=0;f<g;f++)v=f*3,D={type:h[v+2]&3,pts:u},h[v+2]&4&&(D.ccData=h[v+3]<<8|h[v+4],m.push(D));return m},er=function(u){for(var h=u.byteLength,m=[],f=1,g,v;f<h-2;)u[f]===0&&u[f+1]===0&&u[f+2]===3?(m.push(f+2),f+=2):f++;if(m.length===0)return u;g=h-m.length,v=new Uint8Array(g);var D=0;for(f=0;f<g;D++,f++)D===m[0]&&(D++,m.shift()),v[f]=u[D];return v},pn={parseSei:Ot,parseUserData:Fr,parseCaptionPackets:yr,discardEmulationPreventionBytes:er,USER_DATA_REGISTERED_ITU_T_T35:it},li=s,qs=pn,wt=function(u){u=u||{},wt.prototype.init.call(this),this.parse708captions_=typeof u.parse708captions=="boolean"?u.parse708captions:!0,this.captionPackets_=[],this.ccStreams_=[new nt(0,0),new nt(0,1),new nt(1,0),new nt(1,1)],this.parse708captions_&&(this.cc708Stream_=new Qe({captionServices:u.captionServices})),this.reset(),this.ccStreams_.forEach(function(h){h.on("data",this.trigger.bind(this,"data")),h.on("partialdone",this.trigger.bind(this,"partialdone")),h.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};wt.prototype=new li,wt.prototype.push=function(u){var h,m,f;if(u.nalUnitType==="sei_rbsp"&&(h=qs.parseSei(u.escapedRBSP),!!h.payload&&h.payloadType===qs.USER_DATA_REGISTERED_ITU_T_T35&&(m=qs.parseUserData(h),!!m))){if(u.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}else if(u.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}f=qs.parseCaptionPackets(u.pts,m),this.captionPackets_=this.captionPackets_.concat(f),this.latestDts_!==u.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=u.dts}},wt.prototype.flushCCStreams=function(u){this.ccStreams_.forEach(function(h){return u==="flush"?h.flush():h.partialFlush()},this)},wt.prototype.flushStream=function(u){if(!this.captionPackets_.length){this.flushCCStreams(u);return}this.captionPackets_.forEach(function(h,m){h.presortIndex=m}),this.captionPackets_.sort(function(h,m){return h.pts===m.pts?h.presortIndex-m.presortIndex:h.pts-m.pts}),this.captionPackets_.forEach(function(h){h.type<2?this.dispatchCea608Packet(h):this.dispatchCea708Packet(h)},this),this.captionPackets_.length=0,this.flushCCStreams(u)},wt.prototype.flush=function(){return this.flushStream("flush")},wt.prototype.partialFlush=function(){return this.flushStream("partialFlush")},wt.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(u){u.reset()})},wt.prototype.dispatchCea608Packet=function(u){this.setsTextOrXDSActive(u)?this.activeCea608Channel_[u.type]=null:this.setsChannel1Active(u)?this.activeCea608Channel_[u.type]=0:this.setsChannel2Active(u)&&(this.activeCea608Channel_[u.type]=1),this.activeCea608Channel_[u.type]!==null&&this.ccStreams_[(u.type<<1)+this.activeCea608Channel_[u.type]].push(u)},wt.prototype.setsChannel1Active=function(u){return(u.ccData&30720)===4096},wt.prototype.setsChannel2Active=function(u){return(u.ccData&30720)===6144},wt.prototype.setsTextOrXDSActive=function(u){return(u.ccData&28928)===256||(u.ccData&30974)===4138||(u.ccData&30974)===6186},wt.prototype.dispatchCea708Packet=function(u){this.parse708captions_&&this.cc708Stream_.push(u)};var Oi={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},Br=function(u){var h=Oi[u]||u;return u&4096&&u===h?"":String.fromCharCode(h)},ui=function(u){return 32<=u&&u<=127||160<=u&&u<=255},ps=function(u){this.windowNum=u,this.reset()};ps.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},ps.prototype.getText=function(){return this.rows.join(`
471`)},ps.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},ps.prototype.newLine=function(u){for(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow=="function"&&this.beforeRowOverflow(u),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},ps.prototype.isEmpty=function(){return this.rows.length===0?!0:this.rows.length===1?this.rows[0]==="":!1},ps.prototype.addText=function(u){this.rows[this.rowIdx]+=u},ps.prototype.backspace=function(){if(!this.isEmpty()){var u=this.rows[this.rowIdx];this.rows[this.rowIdx]=u.substr(0,u.length-1)}};var Js=function(u,h,m){this.serviceNum=u,this.text="",this.currentWindow=new ps(-1),this.windows=[],this.stream=m,typeof h=="string"&&this.createTextDecoder(h)};Js.prototype.init=function(u,h){this.startPts=u;for(var m=0;m<8;m++)this.windows[m]=new ps(m),typeof h=="function"&&(this.windows[m].beforeRowOverflow=h)},Js.prototype.setCurrentWindow=function(u){this.currentWindow=this.windows[u]},Js.prototype.createTextDecoder=function(u){if(typeof TextDecoder>"u")this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(u)}catch(h){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+u+" encoding. "+h})}};var Qe=function(u){u=u||{},Qe.prototype.init.call(this);var h=this,m=u.captionServices||{},f={},g;Object.keys(m).forEach(v=>{g=m[v],/^SERVICE/.test(v)&&(f[v]=g.encoding)}),this.serviceEncodings=f,this.current708Packet=null,this.services={},this.push=function(v){v.type===3?(h.new708Packet(),h.add708Bytes(v)):(h.current708Packet===null&&h.new708Packet(),h.add708Bytes(v))}};Qe.prototype=new li,Qe.prototype.new708Packet=function(){this.current708Packet!==null&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Qe.prototype.add708Bytes=function(u){var h=u.ccData,m=h>>>8,f=h&255;this.current708Packet.ptsVals.push(u.pts),this.current708Packet.data.push(m),this.current708Packet.data.push(f)},Qe.prototype.push708Packet=function(){var u=this.current708Packet,h=u.data,m=null,f=null,g=0,v=h[g++];for(u.seq=v>>6,u.sizeCode=v&63;g<h.length;g++)v=h[g++],m=v>>5,f=v&31,m===7&&f>0&&(v=h[g++],m=v),this.pushServiceBlock(m,g,f),f>0&&(g+=f-1)},Qe.prototype.pushServiceBlock=function(u,h,m){var f,g=h,v=this.current708Packet.data,D=this.services[u];for(D||(D=this.initService(u,g));g<h+m&&g<v.length;g++)f=v[g],ui(f)?g=this.handleText(g,D):f===24?g=this.multiByteCharacter(g,D):f===16?g=this.extendedCommands(g,D):128<=f&&f<=135?g=this.setCurrentWindow(g,D):152<=f&&f<=159?g=this.defineWindow(g,D):f===136?g=this.clearWindows(g,D):f===140?g=this.deleteWindows(g,D):f===137?g=this.displayWindows(g,D):f===138?g=this.hideWindows(g,D):f===139?g=this.toggleWindows(g,D):f===151?g=this.setWindowAttributes(g,D):f===144?g=this.setPenAttributes(g,D):f===145?g=this.setPenColor(g,D):f===146?g=this.setPenLocation(g,D):f===143?D=this.reset(g,D):f===8?D.currentWindow.backspace():f===12?D.currentWindow.clearText():f===13?D.currentWindow.pendingNewLine=!0:f===14?D.currentWindow.clearText():f===141&&g++},Qe.prototype.extendedCommands=function(u,h){var m=this.current708Packet.data,f=m[++u];return ui(f)&&(u=this.handleText(u,h,{isExtended:!0})),u},Qe.prototype.getPts=function(u){return this.current708Packet.ptsVals[Math.floor(u/2)]},Qe.prototype.initService=function(u,h){var f="SERVICE"+u,m=this,f,g;return f in this.serviceEncodings&&(g=this.serviceEncodings[f]),this.services[u]=new Js(u,g,m),this.services[u].init(this.getPts(h),function(v){m.flushDisplayed(v,m.services[u])}),this.services[u]},Qe.prototype.handleText=function(u,h,m){var f=m&&m.isExtended,g=m&&m.isMultiByte,v=this.current708Packet.data,D=f?4096:0,I=v[u],L=v[u+1],N=h.currentWindow,M,G;function le(J){return J.map(Ae=>("0"+(Ae&255).toString(16)).slice(-2)).join("")}if(g?(G=[I,L],u++):G=[I],h.textDecoder_&&!f)M=h.textDecoder_.decode(new Uint8Array(G));else if(g){const J=le(G);M=String.fromCharCode(parseInt(J,16))}else M=Br(D|I);return N.pendingNewLine&&!N.isEmpty()&&N.newLine(this.getPts(u)),N.pendingNewLine=!1,N.addText(M),u},Qe.prototype.multiByteCharacter=function(u,h){var m=this.current708Packet.data,f=m[u+1],g=m[u+2];return ui(f)&&ui(g)&&(u=this.handleText(++u,h,{isMultiByte:!0})),u},Qe.prototype.setCurrentWindow=function(u,h){var m=this.current708Packet.data,f=m[u],g=f&7;return h.setCurrentWindow(g),u},Qe.prototype.defineWindow=function(u,h){var m=this.current708Packet.data,f=m[u],g=f&7;h.setCurrentWindow(g);var v=h.currentWindow;return f=m[++u],v.visible=(f&32)>>5,v.rowLock=(f&16)>>4,v.columnLock=(f&8)>>3,v.priority=f&7,f=m[++u],v.relativePositioning=(f&128)>>7,v.anchorVertical=f&127,f=m[++u],v.anchorHorizontal=f,f=m[++u],v.anchorPoint=(f&240)>>4,v.rowCount=f&15,f=m[++u],v.columnCount=f&63,f=m[++u],v.windowStyle=(f&56)>>3,v.penStyle=f&7,v.virtualRowCount=v.rowCount+1,u},Qe.prototype.setWindowAttributes=function(u,h){var m=this.current708Packet.data,f=m[u],g=h.currentWindow.winAttr;return f=m[++u],g.fillOpacity=(f&192)>>6,g.fillRed=(f&48)>>4,g.fillGreen=(f&12)>>2,g.fillBlue=f&3,f=m[++u],g.borderType=(f&192)>>6,g.borderRed=(f&48)>>4,g.borderGreen=(f&12)>>2,g.borderBlue=f&3,f=m[++u],g.borderType+=(f&128)>>5,g.wordWrap=(f&64)>>6,g.printDirection=(f&48)>>4,g.scrollDirection=(f&12)>>2,g.justify=f&3,f=m[++u],g.effectSpeed=(f&240)>>4,g.effectDirection=(f&12)>>2,g.displayEffect=f&3,u},Qe.prototype.flushDisplayed=function(u,h){for(var m=[],f=0;f<8;f++)h.windows[f].visible&&!h.windows[f].isEmpty()&&m.push(h.windows[f].getText());h.endPts=u,h.text=m.join(`
472
473`),this.pushCaption(h),h.startPts=u},Qe.prototype.pushCaption=function(u){u.text!==""&&(this.trigger("data",{startPts:u.startPts,endPts:u.endPts,text:u.text,stream:"cc708_"+u.serviceNum}),u.text="",u.startPts=u.endPts)},Qe.prototype.displayWindows=function(u,h){var m=this.current708Packet.data,f=m[++u],g=this.getPts(u);this.flushDisplayed(g,h);for(var v=0;v<8;v++)f&1<<v&&(h.windows[v].visible=1);return u},Qe.prototype.hideWindows=function(u,h){var m=this.current708Packet.data,f=m[++u],g=this.getPts(u);this.flushDisplayed(g,h);for(var v=0;v<8;v++)f&1<<v&&(h.windows[v].visible=0);return u},Qe.prototype.toggleWindows=function(u,h){var m=this.current708Packet.data,f=m[++u],g=this.getPts(u);this.flushDisplayed(g,h);for(var v=0;v<8;v++)f&1<<v&&(h.windows[v].visible^=1);return u},Qe.prototype.clearWindows=function(u,h){var m=this.current708Packet.data,f=m[++u],g=this.getPts(u);this.flushDisplayed(g,h);for(var v=0;v<8;v++)f&1<<v&&h.windows[v].clearText();return u},Qe.prototype.deleteWindows=function(u,h){var m=this.current708Packet.data,f=m[++u],g=this.getPts(u);this.flushDisplayed(g,h);for(var v=0;v<8;v++)f&1<<v&&h.windows[v].reset();return u},Qe.prototype.setPenAttributes=function(u,h){var m=this.current708Packet.data,f=m[u],g=h.currentWindow.penAttr;return f=m[++u],g.textTag=(f&240)>>4,g.offset=(f&12)>>2,g.penSize=f&3,f=m[++u],g.italics=(f&128)>>7,g.underline=(f&64)>>6,g.edgeType=(f&56)>>3,g.fontStyle=f&7,u},Qe.prototype.setPenColor=function(u,h){var m=this.current708Packet.data,f=m[u],g=h.currentWindow.penColor;return f=m[++u],g.fgOpacity=(f&192)>>6,g.fgRed=(f&48)>>4,g.fgGreen=(f&12)>>2,g.fgBlue=f&3,f=m[++u],g.bgOpacity=(f&192)>>6,g.bgRed=(f&48)>>4,g.bgGreen=(f&12)>>2,g.bgBlue=f&3,f=m[++u],g.edgeRed=(f&48)>>4,g.edgeGreen=(f&12)>>2,g.edgeBlue=f&3,u},Qe.prototype.setPenLocation=function(u,h){var m=this.current708Packet.data,f=m[u],g=h.currentWindow.penLoc;return h.currentWindow.pendingNewLine=!0,f=m[++u],g.row=f&15,f=m[++u],g.column=f&63,u},Qe.prototype.reset=function(u,h){var m=this.getPts(u);return this.flushDisplayed(m,h),this.initService(h.serviceNum,u)};var cy={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Kn=function(u){return u===null?"":(u=cy[u]||u,String.fromCharCode(u))},Yn=14,dy=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ci=function(){for(var u=[],h=Yn+1;h--;)u.push({text:"",indent:0,offset:0});return u},nt=function(u,h){nt.prototype.init.call(this),this.field_=u||0,this.dataChannel_=h||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(m){var f,g,v,D,I;if(f=m.ccData&32639,f===this.lastControlCode_){this.lastControlCode_=null;return}if((f&61440)===4096?this.lastControlCode_=f:f!==this.PADDING_&&(this.lastControlCode_=null),v=f>>>8,D=f&255,f!==this.PADDING_)if(f===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(f===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(m.pts),this.flushDisplayed(m.pts),g=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=g,this.startPts_=m.pts;else if(f===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(m.pts);else if(f===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(m.pts);else if(f===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(m.pts);else if(f===this.CARRIAGE_RETURN_)this.clearFormatting(m.pts),this.flushDisplayed(m.pts),this.shiftRowsUp_(),this.startPts_=m.pts;else if(f===this.BACKSPACE_)this.mode_==="popOn"?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(f===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(m.pts),this.displayed_=ci();else if(f===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=ci();else if(f===this.RESUME_DIRECT_CAPTIONING_)this.mode_!=="paintOn"&&(this.flushDisplayed(m.pts),this.displayed_=ci()),this.mode_="paintOn",this.startPts_=m.pts;else if(this.isSpecialCharacter(v,D))v=(v&3)<<8,I=Kn(v|D),this[this.mode_](m.pts,I),this.column_++;else if(this.isExtCharacter(v,D))this.mode_==="popOn"?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),v=(v&3)<<8,I=Kn(v|D),this[this.mode_](m.pts,I),this.column_++;else if(this.isMidRowCode(v,D))this.clearFormatting(m.pts),this[this.mode_](m.pts," "),this.column_++,(D&14)===14&&this.addFormatting(m.pts,["i"]),(D&1)===1&&this.addFormatting(m.pts,["u"]);else if(this.isOffsetControlCode(v,D)){const N=D&3;this.nonDisplayed_[this.row_].offset=N,this.column_+=N}else if(this.isPAC(v,D)){var L=dy.indexOf(f&7968);if(this.mode_==="rollUp"&&(L-this.rollUpRows_+1<0&&(L=this.rollUpRows_-1),this.setRollUp(m.pts,L)),L!==this.row_&&(this.clearFormatting(m.pts),this.row_=L),D&1&&this.formatting_.indexOf("u")===-1&&this.addFormatting(m.pts,["u"]),(f&16)===16){const N=(f&14)>>1;this.column_=N*4,this.nonDisplayed_[this.row_].indent+=N}this.isColorPAC(D)&&(D&14)===14&&this.addFormatting(m.pts,["i"])}else this.isNormalChar(v)&&(D===0&&(D=null),I=Kn(v),I+=Kn(D),this[this.mode_](m.pts,I),this.column_+=I.length)}};nt.prototype=new li,nt.prototype.flushDisplayed=function(u){const h=f=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+f+"."})},m=[];this.displayed_.forEach((f,g)=>{if(f&&f.text&&f.text.length){try{f.text=f.text.trim()}catch{h(g)}f.text.length&&m.push({text:f.text,line:g+1,position:10+Math.min(70,f.indent*10)+f.offset*2.5})}else f==null&&h(g)}),m.length&&this.trigger("data",{startPts:this.startPts_,endPts:u,content:m,stream:this.name_})},nt.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=ci(),this.nonDisplayed_=ci(),this.lastControlCode_=null,this.column_=0,this.row_=Yn,this.rollUpRows_=2,this.formatting_=[]},nt.prototype.setConstants=function(){this.dataChannel_===0?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):this.dataChannel_===1&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=this.CONTROL_|32,this.END_OF_CAPTION_=this.CONTROL_|47,this.ROLL_UP_2_ROWS_=this.CONTROL_|37,this.ROLL_UP_3_ROWS_=this.CONTROL_|38,this.ROLL_UP_4_ROWS_=this.CONTROL_|39,this.CARRIAGE_RETURN_=this.CONTROL_|45,this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41,this.BACKSPACE_=this.CONTROL_|33,this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44,this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46},nt.prototype.isSpecialCharacter=function(u,h){return u===this.EXT_&&h>=48&&h<=63},nt.prototype.isExtCharacter=function(u,h){return(u===this.EXT_+1||u===this.EXT_+2)&&h>=32&&h<=63},nt.prototype.isMidRowCode=function(u,h){return u===this.EXT_&&h>=32&&h<=47},nt.prototype.isOffsetControlCode=function(u,h){return u===this.OFFSET_&&h>=33&&h<=35},nt.prototype.isPAC=function(u,h){return u>=this.BASE_&&u<this.BASE_+8&&h>=64&&h<=127},nt.prototype.isColorPAC=function(u){return u>=64&&u<=79||u>=96&&u<=127},nt.prototype.isNormalChar=function(u){return u>=32&&u<=127},nt.prototype.setRollUp=function(u,h){if(this.mode_!=="rollUp"&&(this.row_=Yn,this.mode_="rollUp",this.flushDisplayed(u),this.nonDisplayed_=ci(),this.displayed_=ci()),h!==void 0&&h!==this.row_)for(var m=0;m<this.rollUpRows_;m++)this.displayed_[h-m]=this.displayed_[this.row_-m],this.displayed_[this.row_-m]={text:"",indent:0,offset:0};h===void 0&&(h=this.row_),this.topRow_=h-this.rollUpRows_+1},nt.prototype.addFormatting=function(u,h){this.formatting_=this.formatting_.concat(h);var m=h.reduce(function(f,g){return f+"<"+g+">"},"");this[this.mode_](u,m)},nt.prototype.clearFormatting=function(u){if(this.formatting_.length){var h=this.formatting_.reverse().reduce(function(m,f){return m+"</"+f+">"},"");this.formatting_=[],this[this.mode_](u,h)}},nt.prototype.popOn=function(u,h){var m=this.nonDisplayed_[this.row_].text;m+=h,this.nonDisplayed_[this.row_].text=m},nt.prototype.rollUp=function(u,h){var m=this.displayed_[this.row_].text;m+=h,this.displayed_[this.row_].text=m},nt.prototype.shiftRowsUp_=function(){var u;for(u=0;u<this.topRow_;u++)this.displayed_[u]={text:"",indent:0,offset:0};for(u=this.row_+1;u<Yn+1;u++)this.displayed_[u]={text:"",indent:0,offset:0};for(u=this.topRow_;u<this.row_;u++)this.displayed_[u]=this.displayed_[u+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},nt.prototype.paintOn=function(u,h){var m=this.displayed_[this.row_].text;m+=h,this.displayed_[this.row_].text=m};var Nc={CaptionStream:wt,Cea608Stream:nt,Cea708Stream:Qe},Qn={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},hy=s,fy=8589934592,py=4294967296,Rc="shared",Fo=function(u,h){var m=1;for(u>h&&(m=-1);Math.abs(h-u)>py;)u+=m*fy;return u},Bo=function(u){var h,m;Bo.prototype.init.call(this),this.type_=u||Rc,this.push=function(f){if(f.type==="metadata"){this.trigger("data",f);return}this.type_!==Rc&&f.type!==this.type_||(m===void 0&&(m=f.dts),f.dts=Fo(f.dts,m),f.pts=Fo(f.pts,m),h=f.dts,this.trigger("data",f))},this.flush=function(){m=h,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){m=void 0,h=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Bo.prototype=new hy;var Mc={TimestampRolloverStream:Bo,handleRollover:Fo},my=(u,h,m)=>{if(!u)return-1;for(var f=m;f<u.length;f++)if(u[f]===h)return f;return-1},gy={typedArrayIndexOf:my},Jn=gy.typedArrayIndexOf,Zn={Utf8:3},Fc=function(u,h,m){var f,g="";for(f=h;f<m;f++)g+="%"+("00"+u[f].toString(16)).slice(-2);return g},Ur=function(u,h,m){return decodeURIComponent(Fc(u,h,m))},$r=function(u,h,m){return unescape(Fc(u,h,m))},jr=function(u){return u[0]<<21|u[1]<<14|u[2]<<7|u[3]},Hr={APIC:function(u){var h=1,m,f,g="-->";u.data[0]===Zn.Utf8&&(m=Jn(u.data,0,h),!(m<0)&&(u.mimeType=$r(u.data,h,m),h=m+1,u.pictureType=u.data[h],h++,f=Jn(u.data,0,h),!(f<0)&&(u.description=Ur(u.data,h,f),h=f+1,u.mimeType===g?u.url=$r(u.data,h,u.data.length):u.pictureData=u.data.subarray(h,u.data.length))))},"T*":function(u){u.data[0]===Zn.Utf8&&(u.value=Ur(u.data,1,u.data.length).replace(/\0*$/,""),u.values=u.value.split("\0"))},TXXX:function(u){var h;u.data[0]===Zn.Utf8&&(h=Jn(u.data,0,1),h!==-1&&(u.description=Ur(u.data,1,h),u.value=Ur(u.data,h+1,u.data.length).replace(/\0*$/,""),u.data=u.value))},"W*":function(u){u.url=$r(u.data,0,u.data.length).replace(/\0.*$/,"")},WXXX:function(u){var h;u.data[0]===Zn.Utf8&&(h=Jn(u.data,0,1),h!==-1&&(u.description=Ur(u.data,1,h),u.url=$r(u.data,h+1,u.data.length).replace(/\0.*$/,"")))},PRIV:function(u){var h;for(h=0;h<u.data.length;h++)if(u.data[h]===0){u.owner=$r(u.data,0,h);break}u.privateData=u.data.subarray(h+1),u.data=u.privateData}},yy=function(u){var h,m,f=10,g=0,v=[];if(!(u.length<10||u[0]!==73||u[1]!==68||u[2]!==51)){g=jr(u.subarray(6,10)),g+=10;var D=u[5]&64;D&&(f+=4,f+=jr(u.subarray(10,14)),g-=jr(u.subarray(16,20)));do{if(h=jr(u.subarray(f+4,f+8)),h<1)break;m=String.fromCharCode(u[f],u[f+1],u[f+2],u[f+3]);var I={id:m,data:u.subarray(f+10,f+h+10)};I.key=I.id,Hr[I.id]?Hr[I.id](I):I.id[0]==="T"?Hr["T*"](I):I.id[0]==="W"&&Hr["W*"](I),v.push(I),f+=10,f+=h}while(f<g);return v}},Bc={parseId3Frames:yy,parseSyncSafeInteger:jr,frameParsers:Hr},_y=s,vy=Qn,Vs=Bc,ea;ea=function(u){var h={descriptor:u&&u.descriptor},m=0,f=[],g=0,v;if(ea.prototype.init.call(this),this.dispatchType=vy.METADATA_STREAM_TYPE.toString(16),h.descriptor)for(v=0;v<h.descriptor.length;v++)this.dispatchType+=("00"+h.descriptor[v].toString(16)).slice(-2);this.push=function(D){var I,L,N,M,G,le;if(D.type==="timed-metadata"){if(D.dataAlignmentIndicator&&(g=0,f.length=0),f.length===0&&(D.data.length<10||D.data[0]!==73||D.data[1]!==68||D.data[2]!==51)){this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});return}if(f.push(D),g+=D.data.byteLength,f.length===1&&(m=Vs.parseSyncSafeInteger(D.data.subarray(6,10)),m+=10),!(g<m)){for(I={data:new Uint8Array(m),frames:[],pts:f[0].pts,dts:f[0].dts},G=0;G<m;)I.data.set(f[0].data.subarray(0,m-G),G),G+=f[0].data.byteLength,g-=f[0].data.byteLength,f.shift();L=10,I.data[5]&64&&(L+=4,L+=Vs.parseSyncSafeInteger(I.data.subarray(10,14)),m-=Vs.parseSyncSafeInteger(I.data.subarray(16,20)));do{if(N=Vs.parseSyncSafeInteger(I.data.subarray(L+4,L+8)),N<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if(le=String.fromCharCode(I.data[L],I.data[L+1],I.data[L+2],I.data[L+3]),M={id:le,data:I.data.subarray(L+10,L+N+10)},M.key=M.id,Vs.frameParsers[M.id]?Vs.frameParsers[M.id](M):M.id[0]==="T"?Vs.frameParsers["T*"](M):M.id[0]==="W"&&Vs.frameParsers["W*"](M),M.owner==="com.apple.streaming.transportStreamTimestamp"){var J=M.data,Ae=(J[3]&1)<<30|J[4]<<22|J[5]<<14|J[6]<<6|J[7]>>>2;Ae*=4,Ae+=J[7]&3,M.timeStamp=Ae,I.pts===void 0&&I.dts===void 0&&(I.pts=M.timeStamp,I.dts=M.timeStamp),this.trigger("timestamp",M)}I.frames.push(M),L+=10,L+=N}while(L<m);this.trigger("data",I)}}}},ea.prototype=new _y;var by=ea,Uo=s,$o=Nc,us=Qn,Ty=Mc.TimestampRolloverStream,ta,qr,sa,tr=188,jo=71;ta=function(){var u=new Uint8Array(tr),h=0;ta.prototype.init.call(this),this.push=function(m){var f=0,g=tr,v;for(h?(v=new Uint8Array(m.byteLength+h),v.set(u.subarray(0,h)),v.set(m,h),h=0):v=m;g<v.byteLength;){if(v[f]===jo&&v[g]===jo){this.trigger("data",v.subarray(f,g)),f+=tr,g+=tr;continue}f++,g++}f<v.byteLength&&(u.set(v.subarray(f),0),h=v.byteLength-f)},this.flush=function(){h===tr&&u[0]===jo&&(this.trigger("data",u),h=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){h=0,this.trigger("reset")}},ta.prototype=new Uo,qr=function(){var u,h,m,f;qr.prototype.init.call(this),f=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,u=function(g,v){var D=0;v.payloadUnitStartIndicator&&(D+=g[D]+1),v.type==="pat"?h(g.subarray(D),v):m(g.subarray(D),v)},h=function(g,v){v.section_number=g[7],v.last_section_number=g[8],f.pmtPid=(g[10]&31)<<8|g[11],v.pmtPid=f.pmtPid},m=function(g,v){var D,I,L,N;if(g[5]&1){for(f.programMapTable={video:null,audio:null,"timed-metadata":{}},D=(g[1]&15)<<8|g[2],I=3+D-4,L=(g[10]&15)<<8|g[11],N=12+L;N<I;){var M=g[N],G=(g[N+1]&31)<<8|g[N+2];M===us.H264_STREAM_TYPE&&f.programMapTable.video===null?f.programMapTable.video=G:M===us.ADTS_STREAM_TYPE&&f.programMapTable.audio===null?f.programMapTable.audio=G:M===us.METADATA_STREAM_TYPE&&(f.programMapTable["timed-metadata"][G]=M),N+=((g[N+3]&15)<<8|g[N+4])+5}v.programMapTable=f.programMapTable}},this.push=function(g){var v={},D=4;if(v.payloadUnitStartIndicator=!!(g[1]&64),v.pid=g[1]&31,v.pid<<=8,v.pid|=g[2],(g[3]&48)>>>4>1&&(D+=g[D]+1),v.pid===0)v.type="pat",u(g.subarray(D),v),this.trigger("data",v);else if(v.pid===this.pmtPid)for(v.type="pmt",u(g.subarray(D),v),this.trigger("data",v);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else this.programMapTable===void 0?this.packetsWaitingForPmt.push([g,D,v]):this.processPes_(g,D,v)},this.processPes_=function(g,v,D){D.pid===this.programMapTable.video?D.streamType=us.H264_STREAM_TYPE:D.pid===this.programMapTable.audio?D.streamType=us.ADTS_STREAM_TYPE:D.streamType=this.programMapTable["timed-metadata"][D.pid],D.type="pes",D.data=g.subarray(v),this.trigger("data",D)}},qr.prototype=new Uo,qr.STREAM_TYPES={h264:27,adts:15},sa=function(){var u=this,h=!1,m={data:[],size:0},f={data:[],size:0},g={data:[],size:0},v,D=function(L,N){var M;const G=L[0]<<16|L[1]<<8|L[2];N.data=new Uint8Array,G===1&&(N.packetLength=6+(L[4]<<8|L[5]),N.dataAlignmentIndicator=(L[6]&4)!==0,M=L[7],M&192&&(N.pts=(L[9]&14)<<27|(L[10]&255)<<20|(L[11]&254)<<12|(L[12]&255)<<5|(L[13]&254)>>>3,N.pts*=4,N.pts+=(L[13]&6)>>>1,N.dts=N.pts,M&64&&(N.dts=(L[14]&14)<<27|(L[15]&255)<<20|(L[16]&254)<<12|(L[17]&255)<<5|(L[18]&254)>>>3,N.dts*=4,N.dts+=(L[18]&6)>>>1)),N.data=L.subarray(9+L[8]))},I=function(L,N,M){var G=new Uint8Array(L.size),le={type:N},J=0,Ae=0,Re=!1,xt;if(!(!L.data.length||L.size<9)){for(le.trackId=L.data[0].pid,J=0;J<L.data.length;J++)xt=L.data[J],G.set(xt.data,Ae),Ae+=xt.data.byteLength;D(G,le),Re=N==="video"||le.packetLength<=L.size,(M||Re)&&(L.size=0,L.data.length=0),Re&&u.trigger("data",le)}};sa.prototype.init.call(this),this.push=function(L){({pat:function(){},pes:function(){var N,M;switch(L.streamType){case us.H264_STREAM_TYPE:N=m,M="video";break;case us.ADTS_STREAM_TYPE:N=f,M="audio";break;case us.METADATA_STREAM_TYPE:N=g,M="timed-metadata";break;default:return}L.payloadUnitStartIndicator&&I(N,M,!0),N.data.push(L),N.size+=L.data.byteLength},pmt:function(){var N={type:"metadata",tracks:[]};v=L.programMapTable,v.video!==null&&N.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+v.video,codec:"avc",type:"video"}),v.audio!==null&&N.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+v.audio,codec:"adts",type:"audio"}),h=!0,u.trigger("data",N)}})[L.type]()},this.reset=function(){m.size=0,m.data.length=0,f.size=0,f.data.length=0,this.trigger("reset")},this.flushStreams_=function(){I(m,"video"),I(f,"audio"),I(g,"timed-metadata")},this.flush=function(){if(!h&&v){var L={type:"metadata",tracks:[]};v.video!==null&&L.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+v.video,codec:"avc",type:"video"}),v.audio!==null&&L.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+v.audio,codec:"adts",type:"audio"}),u.trigger("data",L)}h=!1,this.flushStreams_(),this.trigger("done")}},sa.prototype=new Uo;var Uc={PAT_PID:0,MP2T_PACKET_LENGTH:tr,TransportPacketStream:ta,TransportParseStream:qr,ElementaryStream:sa,TimestampRolloverStream:Ty,CaptionStream:$o.CaptionStream,Cea608Stream:$o.Cea608Stream,Cea708Stream:$o.Cea708Stream,MetadataStream:by};for(var Ho in us)us.hasOwnProperty(Ho)&&(Uc[Ho]=us[Ho]);var Sy=Uc,Ey=s,xy=Ue.ONE_SECOND_IN_TS,ia,$c=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];ia=function(u){var h,m=0;ia.prototype.init.call(this),this.skipWarn_=function(f,g){this.trigger("log",{level:"warn",message:`adts skiping bytes ${f} to ${g} in frame ${m} outside syncword`})},this.push=function(f){var g=0,v,D,I,L,N;if(u||(m=0),f.type==="audio"){h&&h.length?(I=h,h=new Uint8Array(I.byteLength+f.data.byteLength),h.set(I),h.set(f.data,I.byteLength)):h=f.data;for(var M;g+7<h.length;){if(h[g]!==255||(h[g+1]&246)!==240){typeof M!="number"&&(M=g),g++;continue}if(typeof M=="number"&&(this.skipWarn_(M,g),M=null),D=(~h[g+1]&1)*2,v=(h[g+3]&3)<<11|h[g+4]<<3|(h[g+5]&224)>>5,L=((h[g+6]&3)+1)*1024,N=L*xy/$c[(h[g+2]&60)>>>2],h.byteLength-g<v)break;this.trigger("data",{pts:f.pts+m*N,dts:f.dts+m*N,sampleCount:L,audioobjecttype:(h[g+2]>>>6&3)+1,channelcount:(h[g+2]&1)<<2|(h[g+3]&192)>>>6,samplerate:$c[(h[g+2]&60)>>>2],samplingfrequencyindex:(h[g+2]&60)>>>2,samplesize:16,data:h.subarray(g+7+D,g+v)}),m++,g+=v}typeof M=="number"&&(this.skipWarn_(M,g),M=null),h=h.subarray(g)}},this.flush=function(){m=0,this.trigger("done")},this.reset=function(){h=void 0,this.trigger("reset")},this.endTimeline=function(){h=void 0,this.trigger("endedtimeline")}},ia.prototype=new Ey;var Cy=ia,jc;jc=function(u){var h=u.byteLength,m=0,f=0;this.length=function(){return 8*h},this.bitsAvailable=function(){return 8*h+f},this.loadWord=function(){var g=u.byteLength-h,v=new Uint8Array(4),D=Math.min(4,h);if(D===0)throw new Error("no bytes available");v.set(u.subarray(g,g+D)),m=new DataView(v.buffer).getUint32(0),f=D*8,h-=D},this.skipBits=function(g){var v;f>g?(m<<=g,f-=g):(g-=f,v=Math.floor(g/8),g-=v*8,h-=v,this.loadWord(),m<<=g,f-=g)},this.readBits=function(g){var v=Math.min(f,g),D=m>>>32-v;return f-=v,f>0?m<<=v:h>0&&this.loadWord(),v=g-v,v>0?D<<v|this.readBits(v):D},this.skipLeadingZeros=function(){var g;for(g=0;g<f;++g)if(m&2147483648>>>g)return m<<=g,f-=g,g;return this.loadWord(),g+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var g=this.skipLeadingZeros();return this.readBits(g+1)-1},this.readExpGolomb=function(){var g=this.readUnsignedExpGolomb();return 1&g?1+g>>>1:-1*(g>>>1)},this.readBoolean=function(){return this.readBits(1)===1},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var wy=jc,Hc=s,Ay=wy,ra,na,qc;na=function(){var u=0,h,m;na.prototype.init.call(this),this.push=function(f){var g;m?(g=new Uint8Array(m.byteLength+f.data.byteLength),g.set(m),g.set(f.data,m.byteLength),m=g):m=f.data;for(var v=m.byteLength;u<v-3;u++)if(m[u+2]===1){h=u+5;break}for(;h<v;)switch(m[h]){case 0:if(m[h-1]!==0){h+=2;break}else if(m[h-2]!==0){h++;break}u+3!==h-2&&this.trigger("data",m.subarray(u+3,h-2));do h++;while(m[h]!==1&&h<v);u=h-2,h+=3;break;case 1:if(m[h-1]!==0||m[h-2]!==0){h+=3;break}this.trigger("data",m.subarray(u+3,h-2)),u=h-2,h+=3;break;default:h+=3;break}m=m.subarray(u),h-=u,u=0},this.reset=function(){m=null,u=0,this.trigger("reset")},this.flush=function(){m&&m.byteLength>3&&this.trigger("data",m.subarray(u+3)),m=null,u=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},na.prototype=new Hc,qc={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},ra=function(){var u=new na,h,m,f,g,v,D,I;ra.prototype.init.call(this),h=this,this.push=function(L){L.type==="video"&&(m=L.trackId,f=L.pts,g=L.dts,u.push(L))},u.on("data",function(L){var N={trackId:m,pts:f,dts:g,data:L,nalUnitTypeCode:L[0]&31};switch(N.nalUnitTypeCode){case 5:N.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:N.nalUnitType="sei_rbsp",N.escapedRBSP=v(L.subarray(1));break;case 7:N.nalUnitType="seq_parameter_set_rbsp",N.escapedRBSP=v(L.subarray(1)),N.config=D(N.escapedRBSP);break;case 8:N.nalUnitType="pic_parameter_set_rbsp";break;case 9:N.nalUnitType="access_unit_delimiter_rbsp";break}h.trigger("data",N)}),u.on("done",function(){h.trigger("done")}),u.on("partialdone",function(){h.trigger("partialdone")}),u.on("reset",function(){h.trigger("reset")}),u.on("endedtimeline",function(){h.trigger("endedtimeline")}),this.flush=function(){u.flush()},this.partialFlush=function(){u.partialFlush()},this.reset=function(){u.reset()},this.endTimeline=function(){u.endTimeline()},I=function(L,N){var M=8,G=8,le,J;for(le=0;le<L;le++)G!==0&&(J=N.readExpGolomb(),G=(M+J+256)%256),M=G===0?M:G},v=function(L){for(var N=L.byteLength,M=[],G=1,le,J;G<N-2;)L[G]===0&&L[G+1]===0&&L[G+2]===3?(M.push(G+2),G+=2):G++;if(M.length===0)return L;le=N-M.length,J=new Uint8Array(le);var Ae=0;for(G=0;G<le;Ae++,G++)Ae===M[0]&&(Ae++,M.shift()),J[G]=L[Ae];return J},D=function(L){var N=0,M=0,G=0,le=0,J,Ae,Re,xt,es,fi,bd,Td,Sd,Yo,Ed,ht=[1,1],xd,pi;if(J=new Ay(L),Ae=J.readUnsignedByte(),xt=J.readUnsignedByte(),Re=J.readUnsignedByte(),J.skipUnsignedExpGolomb(),qc[Ae]&&(es=J.readUnsignedExpGolomb(),es===3&&J.skipBits(1),J.skipUnsignedExpGolomb(),J.skipUnsignedExpGolomb(),J.skipBits(1),J.readBoolean()))for(Ed=es!==3?8:12,pi=0;pi<Ed;pi++)J.readBoolean()&&(pi<6?I(16,J):I(64,J));if(J.skipUnsignedExpGolomb(),fi=J.readUnsignedExpGolomb(),fi===0)J.readUnsignedExpGolomb();else if(fi===1)for(J.skipBits(1),J.skipExpGolomb(),J.skipExpGolomb(),bd=J.readUnsignedExpGolomb(),pi=0;pi<bd;pi++)J.skipExpGolomb();if(J.skipUnsignedExpGolomb(),J.skipBits(1),Td=J.readUnsignedExpGolomb(),Sd=J.readUnsignedExpGolomb(),Yo=J.readBits(1),Yo===0&&J.skipBits(1),J.skipBits(1),J.readBoolean()&&(N=J.readUnsignedExpGolomb(),M=J.readUnsignedExpGolomb(),G=J.readUnsignedExpGolomb(),le=J.readUnsignedExpGolomb()),J.readBoolean()&&J.readBoolean()){switch(xd=J.readUnsignedByte(),xd){case 1:ht=[1,1];break;case 2:ht=[12,11];break;case 3:ht=[10,11];break;case 4:ht=[16,11];break;case 5:ht=[40,33];break;
473case 6:ht=[24,11];break;case 7:ht=[20,11];break;case 8:ht=[32,11];break;case 9:ht=[80,33];break;case 10:ht=[18,11];break;case 11:ht=[15,11];break;case 12:ht=[64,33];break;case 13:ht=[160,99];break;case 14:ht=[4,3];break;case 15:ht=[3,2];break;case 16:ht=[2,1];break;case 255:{ht=[J.readUnsignedByte()<<8|J.readUnsignedByte(),J.readUnsignedByte()<<8|J.readUnsignedByte()];break}}ht&&ht[0]/ht[1]}return{profileIdc:Ae,levelIdc:Re,profileCompatibility:xt,width:(Td+1)*16-N*2-M*2,height:(2-Yo)*(Sd+1)*16-G*2-le*2,sarRatio:ht}}},ra.prototype=new Hc;var ky={H264Stream:ra},Dy=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Vc=function(u,h){var m=u[h+6]<<21|u[h+7]<<14|u[h+8]<<7|u[h+9],f=u[h+5],g=(f&16)>>4;return m=m>=0?m:0,g?m+20:m+10},zc=function(u,h){return u.length-h<10||u[h]!==73||u[h+1]!==68||u[h+2]!==51?h:(h+=Vc(u,h),zc(u,h))},Iy=function(u){var h=zc(u,0);return u.length>=h+2&&(u[h]&255)===255&&(u[h+1]&240)===240&&(u[h+1]&22)===16},Gc=function(u){return u[0]<<21|u[1]<<14|u[2]<<7|u[3]},Py=function(u,h,m){var f,g="";for(f=h;f<m;f++)g+="%"+("00"+u[f].toString(16)).slice(-2);return g},Ly=function(u,h,m){return unescape(Py(u,h,m))},Oy=function(u,h){var m=(u[h+5]&224)>>5,f=u[h+4]<<3,g=u[h+3]&6144;return g|f|m},Ny=function(u,h){return u[h]===73&&u[h+1]===68&&u[h+2]===51?"timed-metadata":u[h]&!0&&(u[h+1]&240)===240?"audio":null},Ry=function(u){for(var h=0;h+5<u.length;){if(u[h]!==255||(u[h+1]&246)!==240){h++;continue}return Dy[(u[h+2]&60)>>>2]}return null},My=function(u){var h,m,f,g;h=10,u[5]&64&&(h+=4,h+=Gc(u.subarray(10,14)));do{if(m=Gc(u.subarray(h+4,h+8)),m<1)return null;if(g=String.fromCharCode(u[h],u[h+1],u[h+2],u[h+3]),g==="PRIV"){f=u.subarray(h+10,h+m+10);for(var v=0;v<f.byteLength;v++)if(f[v]===0){var D=Ly(f,0,v);if(D==="com.apple.streaming.transportStreamTimestamp"){var I=f.subarray(v+1),L=(I[3]&1)<<30|I[4]<<22|I[5]<<14|I[6]<<6|I[7]>>>2;return L*=4,L+=I[7]&3,L}break}}h+=10,h+=m}while(h<u.byteLength);return null},qo={isLikelyAacData:Iy,parseId3TagSize:Vc,parseAdtsSize:Oy,parseType:Ny,parseSampleRate:Ry,parseAacTimestamp:My},Fy=s,Wc=qo,aa;aa=function(){var u=new Uint8Array,h=0;aa.prototype.init.call(this),this.setTimestamp=function(m){h=m},this.push=function(m){var f=0,g=0,v,D,I,L;for(u.length?(L=u.length,u=new Uint8Array(m.byteLength+L),u.set(u.subarray(0,L)),u.set(m,L)):u=m;u.length-g>=3;){if(u[g]===73&&u[g+1]===68&&u[g+2]===51){if(u.length-g<10||(f=W
vendor: 38,880 bytes, line 473
473c.parseId3TagSize(u,g),g+f>u.length))break;D={type:"timed-metadata",data:u.subarray(g,g+f)},this.trigger("data",D),g+=f;continue}else if((u[g]&255)===255&&(u[g+1]&240)===240){if(u.length-g<7||(f=Wc.parseAdtsSize(u,g),g+f>u.length))break;I={type:"audio",data:u.subarray(g,g+f),pts:h,dts:h},this.trigger("data",I),g+=f;continue}g++}v=u.length-g,v>0?u=u.subarray(g):u=new Uint8Array},this.reset=function(){u=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){u=new Uint8Array,this.trigger("endedtimeline")}},aa.prototype=new Fy;var By=aa,Uy=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],$y=Uy,jy=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Hy=jy,oa=s,Vr=me,zr=ge,la=Bl,cs=Me,As=Sy,ua=Ue,Xc=Cy,qy=ky.H264Stream,Vy=By,zy=qo.isLikelyAacData,Gy=Ue.ONE_SECOND_IN_TS,Kc=$y,Yc=Hy,ca,Gr,da,di,Wy=function(u,h){h.stream=u,this.trigger("log",h)},Qc=function(u,h){for(var m=Object.keys(h),f=0;f<m.length;f++){var g=m[f];g==="headOfPipeline"||!h[g].on||h[g].on("log",Wy.bind(u,g))}},Jc=function(u,h){var m;if(u.length!==h.length)return!1;for(m=0;m<u.length;m++)if(u[m]!==h[m])return!1;return!0},Zc=function(u,h,m,f,g,v){var D=m-h,I=f-h,L=g-m;return{start:{dts:u,pts:u+D},end:{dts:u+I,pts:u+L},prependedContentDuration:v,baseMediaDecodeTime:u}};Gr=function(u,h){var m=[],f,g=0,v=0,D=1/0;h=h||{},f=h.firstSequenceNumber||0,Gr.prototype.init.call(this),this.push=function(I){cs.collectDtsInfo(u,I),u&&Kc.forEach(function(L){u[L]=I[L]}),m.push(I)},this.setEarliestDts=function(I){g=I},this.setVideoBaseMediaDecodeTime=function(I){D=I},this.setAudioAppendStart=function(I){v=I},this.flush=function(){var I,L,N,M,G,le,J;if(m.length===0){this.trigger("done","AudioSegmentStream");return}I=la.trimAdtsFramesByEarliestDts(m,u,g),u.baseMediaDecodeTime=cs.calculateTrackBaseMediaDecodeTime(u,h.keepOriginalTimestamps),J=la.prefixWithSilence(u,I,v,D),u.samples=la.generateSampleTable(I),N=Vr.mdat(la.concatenateFrameData(I)),m=[],L=Vr.moof(f,[u]),M=new Uint8Array(L.byteLength+N.byteLength),f++,M.set(L),M.set(N,L.byteLength),cs.clearDtsInfo(u),G=Math.ceil(Gy*1024/u.samplerate),I.length&&(le=I.length*G,this.trigger("segmentTimingInfo",Zc(ua.audioTsToVideoTs(u.baseMediaDecodeTime,u.samplerate),I[0].dts,I[0].pts,I[0].dts+le,I[0].pts+le,J||0)),this.trigger("timingInfo",{start:I[0].pts,end:I[0].pts+le})),this.trigger("data",{track:u,boxes:M}),this.trigger("done","AudioSegmentStream")},this.reset=function(){cs.clearDtsInfo(u),m=[],this.trigger("reset")}},Gr.prototype=new oa,ca=function(u,h){var m,f=[],g=[],v,D;h=h||{},m=h.firstSequenceNumber||0,ca.prototype.init.call(this),delete u.minPTS,this.gopCache_=[],this.push=function(I){cs.collectDtsInfo(u,I),I.nalUnitType==="seq_parameter_set_rbsp"&&!v&&(v=I.config,u.sps=[I.data],Yc.forEach(function(L){u[L]=v[L]},this)),I.nalUnitType==="pic_parameter_set_rbsp"&&!D&&(D=I.data,u.pps=[I.data]),f.push(I)},this.flush=function(){for(var I,L,N,M,G,le,J=0,Ae,Re;f.length&&f[0].nalUnitType!=="access_unit_delimiter_rbsp";)f.shift();if(f.length===0){this.resetStream_(),this.trigger("done","VideoSegmentStream");return}if(I=zr.groupNalsIntoFrames(f),N=zr.groupFramesIntoGops(I),N[0][0].keyFrame||(L=this.getGopForFusion_(f[0],u),L?(J=L.duration,N.unshift(L),N.byteLength+=L.byteLength,N.nalCount+=L.nalCount,N.pts=L.pts,N.dts=L.dts,N.duration+=L.duration):N=zr.extendFirstKeyFrame(N)),g.length){var xt;if(h.alignGopsAtEnd?xt=this.alignGopsAtEnd_(N):xt=this.alignGopsAtStart_(N),!xt){this.gopCache_.unshift({gop:N.pop(),pps:u.pps,sps:u.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),f=[],this.resetStream_(),this.trigger("done","VideoSegmentStream");return}cs.clearDtsInfo(u),N=xt}cs.collectDtsInfo(u,N),u.samples=zr.generateSampleTable(N),G=Vr.mdat(zr.concatenateNalData(N)),u.baseMediaDecodeTime=cs.calculateTrackBaseMediaDecodeTime(u,h.keepOriginalTimestamps),this.trigger("processedGopsInfo",N.map(function(es){return{pts:es.pts,dts:es.dts,byteLength:es.byteLength}})),Ae=N[0],Re=N[N.length-1],this.trigger("segmentTimingInfo",Zc(u.baseMediaDecodeTime,Ae.dts,Ae.pts,Re.dts+Re.duration,Re.pts+Re.duration,J)),this.trigger("timingInfo",{start:N[0].pts,end:N[N.length-1].pts+N[N.length-1].duration}),this.gopCache_.unshift({gop:N.pop(),pps:u.pps,sps:u.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),f=[],this.trigger("baseMediaDecodeTime",u.baseMediaDecodeTime),this.trigger("timelineStartInfo",u.timelineStartInfo),M=Vr.moof(m,[u]),le=new Uint8Array(M.byteLength+G.byteLength),m++,le.set(M),le.set(G,M.byteLength),this.trigger("data",{track:u,boxes:le}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),f=[],this.gopCache_.length=0,g.length=0,this.trigger("reset")},this.resetStream_=function(){cs.clearDtsInfo(u),v=void 0,D=void 0},this.getGopForFusion_=function(I){var L=45e3,N=1/0,M,G,le,J,Ae;for(Ae=0;Ae<this.gopCache_.length;Ae++)J=this.gopCache_[Ae],le=J.gop,!(!(u.pps&&Jc(u.pps[0],J.pps[0]))||!(u.sps&&Jc(u.sps[0],J.sps[0])))&&(le.dts<u.timelineStartInfo.dts||(M=I.dts-le.dts-le.duration,M>=-1e4&&M<=L&&(!G||N>M)&&(G=J,N=M)));return G?G.gop:null},this.alignGopsAtStart_=function(I){var L,N,M,G,le,J,Ae,Re;for(le=I.byteLength,J=I.nalCount,Ae=I.duration,L=N=0;L<g.length&&N<I.length&&(M=g[L],G=I[N],M.pts!==G.pts);){if(G.pts>M.pts){L++;continue}N++,le-=G.byteLength,J-=G.nalCount,Ae-=G.duration}return N===0?I:N===I.length?null:(Re=I.slice(N),Re.byteLength=le,Re.duration=Ae,Re.nalCount=J,Re.pts=Re[0].pts,Re.dts=Re[0].dts,Re)},this.alignGopsAtEnd_=function(I){var L,N,M,G,le,J;for(L=g.length-1,N=I.length-1,le=null,J=!1;L>=0&&N>=0;){if(M=g[L],G=I[N],M.pts===G.pts){J=!0;break}if(M.pts>G.pts){L--;continue}L===g.length-1&&(le=N),N--}if(!J&&le===null)return null;var Ae;if(J?Ae=N:Ae=le,Ae===0)return I;var Re=I.slice(Ae),xt=Re.reduce(function(es,fi){return es.byteLength+=fi.byteLength,es.duration+=fi.duration,es.nalCount+=fi.nalCount,es},{byteLength:0,duration:0,nalCount:0});return Re.byteLength=xt.byteLength,Re.duration=xt.duration,Re.nalCount=xt.nalCount,Re.pts=Re[0].pts,Re.dts=Re[0].dts,Re},this.alignGopsWith=function(I){g=I}},ca.prototype=new oa,di=function(u,h){this.numberOfTracks=0,this.metadataStream=h,u=u||{},typeof u.remux<"u"?this.remuxTracks=!!u.remux:this.remuxTracks=!0,typeof u.keepOriginalTimestamps=="boolean"?this.keepOriginalTimestamps=u.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,di.prototype.init.call(this),this.push=function(m){if(m.content||m.text)return this.pendingCaptions.push(m);if(m.frames)return this.pendingMetadata.push(m);this.pendingTracks.push(m.track),this.pendingBytes+=m.boxes.byteLength,m.track.type==="video"&&(this.videoTrack=m.track,this.pendingBoxes.push(m.boxes)),m.track.type==="audio"&&(this.audioTrack=m.track,this.pendingBoxes.unshift(m.boxes))}},di.prototype=new oa,di.prototype.flush=function(u){var h=0,m={captions:[],captionStreams:{},metadata:[],info:{}},f,g,v,D=0,I;if(this.pendingTracks.length<this.numberOfTracks){if(u!=="VideoSegmentStream"&&u!=="AudioSegmentStream"||this.remuxTracks)return;if(this.pendingTracks.length===0){this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}if(this.videoTrack?(D=this.videoTrack.timelineStartInfo.pts,Yc.forEach(function(L){m.info[L]=this.videoTrack[L]},this)):this.audioTrack&&(D=this.audioTrack.timelineStartInfo.pts,Kc.forEach(function(L){m.info[L]=this.audioTrack[L]},this)),this.videoTrack||this.audioTrack){for(this.pendingTracks.length===1?m.type=this.pendingTracks[0].type:m.type="combined",this.emittedTracks+=this.pendingTracks.length,v=Vr.initSegment(this.pendingTracks),m.initSegment=new Uint8Array(v.byteLength),m.initSegment.set(v),m.data=new Uint8Array(this.pendingBytes),I=0;I<this.pendingBoxes.length;I++)m.data.set(this.pendingBoxes[I],h),h+=this.pendingBoxes[I].byteLength;for(I=0;I<this.pendingCaptions.length;I++)f=this.pendingCaptions[I],f.startTime=ua.metadataTsToSeconds(f.startPts,D,this.keepOriginalTimestamps),f.endTime=ua.metadataTsToSeconds(f.endPts,D,this.keepOriginalTimestamps),m.captionStreams[f.stream]=!0,m.captions.push(f);for(I=0;I<this.pendingMetadata.length;I++)g=this.pendingMetadata[I],g.cueTime=ua.metadataTsToSeconds(g.pts,D,this.keepOriginalTimestamps),m.metadata.push(g);for(m.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",m),I=0;I<m.captions.length;I++)f=m.captions[I],this.trigger("caption",f);for(I=0;I<m.metadata.length;I++)g=m.metadata[I],this.trigger("id3Frame",g)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},di.prototype.setRemux=function(u){this.remuxTracks=u},da=function(u){var h=this,m=!0,f,g;da.prototype.init.call(this),u=u||{},this.baseMediaDecodeTime=u.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var v={};this.transmuxPipeline_=v,v.type="aac",v.metadataStream=new As.MetadataStream,v.aacStream=new Vy,v.audioTimestampRolloverStream=new As.TimestampRolloverStream("audio"),v.timedMetadataTimestampRolloverStream=new As.TimestampRolloverStream("timed-metadata"),v.adtsStream=new Xc,v.coalesceStream=new di(u,v.metadataStream),v.headOfPipeline=v.aacStream,v.aacStream.pipe(v.audioTimestampRolloverStream).pipe(v.adtsStream),v.aacStream.pipe(v.timedMetadataTimestampRolloverStream).pipe(v.metadataStream).pipe(v.coalesceStream),v.metadataStream.on("timestamp",function(D){v.aacStream.setTimestamp(D.timeStamp)}),v.aacStream.on("data",function(D){D.type!=="timed-metadata"&&D.type!=="audio"||v.audioSegmentStream||(g=g||{timelineStartInfo:{baseMediaDecodeTime:h.baseMediaDecodeTime},codec:"adts",type:"audio"},v.coalesceStream.numberOfTracks++,v.audioSegmentStream=new Gr(g,u),v.audioSegmentStream.on("log",h.getLogTrigger_("audioSegmentStream")),v.audioSegmentStream.on("timingInfo",h.trigger.bind(h,"audioTimingInfo")),v.adtsStream.pipe(v.audioSegmentStream).pipe(v.coalesceStream),h.trigger("trackinfo",{hasAudio:!!g,hasVideo:!!f}))}),v.coalesceStream.on("data",this.trigger.bind(this,"data")),v.coalesceStream.on("done",this.trigger.bind(this,"done")),Qc(this,v)},this.setupTsPipeline=function(){var v={};this.transmuxPipeline_=v,v.type="ts",v.metadataStream=new As.MetadataStream,v.packetStream=new As.TransportPacketStream,v.parseStream=new As.TransportParseStream,v.elementaryStream=new As.ElementaryStream,v.timestampRolloverStream=new As.TimestampRolloverStream,v.adtsStream=new Xc,v.h264Stream=new qy,v.captionStream=new As.CaptionStream(u),v.coalesceStream=new di(u,v.metadataStream),v.headOfPipeline=v.packetStream,v.packetStream.pipe(v.parseStream).pipe(v.elementaryStream).pipe(v.timestampRolloverStream),v.timestampRolloverStream.pipe(v.h264Stream),v.timestampRolloverStream.pipe(v.adtsStream),v.timestampRolloverStream.pipe(v.metadataStream).pipe(v.coalesceStream),v.h264Stream.pipe(v.captionStream).pipe(v.coalesceStream),v.elementaryStream.on("data",function(D){var I;if(D.type==="metadata"){for(I=D.tracks.length;I--;)!f&&D.tracks[I].type==="video"?(f=D.tracks[I],f.timelineStartInfo.baseMediaDecodeTime=h.baseMediaDecodeTime):!g&&D.tracks[I].type==="audio"&&(g=D.tracks[I],g.timelineStartInfo.baseMediaDecodeTime=h.baseMediaDecodeTime);f&&!v.videoSegmentStream&&(v.coalesceStream.numberOfTracks++,v.videoSegmentStream=new ca(f,u),v.videoSegmentStream.on("log",h.getLogTrigger_("videoSegmentStream")),v.videoSegmentStream.on("timelineStartInfo",function(L){g&&!u.keepOriginalTimestamps&&(g.timelineStartInfo=L,v.audioSegmentStream.setEarliestDts(L.dts-h.baseMediaDecodeTime))}),v.videoSegmentStream.on("processedGopsInfo",h.trigger.bind(h,"gopInfo")),v.videoSegmentStream.on("segmentTimingInfo",h.trigger.bind(h,"videoSegmentTimingInfo")),v.videoSegmentStream.on("baseMediaDecodeTime",function(L){g&&v.audioSegmentStream.setVideoBaseMediaDecodeTime(L)}),v.videoSegmentStream.on("timingInfo",h.trigger.bind(h,"videoTimingInfo")),v.h264Stream.pipe(v.videoSegmentStream).pipe(v.coalesceStream)),g&&!v.audioSegmentStream&&(v.coalesceStream.numberOfTracks++,v.audioSegmentStream=new Gr(g,u),v.audioSegmentStream.on("log",h.getLogTrigger_("audioSegmentStream")),v.audioSegmentStream.on("timingInfo",h.trigger.bind(h,"audioTimingInfo")),v.audioSegmentStream.on("segmentTimingInfo",h.trigger.bind(h,"audioSegmentTimingInfo")),v.adtsStream.pipe(v.audioSegmentStream).pipe(v.coalesceStream)),h.trigger("trackinfo",{hasAudio:!!g,hasVideo:!!f})}}),v.coalesceStream.on("data",this.trigger.bind(this,"data")),v.coalesceStream.on("id3Frame",function(D){D.dispatchType=v.metadataStream.dispatchType,h.trigger("id3Frame",D)}),v.coalesceStream.on("caption",this.trigger.bind(this,"caption")),v.coalesceStream.on("done",this.trigger.bind(this,"done")),Qc(this,v)},this.setBaseMediaDecodeTime=function(v){var D=this.transmuxPipeline_;u.keepOriginalTimestamps||(this.baseMediaDecodeTime=v),g&&(g.timelineStartInfo.dts=void 0,g.timelineStartInfo.pts=void 0,cs.clearDtsInfo(g),D.audioTimestampRolloverStream&&D.audioTimestampRolloverStream.discontinuity()),f&&(D.videoSegmentStream&&(D.videoSegmentStream.gopCache_=[]),f.timelineStartInfo.dts=void 0,f.timelineStartInfo.pts=void 0,cs.clearDtsInfo(f),D.captionStream.reset()),D.timestampRolloverStream&&D.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(v){g&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(v)},this.setRemux=function(v){var D=this.transmuxPipeline_;u.remux=v,D&&D.coalesceStream&&D.coalesceStream.setRemux(v)},this.alignGopsWith=function(v){f&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(v)},this.getLogTrigger_=function(v){var D=this;return function(I){I.stream=v,D.trigger("log",I)}},this.push=function(v){if(m){var D=zy(v);D&&this.transmuxPipeline_.type!=="aac"?this.setupAacPipeline():!D&&this.transmuxPipeline_.type!=="ts"&&this.setupTsPipeline(),m=!1}this.transmuxPipeline_.headOfPipeline.push(v)},this.flush=function(){m=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},da.prototype=new oa;var Xy={Transmuxer:da},Ky=function(u){return u>>>0},Yy=function(u){return("00"+u.toString(16)).slice(-2)},ha={toUnsigned:Ky,toHexString:Yy},Qy=function(u){var h="";return h+=String.fromCharCode(u[0]),h+=String.fromCharCode(u[1]),h+=String.fromCharCode(u[2]),h+=String.fromCharCode(u[3]),h},ed=Qy,Jy=ha.toUnsigned,Zy=ed,td=function(u,h){var m=[],f,g,v,D,I;if(!h.length)return null;for(f=0;f<u.byteLength;)g=Jy(u[f]<<24|u[f+1]<<16|u[f+2]<<8|u[f+3]),v=Zy(u.subarray(f+4,f+8)),D=g>1?f+g:u.byteLength,v===h[0]&&(h.length===1?m.push(u.subarray(f+8,D)):(I=td(u.subarray(f+8,D),h.slice(1)),I.length&&(m=m.concat(I)))),f=D;return m},sd=td,e0=ha.toUnsigned,t0=n.getUint64,s0=function(u){var h={version:u[0],flags:new Uint8Array(u.subarray(1,4))};return h.version===1?h.baseMediaDecodeTime=t0(u.subarray(4)):h.baseMediaDecodeTime=e0(u[4]<<24|u[5]<<16|u[6]<<8|u[7]),h},id=s0,i0=function(u){return{isLeading:(u[0]&12)>>>2,dependsOn:u[0]&3,isDependedOn:(u[1]&192)>>>6,hasRedundancy:(u[1]&48)>>>4,paddingValue:(u[1]&14)>>>1,isNonSyncSample:u[1]&1,degradationPriority:u[2]<<8|u[3]}},r0=i0,rd=r0,n0=function(u){var h={version:u[0],flags:new Uint8Array(u.subarray(1,4)),samples:[]},m=new DataView(u.buffer,u.byteOffset,u.byteLength),f=h.flags[2]&1,g=h.flags[2]&4,v=h.flags[1]&1,D=h.flags[1]&2,I=h.flags[1]&4,L=h.flags[1]&8,N=m.getUint32(4),M=8,G;for(f&&(h.dataOffset=m.getInt32(M),M+=4),g&&N&&(G={flags:rd(u.subarray(M,M+4))},M+=4,v&&(G.duration=m.getUint32(M),M+=4),D&&(G.size=m.getUint32(M),M+=4),L&&(h.version===1?G.compositionTimeOffset=m.getInt32(M):G.compositionTimeOffset=m.getUint32(M),M+=4),h.samples.push(G),N--);N--;)G={},v&&(G.duration=m.getUint32(M),M+=4),D&&(G.size=m.getUint32(M),M+=4),I&&(G.flags=rd(u.subarray(M,M+4)),M+=4),L&&(h.version===1?G.compositionTimeOffset=m.getInt32(M):G.compositionTimeOffset=m.getUint32(M),M+=4),h.samples.push(G);return h},nd=n0,a0=function(u){var h=new DataView(u.buffer,u.byteOffset,u.byteLength),m={version:u[0],flags:new Uint8Array(u.subarray(1,4)),trackId:h.getUint32(4)},f=m.flags[2]&1,g=m.flags[2]&2,v=m.flags[2]&8,D=m.flags[2]&16,I=m.flags[2]&32,L=m.flags[0]&65536,N=m.flags[0]&131072,M;return M=8,f&&(M+=4,m.baseDataOffset=h.getUint32(12),M+=4),g&&(m.sampleDescriptionIndex=h.getUint32(M),M+=4),v&&(m.defaultSampleDuration=h.getUint32(M),M+=4),D&&(m.defaultSampleSize=h.getUint32(M),M+=4),I&&(m.defaultSampleFlags=h.getUint32(M)),L&&(m.durationIsEmpty=!0),!f&&N&&(m.baseDataOffsetIsMoof=!0),m},ad=a0,Wr;typeof window<"u"?Wr=window:typeof t<"u"?Wr=t:typeof self<"u"?Wr=self:Wr={};var od=Wr,o0=pn.discardEmulationPreventionBytes,l0=Nc.CaptionStream,Xr=sd,u0=id,c0=nd,d0=ad,ld=od,h0=function(u,h){for(var m=u,f=0;f<h.length;f++){var g=h[f];if(m<g.size)return g;m-=g.size}return null},f0=function(u,h,m){var f=new DataView(u.buffer,u.byteOffset,u.byteLength),g={logs:[],seiNals:[]},v,D,I,L;for(D=0;D+4<u.length;D+=I)if(I=f.getUint32(D),D+=4,!(I<=0))switch(u[D]&31){case 6:var N=u.subarray(D+1,D+1+I),M=h0(D,h);if(v={nalUnitType:"sei_rbsp",size:I,data:N,escapedRBSP:o0(N),trackId:m},M)v.pts=M.pts,v.dts=M.dts,L=M;else if(L)v.pts=L.pts,v.dts=L.dts;else{g.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+D+" for trackId "+m+". See mux.js#223."});break}g.seiNals.push(v);break}return g},p0=function(u,h,m){var f=h,g=m.defaultSampleDuration||0,v=m.defaultSampleSize||0,D=m.trackId,I=[];return u.forEach(function(L){var N=c0(L),M=N.samples;M.forEach(function(G){G.duration===void 0&&(G.duration=g),G.size===void 0&&(G.size=v),G.trackId=D,G.dts=f,G.compositionTimeOffset===void 0&&(G.compositionTimeOffset=0),typeof f=="bigint"?(G.pts=f+ld.BigInt(G.compositionTimeOffset),f+=ld.BigInt(G.duration)):(G.pts=f+G.compositionTimeOffset,f+=G.duration)}),I=I.concat(M)}),I},m0=function(u,h){var m=Xr(u,["moof","traf"]),f=Xr(u,["mdat"]),g={},v=[];return f.forEach(function(D,I){var L=m[I];v.push({mdat:D,traf:L})}),v.forEach(function(D){var I=D.mdat,L=D.traf,N=Xr(L,["tfhd"]),M=d0(N[0]),G=M.trackId,le=Xr(L,["tfdt"]),J=le.length>0?u0(le[0]).baseMediaDecodeTime:0,Ae=Xr(L,["trun"]),Re,xt;h===G&&Ae.length>0&&(Re=p0(Ae,J,M),xt=f0(I,Re,G),g[G]||(g[G]={seiNals:[],logs:[]}),g[G].seiNals=g[G].seiNals.concat(xt.seiNals),g[G].logs=g[G].logs.concat(xt.logs))}),g},g0=function(u,h,m){var f;if(h===null)return null;f=m0(u,h);var g=f[h]||{};return{seiNals:g.seiNals,logs:g.logs,timescale:m}},y0=function(){var u=!1,h,m,f,g,v,D;this.isInitialized=function(){return u},this.init=function(I){h=new l0,u=!0,D=I?I.isPartial:!1,h.on("data",function(L){L.startTime=L.startPts/g,L.endTime=L.endPts/g,v.captions.push(L),v.captionStreams[L.stream]=!0}),h.on("log",function(L){v.logs.push(L)})},this.isNewInit=function(I,L){return I&&I.length===0||L&&typeof L=="object"&&Object.keys(L).length===0?!1:f!==I[0]||g!==L[f]},this.parse=function(I,L,N){var M;if(this.isInitialized()){if(!L||!N)return null;if(this.isNewInit(L,N))f=L[0],g=N[f];else if(f===null||!g)return m.push(I),null}else return null;for(;m.length>0;){var G=m.shift();this.parse(G,L,N)}return M=g0(I,f,g),M&&M.logs&&(v.logs=v.logs.concat(M.logs)),M===null||!M.seiNals?v.logs.length?{logs:v.logs,captions:[],captionStreams:[]}:null:(this.pushNals(M.seiNals),this.flushStream(),v)},this.pushNals=function(I){if(!this.isInitialized()||!I||I.length===0)return null;I.forEach(function(L){h.push(L)})},this.flushStream=function(){if(!this.isInitialized())return null;D?h.partialFlush():h.flush()},this.clearParsedCaptions=function(){v.captions=[],v.captionStreams={},v.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;h.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){m=[],f=null,g=null,v?this.clearParsedCaptions():v={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},_0=y0,v0=function(u){for(var h=0,m=String.fromCharCode(u[h]),f="";m!=="\0";)f+=m,h++,m=String.fromCharCode(u[h]);return f+=m,f},b0={uint8ToCString:v0},fa=b0.uint8ToCString,T0=n.getUint64,S0=function(u){var h=4,m=u[0],f,g,v,D,I,L,N,M;if(m===0){f=fa(u.subarray(h)),h+=f.length,g=fa(u.subarray(h)),h+=g.length;var G=new DataView(u.buffer);v=G.getUint32(h),h+=4,I=G.getUint32(h),h+=4,L=G.getUint32(h),h+=4,N=G.getUint32(h),h+=4}else if(m===1){var G=new DataView(u.buffer);v=G.getUint32(h),h+=4,D=T0(u.subarray(h)),h+=8,L=G.getUint32(h),h+=4,N=G.getUint32(h),h+=4,f=fa(u.subarray(h)),h+=f.length,g=fa(u.subarray(h)),h+=g.length}M=new Uint8Array(u.subarray(h,u.byteLength));var le={scheme_id_uri:f,value:g,timescale:v||1,presentation_time:D,presentation_time_delta:I,event_duration:L,id:N,message_data:M};return x0(m,le)?le:void 0},E0=function(u,h,m,f){return u||u===0?u/h:f+m/h},x0=function(u,h){var m=h.scheme_id_uri!=="\0",f=u===0&&ud(h.presentation_time_delta)&&m,g=u===1&&ud(h.presentation_time)&&m;return!(u>1)&&f||g},ud=function(u){return u!==void 0||u!==null},C0={parseEmsgBox:S0,scaleTime:E0},pa=ha.toUnsigned,Kr=ha.toHexString,dt=sd,sr=ed,Vo=C0,w0=ad,A0=nd,k0=id,D0=n.getUint64,cd,dd,hd,fd,pd,zo,md,Go=od,I0=Bc.parseId3Frames;cd=function(u){var h={},m=dt(u,["moov","trak"]);return m.reduce(function(f,g){var v,D,I,L,N;return v=dt(g,["tkhd"])[0],!v||(D=v[0],I=D===0?12:20,L=pa(v[I]<<24|v[I+1]<<16|v[I+2]<<8|v[I+3]),N=dt(g,["mdia","mdhd"])[0],!N)?null:(D=N[0],I=D===0?12:20,f[L]=pa(N[I]<<24|N[I+1]<<16|N[I+2]<<8|N[I+3]),f)},h)},dd=function(u,h){var m;m=dt(h,["moof","traf"]);var f=m.reduce(function(g,v){var D=dt(v,["tfhd"])[0],I=pa(D[4]<<24|D[5]<<16|D[6]<<8|D[7]),L=u[I]||9e4,N=dt(v,["tfdt"])[0],M=new DataView(N.buffer,N.byteOffset,N.byteLength),G;N[0]===1?G=D0(N.subarray(4,12)):G=M.getUint32(4);let le;return typeof G=="bigint"?le=G/Go.BigInt(L):typeof G=="number"&&!isNaN(G)&&(le=G/L),le<Number.MAX_SAFE_INTEGER&&(le=Number(le)),le<g&&(g=le),g},1/0);return typeof f=="bigint"||isFinite(f)?f:0},hd=function(u,h){var m=dt(h,["moof","traf"]),f=0,g=0,v;if(m&&m.length){var D=dt(m[0],["tfhd"])[0],I=dt(m[0],["trun"])[0],L=dt(m[0],["tfdt"])[0];if(D){var N=w0(D);v=N.trackId}if(L){var M=k0(L);f=M.baseMediaDecodeTime}if(I){var G=A0(I);G.samples&&G.samples.length&&(g=G.samples[0].compositionTimeOffset||0)}}var le=u[v]||9e4;typeof f=="bigint"&&(g=Go.BigInt(g),le=Go.BigInt(le));var J=(f+g)/le;return typeof J=="bigint"&&J<Number.MAX_SAFE_INTEGER&&(J=Number(J)),J},fd=function(u){var h=dt(u,["moov","trak"]),m=[];return h.forEach(function(f){var g=dt(f,["mdia","hdlr"]),v=dt(f,["tkhd"]);g.forEach(function(D,I){var L=sr(D.subarray(8,12)),N=v[I],M,G,le;L==="vide"&&(M=new DataView(N.buffer,N.byteOffset,N.byteLength),G=M.getUint8(0),le=G===0?M.getUint32(12):M.getUint32(20),m.push(le))})}),m},zo=function(u){var h=u[0],m=h===0?12:20;return pa(u[m]<<24|u[m+1]<<16|u[m+2]<<8|u[m+3])},pd=function(u){var h=dt(u,["moov","trak"]),m=[];return h.forEach(function(f){var g={},v=dt(f,["tkhd"])[0],D,I;v&&(D=new DataView(v.buffer,v.byteOffset,v.byteLength),I=D.getUint8(0),g.id=I===0?D.getUint32(12):D.getUint32(20));var L=dt(f,["mdia","hdlr"])[0];if(L){var N=sr(L.subarray(8,12));N==="vide"?g.type="video":N==="soun"?g.type="audio":g.type=N}var M=dt(f,["mdia","minf","stbl","stsd"])[0];if(M){var G=M.subarray(8);g.codec=sr(G.subarray(4,8));var le=dt(G,[g.codec])[0],J,Ae;le&&(/^[asm]vc[1-9]$/i.test(g.codec)?(J=le.subarray(78),Ae=sr(J.subarray(4,8)),Ae==="avcC"&&J.length>11?(g.codec+=".",g.codec+=Kr(J[9]),g.codec+=Kr(J[10]),g.codec+=Kr(J[11])):g.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(g.codec)?(J=le.subarray(28),Ae=sr(J.subarray(4,8)),Ae==="esds"&&J.length>20&&J[19]!==0?(g.codec+="."+Kr(J[19]),g.codec+="."+Kr(J[20]>>>2&63).replace(/^0/,"")):g.codec="mp4a.40.2"):g.codec=g.codec.toLowerCase())}var Re=dt(f,["mdia","mdhd"])[0];Re&&(g.timescale=zo(Re)),m.push(g)}),m},md=function(u,h=0){var m=dt(u,["emsg"]);return m.map(f=>{var g=Vo.parseEmsgBox(new Uint8Array(f)),v=I0(g.message_data);return{cueTime:Vo.scaleTime(g.presentation_time,g.timescale,g.presentation_time_delta,h),duration:Vo.scaleTime(g.event_duration,g.timescale),frames:v}})};var Wo={findBox:dt,parseType:sr,timescale:cd,startTime:dd,compositionStartTime:hd,videoTrackIds:fd,tracks:pd,getTimescaleFromMediaHeader:zo,getEmsgID3:md},Xo=Qn,gd=function(u){var h=u[1]&31;return h<<=8,h|=u[2],h},ma=function(u){return!!(u[1]&64)},ga=function(u){var h=0;return(u[3]&48)>>>4>1&&(h+=u[4]+1),h},P0=function(u,h){var m=gd(u);return m===0?"pat":m===h?"pmt":h?"pes":null},L0=function(u){var h=ma(u),m=4+ga(u);return h&&(m+=u[m]+1),(u[m+10]&31)<<8|u[m+11]},O0=function(u){var h={},m=ma(u),f=4+ga(u);if(m&&(f+=u[f]+1),!!(u[f+5]&1)){var g,v,D;g=(u[f+1]&15)<<8|u[f+2],v=3+g-4,D=(u[f+10]&15)<<8|u[f+11];for(var I=12+D;I<v;){var L=f+I;h[(u[L+1]&31)<<8|u[L+2]]=u[L],I+=((u[L+3]&15)<<8|u[L+4])+5}return h}},N0=function(u,h){var m=gd(u),f=h[m];switch(f){case Xo.H264_STREAM_TYPE:return"video";case Xo.ADTS_STREAM_TYPE:return"audio";case Xo.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},R0=function(u){var h=ma(u);if(!h)return null;var m=4+ga(u);if(m>=u.byteLength)return null;var f=null,g;return g=u[m+7],g&192&&(f={},f.pts=(u[m+9]&14)<<27|(u[m+10]&255)<<20|(u[m+11]&254)<<12|(u[m+12]&255)<<5|(u[m+13]&254)>>>3,f.pts*=4,f.pts+=(u[m+13]&6)>>>1,f.dts=f.pts,g&64&&(f.dts=(u[m+14]&14)<<27|(u[m+15]&255)<<20|(u[m+16]&254)<<12|(u[m+17]&255)<<5|(u[m+18]&254)>>>3,f.dts*=4,f.dts+=(u[m+18]&6)>>>1)),f},Ko=function(u){switch(u){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},M0=function(u){for(var h=4+ga(u),m=u.subarray(h),f=0,g=0,v=!1,D;g<m.byteLength-3;g++)if(m[g+2]===1){f=g+5;break}for(;f<m.byteLength;)switch(m[f]){case 0:if(m[f-1]!==0){f+=2;break}else if(m[f-2]!==0){f++;break}g+3!==f-2&&(D=Ko(m[g+3]&31),D==="slice_layer_without_partitioning_rbsp_idr"&&(v=!0));do f++;while(m[f]!==1&&f<m.length);g=f-2,f+=3;break;case 1:if(m[f-1]!==0||m[f-2]!==0){f+=3;break}D=Ko(m[g+3]&31),D==="slice_layer_without_partitioning_rbsp_idr"&&(v=!0),g=f-2,f+=3;break;default:f+=3;break}return m=m.subarray(g),f-=g,g=0,m&&m.byteLength>3&&(D=Ko(m[g+3]&31),D==="slice_layer_without_partitioning_rbsp_idr"&&(v=!0)),v},F0={parseType:P0,parsePat:L0,parsePmt:O0,parsePayloadUnitStartIndicator:ma,parsePesType:N0,parsePesTime:R0,videoPacketContainsKeyFrame:M0},yd=Qn,ir=Mc.handleRollover,Ye={};Ye.ts=F0,Ye.aac=qo;var hi=Ue.ONE_SECOND_IN_TS,Nt=188,bs=71,B0=function(u,h){for(var m=0,f=Nt,g,v;f<u.byteLength;){if(u[m]===bs&&u[f]===bs){switch(g=u.subarray(m,f),v=Ye.ts.parseType(g,h.pid),v){case"pat":h.pid=Ye.ts.parsePat(g);break;case"pmt":var D=Ye.ts.parsePmt(g);h.table=h.table||{},Object.keys(D).forEach(function(I){h.table[I]=D[I]});break}m+=Nt,f+=Nt;continue}m++,f++}},_d=function(u,h,m){for(var f=0,g=Nt,v,D,I,L,N,M=!1;g<=u.byteLength;){if(u[f]===bs&&(u[g]===bs||g===u.byteLength)){switch(v=u.subarray(f,g),D=Ye.ts.parseType(v,h.pid),D){case"pes":I=Ye.ts.parsePesType(v,h.table),L=Ye.ts.parsePayloadUnitStartIndicator(v),I==="audio"&&L&&(N=Ye.ts.parsePesTime(v),N&&(N.type="audio",m.audio.push(N),M=!0));break}if(M)break;f+=Nt,g+=Nt;continue}f++,g++}for(g=u.byteLength,f=g-Nt,M=!1;f>=0;){if(u[f]===bs&&(u[g]===bs||g===u.byteLength)){switch(v=u.subarray(f,g),D=Ye.ts.parseType(v,h.pid),D){case"pes":I=Ye.ts.parsePesType(v,h.table),L=Ye.ts.parsePayloadUnitStartIndicator(v),I==="audio"&&L&&(N=Ye.ts.parsePesTime(v),N&&(N.type="audio",m.audio.push(N),M=!0));break}if(M)break;f-=Nt,g-=Nt;continue}f--,g--}},U0=function(u,h,m){for(var f=0,g=Nt,v,D,I,L,N,M,G,le,J=!1,Ae={data:[],size:0};g<u.byteLength;){if(u[f]===bs&&u[g]===bs){switch(v=u.subarray(f,g),D=Ye.ts.parseType(v,h.pid),D){case"pes":if(I=Ye.ts.parsePesType(v,h.table),L=Ye.ts.parsePayloadUnitStartIndicator(v),I==="video"&&(L&&!J&&(N=Ye.ts.parsePesTime(v),N&&(N.type="video",m.video.push(N),J=!0)),!m.firstKeyFrame)){if(L&&Ae.size!==0){for(M=new Uint8Array(Ae.size),G=0;Ae.data.length;)le=Ae.data.shift(),M.set(le,G),G+=le.byteLength;if(Ye.ts.videoPacketContainsKeyFrame(M)){var Re=Ye.ts.parsePesTime(M);Re?(m.firstKeyFrame=Re,m.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}Ae.size=0}Ae.data.push(v),Ae.size+=v.byteLength}break}if(J&&m.firstKeyFrame)break;f+=Nt,g+=Nt;continue}f++,g++}for(g=u.byteLength,f=g-Nt,J=!1;f>=0;){if(u[f]===bs&&u[g]===bs){switch(v=u.subarray(f,g),D=Ye.ts.parseType(v,h.pid),D){case"pes":I=Ye.ts.parsePesType(v,h.table),L=Ye.ts.parsePayloadUnitStartIndicator(v),I==="video"&&L&&(N=Ye.ts.parsePesTime(v),N&&(N.type="video",m.video.push(N),J=!0));break}if(J)break;f-=Nt,g-=Nt;continue}f--,g--}},$0=function(u,h){if(u.audio&&u.audio.length){var m=h;(typeof m>"u"||isNaN(m))&&(m=u.audio[0].dts),u.audio.forEach(function(v){v.dts=ir(v.dts,m),v.pts=ir(v.pts,m),v.dtsTime=v.dts/hi,v.ptsTime=v.pts/hi})}if(u.video&&u.video.length){var f=h;if((typeof f>"u"||isNaN(f))&&(f=u.video[0].dts),u.video.forEach(function(v){v.dts=ir(v.dts,f),v.pts=ir(v.pts,f),v.dtsTime=v.dts/hi,v.ptsTime=v.pts/hi}),u.firstKeyFrame){var g=u.firstKeyFrame;g.dts=ir(g.dts,f),g.pts=ir(g.pts,f),g.dtsTime=g.dts/hi,g.ptsTime=g.pts/hi}}},j0=function(u){for(var h=!1,m=0,f=null,g=null,v=0,D=0,I;u.length-D>=3;){var L=Ye.aac.parseType(u,D);switch(L){case"timed-metadata":if(u.length-D<10){h=!0;break}if(v=Ye.aac.parseId3TagSize(u,D),v>u.length){h=!0;break}g===null&&(I=u.subarray(D,D+v),g=Ye.aac.parseAacTimestamp(I)),D+=v;break;case"audio":if(u.length-D<7){h=!0;break}if(v=Ye.aac.parseAdtsSize(u,D),v>u.length){h=!0;break}f===null&&(I=u.subarray(D,D+v),f=Ye.aac.parseSampleRate(I)),m++,D+=v;break;default:D++;break}if(h)return null}if(f===null||g===null)return null;var N=hi/f,M={audio:[{type:"audio",dts:g,pts:g},{type:"audio",dts:g+m*1024*N,pts:g+m*1024*N}]};return M},H0=function(u){var h={pid:null,table:null},m={};B0(u,h);for(var f in h.table)if(h.table.hasOwnProperty(f)){var g=h.table[f];switch(g){case yd.H264_STREAM_TYPE:m.video=[],U0(u,h,m),m.video.length===0&&delete m.video;break;case yd.ADTS_STREAM_TYPE:m.audio=[],_d(u,h,m),m.audio.length===0&&delete m.audio;break}}return m},q0=function(u,h){var m=Ye.aac.isLikelyAacData(u),f;return m?f=j0(u):f=H0(u),!f||!f.audio&&!f.video?null:($0(f,h),f)},V0={inspect:q0,parseAudioPes_:_d};const z0=function(u,h){h.on("data",function(m){const f=m.initSegment;m.initSegment={data:f.buffer,byteOffset:f.byteOffset,byteLength:f.byteLength};const g=m.data;m.data=g.buffer,u.postMessage({action:"data",segment:m,byteOffset:g.byteOffset,byteLength:g.byteLength},[m.data])}),h.on("done",function(m){u.postMessage({action:"done"})}),h.on("gopInfo",function(m){u.postMessage({action:"gopInfo",gopInfo:m})}),h.on("videoSegmentTimingInfo",function(m){const f={start:{decode:Ue.videoTsToSeconds(m.start.dts),presentation:Ue.videoTsToSeconds(m.start.pts)},end:{decode:Ue.videoTsToSeconds(m.end.dts),presentation:Ue.videoTsToSeconds(m.end.pts)},baseMediaDecodeTime:Ue.videoTsToSeconds(m.baseMediaDecodeTime)};m.prependedContentDuration&&(f.prependedContentDuration=Ue.videoTsToSeconds(m.prependedContentDuration)),u.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:f})}),h.on("audioSegmentTimingInfo",function(m){const f={start:{decode:Ue.videoTsToSeconds(m.start.dts),presentation:Ue.videoTsToSeconds(m.start.pts)},end:{decode:Ue.videoTsToSeconds(m.end.dts),presentation:Ue.videoTsToSeconds(m.end.pts)},baseMediaDecodeTime:Ue.videoTsToSeconds(m.baseMediaDecodeTime)};m.prependedContentDuration&&(f.prependedContentDuration=Ue.videoTsToSeconds(m.prependedContentDuration)),u.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:f})}),h.on("id3Frame",function(m){u.postMessage({action:"id3Frame",id3Frame:m})}),h.on("caption",function(m){u.postMessage({action:"caption",caption:m})}),h.on("trackinfo",function(m){u.postMessage({action:"trackinfo",trackInfo:m})}),h.on("audioTimingInfo",function(m){u.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:Ue.videoTsToSeconds(m.start),end:Ue.videoTsToSeconds(m.end)}})}),h.on("videoTimingInfo",function(m){u.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:Ue.videoTsToSeconds(m.start),end:Ue.videoTsToSeconds(m.end)}})}),h.on("log",function(m){u.postMessage({action:"log",log:m})})};class vd{constructor(h,m){this.options=m||{},this.self=h,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Xy.Transmuxer(this.options),z0(this.self,this.transmuxer)}pushMp4Captions(h){this.captionParser||(this.captionParser=new _0,this.captionParser.init());const m=new Uint8Array(h.data,h.byteOffset,h.byteLength),f=this.captionParser.parse(m,h.trackIds,h.timescales);this.self.postMessage({action:"mp4Captions",captions:f&&f.captions||[],logs:f&&f.logs||[],data:m.buffer},[m.buffer])}probeMp4StartTime({timescales:h,data:m}){const f=Wo.startTime(h,m);this.self.postMessage({action:"probeMp4StartTime",startTime:f,data:m},[m.buffer])}probeMp4Tracks({data:h}){const m=Wo.tracks(h);this.self.postMessage({action:"probeMp4Tracks",tracks:m,data:h},[h.buffer])}probeEmsgID3({data:h,offset:m}){const f=Wo.getEmsgID3(h,m);this.self.postMessage({action:"probeEmsgID3",id3Frames:f,emsgData:h},[h.buffer])}probeTs({data:h,baseStartTime:m}){const f=typeof m=="number"&&!isNaN(m)?m*Ue.ONE_SECOND_IN_TS:void 0,g=V0.inspect(h,f);let v=null;g&&(v={hasVideo:g.video&&g.video.length===2||!1,hasAudio:g.audio&&g.audio.length===2||!1},v.hasVideo&&(v.videoStart=g.video[0].ptsTime),v.hasAudio&&(v.audioStart=g.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:v,data:h},[h.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(h){const m=new Uint8Array(h.data,h.byteOffset,h.byteLength);this.transmuxer.push(m)}reset(){this.transmuxer.reset()}setTimestampOffset(h){const m=h.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(Ue.secondsToVideoTs(m)))}setAudioAppendStart(h){this.transmuxer.setAudioAppendStart(Math.ceil(Ue.secondsToVideoTs(h.appendStart)))}setRemux(h){this.transmuxer.setRemux(h.remux)}flush(h){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(h){this.transmuxer.alignGopsWith(h.gopsToAlignWith.slice())}}self.onmessage=function(u){if(u.data.action==="init"&&u.data.options){this.messageHandlers=new vd(self,u.data.options);return}this.messageHandlers||(this.messageHandlers=new vd(self)),u.data&&u.data.action&&u.data.action!=="init"&&this.messageHandlers[u.data.action]&&this.messageHandlers[u.data.action](u.data)}}));var Mee=SR(Ree);const Fee=(t,e,s)=>{const{type:i,initSegment:r,captions:n,captionStreams:a,metadata:o,videoFrameDtsTime:l,videoFramePtsTime:c}=t.data.segment;e.buffer.push({captions:n,captionStreams:a,metadata:o});const d=t.data.segment.boxes||{data:t.data.segment.data},p={type:i,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(r.data,r.byteOffset,r.byteLength)};typeof l<"u"&&(p.videoFrameDtsTime=l),typeof c<"u"&&(p.videoFramePtsTime=c),s(p)},Bee=({transmuxedData:t,callback:e})=>{t.buffer=[],e(t)},Uee=(t,e)=>{e.gopInfo=t.data.gopInfo},CR=t=>{const{transmuxer:e,bytes:s,audioAppendStart:i,gopsToAlignWith:r,remux:n,onData:a,onTrackInfo:o,onAudioTimingInfo:l,onVideoTimingInfo:c,onVideoSegmentTimingInfo:d,onAudioSegmentTimingInfo:p,onId3:_,onCaptions:b,onDone:T,onEndedTimeline:y,onTransmuxerLog:x,isEndOfTimeline:A}=t,C={buffer:[]};let S=A;const E=w=>{e.currentTransmux===t&&(w.data.action==="data"&&Fee(w,C,a),w.data.action==="trackinfo"&&o(w.data.trackInfo),w.data.action==="gopInfo"&&Uee(w,C),w.data.action==="audioTimingInfo"&&l(w.data.audioTimingInfo),w.data.action==="videoTimingInfo"&&c(w.data.videoTimingInfo),w.data.action==="videoSegmentTimingInfo"&&d(w.data.videoSegmentTimingInfo),w.data.action==="audioSegmentTimingInfo"&&p(w.data.audioSegmentTimingInfo),w.data.action==="id3Frame"&&_([w.data.id3Frame],w.data.id3Frame.dispatchType),w.data.action==="caption"&&b(w.data.caption),w.data.action==="endedtimeline"&&(S=!1,y()),w.data.action==="log"&&x(w.data.log),w.data.type==="transmuxed"&&(S||(e.onmessage=null,Bee({transmuxedData:C,callback:T}),wR(e))))};if(e.onmessage=E,i&&e.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&e.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),typeof n<"u"&&e.postMessage({action:"setRemux",remux:n}),s.byteLength){const w=s instanceof ArrayBuffer?s:s.buffer,O=s instanceof ArrayBuffer?0:s.byteOffset;e.postMessage({action:"push",data:w,byteOffset:O,byteLength:s.byteLength},[w])}A&&e.postMessage({action:"endTimeline"}),e.postMessage({action:"flush"})},wR=t=>{t.currentTransmux=null,t.transmuxQueue.length&&(t.currentTransmux=t.transmuxQueue.shift(),typeof t.currentTransmux=="function"?t.currentTransmux():CR(t.currentTransmux))},uA=(t,e)=>{t.postMessage({action:e}),wR(t)},AR=(t,e)=>{if(!e.currentTransmux){e.currentTransmux=t,uA(e,t);return}e.transmuxQueue.push(uA.bind(null,e,t))},$ee=t=>{AR("reset",t)},jee=t=>{AR("endTimeline",t)},kR=t=>{if(!t.transmuxer.currentTransmux){t.transmuxer.currentTransmux=t,CR(t);return}t.transmuxer.transmuxQueue.push(t)},Hee=t=>{const e=new Mee;e.currentTransmux=null,e.transmuxQueue=[];const s=e.terminate;return e.terminate=()=>(e.currentTransmux=null,e.transmuxQueue.length=0,s.call(e)),e.postMessage({action:"init",options:t}),e};var _v={reset:$ee,endTimeline:jee,transmux:kR,createTransmuxer:Hee};const wh=function(t){const e=t.transmuxer,s=t.endAction||t.action,i=t.callback,r=sn({},t,{endAction:null,transmuxer:null,callback:null}),n=a=>{a.data.action===s&&(e.removeEventListener("message",n),a.data.data&&(a.data.data=new Uint8Array(a.data.data,t.byteOffset||0,t.byteLength||a.data.data.byteLength),t.data&&(t.data=a.data.data)),i(a.data))};if(e.addEventListener("message",n),t.data){const a=t.data instanceof ArrayBuffer;r.byteOffset=a?0:t.data.byteOffset,r.byteLength=t.data.byteLength;const o=[a?t.data:t.data.buffer];e.postMessage(r,o)}else e.postMessage(r)},Ln={FAILURE:2,TIMEOUT:-101,ABORTED:-102},pT=t=>
473{t.forEach(e=>{e.abort()})},qee=t=>({bandwidth:t.bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0}),Vee=t=>{const e=t.target,s={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-e.requestTime||0};return s.bytesReceived=t.loaded,s.bandwidth=Math.floor(s.bytesReceived/s.roundTripTime*8*1e3),s},QS=(t,e)=>e.timedout?{status:e.status,message:"HLS request timed-out at URL: "+e.uri,code:Ln.TIMEOUT,xhr:e}:e.aborted?{status:e.status,message:"HLS request aborted at URL: "+e.uri,code:Ln.ABORTED,xhr:e}:t?{status:e.status,message:"HLS request errored at URL: "+e.uri,code:Ln.FAILURE,xhr:e}:e.responseType==="arraybuffer"&&e.response.byteLength===0?{status:e.status,message:"Empty HLS response at URL: "+e.uri,code:Ln.FAILURE,xhr:e}:null,cA=(t,e,s)=>(i,r)=>{const n=r.response,a=QS(i,r);if(a)return s(a,t);if(n.byteLength!==16)return s({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:Ln.FAILURE,xhr:r},t);const o=new DataView(n),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]);for(let c=0;c<e.length;c++)e[c].bytes=l;return s(null,t)},DR=(t,e)=>{const s=bS(t.map.bytes);if(s!=="mp4"){const i=t.map.resolvedUri||t.map.uri;return e({internal:!0,message:`Found unsupported ${s||"unknown"} container for initialization segment at URL: ${i}`,code:Ln.FAILURE})}wh({action:"probeMp4Tracks",data:t.map.bytes,transmuxer:t.transmuxer,callback:({tracks:i,data:r})=>(t.map.bytes=r,i.forEach(function(n){t.map.tracks=t.map.tracks||{},!t.map.tracks[n.type]&&(t.map.tracks[n.type]=n,typeof n.id=="number"&&n.timescale&&(t.map.timescales=t.map.timescales||{},t.map.timescales[n.id]=n.timescale))}),e(null))})},zee=({segment:t,finishProcessingFn:e})=>(s,i)=>{const r=QS(s,i);if(r)return e(r,t);const n=new Uint8Array(i.response);if(t.map.key)return t.map.encryptedBytes=n,e(null,t);t.map.bytes=n,DR(t,function(a){if(a)return a.xhr=i,a.status=i.status,e(a,t);e(null,t)})},Gee=({segment:t,finishProcessingFn:e,responseType:s})=>(i,r)=>{const n=QS(i,r);if(n)return e(n,t);const a=s==="arraybuffer"||!r.responseText?r.response:Oee(r.responseText.substring(t.lastReachedChar||0));return t.stats=qee(r),t.key?t.encryptedBytes=new Uint8Array(a):t.bytes=new Uint8Array(a),e(null,t)},Wee=({segment:t,bytes:e,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_})=>{const b=t.map&&t.map.tracks||{},T=!!(b.audio&&b.video);let y=i.bind(null,t,"audio","start");const x=i.bind(null,t,"audio","end");let A=i.bind(null,t,"video","start");const C=i.bind(null,t,"video","end"),S=()=>kR({bytes:e,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:T,onData:E=>{E.type=E.type==="combined"?"video":E.type,d(t,E)},onTrackInfo:E=>{s&&(T&&(E.isMuxed=!0),s(t,E))},onAudioTimingInfo:E=>{y&&typeof E.start<"u"&&(y(E.start),y=null),x&&typeof E.end<"u"&&x(E.end)},onVideoTimingInfo:E=>{A&&typeof E.start<"u"&&(A(E.start),A=null),C&&typeof E.end<"u"&&C(E.end)},onVideoSegmentTimingInfo:E=>{r(E)},onAudioSegmentTimingInfo:E=>{n(E)},onId3:(E,w)=>{a(t,E,w)},onCaptions:E=>{o(t,[E])},isEndOfTimeline:l,onEndedTimeline:()=>{c()},onTransmuxerLog:_,onDone:E=>{p&&(E.type=E.type==="combined"?"video":E.type,p(null,t,E))}});wh({action:"probeTs",transmuxer:t.transmuxer,data:e,baseStartTime:t.baseStartTime,callback:E=>{t.bytes=e=E.data;const w=E.result;w&&(s(t,{hasAudio:w.hasAudio,hasVideo:w.hasVideo,isMuxed:T}),s=null),S()}})},IR=({segment:t,bytes:e,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_})=>{let b=new Uint8Array(e);if(vJ(b)){t.isFmp4=!0;const{tracks:T}=t.map,y={isFmp4:!0,hasVideo:!!T.video,hasAudio:!!T.audio};T.audio&&T.audio.codec&&T.audio.codec!=="enca"&&(y.audioCodec=T.audio.codec),T.video&&T.video.codec&&T.video.codec!=="encv"&&(y.videoCodec=T.video.codec),T.video&&T.audio&&(y.isMuxed=!0),s(t,y);const x=(A,C)=>{d(t,{data:b,type:y.hasAudio&&!y.isMuxed?"audio":"video"}),C&&C.length&&a(t,C),A&&A.length&&o(t,A),p(null,t,{})};wh({action:"probeMp4StartTime",timescales:t.map.timescales,data:b,transmuxer:t.transmuxer,callback:({data:A,startTime:C})=>{e=A.buffer,t.bytes=b=A,y.hasAudio&&!y.isMuxed&&i(t,"audio","start",C),y.hasVideo&&i(t,"video","start",C),wh({action:"probeEmsgID3",data:b,transmuxer:t.transmuxer,offset:C,callback:({emsgData:S,id3Frames:E})=>{if(e=S.buffer,t.bytes=b=S,!T.video||!S.byteLength||!t.transmuxer){x(void 0,E);return}wh({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:b,timescales:t.map.timescales,trackIds:[T.video.id],callback:w=>
vendor: 6,965 bytes, line 473
473{e=w.data.buffer,t.bytes=b=w.data,w.logs.forEach(function(O){_(Ft(O,{stream:"mp4CaptionParser"}))}),x(w.captions,E)}})}})}});return}if(!t.transmuxer){p(null,t,{});return}if(typeof t.container>"u"&&(t.container=bS(b)),t.container!=="ts"&&t.container!=="aac"){s(t,{hasAudio:!1,hasVideo:!1}),p(null,t,{});return}Wee({segment:t,bytes:e,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_})},PR=function({id:t,key:e,encryptedBytes:s,decryptionWorker:i},r){const n=o=>{if(o.data.source===t){i.removeEventListener("message",n);const l=o.data.decrypted;r(new Uint8Array(l.bytes,l.byteOffset,l.byteLength))}};i.addEventListener("message",n);let a;e.bytes.slice?a=e.bytes.slice():a=new Uint32Array(Array.prototype.slice.call(e.bytes)),i.postMessage(gR({source:t,encrypted:s,key:a,iv:e.iv}),[s.buffer,a.buffer])},Xee=({decryptionWorker:t,segment:e,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_})=>{PR({id:e.requestId,key:e.key,encryptedBytes:e.encryptedBytes,decryptionWorker:t},b=>{e.bytes=b,IR({segment:e,bytes:e.bytes,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_})})},Kee=({activeXhrs:t,decryptionWorker:e,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_})=>{let b=0,T=!1;return(y,x)=>{if(!T){if(y)return T=!0,pT(t),p(y,x);if(b+=1,b===t.length){const A=function(){if(x.encryptedBytes)return Xee({decryptionWorker:e,segment:x,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_});IR({segment:x,bytes:x.bytes,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:p,onTransmuxerLog:_})};if(x.endOfAllRequests=Date.now(),x.map&&x.map.encryptedBytes&&!x.map.bytes)return PR({decryptionWorker:e,id:x.requestId+"-init",encryptedBytes:x.map.encryptedBytes,key:x.map.key},C=>{x.map.bytes=C,DR(x,S=>{if(S)return pT(t),p(S,x);A()})});A()}}}},Yee=({loadendState:t,abortFn:e})=>s=>{s.target.aborted&&e&&!t.calledAbortFn&&(e(),t.calledAbortFn=!0)},Qee=({segment:t,progressFn:e,trackInfoFn:s,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d})=>p=>{if(!p.target.aborted)return t.stats=Ft(t.stats,Vee(p)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),e(p,t)},Jee=({xhr:t,xhrOptions:e,decryptionWorker:s,segment:i,abortFn:r,progressFn:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:p,isEndOfTimeline:_,endedTimelineFn:b,dataFn:T,doneFn:y,onTransmuxerLog:x})=>{const A=[],C=Kee({activeXhrs:A,decryptionWorker:s,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:p,isEndOfTimeline:_,endedTimelineFn:b,dataFn:T,doneFn:y,onTransmuxerLog:x});if(i.key&&!i.key.bytes){const R=[i.key];i.map&&!i.map.bytes&&i.map.key&&i.map.key.resolvedUri===i.key.resolvedUri&&R.push(i.map.key);const $=Ft(e,{uri:i.key.resolvedUri,responseType:"arraybuffer"}),k=cA(i,R,C),P=t($,k);A.push(P)}if(i.map&&!i.map.bytes){if(i.map.key&&(!i.key||i.key.resolvedUri!==i.map.key.resolvedUri)){const P=Ft(e,{uri:i.map.key.resolvedUri,responseType:"arraybuffer"}),j=cA(i,[i.map.key],C),F=t(P,j);A.push(F)}const R=Ft(e,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:hT(i.map)}),$=zee({segment:i,finishProcessingFn:C}),k=t(R,$);A.push(k)}const S=Ft(e,{uri:i.part&&i.part.resolvedUri||i.resolvedUri,responseType:"arraybuffer",headers:hT(i)}),E=Gee({segment:i,finishProcessingFn:C,responseType:S.responseType}),w=t(S,E);w.addEventListener("progress",Qee({segment:i,progressFn:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:p,isEndOfTimeline:_,endedTimelineFn:b,dataFn:T})),A.push(w);const O={};return A.forEach(R=>{R.addEventListener("loadend",Yee({loadendState:O,abortFn:r}))}),()=>pT(A)},Zee=Mr("CodecUtils"),ete=function(t){const e=t.attributes||{};if(e.CODECS)return vn(e.CODECS)},LR=(t,e)=>{const s=e.attributes||{};return t&&t.mediaGroups&&t.mediaGroups.AUDIO&&s.AUDIO&&t.mediaGroups.AUDIO[s.AUDIO]},tte=(t,e)=>{if(!LR(t,e))return!0;const s=e.attributes||{},i=t.mediaGroups.AUDIO[s.AUDIO];for(const r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1},Rm=function(t){const e={};return t.forEach(({mediaType:s,type:i,details:r})=>{e[s]=e[s]||[],e[s].push(x4(`${i}${r}`))}),Object.keys(e).forEach(function(s){if(e[s].length>1){Zee(`multiple ${s} codecs found as attributes: ${e[s].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),e[s]=null;return}e[s]=e[s][0]}),e},dA=function(t){let e=0;return t.audio&&e++,t.video&&e++,e},Ah=function(t,e){const s=e.attributes||{},i=Rm(ete(e)||[]);if(LR(t,e)&&!i.audio&&!tte(t,e)){const r=Rm(qY(t,s.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},ap=Mr("PlaylistSelector"),hA=function(t){if(!t||!t.playlist)return;const e=t.playlist;return JSON.stringify({id:e.id,bandwidth:t.bandwidth,width:t.width,height:t.height,codecs:e.attributes&&e.attributes.CODECS||""})},Mm=function(t,e){if(!t)return"";const s=Y.getComputedStyle(t);return s?s[e]:""},Iu=function(t,e){const s=t.slice();t.sort(function(i,r){const n=e(i,r);return n===0?s.indexOf(i)-s.indexOf(r):n})},JS=function(t,e){let s,i;return t.attributes.BANDWIDTH&&(s=t.attributes.BANDWIDTH),s=s||Y.Number.MAX_VALUE,e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||Y.Number.MAX_VALUE,s-i},ste=function(t,e){let s,i;return t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(s=t.attributes.RESOLUTION.width),s=s||Y.Number.MAX_VALUE,e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||Y.Number.MAX_VALUE,s===i&&t.attributes.BANDWIDTH&&e.attributes.BANDWIDTH?t.attributes.BANDWIDTH-e.attributes.BANDWIDTH:s-i};let OR=function(t,e,s,i,r,n){if(!t)return;const a={bandwidth:e,width:s,height:i,limitRenditionByPlayerDimensions:r};let o=t.playlists;Vi.isAudioOnly(t)&&(o=n.getAudioTrackPlaylists_(),a.audioOnly=!0);let l=o.map(w=>{let O;const R=w.attributes&&w.attributes.RESOLUTION&&w.attributes.RESOLUTION.width,$=w.attributes&&w.attributes.RESOLUTION&&w.attributes.RESOLUTION.height;return O=w.attributes&&w.attributes.BANDWIDTH,O=O||Y.Number.MAX_VALUE,{bandwidth:O,width:R,height:$,playlist:w}});Iu(l,(w,O)=>w.bandwidth-O.bandwidth),l=l.filter(w=>!Vi.isIncompatible(w.playlist));
473let c=l.filter(w=>Vi.isEnabled(w.playlist));c.length||(c=l.filter(w=>!Vi.isDisabled(w.playlist)));const d=c.filter(w=>w.bandwidth*Rs.BANDWIDTH_VARIANCE<e);let p=d[d.length-1];const _=d.filter(w=>w.bandwidth===p.bandwidth)[0];if(r===!1){const w=_||c[0]||l[0];if(w&&w.playlist){let O="sortedPlaylistReps";return _&&(O="bandwidthBestRep"),c[0]&&(O="enabledPlaylistReps"),ap(`choosing ${hA(w)} using ${O} with options`,a),w.playlist}return ap("could not choose a playlist with options",a),null}const b=d.filter(w=>w.width&&w.height);Iu(b,(w,O)=>w.width-O.width);const T=b.filter(w=>w.width===s&&w.height===i);p=T[T.length-1];const y=T.filter(w=>w.bandwidth===p.bandwidth)[0];let x,A,C;y||(x=b.filter(w=>w.width>s||w.height>i),A=x.filter(w=>w.width===x[0].width&&w.height===x[0].height),p=A[A.length-1],C=A.filter(w=>w.bandwidth===p.bandwidth)[0]);let S;if(n.leastPixelDiffSelector){const w=b.map(O=>(O.pixelDiff=Math.abs(O.width-s)+Math.abs(O.height-i),O));Iu(w,(O,R)=>O.pixelDiff===R.pixelDiff?R.bandwidth-O.bandwidth:O.pixelDiff-R.pixelDiff),S=w[0]}const E=S||C||y||_||c[0]||l[0];if(E&&E.playlist){let w="sortedPlaylistReps";return S?w="leastPixelDiffRep":C?w="resolutionPlusOneRep":y?w="resolutionBestRep":_?w="bandwidthBestRep":c[0]&&(w="enabledPlaylistReps"),ap(`choosing ${hA(E)} using ${w} with options`,a),E.playlist}return ap("could not choose a playlist with options",a),null};const fA=function(){const t=this.useDevicePixelRatio&&Y.devicePixelRatio||1;return OR(this.playlists.main,this.systemBandwidth,parseInt(Mm(this.tech_.el(),"width"),10)*t,parseInt(Mm(this.tech_.el(),"height"),10)*t,this.limitRenditionByPlayerDimensions,this.playlistController_)},ite=function(t){let e=-1,s=-1;if(t<0||t>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){const i=this.useDevicePixelRatio&&Y.devicePixelRatio||1;return e<0&&(e=this.systemBandwidth,s=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==s&&(e=t*this.systemBandwidth+(1-t)*e,s=this.systemBandwidth),OR(this.playlists.main,e,parseInt(Mm(this.tech_.el(),"width"),10)*i,parseInt(Mm(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.playlistController_)}},rte=function(t){const{main:e,currentTime:s,bandwidth:i,duration:r,segmentDuration:n,timeUntilRebuffer:a,currentTimeline:o,syncController:l}=t,c=e.playlists.filter(b=>!Vi.isIncompatible(b));let d=c.filter(Vi.isEnabled);d.length||(d=c.filter(b=>!Vi.isDisabled(b)));const p=d.filter(Vi.hasAttribute.bind(null,"BANDWIDTH")).map(b=>{const T=l.getSyncPoint(b,r,o,s)?1:2,y=Vi.estimateSegmentRequestTime(n,i,b)*T-a;return{playlist:b,rebufferingImpact:y}}),_=p.filter(b=>b.rebufferingImpact<=0);return Iu(_,(b,T)=>JS(T.playlist,b.playlist)),_.length?_[0]:(Iu(p,(b,T)=>b.rebufferingImpact-T.rebufferingImpact),p[0]||null)},nte=function(){const t=this.playlists.main.playlists.filter(Vi.isEnabled);return Iu(t,(e,s)=>JS(e,s)),t.filter(e=>!!Ah(this.playlists.main,e).video)[0]||null},ate=t=>{let e=0,s;return t.bytes&&(s=new Uint8Array(t.bytes),t.segments.forEach(i=>{s.set(i,e),e+=i.byteLength})),s},ote=function(t,e,s){if(!t[s]){e.trigger({type:"usage",name:"vhs-608"});let i=s;/^cc708_/.test(s)&&(i="SERVICE"+s.split("_")[1]);const r=e.textTracks().getTrackById(i);if(r)t[s]=r;else{const n=e.options_.vhs&&e.options_.vhs.captionServices||{};let a=s,o=s,l=!1;const c=n[i];c&&(a=c.label,o=c.language,l=c.default),t[s]=e.addRemoteTextTrack({kind:"captions",id:i,default:l,label:a,language:o},!1).track}}},lte=function({inbandTextTracks:t,captionArray:e,timestampOffset:s}){if(!e)return;const i=Y.WebKitDataCue||Y.VTTCue;e.forEach(r=>{const n=r.stream;r.content?r.content.forEach(a=>{const o=new i(r.startTime+s,r.endTime+s,a.text);o.line=a.line,o.align="left",o.position=a.position,o.positionAlign="line-left",t[n].addCue(o)}):t[n].addCue(new i(r.startTime+s,r.endTime+s,r.text))})},ute=function(t){Object.defineProperties(t.frame,{id:{get(){return pe.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get(){return pe.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get(){return pe.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})},cte=({inbandTextTracks:t,metadataArray:e,timestampOffset:s,videoDuration:i})=>{if(!e)return;const r=Y.WebKitDataCue||Y.VTTCue,n=t.metadataTrack_;if(!n||(e.forEach(d=>{const p=d.cueTime+s;typeof p!="number"||Y.isNaN(p)||p<0||!(p<1/0)||!d.frames||!d.frames.length||d.frames.forEac
vendor: 47,510 bytes, lines 473-475
473h(_=>{const b=new r(p,p,_.value||_.url||_.data||"");b.frame=_,b.value=_,ute(b),n.addCue(b)})}),!n.cues||!n.cues.length))return;const a=n.cues,o=[];for(let d=0;d<a.length;d++)a[d]&&o.push(a[d]);const l=o.reduce((d,p)=>{const _=d[p.startTime]||[];return _.push(p),d[p.startTime]=_,d},{}),c=Object.keys(l).sort((d,p)=>Number(d)-Number(p));c.forEach((d,p)=>{const _=l[d],b=isFinite(i)?i:d,T=Number(c[p+1])||b;_.forEach(y=>{y.endTime=T})})},dte={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},hte=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),fte=({inbandTextTracks:t,dateRanges:e})=>{const s=t.metadataTrack_;if(!s)return;const i=Y.WebKitDataCue||Y.VTTCue;e.forEach(r=>{for(const n of Object.keys(r)){if(hte.has(n))continue;const a=new i(r.startTime,r.endTime,"");a.id=r.id,a.type="com.apple.quicktime.HLS",a.value={key:dte[n],data:r[n]},(n==="scte35Out"||n==="scte35In")&&(a.value.data=new Uint8Array(a.value.data.match(/[\da-f]{2}/gi)).buffer),s.addCue(a)}r.processDateRange()})},pA=(t,e,s)=>{t.metadataTrack_||(t.metadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,pe.browser.IS_ANY_SAFARI||(t.metadataTrack_.inBandMetadataTrackDispatchType=e))},ih=function(t,e,s){let i,r;if(s&&s.cues)for(i=s.cues.length;i--;)r=s.cues[i],r.startTime>=t&&r.endTime<=e&&s.removeCue(r)},pte=function(t){const e=t.cues;if(!e)return;const s={};for(let i=e.length-1;i>=0;i--){const r=e[i],n=`${r.startTime}-${r.endTime}-${r.text}`;s[n]?t.removeCue(r):s[n]=r}},mte=(t,e,s)=>{if(typeof e>"u"||e===null||!t.length)return[];const i=Math.ceil((e-s+3)*dl.ONE_SECOND_IN_TS);let r;for(r=0;r<t.length&&!(t[r].pts>i);r++);return t.slice(r)},gte=(t,e,s)=>{if(!e.length)return t;if(s)return e.slice();const i=e[0].pts;let r=0;for(r;r<t.length&&!(t[r].pts>=i);r++);return t.slice(0,r).concat(e)},yte=(t,e,s,i)=>{const r=Math.ceil((e-i)*dl.ONE_SECOND_IN_TS),n=Math.ceil((s-i)*dl.ONE_SECOND_IN_TS),a=t.slice();let o=t.length;for(;o--&&!(t[o].pts<=n););if(o===-1)return a;let l=o+1;for(;l--&&!(t[l].pts<=r););return l=Math.max(l,0),a.splice(l,o-l+1),a},_te=function(t,e){if(!t&&!e||!t&&e||t&&!e)return!1;if(t===e)return!0;const s=Object.keys(t).sort(),i=Object.keys(e).sort();if(s.length!==i.length)return!1;for(let r=0;r<s.length;r++){const n=s[r];if(n!==i[r]||t[n]!==e[n])return!1}return!0},NR=22,vte=function(t,e,s){e=e||[];const i=[];let r=0;for(let n=0;n<e.length;n++){const a=e[n];if(t===a.timeline&&(i.push(n),r+=a.duration,r>s))return n}return i.length===0?0:i[i.length-1]},Gd=1,bte=500,mA=t=>typeof t=="number"&&isFinite(t),op=1/60,Tte=(t,e,s)=>t!=="main"||!e||!s?null:!s.hasAudio&&!s.hasVideo?"Neither audio nor video found in segment.":e.hasVideo&&!s.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!e.hasVideo&&s.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null,Ste=(t,e,s)=>{let i=e-Rs.BACK_BUFFER_LENGTH;t.length&&(i=Math.max(i,t.start(0)));const r=e-s;return Math.min(r,i)},Ql=t=>{const{startOfSegment:e,duration:s,segment:i,part:r,playlist:{mediaSequence:n,id:a,segments:o=[]},mediaIndex:l,partIndex:c,timeline:d}=t,p=o.length-1;let _="mediaIndex/partIndex increment";t.getMediaInfoForTime?_=`getMediaInfoForTime (${t.getMediaInfoForTime})`:t.isSyncRequest&&(_="getSyncSegmentCandidate (isSyncRequest)"),t.independent&&(_+=` with independent ${t.independent}`);const b=typeof c=="number",T=t.segment.uri?"segment":"pre-segment",y=b?tR({preloadSegment:i})-1:0;return`${T} [${n+l}/${n+p}]`+(b?` part [${c}/${y}]`:"")+` segment start/end [${i.start} => ${i.end}]`+(b?` part start/end [${r.start} => ${r.end}]`:"")+` startOfSegment [${e}] duration [${s}] timeline [${d}] selected by [${_}] playlist [${a}]`},gA=t=>`${t}TimingInfo`,Ete=({segmentTimeline:t,currentTimeline:e,startOfSegment:s,buffered:i,overrideCheck:r})=>!r&&t===e?null:t<e?s:i.length?i.end(i.length-1):s,yA=({timelineChangeController:t,currentTimeline:e,segmentTimeline:s,loaderType:i,audioDisabled:r})=>{if(e===s)return!1;if(i==="audio"){const n=t.lastTimelineChange({type:"main"});return!n||n.to!==s}if(i==="main"&&r){const n=t.pendingTimelineChange({type:"audio"});return!(n&&n.to===s)}return!1},xte=t=>{let e=0;return["video","audio"].forEach(function(s){const i=t[`${s}TimingInfo`];if(!i)return;const{start:r,end:n}=i;let a;typeof r=="bigint"||typeof n=="bigint"?a=Y.BigInt(n)-Y.BigInt(r):typeof r=="number"&&typeof n=="number"&&(a=n-r),typeof a<"u"&&a>e&&(e=a)}),typeof e=="bigint"&&e<Number.MAX_SAFE_INTEGER&&(e=Number(e)),e},_A=({segmentDuration:t,maxDuration:e})=>t?Math.round(t)>e+In:!1,Cte=(t,e)=>{if(e!=="hls")return null;const s=xte({audioTimingInfo:t.audioTimingInfo,videoTimingInfo:t.videoTimingInfo});if(!s)return null;const i=t.playlist.targetDuration,r=_A({segmentDuration:s,maxDuration:i*2}),n=_A({segmentDuration:s,maxDuration:i}),a=`Segment with index ${t.mediaIndex} from playlist ${t.playlist.id} has a duration of ${s} when the reported duration is ${t.duration} and the target duration is ${i}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;return r||n?{severity:r?"warn":"info",message:a}:null};class mT extends pe.EventTarget{constructor(e,s={}){if(super(),!e)throw new TypeError("Initialization settings are required");if(typeof e.currentTime!="function")throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.logger_=Mr(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(i){i!==this.state_&&(this.logger_(`${this.state_} -> ${i}`),this.state_=i,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),this.loaderType_==="main"&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),this.loaderType_==="audio"&&this.timelineChangeController_.on("timelinechange",()=>{this.hasEnoughInfoToLoad_()&&this.processLoadQueue_(),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})}createTransmuxer_(){return _v.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&Y.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){if(this.state!=="WAITING"){this.pendingSegment_&&(this.pendingSegment_=null);return}this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,Y.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return this.state==="APPENDING"&&!this.pendingSegment_?(this.state="READY",!0):!this.pendingSegment_||this.pendingSegment_.requestId!==e}error(e){return typeof e<"u"&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&_v.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Qi();if(this.loaderType_==="main"){const{hasAudio:s,hasVideo:i,isMuxed:r}=e;if(i&&s&&!this.audioDisabled_&&!r)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,s=!1){if(!e)return null;const i=Nm(e);let r=this.initSegments_[i];return s&&!r&&e.bytes&&(this.initSegments_[i]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),r||e}segmentKey(e,s=!1){if(!e)return null;const i=yR(e);let r=this.keyCache_[i];this.cacheEncryptionKeys_&&s&&!r&&e.bytes&&(this.keyCache_[i]=r={resolvedUri:e.resolvedUri,bytes:e.bytes});const n={resolvedUri:(r||e).resolvedUri};return r&&(n.bytes=r.bytes),n}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),!!this.playlist_){if(this.state==="INIT"&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||this.state!=="READY"&&this.state!=="INIT"||(this.state="READY")}}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,s={}){if(!e)return;const i=this.playlist_,r=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=s,this.state==="INIT"&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},this.loaderType_==="main"&&this.syncController_.setDateTimeMappingForStart(e));let n=null;if(i&&(i.id?n=i.id:i.uri&&(n=i.uri)),this.logger_(`playlist update [${n} => ${e.id||e.uri}]`),this.syncController_.updateMediaSequenceMap(e,this.currentTime_(),this.loaderType_),this.trigger("syncinfoupdate"),this.state==="INIT"&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri){this.mediaIndex!==null&&(!e.endList&&typeof e.partTargetDuration=="number"?this.resetLoader():this.resyncLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}const a=e.mediaSequence-i.mediaSequence;if(this.logger_(`live window shift [${a}]`),this.mediaIndex!==null)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const o=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!o.parts||!o.parts.length||!o.parts[this.partIndex])){const l=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=l}}r&&(r.mediaIndex-=a,r.mediaIndex<0?(r.mediaIndex=null,r.partIndex=null):(r.mediaIndex>=0&&(r.segment=e.segments[r.mediaIndex]),r.partIndex>=0&&r.segment.parts&&(r.part=r.segment.parts[r.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}pause(){this.checkBufferTimeout_&&(Y.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return this.checkBufferTimeout_===null}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}resetLoader(){this.fetchAtBuffer_=!1,this.resyncLoader()}resyncLoader(){this.transmuxer_&&_v.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.shouldForceTimestampOffsetAfterResync_=!0,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,s,i=()=>{},r=!1){if(s===1/0&&(s=this.duration_()),s<=e){this.logger_("skipping remove because end ${end} is <= start ${start}");return}if(!this.sourceUpdater_||!this.getMediaInfo_()){this.logger_("skipping remove because no source updater or starting media info");return}let n=1;const a=()=>{n--,n===0&&i()};(r||!this.audioDisabled_)&&(n++,this.sourceUpdater_.removeAudio(e,s,a)),(r||this.loaderType_==="main")&&(this.gopBuffer_=yte(this.gopBuffer_,e,s,this.timeMapping_),n++,this.sourceUpdater_.removeVideo(e,s,a));for(const o in this.inbandTextTracks_)ih(e,s,this.inbandTextTracks_[o]);ih(e,s,this.segmentMetadataTrack_),a()}monitorBuffer_(){this.checkBufferTimeout_&&Y.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=Y.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){this.state==="READY"&&this.fillBuffer_(),this.checkBufferTimeout_&&Y.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=Y.setTimeout(this.monitorBufferTick_.bind(this),bte)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const e=this.chooseNextRequest_();e&&(typeof e.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}isEndOfStream_(e=this.mediaIndex,s=this.playlist_,i=this.partIndex){if(!s||!this.mediaSource_)return!1;const r=typeof e=="number"&&s.segments[e],n=e+1===s.segments.length,a=!r||!r.parts||i+1===r.parts.length;return s.endList&&this.mediaSource_.readyState==="open"&&n&&a}chooseNextRequest_(){const e=this.buffered_(),s=rA(e)||0,i=WS(e,this.currentTime_()),r=!this.hasPlayed_()&&i>=1,n=i>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||r||n)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);const o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(o.isSyncRequest)o.mediaIndex=vte(this.currentTimeline_,a,s),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${o.mediaIndex}`);else if(this.mediaIndex!==null){const _=a[this.mediaIndex],b=typeof this.partIndex=="number"?this.partIndex:-1;o.startOfSegment=_.end?_.end:s,_.parts&&_.parts[b+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=b+1):o.mediaIndex=this.mediaIndex+1}else{const{segmentIndex:_,startTime:b,partIndex:T}=Vi.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?s:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});o.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${s}`:`currentTime ${this.currentTime_()}`,o.mediaIndex=_,o.startOfSegment=b,o.partIndex=T,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${o.mediaIndex} `)}const l=a[o.mediaIndex];let c=l&&typeof o.partIndex=="number"&&l.parts&&l.parts[o.partIndex];if(!l||typeof o.partIndex=="number"&&!c)return null;typeof o.partIndex!="number"&&l.parts&&(o.partIndex=0,c=l.parts[0]);const d=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!i&&c&&!d&&!c.independent)if(o.partIndex===0){const _=a[o.mediaIndex-1],b=_.parts&&_.parts.length&&_.parts[_.parts.length-1];b&&b.independent&&(o.mediaIndex-=1,o.partIndex=_.parts.length-1,o.independent="previous segment")}else l.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");const p=this.mediaSource_&&this.mediaSource_.readyState==="ended";return o.mediaIndex>=a.length-1&&p&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,o.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(o))}generateSegmentInfo_(e){const{independent:s,playlist:i,mediaIndex:r,startOfSegment:n,isSyncRequest:a,partIndex:o,forceTimestampOffset:l,getMediaInfoForTime:c}=e,d=i.segments[r],p=typeof o=="number"&&d.parts[o],_={requestId:"segment-loader-"+Math.random(),uri:p&&p.resolvedUri||d.resolvedUri,mediaIndex:r,partIndex:p?o:null,isSyncRequest:a,startOfSegment:n,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:d.timeline,duration:p&&p.duration||d.duration,segment:d,part:p,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:c,independent:s},b=typeof l<"u"?l:this.isPendingTimestampOffset_;_.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:d.timeline,currentTimeline:this.currentTimeline_,startOfSegment:n,buffered:this.buffered_(),overrideCheck:b});const T=rA(this.sourceUpdater_.audioBuffered());return typeof T=="number"&&(_.audioAppendStart=T-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(_.gopsToAlignWith=mte(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),_}timestampOffsetForSegment_(e){return Ete(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;const s=this.currentTime_(),i=e.bandwidth,r=this.pendingSegment_.duration,n=Vi.estimateSegmentRequestTime(r,i,this.playlist_,e.bytesReceived),a=zZ(this.buffered_(),s,this.vhs_.tech_.playbackRate())-1;if(n<=a)return;const o=rte({main:this.vhs_.playlists.main,currentTime:s,bandwidth:i,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!o)return;const l=n-a-o.rebufferingImpact;let c=.5;a<=In&&(c=1),!(!o.playlist||o.playlist.uri===this.playlist_.uri||l<c)&&(this.bandwidth=o.playlist.attributes.BANDWIDTH*Rs.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${Ql(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,s){this.earlyAbortWhenNeeded_(s.stats),!this.checkForAbort_(s.requestId)&&this.trigger("progress")}handleTrackInfo_(e,s){this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)&&(this.checkForIllegalMediaSwitch(s)||(s=s||{},_te(this.currentMediaInfo_,s)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=s,this.currentMediaInfo_=s,this.logger_("trackinfo update",s),this.trigger("trackinfo")),!this.checkForAbort_(e.requestId)&&(this.pendingSegment_.trackInfo=s,this.hasEnoughInfoToAppend_()&&this.processCallQueue_())))}handleTimingInfo_(e,s,i,r){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const n=this.pendingSegment_,a=gA(s);n[a]=n[a]||{},n[a][i]=r,this.logger_(`timinginfo: ${s} - ${i} - ${r}`),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}handleCaptions_(e,s){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(s.length===0){this.logger_("SegmentLoader received no captions from a caption event");return}if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,s));return}const i=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};s.forEach(n=>{r[n.stream]=r[n.stream]||{startTime:1/0,captions:[],endTime:0};const a=r[n.stream];a.startTime=Math.min(a.startTime,n.startTime+i),a.endTime=Math.max(a.endTime,n.endTime+i),a.captions.push(n)}),Object.keys(r).forEach(n=>{const{startTime:a,endTime:o,captions:l}=r[n],c=this.inbandTextTracks_;this.logger_(`adding cues from ${a} -> ${o} for ${n}`),ote(c,this.vhs_.tech_,n),ih(a,o,c[n]),lte({captionArray:l,inbandTextTracks:c,timestampOffset:i})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,s,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,s,i));return}this.addMetadataToTextTrack(i,s,this.duration_())}}processMetadataQueue_(){this.metadataQueue_.id3.forEach(e=>e()),this.metadataQueue_.caption.forEach(e=>e()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const e=this.callQueue_;this.callQueue_=[],e.forEach(s=>s())}processLoadQueue_(){const e=this.loadQueue_;this.loadQueue_=[],e.forEach(s=>s())}hasEnoughInfoToLoad_(){if(this.loaderType_!=="audio")return!0;const e=this.pendingSegment_;return e?this.getCurrentMediaInfo_()?!yA({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}):!0:!1}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const e=this.pendingSegment_,s=this.getCurrentMediaInfo_();if(!e||!s)return!1;const{hasAudio:i,hasVideo:r,isMuxed:n}=s;return!(r&&!e.videoTimingInfo||i&&!this.audioDisabled_&&!n&&!e.audioTimingInfo||yA({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,s){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){this.callQueue_.push(this.handleData_.bind(this,e,s));return}const i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),this.mediaSource_.readyState!=="closed"){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[gA(s.type)].start;else{const r=this.getCurrentMediaInfo_(),n=this.loaderType_==="main"&&r&&r.hasVideo;let a;n&&(a=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:n,firstVideoFrameTimeForData:a,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,s.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:this.loaderType_==="main"});const r=this.chooseNextRequest_();if(r.mediaIndex!==i.mediaIndex||r.partIndex!==i.partIndex){this.logger_("sync segment was incorrect, not appending");return}this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,s)}}updateAppendInitSegmentStatus(e,s){this.loaderType_==="main"&&typeof e.timestampOffset=="number"&&!e.changedTimestampOffset&&(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[s]!==e.playlist&&(this.appendInitSegment_[s]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:s,map:i,playlist:r}){if(i){const n=Nm(i);if(this.activeInitSegmentId_===n)return null;s=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=n}return s&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=r,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,s):null}handleQuotaExceededError_({segmentInfo:e,type:s,bytes:i},r){const n=this.sourceUpdater_.audioBuffered(),a=this.sourceUpdater_.videoBuffered();n.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+hl(n).join(", ")),a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+hl(a).join(", "));const o=n.length?n.start(0):0,l=n.length?n.end(n.length-1):0,c=a.length?a.start(0):0,d=a.length?a.end(a.length-1):0;if(l-o<=Gd&&d-c<=Gd){this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${i.byteLength}, audio buffer: ${hl(n).join(", ")}, video buffer: ${hl(a).join(", ")}, `),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),this.trigger("error");return}this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:e,type:s,bytes:i}));const p=this.currentTime_()-Gd;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${p}`),this.remove(0,p,()=>{this.logger_(`On QUOTA_EXCEEDED_ERR, retrying append in ${Gd}s`),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=Y.setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},Gd*1e3)},!0)}handleAppendError_({segmentInfo:e,type:s,bytes:i},r){if(r){if(r.code===NR){this.handleQuotaExceededError_({segmentInfo:e,type:s,bytes:i});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",r),this.error(`${s} append of ${i.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`),this.trigger("appenderror")}}appendToSourceBuffer_({segmentInfo:e,type:s,initSegment:i,data:r,bytes:n}){if(!n){const a=[r];let o=r.byteLength;i&&(a.unshift(i),o+=i.byteLength),n=ate({bytes:o,segments:a})}this.sourceUpdater_.appendBuffer({segmentInfo:e,type:s,bytes:n},this.handleAppendError_.bind(this,{segmentInfo:e,type:s,bytes:n}))}handleSegmentTimingInfo_(e,s,i){if(!this.pendingSegment_||s!==this.pendingSegment_.requestId)return;const r=this.pendingSegment_.segment,n=`${e}TimingInfo`;r[n]||(r[n]={}),r[n].transmuxerPrependedSeconds=i.prependedContentDuration||0,r[n].transmuxedPresentationStart=i.start.presentation,r[n].transmuxedDecodeStart=i.start.decode,r[n].transmuxedPresentationEnd=i.end.presentation,r[n].transmuxedDecodeEnd=i.end.decode,r[n].baseMediaDecodeTime=i.baseMediaDecodeTime}appendData_(e,s){const{type:i,data:r}=s;if(!r||!r.byteLength||i==="audio"&&this.audioDisabled_)return;const n=this.getInitSegmentAndUpdateState_({type:i,initSegment:s.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:n,data:r})}loadSegment_(e){if(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),typeof e.timestampOffset=="number"&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_()){this.loadQueue_.push(()=>{const s=sn({},e,{forceTimestampOffset:!0});sn(e,this.generateSegmentInfo_(s)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)});return}this.updateTransmuxerAndRequestSegment_(e)}updateTransmuxerAndRequestSegment_(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));const s=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=this.mediaIndex!==null,n=e.timeline!==this.currentTimeline_&&e.timeline>0,a=i||r&&n;this.logger_(`Requesting ${Ql(e)}`),s.map&&!s.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=Jee({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:s,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:a,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:o,level:l,stream:c})=>{this.logger_(`${Ql(e)} logged from transmuxer stream ${c} as a ${l}: ${o}`)}})}trimBackBuffer_(e){const s=Ste(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);s>0&&this.remove(0,s)}createSimplifiedSegmentObj_(e){const s=e.segment,i=e.part,r={resolvedUri:i?i.resolvedUri:s.resolvedUri,byterange:i?i.byterange:s.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},n=e.playlist.segments[e.mediaIndex-1];if(n&&n.timeline===s.timeline&&(n.videoTimingInfo?r.baseStartTime=n.videoTimingInfo.transmuxedDecodeEnd:n.audioTimingInfo&&(r.baseStartTime=n.audioTimingInfo.transmuxedDecodeEnd)),s.key){const a=s.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);r.key=this.segmentKey(s.key),r.key.iv=a}return s.map&&(r.map=this.initSegmentForMap(s.map)),r}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,s){if(this.pendingSegment_.byteLength=s.bytesReceived,e<op){this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record ${op}`);return}this.bandwidth=s.bandwidth,this.roundTrip=s.roundTripTime}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,s,i){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,s,i));return}if(this.saveTransferStats_(s.stats),!this.pendingSegment_||s.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Ln.ABORTED)return;if(this.pause(),e.code===Ln.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1,this.error(e),this.trigger("error");return}const r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,s.stats),r.endOfAllRequests=s.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=gte(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(r)}setTimeMapping_(e){const s=this.syncController_.mappingForTimeline(e);s!==null&&(this.timeMapping_=s)}updateMediaSecondsLoaded_(e){typeof e.start=="number"&&typeof e.end=="number"?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return e===null?!1:this.loaderType_==="main"&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset()}trueSegmentStart_({currentStart:e,playlist:s,mediaIndex:i,firstVideoFrameTimeForData:r,currentVideoTimestampOffset:n,useVideoTimingInfo:a,videoTimingInfo:o,audioTimingInfo:l}){if(typeof e<"u")return e;if(!a)return l.start;const c=s.segments[i-1];return i===0||!c||typeof c.start>"u"||c.end!==r+n?r:o.start}waitForAppendsToComplete_(e){const s=this.getCurrentMediaInfo_(e);if(!s){this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),this.trigger("error");return}const{hasAudio:i,hasVideo:r,isMuxed:n}=s,a=this.loaderType_==="main"&&r,o=!this.audioDisabled_&&i&&!n;if(e.waitingOnAppends=0,!e.hasAppendedData_){!e.timingInfo&&typeof e.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),this.checkAppendsDone_(e);return}a&&e.waitingOnAppends++,o&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),o&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,e.waitingOnAppends===0&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){const s=Tte(this.loaderType_,this.getCurrentMediaInfo_(),e);return s?(this.error({message:s,playlistExclusionDuration:1/0}),this.trigger("error"),!0):!1}updateSourceBufferTimestampOffset_(e){if(e.timestampOffset===null||typeof e.timingInfo.start!="number"||e.changedTimestampOffset||this.loaderType_!=="main")return;let s=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),s=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),s=!0),s&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:s,timingInfo:i}){return this.useDtsForTimestampOffset_?e&&typeof e.transmuxedDecodeStart=="number"?e.transmuxedDecodeStart:s&&typeof s.transmuxedDecodeStart=="number"?s.transmuxedDecodeStart:i.start:i.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};const s=this.getMediaInfo_(),i=this.loaderType_==="main"&&s&&s.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;i&&(e.timingInfo.end=typeof i.end=="number"?i.end:i.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_){this.state="READY",this.paused()||this.monitorBuffer_();return}const e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:this.loaderType_==="main"});const s=Cte(e,this.sourceType_);if(s&&(s.severity==="warn"?pe.log.warn(s.message):this.logger_(s.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_)){this.logger_(`Throwing away un-appended sync request ${Ql(e)}`);return}this.logger_(`Appended ${Ql(e)}`),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),this.loaderType_==="main"&&!this.audioDisabled_&&this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");const i=e.segment,r=e.part,n=i.end&&this.currentTime_()-i.end>e.playlist.targetDuration*3,a=r&&r.end&&this.currentTime_()-r.end>e.playlist.partTargetDuration*3;if(n||a){this.logger_(`bad ${n?"segment":"part"} ${Ql(e)}`),this.resetEverything();return}this.mediaIndex!==null&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<op){this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record ${op}`);return}const s=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,r=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(r-s)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;const s=e.segment,i=s.start,r=s.end;if(!mA(i)||!mA(r))return;ih(i,r,this.segmentMetadataTrack_);const n=Y.WebKitDataCue||Y.VTTCue,a={custom:s.custom,dateTimeObject:s.dateTimeObject,dateTimeString:s.dateTimeString,programDateTime:s.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:i,end:r},o=JSON.stringify(a),l=new n(i,r,o);l.value=a,this.segmentMetadataTrack_.addCue(l)}}function Oa(){}const RR=function(t){return typeof t!="string"?t:t.replace(/./,e=>e.toUpperCase())},wte=["video","audio"],gT=(t,e)=>{const s=e[`${t}Buffer`];return s&&s.updating||e.queuePending[t]},Ate=(t,e)=>{for(let s=0;s<e.length;s++){const i=e[s];if(i.type==="mediaSource")return null;if(i.type===t)return s}return null},Pu=(t,e)=>{if(e.queue.length===0)return;let s=0,i=e.queue[s];if(i.type==="mediaSource"){!e.updating()&&e.mediaSource.readyState!=="closed"&&(e.queue.shift(),i.action(e),i.doneFn&&i.doneFn(),Pu("audio",e),Pu("video",e));return}if(t!=="mediaSource"&&!(!e.ready()||e.mediaSource.readyState==="closed"||gT(t,e))){if(i.type!==t){if(s=Ate(t,e.queue),s===null)return;i=e.queue[s]}if(e.queue.splice(s,1),e.queuePending[t]=i,i.action(t,e),!i.doneFn){e.queuePending[t]=null,Pu(t,e);return}}},MR=(t,e)=>{const s=e[`${t}Buffer`],i=RR(t);s&&(s.removeEventListener("updateend",e[`on${i}UpdateEnd_`]),s.removeEventListener("error",e[`on${i}Error_`]),e.codecs[t]=null,e[`${t}Buffer`]=null)},Tn=(t,e)=>t&&e&&Array.prototype.indexOf.call(t.sourceBuffers,e)!==-1,ar={appendBuffer:(t,e,s)=>(i,r)=>{const n=r[`${i}Buffer`];if(Tn(r.mediaSource,n)){r.logger_(`Appending segment ${e.mediaIndex}'s ${t.length} bytes to ${i}Buffer`);try{n.appendBuffer(t)}catch(a){r.logger_(`Error with code ${a.code} `+(a.code===NR?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${e.mediaIndex} to ${i}Buffer`),r.queuePending[i]=null,s(a)}}},remove:(t,e)=>(s,i)=>{const r=i[`${s}Buffer`];if(Tn(i.mediaSource,r)){i.logger_(`Removing ${t} to ${e} from ${s}Buffer`);try{r.remove(t,e)}catch{i.logger_(`Remove ${t} to ${e} from ${s}Buffer failed`)}}},timestampOffset:t=>(e,s)=>{const i=s[`${e}Buffer`];Tn(s.mediaSource,i)&&(s.logger_(`Setting ${e}timestampOffset to ${t}`),i.timestampOffset=t)},callback:t=>(e,s)=>{t()},endOfStream:t=>e=>{if(e.mediaSource.readyState==="open"){e.logger_(`Calling mediaSource endOfStream(${t||""})`);try{e.mediaSource.endOfStream(t)}catch(s){pe.log.warn("Failed to call media source endOfStream",s)}}},duration:t=>e=>{e.logger_(`Setting mediaSource duration to ${t}`);try{e.mediaSource.duration=t}catch(s){pe.log.warn("Failed to set media source duration",s)}},abort:()=>(t,e)=>{if(e.mediaSource.readyState!=="open")return;const s=e[`${t}Buffer`];if(Tn(e.mediaSource,s)){e.logger_(`calling abort on ${t}Buffer`);try{s.abort()}catch(i){pe.log.warn(`Failed to abort on ${t}Buffer`,i)}}},addSourceBuffer:(t,e)=>s=>{const i=RR(t),r=Jh(e);s.logger_(`Adding ${t}Buffer with codec ${e} to mediaSource`);const n=s.mediaSource.addSourceBuffer(r);n.addEventListener("updateend",s[`on${i}UpdateEnd_`]),n.addEventListener("error",s[`on${i}Error_`]),s.codecs[t]=e,s[`${t}Buffer`]=n},removeSourceBuffer:t=>e=>{const s=e[`${t}Buffer`];if(MR(t,e),!!Tn(e.mediaSource,s)){e.logger_(`Removing ${t}Buffer with codec ${e.codecs[t]} from mediaSource`);try{e.mediaSource.removeSourceBuffer(s)}catch(i){pe.log.warn(`Failed to removeSourceBuffer ${t}Buffer`,i)}}},changeType:t=>(e,s)=>{const i=s[`${e}Buffer`],r=Jh(t);if(Tn(s.mediaSource,i)&&s.codecs[e]!==t){s.logger_(`changing ${e}Buffer codec from ${s.codecs[e]} to ${t}`);try{i.changeType(r),s.codecs[e]=t}catch(n){pe.log.warn(`Failed to changeType on ${e}Buffer`,n)}}}},or=({type:t,sourceUpdater:e,action:s,doneFn:i,name:r})=>{e.queue.push({type:t,action:s,doneFn:i,name:r}),Pu(t,e)},vA=(t,e)=>s=>{if(e.queuePending[t]){const i=e.queuePending[t].doneFn;e.queuePending[t]=null,i&&i(e[`${t}Error_`])}Pu(t,e)};class FR extends pe.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>Pu("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=Mr("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=vA("video",this),this.onAudioUpdateEnd_=vA("audio",this),this.onVideoError_=s=>{this.videoError_=s},this.onAudioError_=s=>{this.audioError_=s},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,s){or({type:"mediaSource",sourceUpdater:this,action:ar.addSourceBuffer(e,s),name:"addSourceBuffer"})}abort(e){or({type:e,sourceUpdater:this,action:ar.abort(e),name:"abort"})}removeSourceBuffer(e){if(!this.canRemoveSourceBuffer()){pe.log.error("removeSourceBuffer is not supported!");return}or({type:"mediaSource",sourceUpdater:this,action:ar.removeSourceBuffer(e),name:"removeSourceBuffer"})}canRemoveSourceBuffer(){return!pe.browser.IS_FIREFOX&&Y.MediaSource&&Y.MediaSource.prototype&&typeof Y.MediaSource.prototype.removeSourceBuffer=="function"}static canChangeType(){return Y.SourceBuffer&&Y.SourceBuffer.prototype&&typeof Y.SourceBuffer.prototype.changeType=="function"}canChangeType(){return this.constructor.canChangeType()}changeType(e,s){if(!this.canChangeType()){pe.log.error("changeType is not supported!");return}or({type:e,sourceUpdater:this,action:ar.changeType(s),name:"changeType"})}addOrChangeSourceBuffers(e){if(!e||typeof e!="object"||Object.keys(e).length===0)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(s=>{const i=e[s];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(s,i);this.canChangeType()&&this.changeType(s,i)})}appendBuffer(e,s){const{segmentInfo:i,type:r,bytes:n}=e;if(this.processedAppend_=!0,r==="audio"&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([e,s]),this.logger_(`delayed audio append of ${n.length} until video append`);return}const a=s;if(or({type:r,sourceUpdater:this,action:ar.appendBuffer(n,i||{mediaIndex:-1},a),doneFn:s,name:"appendBuffer"}),r==="video"){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const o=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${o.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,o.forEach(l=>{this.appendBuffer.apply(this,l)})}}audioBuffered(){return Tn(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Qi()}videoBuffered(){return Tn(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Qi()}buffered(){const e=Tn(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,s=Tn(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return s&&!e?this.audioBuffered():e&&!s?this.videoBuffered():VZ(this.audioBuffered(),this.videoBuffered())}setDuration(e,s=Oa){or({type:"mediaSource",sourceUpdater:this,action:ar.duration(e),name:"duration",doneFn:s})}endOfStream(e=null,s=Oa){typeof e!="string"&&(e=void 0),or({type:"mediaSource",sourceUpdater:this,action:ar.endOfStream(e),name:"endOfStream",doneFn:s})}removeAudio(e,s,i=Oa){if(!this.audioBuffered().length||this.audioBuffered().end(0)===0){i();return}or({type:"audio",sourceUpdater:this,action:ar.remove(e,s),doneFn:i,name:"remove"})}removeVideo(e,s,i=Oa){if(!this.videoBuffered().length||this.videoBuffered().end(0)===0){i();return}or({type:"video",sourceUpdater:this,action:ar.remove(e,s),doneFn:i,name:"remove"})}updating(){return!!(gT("audio",this)||gT("video",this))}audioTimestampOffset(e){return typeof e<"u"&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(or({type:"audio",sourceUpdater:this,action:ar.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return typeof e<"u"&&this.videoBuffer&&this.videoTimestampOffset!==e&&(or({type:"video",sourceUpdater:this,action:ar.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&or({type:"audio",sourceUpdater:this,action:ar.callback(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&or({type:"video",sourceUpdater:this,action:ar.callback(e),name:"callback"})}dispose(){this.trigger("dispose"),wte.forEach(e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`](()=>MR(e,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const bA=t=>decodeURIComponent(escape(String.fromCharCode.apply(null,t))),kte=t=>{const e=new Uint8Array(t);return Array.from(e).map(s=>s.toString(16).padStart(2,"0")).join("")},TA=new Uint8Array(`
474
475`.split("").map(t=>t.charCodeAt(0)));
475class Dte extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class Ite extends mT{constructor(e,s={}){super(e,s),this.mediaSource_=null,this.subtitlesTrack_=null,this.loaderType_="subtitle",this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}createTransmuxer_(){return null}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Qi();const e=this.subtitlesTrack_.cues,s=e[0].startTime,i=e[e.length-1].startTime;return Qi([[s,i]])}initSegmentForMap(e,s=!1){if(!e)return null;const i=Nm(e);let r=this.initSegments_[i];if(s&&!r&&e.bytes){const n=TA.byteLength+e.bytes.byteLength,a=new Uint8Array(n);a.set(e.bytes),a.set(TA,e.bytes.byteLength),this.initSegments_[i]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return r||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return typeof e>"u"?this.subtitlesTrack_:(this.subtitlesTrack_=e,this.state==="INIT"&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)}remove(e,s){ih(e,s,this.subtitlesTrack_)}fillBuffer_(){const e=this.chooseNextRequest_();if(e){if(this.syncController_.timestampOffsetForTimeline(e.timeline)===null){const s=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};this.syncController_.one("timestampoffset",s),this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,s,i){if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(s.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(e){e.code===Ln.TIMEOUT&&this.handleTimeout_(),e.code===Ln.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(e);return}const r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,s.stats),s.key&&this.segmentKey(s.key,!0),this.state="APPENDING",this.trigger("appending");const n=r.segment;if(n.map&&(n.map.bytes=s.map.bytes),r.bytes=s.bytes,typeof Y.WebVTT!="function"&&typeof this.loadVttJs=="function"){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(()=>this.segmentRequestFinished_(e,s,i),()=>this.stopForError({message:"Error loading vtt.js"}));return}n.requested=!0;try{this.parseVTTCues_(r)}catch(a){this.stopForError({message:a.message});return}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=n.duration,r.cues.forEach(a=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new Y.VTTCue(a.startTime,a.endTime,a.text):a)}),pte(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(e){let s,i=!1;if(typeof Y.WebVTT!="function")throw new Dte;typeof Y.TextDecoder=="function"?s=new Y.TextDecoder("utf8"):(s=Y.WebVTT.StringDecoder(),i=!0);const r=new Y.WebVTT.Parser(Y,Y.vttjs,s);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=e.cues.push.bind(e.cues),r.ontimestampmap=a=>{e.timestampmap=a},r.onparsingerror=a=>{pe.log.warn("Error encountered when parsing cues: "+a.message)},e.segment.map){let a=e.segment.map.bytes;i&&(a=bA(a)),r.parse(a)}let n=e.bytes;i&&(n=bA(n)),r.parse(n),r.flush()}updateTimeMapping_(e,s,i){const r=e.segment;if(!s)return;if(!e.cues.length){r.empty=!0;return}const{MPEGTS:n,LOCAL:a}=e.timestampmap,o=n/dl.ONE_SECOND_IN_TS-a+s.mapping;
475if(e.cues.forEach(l=>{const c=l.endTime-l.startTime,d=n===0?l.startTime+o:this.handleRollover_(l.startTime+o,s.time);l.startTime=Math.max(d,0),l.endTime=Math.max(d+c,0)}),!i.syncInfo){const l=e.cues[0].startTime,c=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(l,c-r.duration)}}}handleRollover_(e,s){if(s===null)return e;let i=e*dl.ONE_SECOND_IN_TS;const r=s*dl.ONE_SECOND_IN_TS;let n;for(r<i?n=-8589934592:n=8589934592;Math.abs(i-r)>4294967296;)i+=n;return i/dl.ONE_SECOND_IN_TS}}const Pte=function(t,e){const s=t.cues;for(let i=0;i<s.length;i++){const r=s[i];if(e>=r.adStartTime&&e<=r.adEndTime)return r}return null},Lte=function(t,e,s=0){if(!t.segments)return;let i=s,r;for(let n=0;n<t.segments.length;n++){const a=t.segments[n];if(r||(r=Pte(e,i+a.duration/2)),r){if("cueIn"in a){r.endTime=i,r.adEndTime=i,i+=a.duration,r=null;continue}if(i<r.endTime){i+=a.duration;continue}r.endTime+=a.duration}else if("cueOut"in a&&(r=new Y.VTTCue(i,i+a.duration,a.cueOut),r.adStartTime=i,r.adEndTime=i+parseFloat(a.cueOut),e.addCue(r)),"cueOutCont"in a){const[o,l]=a.cueOutCont.split("/").map(parseFloat);r=new Y.VTTCue(i,i+a.duration,""),r.adStartTime=i-o,r.adEndTime=r.adStartTime+l,e.addCue(r)}i+=a.duration}},Ote=86400,vv=[{name:"VOD",run:(t,e,s,i,r)=>s!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(t,e,s,i,r,n)=>{if(!n)return null;const a=t.getMediaSequenceMap(n);if(!a||a.size===0||e.mediaSequence===void 0||!Array.isArray(e.segments)||!e.segments.length)return null;let o=e.mediaSequence,l=0;for(const c of e.segments){const d=a.get(o);if(!d)break;if(r>=d.start&&r<d.end){if(Array.isArray(c.parts)&&c.parts.length){let p=d.start,_=0;for(const b of c.parts){const T=p,y=T+b.duration;if(r>=T&&r<y)return{time:d.start,segmentIndex:l,partIndex:_};_++,p=y}}return{time:d.start,segmentIndex:l,partIndex:null}}l++,o++}return null}},{name:"ProgramDateTime",run:(t,e,s,i,r)=>{if(!Object.keys(t.timelineToDatetimeMappings).length)return null;let n=null,a=null;const o=oT(e);r=r||0;for(let l=0;l<o.length;l++){const c=e.endList||r===0?l:o.length-(l+1),d=o[c],p=d.segment,_=t.timelineToDatetimeMappings[p.timeline];if(!_||!p.dateTimeObject)continue;let b=p.dateTimeObject.getTime()/1e3+_;if(p.parts&&typeof d.partIndex=="number")for(let y=0;y<d.partIndex;y++)b+=p.parts[y].duration;const T=Math.abs(r-b);if(a!==null&&(T===0||a<T))break;a=T,n={time:b,segmentIndex:d.segmentIndex,partIndex:d.partIndex}}return n}},{name:"Segment",run:(t,e,s,i,r)=>{let n=null,a=null;r=r||0;const o=oT(e);for(let l=0;l<o.length;l++){const c=e.endList||r===0?l:o.length-(l+1),d=o[c],p=d.segment,_=d.part&&d.part.start||p&&p.start;if(p.timeline===i&&typeof _<"u"){const b=Math.abs(r-_);if(a!==null&&a<b)break;(!n||a===null||a>=b)&&(a=b,n={time:_,segmentIndex:d.segmentIndex,partIndex:d.partIndex})}}return n}},{name:"Discontinuity",run:(t,e,s,i,r)=>{let n=null;if(r=r||0,e.discontinuityStarts&&e.discontinuityStarts.length){let a=null;for(let o=0;o<e.discontinuityStarts.length;o++){const l=e.discontinuityStarts[o],c=e.discontinuitySequence+o+1,d=t.discontinuities[c];if(d){const p=Math.abs(r-d.time);if(a!==null&&a<p)break;(!n||a===null||a>=p)&&(a=p,n={time:d.time,segmentIndex:l,partIndex:null})}}}return n}},{name:"Playlist",run:(t,e,s,i,r)=>e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence,partIndex:null}:null}];class Nte extends pe.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={},this.mediaSequenceStorage_=new Map,this.logger_=Mr("SyncController")}getMediaSequenceMap(e){return this.mediaSequenceStorage_.get(e)}updateMediaSequenceMap(e,s,i){if(e.mediaSequence===void 0||!Array.isArray(e.segments)||!e.segments.length)return;const r=this.getMediaSequenceMap(i),n=new Map;let a=e.mediaSequence,o;r?r.has(e.mediaSequence)?o=r.get(e.mediaSequence).start:(this.logger_(`MediaSequence sync for ${i} segment loader - received a gap between playlists.
476Fallback base time to: ${s}.
477Received media sequence: ${a}.
478Current map: `,r),o=s):o=0,this.logger_(`MediaSequence sync for ${i} segment loader.
479Received media sequence: ${a}.
480base time is ${o}
481Current map: `,r),e.segments.forEach(l=>{const c=o,d=c+l.duration,p={start:c,end:d};n.set(a,p),a++,o=d}),this.mediaSequenceStorage_.set(i,n)}getSyncPoint(e,s,i,r,n){if(s!==1/0)return vv.find(({name:o})=>o==="VOD").run(this,e,s);const a=this.runStrategies_(e,s,i,r,n);if(!a.length)return null;for(const o of a){const{syncPoint:l,strategy:c}=o,{segmentIndex:d,time:p}=l;if(d<0)continue;const _=e.segments[d],b=p,T=b+_.duration;if(this.logger_(`Strategy: ${c}. Current time: ${r}. selected segment: ${d}. Time: [${b} -> ${T}]}`),r>=b&&r<T)return this.logger_("Found sync point with exact match: ",l),l}return this.selectSyncPoint_(a,{key:"time",value:r})}getExpiredTime(e,s){if(!e||!e.segments)return null;const i=this.runStrategies_(e,s,e.discontinuitySequence,0,"main");if(!i.length)return null;const r=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+Ch({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:r.segmentIndex,endIndex:0}))}runStrategies_(e,s,i,r,n){const a=[];for(let o=0;o<vv.length;o++){const l=vv[o],c=l.run(this,e,s,i,r,n);c&&(c.strategy=l.name,a.push({strategy:l.name,syncPoint:c}))}return a}selectSyncPoint_(e,s){let i=e[0].syncPoint,r=Math.abs(e[0].syncPoint[s.key]-s.value),n=e[0].strategy;for(let a=1;a<e.length;a++){const o=Math.abs(e[a].syncPoint[s.key]-s.value);o<r&&(r=o,i=e[a].syncPoint,n=e[a].strategy)}return this.logger_(`syncPoint for [${s.key}: ${s.value}] chosen with strategy [${n}]: [time:${i.time}, segmentIndex:${i.segmentIndex}`+(typeof i.partIndex=="number"?`,partIndex:${i.partIndex}`:"")+"]"),i}saveExpiredSegmentInfo(e,s){const i=s.mediaSequence-e.mediaSequence;if(i>Ote){pe.log.warn(`Not saving expired segment info. Media sequence gap ${i} is too large.`);return}for(let r=i-1;r>=0;r--){const n=e.segments[r];if(n&&typeof n.start<"u"){s.syncInfo={mediaSequence:e.mediaSequence+r,time:n.start},this.logger_(`playlist refresh sync: [time:${s.syncInfo.time}, mediaSequence: ${s.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){const s=e.segments[0],i=s.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[s.timeline]=-i}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:s}){const i=this.calculateSegmentTimeMapping_(e,e.timingInfo,s),r=e.segment;i&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:r.start}));const n=r.dateTimeObject;r.discontinuity&&s&&n&&(this.timelineToDatetimeMappings[r.timeline]=-(n.getTime()/1e3))}timestampOffsetForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].time}mappingForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,s,i){const r=e.segment,n=e.part;let a=this.timelines[e.timeline],o,l;if(typeof e.timestampOffset=="number")a={time:e.startOfSegment,mapping:e.startOfSegment-s.start},i&&(this.timelines[e.timeline]=a,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${a.time}] [mapping: ${a.mapping}]`)),o=e.startOfSegment,l=s.end+a.mapping;else if(a)o=s.start+a.mapping,l=s.end+a.mapping;else return!1;return n&&(n.start=o,n.end=l),(!r.start||o<r.start)&&(r.start=o),r.end=l,!0}saveDiscontinuitySyncInfo_(e){const s=e.playlist,i=e.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(s.discontinuityStarts&&s.discontinuityStarts.length)for(let r=0;r<s.discontinuityStarts.length;r++){const n=s.discontinuityStarts[r],a=s.discontinuitySequence+r+1,o=n-e.mediaIndex,l=Math.abs(o);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>l){let c;o<0?c=i.start-Ch({defaultDuration:s.targetDuration,durationList:s.segments,startIndex:e.mediaIndex,endIndex:n}):c=i.end+Ch({defaultDuration:s.targetDuration,durationList:s.segments,startIndex:e.mediaIndex+1,endIndex:n}),this.discontinuities[a]={time:c,accuracy:l}}}}dispose(){this.trigger("dispose"),this.off()}}class Rte extends pe.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:s,to:i}){return typeof s=="number"&&typeof i=="number"&&(this.pendingTimelineChanges_[e]={type:e,from:s,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:s,to:i}){return typeof s=="number"&&typeof i=="number"&&(this.lastTimelineChanges_[e]={type:e,from:s,to:i},delete this.pendingTimelineChanges_[e],this.trigger("timelinechange")),this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const Mte=ER(xR(function(){var t=function(){function y(){this.listeners={}}var x=y.prototype;return x.on=function(A,C){this.listeners[A]||(this.listeners[A]=[]),this.listeners[A].push(C)},x.off=function(A,C){if(!this.listeners[A])return!1;var S=this.listeners[A].indexOf(C);return this.listeners[A]=this.listeners[A].slice(0),this.listeners[A].splice(S,1),S>-1}
vendor: 14,102 bytes, line 481
481,x.trigger=function(A){var C=this.listeners[A];if(C)if(arguments.length===2)for(var S=C.length,E=0;E<S;++E)C[E].call(this,arguments[1]);else for(var w=Array.prototype.slice.call(arguments,1),O=C.length,R=0;R<O;++R)C[R].apply(this,w)},x.dispose=function(){this.listeners={}},x.pipe=function(A){this.on("data",function(C){A.push(C)})},y}();/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */function e(y){return y.subarray(0,y.byteLength-y[y.byteLength-1])}/*! @name aes-decrypter @version 4.0.1 @license Apache-2.0 */const s=function(){const y=[[[],[],[],[],[]],[[],[],[],[],[]]],x=y[0],A=y[1],C=x[4],S=A[4];let E,w,O;const R=[],$=[];let k,P,j,F,H,te;for(E=0;E<256;E++)$[(R[E]=E<<1^(E>>7)*283)^E]=E;for(w=O=0;!C[w];w^=k||1,O=$[O]||1)for(F=O^O<<1^O<<2^O<<3^O<<4,F=F>>8^F&255^99,C[w]=F,S[F]=w,j=R[P=R[k=R[w]]],te=j*16843009^P*65537^k*257^w*16843008,H=R[F]*257^F*16843008,E=0;E<4;E++)x[E][w]=H=H<<24^H>>>8,A[E][F]=te=te<<24^te>>>8;for(E=0;E<5;E++)x[E]=x[E].slice(0),A[E]=A[E].slice(0);return y};let i=null;class r{constructor(x){i||(i=s()),this._tables=[[i[0][0].slice(),i[0][1].slice(),i[0][2].slice(),i[0][3].slice(),i[0][4].slice()],[i[1][0].slice(),i[1][1].slice(),i[1][2].slice(),i[1][3].slice(),i[1][4].slice()]];let A,C,S;const E=this._tables[0][4],w=this._tables[1],O=x.length;let R=1;if(O!==4&&O!==6&&O!==8)throw new Error("Invalid aes key size");const $=x.slice(0),k=[];for(this._key=[$,k],A=O;A<4*O+28;A++)S=$[A-1],(A%O===0||O===8&&A%O===4)&&(S=E[S>>>24]<<24^E[S>>16&255]<<16^E[S>>8&255]<<8^E[S&255],A%O===0&&(S=S<<8^S>>>24^R<<24,R=R<<1^(R>>7)*283)),$[A]=$[A-O]^S;for(C=0;A;C++,A--)S=$[C&3?A:A-4],A<=4||C<4?k[C]=S:k[C]=w[0][E[S>>>24]]^w[1][E[S>>16&255]]^w[2][E[S>>8&255]]^w[3][E[S&255]]}decrypt(x,A,C,S,E,w){const O=this._key[1];let R=x^O[0],$=S^O[1],k=C^O[2],P=A^O[3],j,F,H;const te=O.length/4-2;let oe,se=4;const K=this._tables[1],X=K[0],ne=K[1],de=K[2],he=K[3],Le=K[4];for(oe=0;oe<te;oe++)j=X[R>>>24]^ne[$>>16&255]^de[k>>8&255]^he[P&255]^O[se],F=X[$>>>24]^ne[k>>16&255]^de[P>>8&255]^he[R&255]^O[se+1],H=X[k>>>24]^ne[P>>16&255]^de[R>>8&255]^he[$&255]^O[se+2],P=X[P>>>24]^ne[R>>16&255]^de[$>>8&255]^he[k&255]^O[se+3],se+=4,R=j,$=F,k=H;for(oe=0;oe<4;oe++)E[(3&-oe)+w]=Le[R>>>24]<<24^Le[$>>16&255]<<16^Le[k>>8&255]<<8^Le[P&255]^O[se++],j=R,R=$,$=k,k=P,P=j}}class n extends t{constructor(){super(t),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(x){this.jobs.push(x),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const a=function(y){return y<<24|(y&65280)<<8|(y&16711680)>>8|y>>>24},o=function(y,x,A){const C=new Int32Array(y.buffer,y.byteOffset,y.byteLength>>2),S=new r(Array.prototype.slice.call(x)),E=new Uint8Array(y.byteLength),w=new Int32Array(E.buffer);let O,R,$,k,P,j,F,H,te;for(O=A[0],R=A[1],$=A[2],k=A[3],te=0;te<C.length;te+=4)P=a(C[te]),j=a(C[te+1]),F=a(C[te+2]),H=a(C[te+3]),S.decrypt(P,j,F,H,w,te),w[te]=a(w[te]^O),w[te+1]=a(w[te+1]^R),w[te+2]=a(w[te+2]^$),w[te+3]=a(w[te+3]^k),O=P,R=j,$=F,k=H;return E};class l{constructor(x,A,C,S){const E=l.STEP,w=new Int32Array(x.buffer),O=new Uint8Array(x.byteLength);let R=0;for(this.asyncStream_=new n,this.asyncStream_.push(this.decryptChunk_(w.subarray(R,R+E),A,C,O)),R=E;R<w.length;R+=E)C=new Uint32Array([a(w[R-4]),a(w[R-3]),a(w[R-2]),a(w[R-1])]),this.asyncStream_.push(this.decryptChunk_(w.subarray(R,R+E),A,C,O));this.asyncStream_.push(function(){S(null,e(O))})}static get STEP(){return 32e3}decryptChunk_(x,A,C,S){return function(){const E=o(x,A,C);S.set(E,x.byteOffset)}}}var c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d;typeof window<"u"?d=window:typeof c<"u"?d=c:typeof self<"u"?d=self:d={};var p=d,_=function(y){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(y):y&&y.buffer instanceof ArrayBuffer},b=p.BigInt||Number;b("0x1"),b("0x100"),b("0x10000"),b("0x1000000"),b("0x100000000"),b("0x10000000000"),b("0x1000000000000"),b("0x100000000000000"),b("0x10000000000000000"),function(){var y=new Uint16Array([65484]),x=new Uint8Array(y.buffer,y.byteOffset,y.byteLength);return x[0]===255?"big":x[0]===204?"little":"unknown"}();const T=function(y){const x={};return Object.keys(y).forEach(A=>{const C=y[A];_(C)?x[A]={bytes:C.buffer,byteOffset:C.byteOffset,byteLength:C.byteLength}:x[A]=C}),x};self.onmessage=function(y){const x=y.data,A=new Uint8Array(x.encrypted.bytes,x.encrypted.byteOffset,x.encrypted.byteLength),C=new Uint32Array(x.key.bytes,x.key.byteOffset,x.key.byteLength/4),S=new Uint32Array(x.iv.bytes,x.iv.byteOffset,x.iv.byteLength/4);new l(A,C,S,function(E,w){self.postMessage(T({source:x.source,decrypted:w}),[w.buffer])})}}));var Fte=SR(Mte);const Bte=t=>{let e=t.default?"main":"alternative";return t.characteristics&&t.characteristics.indexOf("public.accessibility.describes-video")>=0&&(e="main-desc"),e},BR=(t,e)=>{t.abort(),t.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)},yT=(t,e)=>{e.activePlaylistLoader=t,t.load()},Ute=(t,e)=>()=>{const{segmentLoaders:{[t]:s,main:i},mediaTypes:{[t]:r}}=e,n=r.activeTrack(),a=r.getActiveGroup(),o=r.activePlaylistLoader,l=r.lastGroup_;if(!(a&&l&&a.id===l.id)&&(r.lastGroup_=a,r.lastTrack_=n,BR(s,r),!(!a||a.isMainPlaylist))){if(!a.playlistLoader){o&&i.resetEverything();return}s.resyncLoader(),yT(a.playlistLoader,r)}},$te=(t,e)=>()=>{const{segmentLoaders:{[t]:s},mediaTypes:{[t]:i}}=e;i.lastGroup_=null,s.abort(),s.pause()},jte=(t,e)=>()=>{const{mainPlaylistLoader:s,segmentLoaders:{[t]:i,main:r},mediaTypes:{[t]:n}}=e,a=n.activeTrack(),o=n.getActiveGroup(),l=n.activePlaylistLoader,c=n.lastTrack_;if(!(c&&a&&c.id===a.id)&&(n.lastGroup_=o,n.lastTrack_=a,BR(i,n),!!o)){if(o.isMainPlaylist){if(!a||!c||a.id===c.id)return;const d=e.vhs.playlistController_,p=d.selectPlaylist();if(d.media()===p)return;n.logger_(`track change. Switching main audio from ${c.id} to ${a.id}`),s.pause(),r.resetEverything(),d.fastQualityChange_(p);return}if(t==="AUDIO"){if(!o.playlistLoader){r.setAudio(!0),r.resetEverything();return}i.setAudio(!0),r.setAudio(!1)}if(l===o.playlistLoader){yT(o.playlistLoader,n);return}i.track&&i.track(a),i.resetEverything(),yT(o.playlistLoader,n)}},Fm={AUDIO:(t,e)=>()=>{const{mediaTypes:{[t]:s},excludePlaylist:i}=e,r=s.activeTrack(),n=s.activeGroup(),a=(n.filter(l=>l.default)[0]||n[0]).id,o=s.tracks[a];if(r===o){i({error:{message:"Problem encountered loading the default audio track."}});return}pe.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const l in s.tracks)s.tracks[l].enabled=s.tracks[l]===o;s.onTrackChanged()},SUBTITLES:(t,e)=>()=>{const{mediaTypes:{[t]:s}}=e;pe.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const i=s.activeTrack();i&&(i.mode="disabled"),s.onTrackChanged()}},SA={AUDIO:(t,e,s)=>{if(!e)return;const{tech:i,requestOptions:r,segmentLoaders:{[t]:n}}=s;e.on("loadedmetadata",()=>{const a=e.media();n.playlist(a,r),(!i.paused()||a.endList&&i.preload()!=="none")&&n.load()}),e.on("loadedplaylist",()=>{n.playlist(e.media(),r),i.paused()||n.load()}),e.on("error",Fm[t](t,s))},SUBTITLES:(t,e,s)=>{const{tech:i,requestOptions:r,segmentLoaders:{[t]:n},mediaTypes:{[t]:a}}=s;e.on("loadedmetadata",()=>{const o=e.media();n.playlist(o,r),n.track(a.activeTrack()),(!i.paused()||o.endList&&i.preload()!=="none")&&n.load()}),e.on("loadedplaylist",()=>{n.playlist(e.media(),r),i.paused()||n.load()}),e.on("error",Fm[t](t,s))}},Hte={AUDIO:(t,e)=>{const{vhs:s,sourceType:i,segmentLoaders:{[t]:r},requestOptions:n,main:{mediaGroups:a},mediaTypes:{[t]:{groups:o,tracks:l,logger_:c}},mainPlaylistLoader:d}=e,p=Pf(d.main);(!a[t]||Object.keys(a[t]).length===0)&&(a[t]={main:{default:{default:!0}}},p&&(a[t].main.default.playlists=d.main.playlists));for(const _ in a[t]){o[_]||(o[_]=[]);for(const b in a[t][_]){let T=a[t][_][b],y;if(p?(c(`AUDIO group '${_}' label '${b}' is a main playlist`),T.isMainPlaylist=!0,y=null):i==="vhs-json"&&T.playlists?y=new uu(T.playlists[0],s,n):T.resolvedUri?y=new uu(T.resolvedUri,s,n):T.playlists&&i==="dash"?y=new fT(T.playlists[0],s,n,d):y=null,T=Ft({id:b,playlistLoader:y},T),SA[t](t,T.playlistLoader,e),o[_].push(T),typeof l[b]>"u"){const x=new pe.AudioTrack({id:b,kind:Bte(T),enabled:!1,language:T.language,default:T.default,label:b});l[b]=x}}}r.on("error",Fm[t](t,e))},SUBTITLES:(t,e)=>{const{tech:s,vhs:i,sourceType:r,segmentLoaders:{[t]:n},requestOptions:a,main:{mediaGroups:o},mediaTypes:{[t]:{groups:l,tracks:c}},mainPlaylistLoader:d}=e;for(const p in o[t]){l[p]||(l[p]=[]);for(const _ in o[t][p]){if(!i.options_.useForcedSubtitles&&o[t][p][_].forced)continue;let b=o[t][p][_],T;if(r==="hls")T=new uu(b.resolvedUri,i,a);else if(r==="dash"){if(!b.playlists.filter(y=>y.excludeUntil!==1/0).length)return;T=new fT(b.playlists[0],i,a,d)}else r==="vhs-json"&&(T=new uu(b.playlists?b.playlists[0]:b.resolvedUri,i,a));if(b=Ft({id:_,playlistLoader:T},b),SA[t](t,b.playlistLoader,e),l[p].push(b),typeof c[_]>"u"){const y=s.addRemoteTextTrack({id:_,kind:"subtitles",default:b.default&&b.autoselect,language:b.language,label:_},!1).track;c[_]=y}}}n.on("error",Fm[t](t,e))},"CLOSED-CAPTIONS":(t,e)=>{const{tech:s,main:{mediaGroups:i},mediaTypes:{[t]:{groups:r,tracks:n}}}=e;for(const a in i[t]){r[a]||(r[a]=[]);for(const o in i[t][a]){const l=i[t][a][o];if(!/^(?:CC|SERVICE)/.test(l.instreamId))continue;const c=s.options_.vhs&&s.options_.vhs.captionServices||{};let d={label:o,language:l.language,instreamId:l.instreamId,default:l.default&&l.autoselect};if(c[d.instreamId]&&(d=Ft(d,c[d.instreamId])),d.default===void 0&&delete d.default,r[a].push(Ft({id:o},l)),typeof n[o]>"u"){const p=s.addRemoteTextTrack({id:d.instreamId,kind:"captions",default:d.default,language:d.language,label:d.label},!1).track;n[o]=p}}}}},UR=(t,e)=>{for(let s=0;s<t.length;s++)if(YS(e,t[s])||t[s].playlists&&UR(t[s].playlists,e))return!0;return!1},qte=(t,e)=>s=>{const{mainPlaylistLoader:i,mediaTypes:{[t]:{groups:r}}}=e,n=i.media();if(!n)return null;let a=null;n.attributes[t]&&(a=r[n.attributes[t]]);const o=Object.keys(r);if(!a)if(t==="AUDIO"&&o.length>1&&Pf(e.main))for(let l=0;l<o.length;l++){const c=r[o[l]];if(UR(c,n)){a=c;break}}else r.main?a=r.main:o.length===1&&(a=r[o[0]]);return typeof s>"u"?a:s===null||!a?null:a.filter(l=>l.id===s.id)[0]||null},Vte={AUDIO:(t,e)=>()=>{const{mediaTypes:{[t]:{tracks:s}}}=e;for(const i in s)if(s[i].enabled)return s[i];return null},SUBTITLES:(t,e)=>()=>{const{mediaTypes:{[t]:{tracks:s}}}=e;for(const i in s)if(s[i].mode==="showing"||s[i].mode==="hidden")return s[i];return null}},zte=(t,{mediaTypes:e})=>()=>{const s=e[t].activeTrack();return s?e[t].activeGroup(s):null},Gte=t=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(c=>{Hte[c](c,t)});const{mediaTypes:e,mainPlaylistLoader:s,tech:i,vhs:r,segmentLoaders:{["AUDIO"]:n,main:a}}=t;["AUDIO","SUBTITLES"].forEach(c=>{e[c].activeGroup=qte(c,t),e[c].activeTrack=Vte[c](c,t),e[c].onGroupChanged=Ute(c,t),e[c].onGroupChanging=$te(c,t),e[c].onTrackChanged=jte(c,t),e[c].getActiveGroup=zte(c,t)});const o=e.AUDIO.activeGroup();if(o){const c=(o.filter(d=>d.default)[0]||o[0]).id;e.AUDIO.tracks[c].enabled=!0,e.AUDIO.onGroupChanged(),e.AUDIO.onTrackChanged(),e.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),n.setAudio(!0)):a.setAudio(!0)}s.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(c=>e[c].onGroupChanged())}),s.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(c=>e[c].onGroupChanging())});const l=()=>{e.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"})};i.audioTracks().addEventListener("change",l),i.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),r.on("dispose",()=>{i.audioTracks().removeEventListener("change",l),i.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)}),i.clearTracks("audio");for(const c in e.AUDIO.tracks)i.audioTracks().addTrack(e.AUDIO.tracks[c])},Wte=()=>{const t={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{t[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Oa,activeTrack:Oa,getActiveGroup:Oa,onGroupChanged:Oa,onTrackChanged:Oa,lastTrack_:null,logger_:Mr(`MediaGroups[${e}]`)}}),t};class EA{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){e===1&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=ji(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(s=>[s.ID,s])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class Xte extends pe.EventTarget{constructor(e,s){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new EA,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=Mr("Content Steering"),this.xhr_=e,this.getBandwidth_=s}assignTagProperties(e,s){this.manifestType_=s.serverUri?"HLS":"DASH";const i=s.serverUri||s.serverURL;if(!i){this.logger_(`steering manifest URL is ${i}, cannot request steering manifest.`),this.trigger("error");return}if(i.startsWith("data:")){this.decodeDataUriManifest_(i.substring(i.indexOf(",")+1));return}this.steeringManifest.reloadUri=ji(e,i),this.defaultPathway=s.pathwayId||s.defaultServiceLocation,this.queryBeforeStart=s.queryBeforeStart,this.proxyServerUrl_=s.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering")}requestSteeringManifest(e){const s=this.steeringManifest.reloadUri;if(!s)return;const i=e?s:this.getRequestURI(s);if(!i){this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),this.dispose();return}this.request_=this.xhr_({uri:i},(r,n)=>
481{if(r){if(n.status===410){this.logger_(`manifest request 410 ${r}.`),this.logger_(`There will be no more content steering requests to ${i} this session.`),this.excludedSteeringManifestURLs.add(i);return}if(n.status===429){const o=n.responseHeaders["retry-after"];this.logger_(`manifest request 429 ${r}.`),this.logger_(`content steering will retry in ${o} seconds.`),this.startTTLTimeout_(parseInt(o,10));return}this.logger_(`manifest failed to load ${r}.`),this.startTTLTimeout_();return}const a=JSON.parse(this.request_.responseText);this.assignSteeringProperties_(a),this.startTTLTimeout_()})}setProxyServerUrl_(e){const s=new Y.URL(e),i=new Y.URL(this.proxyServerUrl_);return i.searchParams.set("url",encodeURI(s.toString())),this.setSteeringParams_(i.toString())}decodeDataUriManifest_(e){const s=JSON.parse(Y.atob(e));this.assignSteeringProperties_(s)}setSteeringParams_(e){const s=new Y.URL(e),i=this.getPathway(),r=this.getBandwidth_();if(i){const n=`_${this.manifestType_}_pathway`;s.searchParams.set(n,i)}if(r){const n=`_${this.manifestType_}_throughput`;s.searchParams.set(n,r)}return s.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version){this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),this.trigger("error");return}this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for content steering. Ending content steering."),this.trigger("error"),this.dispose());const s=(i=>{for(const r of i)if(this.availablePathways_.has(r))return r;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==s&&(this.currentPathway=s,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const s=r=>this.excludedSteeringManifestURLs.has(r);if(this.proxyServerUrl_){const r=this.setProxyServerUrl_(e);if(!s(r))return r}const i=this.setSteeringParams_(e);return s(i)?null:i}startTTLTimeout_(e=this.steeringManifest.ttl){const s=e*1e3;this.ttlTimeout_=Y.setTimeout(()=>{this.requestSteeringManifest()},s)}clearTTLTimeout_(){Y.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new EA}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,s){return!s&&this.steeringManifest.reloadUri||s&&(ji(e,s.serverURL)!==this.steeringManifest.reloadUri||s.defaultServiceLocation!==this.defaultPathway||s.queryBeforeStart!==this.queryBeforeStart||s.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}const Kte=10;let Ea;const Yte=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Qte=function(t){return this.audioSegmentLoader_[t]+this.mainSegmentLoader_[t]},Jte=function({currentPlaylist:t,buffered:e,currentTime:s,nextPlaylist:i,bufferLowWaterLine:r,bufferHighWaterLine:n,duration:a,bufferBasedABR:o,log:l}){if(!i)return pe.log.warn("We received no playlist to switch to. Please check your stream."),!1;const c=`allowing switch ${t&&t.id||"null"} -> ${i.id}`;if(!t)return l(`${c} as current playlist is not set`),!0;if(i.id===t.id)return!1;const d=!!lu(e,s).length;if(!t.endList)return!d&&typeof t.partTargetDuration=="number"?(l(`n
481ot ${c} as current playlist is live llhls, but currentTime isn't in buffered.`),!1):(l(`${c} as current playlist is live`),!0);const p=WS(e,s),_=o?Rs.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Rs.MAX_BUFFER_LOW_WATER_LINE;if(a<_)return l(`${c} as duration < max low water line (${a} < ${_})`),!0;const b=i.attributes.BANDWIDTH,T=t.attributes.BANDWIDTH;if(b<T&&(!o||p<n)){let y=`${c} as next bandwidth < current bandwidth (${b} < ${T})`;return o&&(y+=` and forwardBuffer < bufferHighWaterLine (${p} < ${n})`),l(y),!0}if((!o||b>T)&&p>=r){let y=`${c} as forwardBuffer >= bufferLowWaterLine (${p} >= ${r})`;return o&&(y+=` and next bandwidth > current bandwidth (${b} > ${T})`),l(y),!0}return l(`not ${c} as no switching criteria met`),!1};class Zte extends pe.EventTarget{constructor(e){super();const{src:s,withCredentials:i,tech:r,bandwidth:n,externVhs:a,useCueTags:o,playlistExclusionDuration:l,enableLowInitialPlaylist:c,sourceType:d,cacheEncryptionKeys:p,bufferBasedABR:_,leastPixelDiffSelector:b,captionServices:T}=e;if(!s)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:y}=e;(y===null||typeof y>"u")&&(y=1/0),Ea=a,this.bufferBasedABR=!!_,this.leastPixelDiffSelector=!!b,this.withCredentials=i,this.tech_=r,this.vhs_=r.vhs,this.sourceType_=d,this.useCueTags_=o,this.playlistExclusionDuration=l,this.maxPlaylistRetries=y,this.enableLowInitialPlaylist=c,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:i,maxPlaylistRetries:y,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=Wte(),this.mediaSource=new Y.MediaSource,this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.seekable_=Qi(),this.hasPlayed_=!1,this.syncController_=new Nte(e),this.segmentMetadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new Fte,this.sourceUpdater_=new FR(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new Rte,this.keyStatusMap_=new Map;const x={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:T,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:n,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:p,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_=this.sourceType_==="dash"?new fT(s,this.vhs_,Ft(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new uu(s,this.vhs_,Ft(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new mT(Ft(x,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new mT(Ft(x,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new Ite(Ft(x,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((S,E)=>{function w(){r.off("vttjserror",O),S()}function O(){r.off("vttjsloaded",w),E()}r.one("vttjsloaded",w),r.one("vttjserror",O),r.addWebVttScript_()})}),e);const A=()=>this.mainSegmentLoader_.bandwidth;this.contentSteeringController_=new Xte(this.vhs_.xhr,A),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),Yte.forEach(S=>{this[S+"_"]=Qte.bind(this,S)}),this.logger_=Mr("pc"),this.triggeredFmp4Usage=!1,this.tech_.preload()==="none"?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const C=this.tech_.preload()==="none"?"play":"loadstart";this.tech_.one(C,()=>{const S=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-S,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),s=this.audioAppendsToLoadedData_();return e===-1||s===-1?-1:e+s}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const s=this.selectPlaylist();s&&this.shouldSwitchToMedia_(s)&&this.switchMedia_(s,e)}switchMedia_(e,s,i){const r=this.media(),n=r&&(r.id||r.uri),a=e&&(e.id||e.uri);n&&n!==a&&(this.logger_(`switch media ${n} -> ${a} from ${s}`),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${s}`})),this.mainPlaylistLoader_.media(e,i)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e
vendor: 12,617 bytes, line 481
481=>{const s=this.mediaTypes_[e],i=s?s.activeGroup():null,r=this.contentSteeringController_.getPathway();if(i&&r){const n=(i.length?i[0].playlists:i.playlists).filter(a=>a.attributes.serviceLocation===r);n.length&&this.mediaTypes_[e].activePlaylistLoader.media(n[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=Y.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(Y.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),s=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return s;const i=e.mediaGroups.AUDIO,r=Object.keys(i);let n;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{const o=i.main||r.length&&i[r[0]];for(const l in o)if(o[l].default){n={label:l};break}}if(!n)return s;const a=[];for(const o in i)if(i[o][n.label]){const l=i[o][n.label];if(l.playlists&&l.playlists.length)a.push.apply(a,l.playlists);else if(l.uri)a.push(l);else if(e.playlists.length)for(let c=0;c<e.playlists.length;c++){const d=e.playlists[c];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===o&&a.push(d)}}return a.length?a:s}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const e=this.mainPlaylistLoader_.media(),s=e.targetDuration*1.5*1e3;lT(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=s,e.endList&&this.tech_.preload()!=="none"&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),Gte({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_();let s;if(this.enableLowInitialPlaylist&&(s=this.selectInitialPlaylist()),s||(s=this.selectPlaylist()),!s||!this.shouldSwitchToMedia_(s)||(this.initialMedia_=s,this.switchMedia_(this.initialMedia_,"initial"),!(this.sourceType_==="vhs-json"&&this.initialMedia_.segments)))return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)}),this.mainPlaylistLoader_.on("error",()=>{const e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const e=this.mainPlaylistLoader_.media(),s=e.targetDuration*1.5*1e3;lT(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=s,this.sourceType_==="dash"&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const e=this.mainPlaylistLoader_.media();e.lastExcludeReason_!=="playlist-unchanged"&&this.stuckAtPlaylistEnd_(e)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})})}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,s){const i=e.mediaGroups||{};let r=!0;const n=Object.keys(i.AUDIO);for(const a in i.AUDIO)for(const o in i.AUDIO[a])i.AUDIO[a][o].uri||(r=!1);r&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(i.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),Ea.Playlist.isAes(s)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),n.length&&Object.keys(i.AUDIO[n[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const s=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),r=this.bufferLowWaterLine(),n=this.bufferHighWaterLine(),a=this.tech_.buffered();return Jte({buffered:a,currentTime:i,currentPlaylist:s,nextPlaylist:e,bufferLowWaterLine:r,bufferHighWaterLine:n,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{const s=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:s.playlist,error:s})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",s=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:Kte}))});const e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const s=this.getCodecsOrExclude_();s&&this.sourceUpdater_.addOrChangeSourceBuffers(s)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}fastQualityChange_(e=this.selectPlaylist()){if(e&&e===this.mainPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(()=>{this.tech_.setCurrentTime(this.tech_.currentTime())})}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const e=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0))return this.tech_.setCurrentTime(e.end(e.length-1))}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const s=this.seekable();if(!s.length)return!1;const i=s.end(0);let r=i;if(e.start){const n=e.start.timeOffset;n<0?r=Math.max(i+n,s.start(0)):r=Math.min(i,n)}this.trigger("firstplay"),this.tech_.setCurrentTime(r)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();typeof e<"u"&&typeof e.then=="function"&&e.then(null,s=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const s=this.duration();e[e.length-1].endTime=isNaN(s)||Math.abs(s)===1/0?Number.MAX_VALUE:s}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const s=this.mainSegmentLoader_.getCurrentMediaInfo_();!s||s.hasVideo?e=e&&this.audioSegmentLoader_.ended_:e=this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;const s=this.syncController_.getExpiredTime(e,this.duration());if(s===null)return!1;const i=Ea.Playlist.playlistEnd(e,s),r=this.tech_.currentTime(),n=this.tech_.buffered();if(!n.length)return i-r<=Pn;const a=n.end(n.length-1);return a-r<=Pn&&i-a<=Pn}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:s={},playlistExclusionDuration:i}){if(e=e||this.mainPlaylistLoader_.media(),i=i||s.playlistExclusionDuration||this.playlistExclusionDuration,!e){this.error=s,this.mediaSource.readyState!=="open"?this.trigger("error"):this.sourceUpdater_.endOfStream("network");return}e.playlistErrors_++;const r=this.mainPlaylistLoader_.main.playlists,n=r.filter(uy),a=n.length===1&&n[0]===e;if(r.length===1&&i!==1/0)return pe.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(a);if(a){if(this.main().contentSteering){const T=this.pathwayAttribute_(e),y=this.contentSteeringController_.steeringManifest.ttl*1e3;this.contentSteeringController_.excludePathway(T),this.excludeThenChangePathway_(),setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(T)},y);return}let b=!1;r.forEach(T=>{if(T===e)return;const y=T.excludeUntil;typeof y<"u"&&y!==1/0&&(b=!0,delete T.excludeUntil)}),b&&(pe.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let o;e.playlistErrors_>this.maxPlaylistRetries?o=1/0:o=Date.now()+i*1e3,e.excludeUntil=o,s.reason&&(e.lastExcludeReason_=s.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const l=this.selectPlaylist();if(!l){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}const c=s.internal?this.logger_:pe.log.warn,d=s.message?" "+s.message:"";c(`${s.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${d} Switching to playlist ${l.id}.`),l.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const p=l.targetDuration/2*1e3||5*1e3,_=typeof l.lastRequest=="number"&&Date.now()-l.lastRequest<=p;return this.switchMedia_(l,"exclude",a||_)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,s){const i=[],r=e==="all";(r||e==="main")&&i.push(this.mainPlaylistLoader_);const n=[];(r||e==="audio")&&n.push("AUDIO"),(r||e==="subtitle")&&(n.push("CLOSED-CAPTIONS"),n.push("SUBTITLES")),n.forEac
481h(a=>{const o=this.mediaTypes_[a]&&this.mediaTypes_[a].activePlaylistLoader;o&&i.push(o)}),["main","audio","subtitle"].forEach(a=>{const o=this[`${a}SegmentLoader_`];o&&(e===a||e==="all")&&i.push(o)}),i.forEach(a=>s.forEach(o=>{typeof a[o]=="function"&&a[o]()}))}setCurrentTime(e){const s=lu(this.tech_.buffered(),e);if(!(this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media())||!this.mainPlaylistLoader_.media().segments)return 0;if(s&&s.length)return e;this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Ea.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}onSyncInfoUpdate_(){let e;if(!this.mainPlaylistLoader_)return;let s=this.mainPlaylistLoader_.media();if(!s)return;let i=this.syncController_.getExpiredTime(s,this.duration());if(i===null)return;const r=this.mainPlaylistLoader_.main,n=Ea.Playlist.seekable(s,i,Ea.Playlist.liveEdgeDelay(r,s));if(n.length===0||this.mediaTypes_.AUDIO.activePlaylistLoader&&(s=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),i=this.syncController_.getExpiredTime(s,this.duration()),i===null||(e=Ea.Playlist.seekable(s,i,Ea.Playlist.liveEdgeDelay(r,s)),e.length===0)))return;let a,o;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),o=this.seekable_.start(0)),e?e.start(0)>n.end(0)||n.start(0)>e.end(0)?this.seekable_=n:this.seekable_=Qi([[e.start(0)>n.start(0)?e.start(0):n.start(0),e.end(0)<n.end(0)?e.end(0):n.end(0)]]):this.seekable_=n,!(this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===a&&this.seekable_.start(0)===o)&&(this.logger_(`seekable updated [${ZN(this.seekable_)}]`),this.tech_.trigger("seekablechanged"))}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),this.mediaSource.readyState!=="open"){this.updateDuration_=this.updateDuration.bind(this,e),this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(e){const r=this.seekable();if(!r.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<r.end(r.length-1))&&this.sourceUpdater_.setDuration(r.end(r.length-1));return}const s=this.tech_.buffered();let i=Ea.Playlist.duration(this.mainPlaylistLoader_.media());s.length>0&&(i=Math.max(i,s.end(s.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(e=>{const s=this.mediaTypes_[e].groups;for(const i in s)s[i].forEach(r=>{r.playlistLoader&&r.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,s=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=e?!!this.audioSegmentLoader_.getCurrentMediaInfo_():!0;return!(!s||!i)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},s=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const i=Ah(this.main(),s),r={},n=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(r.video=i.video||e.main.videoCodec||zY),e.main.isMuxed&&(r.video+=`,${i.audio||e.main.audioCodec||hw}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||n)&&(r.audio=i.audio||e.main.audioCodec||e.audio.audioCodec||hw,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!r.audio&&!r.video){this.excludePlaylist({playlistToExclude:s,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});return}const a=(c,d)=>c?Sp(d):tv(d),o={};let l;if(["video","audio"].forEach(function(c){if(r.hasOwnProperty(c)&&!a(e[c].isFmp4,r[c])){const d=e[c].isFmp4?"browser":"muxer";o[d]=o[d]||[],o[d].push(r[c]),c==="audio"&&(l=d)}}),n&&l&&s.attributes.AUDIO){const c=s.attributes.AUDIO;
vendor: 19,498 bytes, line 481
481this.main().playlists.forEach(d=>{(d.attributes&&d.attributes.AUDIO)===c&&d!==s&&(d.excludeUntil=1/0)}),this.logger_(`excluding audio group ${c} as ${l} does not support codec(s): "${r.audio}"`)}if(Object.keys(o).length){const c=Object.keys(o).reduce((d,p)=>(d&&(d+=", "),d+=`${p} does not support codec(s): "${o[p].join(",")}"`,d),"")+".";this.excludePlaylist({playlistToExclude:s,error:{internal:!0,message:c},playlistExclusionDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const c=[];if(["video","audio"].forEach(d=>{const p=(vn(this.sourceUpdater_.codecs[d]||"")[0]||{}).type,_=(vn(r[d]||"")[0]||{}).type;p&&_&&p.toLowerCase()!==_.toLowerCase()&&c.push(`"${this.sourceUpdater_.codecs[d]}" -> "${r[d]}"`)}),c.length){this.excludePlaylist({playlistToExclude:s,error:{message:`Codec switching not supported: ${c.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0});return}}return r}tryToCreateSourceBuffers_(){if(this.mediaSource.readyState!=="open"||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const s=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(s)}excludeUnsupportedVariants_(){const e=this.main().playlists,s=[];Object.keys(e).forEach(i=>{const r=e[i];if(s.indexOf(r.id)!==-1)return;s.push(r.id);const n=Ah(this.main,r),a=[];n.audio&&!tv(n.audio)&&!Sp(n.audio)&&a.push(`audio codec ${n.audio}`),n.video&&!tv(n.video)&&!Sp(n.video)&&a.push(`video codec ${n.video}`),n.text&&n.text==="stpp.ttml.im1t"&&a.push(`text codec ${n.text}`),a.length&&(r.excludeUntil=1/0,this.logger_(`excluding ${r.id} for unsupported: ${a.join(", ")}`))})}excludeIncompatibleVariants_(e){const s=[],i=this.main().playlists,r=Rm(vn(e)),n=dA(r),a=r.video&&vn(r.video)[0]||null,o=r.audio&&vn(r.audio)[0]||null;Object.keys(i).forEach(l=>{const c=i[l];if(s.indexOf(c.id)!==-1||c.excludeUntil===1/0)return;s.push(c.id);const d=[],p=Ah(this.mainPlaylistLoader_.main,c),_=dA(p);if(!(!p.audio&&!p.video)){if(_!==n&&d.push(`codec count "${_}" !== "${n}"`),!this.sourceUpdater_.canChangeType()){const b=p.video&&vn(p.video)[0]||null,T=p.audio&&vn(p.audio)[0]||null;b&&a&&b.type.toLowerCase()!==a.type.toLowerCase()&&d.push(`video codec "${b.type}" !== "${a.type}"`),T&&o&&T.type.toLowerCase()!==o.type.toLowerCase()&&d.push(`audio codec "${T.type}" !== "${o.type}"`)}d.length&&(c.excludeUntil=1/0,this.logger_(`excluding ${c.id}: ${d.join(" && ")}`))}})}updateAdCues_(e){let s=0;const i=this.seekable();i.length&&(s=i.start(0)),Lte(e,this.cueTagsTrack_,s)}goalBufferLength(){const e=this.tech_.currentTime(),s=Rs.GOAL_BUFFER_LENGTH,i=Rs.GOAL_BUFFER_LENGTH_RATE,r=Math.max(s,Rs.MAX_GOAL_BUFFER_LENGTH);return Math.min(s+e*i,r)}bufferLowWaterLine(){const e=this.tech_.currentTime(),s=Rs.BUFFER_LOW_WATER_LINE,i=Rs.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(s,Rs.MAX_BUFFER_LOW_WATER_LINE),n=Math.max(s,Rs.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(s+e*i,this.bufferBasedABR?n:r)}bufferHighWaterLine(){return Rs.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){pA(this.inbandTextTracks_,"com.apple.streaming",this.tech_),fte({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,s,i){const r=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();pA(this.inbandTextTracks_,e,this.tech_),cte({inbandTextTracks:this.inbandTextTracks_,metadataArray:s,timestampOffset:r,videoDuration:i})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(e.contentSteering){for(const s of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(s));if(this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart){this.contentSteeringController_.requestSteeringManifest(!0);return}this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),this.sourceType_==="dash"&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{const e=this.main();(this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering)||(()=>{const s=this.contentSteeringController_.getAvailablePathways(),i=[];for(const r of e.playlists){const n=r.attributes.serviceLocation;if(n&&(i.push(n),!s.has(n)))return!0}return!!(!i.length&&s.size)})())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();const s=this.main().playlists,i=new Set;let r=!1;Object.keys(s).forEach(n=>{const a=s[n],o=this.pathwayAttribute_(a),l=o&&e!==o;a.excludeUntil===1/0&&a.lastExcludeReason_==="content-steering"&&!l&&(delete a.excludeUntil,delete a.lastExcludeReason_,r=!0);const c=!a.excludeUntil&&a.excludeUntil!==1/0;!i.has(a.id)&&l&&c&&(i.add(a.id),a.excludeUntil=1/0,a.lastExcludeReason_="content-steering",this.logger_(`excluding ${a.id} for ${a.lastExcludeReason_}`))}),this.contentSteeringController_.manifestType_==="DASH"&&Object.keys(this.mediaTypes_).forEach(n=>{const a=this.mediaTypes_[n];if(a.activePlaylistLoader){const o=a.activePlaylistLoader.media_;o&&o.attributes.serviceLocation!==e&&(r=!0)}}),r&&this.changeSegmentPathway_()}handlePathwayClones_(){const e=this.main().playlists,s=this.contentSteeringController_.currentPathwayClones,i=this.contentSteeringController_.nextPathwayClones;if(s&&s.size||i&&i.size){for(const[r,n]of s.entries())i.get(r)||(this.mainPlaylistLoader_.updateOrDeleteClone(n),this.contentSteeringController_.excludePathway(r));for(const[r,n]of i.entries()){const a=s.get(r);if(!a){e.filter(o=>o.attributes["PATHWAY-ID"]===n["BASE-ID"]).forEach(o=>{this.mainPlaylistLoader_.addClonePathway(n,o)}),this.contentSteeringController_.addAvailablePathway(r);continue}this.equalPathwayClones_(a,n)||(this.mainPlaylistLoader_.updateOrDeleteClone(n,!0),this.contentSteeringController_.addAvailablePathway(r))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...i])))}}equalPathwayClones_(e,s){if(e["BASE-ID"]!==s["BASE-ID"]||e.ID!==s.ID||e["URI-REPLACEMENT"].HOST!==s["URI-REPLACEMENT"].HOST)return!1;const i=e["URI-REPLACEMENT"].PARAMS,r=s["URI-REPLACEMENT"].PARAMS;for(const n in i)if(i[n]!==r[n])return!1;for(const n in r)if(i[n]!==r[n])return!1;return!0}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),this.contentSteeringController_.manifestType_==="DASH"&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0;const s="non-usable";this.mainPlaylistLoader_.main.playlists.forEach(i=>{const r=this.mainPlaylistLoader_.getKeyIdSet(i);!r||!r.size||r.forEach(n=>{const a="usable",o=this.keyStatusMap_.has(n)&&this.keyStatusMap_.get(n)===a,l=i.lastExcludeReason_===s&&i.excludeUntil===1/0;o?o&&l&&(delete i.excludeUntil,delete i.lastExcludeReason_,this.logger_(`enabling playlist ${i.id} because key ID ${n} is ${a}`)):(i.excludeUntil!==1/0&&i.lastExcludeReason_!==s&&(i.excludeUntil=1/0,i.lastExcludeReason_=s,this.logger_(`excluding playlist ${i.id} because the key ID ${n} doesn't exist in the keyStatusMap or is not ${a}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(i=>{const r=i&&i.attributes&&i.attributes.RESOLUTION&&i.attributes.RESOLUTION.height<720,n=i.excludeUntil===1/0&&i.lastExcludeReason_===s;r&&n&&(delete i.excludeUntil,pe.log.warn(`enabling non-HD playlist ${i.id} because all playlists were excluded due to ${s} key IDs`))})}addKeyStatus_(e,s){const i=(typeof e=="string"?e:kte(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${s}' with key ID ${i} added to the keyStatusMap`),this.keyStatusMap_.set(i,s)}updatePlaylistByKeyStatus(e,s){this.addKeyStatus_(e,s),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}const ese=(t,e,s)=>i=>{const r=t.main.playlists[e],n=KS(r),a=uy(r);return typeof i>"u"?a:(i?delete r.disabled:r.disabled=!0,i!==a&&!n&&(s(),i?t.trigger("renditionenabled"):t.trigger("renditiondisabled")),i)};class tse{constructor(e,s,i){const{playlistController_:r}=e,n=r.fastQualityChange_.bind(r);if(s.attributes){const a=s.attributes.RESOLUTION;this.width=a&&a.width,this.height=a&&a.height,this.bandwidth=s.attributes.BANDWIDTH,this.frameRate=s.attributes["FRAME-RATE"]}this.codecs=Ah(r.main(),s),this.playlist=s,this.id=i,this.enabled=ese(e.playlists,s.id,n)}}const sse=function(t){t.representations=()=>{const e=t.playlistController_.main(),s=Pf(e)?t.playlistController_.getAudioTrackPlaylists_():e.playlists;return s?s.filter(i=>!KS(i)).map((i,r)=>new tse(t,i,i.id)):[]}},xA=["seeking","seeked","pause","playing","error"];class ise{constructor(e){this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=Mr("PlaybackWatcher"),this.logger_("initialize");const s=()=>this.monitorCurrentTime_(),i=()=>this.monitorCurrentTime_(),r=()=>this.techWaiting_(),n=()=>this.resetTimeUpdate_(),a=this.playlistController_,o=["main","subtitle","audio"],l={};o.forEach(d=>{l[d]={reset:()=>this.resetSegmentDownloads_(d),updateend:()=>this.checkSegmentDownloads_(d)},a[`${d}SegmentLoader_`].on("appendsdone",l[d].updateend),a[`${d}SegmentLoader_`].on("playlistupdate",l[d].reset),this.tech_.on(["seeked","seeking"],l[d].reset)});const c=d=>{["main","audio"].forEach(p=>{a[`${p}SegmentLoader_`][d]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),c("off"))},this.clearSeekingAppendCheck_=()=>c("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),c("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(xA,n),this.tech_.on("canplay",i),this.tech_.one("play",s),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",r),this.tech_.off(xA,n),this.tech_.off("canplay",i),this.tech_.off("play",s),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),o.forEach(d=>{a[`${d}SegmentLoader_`].off("appendsdone",l[d].updateend),a[`${d}SegmentLoader_`].off("playlistupdate",l[d].reset),this.tech_.off(["seeked","seeking"],l[d].reset)}),this.checkCurrentTimeTimeout_&&Y.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&Y.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=Y.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const s=this.playlistController_[`${e}SegmentLoader_`];this[`${e}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[`${e}StalledDownloads_`]=0,this[`${e}Buffered_`]=s.buffered_()}checkSegmentDownloads_(e){const s=this.playlistController_,i=s[`${e}SegmentLoader_`],r=i.buffered_(),n=GZ(this[`${e}Buffered_`],r);if(this[`${e}Buffered_`]=r,n){this.resetSegmentDownloads_(e);return}this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:i.playlist_&&i.playlist_.id,buffered:hl(r)}),!(this[`${e}StalledDownloads_`]<10)&&(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),e!=="subtitle"&&s.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),s=this.tech_.buffered();if(this.lastRecordedTime===e&&(!s.length||e+Pn>=s.end(s.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const e=this.seekable(),s=this.tech_.currentTime(),i=this.afterSeekableWindow_(e,s,this.media(),this.allowSeeksWithinUnsafeLiveWindow);let r;if(i&&(r=e.end(e.length-1)),this.beforeSeekableWindow_(e,s)){const b=e.start(0);r=b+(b===e.end(0)?0:Pn)}if(typeof r<"u")return this.logger_(`Trying to seek outside of seekable at time ${s} with seekable range ${ZN(e)}. Seeking to ${r}.`),this.tech_.setCurrentTime(r),!0;const n=this.playlistController_.sourceUpdater_,a=this.tech_.buffered(),o=n.audioBuffer?n.audioBuffered():null,l=n.videoBuffer?n.videoBuffered():null,c=this.media(),d=c.partTargetDuration?c.partTargetDuration:(c.targetDuration-In)*2,p=[o,l];for(let b=0;b<p.length;b++)if(p[b]&&WS(p[b],s)<d)return!1;const _=np(a,s);return _.length===0?!1:(r=_.start(0)+Pn,this.logger_(`Buffered region starts (${_.start(0)})  just beyond seek point (${s}). Seeking to ${r}.`),this.tech_.setCurrentTime(r),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),s=this.tech_.buffered(),i=lu(s,e);if(i.length&&e+3<=i.end(0)){this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${i.start(0)} -> ${i.end(0)}]. Attempting to resume playback by seeking to the current time.`),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"});return}}techWaiting_(){const e=this.seekable(),s=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,s)){const a=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${s}. Seeking to live point (seekable end) ${a}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(a),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const i=this.tech_.vhs.playlistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:s}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(s),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const n=np(r,s);return n.length>0?(this.logger_(`Stopped at ${s} and seeking to ${n.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(s),!0):!1}afterSeekableWindow_(e,s,i,r=!1){if(!e.length)return!1;let n=e.end(e.length-1)+Pn;const a=!i.endList,o=typeof i.partTargetDuration=="number";return a&&(o||r)&&(n=e.end(e.length-1)+i.targetDuration*3),s>n}beforeSeekableWindow_(e,s){return!!(e.length&&e.start(0)>0&&s<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:s,currentTime:i}){if(!e)return;let r;if(e.length&&s.length){const n=lu(e,i-3),a=lu(e,i),o=lu(s,i);o.length&&!a.length&&n.length&&(r={start:n.end(0),end:o.end(0)})}else np(e,i).length||(r=this.gapFromVideoUnderflow_(e,i));return r?(this.logger_(`Encountered a gap in video from ${r.start} to ${r.end}. Seeking to current time ${i}`),!0):!1}skipTheGap_(e){const s=this.tech_.buffered(),i=this.tech_.currentTime(),r=np(s,i);this.resetTimeUpdate_(),!(r.length===0||i!==e)&&(this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",r.start(0)),this.tech_.setCurrentTime(r.start(0)+In),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}))}gapFromVideoUnderflow_(e,s){const i=qZ(e);for(let r=0;r<i.length;r++){const n=i.start(r),a=i.end(r);if(s-n<4&&s-n>2)return{start:n,end:a}}return null}}const rse={errorInterval:30,getSource(t){const e=this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource();return t(e)}},$R=function(t,e){let s=0,i=0;const r=Ft(rse,e);t.ready(()=>{t.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const n=function(){i&&t.currentTime(i)},a=function(d){d!=null&&(i=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",n),t.src(d),t.trigger({type:"usage",name:"vhs-error-reload"}),t.play())},o=function(){if(Date.now()-s<r.errorInterval*1e3){t.trigger({type:"usage",name:"vhs-error-reload-canceled"});return}if(!r.getSource||typeof r.getSource!="function"){pe.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return s=Date.now(),r.getSource.call(t,a)},l=function(){t.off("loadedmetadata",n),t.off("error",o),t.off("dispose",l)},c=function(d){l(),$R(t,d)};t.on("error",o),t.on("dispose",l),t.reloadSourceOnError=c},nse=function(t){$R(this,t)};var jR="3.10.0",ase="7.0.2",ose="1.3.0",lse="7.1.0",use="4.0.1";const hs={PlaylistLoader:uu,Playlist:Vi,utils:yee,STANDARD_PLAYLIST_SELECTOR:fA,INITIAL_PLAYLIST_SELECTOR:nte,lastBandwidthSelector:fA,movingAverageBandwidthSelector:ite,comparePlaylistBandwidth:JS,comparePlaylistResolution:ste,xhr:mR()};Object.keys(Rs).forEach(t=>{Object.defineProperty(hs,t,{get(){return pe.log.warn(`using Vhs.${t} is UNSAFE be sure you know what you are doing`),Rs[t]},set(e){if(pe.log.warn(`using Vhs.${t} is UNSAFE be sure you know what you are doing`),typeof e!="number"||e<0){pe.log.warn(`value of Vhs.${t} must be greater than or equal to 0`);return}Rs[t]=e}})});const HR="videojs-vhs",qR=function(t,e){const s=e.media();let i=-1;for(let r=0;r<t.length;r++)if(t[r].id===s.id){i=r;break}t.selectedIndex_=i,t.trigger({selectedIndex:i,type:"change"})},cse=function(t,e){e.representations().forEach(s=>{t.addQualityLevel(s)}),qR(t,e.playlists)};hs.canPlaySource=function(){return pe.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const dse=(t,e,s)=>{if(!t)return t;let i={};e&&e.attributes&&e.attributes.CODECS&&(i=Rm(vn(e.attributes.CODECS))),s&&s.attributes&&s.attributes.CODECS&&(i.audio=s.attributes.CODECS);const r=Jh(i.video),n=Jh(i.audio),a={};for(const o in t)a[o]={},n&&(a[o].audioContentType=n),r&&(a[o].videoContentType=r),e.contentProtection&&e.contentProtection[o]&&e.contentProtection[o].pssh&&(a[o].pssh=e.contentProtection[o].pssh),typeof t[o]=="string"&&(a[o].url=t[o]);return Ft(t,a)},hse=(t,e)=>t.reduce((s,i)=>{if(!i.contentProtection)return s;const r=e.reduce((n,a)=>{const o=i.contentProtection[a];return o&&o.pssh&&(n[a]={pssh:o.pssh}),n},{});return Object.keys(r).length&&s.push(r),s},[]),fse=({player:t,sourceKeySystems:e,audioMedia:s,mainPlaylists:i})=>{if(!t.eme.initializeMediaKeys)return Promise.resolve();const r=s?i.concat([s]):i,n=hse(r,Object.keys(e)),a=[],o=[];
481return n.forEach(l=>{o.push(new Promise((c,d)=>{t.tech_.one("keysessioncreated",c)})),a.push(new Promise((c,d)=>{t.eme.initializeMediaKeys({keySystems:l},p=>{if(p){d(p);return}c()})}))}),Promise.race([Promise.all(a),Promise.race(o)])},pse=({player:t,sourceKeySystems:e,media:s,audioMedia:i})=>{const r=dse(e,s,i);return r?(t.currentSource().keySystems=r,r&&!t.eme?(pe.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1):!0):!1},VR=()=>{if(!Y.localStorage)return null;const t=Y.localStorage.getItem(HR);if(!t)return null;try{return JSON.parse(t)}catch{return null}},mse=t=>{if(!Y.localStorage)return!1;let e=VR();e=e?Ft(e,t):t;try{Y.localStorage.setItem(HR,JSON.stringify(e))}catch{return!1}return e},gse=t=>t.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")===0?JSON.parse(t.substring(t.indexOf(",")+1)):t,zR=(t,e)=>{t._requestCallbackSet||(t._requestCallbackSet=new Set),t._requestCallbackSet.add(e)},GR=(t,e)=>{t._responseCallbackSet||(t._responseCallbackSet=new Set),t._responseCallbackSet.add(e)},WR=(t,e)=>{t._requestCallbackSet&&(t._requestCallbackSet.delete(e),t._requestCallbackSet.size||delete t._requestCallbackSet)},XR=(t,e)=>{t._responseCallbackSet&&(t._responseCallbackSet.delete(e),t._responseCallbackSet.size||delete t._responseCallbackSet)};hs.supportsNativeHls=function(){if(!Ne||!Ne.createElement)return!1;const t=Ne.createElement("video");return pe.getTech("Html5").isSupported()?["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(e){return/maybe|probably/i.test(t.canPlayType(e))}):!1}();hs.supportsNativeDash=function(){return!Ne||!Ne.createElement||!pe.getTech("Html5").isSupported()?!1:/maybe|probably/i.test(Ne.createElement("video").canPlayType("application/dash+xml"))}();hs.supportsTypeNatively=t=>t==="hls"?hs.supportsNativeHls:t==="dash"?hs.supportsNativeDash:!1;hs.isSupported=function(){return pe.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};hs.xhr.onRequest=function(t){zR(hs.xhr,t)};hs.xhr.onResponse=function(t){GR(hs.xhr,t)};hs.xhr.offRequest=function(t){WR(hs.xhr,t)};hs.xhr.offResponse=function(t){XR(hs.xhr,t)};const yse=pe.getComponent("Component");class KR extends yse{constructor(e,s,i){if(super(s,i.vhs),typeof i.initialBandwidth=="number"&&(this.options_.bandwidth=i.initialBandwidth),this.logger_=Mr("VhsHandler"),s.options_&&s.options_.playerId){const r=pe.getPlayer(s.options_.playerId);this.player_=r}if(this.tech_=s,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&s.overrideNativeAudioTracks&&s.overrideNativeVideoTracks)s.overrideNativeAudioTracks(!0),s.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(s.featuresNativeVideoTracks||s.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(Ne,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=>{const n=Ne.fullscreenElement||Ne.webkitFullscreenElement||Ne.mozFullScreenElement||Ne.msFullscreenElement;n&&n.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=!1;return}this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=Ft(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions!==!1,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage<"u"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||
vendor: 7,122 bytes, line 481
481!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=this.options_.llhls!==!1,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,typeof this.options_.playlistExclusionDuration!="number"&&(this.options_.playlistExclusionDuration=60),typeof this.options_.bandwidth!="number"&&this.options_.useBandwidthFromLocalStorage){const s=VR();s&&s.bandwidth&&(this.options_.bandwidth=s.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),s&&s.throughput&&(this.options_.throughput=s.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}typeof this.options_.bandwidth!="number"&&(this.options_.bandwidth=Rs.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Rs.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(s=>{typeof this.source_[s]<"u"&&(this.options_[s]=this.source_[s])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio}setOptions(e={}){this.setOptions_(e)}src(e,s){if(!e)return;this.setOptions_(),this.options_.src=gse(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=hs,this.options_.sourceType=w4(s),this.options_.seekTo=n=>{this.tech_.setCurrentTime(n)},this.playlistController_=new Zte(this.options_);const i=Ft({liveRangeSafeTimeDelta:Pn},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new ise(i),this.playlistController_.on("error",()=>{const n=pe.players[this.tech_.options_.playerId];let a=this.playlistController_.error;typeof a=="object"&&!a.code?a.code=3:typeof a=="string"&&(a={message:a,code:3}),n.error(a)});const r=this.options_.bufferBasedABR?hs.movingAverageBandwidthSelector(.55):hs.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.playlistController_.selectInitialPlaylist=hs.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(n){this.playlistController_.selectPlaylist=n.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(n){this.playlistController_.mainSegmentLoader_.throughput.rate=n,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let n=this.playlistController_.mainSegmentLoader_.bandwidth;const a=Y.navigator.connection||Y.navigator.mozConnection||Y.navigator.webkitConnection,o=1e7;if(this.options_.useNetworkInformationApi&&a){const l=a.downlink*1e3*1e3;l>=o&&n>=o?n=Math.max(n,l):n=l}return n},set(n){this.playlistController_.mainSegmentLoader_.bandwidth=n,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const n=1/(this.bandwidth||1);let a;return this.throughput>0?a=1/this.throughput:a=0,Math.floor(1/(n+a))},set(){pe.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>hl(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>hl(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&mse({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{sse(this)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=Y.URL.createObjectURL(this.playlistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),fse({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(s=>{this.logger_("error while creating EME key session",s),this.player_.error({message:"Failed to initialize media ke
481ys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,s=pse({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});if(this.player_.tech_.on("keystatuschange",i=>{this.playlistController_.updatePlaylistByKeyStatus(i.keyId,i.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),!s){this.playlistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()}setupQualityLevels_(){const e=pe.players[this.tech_.options_.playerId];!e||!e.qualityLevels||this.qualityLevels_||(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{cse(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{qR(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":jR,"mux.js":ase,"mpd-parser":ose,"m3u8-parser":lse,"aes-decrypter":use}}version(){return this.constructor.version()}canChangeType(){return FR.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&Y.URL.revokeObjectURL&&(Y.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,s){return xee({playlist:this.playlistController_.media(),time:e,callback:s})}seekToProgramTime(e,s,i=!0,r=2){return bR({programTime:e,playlist:this.playlistController_.media(),retryCount:r,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:s})}setupXhrHooks_(){this.xhr.onRequest=e=>{zR(this.xhr,e)},this.xhr.onResponse=e=>{GR(this.xhr,e)},this.xhr.offRequest=e=>{WR(this.xhr,e)},this.xhr.offResponse=e=>{XR(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}}const Bm={name:"videojs-http-streaming",VERSION:jR,canHandleSource(t,e={}){const s=Ft(pe.options,e);return Bm.canPlayType(t.type,s)},handleSource(t,e,s={}){const i=Ft(pe.options,s);return e.vhs=new KR(t,e,i),e.vhs.xhr=mR(),e.vhs.setupXhrHooks_(),e.vhs.src(t.src,t.type),e.vhs},canPlayType(t,e){const s=w4(t);if(!s)return"";const i=Bm.getOverrideNative(e);return!hs.supportsTypeNatively(s)||i?"maybe":""},getOverrideNative(t={}){const{vhs:e={}}=t,s=!(pe.browser.IS_ANY_SAFARI||pe.browser.IS_IOS),{overrideNative:i=s}=e;return i}},_se=()=>Sp("avc1.4d400d,mp4a.40.2");_se()&&pe.getTech("Html5").registerSourceHandler(Bm,0);pe.VhsHandler=KR;pe.VhsSourceHandler=Bm;pe.Vhs=hs;pe.use||pe.registerComponent("Vhs",hs);pe.options.vhs=pe.options.vhs||{};(!pe.getPlugin||!pe.getPlugin("reloadSourceOnError"))&&pe.registerPlugin("reloadSourceOnError",nse);const vse={key:0,class:"player-section"},bse={class:"player-wrapper"},Tse=Cs({__name:"Player",props:{mode:{type:String,default:"ondemand"},options:{type:Object,default:()=>({})},source:{type:Object,default:()=>({type:"application/x-mpegURL",url:""})},playerContainerClass:String,playerHeaderClass:String,playerVideoJsClass:String,playerFooterClass:String},emits:["playerReady","playingStateChange"],setup(t,{emit:e}){const s=e,i=t,r=Je(null),n=Je(null),a=Je(!1),o=Je(i.source.mode),l=mt(()=>{const d={controls:!0,autoplay:i.source.autoplay,audioOnlyMode:i.source.audioOnlyMode,playbackRates:[.5,1,1.5,2]};switch(i.source.mode){case"live":d.sources=[{src:i.source.url,type:i.source.type||"application/x-mpegURL"}];break;case"episode":d.sources=[{src:i.source.url,type:i.source.type||"audio/mp3"}];break;default:d.sources=[{src:i.source[0].url,type:"video/mp4"}]}return{...d,...i.options}}),c=async()=>{await an(),a.value=!0,n.value&&(console.log("Disposing previous player instance..."),n.value.dispose(),n.value=null);const d=document.getElementById("audioPlayer");if(!d){console.error("Player container not found in the DOM");return}d.innerHTML="";const p=document.createElement("video");if(p.setAttribute("ref","playerElement"),p.setAttribute("controls",""),p.setAttribute("preload","auto"),p.classList.add("video-js"),i.playerVideoJsClass&&i.playerVideoJsClass.split(" ").forEach(_=>{_.trim()&&p.classList.add(_.trim())}),d.appendChild(p),console.log("Initializing Player with options:",l.value),!p){console.error("Failed to create video element");return}console.log("Initializing Player with options:",l.value),n.value=pe(p,l.value,()=>{console.log("Player is ready"),a.value=!1,s("playerReady",p),n.value.on("play",()=>{s("playingStateChange",!0)}),n.value.on("pause",()=>{s("playingStateChange",!1)})})};return $s(()=>i.source,async d=>{if(!d||!d.url){console.log("Invalid source");return}d.mode!==o.value?(console.log("Mode changed, reinitializing player..."),o.value=d.mode,await c()):n.value&&(console.log("Updating player source dynamically..."),n.value.src({src:d.url,type:d.type||"application/x-mpegURL"}),n.value.load(),n.value.play())},{immediate:!0}),mr(()=>{c()}),Wa(()=>{n.value&&n.value.dispose()}),(d,p)=>t.source?(Ce(),ke("div",vse,[bt(d.$slots,"header",{},()=>[ie("div",{class:ye(["player-header",t.playerHeaderClass])},p[0]||(p[0]=[ie("h5",null,"Now Playing",-1)]),2)]),ie("div",bse,[ie("div",{id:"audioPlayer",class:ye(["player-container",t.playerContainerClass])},[ie("video",{ref_key:"playerElement",ref:r,class:ye(["video-js",t.playerVideoJsClass]),controls:"",preload:"auto"},null,2)],2),bt(d.$slots,"footer",{},()=>[ie("div",{class:ye(["player-footer",t.playerFooterClass])},[ie("span",null,Be(t.source.mode==="live"?"LIVE":t.source.title),
4811)],2)])])])):vt("",!0)}}),Sse={class:"episode-image-wrapper"},Ese=["src","alt"],xse={class:"episode-play-button"},Cse={class:"material-icons","aria-hidden":"true"},wse={class:"text-primary ms-2"},Ase={class:"episode-item-content"},kse={class:"episode-publish-date"},Dse={class:"default-footer"},Ise=Cs({__name:"EpisodeItem",props:{station:{type:Object,required:!0},programme:{type:Object,required:!0},selectedEpisode:{type:Object,required:!0},episodes:{type:Array,required:!0},loading:{type:Boolean,default:!1},defaultImage:{type:String,default:"/images/default.png"},routerSearch:{type:String,required:!0},routerEpisode:{type:String,required:!0},routerProgramme:{type:[String,Object],required:!0},episodeLimit:{type:Number,default:6},titleClass:String,containerClass:String,detailsSectionClass:String,imageClass:String,metadataClass:String,descriptionClass:String,linksClass:String,episodeContainerClass:String,episodeListClass:String,episodeItemClass:String,episodeTitleClass:String,episodeDateClass:String,episodePlayerClass:String,episodeButtonClass:String,episodeDownloadClass:String,episodeCopyClass:String,videoPlayerClass:String},emits:["play-episode","now-playing"],setup(t,{emit:e}){const s=t,{formatDate:i,currentNZDateTime:r}=Hg(),n=e,a=Je("https://ondemand.accessmedia.nz"),o=Je(null);Je(!1);const l=mt(()=>`https://images.accessmedia.nz/StationFolder/${s.station.Folder}/Images/${s.programme.Image}`.replace(/ /g,"%20")),c=mt(()=>s.episodes.filter(y=>y.ID!==s.selectedEpisode.ID)),d=y=>{y.target.src=s.defaultImage},p=y=>{n("play-episode",y),o.value=y.ID},_=y=>{if(!y.PublishDate)return!1;const x=new Date(y.PublishDate).getTime(),A=new Date(r.value).getTime(),C=7*24*60*60*1e3;return A-x<=C},b=y=>{const x=`/StationFolder/${s.station.Folder}/`,A=`${a.value}${x}${y.MediaFile}`,C=document.createElement("a");C.href=A,C.download=y.Title||"download",document.body.appendChild(C),C.click(),document.body.removeChild(C)},T=mt(()=>{var y,x,A;if(typeof s.routerProgramme=="string")return{name:s.routerProgramme,params:{slug:(y=s.programme)==null?void 0:y.Slug}};const C={...s.routerProgramme},S=C&&typeof C=="object"&&"params"in C,E=(x=s.programme)==null?void 0:x.Slug;return E&&(S?(A=C.params)!=null&&A.slug||(C.params={...C.params,slug:E}):C.params={slug:E}),C});return(y,x)=>{const A=Gn("RouterLink");return Ce(),ke("div",{class:ye(["episode-item",t.containerClass])},[bt(y.$slots,"image",{},()=>[ie("div",Sse,[ie("img",{src:l.value||t.defaultImage,alt:t.selectedEpisode.Title,class:ye(["episode-image",t.imageClass]),onError:d},null,42,Ese)])]),bt(y.$slots,"header",{},()=>[ie("h1",{class:ye(["episode-title",t.titleClass])},Be(t.selectedEpisode.Title),3)]),ie("div",{class:ye(["ep-details-section",t.detailsSectionClass])},[bt(y.$slots,"metadata",{},()=>[ie("p",null,[ie("span",null," Published: "+Be(t.selectedEpisode.PublishDate?gt(i)(t.selectedEpisode.PublishDate,"do MMMM yyyy"):"Not Available"),1),x[4]||(x[4]=ie("br",null,null,-1)),ie("span",null,"Host: "+Be(t.programme.Host||"Not Available"),1),x[5]||(x[5]=ie("br",null,null,-1)),ie("span",null,[x[2]||(x[2]=ys(" Categories: ")),ze(A,{to:{name:t.routerSearch,query:{Category:t.selectedEpisode.Category}}},{default:ot(()=>[ys(Be(t.programme.Category||"Not Available"),1)]),_:1},8,["to"])]),x[6]||(x[6]=ie("br",null,null,-1)),ie("span",null,[x[3]||(x[3]=ys(" Languages: ")),ze(A,{to:{name:t.routerSearch,query:{Language:t.selectedEpisode.Language}}},{default:ot(()=>[ys(Be(t.programme.Language||"Not Available"),1)]),_:1},8,["to"])])])])],2),bt(y.$slots,"description",{},()=>[ie("p",{class:ye(["programme-description",t.descriptionClass])},Be(t.selectedEpisode.Description||"Description not available"),3)]),ie("div",xse,[ie("button",{onClick:x[0]||(x[0]=Sn(C=>p(t.selectedEpisode),["stop"])),type:"button",class:ye(["btn bg-gradient-primary p-0 epIcons",t.episodeButtonClass]),"aria-label":"Play episode"},[ie("i",Cse,Be(o.value===t.selectedEpisode.ID?"chevron_right":"play_arrow"),1)],2),ie("span",wse,Be(o.value===t.selectedEpisode.ID?"Now Playing":""),1)]),ie("div",{class:ye(["video-player-container",t.videoPlayerClass])},[bt(y.$slots,"video-player")],2),bt(y.$slots,"episodes",{},()=>[c.value.length>0?(Ce(),ke("div",{key:0,class:ye(["episode-list-container",t.episodeContainerClass])},[ie("div",{id:"vid-player-section",class:ye(["video-player",t.videoPlayerClass])}
481,[ie("div",{class:ye(["episodes-list-section",t.episodeListClass])},[bt(y.$slots,"header",{},()=>[x[7]||(x[7]=ie("h4",{class:"default-header"},"More episodes from programme",-1))]),(Ce(!0),ke(_t,null,Ws(c.value.slice(0,s.episodeLimit),(C,S)=>(Ce(),ke("div",{key:S,class:ye(["episode-item",t.episodeItemClass])},[bt(y.$slots,"episode-item",{episode:C},()=>[ie("div",Ase,[ze(A,{to:{name:t.routerEpisode,params:{EID:C.ID}}},{default:ot(()=>[ie("h5",{class:ye(["p-0 m-0",t.episodeTitleClass])},Be(C.Title),3)]),_:2},1032,["to"]),ie("p",kse,Be(C.PublishDate?gt(i)(C.PublishDate,"do MMMM yyyy"):"Not Available"),1)])])],2))),128))],2)],2)],2)):vt("",!0)]),bt(y.$slots,"footer",{},()=>[ie("div",Dse,[ze(A,{to:T.value,class:"back-to-programme"},{default:ot(()=>x[8]||(x[8]=[ys(" Go to programme ")])),_:1},8,["to"]),_(t.selectedEpisode)?(Ce(),ke("button",{key:0,onClick:x[1]||(x[1]=Sn(C=>b(t.selectedEpisode),["stop"])),class:"download-episode","aria-label":"download episode",title:"download episode"}," Download Episode ")):vt("",!0)])])],2)}}}),Pse={class:"category-title"},Lse={class:"default-programme"},Ose=["src","alt"],Nse={class:"category-title"},Rse={class:"swiper-container-wrapper",style:{position:"relative"}},Mse={class:"programme-slide"},Fse={class:"default-programme"},Bse=["src","alt"],Use=["onKeydown"],$se=["onKeydown"],jse={class:"all-programme"},Hse=["src","alt"],qse={key:0,class:"programme-category"},Vse={key:1,class:"programme-language"},zse={class:"programme-description"},Gse=Cs({__name:"ProgrammeGroups",props:{station:{type:Object,required:!0},allProgrammes:{type:Array},groupBy:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},limit:{type:Number},defaultImage:{type:String,default:"/images/default.png"},displayGroups:{type:[String,Array],default:null},enableSwiper:{type:Boolean,default:()=>!1},customSwiperOptions:{type:Object,default:()=>({})},categoryGroupClass:String,containerClass:String,loaderClass:String,listClass:String,itemClass:String,imageClass:String,titleClass:String,descClass:String,emptyClass:String,routerName:String,routerClass:String},setup(t){const e=[pS,dS,hS,cS,fS],s=t,i=T=>{T.target.src=s.defaultImage},r=mt(()=>{if(!s.displayGroups)return s.groupBy;const T=typeof s.displayGroups=="string"?[s.displayGroups.toLowerCase()]:s.displayGroups.map(x=>x.toLowerCase()),y={};return Object.keys(s.groupBy).forEach(x=>{T.includes(x.toLowerCase())&&(y[x]=s.groupBy[x])}),y}),n=mt(()=>{const T={};return Object.keys(r.value).forEach(y=>{T[y]=r.value[y].slice(0,s.limit)}),T}),a={slidesPerView:1,spaceBetween:0,loop:!0,keyboard:{enabled:!0},navigation:{nextEl:null,prevEl:null},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",slideLabelMessage:"Slide {{index}} of {{slidesLength}}"},breakpoint:{600:{slidesPerView:2,spaceBetween:15},1200:{slidesPerView:3,spaceBetween:15},1500:{slidesPerView:4,spaceBetween:15},2100:{slidesPerView:5,spaceBetween:15}}},o=mt(()=>({...a,...s.customSwiperOptions,navigation:{...a.navigation,...s.customSwiperOptions.navigation||{}},a11y:{...a.a11y,...s.customSwiperOptions.a11y||{}},breakpoints:{...a.breakpoint,...s.customSwiperOptions.breakpoints||{}}})),l=Je([]),c=Je([]),d=Je([]),p=(T,y)=>{l.value[T]=y};Bk(()=>{l.value.forEach((T,y)=>{const x=c.value[y],A=d.value[y];T&&x&&A&&(T.params.navigation.nextEl=x,T.params.navigation.prevEl=A,T.navigation&&T.navigation.destroy&&T.navigation.init&&(T.navigation.destroy(),T.navigation.init(),T.navigation.update()))})});const _=(T,y)=>{var x;y.key==="Enter"&&((x=c.value[T])==null||x.click())},b=(T,y)=>{var x;y.key==="Enter"&&((x=d.value[T])==null||x.click())};return(T,y)=>{const x=Gn("RouterLink");return Ce(),ke("div",{class:ye(["programme-group",t.containerClass])},[t.enableSwiper?(Ce(),ke("div",{key:1,class:ye(["category-group",t.categoryGroupClass])},[(Ce(!0),ke(_t,null,Ws(n.value,(A,C,S)=>(Ce(),ke("div",{key:C,class:"category-section"},[bt(T.$slots,"header",{},()=>[ie("h2",Nse,Be(C),1)]),A&&A.length?(Ce(),ke("div",{key:0,class:ye(["programmes-list",t.listClass])},[ie("div",Rse,[ze(gt(lS),df({modules:e,ref_for:!0},o.value,{onSwiper:E=>p(S,E),style:{width:"100%"}}),{default:ot(()=>[(Ce(!0),ke(_t,null,Ws(A,E=>(Ce(),on(gt(uS),{key:E.ID,class:ye(["programme-item",t.itemClass])},{default:ot(()=>[ie("div",Mse,[bt(T.$slots,"programme",{programme:E},()=>
481[ie("div",Fse,[ze(x,{to:{name:t.routerName,params:{slug:E.Slug}},title:E.Title},{default:ot(()=>[ie("img",{src:`https://images.accessmedia.nz/StationFolder/${t.station.Folder}/Images/${E.Image}`,alt:E.Title,class:ye(["programme-image",t.imageClass]),onError:i},null,42,Bse)]),_:2},1032,["to","title"]),ze(x,{to:{name:t.routerName,params:{slug:E.Slug}},title:E.Title,class:ye(t.routerClass)},{default:ot(()=>[ie("h5",{class:ye(["programme-title",t.titleClass])},Be(E.Title),3),ie("span",{class:ye(["programme-desc",t.descClass])},Be(E.Short_Description),3)]),_:2},1032,["to","title","class"])])])])]),_:2},1032,["class"]))),128))]),_:2},1040,["onSwiper"]),ie("button",{class:"swiper-button-next",ref_for:!0,ref:E=>c.value[S]=E||null,onKeydown:E=>_(S,E)},y[1]||(y[1]=[ie("span",{class:"sr-only"},"Next",-1)]),40,Use),ie("button",{class:"swiper-button-prev",ref_for:!0,ref:E=>d.value[S]=E||null,onKeydown:E=>b(S,E)},y[2]||(y[2]=[ie("span",{class:"sr-only"},"Prev",-1)]),40,$se)])],2)):(Ce(),ke("div",{key:1,class:ye(["no-episodes",t.emptyClass])},[bt(T.$slots,"empty",{},()=>[y[3]||(y[3]=ie("p",null,"No episodes available.",-1))])],2))]))),128))],2)):(Ce(),ke(_t,{key:0},[t.groupBy?(Ce(),ke("div",{key:0,class:ye(["category-group",t.categoryGroupClass])},[(Ce(!0),ke(_t,null,Ws(n.value,(A,C)=>(Ce(),ke("div",{key:C,class:"category-section"},[bt(T.$slots,"header",{},()=>[ie("h2",Pse,Be(C),1)]),A&&A.length?(Ce(),ke("div",{key:0,class:ye(["programmes-list",t.listClass])},[(Ce(!0),ke(_t,null,Ws(A,S=>(Ce(),ke("div",{key:S.ID,class:ye(["programme-item",t.itemClass])},[bt(T.$slots,"programme",{programme:S},()=>[ie("div",Lse,[ze(x,{to:{name:t.routerName,params:{slug:S.Slug}},title:S.Title},{default:ot(()=>[ie("img",{src:`https://images.accessmedia.nz/StationFolder/${t.station.Folder}/Images/${S.Image}`,alt:S.Title,class:ye(["programme-image",t.imageClass]),onError:i},null,42,Ose)]),_:2},1032,["to","title"]),ze(x,{to:{name:t.routerName,params:{slug:S.Slug}},title:S.Title,class:ye(t.routerClass)},{default:ot(()=>[ie("h5",{class:ye(["programme-title",t.titleClass])},Be(S.Title),3),ie("span",{class:ye(["programme-desc",t.descClass])},Be(S.Short_Description),3)]),_:2},1032,["to","title","class"])])])],2))),128))],2)):(Ce(),ke("div",{key:1,class:ye(["no-episodes",t.emptyClass])},[bt(T.$slots,"empty",{},()=>[y[0]||(y[0]=ie("p",null,"No episodes available.",-1))])],2))]))),128))],2)):vt("",!0)],64)),t.allProgrammes?(Ce(),ke("div",{key:2,class:ye(["category-group",t.categoryGroupClass])},[t.allProgrammes&&t.allProgrammes.length?(Ce(),ke("div",{key:0,class:ye(["programmes-list",t.listClass])},[(Ce(!0),ke(_t,null,Ws(t.allProgrammes,A=>(Ce(),ke("div",{key:A.ID,class:ye(["programme-item",t.itemClass])},[bt(T.$slots,"programme",{programme:A},()=>[ie("div",jse,[ze(x,{to:{name:t.routerName,params:{slug:A.Slug}},title:A.Title},{default:ot(()=>[ie("img",{src:`https://images.accessmedia.nz/StationFolder/${t.station.Folder}/Images/${A.Image}`,alt:A.Title,class:ye(["programme-image",t.imageClass]),onError:i},null,42,Hse)]),_:2},1032,["to","title"]),ze(x,{to:{name:t.routerName,params:{slug:A.Slug}},title:A.Title,class:ye(t.routerClass)},{default:ot(()=>[ie("span",{class:ye(["programme-title",t.titleClass])},Be(A.Title),3),A.Category?(Ce(),ke("span",qse,"Category: "+Be(A.Category),1)):vt("",!0),A.Language?(Ce(),ke("span",Vse,"Language: "+Be(A.Language),1)):vt("",!0),ie("span",zse,Be(A.Short_Description),1)]),_:2},1032,["to","title","class"])]),y[4]||(y[4]=ie("hr",null,null,-1))])],2))),128))],2)):(Ce(),ke("div",{key:1,class:ye(["no-episodes",t.emptyClass])},[bt(T.$slots,"empty",{},()=>[y[5]||(y[5]=ie("p",null,"No episodes available.",-1))])],2))],2)):vt("",!0)],2)}}}),Wse={class:"default-programme"},Xse={class:"text-xs text-uppercase"},Kse={class:"programme-image"},Yse=["src","alt"],Qse=Cs({__name:"RecommendedProgrammes",props:{station:{type:Object,required:!0},programmes:{type:Array,required:!0},type:{type:String,required:!0},loading:{type:Boolean,default:!1},defaultImage:{type:String,default:"/images/default.png"},limit:{type:Number,default:10},containerClass:String,loaderClass:String,listClass:String,itemClass:String,imageClass:String,titleClass:String,dateClass:String,descClass:String,routerName:String,routerClass:String,routerSearch:String},setup(t){const e=t,s=i=>{i.target.src=e.defaultImage};return(i,r)=>{const n=Gn("RouterLink");return Ce(),ke("div",{class:ye(["recommended-programmes",t.containerClass])},[t.programmes&&t.programmes.length?(Ce(),ke("div",{key:0,class:ye(["programmes-list",t.listClass])},[(Ce(!0),ke(_t,null,Ws(t.programmes.slice(0,t.limit),a=>(Ce(),ke("div",{key:a.ID,class:ye(["programme-item",t.itemClass])},[bt(i.$slots,"programme",{programme:a},()=>[ie("div",Wse,[ze(n,{to:{name:t.routerSearch,query:t.type==="Language"?{Lang:a.Language}:{Category:a.Category}},class:"d-block"},{default:ot(()=>[ie("span",Xse,"More in this "+Be(t.type),1)]),_:2},1032,["to"]),ze(n,{to:{name:t.routerName,params:{slug:a.Slug}},title:a.Title,class:ye(t.routerClass)},{default:ot(()=>[ie("p",Kse,[ie("img",{src:`https://images.accessmedia.nz/StationFolder/${e.station.Folder}/Images/${a.Image}`,alt:a.Title,class:"img-raised rounded",onError:s},null,40,Yse)])]),_:2},1032,["to","title","class"]),ze(n,{to:{name:t.routerName,params:{slug:a.Slug}},title:a.Title,class:ye(t.routerClass)},{default:ot(()=>[ie("h5",{class:ye(["programme-title",t.titleClass])},Be(a.Title),3),ie("span",{class:ye(["programme-desc",t.descClass])}
481,Be(a.Short_Description),3)]),_:2},1032,["to","title","class"])])],!0)],2))),128))],2)):vt("",!0)],2)}}}),Jse=wc(Qse,[["__scopeId","data-v-31019595"]]),Zse={class:"search-control-container"},eie={class:"search-wrapper"},tie={key:0},sie={class:"filter-item"},iie=["value"],rie={class:"filter-item"},nie=["value"],aie={key:0,class:"search-validation-text"},oie=Cs({__name:"SearchControl",props:{selectedLanguage:{},selectedCategory:{},searchQuery:{},categories:{},languages:{},route:{},router:{},searchClass:{},buttonClass:{},filterClass:{},toggleButtonClass:{},filterToggle:{type:Boolean},navigateOnSearch:{type:Boolean},requireMinChars:{type:Boolean}},emits:["search"],setup(t,{emit:e}){const s=t,i=e,r=Je(s.searchQuery??""),n=Je(s.selectedCategory??"All"),a=Je(s.selectedLanguage??"All"),o=Je(!1),l=Je(""),c=mt(()=>s.filterToggle?o.value:!0),d=mt(()=>[{Name:"All",Value:"All"},...s.categories.filter(T=>T.Value!=="All")]),p=mt(()=>[{Value:"All"},...s.languages.filter(T=>T.Value!=="All")]),_=()=>{o.value=!o.value};mr(()=>{s.route.query.Search&&(r.value=s.route.query.Search),s.route.query.Lang&&(a.value=s.route.query.Lang),s.route.query.Category&&(n.value=s.route.query.Category)});const b=()=>{if(s.requireMinChars&&(!r.value||r.value.trim().length<3)){l.value="Please enter at least 3 characters to search.";return}if(l.value="",i("search",{query:r.value.trim(),category:n.value,language:a.value}),s.navigateOnSearch!==!1){const T={};a.value!=="All"&&(T.Lang=a.value),n.value!=="All"&&(T.Category=n.value),r.value&&(T.Search=r.value.trim()),s.router.push({path:"/search",query:T})}};return(T,y)=>(Ce(),ke("div",Zse,[ie("div",eie,[lp(ie("input",{type:"text","onUpdate:modelValue":y[0]||(y[0]=x=>r.value=x),placeholder:"Search for programmes and podcasts",class:ye(["search-textfield",T.searchClass]),onKeydown:_D(b,["enter"])},null,34),[[Fh,r.value]]),T.filterToggle?(Ce(),ke("div",tie,[ie("button",{onClick:_,class:ye(["toggle-filter",T.toggleButtonClass])},y[3]||(y[3]=[ie("i",{class:"mdi mdi-filter"},null,-1),ys(" Filter Search ")]),2)])):vt("",!0),c.value?(Ce(),ke("div",{key:1,class:ye(["filter-section",T.filterClass])},[ie("div",sie,[y[4]||(y[4]=ie("label",{for:"category-select"},"Category",-1)),lp(ie("select",{id:"category-select","onUpdate:modelValue":y[1]||(y[1]=x=>n.value=x),class:"filter-select"},[(Ce(!0),ke(_t,null,Ws(d.value,x=>(Ce(),ke("option",{key:x.Value,value:x.Value},Be(x.Name||x.Value),9,iie))),128))],512),[[$p,n.value]])]),ie("div",rie,[y[5]||(y[5]=ie("label",{for:"language-select"},"Language",-1)),lp(ie("select",{id:"language-select","onUpdate:modelValue":y[2]||(y[2]=x=>a.value=x),class:"filter-select"},[(Ce(!0),ke(_t,null,Ws(p.value,x=>(Ce(),ke("option",{key:x.Value,value:x.Value},Be(x.Value),9,nie))),128))],512),[[$p,a.value]])])],2)):vt("",!0),ie("button",{onClick:b,class:ye(["search-button",T.buttonClass])},y[6]||(y[6]=[ie("i",{class:"mdi mdi-magnify"},null,-1)]),2)]),l.value?(Ce(),ke("p",aie,Be(l.value),1)):vt("",!0)]))}}),lie=wc(oie,[["__scopeId","data-v-cbe202be"]]),uie={class:"station-schedule"},cie={class:"week-navigation"},die={class:"day-tabs"},hie=["onClick"],fie={key:0},pie=["src","alt"],mie=["src","alt"],gie=Cs({__name:"StationSchedule",props:{station:{type:Object,required:!0},schedule:{type:Array,required:!0},initialDate:{type:String,required:!1},defaultImage:{type:String,default:"/images/default.png"},routerName:{type:String,required:!0},showImage:{type:Boolean,default:!0},schedNavClass:String,tabsClass:String,programmeListClass:String,programmeItemClass:String,programmeDetailsClass:String,titleClass:String,timeClass:String,timeWrapperClass:String,hostClass:String,descClass:String,categoryClass:String,languageClass:String,imageClass:String,tagsClass:String},emits:["date-selected"],setup(t,{emit:e}){const{formatDate:s}=Hg(),i=t,r=e,n=Je(i.initialDate?new Date(i.initialDate):new Date),a=()=>{n.value=qW(n.value),r("date-selected",s(n.value,"yyyy-MM-dd"))},o=()=>{n.value=o4(n.value,1),r("date-selected",s(n.value,"yyyy-MM-dd"))},l=_=>{_.target.src=i.defaultImage},c=mt(()=>i.schedule||[]),d=mt(()=>{const _=tc(n.value,{weekStartsOn:1}
481);return Array.from({length:7},(b,T)=>{const y=n4(_,T);return{name:$b(y,"EEE d"),value:$b(y,"yyyy-MM-dd")}})}),p=_=>{n.value=new Date(_.value),r("date-selected",_.value)};return mr(()=>{r("date-selected",s(n.value,"yyyy-MM-dd"))}),(_,b)=>{const T=Gn("RouterLink");return Ce(),ke("div",uie,[ie("div",cie,[ie("button",{onClick:a},"◀ Previous"),ie("div",die,[(Ce(!0),ke(_t,null,Ws(d.value,y=>(Ce(),ke("button",{key:y.name,class:ye({active:y.value===gt(s)(n.value,"yyyy-MM-dd")}),onClick:x=>p(y)},Be(y.name),11,hie))),128))]),ie("button",{onClick:o},"Next ▶")]),c.value&&c.value.length!=0?(Ce(),ke("div",fie,[ie("ul",{class:ye(["programme-list",t.programmeListClass])},[(Ce(!0),ke(_t,null,Ws(c.value,(y,x)=>(Ce(),ke("li",{key:`${y.ScheduleID}-${x}`},[bt(_.$slots,"programme-item",{programme:y},()=>[ie("div",{class:ye(["programme-time-wrapper",t.timeWrapperClass])},[ie("p",{class:ye(["programme-time",t.timeClass])},Be(gt(s)(y.Start,"h:mm a").toUpperCase()),3)],2),y.IsProgramme==!0?(Ce(),ke("div",{key:0,class:ye(["programme-item",t.programmeItemClass])},[ze(T,{to:{name:t.routerName,params:{slug:y.Slug}},title:y.Title},{default:ot(()=>[t.showImage?(Ce(),ke("img",{key:0,class:ye([["programme-image",t.imageClass],"img-raised rounded"]),src:`https://images.accessmedia.nz/StationFolder/${i.station.Folder}/Images/${y.Image}`,alt:y.Title,onError:l},null,42,pie)):vt("",!0)]),_:2},1032,["to","title"]),ie("div",{class:ye(["programme-details",t.programmeDetailsClass])},[ze(T,{to:{name:t.routerName,params:{slug:y.Slug}},title:y.Title},{default:ot(()=>[y.Title?(Ce(),ke("h5",{key:0,class:ye(["programme-title",t.titleClass])},Be(y.Title),3)):vt("",!0),y.Host?(Ce(),ke("h6",{key:1,class:ye(["programme-host",t.hostClass])},"Host: "+Be(y.Host),3)):vt("",!0),ie("div",{class:ye(["programme-tags",t.tagsClass])},[y.Category?(Ce(),ke("span",{key:0,class:ye(["programme-category",t.categoryClass])}," Category: "+Be(y.Category),3)):vt("",!0),y.Language?(Ce(),ke("span",{key:1,class:ye(["programme-language",t.languageClass])}," Language: "+Be(y.Language),3)):vt("",!0)],2),y.ShortDescription?(Ce(),ke("span",{key:2,class:ye(["programme-desc",t.descClass])},Be(y.ShortDescription),3)):vt("",!0)]),_:2},1032,["to","title"])],2)],2)):(Ce(),ke("div",{key:1,class:ye(["programme-item",t.programmeItemClass])},[t.showImage?(Ce(),ke("img",{key:0,class:ye([["programme-image",t.imageClass],"img-raised rounded"]),src:`https://images.accessmedia.nz/StationFolder/${i.station.Folder}/Images/${y.Image}`,alt:y.Title,onError:l},null,42,mie)):vt("",!0),ie("div",{class:ye(["programme-details",t.programmeDetailsClass])},[y.Title?(Ce(),ke("h5",{key:0,class:ye(["programme-title",t.titleClass])},Be(y.Title),3)):vt("",!0),y.Host?(Ce(),ke("h6",{key:1,class:ye(["programme-host",t.hostClass])},"Host: "+Be(y.Host),3)):vt("",!0),y.ShortDescription?(Ce(),ke("p",{key:2,class:ye(["programme-desc",t.descClass])},Be(y.ShortDescription),3)):vt("",!0)],2)],2))],!0)]))),128))],2)])):vt("",!0)])}}}),yie=wc(gie,[["__scopeId","data-v-a3ad2b98"]]),_ie=Cs({__name:"NowPlaying",props:{nowPlaying:{type:Object,required:!0},nowPlayingClass:String,titleClass:String},setup(t){return(e,s)=>t.nowPlaying?(Ce(),ke("div",{key:0,class:ye(["now-playing-programme",t.nowPlayingClass])},[bt(e.$slots,"now-playing",{nowPlaying:t.nowPlaying},()=>[ie("span",{class:ye(["now-playing-title",t.titleClass])},[s[0]||(s[0]=ie("b",null,"Played:",-1)),ys(" "+Be(t.nowPlaying.lastTitle)+" - "+Be(t.nowPlaying.lastArtist),1)],2),ie("span",{class:ye(["now-playing-title",t.titleClass])},[s[1]||(s[1]=ie("b",null,"Now:",-1)),ys(" "+Be(t.nowPlaying.currentTitle)+" - "+Be(t.nowPlaying.currentArtist),1)],2),ie("span",{class:ye(["now-playing-title",t.titleClass])},[s[2]||(s[2]=ie("b",null,"Next:",-1)),ys(" "+Be(t.nowPlaying.nextTitle)+" - "+Be(t.nowPlaying.nextArtist),1)],2)])],2)):vt("",!0)}}),vie={install(t,e={}){if(Number(t.version.split(".")[0])<3){console.warn("This plugin requires Vue 3");return}t.provide("station",e),t.component("LatestEpisodes",AK),t.component("FeaturedProgrammes",MK),t.component("ProgrammeItem",cY),t.component("Player",Tse),t.component("EpisodeItem",Ise),t.component("ProgrammeGroups",Gse),t.component("RecommendedProgrammes",Jse),t.component("SearchControl",lie),t.component("StationSchedule",yie),t.component("NowPlaying",_ie)}};(await _i(async()=>{const{default:t}=await import("./bootstrap.min.BnSvp_6c.js").then(e=>e.b);return{default:t}},__vite__mapDeps([38,8,39]))).default;const bie="6Lc9sRQsAAAAAI9xNAm8UBNrCWWk4gt57Hl5zjGY",Ro=jp(eG);Ro.use(YO,{siteKey:bie});Ro.use(OG,{appName:"accessmedia.nz",pageTrackerScreenviewEnabled:!0,config:{id:"G-WKJS270B6Q"}},iS);Ro.use(D5());Ro.use(iS);Ro.use(MG);Ro.use(vie);Ro.use(rG);Ro.mount("#app");export{Cs as A,hc as B,Ys as C,df as D,uf as E,_t as F,an as G,Wa as H,_i as I,fe as J,lp as K,$p as L,L6 as R,hI as _,ie as a,af as b,ke as c,Sie as d,mt as e,Ws as f,Eie as g,Je as h,cg as i,mr as j,Gn as k,ze as l,ot as m,ye as n,Ce as o,gt as p,on as q,bt as r,Sn as s,Be as t,VO as u,vt as v,_D as w,ys as x,Kk as y,$s as z};

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.