/* VimeoPlayer - v4.40.71 - 2025-06-11 - https://player.vimeo.com/NOTICE.txt */ !function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t,n,i){return t(i={path:n,exports:{},require:function(t,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&i.path)}},i.exports),i.exports}var e=i((function(t,i){ /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.6+9869a4bc */ t.exports=function(){function t(t){return"function"==typeof t}var i=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},e=0,r=void 0,s=void 0,o=function(t,n){d[e]=t,d[e+1]=n,2===(e+=2)&&(s?s(v):p())};var u="undefined"!=typeof window?window:void 0,c=u||{},h=c.MutationObserver||c.WebKitMutationObserver,a="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function l(){var t=setTimeout;return function(){return t(v,1)}}var d=new Array(1e3);function v(){for(var t=0;tt.length)&&(n=t.length);for(var i=0,e=Array(n);ir.all(t.map((t=>t.then((t=>({status:"fulfilled",value:t}))).catch((t=>({status:"rejected",reason:t})))))));var S,_,R,I,O={object:!0,symbol:!0},N=function(t){return null!=t},k=Object.keys,M=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}()?Object.keys:function(t){return k(N(t)?Object(t):t)},D=Math.max,P=function(){var t,n=Object.assign;return"function"==typeof n&&(n(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,n){var i,e,r,s=D(arguments.length,2);for(t=Object(function(t){if(!N(t))throw new TypeError("Cannot use null or undefined");return t}(t)),r=function(e){try{t[e]=n[e]}catch(t){i||(i=t)}},e=1;e-1},$=i((function(t){var n;n=t.exports=function(t,n){var i,e,r,s,o;return arguments.length<2||"string"!=typeof t?(s=n,n=t,t=null):s=arguments[2],null==t?(i=r=!0,e=!1):(i=F.call(t,"c"),e=F.call(t,"e"),r=F.call(t,"w")),o={value:n,configurable:i,enumerable:e,writable:r},s?P(L(s),o):o},n.gs=function(t,n,i){var e,r,s,o;return"string"!=typeof t?(s=i,i=n,n=t,t=null):s=arguments[3],null==n?n=void 0:U(n)?null==i?i=void 0:U(i)||(s=i,i=void 0):(s=n,n=i=void 0),null==t?(e=!0,r=!1):(e=F.call(t,"c"),r=F.call(t,"e")),o={get:n,set:i,configurable:e,enumerable:r},s?P(L(s),o):o}})),H=function(t){if(!function(t){return!!t&&("symbol"==typeof t||!!t.constructor&&"Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag])}(t))throw new TypeError(t+" is not a symbol");return t},B=Object.create,V=Object.defineProperties,G=Object.defineProperty,Y=Object.prototype,K=B(null);if("function"==typeof Symbol){S=Symbol;try{String(S()),I=!0}catch(t){}}var W=function(){var t=B(null);return function(n){for(var i,e,r=0;t[n+(r||"")];)++r;return t[n+=r||""]=!0,G(Y,i="@@"+n,$.gs(null,(function(t){e||(e=!0,G(this,i,$(t)),e=!1)}))),i}}();R=function(t){if(this instanceof R)throw new TypeError("TypeError: Symbol is not a constructor");return _(t)};var q=_=function t(n){var i;if(this instanceof t)throw new TypeError("TypeError: Symbol is not a constructor");return I?S(n):(i=B(R.prototype),n=void 0===n?"":String(n),V(i,{m:$("",n),D:$("",W(n))}))};V(_,{for:$((function(t){return K[t]?K[t]:K[t]=_(String(t))})),keyFor:$((function(t){var n;for(n in H(t),K)if(K[n]===t)return n})),hasInstance:$("",S&&S.hasInstance||_("hasInstance")),isConcatSpreadable:$("",S&&S.isConcatSpreadable||_("isConcatSpreadable")),iterator:$("",S&&S.iterator||_("iterator")),match:$("",S&&S.match||_("match")),replace:$("",S&&S.replace||_("replace")),search:$("",S&&S.search||_("search")),species:$("",S&&S.species||_("species")),split:$("",S&&S.split||_("split")),toPrimitive:$("",S&&S.toPrimitive||_("toPrimitive")),toStringTag:$("",S&&S.toStringTag||_("toStringTag")),unscopables:$("",S&&S.unscopables||_("unscopables"))}),V(R.prototype,{constructor:$(_),toString:$("",(function(){return this.D}))}),V(_.prototype,{toString:$((function(){return"Symbol ("+H(this).m+")"})),valueOf:$((function(){return H(this)}))}),G(_.prototype,_.toPrimitive,$("",(function(){var t=H(this);return"symbol"==typeof t?t:t.toString()}))),G(_.prototype,_.toStringTag,$("c","Symbol")),G(R.prototype,_.toStringTag,$("c",_.prototype[_.toStringTag])),G(R.prototype,_.toPrimitive,$("c",_.prototype[_.toPrimitive]));var z=function(){var t;if("function"!=typeof Symbol)return!1;t=Symbol("test symbol");try{String(t)}catch(t){return!1}return!!O[typeof Symbol.iterator]&&!!O[typeof Symbol.toPrimitive]&&!!O[typeof Symbol.toStringTag]}()?Symbol:q;if(function(){for(var t=["webkit","moz"],n=0;n>>0,e=arguments[1],r=0;r>>0,e=arguments[1],r=0;r>>0;if(0===e)return!1;var r=0|n,s=Math.max(r>=0?r:e-Math.abs(r),0);function o(t,n){return t===n||"number"==typeof t&&"number"==typeof n&&isNaN(t)&&isNaN(n)}for(;sthis.length)&&-1!==this.indexOf(t,n)}),Object.values||(Object.values=t=>Object.keys(t).map((n=>t[n]))),String.prototype.startsWith||(String.prototype.startsWith=function(t,n){return this.slice(n||0,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,n){return(void 0===n||n>this.length)&&(n=this.length),this.substring(n-t.length,n)===t}),Number.isNaN=Number.isNaN||function(t){return"number"==typeof t&&t!=t},void 0===Number.parseFloat&&(Number.parseFloat=window.parseFloat),void 0===Number.parseInt&&(Number.parseInt=window.parseInt),void 0===Number.isFinite&&(Number.isFinite=function(t){return"number"==typeof t&&isFinite(t)}),Array.prototype.entries||(Array.prototype.entries=function(){var t,n=this,i=0;function e(){}return e.prototype.next=function(){return i>n.length-1&&(t=!0),t?{value:void 0,done:!0}:{value:[i,n[i++]],done:!1}},e.prototype[z.iterator]=function(){return this},new e}),Array.prototype[z.iterator]||(Array.prototype[z.iterator]=function(){var t,n=this,i=0;function e(){}return e.prototype.next=function(){return i>n.length-1&&(t=!0),t?{value:void 0,done:!0}:{value:n[i++],done:!1}},e.prototype[z.iterator]=function(){return this},new e}),Object.entries||(Object.entries=function(t){for(var n=Object.keys(t),i=n.length,e=new Array(i);i--;)e[i]=[n[i],t[n[i]]];return e}),Object.is||Object.defineProperty(Object,"is",{value:function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}}),"classList"in SVGElement.prototype||Object.defineProperty(SVGElement.prototype,"classList",{get:function(){var t=this;return{contains:function(n){return-1!==t.className.baseVal.split(" ").indexOf(n)},add:function(n){var i=(t.getAttribute("class")+" "+n).trim();return t.setAttribute("class",i)},remove:function(n){var i=t.getAttribute("class")||"",e=new RegExp("(?:^|\\s)"+n+"(?!\\S)","g");i=i.replace(e,"").trim(),t.setAttribute("class",i)},toggle:function(t){this.contains(t)?this.remove(t):this.add(t)}}}});var Z=Array.prototype.splice;function tt(t){var n=-1,i=null==t?0:t.length;for(this.clear();++n-1},tt.prototype.set=function(t,n){var i=this.X,e=J(i,t);return e<0?(++this.size,i.push([t,n])):i[e][1]=n,this};var nt="object"==typeof global&&global&&global.Object===Object&&global,it="object"==typeof self&&self&&self.Object===Object&&self,et=nt||it||Function("return this")(),rt=et.Symbol,st=Object.prototype,ot=st.hasOwnProperty,ut=st.toString,ct=rt?rt.toStringTag:void 0,ht=Object.prototype.toString,at=rt?rt.toStringTag:void 0;function ft(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":at&&at in Object(t)?function(t){var n=ot.call(t,ct),i=t[ct];try{t[ct]=void 0;var e=!0}catch(t){}var r=ut.call(t);return e&&(n?t[ct]=i:delete t[ct]),r}(t):function(t){return ht.call(t)}(t)}function lt(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function dt(t){if(!lt(t))return!1;var n=ft(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}var vt=et["O"],pt=function(){var t=/[^.]+$/.exec(vt&&vt.keys&&vt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Et=Function.prototype.toString;function yt(t){if(null!=t){try{return Et.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var mt=/^\[object .+?Constructor\]$/,Tt=Function.prototype,wt=Object.prototype,bt=Tt.toString,gt=wt.hasOwnProperty,At=RegExp("^"+bt.call(gt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function St(t,n){var i=function(t,n){return null==t?void 0:t[n]}(t,n);return function(t){return!(!lt(t)||function(t){return!!pt&&pt in t}(t))&&(dt(t)?At:mt).test(yt(t))}(i)?i:void 0}var _t=St(et,"Map"),Rt=St(Object,"create"),It=Object.prototype.hasOwnProperty,Ot=Object.prototype.hasOwnProperty;function Nt(t){var n=-1,i=null==t?0:t.length;for(this.clear();++n-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}var Jt={};function Zt(t){return function(n){return t(n)}}Jt["[object Float32Array]"]=Jt["[object Float64Array]"]=Jt["[object Int8Array]"]=Jt["[object Int16Array]"]=Jt["[object Int32Array]"]=Jt["[object Uint8Array]"]=Jt["[object Uint8ClampedArray]"]=Jt["[object Uint16Array]"]=Jt["[object Uint32Array]"]=!0,Jt["[object Arguments]"]=Jt["[object Array]"]=Jt["[object ArrayBuffer]"]=Jt["[object Boolean]"]=Jt["[object DataView]"]=Jt["[object Date]"]=Jt["[object Error]"]=Jt["[object Function]"]=Jt["[object Map]"]=Jt["[object Number]"]=Jt["[object Object]"]=Jt["[object RegExp]"]=Jt["[object Set]"]=Jt["[object String]"]=Jt["[object WeakMap]"]=!1;var tn="object"==typeof t&&t&&!t.nodeType&&t,nn=tn&&"object"==typeof module&&module&&!module.nodeType&&module,en=nn&&nn.exports===tn&&nt.process,rn=function(){try{return nn&&nn.require&&nn.require("util").types||en&&en.binding&&en.binding("util")}catch(t){}}(),sn=rn&&rn.isTypedArray,on=sn?Zt(sn):function(t){return jt(t)&&Qt(t.length)&&!!Jt[ft(t)]},un=Object.prototype.hasOwnProperty;function cn(t,n){var i=Vt(t),e=!i&&Bt(t),r=!i&&!e&&Wt(t),s=!i&&!e&&!r&&on(t),o=i||e||r||s,u=o?function(t,n){for(var i=-1,e=Array(t);++i>>0)+n+++"__"};return i.prototype.set=function(n,i){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Invalid value used as weak map key");var e=n[this.name];return e&&e[0]===n?e[1]=i:t(n,this.name,{value:[n,i],writable:!0}),this},i.prototype.get=function(t){var n;return(n=t[this.name])&&n[0]===t?n[1]:void 0},i.prototype.delete=function(t){var n=t[this.name];return!(!n||n[0]!==t||(n[0]=n[1]=void 0,0))},i.prototype.has=function(t){var n=t[this.name];return!!n&&n[0]===t},i}(),mi=new yi,Ti=new yi;let wi=function(){function t(){h(this,mi,Object.create(null)),h(this,Ti,void 0),v(this,"eventNames",(()=>Object.keys(c(mi,this)))),v(this,"fire",((t,...n)=>{if(!t)throw new Error("Tried to fire an undefined event.");if(t in c(mi,this)){const i=c(mi,this)[t].slice(0);for(let t=0,e=i.length;t(a(Ti,this,!0),this))),v(this,"on",((t,n,i)=>{const e=[].concat(t);for(let t=0,r=e.length;t{const e=(...i)=>{this.off(t,e),n.apply(this,i)};return e.handler=n,this.on(t,e,i)})),v(this,"off",((t,n)=>{if(!t)return a(mi,this,Object.create(null)),this;const i=[].concat(t);for(let t=0,e=i.length;tthis.on(t,n,!0)))}return t.extend=function(n){return Object.assign(n,new t),n},t}();function bi(t){return(n,...i)=>(i.forEach((i=>{for(const e in i){const r=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(n,e,Object.assign(r,t))}})),n)}const gi=bi({enumerable:!1,configurable:!0,writeable:!1}),Ai=bi({enumerable:!1,configurable:!1,writeable:!1}),Si=bi({enumerable:!0,configurable:!0,writeable:!1}),_i=t=>new r((n=>setTimeout(n,t)));let Ri="";const Ii={defer:!0,async:!0};function Oi(t,n={}){n=Object.assign({},Ii,n);let i=window.vpimport__=window.vpimport__||{cache:{}};if(i.cache[t])return i.cache[t]._promise;const e=new r((function(e,r){const s=document.getElementsByTagName("head")[0],o=document.createElement("script");o.src=Ri+t,o.defer=n.defer,o.async=n.async,o.onreadystatechange=o.onload=()=>{const n=Object.keys(i).filter((t=>"cache"!==t))[0];i.cache[t]._module=i[n],delete i[n],e(i.cache[t]._module),s.removeChild(o)},o.onerror=function(n){r(n),delete i.cache[t],s.removeChild(o)},s.appendChild(o)}));return i.cache[t]={_promise:e},e}const Ni=(t,n)=>{const i=(i,...e)=>{[`%c${t}`,n].concat(e)},e=t=>(...n)=>{i.apply(void 0,[t].concat(n))},r=e("log"),s=(...t)=>{r.apply(void 0,t)};return Object.assign(s,{log:r,warn:e("warn"),error:e("error")}),s};function ki(t,...n){return n.reduce(((t,n)=>(Object.keys(n||{}).forEach((i=>{const e=t[i],r=n[i];e&&void 0===r||(Array.isArray(r)?t[i]=(e||[]).concat(r):(t=>t&&"object"==typeof t)(r)?t[i]=ki({},e,r):t[i]=r)})),t)),t)}const Mi=(t=!1)=>t?window.MediaSource:Di,Di=void 0!==window.ManagedMediaSource?window.ManagedMediaSource:window.MediaSource,Pi=navigator.userAgent.toLowerCase(),Ci=["googlebot","google-inspectiontool"],Xi=["bingbot","bingpreview","yandex","slurp","facebookexternalhit","msnbot","feedly","parse.ly"];function Li(t){t=t.toLowerCase();const n=new RegExp(t).test(Pi);return"safari"===t?n&&new RegExp("version").test(Pi):n}function Ui(t){const n=document.createElement("div"),i=t.charAt(0).toUpperCase()+t.slice(1),e=(t+" "+["Webkit","Moz","O","ms"].join(i+" ")+i).split(" ");for(let t in e){const i=e[t];if(void 0!==n.style[i])return i}return t}const ji=!!Li("android")&&(parseFloat(Pi.replace(/^.* android (\d+)\.(\d+).*$/,"$1.$2"))||!0),xi=window.devicePixelRatio||1,Fi=!(!Li("windows phone")&&!Li("iemobile"))&&(parseFloat(Pi.replace(/^.* windows phone (os )?(\d+)\.(\d+).*$/,"$2.$3"))||!0),$i=!!Li("msie")&&parseFloat(Pi.replace(/^.*msie (\d+).*$/,"$1")),Hi=!!Li("trident")&&parseFloat(Pi.replace(/^.*trident\/(\d+)\.(\d+).*$/,"$1.$2"))+4,Bi=Li("ipad;")||Li("iphone;")||Li("ipod touch;")?parseFloat(Pi.replace(/^.* os (\d+)_(\d+).*$/,"$1.$2")):navigator.userAgent.includes("Mac")&&"ontouchend"in document,Vi=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Version)/i.test(navigator.userAgent),Gi="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,Yi=Li("opera")||Li("opr"),Ki=/^Mozilla\/5\.0 \(.* Mac OS X.*\(KHTML, like Gecko\)(?: Mobile\/[\S]*|)$/i.test(Pi),Wi=(Li("safari")||Vi)&&Li("apple")&&!Li("chrome")&&!Li("android");function qi(t){if(!Wi)return!1;const n=t.split("."),i=function(){if(!Li("safari"))return[];const t=Pi.split(" ").find((function(t){return/version\//.test(t)}));return t?t.replace("version/","").split(".").map((function(t){return parseInt(t,10)})):[]}();for(let t=0;t<3;t++){const e=parseInt(n[t],10)||0,r=i[t]||0;if(er)return!1}return!0}const zi={autoplayPolicy:qi("11"),hevc:qi("11"),dolbyVision:qi("14.1"),spatial:qi("11.0.2"),fullscreenRequiresDataLoaded:qi("17.2")},Qi={airPlay:"WebKitPlaybackTargetAvailabilityEvent"in window,android:ji,appleMail:Ki,hasAutoplayPolicy:ji||Bi||zi.autoplayPolicy||function(){if(!Li("chrome"))return[];const t=Pi.split(" ").find((function(t){return Bi?/CriOS\//.test(t):/chrome\//.test(t)}));return t?t.replace("chrome/","").split(".").map((function(t){return parseInt(t,10)})):[]}()[0]>=66,iOS:Bi,iPadOS:Gi,mobileAndroid:ji&&Li("mobile"),browser:{bb10:Li("bb10"),chrome:Li("chrome"),firefox:Li("firefox"),ie:$i||Hi,edge:Li("edge"),opera:Yi,safari:Wi,chromium:"chrome"in window&&!Li("crios"),webKit:Wi||Li("crios")},mse:Di,devicePixelRatio:xi,iPhone:Li("iphone;")||Li("ipod touch;")||Li("ipod;"),iPad:Li("ipad;"),iPadNonRetina:Li("ipad;")&&xi<2,mac:Li("mac os"),navigatorConnection:window.navigator.connection,pictureInPictureSupportType:function(){if("pictureInPictureEnabled"in document)return"pip-api";const t=document.createElement("video");return!("function"!=typeof t.webkitSetPresentationMode||!t.webkitSupportsPresentationMode("picture-in-picture"))&&"webkit-presentation-mode"}(),pointerEvents:window.navigator.pointerEnabled||window.navigator.msPointerEnabled||!1,passiveEvents:function(){let t=!1;try{const n=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassive",null,n),window.removeEventListener("testPassive",null,n)}catch(t){}return t}(),svg:!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,touch:"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch||Li("windows phone")||window.navigator.maxTouchPoints>1||window.navigator.msMaxTouchPoints||!1,transformProperty:Ui("transform"),transitionProperty:Ui("transition"),webp:function(){const t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))&&0===t.toDataURL("image/webp").indexOf("data:image/webp")}(),windowsPhone:Fi,mediaCapabilities:"mediaCapabilities"in navigator,isGoogleBot:(()=>{const t=Pi.toLowerCase();return Ci.some((n=>t.includes(n)))})(),isCrawler:(()=>{const t=Pi.toLowerCase();return Xi.some((n=>t.includes(n)))})(),storageAccessAPI:"requestStorageAccess"in document&&"hasStorageAccess"in document,clipboardAPI:"clipboard"in navigator&&"write"in navigator.clipboard,videoContentPreload:!Li("iphone"),intersectionObserver:"IntersectionObserver"in window},Ji=/mac os x 10_13/.test(Pi),Zi=Qi.iOS&&Qi.iOS>=11,te="undefined"!=typeof matchMedia&&(matchMedia("(color-gamut: p3)").matches&&screen.pixelDepth>24||matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches);function ne(){let t,n,i=new r(((i,e)=>{t=i,n=e}));return Object.assign(i,{resolve:t,reject:n}),i}function ie(t,n){if(!n||!n.length)return 0;if(1===n.length&&n.end(0)-n.start(0)<1e-6)return 0;let i=0;for(let e=n.length-1;e>=0&&n.end(e)>t;--e)i+=n.end(e)-Math.max(n.start(e),t);return i}function ee(t,n){let i=t;for(let e=0;e=t){i=n.end(e);break}return i-t}function re(){return void 0!==window.performance&&"function"==typeof window.performance.now?window.performance.now():Date.now()}function se(t){return re()-t}function oe(t){if("string"!=typeof t)return{};try{const n=new URLSearchParams(t),i={};return n.forEach(((t,n)=>{i[n]=t})),i}catch(t){return{}}}Qi.hevc=function(t="hvc1"){return void 0!==Di?Di.isTypeSupported(`video/mp4; codecs="${t}"`):zi.hevc&&(Ji||Zi)}("hvc1.2.4.H150.90"),Qi.hdr=te,Qi.dolbyVision=function(){const t='video/mp4; codecs="dvh1"';let n=void 0!==Di&&Di.isTypeSupported(t);if(!n){const i=document.createElement("video");"canPlayType"in i&&(n="probably"===i.canPlayType(t))}return!((Gi||Qi.iOS)&&!zi.dolbyVision)&&n}(),Qi.vp9hdr=(window.matchMedia("(color-gamut: p3)").matches||window.matchMedia("(color-gamut: rec2020)").matches)&&screen.colorDepth>=48&&(Di.isTypeSupported('video/webm; codecs="vp09.02.10.10.01.09.16.09.00"')||Di.isTypeSupported('video/webm; codecs="vp09.02.10.10.01.09.16.09.01"')||Di.isTypeSupported('video/webm; codecs="vp09.02.10.10.01.09.18.09.00"')||Di.isTypeSupported('video/webm; codecs="vp09.02.10.10.01.09.18.09.01"')),Qi.av1=void 0!==Di&&Di.isTypeSupported('video/mp4; codecs="av01.0.31M.08.0.110.01.01.01.0"'),Qi.webvr=!(!window.navigator||!("getVRDisplays"in window.navigator)),Qi.webxr=!!(window.navigator&&"xr"in window.navigator&&"supportsSession"in window.navigator.xr),Qi.spatialPlayback=!!Qi.mse,Qi.stereoscopic=Qi.spatialPlayback&&Qi.mobileAndroid,Qi.fullscreenRequiresDataLoaded=Qi.iOS>=17||Qi.iPadOS&&zi.fullscreenRequiresDataLoaded;const ue=(t,n,i=!1)=>{try{const e=new URL(t);return Object.entries(n).forEach((([t,n])=>{i&&void 0===n||e.searchParams.set(t,(null==n?void 0:n.toString())??"")})),e.toString()}catch(n){return t}};function ce(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(t=>(t^16*Math.random()>>t/4).toString(16)))}function he(t,n,i){switch(i.length){case 0:return t.call(n);case 1:return t.call(n,i[0]);case 2:return t.call(n,i[0],i[1]);case 3:return t.call(n,i[0],i[1],i[2])}return t.apply(n,i)}function ae(t){return t}var fe=Math.max;function le(t){return function(){return t}}var de=Pt?function(t,n){return Pt(t,"toString",{configurable:!0,enumerable:!1,value:le(n),writable:!0})}:ae,ve=Date.now,pe=function(t){var n=0,i=0;return function(){var e=ve(),r=16-(e-i);if(i=e,r>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}(de);function Ee(t,n){return pe(function(t,n,i){return n=fe(void 0===n?t.length-1:n,0),function(){for(var e=arguments,r=-1,s=fe(e.length-n,0),o=Array(s);++r1?i[r-1]:void 0,o=r>2?i[2]:void 0;for(s=t.length>3&&"function"==typeof s?(r--,s):void 0,o&&function(t,n,i){if(!lt(i))return!1;var e=typeof n;return!!("number"==e?pn(i)&&zt(n,i.length):"string"==e&&n in i)&&Q(i[n],t)}(i[0],i[1],o)&&(s=r<3?void 0:s,r=1),n=Object(n);++e-1!==n.indexOf(t.mime))).sort(((t,i)=>t.mime===i.mime?t.priority-i.priority:n.indexOf(t.mime)-n.indexOf(i.mime)));if(!i.length)throw new Error(`No files available for ${this.constructor.displayName} external display.`);return i[0]},d(n,[{key:"active",get:function(){return this.st}},{key:"available",get:function(){return this.it}},{key:"element",get:function(){return document.createElement("div")}}],[{key:"displayName",get:function(){return"ExternalDisplay"}},{key:"supported",get:function(){return!1}},{key:"supportedVideoTypes",get:function(){return[]}}])}(wi);const Me={ABORT:"abort",CAN_PLAY:"canplay",CAN_PLAY_THROUGH:"canplaythrough",DURATION_CHANGE:"durationchange",EMPTIED:"emptied",ENDED:"ended",ENTER_PICTURE_IN_PICTURE:"enterpictureinpicture",LEAVE_PICTURE_IN_PICTURE:"leavepictureinpicture",ERROR:"error",LOADED_DATA:"loadeddata",LOADED_METADATA:"loadedmetadata",LOAD_START:"loadstart",PAUSE:"pause",PLAY:"play",PLAYING:"playing",PROGRESS:"progress",RATE_CHANGE:"ratechange",RESIZE:"resize",SEEKED:"seeked",SEEKING:"seeking",STALLED:"stalled",SUSPEND:"suspend",TIME_UPDATE:"timeupdate",VOLUME_CHANGE:"volumechange",WAITING:"waiting",WEBKIT_BEGIN_FULLSCREEN:"webkitbeginfullscreen",WEBKIT_END_FULLSCREEN:"webkitendfullscreen",WEBKIT_PRESENTATION_MODE_CHANGED:"webkitpresentationmodechanged"},De={ADD_TRACK:"addtrack",REMOVE_TRACK:"removetrack",CHANGE:"change"},Pe={AVAILABLE:"externaldisplayavailable",UNAVAILABLE:"externaldisplayunavailable",ACTIVATED:"externaldisplayactivated",DEACTIVATED:"externaldisplaydeactivated"},Ce={AIRPLAY_AVAILABLE:"available",AIRPLAY_UNAVAILABLE:"unavailable",AIRPLAY_ACTIVATED:"activated",AIRPLAY_DEACTIVATED:"deactivated"},Xe={SCANNER_CHANGE:"scannerchange",SCANNER_ERROR:"scannererror",FILE_ERROR:"fileerror",FILE_SRC_UPDATE:"filesrcupdate",DOWNLOAD_START:"downloadstart",DOWNLOAD_END:"downloadend",DOWNLOAD_ERROR:"downloaderror",DOWNLOAD_TIMEOUT:"downloadtimeout",DRM_AUTH_FAILURE:"drmauthfailure",DRM_AUTH_SUCCESS:"drmauthsuccess",DRM_FAILURE:"drmfailure",DRM_KEY_SWITCH:"drmkeyswitch",DRM_OUTPUT_RESTRICTED:"drmoutputrestricted",EME_UNSUPPORTED:"emeunsupported",CURRENT_FILE_CHANGE:"currentfilechange",MEDIA_URL_EXPIRED:"mediaurlexpired",MEDIA_URL_BAD_REQUEST:"mediaurlbadrequest",STREAM_CHANGE:"streamchange",STREAM_CHANGE_START:"streamchangestart",STREAM_UPDATED:"streamupdated",STREAM_BUFFER_START:"streambufferstart",STREAM_BUFFER_END:"streambufferend",AVAILABLE_STREAMS_CHANGED:"availablestreamschanged",MEDIA_CAPABILITY_STREAMS_UNSUPPORTED:"mediacapabilitystreamsunsupported",DROPPED_FRAMES:"droppedframes",BANDWIDTH:"bandwidth",STREAM_TARGET_CHANGE:"streamtargetchange",CUE_POINT:"cuepoint",BUFFER_OCCUPANCY:"bufferoccupancy",MANIFEST_TIMEOUT:"manifesttimeout",MANIFEST_LOADED:"manifestloaded",STREAMS_LOADED:"streamsloaded",TEXT_SRC_UPDATE:"texttracksrcupdate",TEXT_TRACKS_AVAILABLE:"texttracksavailable",AV_DURATION_MISMATCH:"avdurationmismatch",BUFFER_STARTED:"bufferstarted",BUFFER_ENDED:"bufferended",QUOTA_EXCEEDED_ERROR:"quotaexceedederror",CHAPTER_CUES_UPDATED:"chaptercuesupdated",APPEND_BUFFER_END:"appendbufferend",DROPPED_FRAME_PERCENT_EXCEEDED:"droppedframepercentexceeded",LOAD_SEGMENT_FAILED:"loadsegmentfailed",AUDIO_TRACK_CHANGED:"audiotrackchanged",SEGMENT_CUES_LOADED:"segmentcuesloaded"},Le={STREAM_ONLINE:"livestreamonline",STREAM_OFFLINE:"livestreamoffline",BUFFER_GAP_JUMP:"livebuffergapjump",BUFFER_GAP_JUMP_PREVENT:"livebuffergapjumpprevent",STALL_JUMP:"livestalljump",LATENCY_UPDATED:"latencyupdated"},Ue={CAMERA_UPDATE:"cameraupdate",CAMERA_CHANGE:"camerachange",MOTION_START:"motionstart",MOTION_END:"motionend",SPATIAL_UNSUPPORTED:"spatialunsupported",WEBVR_ENTER:"entervr",WEBVR_EXIT:"exitvr",WEBVR_HARDWARE_AVAILABLE:"webvrhardwareavailable",AMBISONIC_UNSUPPORTED:"ambisonicunsupported"},je={MEDIASESSION_PLAY:"mediasessionplay",MEDIASESSION_PAUSE:"mediasessionpause",MEDIASESSION_SEEK_FORWARD:"mediasessionseekforward",MEDIASESSION_SEEK_TO:"mediasessionseekto",MEDIASESSION_SEEK_BACKWARD:"mediasessionseekbackward"},xe=Object.assign({},Me,De,Pe,Ce,Xe,Ue,Le,je);let Fe=window.Array.from;const $e=[1];"function"==typeof Fe&&Fe($e)===$e&&(Fe=!1);const He=Fe||function(t){return[].slice.call(t,0)},Be=window.Map||function(){let t,n,i;const e=()=>{n=[],i=[]},r=i=>-1<(t=n.indexOf(i));return e(),{get size(){return n.length},has:r,clear:e,get:t=>i[n.indexOf(t)],keys:()=>n.slice(),values:()=>i.slice(),entries:()=>n.map(((t,n)=>[t,i[n]])),delete:e=>r(e)&&n.splice(t,1)&&!!i.splice(t,1),forEach(t,e){i.forEach(((i,r)=>t.call(e,i,n[r],this)))},set(e,s){return r(e)?i[t]=s:i[n.push(e)-1]=s,this}}};var Ve=i((function(t,n){ /*! For license information please see hls-parser.min.js.LICENSE.txt */ self,t.exports=function(){return t={851:(t,n,i)=>{var e=i(771),r=e.getOptions,s=e.setOptions,o=i(463),u=i(367),c=i(890);t.exports={parse:o,stringify:u,types:c,getOptions:r,setOptions:s}},463:(t,n,i)=>{function e(t,n){var i;if(void 0===z||null==t[z.iterator]){if(Array.isArray(t)||(i=s(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var e=0,r=function(){};return{s:r,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){i=t[z.iterator]()},n:function(){var t=i.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==i.return||i.return()}finally{if(c)throw o}}}}function r(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if(void 0!==z&&z.iterator in Object(t)){var i=[],e=!0,r=!1,s=void 0;try{for(var o,u=t[z.iterator]();!(e=(o=u.next()).done)&&(i.push(o.value),!n||i.length!==n);e=!0);}catch(t){r=!0,s=t}finally{try{e||null==u.return||u.return()}finally{if(r)throw s}}return i}}(t,n)||s(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,n){if(t){if("string"==typeof t)return o(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?He(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,e=new Array(n);io.targetDuration&&u.INVALIDPLAYLIST("EXTINF duration, when rounded to the nearest integer, MUST be less than or equal to the target duration"),c.duration=r.duration,c.title=r.title;else if("EXT-X-BYTERANGE"===e)o.compatibleVersion<4&&(o.compatibleVersion=4),c.byterange=r;else if("EXT-X-DISCONTINUITY"===e)c.parts.length>0&&u.INVALIDPLAYLIST("EXT-X-DISCONTINUITY must appear before the first EXT-X-PART tag of the Parent Segment."),c.discontinuity=!0;else if("EXT-X-KEY"===e)c.parts.length>0&&u.INVALIDPLAYLIST("EXT-X-KEY must appear before the first EXT-X-PART tag of the Parent Segment."),S(o,s),c.key=new l({method:s.METHOD,uri:s.URI,iv:s.IV,format:s.KEYFORMAT,formatVersion:s.KEYFORMATVERSIONS});else if("EXT-X-MAP"===e)c.parts.length>0&&u.INVALIDPLAYLIST("EXT-X-MAP must appear before the first EXT-X-PART tag of the Parent Segment."),o.compatibleVersion<5&&(o.compatibleVersion=5),o.hasMap=!0,c.map=new d({uri:s.URI,byterange:s.BYTERANGE});else if("EXT-X-PROGRAM-DATE-TIME"===e)c.programDateTime=r;else if("EXT-X-DATERANGE"===e){var f={};Object.keys(s).forEach((function(t){(t.startsWith("SCTE35-")||t.startsWith("X-"))&&(f[t]=s[t])})),c.dateRange=new v({id:s.ID,classId:s.CLASS,start:s["START-DATE"],end:s["END-DATE"],duration:s.DURATION,plannedDuration:s["PLANNED-DURATION"],endOnNext:s["END-ON-NEXT"],attributes:f})}else if("EXT-X-CUE-OUT"===e)c.markers.push(new p({type:"OUT",duration:r}));else if("EXT-X-CUE-IN"===e)c.markers.push(new p({type:"IN"}));else if("EXT-X-CUE-OUT-CONT"===e||"EXT-X-CUE"===e||"EXT-OATCLS-SCTE35"===e||"EXT-X-ASSET"===e||"EXT-X-SCTE35"===e)c.markers.push(new p({type:"RAW",tagName:e,value:r}));else if("EXT-X-PRELOAD-HINT"!==e||s.TYPE)if("EXT-X-PRELOAD-HINT"===e&&"PART"===s.TYPE&&a)u.INVALIDPLAYLIST("Servers should not add more than one EXT-X-PRELOAD-HINT tag with the same TYPE attribute to a Playlist.");else if("EXT-X-PART"!==e&&"EXT-X-PRELOAD-HINT"!==e||s.URI){if("EXT-X-PRELOAD-HINT"===e&&"MAP"===s.TYPE)h&&u.INVALIDPLAYLIST("Servers should not add more than one EXT-X-PRELOAD-HINT tag with the same TYPE attribute to a Playlist."),h=!0,o.hasMap=!0,c.map=new d({hint:!0,uri:s.URI,byterange:{length:s["BYTERANGE-LENGTH"],offset:s["BYTERANGE-START"]||0}});else if("EXT-X-PART"===e||"EXT-X-PRELOAD-HINT"===e&&"PART"===s.TYPE){"EXT-X-PART"!==e||s.DURATION||u.INVALIDPLAYLIST("EXT-X-PART: DURATION attribute is mandatory"),"EXT-X-PRELOAD-HINT"===e&&(a=!0);var E=new T({hint:"EXT-X-PRELOAD-HINT"===e,uri:s.URI,byterange:"EXT-X-PART"===e?s.BYTERANGE:{length:s["BYTERANGE-LENGTH"],offset:s["BYTERANGE-START"]||0},duration:s.DURATION,independent:s.INDEPENDENT,gap:s.GAP});c.parts.push(E)}}else u.INVALIDPLAYLIST("EXT-X-PART / EXT-X-PRELOAD-HINT: URI attribute is mandatory");else u.INVALIDPLAYLIST("EXT-X-PRELOAD-HINT: TYPE attribute is mandatory")},E=i;E<=e;E++)f(E);return c}function M(t,n,i,e,r){var s=n.discontinuity,o=n.key,c=n.map,h=n.byterange,a=n.uri;if(s&&(n.discontinuitySequence=i+1),o||(n.key=e),c||(n.map=r),h&&-1===h.offset){var f=t.segments;if(f.length>0){var l=f[f.length-1];l.byterange&&l.uri===a?h.offset=l.byterange.offset+l.byterange.length:u.INVALIDPLAYLIST("If offset of EXT-X-BYTERANGE is not present, a previous Media Segment MUST be a sub-range of the same media resource")}else u.INVALIDPLAYLIST("If offset of EXT-X-BYTERANGE is not present, a previous Media Segment MUST appear in the Playlist file")}return t.segments.push(n),[n.discontinuitySequence,n.key,n.map]}function D(t,n){var i=r(function(t){var n=t.indexOf(":");return-1===n?[t.slice(1).trim(),null]:[t.slice(1,n).trim(),t.slice(n+1).trim()]}(t),2),e=i[0],s=i[1],o=function(t){switch(t){case"EXTM3U":case"EXT-X-VERSION":return"Basic";case"EXTINF":case"EXT-X-BYTERANGE":case"EXT-X-DISCONTINUITY":case"EXT-X-KEY":case"EXT-X-MAP":case"EXT-X-PROGRAM-DATE-TIME":case"EXT-X-DATERANGE":case"EXT-X-CUE-OUT":case"EXT-X-CUE-IN":case"EXT-X-CUE-OUT-CONT":case"EXT-X-CUE":case"EXT-OATCLS-SCTE35":case"EXT-X-ASSET":case"EXT-X-SCTE35":case"EXT-X-PART":case"EXT-X-PRELOAD-HINT":return"Segment";case"EXT-X-TARGETDURATION":case"EXT-X-MEDIA-SEQUENCE":case"EXT-X-DISCONTINUITY-SEQUENCE":case"EXT-X-ENDLIST":case"EXT-X-PLAYLIST-TYPE":case"EXT-X-I-FRAMES-ONLY":case"EXT-X-SERVER-CONTROL":case"EXT-X-PART-INF":case"EXT-X-RENDITION-REPORT":case"EXT-X-SKIP":return"MediaPlaylist";case"EXT-X-MEDIA":case"EXT-X-STREAM-INF":case"EXT-X-I-FRAME-STREAM-INF":case"EXT-X-SESSION-DATA":case"EXT-X-SESSION-KEY":return"MasterPlaylist";case"EXT-X-INDEPENDENT-SEGMENTS":case"EXT-X-START":return"MediaorMasterPlaylist";default:return"Unknown"}}(e);if(function(t,n){if("Segment"===t||"MediaPlaylist"===t)return void 0===n.isMasterPlaylist?void(n.isMasterPlaylist=!1):void(n.isMasterPlaylist&&R());if("MasterPlaylist"===t){if(void 0===n.isMasterPlaylist)return void(n.isMasterPlaylist=!0);!1===n.isMasterPlaylist&&R()}}(o,n),"Unknown"===o)return null;"MediaPlaylist"===o&&"EXT-X-RENDITION-REPORT"!==e&&(n.hash[e]&&u.INVALIDPLAYLIST("There MUST NOT be more than one Media Playlist tag of each type in any Media Playlist"),n.hash[e]=!0);var c=r(function(t,n){switch(t){case"EXTM3U":case"EXT-X-DISCONTINUITY":case"EXT-X-ENDLIST":case"EXT-X-I-FRAMES-ONLY":case"EXT-X-INDEPENDENT-SEGMENTS":case"EXT-X-CUE-IN":return[null,null];case"EXT-X-VERSION":case"EXT-X-TARGETDURATION":case"EXT-X-MEDIA-SEQUENCE":case"EXT-X-DISCONTINUITY-SEQUENCE":case"EXT-X-CUE-OUT":return[u.toNumber(n),null];case"EXT-X-KEY":case"EXT-X-MAP":case"EXT-X-DATERANGE":case"EXT-X-MEDIA":case"EXT-X-STREAM-INF":case"EXT-X-I-FRAME-STREAM-INF":case"EXT-X-SESSION-DATA":case"EXT-X-SESSION-KEY":case"EXT-X-START":case"EXT-X-SERVER-CONTROL":case"EXT-X-PART-INF":case"EXT-X-PART":case"EXT-X-PRELOAD-HINT":case"EXT-X-RENDITION-REPORT":case"EXT-X-SKIP":return[null,_(n)];case"EXTINF":return[g(n),null];case"EXT-X-BYTERANGE":return[A(n),null];case"EXT-X-PROGRAM-DATE-TIME":return[new Date(n),null];default:return[n,null]}}(e,s),2);return{name:e,category:o,value:c[0],attributes:c[1]}}function P(t,n){var i;return n.isMasterPlaylist?i=function(t,n){var i,s=new E,o=e(t.entries());try{for(o.s();!(i=o.n()).done;){var c=r(i.value,2),h=c[0],a=c[1],d=a.name,v=a.value,p=a.attributes;if("EXT-X-VERSION"===d)s.version=v;else if("EXT-X-STREAM-INF"===d){var y=t[h+1];("string"!=typeof y||y.startsWith("#EXT"))&&u.INVALIDPLAYLIST("EXT-X-STREAM-INF must be followed by a URI line");var m=O(t,p,y,!1,n);m&&s.variants.push(m)}else if("EXT-X-I-FRAME-STREAM-INF"===d){var T=O(t,p,p.URI,!0,n);T&&s.variants.push(T)}else"EXT-X-SESSION-DATA"===d?function(){var t=new f({id:p["DATA-ID"],value:p.VALUE,uri:p.URI,language:p.LANGUAGE});s.sessionDataList.find((function(n){return n.id===t.id&&n.language===t.language}))&&u.INVALIDPLAYLIST("A Playlist MUST NOT contain more than one EXT-X-SESSION-DATA tag with the same DATA-ID attribute and the same LANGUAGE attribute."),s.sessionDataList.push(t)}():"EXT-X-SESSION-KEY"===d?function(){"NONE"===p.METHOD&&u.INVALIDPLAYLIST("EXT-X-SESSION-KEY: The value of the METHOD attribute MUST NOT be NONE");var t=new l({method:p.METHOD,uri:p.URI,iv:p.IV,format:p.KEYFORMAT,formatVersion:p.KEYFORMATVERSIONS});s.sessionKeyList.find((function(n){return N(n,t)}))&&u.INVALIDPLAYLIST("A Master Playlist MUST NOT contain more than one EXT-X-SESSION-KEY tag with the same METHOD, URI, IV, KEYFORMAT, and KEYFORMATVERSIONS attribute values."),S(n,p),s.sessionKeyList.push(t)}():"EXT-X-INDEPENDENT-SEGMENTS"===d?(s.independentSegments&&u.INVALIDPLAYLIST("EXT-X-INDEPENDENT-SEGMENTS tag MUST NOT appear more than once in a Playlist"),s.independentSegments=!0):"EXT-X-START"===d&&(s.start&&u.INVALIDPLAYLIST("EXT-X-START tag MUST NOT appear more than once in a Playlist"),"number"!=typeof p["TIME-OFFSET"]&&u.INVALIDPLAYLIST("EXT-X-START: TIME-OFFSET attribute is REQUIRED"),s.start={offset:p["TIME-OFFSET"],precise:p.PRECISE||!1})}}catch(t){o.e(t)}finally{o.f()}if(n.isClosedCaptionsNone){var w,b=e(s.variants);try{for(b.s();!(w=b.n()).done;)w.value.closedCaptions.length>0&&u.INVALIDPLAYLIST("If there is a variant with CLOSED-CAPTIONS attribute of NONE, all EXT-X-STREAM-INF tags MUST have this attribute with a value of NONE")}catch(t){b.e(t)}finally{b.f()}}return s}(t,n):!(i=function(t,n){var i,s=new y,o=-1,c=0,h=!1,a=0,f=null,l=null,d=!1,v=e(t.entries());try{for(v.s();!(i=v.n()).done;){var p=r(i.value,2),E=p[0],m=p[1],T=m.name,b=m.value,g=m.attributes;if("Segment"!==m.category){if("EXT-X-VERSION"===T)void 0===s.version?s.version=b:u.INVALIDPLAYLIST("A Playlist file MUST NOT contain more than one EXT-X-VERSION tag.");else if("EXT-X-TARGETDURATION"===T)s.targetDuration=n.targetDuration=b;else if("EXT-X-MEDIA-SEQUENCE"===T)s.segments.length>0&&u.INVALIDPLAYLIST("The EXT-X-MEDIA-SEQUENCE tag MUST appear before the first Media Segment in the Playlist."),s.mediaSequenceBase=c=b;else if("EXT-X-DISCONTINUITY-SEQUENCE"===T)s.segments.length>0&&u.INVALIDPLAYLIST("The EXT-X-DISCONTINUITY-SEQUENCE tag MUST appear before the first Media Segment in the Playlist."),h&&u.INVALIDPLAYLIST("The EXT-X-DISCONTINUITY-SEQUENCE tag MUST appear before any EXT-X-DISCONTINUITY tag."),s.discontinuitySequenceBase=a=b;else if("EXT-X-ENDLIST"===T)s.endlist=!0;else if("EXT-X-PLAYLIST-TYPE"===T)s.playlistType=b;else if("EXT-X-I-FRAMES-ONLY"===T)n.compatibleVersion<4&&(n.compatibleVersion=4),s.isIFrame=!0;else if("EXT-X-INDEPENDENT-SEGMENTS"===T)s.independentSegments&&u.INVALIDPLAYLIST("EXT-X-INDEPENDENT-SEGMENTS tag MUST NOT appear more than once in a Playlist"),s.independentSegments=!0;else if("EXT-X-START"===T)s.start&&u.INVALIDPLAYLIST("EXT-X-START tag MUST NOT appear more than once in a Playlist"),"number"!=typeof g["TIME-OFFSET"]&&u.INVALIDPLAYLIST("EXT-X-START: TIME-OFFSET attribute is REQUIRED"),s.start={offset:g["TIME-OFFSET"],precise:g.PRECISE||!1};else if("EXT-X-SERVER-CONTROL"===T)g["CAN-BLOCK-RELOAD"]||u.INVALIDPLAYLIST("EXT-X-SERVER-CONTROL: CAN-BLOCK-RELOAD=YES is mandatory for Low-Latency HLS"),s.lowLatencyCompatibility={canBlockReload:g["CAN-BLOCK-RELOAD"],canSkipUntil:g["CAN-SKIP-UNTIL"],holdBack:g["HOLD-BACK"],partHoldBack:g["PART-HOLD-BACK"]};else if("EXT-X-PART-INF"===T)g["PART-TARGET"]||u.INVALIDPLAYLIST("EXT-X-PART-INF: PART-TARGET attribute is mandatory"),s.partTargetDuration=g["PART-TARGET"];else if("EXT-X-RENDITION-REPORT"===T)g.URI||u.INVALIDPLAYLIST("EXT-X-RENDITION-REPORT: URI attribute is mandatory"),0===g.URI.search(/^[a-z]+:/)&&u.INVALIDPLAYLIST("EXT-X-RENDITION-REPORT: URI must be relative to the playlist uri"),s.renditionReports.push(new w({uri:g.URI,lastMSN:g["LAST-MSN"],lastPart:g["LAST-PART"]}));else if("EXT-X-SKIP"===T)g["SKIPPED-SEGMENTS"]||u.INVALIDPLAYLIST("EXT-X-SKIP: SKIPPED-SEGMENTS attribute is mandatory"),n.compatibleVersion<9&&(n.compatibleVersion=9),s.skip=g["SKIPPED-SEGMENTS"],c+=s.skip;else if("string"==typeof m){-1===o&&u.INVALIDPLAYLIST("A URI line is not preceded by any segment tags"),s.targetDuration||u.INVALIDPLAYLIST("The EXT-X-TARGETDURATION tag is REQUIRED");var A=k(t,m,o,E-1,c++,a,n);if(A){var S=r(M(s,A,a,f,l),3);a=S[0],f=S[1],l=S[2],!d&&A.parts.length>0&&(d=!0)}o=-1}}else-1===o&&(o=E),"EXT-X-DISCONTINUITY"===T&&(h=!0)}}catch(t){v.e(t)}finally{v.f()}if(-1!==o){var _=k(t,"",o,t.length-1,c++,a,n);if(_){var R=_.parts;R.length>0&&!s.endlist&&!R[R.length-1].hint&&u.INVALIDPLAYLIST("If the Playlist contains EXT-X-PART tags and does not contain an EXT-X-ENDLIST tag, the Playlist must contain an EXT-X-PRELOAD-HINT tag with a TYPE=PART attribute"),M(s,_,f,l),!d&&_.parts.length>0&&(d=!0)}}return function(t){for(var n=new Be,i=new Be,r=!1,s=!1,o=t.length-1;o>=0;o--){var c=t[o],h=c.programDateTime,a=c.dateRange;if(h&&(s=!0),a&&a.start){r=!0,a.endOnNext&&(a.end||a.duration)&&u.INVALIDPLAYLIST("An EXT-X-DATERANGE tag with an END-ON-NEXT=YES attribute MUST NOT contain DURATION or END-DATE attributes.");var f=a.start.getTime(),l=a.duration||0;a.end&&a.duration&&f+1e3*l!==a.end.getTime()&&u.INVALIDPLAYLIST("END-DATE MUST be equal to the value of the START-DATE attribute plus the value of the DURATION"),a.endOnNext&&(a.end=n.get(a.classId)),n.set(a.classId,a.start);var d=a.end?a.end.getTime():a.start.getTime()+1e3*(a.duration||0),v=i.get(a.classId);if(v){var p,E=e(v);try{for(E.s();!(p=E.n()).done;){var y=p.value;(y.start<=f&&y.end>f||y.start>=f&&y.start0&&Eo&&u.INVALIDPLAYLIST("PART-TARGET is the maximum duration of any Partial Segment"),b0&&(_.lastPart=R.parts.length-1)}}catch(t){S.e(t)}finally{S.f()}}(s,d),s}(t,n)).isIFrame&&n.hasMap&&n.compatibleVersion<6&&(n.compatibleVersion=6),n.compatibleVersion>1&&(!i.version||i.version{function e(t){return(e="function"==typeof z&&"symbol"==typeof z.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof z&&t.constructor===z&&t!==z.prototype?"symbol":typeof t})(t)}function r(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if(void 0!==z&&z.iterator in Object(t)){var i=[],e=!0,r=!1,s=void 0;try{for(var o,u=t[z.iterator]();!(e=(o=u.next()).done)&&(i.push(o.value),!n||i.length!==n);e=!0);}catch(t){r=!0,s=t}finally{try{e||null==u.return||u.return()}finally{if(r)throw s}}return i}}(t,n)||o(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,n){var i;if(void 0===z||null==t[z.iterator]){if(Array.isArray(t)||(i=o(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var e=0,r=function(){};return{s:r,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,u=!0,c=!1;return{s:function(){i=t[z.iterator]()},n:function(){var t=i.next();return u=t.done,t},e:function(t){c=!0,s=t},f:function(){try{u||null==i.return||i.return()}finally{if(c)throw s}}}}function o(t,n){if(t){if("string"==typeof t)return u(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?He(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(t,n):void 0}}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,e=new Array(n);i0){e.push('AUDIO="'.concat(n.audio[0].groupId,'"'));var r,o=s(n.audio);try{for(o.s();!(r=o.n()).done;){var u=r.value;t.push(A(u))}}catch(t){o.e(t)}finally{o.f()}}if(n.video.length>0){e.push('VIDEO="'.concat(n.video[0].groupId,'"'));var c,h=s(n.video);try{for(h.s();!(c=h.n()).done;){var a=c.value;t.push(A(a))}}catch(t){h.e(t)}finally{h.f()}}if(n.subtitles.length>0){e.push('SUBTITLES="'.concat(n.subtitles[0].groupId,'"'));var f,l=s(n.subtitles);try{for(l.s();!(f=l.n()).done;){var d=f.value;t.push(A(d))}}catch(t){l.e(t)}finally{l.f()}}if(p.getOptions().allowClosedCaptionsNone&&0===n.closedCaptions.length)e.push("CLOSED-CAPTIONS=NONE");else if(n.closedCaptions.length>0){e.push('CLOSED-CAPTIONS="'.concat(n.closedCaptions[0].groupId,'"'));var v,E=s(n.closedCaptions);try{for(E.s();!(v=E.n()).done;){var y=v.value;t.push(A(y))}}catch(t){E.e(t)}finally{E.f()}}t.push("".concat(i,":").concat(e.join(","))),n.isIFrameOnly||t.push("".concat(n.uri))}function A(t){var n=["TYPE=".concat(t.type),'GROUP-ID="'.concat(t.groupId,'"'),'NAME="'.concat(t.name,'"')];return void 0!==t.isDefault&&n.push("DEFAULT=".concat(t.isDefault?"YES":"NO")),void 0!==t.autoselect&&n.push("AUTOSELECT=".concat(t.autoselect?"YES":"NO")),void 0!==t.forced&&n.push("FORCED=".concat(t.forced?"YES":"NO")),t.language&&n.push('LANGUAGE="'.concat(t.language,'"')),t.assocLanguage&&n.push('ASSOC-LANGUAGE="'.concat(t.assocLanguage,'"')),t.instreamId&&n.push('INSTREAM-ID="'.concat(t.instreamId,'"')),t.characteristics&&n.push('CHARACTERISTICS="'.concat(t.characteristics,'"')),t.channels&&n.push('CHANNELS="'.concat(t.channels,'"')),t.uri&&n.push('URI="'.concat(t.uri,'"')),"#EXT-X-MEDIA:".concat(n.join(","))}function S(t,n,i,e){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=!1;if(n.byterange&&t.push("#EXT-X-BYTERANGE:".concat(_(n.byterange))),n.discontinuity&&t.push("#EXT-X-DISCONTINUITY"),n.key){var o=b(n.key);o!==i&&(t.push(o),i=o)}if(n.map){var u=function(t){var n=['URI="'.concat(t.uri,'"')];return t.byterange&&n.push('BYTERANGE="'.concat(_(t.byterange),'"')),"#EXT-X-MAP:".concat(n.join(","))}(n.map);u!==e&&(t.push(u),e=u)}if(n.programDateTime&&t.push("#EXT-X-PROGRAM-DATE-TIME:".concat(p.formatDate(n.programDateTime))),n.dateRange&&t.push(function(t){var n=['ID="'.concat(t.id,'"')];return t.start&&n.push('START-DATE="'.concat(p.formatDate(t.start),'"')),t.end&&n.push('END-DATE="'.concat(t.end,'"')),t.duration&&n.push("DURATION=".concat(t.duration)),t.plannedDuration&&n.push("PLANNED-DURATION=".concat(t.plannedDuration)),t.classId&&n.push('CLASS="'.concat(t.classId,'"')),t.endOnNext&&n.push("END-ON-NEXT=YES"),Object.keys(t.attributes).forEach((function(i){i.startsWith("X-")?"number"==typeof t.attributes[i]?n.push("".concat(i,"=").concat(t.attributes[i])):n.push("".concat(i,'="').concat(t.attributes[i],'"')):i.startsWith("SCTE35-")&&n.push("".concat(i,"=").concat(p.byteSequenceToHex(t.attributes[i])))})),"#EXT-X-DATERANGE:".concat(n.join(","))}(n.dateRange)),n.markers.length>0&&R(t,n.markers),n.parts.length>0&&(s=I(t,n.parts)),s)return[i,e];var c=r<3?Math.round(n.duration):T(n.duration,function(t){var n=t.toString(10),i=n.indexOf(".");return-1===i?0:n.length-i-1}(n.duration));return t.push("#EXTINF:".concat(c,",").concat(unescape(encodeURIComponent(n.title||"")))),Array.prototype.push.call(t,"".concat(n.uri)),[i,e]}function _(t){var n=t.offset,i=t.length;return"".concat(i,"@").concat(n)}function R(t,n){var i,e=s(n);try{for(e.s();!(i=e.n()).done;){var r=i.value;if("OUT"===r.type)t.push("#EXT-X-CUE-OUT:".concat(r.duration));else if("IN"===r.type)t.push("#EXT-X-CUE-IN");else if("RAW"===r.type){var o=r.value?":".concat(r.value):"";t.push("#".concat(r.tagName).concat(o))}}}catch(t){e.e(t)}finally{e.f()}}function I(t,n){var i,e=!1,r=s(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o.hint){var u=[];if(u.push("TYPE=PART"),u.push('URI="'.concat(o.uri,'"')),o.byterange){var c=o.byterange,h=c.offset,a=c.length;u.push("BYTERANGE-START=".concat(h)),a&&u.push("BYTERANGE-LENGTH=".concat(a))}t.push("#EXT-X-PRELOAD-HINT:".concat(u.join(","))),e=!0}else{var f=[];f.push("DURATION=".concat(o.duration)),f.push('URI="'.concat(o.uri,'"')),o.byterange&&f.push("BYTERANGE=".concat(_(o.byterange))),o.independent&&f.push("INDEPENDENT=YES"),o.gap&&f.push("GAP=YES"),t.push("#EXT-X-PART:".concat(f.join(",")))}}}catch(t){r.e(t)}finally{r.f()}return e}t.exports=function(t){p.PARAMCHECK(t),p.ASSERT("Not a playlist","playlist"===t.type);var n=new m(t.uri);return n.push("#EXTM3U"),t.version&&n.push("#EXT-X-VERSION:".concat(t.version)),t.independentSegments&&n.push("#EXT-X-INDEPENDENT-SEGMENTS"),t.start&&n.push("#EXT-X-START:TIME-OFFSET=".concat(T(t.start.offset)).concat(t.start.precise?",PRECISE=YES":"")),t.isMasterPlaylist?function(t,n){var i,e=s(n.sessionDataList);try{for(e.s();!(i=e.n()).done;){var r=i.value;t.push(w(r))}}catch(t){e.e(t)}finally{e.f()}var o,u=s(n.sessionKeyList);try{for(u.s();!(o=u.n()).done;){var c=o.value;t.push(b(c,!0))}}catch(t){u.e(t)}finally{u.f()}var h,a=s(n.variants);try{for(a.s();!(h=a.n()).done;)g(t,h.value)}catch(t){a.e(t)}finally{a.f()}}(n,t):function(t,n){var i="",e="";if(n.targetDuration&&t.push("#EXT-X-TARGETDURATION:".concat(n.targetDuration)),n.lowLatencyCompatibility){var o=n.lowLatencyCompatibility,u=o.canBlockReload,c=o.canSkipUntil,h=o.holdBack,a=o.partHoldBack,f=[];f.push("CAN-BLOCK-RELOAD=".concat(u?"YES":"NO")),void 0!==c&&f.push("CAN-SKIP-UNTIL=".concat(c)),void 0!==h&&f.push("HOLD-BACK=".concat(h)),void 0!==a&&f.push("PART-HOLD-BACK=".concat(a)),t.push("#EXT-X-SERVER-CONTROL:".concat(f.join(",")))}n.partTargetDuration&&t.push("#EXT-X-PART-INF:PART-TARGET=".concat(n.partTargetDuration)),n.mediaSequenceBase&&t.push("#EXT-X-MEDIA-SEQUENCE:".concat(n.mediaSequenceBase)),n.discontinuitySequenceBase&&t.push("#EXT-X-DISCONTINUITY-SEQUENCE:".concat(n.discontinuitySequenceBase)),n.playlistType&&t.push("#EXT-X-PLAYLIST-TYPE:".concat(n.playlistType)),n.isIFrame&&t.push("#EXT-X-I-FRAMES-ONLY"),n.skip>0&&t.push("#EXT-X-SKIP:SKIPPED-SEGMENTS=".concat(n.skip));var l,d=s(n.segments);try{for(d.s();!(l=d.n()).done;){var v=r(S(t,l.value,i,e,n.version),2);i=v[0],e=v[1]}}catch(t){d.e(t)}finally{d.f()}n.endlist&&t.push("#EXT-X-ENDLIST");var p,E=s(n.renditionReports);try{for(E.s();!(p=E.n()).done;){var y=p.value,m=[];m.push('URI="'.concat(y.uri,'"')),m.push("LAST-MSN=".concat(y.lastMSN)),void 0!==y.lastPart&&m.push("LAST-PART=".concat(y.lastPart)),t.push("#EXT-X-RENDITION-REPORT:".concat(m.join(",")))}}catch(t){E.e(t)}finally{E.f()}}(n,t),n.join("\n")}},890:(t,n,i)=>{function e(t){return(e="function"==typeof z&&"symbol"==typeof z.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof z&&t.constructor===z&&t!==z.prototype?"symbol":typeof t})(t)}function r(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&s(t,n)}function s(t,n){return(s=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function o(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,e=c(t);if(n){var r=c(this).constructor;i=Reflect.construct(e,arguments,r)}else i=e.apply(this,arguments);return u(this,i)}}function u(t,n){return!n||"object"!==e(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var a=i(771),f=function t(n){h(this,t),a.PARAMCHECK(n),this.type=n},l=function(t){r(i,t);var n=o(i);function i(t){var e,r=t.isMasterPlaylist,s=t.uri,o=t.version,u=t.independentSegments,c=void 0!==u&&u,f=t.start,l=t.source;return h(this,i),e=n.call(this,"playlist"),a.PARAMCHECK(r),e.isMasterPlaylist=r,e.uri=s,e.version=o,e.independentSegments=c,e.start=f,e.source=l,e}return i}(f),d=function(t){r(i,t);var n=o(i);function i(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,i),e.isMasterPlaylist=!0,t=n.call(this,e);var r=e.variants,s=void 0===r?[]:r,o=e.currentVariant,u=e.sessionDataList,c=void 0===u?[]:u,a=e.sessionKeyList,f=void 0===a?[]:a;return t.variants=s,t.currentVariant=o,t.sessionDataList=c,t.sessionKeyList=f,t}return i}(l),v=function(t){r(i,t);var n=o(i);function i(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,i),e.isMasterPlaylist=!1,t=n.call(this,e);var r=e.targetDuration,s=e.mediaSequenceBase,o=void 0===s?0:s,u=e.discontinuitySequenceBase,c=void 0===u?0:u,a=e.endlist,f=void 0!==a&&a,l=e.playlistType,d=e.isIFrame,v=e.segments,p=void 0===v?[]:v,E=e.lowLatencyCompatibility,y=e.partTargetDuration,m=e.renditionReports,T=void 0===m?[]:m,w=e.skip,b=void 0===w?0:w,g=e.hash;return t.targetDuration=r,t.mediaSequenceBase=o,t.discontinuitySequenceBase=c,t.endlist=f,t.playlistType=l,t.isIFrame=d,t.segments=p,t.lowLatencyCompatibility=E,t.partTargetDuration=y,t.renditionReports=T,t.skip=b,t.hash=g,t}return i}(l),p=function(t){r(i,t);var n=o(i);function i(t){var e,r=t.uri,s=t.mimeType,o=t.data,u=t.duration,c=t.title,a=t.byterange,f=t.discontinuity,l=t.mediaSequenceNumber,d=void 0===l?0:l,v=t.discontinuitySequence,p=void 0===v?0:v,E=t.key,y=t.map,m=t.programDateTime,T=t.dateRange,w=t.markers,b=void 0===w?[]:w,g=t.parts,A=void 0===g?[]:g;return h(this,i),(e=n.call(this,"segment")).uri=r,e.mimeType=s,e.data=o,e.duration=u,e.title=c,e.byterange=a,e.discontinuity=f,e.mediaSequenceNumber=d,e.discontinuitySequence=p,e.key=E,e.map=y,e.programDateTime=m,e.dateRange=T,e.markers=b,e.parts=A,e}return i}(f),E=function(t){r(i,t);var n=o(i);function i(t){var e,r=t.hint,s=void 0!==r&&r,o=t.uri,u=t.duration,c=t.independent,f=t.byterange,l=t.gap;return h(this,i),e=n.call(this,"part"),a.PARAMCHECK(o),e.hint=s,e.uri=o,e.duration=u,e.independent=c,e.duration=u,e.byterange=f,e.gap=l,e}return i}(f);t.exports={Rendition:function t(n){var i=n.type,e=n.uri,r=n.groupId,s=n.language,o=n.assocLanguage,u=n.name,c=n.isDefault,f=n.autoselect,l=n.forced,d=n.instreamId,v=n.characteristics,p=n.channels;h(this,t),a.PARAMCHECK(i,r,u),a.CONDITIONALASSERT(["SUBTITLES"===i,e],["CLOSED-CAPTIONS"===i,d],["CLOSED-CAPTIONS"===i,!e],[l,"SUBTITLES"===i]),this.type=i,this.uri=e,this.groupId=r,this.language=s,this.assocLanguage=o,this.name=u,this.isDefault=c,this.autoselect=f,this.forced=l,this.instreamId=d,this.characteristics=v,this.channels=p},Variant:function t(n){var i=n.uri,e=n.isIFrameOnly,r=void 0!==e&&e,s=n.bandwidth,o=n.averageBandwidth,u=n.codecs,c=n.resolution,f=n.frameRate,l=n.hdcpLevel,d=n.audio,v=void 0===d?[]:d,p=n.video,E=void 0===p?[]:p,y=n.subtitles,m=void 0===y?[]:y,T=n.closedCaptions,w=void 0===T?[]:T,b=n.currentRenditions,g=void 0===b?{audio:0,video:0,subtitles:0,closedCaptions:0}:b;h(this,t),a.PARAMCHECK(i,s),this.uri=i,this.isIFrameOnly=r,this.bandwidth=s,this.averageBandwidth=o,this.codecs=u,this.resolution=c,this.frameRate=f,this.hdcpLevel=l,this.audio=v,this.video=E,this.subtitles=m,this.closedCaptions=w,this.currentRenditions=g},SessionData:function t(n){var i=n.id,e=n.value,r=n.uri,s=n.language;h(this,t),a.PARAMCHECK(i,e||r),a.ASSERT("SessionData cannot have both value and uri, shoud be either.",!(e&&r)),this.id=i,this.value=e,this.uri=r,this.language=s},Key:function t(n){var i=n.method,e=n.uri,r=n.iv,s=n.format,o=n.formatVersion;h(this,t),a.PARAMCHECK(i),a.CONDITIONALPARAMCHECK(["NONE"!==i,e]),a.CONDITIONALASSERT(["NONE"===i,!(e||r||s||o)]),this.method=i,this.uri=e,this.iv=r,this.format=s,this.formatVersion=o},MediaInitializationSection:function t(n){var i=n.hint,e=void 0!==i&&i,r=n.uri,s=n.mimeType,o=n.byterange;h(this,t),a.PARAMCHECK(r),this.hint=e,this.uri=r,this.mimeType=s,this.byterange=o},DateRange:function t(n){var i=n.id,e=n.classId,r=n.start,s=n.end,o=n.duration,u=n.plannedDuration,c=n.endOnNext,f=n.attributes,l=void 0===f?{}:f;h(this,t),a.PARAMCHECK(i),a.CONDITIONALPARAMCHECK([!0===c,e]),a.CONDITIONALASSERT([s,r],[s,r<=s],[o,o>=0],[u,u>=0]),this.id=i,this.classId=e,this.start=r,this.end=s,this.duration=o,this.plannedDuration=u,this.endOnNext=c,this.attributes=l},SpliceInfo:function t(n){var i=n.type,e=n.duration,r=n.tagName,s=n.value;h(this,t),a.PARAMCHECK(i),a.CONDITIONALPARAMCHECK(["OUT"===i,e]),a.CONDITIONALPARAMCHECK(["RAW"===i,r]),this.type=i,this.duration=e,this.tagName=r,this.value=s},Playlist:l,MasterPlaylist:d,MediaPlaylist:v,Segment:p,PartialSegment:E,RenditionReport:function t(n){var i=n.uri,e=n.lastMSN,r=n.lastPart;h(this,t),a.PARAMCHECK(i),this.uri=i,this.lastMSN=e,this.lastPart=r}}},771:t=>{function n(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if(void 0!==z&&z.iterator in Object(t)){var i=[],e=!0,r=!1,s=void 0;try{for(var o,u=t[z.iterator]();!(e=(o=u.next()).done)&&(i.push(o.value),!n||i.length!==n);e=!0);}catch(t){r=!0,s=t}finally{try{e||null==u.return||u.return()}finally{if(r)throw s}}return i}}(t,n)||e(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,n){var i;if(void 0===z||null==t[z.iterator]){if(Array.isArray(t)||(i=e(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0,s=function(){};return{s:s,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){i=t[z.iterator]()},n:function(){var t=i.next();return u=t.done,t},e:function(t){c=!0,o=t},f:function(){try{u||null==i.return||i.return()}finally{if(c)throw o}}}}function e(t,n){if(t){if("string"==typeof t)return r(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?He(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,n):void 0}}function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,e=new Array(n);i1&&void 0!==arguments[1]?arguments[1]:10;if("number"==typeof t)return t;var i=10===n?Number.parseFloat(t,n):Number.parseInt(t,n);return Number.isNaN(i)?0:i}t.exports={THROW:o,ASSERT:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length;i<=n&&o(new Error("end must be larger than start : start=".concat(n,", end=").concat(i)));for(var e=[],r=n;r2&&void 0!==arguments[2]?arguments[2]:0,e=-1,r=0,s=0;r1&&void 0!==arguments[1]?arguments[1]:" ";return t?(t=t.trim()," "===n||(t.startsWith(n)&&(t=t.slice(1)),t.endsWith(n)&&(t=t.slice(0,-1))),t):t},splitByCommaWithPreservingQuotes:function(t){for(var n=[],i=!0,e=0,r=[],s=0;s0&&void 0!==arguments[0]?arguments[0]:{};s=Object.assign(s,t)},getOptions:function(){return Object.assign({},s)}}}},n={},function i(e){if(n[e])return n[e].exports;var r=n[e]={exports:{}};return t[e](r,r.exports,i),r.exports}(851);var t,n}()}));const Ge={MANIFEST:"manifest",SEGMENT:"segment"},Ye={method:"GET",async:!0,retry:0,throwHttpErrors:!0,headers:{},hooks:{beforeRequest:[],beforeRetry:[],afterResponse:[]},validateStatus:function(t){return t>=200&&t<300},retryStatus:function(t){return[408,413,429].includes(t)||t>=500&&t<600}};function Ke(t,n){this.headers={},this.perfTimings={},ki(this,n),this.ok=2==(this.status/100|0),this.body=t,this.text=()=>r.resolve(t),this.json=()=>r.resolve(JSON.parse(t)),this.blob=()=>r.resolve(new Blob([t])),this.arrayBuffer=()=>r.resolve(t),this.clone=()=>new Ke(t,this),this.isVimeoResponse=!0}let We=function(t){function n(){var n;return(n=t.call(this,"The operation was aborted.")||this).name="AbortError",n}return E(n,t),n}(A(Error)),qe=function(t){function n(n){var i;return(i=t.call(this,n.statusText)||this).name="HTTPError",i.response=n,i}return E(n,t),n}(A(Error)),ze=function(t){function n(){var n;return(n=t.call(this,"A network error occurred.")||this).name="NetworkError",n}return E(n,t),n}(A(Error)),Qe=function(t){function n(n){var i;return(i=t.call(this,"Request timed out.")||this).name="TimeoutError",i.timeoutMs=n,i}return E(n,t),n}(A(Error));function Je(t,n){let{url:i,method:e,body:s,onDownloadProgress:o}=t,u=100;return new r((function(r,c){const h=n?new n:new XMLHttpRequest,a=window.performance;h.open(e.toUpperCase(),i,t.async),t.timeout&&(h.timeout=t.timeout),h.onload=function(){if(0===h.status&&(!h.responseURL||0!==h.responseURL.indexOf("file:")))return;const t={};h.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,((n,i,e)=>{t[i]=t[i]?`${t[i]},${e}`:e}));let n={};if(window.performance&&void 0!==window.performance.getEntriesByType){const t=window.performance.getEntriesByType("resource");if(t.length&&t.length>=u&&("function"==typeof a.clearResourceTimings&&a.clearResourceTimings(),"function"==typeof a.setResourceTimingBufferSize&&(a.setResourceTimingBufferSize(500),u=500)),t.length){const i=t.filter((t=>t.name===h.responseURL)).sort(((t,n)=>t.connectStart-n.connectStart));i.length&&(n=i[i.length-1].toJSON())}}r(new Ke(h.response,{headers:t,statusText:h.statusText,status:h.status,url:h.responseURL,perfTimings:n}))},h.onabort=function(){c(new We)},h.onerror=function(){c(new ze)},h.ontimeout=function(){c(new Qe(t.timeout))},"function"==typeof o&&h.addEventListener("progress",o);for(let n in t.headers)h.setRequestHeader(n,t.headers[n]);t.withCredentials&&(h.withCredentials=!0),t.responseType&&(h.responseType=t.responseType),t.abort=h.abort.bind(h),h.send(s||null)}))}function Ze(){}function tr(t,n,i){if(!t.s){if(i instanceof nr){if(!i.s)return void(i.o=tr.bind(null,t,n));1&n&&(n=i.s),i=i.v}if(i&&i.then)return void i.then(tr.bind(null,t,n),tr.bind(null,t,2));t.s=n,t.v=i;const e=t.o;e&&e(t)}}const nr=function(){function t(){}return t.prototype.then=function(n,i){const e=new t,r=this.s;if(r){const t=1&r?n:i;if(t){try{tr(e,1,t(this.v))}catch(t){tr(e,2,t)}return e}return this}return this.o=function(t){try{const r=t.v;1&t.s?tr(e,1,n?n(r):r):i?tr(e,1,i(r)):tr(e,2,r)}catch(t){tr(e,2,t)}},e},t}();function ir(t){return t instanceof nr&&1&t.s}function er(t){const n=function(t){return function(){for(var n=[],i=0;i=t.retry)return 0;if(n instanceof qe){if(!t.retryStatus(n.response.status))return 0;const i=function(t){const n="retry-after".toLowerCase();for(const i in t)if(i.toLowerCase()===n)return t[i];return null}(n.response.headers);if(i&&t.retryStatus(n.response.status)){let t=Number(i);return isNaN(t)?t=Date.parse(i)-Date.now():t*=1e3,t}if(413===n.response.status)return 0}return.3*2**(i-1)*1e3}(s);return i++,function(c,h){var a=function(){if(0!==u&&i>0)return function(t,n){return void 0?n?n(t):t:(t&&t.then||(t=r.resolve(t)),n?t.then(n):t)}(_i(u),(function(){var u;const c=(null==t||null==(u=t.hooks)?void 0:u.beforeRetry)||[];return function(t,n){return t&&t.then?t.then(n):n(t)}(function(t,n,i){var e,r,s=-1;return function o(u){try{for(;++srr(i.apply(void 0,t),n)})}function sr(t,n,i){return i?n?n(t):t:(t&&t.then||(t=r.resolve(t)),n?t.then(n):t)}function or(t){return function(){for(var n=[],i=0;in.abort()))}function Er(t,n){ki(this,Ye,t="string"==typeof t?{url:t}:t,n)}function yr(t){const{validateStatus:n,throwHttpErrors:i,hooks:e}=t;return or((function(r){const s=e.afterResponse||[];return fr(ar(s,(function(n){return sr((0,s[n])(t,r.clone()),(function(t){t instanceof Ke&&(r=t)}))})),(function(){if(!n||n(r.status))return r;if(i)throw new qe(r);return r}))}))}lr.forEach((function(t){return pr[t]=(n,i)=>pr(n,T({method:t},i)),pr[t]}));const{get:mr,post:Tr,put:wr,patch:br,head:gr}=pr,Ar={ARRAY_BUFFER:"arraybuffer"};var Sr=Object.freeze({__proto__:null,ContentTypes:Ge,defaults:Ye,requestMethods:lr,responseTypes:dr,retryMethods:vr,request:pr,Request:Er,get:mr,post:Tr,put:wr,patch:br,head:gr,Response:Ke,ResponseTypes:Ar,AbortError:We,HTTPError:qe,NetworkError:ze,TimeoutError:Qe,xhr:Je});const _r={variant:0,audio:0,subtitles:0};Ve.types.Rendition;Ve.types.Variant,Ve.types.MasterPlaylist;const Rr={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/]},Ir="avc1.42E01E,mp4a.40.2";const Or=function(t){return function(){for(var n=[],i=0;i{this.fire(Me.LOADED_METADATA,t)})),t.addEventListener("webkitplaybacktargetavailabilitychanged",(t=>{switch(t.availability){case"available":this.it||(this.it=!0,this.fire(Ce.AIRPLAY_AVAILABLE));break;case"not-available":this.it&&(this.it=!1,this.fire(Ce.AIRPLAY_UNAVAILABLE))}})),t.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",(t=>{if(t.target.webkitCurrentPlaybackTargetIsWireless)return this.st=!0,void this.fire(Ce.AIRPLAY_ACTIVATED);this.st=!1,this.fire(Ce.AIRPLAY_DEACTIVATED)}))},n.showPicker=function(){this.ut.webkitShowPlaybackTargetPicker(),this.loadMetadata().then((()=>this.ut.webkitShowPlaybackTargetPicker())).catch((()=>{}))},n.loadMetadata=function(){try{const t=this;return t.ut.readyState>=1?r.resolve():Mr(new r(function(t){return function(){for(var n=[],i=0;i{n()})),Mr(Or(t.getFile().src),(function(n){t.ut.src=n}))}))))}catch(t){return r.reject(t)}},d(AirPlayExternalDisplay,[{key:"element",get:function(){return this.ut},set:function(t){if(!(t instanceof HTMLVideoElement))throw new TypeError("The element for AirPlay must be a