1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1340],{3543:(e,t,n)=>{var i="u">typeof window?window:n.g,r={};for(var a in(function(e,t,n){function i(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var r,a,o,s,u,l,c,d,h,f="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e},p=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof e&&e,"object"==typeof self&&self,"object"==typeof t&&t];for(var i=0;i<n.length;++i){var r=n[i];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(this);function g(e,t){if(t)e:{var n=p;e=e.split(".");for(var i=0;i<e.length-1;i++){var r=e[i];if(!(r in n))break e;n=n[r]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&f(n,e,{configurable:!0,writable:!0,value:t})}}function m(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function v(e){var t="u">typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if("number"==typeof e.length)return{next:i(e)};throw Error(String(e)+" is not an iterable or ArrayLike")}function y(e){if(!(e instanceof Array)){e=v(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}g("Symbol",function(e){function t(e,t){this.g=e,f(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.g};var n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0;return function e(r){if(this instanceof e)throw TypeError("Symbol is not a constructor");return new t(n+(r||"")+"_"+i++,r)}}),g("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var r=p[t[n]];"function"==typeof r&&"function"!=typeof r.prototype[e]&&f(r.prototype,e,{configurable:!0,writable:!0,value:function(){return m(i(this))}})}return e});var b,w,x="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)w=Object.setPrototypeOf;else{e:{var T={};try{T.__proto__={a:!0},r=T.a;break e}catch(e){}r=!1}w=r?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw TypeError(e+" is not extensible");return e}:null}var S=w;function A(e,t){if(e.prototype=x(t.prototype),e.prototype.constructor=e,S)S(e,t);else for(var n in t)if("prototype"!=n)if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}else e[n]=t[n];e.$h=t.prototype}function E(){this.o=!1,this.m=null,this.h=void 0,this.g=1,this.j=this.l=0,this.A=this.i=null}function k(e){if(e.o)throw TypeError("Generator is already running");e.o=!0}function I(e,t){e.i={ef:t,tf:!0},e.g=e.l||e.j}function C(e,t,n){return e.g=n,{value:t}}function M(e){e.g=0}function D(e,t,n){e.l=t,void 0!=n&&(e.j=n)}function R(e,t,n){e.g=t,e.l=n||0}function N(e,t){return e.l=t||0,t=e.i.ef,e.i=null,t}function P(e){e.A=[e.i],e.l=0,e.j=0}function L(e,t){var n=e.A.splice(0)[0];(n=e.i=e.i||n)?n.tf?e.g=e.l||e.j:void 0!=n.s&&e.j<n.s?(e.g=n.s,e.i=null):e.g=e.j:e.g=t}function j(e){this.g=new E,this.h=e}function O(e,t,n,i){try{var r=t.call(e.g.m,n);if(!(r instanceof Object))throw TypeError("Iterator result "+r+" is not an object");if(!r.done)return e.g.o=!1,r;var a=r.value}catch(t){return e.g.m=null,I(e.g,t),U(e)}return e.g.m=null,i.call(e.g,a),U(e)}function U(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.o=!1,{value:t.value,done:!1}}catch(t){e.g.h=void 0,I(e.g,t)}if(e.g.o=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.tf)throw t.ef;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function _(e){this.next=function(t){return k(e.g),e.g.m?t=O(e,e.g.m.next,t,e.g.u):(e.g.u(t),t=U(e)),t},this.throw=function(t){return k(e.g),e.g.m?t=O(e,e.g.m.throw,t,e.g.u):(I(e.g,t),t=U(e)),t},this.return=function(t){var n,i,r;return n=e,i=t,k(n.g),(r=n.g.m)?O(n,"return"in r?r.return:function(e){return{value:e,done:!0}},i,n.g.return):(n.g.return(i),U(n))},this[Symbol.iterator]=function(){return this}}function B(e){var t=new _(new j(e));function n(e){return t.next(e)}function i(e){return t.throw(e)}return new Promise(function(e,r){!function t(a){a.done?e(a.value):Promise.resolve(a.value).then(n,i).then(t,r)}(t.next())})}function F(){for(var e=Number(this),t=[],n=e;n<arguments.length;n++)t[n-e]=arguments[n];return t}function H(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function V(e,t){e instanceof String&&(e+="");var n=0,i=!1,r={next:function(){if(!i&&n<e.length){var r=n++;return{value:t(r,e[r]),done:!1}}return i=!0,{done:!0,value:void 0}}};return r[Symbol.iterator]=function(){return r},r}function G(e,t,n){e instanceof String&&(e=String(e));for(var i=e.length,r=0;r<i;r++){var a=e[r];if(t.call(n,a,r,e))return{pf:r,v:a}}return{pf:-1,v:void 0}}function K(e,t,n){if(null==e)throw TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(t instanceof RegExp)throw TypeError("First argument to String.prototype."+n+" must not be a regular expression");return e+""}E.prototype.u=function(e){this.h=e},E.prototype.return=function(e){this.i={return:e},this.g=this.j},E.prototype.s=function(e){this.g=e},g("Promise",function(e){function t(e){this.h=0,this.i=void 0,this.g=[],this.o=!1;var t=this.j();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function n(){this.g=null}function i(e){return e instanceof t?e:new t(function(t){t(e)})}if(e)return e;n.prototype.h=function(e){if(null==this.g){this.g=[];var t=this;this.i(function(){t.l()})}this.g.push(e)};var r=p.setTimeout;n.prototype.i=function(e){r(e,0)},n.prototype.l=function(){for(;this.g&&this.g.length;){var e=this.g;this.g=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.j(e)}}}this.g=null},n.prototype.j=function(e){this.i(function(){throw e})},t.prototype.j=function(){function e(e){return function(i){n||(n=!0,e.call(t,i))}}var t=this,n=!1;return{resolve:e(this.D),reject:e(this.l)}},t.prototype.D=function(e){if(e===this)this.l(TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.H(e);else{switch(typeof e){case"object":var n=null!=e;break;case"function":n=!0;break;default:n=!1}n?this.C(e):this.m(e)}},t.prototype.C=function(e){var t=void 0;try{t=e.then}catch(e){this.l(e);return}"function"==typeof t?this.I(t,e):this.m(e)},t.prototype.l=function(e){this.u(2,e)},t.prototype.m=function(e){this.u(1,e)},t.prototype.u=function(e,t){if(0!=this.h)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.h);this.h=e,this.i=t,2===this.h&&this.F(),this.A()},t.prototype.F=function(){var e=this;
1r(function(){if(e.B()){var t=p.console;void 0!==t&&t.error(e.i)}},1)},t.prototype.B=function(){if(this.o)return!1;var e=p.CustomEvent,t=p.Event,n=p.dispatchEvent;return void 0===n||("function"==typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"==typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=p.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.i,n(e))},t.prototype.A=function(){if(null!=this.g){for(var e=0;e<this.g.length;++e)a.h(this.g[e]);this.g=null}};var a=new n;return t.prototype.H=function(e){var t=this.j();e.Yc(t.resolve,t.reject)},t.prototype.I=function(e,t){var n=this.j();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},t.prototype.then=function(e,n){function i(e,t){return"function"==typeof e?function(t){try{r(e(t))}catch(e){a(e)}}:t}var r,a,o=new t(function(e,t){r=e,a=t});return this.Yc(i(e,r),i(n,a)),o},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Yc=function(e,t){function n(){switch(i.h){case 1:e(i.i);break;case 2:t(i.i);break;default:throw Error("Unexpected state: "+i.h)}}var i=this;null==this.g?a.h(n):this.g.push(n),this.o=!0},t.resolve=i,t.reject=function(e){return new t(function(t,n){n(e)})},t.race=function(e){return new t(function(t,n){for(var r=v(e),a=r.next();!a.done;a=r.next())i(a.value).Yc(t,n)})},t.all=function(e){var n=v(e),r=n.next();return r.done?i([]):new t(function(e,t){var a=[],o=0;do a.push(void 0),o++,i(r.value).Yc(function(t){return function(n){a[t]=n,0==--o&&e(a)}}(a.length-1),t),r=n.next();while(!r.done)})},t}),g("WeakMap",function(e){function t(e){if(this.g=(s+=Math.random()+1).toString(),e){e=v(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}}function n(){}function i(e){var t=typeof e;return"object"===t&&null!==e||"function"===t}function r(e){H(e,o)||f(e,o,{value:new n})}function a(e){var t=Object[e];t&&(Object[e]=function(e){return e instanceof n?e:(Object.isExtensible(e)&&r(e),t(e))})}if(function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}),n=Object.seal({}),i=new e([[t,2],[n,3]]);if(2!=i.get(t)||3!=i.get(n))return!1;return i.delete(t),i.set(n,4),!i.has(t)&&4==i.get(n)}catch(e){return!1}}())return e;var o="$jscomp_hidden_"+Math.random();a("freeze"),a("preventExtensions"),a("seal");var s=0;return t.prototype.set=function(e,t){if(!i(e))throw Error("Invalid WeakMap key");if(r(e),!H(e,o))throw Error("WeakMap key fail: "+e);return e[o][this.g]=t,this},t.prototype.get=function(e){return i(e)&&H(e,o)?e[o][this.g]:void 0},t.prototype.has=function(e){return i(e)&&H(e,o)&&H(e[o],this.g)},t.prototype.delete=function(e){return!!(i(e)&&H(e,o)&&H(e[o],this.g))&&delete e[o][this.g]},t}),g("Map",function(e){function t(){var e={};return e.rb=e.next=e.head=e}function n(e,t){var n=e[1];return m(function(){if(n){for(;n.head!=e[1];)n=n.rb;for(;n.next!=n.head;)return{done:!1,value:t(n=n.next)};n=null}return{done:!0,value:void 0}})}function i(e,t){var n=t&&typeof t;"object"==n||"function"==n?a.has(t)?n=a.get(t):(n=""+ ++o,a.set(t,n)):n="p_"+t;var i=e[0][n];if(i&&H(e[0],n))for(e=0;e<i.length;e++){var r=i[e];if(t!=t&&r.key!=r.key||t===r.key)return{id:n,list:i,index:e,entry:r}}return{id:n,list:i,index:-1,entry:void 0}}function r(e){if(this[0]={},this[1]=t(),this.size=0,e){e=v(e);for(var n;!(n=e.next()).done;)n=n.value,this.set(n[0],n[1])}}if(function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(v([[t,"s"]]));if("s"!=n.get(t)||1!=n.size||n.get({x:4})||n.set({x:4},"t")!=n||2!=n.size)return!1;var i=n.entries(),r=i.next();if(r.done||r.value[0]!=t||"s"!=r.value[1])return!1;return!(r=i.next()).done&&4==r.value[0].x&&"t"==r.value[1]&&!!i.next().done}catch(e){return!1}}())return e;var a=new WeakMap;r.prototype.set=function(e,t){var n=i(this,e=0===e?0:e);return n.list||(n.list=this[0][n.id]=[]),n.entry?n.entry.value=t:(n.entry={next:this[1],rb:this[1].rb,head:this[1],key:e,value:t},n.list.push(n.entry),this[1].rb.next=n.entry,this[1].rb=n.entry,this.size++),this},r.prototype.delete=function(e){return!!(e=i(this,e)).entry&&!!e.list&&(e.list.splice(e.index,1),e.list.length||delete this[0][e.id],e.entry.rb.next=e.entry.next,e.entry.next.rb=e.entry.rb,e.entry.head=null,this.size--,!0)},r.prototype.clear=function(){this[0]={},this[1]=this[1].rb=t(),this.size=0},r.prototype.has=function(e){return!!i(this,e).entry},r.prototype.get=function(e){return(e=i(this,e).entry)&&e.value},r.prototype.entries=function(){return n(this,function(e){return[e.key,e.value]})},r.prototype.keys=function(){return n(this,function(e){return e.key})},r.prototype.values=function(){return n(this,function(e){return e.value})},r.prototype.forEach=function(e,t){for(var n,i=this.entries();!(n=i.next()).done;)n=n.value,e.call(t,n[1],n[0],this)},r.prototype[Symbol.iterator]=r.prototype.entries;var o=0;return r}),g("Set",function(e){function t(e){if(this.g=new Map,e){e=v(e);for(var t;!(t=e.next()).done;)this.add(t.value)}this.size=this.g.size}return!function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(v([t]));if(!n.has(t)||1!=n.size||n.add(t)!=n||1!=n.size||n.add({x:4})!=n||2!=n.size)return!1;var i=n.entries(),r=i.next();if(r.done||r.value[0]!=t||r.value[1]!=t)return!1;return!(r=i.next()).done&&r.value[0]!=t&&4==r.value[0].x&&r.value[1]==r.value[0]&&i.next().done}catch(e){return!1}}()?(t.prototype.add=function(e){return e=0===e?0:e,this.g.set(e,e),this.size=this.g.size,this},t.prototype.delete=function(e){return e=this.g.delete(e),this.size=this.g.size,e},t.prototype.clear=function(){this.g.clear(),this.size=0},t.prototype.has=function(e){return this.g.has(e)},t.prototype.entries=function(){return this.g.entries()},t.prototype.values=function(){return this.g.values()},t.prototype.keys=t.prototype.values,t.prototype[Symbol.iterator]=t.prototype.values,t.prototype.forEach=function(e,t){var n=this;this.g.forEach(function(i){return e.call(t,i,i,n)})},t):e}),g("Array.prototype.keys",function(e){return e||function(){return V(this,function(e){return e})}}),g("Array.prototype.findIndex",function(e){return e||function(e,t){return G(this,e,t).pf}}),g("Array.from",function(e){return e||function(e,t,n){t=null!=t?t:function(e){return e};var i=[],r="u">typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if("function"==typeof r){e=r.call(e);for(var a=0;!(r=e.next()).done;)i.push(t.call(n,r.value,a++))}else for(r=e.length,a=0;a<r;a++)i.push(t.call(n,e[a],a));return i}}),g("Array.prototype.values",function(e){return e||function(){return V(this,function(e,t){return t})}}),g("Object.is",function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}}),g("Array.prototype.includes",function(e){return e||function(e,t){var n=this;n instanceof String&&(n=String(n));var i=n.length;for(0>(t=t||0)&&(t=Math.max(t+i,0));t<i;t++){var r=n[t];if(r===e||Object.is(r,e))return!0}return!1}}),g("String.prototype.includes",function(e){return e||function(e,t){return -1!==K(this,e,"includes").indexOf(e,t||0)}}),g("String.fromCodePoint",function(e){return e||function(e){for(var t="",n=0;n<arguments.length;n++){var i=Number(arguments[n]);if(0>i||1114111<i||i!==Math.floor(i))throw RangeError("invalid_code_point "+i);65535>=i?t+=String.fromCharCode(i):(i-=65536,t+=String.fromCharCode(i>>>10&1023|55296),t+=String.fromCharCode(1023&i|56320))}return t}}),g("Array.prototype.find",function(e){return e||function(e,t){return G(this,e,t).v}}),g("String.prototype.startsWith",function(e){return e||function(e,t){var n=K(this,e,"startsWith"),i=n.length,r=e.length;t=Math.max(0,Math.min(0|t,n.length));for(var a=0;a<r&&t<i;)if(n[t++]!=e[a++])return!1;return a>=r}}),g("WeakSet",function(e){function t(e){if(this.g=new WeakMap,e){e=v(e);for(var t;!(t=e.next()).done;)this.add(t.value)}}return!function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}
1),n=Object.seal({}),i=new e([t]);if(!i.has(t)||i.has(n))return!1;return i.delete(t),i.add(n),!i.has(t)&&i.has(n)}catch(e){return!1}}()?(t.prototype.add=function(e){return this.g.set(e,!0),this},t.prototype.has=function(e){return this.g.has(e)},t.prototype.delete=function(e){return this.g.delete(e)},t):e});var X="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var i=arguments[n];if(i)for(var r in i)H(i,r)&&(e[r]=i[r])}return e};g("Object.assign",function(e){return e||X}),g("Object.values",function(e){return e||function(e){var t,n=[];for(t in e)H(e,t)&&n.push(e[t]);return n}}),g("Promise.prototype.finally",function(e){return e||function(e){return this.then(function(t){return Promise.resolve(e()).then(function(){return t})},function(t){return Promise.resolve(e()).then(function(){throw t})})}}),g("Math.log2",function(e){return e||function(e){return Math.log(e)/Math.LN2}}),g("Number.MAX_SAFE_INTEGER",function(){return 0x1fffffffffffff}),g("String.prototype.endsWith",function(e){return e||function(e,t){var n=K(this,e,"endsWith");void 0===t&&(t=n.length),t=Math.max(0,Math.min(0|t,n.length));for(var i=e.length;0<i&&0<t;)if(n[--t]!=e[--i])return!1;return 0>=i}}),g("Array.prototype.entries",function(e){return e||function(){return V(this,function(e,t){return[e,t]})}}),g("Number.isNaN",function(e){return e||function(e){return"number"==typeof e&&isNaN(e)}}),g("Math.trunc",function(e){return e||function(e){if(isNaN(e=Number(e))||1/0===e||-1/0===e||0===e)return e;var t=Math.floor(Math.abs(e));return 0>e?-t:t}}),g("String.prototype.repeat",function(e){return e||function(e){var t=K(this,null,"repeat");if(0>e||0x4fffffff<e)throw RangeError("Invalid count value");e|=0;for(var n="";e;)1&e&&(n+=t),(e>>>=1)&&(t+=t);return n}}),g("Number.isFinite",function(e){return e||function(e){return"number"==typeof e&&!isNaN(e)&&1/0!==e&&-1/0!==e}}),g("Object.entries",function(e){return e||function(e){var t,n=[];for(t in e)H(e,t)&&n.push([t,e[t]]);return n}});var W=this||self;function q(e,t){e=e.split(".");var n,i=W;for((e[0]in i)||void 0===i.execScript||i.execScript("var "+e[0]);e.length&&(n=e.shift());)e.length||void 0===t?i=i[n]&&i[n]!==Object.prototype[n]?i[n]:i[n]={}:i[n]=t}function z(){}function Y(){}function J(e){this.g=Math.exp(Math.log(.5)/e),this.i=this.h=0}function $(e){return e.h/(1-Math.pow(e.g,e.i))}function Q(){this.h=new J(2),this.j=new J(5),this.g=0,this.i=128e3,this.l=16e3}function Z(){}function ee(){}function et(){}function en(e){var t=F.apply(1,arguments);ei.has(e)||(ei.add(e),et.apply(Z,y(t)))}J.prototype.sample=function(e,t){var n=Math.pow(this.g,e);isNaN(t=t*(1-n)+n*this.h)||(this.h=t,this.i+=e)},Q.prototype.configure=function(e){this.i=e.minTotalBytes,this.l=e.minBytes,this.h.g=Math.exp(Math.log(.5)/e.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/e.slowHalfLife)},Q.prototype.sample=function(e,t){if(!(t<this.l)){var n=8e3*t/e;e/=1e3,this.g+=t,this.h.sample(e,n),this.j.sample(e,n)}},Q.prototype.getBandwidthEstimate=function(e){return this.g<this.i?e:Math.min($(this.h),$(this.j))};var ei=new Set;function er(){this.g={}}function ea(){this.g=new er}function eo(e,t,n,i){this.target=e,this.type=t,this.listener=n,this.g=function(e,t){if(void 0==t)return!1;if("boolean"==typeof t)return t;var n=new Set(["passive","capture"]);return Object.keys(t).filter(function(e){return!n.has(e)}),!function(e){var t=es;if(void 0==t){t=!1;try{var n={},i={get:function(){return t=!0,!1}};Object.defineProperty(n,"passive",i),Object.defineProperty(n,"capture",i),i=function(){},e.addEventListener("test",i,n),e.removeEventListener("test",i,n)}catch(e){t=!1}es=t}return t||!1}(e)?t.capture||!1:t}(e,i),this.target.addEventListener(t,n,this.g)}e.console&&(et=function(){return console.warn.apply(console,y(F.apply(0,arguments)))},ee=function(){console.error.apply(console,y(F.apply(0,arguments)))}),(b=er.prototype).push=function(e,t){this.g.hasOwnProperty(e)?this.g[e].push(t):this.g[e]=[t]},b.get=function(e){return(e=this.g[e])?e.slice():null},b.remove=function(e,t){e in this.g&&(this.g[e]=this.g[e].filter(function(e){return e!=t}),0==this.g[e].length&&delete this.g[e])},b.forEach=function(e){for(var t in this.g)e(t,this.g[t])},b.size=function(){return Object.keys(this.g).length},b.keys=function(){return Object.keys(this.g)},(b=ea.prototype).release=function(){this.Va(),this.g=null},b.J=function(e,t,n,i){this.g&&(e=new eo(e,t,n,i),this.g.push(t,e))},b.sa=function(e,t,n,i){var r=this;this.J(e,t,function i(a){r.ub(e,t,i),n(a)},i)},b.ub=function(e,t,n){if(this.g){var i=this.g.get(t)||[];i=v(i);for(var r=i.next();!r.done;r=i.next())(r=r.value).target!=e||n!=r.listener&&n||(r.ub(),this.g.remove(t,r))}},b.Va=function(){if(this.g){var e,t=this.g,n=[];for(e in t.g)n.push.apply(n,y(t.g[e]));for(n=(t=v(n)).next();!n.done;n=t.next())n.value.ub();this.g.g={}}},q("shaka.util.EventManager",ea),ea.prototype.removeAll=ea.prototype.Va,ea.prototype.unlisten=ea.prototype.ub,ea.prototype.listenOnce=ea.prototype.sa,ea.prototype.listen=ea.prototype.J,ea.prototype.release=ea.prototype.release,eo.prototype.ub=function(){this.target.removeEventListener(this.type,this.listener,this.g),this.listener=this.target=null,this.g=!1};var es=void 0;function eu(t){if(ec.has(t))return ec.get(t);
1if(e.ManagedMediaSource){var n=ManagedMediaSource.isTypeSupported(t);return ec.set(t,n),n}return!!e.MediaSource&&(n=MediaSource.isTypeSupported(t),ec.set(t,n),n)}function el(){return!!e.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var ec=new Map;function ed(e,t){this.g=e,this.h=t}function eh(e,t){var n,i=eg;n=5e4,n=new ed(n,0);var r=i.g,a=n.h-r.h;(0<(n.g-r.g||a)?i.i:i.h)(i.g,n,e,t)}function ef(e,t,n,i){et([n,"has been deprecated and will be removed in",t,". We are currently at version",e,". Additional information:",i].join(" "))}function ep(e,t,n,i){ee([n,"has been deprecated and has been removed in",t,". We are now at version",e,". Additional information:",i].join(" "))}ed.prototype.toString=function(){return"v"+this.g+"."+this.h};var eg=null;function em(){}function ev(){}function ey(){}function eb(e,t){if(!e&&!t)return!0;if(!e||!t||e.byteLength!=t.byteLength)return!1;if(ew(e)==ew(t)&&(e.byteOffset||0)==(t.byteOffset||0))return!0;var n=eT(e);t=eT(t);for(var i=0;i<e.byteLength;i++)if(n[i]!=t[i])return!1;return!0}function ew(e){return e instanceof ArrayBuffer?e:e.buffer}function ex(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function eT(e,t,n){return eE(e,void 0===t?0:t,n=void 0===n?1/0:n,Uint8Array)}function eS(e,t,n){return eE(e,void 0===t?0:t,n=void 0===n?1/0:n,Uint16Array)}function eA(e,t,n){return eE(e,void 0===t?0:t,n=void 0===n?1/0:n,DataView)}function eE(e,t,n,i){var r=ew(e),a=1;"BYTES_PER_ELEMENT"in i&&(a=i.BYTES_PER_ELEMENT);var o=((e.byteOffset||0)+e.byteLength)/a;return new i(r,e=Math.floor(Math.max(0,Math.min(((e.byteOffset||0)+t)/a,o))),Math.floor(Math.min(e+Math.max(n,0),o))-e)}function ek(){}function eI(e){this.h=new Map,this.i=0,this.j=new ev,(e=eC[e.toLowerCase()])&&(this.j=e()),this.g=new em,(e=eM)&&(this.g=e(),this.h.set(this.i,this.g))}em.prototype.extract=function(){},em.prototype.decode=function(){return[]},em.prototype.clear=function(){},em.prototype.getStreams=function(){return[]},ev.prototype.init=function(){},ev.prototype.parse=function(){return[]},q("shaka.util.BufferUtils",ey),ey.toDataView=eA,ey.toUint16=eS,ey.toUint8=eT,ey.toArrayBuffer=ex,ey.equal=eb,(b=ek.prototype).init=function(){},b.xd=function(){},b.sc=function(){},b.remove=function(){},b.Rd=function(){},q("shaka.media.IClosedCaptionParser",ek),(b=eI.prototype).init=function(e,t,n){if(t=void 0!==t&&t,-1!=(n=void 0===n?-1:n)&&this.i!=n){t=n;var i=this.h.get(t);this.h.set(this.i,this.g),i?this.g=i:((i=eM)&&(this.g=i()),this.h.set(t,this.g))}else t||this.sc();this.j.init(e),-1!=n&&(this.i=n)},b.xd=function(e){e=v(e=this.j.parse(e));for(var t=e.next();!t.done;t=e.next()){var n=eT((t=t.value).packet);0<n.length&&this.g.extract(n,t.pts)}return this.g.decode()},b.sc=function(){this.g.clear()},b.remove=function(e){e=new Set(e=void 0===e?[]:e);for(var t=v(this.h.keys()),n=t.next();!n.done;n=t.next())if(n=n.value,!e.has(n)){var i=this.h.get(n);i&&i.clear(),this.h.delete(n)}},b.Rd=function(){return this.g.getStreams()},q("shaka.media.ClosedCaptionParser",eI),eI.findDecoder=function(){return eM},eI.unregisterDecoder=function(){eM=null},eI.registerDecoder=function(e){eM=e},eI.findParser=function(e){return eC[e]},eI.unregisterParser=function(e){delete eC[e]},eI.registerParser=function(e,t){eC[e]=t};var eC={},eM=null;function eD(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=eR,this.scroll=eN}q("shaka.text.CueRegion",eD);var eR=1;eD.units={PX:0,PERCENTAGE:1,LINES:2};var eN="";function eP(e,t){return!!("number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t))||e===t}function eL(e,t){-1<(t=e.indexOf(t))&&e.splice(t,1)}function ej(e,t,n){if(n||(n=eP),e.length!=t.length)return!1;for(var i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1;return!0}function eO(e,t,n){this.startTime=e,this.endTime=t,this.payload=n,this.region=new eD,this.position=null,this.positionAlign=eB,this.size=0,this.textAlign=eF,this.direction=eK,this.writingMode=eX,this.lineInterpretation=eW,this.line=null,this.lineHeight="",this.lineAlign=eq,this.displayAlign=eV,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=e$,this.fontStyle=eQ,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textCombineUpright="",this.textDecoration=[],this.textStrokeWidth=this.textStrokeColor=this.textShadow="",this.wrapLine=!0,this.id="",this.nestedCues=[],this.lineBreak=this.isContainer=!1,this.rubyTag=null,this.cellResolution={Ib:32,rows:15}}function eU(e,t){return(e=new eO(e,t,"")).lineBreak=!0,e}function e_(e,t){if(e.startTime!=t.startTime||e.endTime!=t.endTime||e.payload!=t.payload)return!1;for(var n in e)if("startTime"!=n&&"endTime"!=n&&"payload"!=n){if("nestedCues"==n){if(!ej(e.nestedCues,t.nestedCues,e_))return!1}else if("region"==n||"cellResolution"==n){for(var i in e[n])if(e[
1n][i]!=t[n][i])return!1}else if(Array.isArray(e[n])){if(!ej(e[n],t[n]))return!1}else if(e[n]!=t[n])return!1}return!0}eD.scrollMode={NONE:eN,UP:"up"},eO.prototype.clone=function(){var e,t=new eO(0,0,"");for(e in this)t[e]=this[e],t[e]&&t[e].constructor==Array&&(t[e]=t[e].slice());return t},q("shaka.text.Cue",eO),eO.equal=e_,eO.prototype.clone=eO.prototype.clone;var eB="auto";eO.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:eB};var eF="center",eH={LEFT:"left",RIGHT:"right",CENTER:eF,START:"start",END:"end"};eO.textAlign=eH;var eV="after",eG={BEFORE:"before",CENTER:"center",AFTER:eV};eO.displayAlign=eG;var eK="ltr";eO.direction={HORIZONTAL_LEFT_TO_RIGHT:eK,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var eX="horizontal-tb";eO.writingMode={HORIZONTAL_TOP_TO_BOTTOM:eX,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var eW=0;eO.lineInterpretation={LINE_NUMBER:0,PERCENTAGE:1};var eq="start",ez={CENTER:"center",START:eq,END:"end"};eO.lineAlign=ez;var eY={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};eO.defaultTextColor=eY;var eJ={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};eO.defaultTextBackgroundColor=eJ;var e$=400;eO.fontWeight={NORMAL:400,BOLD:700};var eQ="normal",eZ={NORMAL:eQ,ITALIC:"italic",OBLIQUE:"oblique"};function e0(){}function e1(e,t){for(var n=e.toLowerCase().split(";")[0],i=v([e6,e5,e3,e4]),r=i.next();!r.done;r=i.next())if(r=e2[n+"-"+r.value]){var a=r.yd(),o=a.isSupported(e,t);if(a.destroy(),o)return r.yd}return null}eO.fontStyle=eZ,eO.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"},e0.prototype.destroy=function(){},q("shaka.transmuxer.TransmuxerEngine",e0),e0.findTransmuxer=e1,e0.unregisterTransmuxer=function(e,t){delete e2[e.toLowerCase().split(";")[0]+"-"+t]},e0.registerTransmuxer=function(e,t,n){e2[e.toLowerCase().split(";")[0]+"-"+n]={priority:n,yd:t}},e0.prototype.destroy=e0.prototype.destroy;var e2={},e4=1,e3=2,e5=3,e6=4;e0.PluginPriority={FALLBACK:1,PREFERRED_SECONDARY:2,PREFERRED:3,APPLICATION:4};var e8=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function e7(e){var t;e instanceof e7?(e9(this,e.fb),this.Vb=e.Vb,te(this,e.jb),tt(this,e.lc),this.Ha=e.Ha,tn(this,e.g.clone()),this.Jb=e.Jb):e&&(t=String(e).match(e8))?(e9(this,t[1]||"",!0),this.Vb=ti(t[2]||""),te(this,t[3]||"",!0),tt(this,t[4]),this.Ha=ti(t[5]||"",!0),tn(this,t[6]||"",!0),this.Jb=ti(t[7]||"")):this.g=new td(null)}function e9(e,t,n){e.fb=n?ti(t,!0):t,e.fb&&(e.fb=e.fb.replace(/:$/,""))}function te(e,t,n){e.jb=n?ti(t,!0):t}function tt(e,t){if(t){if(isNaN(t=Number(t))||0>t)throw Error("Bad port number "+t);e.lc=t}else e.lc=null}function tn(e,t,n){t instanceof td?e.g=t:(n||(t=tr(t,tl)),e.g=new td(t))}function ti(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function tr(e,t,n){return null!=e?(e=encodeURI(e).replace(t,ta),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function ta(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(b=e7.prototype).fb="",b.Vb="",b.jb="",b.lc=null,b.Ha="",b.Jb="",b.toString=function(){var e=[],t=this.fb;if(t&&e.push(tr(t,to,!0),":"),t=this.jb){e.push("//");var n=this.Vb;n&&e.push(tr(n,to,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.lc)&&e.push(":",String(t))}return(t=this.Ha)&&(this.jb&&"/"!=t.charAt(0)&&e.push("/"),e.push(tr(t,"/"==t.charAt(0)?tu:ts,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.Jb)&&e.push("#",tr(t,tc)),e.join("")},b.resolve=function(e){var t=this.clone();"data"===t.fb&&(t=new e7);var n=!!e.fb;n?e9(t,e.fb):n=!!e.Vb,n?t.Vb=e.Vb:n=!!e.jb,n?te(t,e.jb):n=null!=e.lc;var i=e.Ha;if(n)tt(t,e.lc);else if(n=!!e.Ha){if("/"!=i.charAt(0))if(this.jb&&!this.Ha)i="/"+i;else{var r=t.Ha.lastIndexOf("/");-1!=r&&(i=t.Ha.substr(0,r+1)+i)}if(".."==i||"."==i)i="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var a=[],o=0;o<i.length;){var s=i[o++];"."==s?r&&o==i.length&&a.push(""):".."==s?((1<a.length||1==a.length&&""!=a[0])&&a.pop(),r&&o==i.length&&a.push("")):(a.push(s),r=!0)}i=a.join("/")}}return n?t.Ha=i:n=""!==e.g.toString(),n?tn(t,e.g.clone()):n=!!e.Jb,n&&(t.Jb=e.Jb),t},b.clone=function(){return new e7(this)};var to=/[#\/\?@]/g,ts=/[#\?:]/g,tu=/[#\?]/g,tl=/[#\?@]/g,tc=/#/g;function td(e){this.g=e||null}function th(e){if(!e.Ba&&(e.Ba={},e.wc=0,e.g))for(var t=e.g.split("&"),n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var a=t[n].substring(0,i);r=t[n].substring(i+1)}else a=t[n];a=decodeURIComponent(a.replace(/\+/g," ")),r=r||"",e.add(a,decodeURIComponent(r.replace(/\+/g," ")))}}function tf(e,t,n){var i=F.apply(3,arguments);
1if(this.severity=e,this.category=t,this.code=n,this.data=i,this.handled=!1,this.message="Shaka Error "+this.code,tp)try{throw Error(this.message||"Shaka Error")}catch(e){this.stack=e.stack}}(b=td.prototype).Ba=null,b.wc=null,b.add=function(e,t){th(this),this.g=null;var n=this.Ba.hasOwnProperty(e)?this.Ba[e]:null;return n||(this.Ba[e]=n=[]),n.push(t),this.wc++,this},b.set=function(e,t){return th(this),this.g=null,this.Ba.hasOwnProperty(e)?this.Ba[e]=[t]:this.add(e,t),this},b.get=function(e){return th(this),this.Ba[e]||[]},b.toString=function(){if(this.g)return this.g;if(!this.Ba)return"";var e,t=[];for(e in this.Ba)for(var n=encodeURIComponent(e),i=this.Ba[e],r=0;r<i.length;r++){var a=n;""!==i[r]&&(a+="="+encodeURIComponent(i[r])),t.push(a)}return this.g=t.join("&")},b.clone=function(){var e=new td;if(e.g=this.g,this.Ba){var t,n={};for(t in this.Ba)n[t]=this.Ba[t].concat();e.Ba=n,e.wc=this.wc}return e},tf.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")},q("shaka.util.Error",tf);var tp=!0;function tg(e){this.h=e,this.g=void 0}function tm(e,t){return!e.length||!t.length||e===t||0<tv(e,t).length}function tv(e,t){if(!e.length)return t;if(!t.length)return e;var n=[];e=v(e);for(var i=e.next();!i.done;i=e.next()){i=i.value;for(var r=v(t),a=r.next();!a.done;a=r.next())if(a=a.value,i.keySystem==a.keySystem){r=new Map;for(var o=v((i.initData||[]).concat(a.initData||[])),s=o.next();!s.done;s=o.next())s=s.value,r.set(s.keyId,s);r=Array.from(r.values()),o=i.keyIds&&a.keyIds?new Set([].concat(y(i.keyIds),y(a.keyIds))):i.keyIds||a.keyIds,n.push({keySystem:i.keySystem,licenseServerUri:i.licenseServerUri||a.licenseServerUri,distinctiveIdentifierRequired:i.distinctiveIdentifierRequired||a.distinctiveIdentifierRequired,persistentStateRequired:i.persistentStateRequired||a.persistentStateRequired,videoRobustness:i.videoRobustness||a.videoRobustness,audioRobustness:i.audioRobustness||a.audioRobustness,serverCertificate:i.serverCertificate||a.serverCertificate,serverCertificateUri:i.serverCertificateUri||a.serverCertificateUri,initData:r,keyIds:o});break}}return n}function ty(e){return!!e&&!!e.match(/^com\.(microsoft|chromecast)\.playready/)}tf.Severity={RECOVERABLE:1,CRITICAL:2},tf.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10},tf.Code={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,MSS_MISSING_DATA_FOR_TRANSMUXING:3020,MSS_TRANSMUXING_FAILED:3022,TRANSMUXING_NO_VIDEO_DATA:3023,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_
1LIMIT:4028,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,NO_WEB_CRYPTO_API:4042,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_LIVE_STREAM:4045,MSS_INVALID_XML:4046,MSS_LIVE_CONTENT_NOT_SUPPORTED:4047,AES_128_INVALID_IV_LENGTH:4048,AES_128_INVALID_KEY_LENGTH:4049,DASH_CONFLICTING_AES_128:4050,DASH_UNSUPPORTED_AES_128:4051,DASH_INVALID_PATCH:4052,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,MIN_HDCP_VERSION_NOT_MATCH:6018,ERROR_CHECKING_HDCP_VERSION:6019,LOAD_INTERRUPTED:7e3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,SRC_EQUALS_PRELOAD_NOT_SUPPORTED:7005,CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,CS_IMA_SDK_MISSING:1e4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004,MT_AD_MANAGER_NOT_INITIALIZED:10005},tg.prototype.value=function(){return void 0==this.g&&(this.g=this.h()),this.g};var tb=new tg(function(){return ex(new Uint8Array([0]))}),tw=new Map;function tx(e){this.h=e,this.g=null}function tT(e){this.h=e,this.g=null}function tS(){var t=e.ManagedMediaSource||e.MediaSource;return!!t&&!!t.isTypeSupported}function tA(e){return""!=tG().canPlayType(e)}function tE(){return!!navigator.userAgent.match(/Edge?\//)}function tk(){return tV("Xbox One")}function tI(){return tV("Tizen")}function tC(){return tV("Tizen 3")}function tM(){return tV("VIZIO SmartCast")}function tD(){return tV("Web0S")}function tR(){return tV("CrKey")&&!tM()}function tN(){if(!tV("Chrome")||navigator.userAgent.match(/Edge\//))return null;var e=navigator.userAgent.match(/Chrome\/(\d+)/);return e?parseInt(e[1],10):null}function tP(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!tI()&&!tV("PC=EOS")&&!tV("PC=APL")&&!tV("PC=APPSTB")&&!tV("VirginMedia")&&!tU()&&!tj()&&!tV("AFT")&&!tV("WPE")&&!tV("DT_STB_BCM")&&!tV("Sky_STB")&&!t_()}function tL(){return tV("PlayStation 5")}function tj(){return tV("PlayStation 4")}function tO(){return tV("Hisense")||tV("VIDAA")}function tU(){return tV("SOPOpenBrowser")}function t_(){return tV("MDMP1001S")||tV("PS5525IMC")}function tB(){if(!tP())return null;var e=navigator.userAgent.match(/Version\/(\d+)/);return e||(e=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(e[1],10):null}function tF(){return navigator.userAgentData&&navigator.userAgentData.platform?"windows"==navigator.userAgentData.platform.toLowerCase():!!navigator.platform&&navigator.platform.toLowerCase().includes("windows")}function tH(){return tV("Android")}function tV(e){return(navigator.userAgent||"").includes(e)}function tG(){return tq||(tW||(tW=new tT(function(){tq=null})),(tq=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(tq=document.createElement("video")),tW.da(1)),tq}function tK(t){return t?t===e.shakaMediaKeysPolyfill:!!e.shakaMediaKeysPolyfill}function tX(){var t,n,i,r,a,o,s,u,l,c,d,h,f,p;return B(function(g){switch(g.g){case 1:if(t={width:1/0,height:1/0},tR()){if(d=e.cast&&cast.__platform__&&cast.__platform__.canDisplayType,t.width=1280,t.height=720,D(g,15),!(h=d)){g.s(17);break}return C(g,cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840;
1 height=2160'),18)}if(tI()){t.width=1920,t.height=1080;try{webapis.systeminfo&&webapis.systeminfo.getMaxVideoResolution?(n=webapis.systeminfo.getMaxVideoResolution(),t.width=n.width,t.height=n.height):webapis.productinfo.is8KPanelSupported&&webapis.productinfo.is8KPanelSupported()?(t.width=7680,t.height=4320):webapis.productinfo.isUdPanelSupported&&webapis.productinfo.isUdPanelSupported()&&(t.width=3840,t.height=2160)}catch(e){et("Tizen: Error detecting screen size, default screen size 1920x1080.")}g.s(3);break}if(tk()){t.width=1920,t.height=1080;try{i=void 0,r=new(i="u">typeof Windows?Windows:chrome.webview.hostObjects.sync.Windows).Media.Protection.ProtectionCapabilities,a=i.Media.Protection.ProtectionCapabilityResult,o=null;do o=r.isTypeSupported('video/mp4;codecs="hvc1,mp4a";features="decode-res-x=3840,decode-res-y=2160,decode-bitrate=20000,decode-fps=30,decode-bpc=10,display-res-x=3840,display-res-y=2160,display-bpc=8"',"com.microsoft.playready.recommendation");while(o===a.maybe);o===a.probably&&(t.width=3840,t.height=2160)}catch(e){et("Xbox: Error detecting screen size, default screen size 1920x1080.")}g.s(3);break}if(tD()){try{s=JSON.parse(e.PalmSystem.deviceInfo),t.width=Math.max(1920,s.screenWidth),t.height=Math.max(1080,s.screenHeight)}catch(e){et("WebOS: Error detecting screen size, default screen size 1920x1080."),t.width=1920,t.height=1080}g.s(3);break}if(tO()){if(u=null,e.Hisense_Get4KSupportState)try{u=e.Hisense_Get4KSupportState()}catch(e){}null==u&&(u=tV("UHD")),u?(t.width=3840,t.height=2160):(t.width=1920,t.height=1080),g.s(3);break}if(!tj()&&!tL()){g.s(3);break}return l=!1,D(g,9),C(g,e.msdk.device.getDisplayInfo(),11);case 11:case 14:l="4K"===g.h.resolution,R(g,10);break;case 9:return N(g),D(g,12),C(g,e.msdk.device.getDisplayInfoImmediate(),14);case 12:c=N(g),et("PlayStation: Failed to get the display info:",c);case 10:l?(t.width=3840,t.height=2160):(t.width=1920,t.height=1080),g.s(3);break;case 18:h=g.h;case 17:if(h){t.width=3840,t.height=2160,g.s(19);break}if(!(f=d)){g.s(20);break}return C(g,cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=1920; height=1080'),21);case 21:f=g.h;case 20:f&&(t.width=1920,t.height=1080);case 19:R(g,3);break;case 15:p=N(g),ee("Failed to check canDisplayType:",p);case 3:return g.return(t)}})}tx.prototype.da=function(t){var n=this;this.stop();var i=!0,r=null;return this.g=function(){e.clearTimeout(r),i=!1},r=e.setTimeout(function(){i&&n.h()},1e3*t),this},tx.prototype.stop=function(){this.g&&(this.g(),this.g=null)},tT.prototype.Gd=function(){return this.stop(),this.h(),this},tT.prototype.da=function(e){var t=this;return this.stop(),this.g=new tx(function(){t.h()}).da(e),this},tT.prototype.Ja=function(e){var t=this;return this.stop(),this.g=new tx(function(){t.g.da(e),t.h()}).da(e),this},tT.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},q("shaka.util.Timer",tT),tT.prototype.stop=tT.prototype.stop,tT.prototype.tickEvery=tT.prototype.Ja,tT.prototype.tickAfter=tT.prototype.da,tT.prototype.tickNow=tT.prototype.Gd;var tW=null,tq=null;function tz(){}function tY(t){if(!t)return"";if(239==(t=eT(t))[0]&&187==t[1]&&191==t[2]&&(t=t.subarray(3)),e.TextDecoder&&!tj())return(t=(new TextDecoder).decode(t)).includes("�")&&ee('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),t;for(var n="",i=0;i<t.length;++i){var r=65533;if(0==(128&t[i])?r=t[i]:t.length>=i+2&&192==(224&t[i])&&128==(192&t[i+1])?(r=(31&t[i])<<6|63&t[i+1],i+=1):t.length>=i+3&&224==(240&t[i])&&128==(192&t[i+1])&&128==(192&t[i+2])?(r=(15&t[i])<<12|(63&t[i+1])<<6|63&t[i+2],i+=2):t.length>=i+4&&240==(241&t[i])&&128==(192&t[i+1])&&128==(192&t[i+2])&&128==(192&t[i+3])&&(r=(7&t[i])<<18|(63&t[i+1])<<12|(63&t[i+2])<<6|63&t[i+3],i+=3),65535>=r)n+=String.fromCharCode(r);else{var a=1023&(r-=65536);n+=String.fromCharCode(55296+(r>>10)),n+=String.fromCharCode(56320+a)}}return n}function tJ(e,t,n){if(!e)return"";if(!n&&0!=e.byteLength%2)throw new tf(2,2,2004);var i=new Uint16Array(n=Math.floor(e.byteLength/2));e=eA(e);for(var r=0;r<n;r++)i[r]=e.getUint16(2*r,t);return t0(i)}function t$(e){function t(e){return n.byteLength<=e||32<=n[e]&&126>=n[e]}if(!e)return"";var n=eT(e);
1if(239==n[0]&&187==n[1]&&191==n[2])return tY(n);if(254==n[0]&&255==n[1])return tJ(n.subarray(2),!1);if(255==n[0]&&254==n[1])return tJ(n.subarray(2),!0);if(0==n[0]&&0==n[2])return tJ(e,!1);if(0==n[1]&&0==n[3])return tJ(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return tY(e);throw new tf(2,2,2003)}function tQ(t){if(e.TextEncoder&&!tj()){var n=new TextEncoder;return ex(n.encode(t))}n=new Uint8Array((t=unescape(t=encodeURIComponent(t))).length);for(var i=0;i<t.length;i++)n[i]=t[i].charCodeAt(0);return ex(n)}function tZ(e,t){for(var n=new ArrayBuffer(2*e.length),i=new DataView(n),r=0;r<e.length;++r)i.setUint16(2*r,e.charCodeAt(r),t);return n}function t0(e){return t2.value()(e)}function t1(e){var t={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":"\xa0","‎":"â","‏":"â"},n=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,i=RegExp(n.source);return e&&i.test(e)?e.replace(n,function(e){return"#"==e[1]?0<=(e="x"==e[2]||"X"==e[2]?parseInt(e.substring(3),16):parseInt(e.substring(2),10))&&1114111>=e?String.fromCodePoint(e):"":t[e]||"'"}):e||""}q("shaka.util.StringUtils",tz),tz.resetFromCharCode=function(){t2.g=void 0},tz.toUTF16=tZ,tz.toUTF8=tQ,tz.fromBytesAutoDetect=t$,tz.fromUTF16=tJ,tz.fromUTF8=tY;var t2=new tg(function(){for(var e={Fb:65536};0<e.Fb;e={Fb:e.Fb},e.Fb/=2)if(function(e){try{var t=new Uint8Array(e);return 0<String.fromCharCode.apply(null,t).length}catch(e){return!1}}(e.Fb))return function(e){return function(t){for(var n="",i=0;i<t.length;i+=e.Fb)n+=String.fromCharCode.apply(null,t.subarray(i,i+e.Fb));return n}}(e);return null});function t4(){}function t3(e){return btoa(e=t0(eT(e)))}function t5(e,t){return t=void 0==t||t,e=t3(e).replace(/\+/g,"-").replace(/\//g,"_"),t?e:e.replace(/[=]*$/,"")}function t6(t){t=e.atob(t.replace(/-/g,"+").replace(/_/g,"/"));for(var n=new Uint8Array(t.length),i=0;i<t.length;++i)n[i]=t.charCodeAt(i);return n}function t8(t){for(var n=t.length/2,i=new Uint8Array(n),r=0;r<n;r++)i[r]=e.parseInt(t.substr(2*r,2),16);return i}function t7(e){var t=eT(e);e="",t=v(t);for(var n=t.next();!n.done;n=t.next())1==(n=(n=n.value).toString(16)).length&&(n="0"+n),e+=n;return e}function t9(){for(var e=F.apply(0,arguments),t=0,n=0;n<e.length;++n)t+=e[n].byteLength;t=new Uint8Array(t);for(var i=n=0;i<e.length;++i){var r=e[i];r instanceof Uint8Array?t.set(r,n):t.set(eT(r),n),n+=r.byteLength}return t}function ne(e,t){if(0==t.length)return e;if(1==e.length&&1==t.length){var n=new e7(e[0]);return t=new e7(t[0]),[n.resolve(t).toString()]}t=t.map(function(e){return new e7(e)}),n=[],e=v(e);for(var i=e.next();!i.done;i=e.next()){i=new e7(i.value);for(var r=v(t),a=r.next();!a.done;a=r.next())n.push(i.resolve(a.value).toString())}return n}function nt(e,t,n,i){return e={keySystem:e,encryptionScheme:t,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:n||[],keyIds:new Set},i&&(e.keySystemUris=new Set([i])),e}function nn(t,n){n=void 0===n?"cenc":n;var i=[],r=[],a=[];t.forEach(function(e,t){var n=t;22!=n.length&&(n=t5(t8(t),!1));var o=e;22!=o.length&&(o=t5(t8(e),!1)),e={kty:"oct",kid:n,k:o},i.push(e),r.push(e.kid),a.push(t)}),t=JSON.stringify({keys:i});var o=JSON.stringify({kids:r});return o=[{initData:eT(tQ(o)),initDataType:"keyids"}],{keySystem:"org.w3.clearkey",encryptionScheme:n,licenseServerUri:"data:application/json;base64,"+e.btoa(t),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:o,keyIds:new Set(a)}}function ni(e,t){if(1==t.length)return t[0];if(null!=(e=nr(e,t)))return e;throw new tf(2,4,4025,t)}function nr(e,t){for(var n=v(nl[e]),i=n.next();!i.done;i=n.next()){i=i.value;for(var r=v(t),a=r.next();!a.done;a=r.next())if(a=a.value,i.test(a.trim()))return a.trim()}return e==no?"":null}function na(e,t){var n=[];e=v(nl[e]);for(var i=e.next();!i.done;i=e.next()){i=i.value;for(var r=v(t),a=r.next();!a.done;a=r.next())a=a.value,i.test(a.trim())&&n.push(a.trim())}return n}q("shaka.util.Uint8ArrayUtils",t4),t4.concat=t9,t4.toHex=t7,t4.fromHex=t8,t4.fromBase64=t6,t4.toBase64=t5,t4.toStandardBase64=t3;var no="text",ns={ia:"video",X:"audio",ua:no,eg:"image",Lh:"application"},nu=1/15,nl={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function nc(){}
1function nd(e,t){var n=e;return t&&!nT.includes(e)&&(n+='; codecs="'+t+'"'),n}function nh(e,t){return t&&(e+='; codecs="'+t+'"'),e}function nf(e,t,n){var i=nd(e,t);return e1(t=nh(e,t))?(e=e1(t))?(n=(e=e()).convertCodecs(n,t),e.destroy()):n=t:n="video/mp2t"!=e&&"audio"==n?i.replace("video","audio"):i,n}function np(e){return e.split(";")[0].split("/")[1]}function ng(e){var t=nw(e);switch(e=t[0],t=t[1].toLowerCase(),!0){case"mp4a"===e&&"69"===t:case"mp4a"===e&&"6b"===t:case"mp4a"===e&&"40.34"===t:return"mp3";case"mp4a"===e&&"66"===t:case"mp4a"===e&&"67"===t:case"mp4a"===e&&"68"===t:case"mp4a"===e&&"40.2"===t:case"mp4a"===e&&"40.02"===t:case"mp4a"===e&&"40.5"===t:case"mp4a"===e&&"40.05"===t:case"mp4a"===e&&"40.29"===t:case"mp4a"===e&&"40.42"===t:return"aac";case"mp4a"===e&&"a5"===t:return"ac-3";case"mp4a"===e&&"a6"===t:return"ec-3";case"mp4a"===e&&"b2"===t:return"dtsx";case"mp4a"===e&&"a9"===t:return"dtsc";case"avc1"===e:case"avc3"===e:return"avc";case"hvc1"===e:case"hev1"===e:return"hevc";case"vvc1"===e:case"vvi1"===e:return"vvc";case"dvh1"===e:case"dvhe"===e:return"dovi-hevc";case"dvav"===e:case"dva1"===e:return"dovi-avc";case"dav1"===e:return"dovi-av1";case"dvc1"===e:case"dvi1"===e:return"dovi-vvc"}return e}function nm(e){var t=[];e=v(e.split(","));for(var n=e.next();!n.done;n=e.next())t.push((n=nw(n.value))[0]);return t.sort().join(",")}function nv(e){return e.split(";")[0]}function ny(e){return(e=e.split(/ *; */)).shift(),(e=e.find(function(e){return e.startsWith("codecs=")}))?e.split("=")[1].replace(/^"|"$/g,""):""}function nb(e){return"application/x-mpegurl"===e||"application/vnd.apple.mpegurl"===e}function nw(e){var t=(e=e.split("."))[0];return e.shift(),[t,e.join(".")]}q("shaka.util.MimeUtils",nc),nc.getFullTypeWithAllCodecs=nh,nc.getFullType=nd;var nx=(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels"),nT=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function nS(e){this.i=null,this.j=e,this.B=!1,this.l=this.u=0,this.m=1/0,this.h=this.g=null,this.C="",this.A=function(){},this.o=new Map}function nA(e){return!!nk[e]||("application/cea-608"==e||"application/cea-708"==e)&&!!eM}function nE(e,t,n){if(e.C=t,t=e.o.get(t))for(var i=v(t.keys()),r=i.next();!r.done;r=i.next())(r=t.get(r.value).filter(function(e){return e.endTime<=n}))&&e.j.append(r)}nS.prototype.destroy=function(){return this.j=this.i=null,this.o.clear(),Promise.resolve()},nS.prototype.remove=function(e,t){var n=this;return B(function(i){if(1==i.g)return C(i,Promise.resolve(),2);!n.j||!n.j.remove(e,t)||null==n.g||t<=n.g||e>=n.h||(e<=n.g&&t>=n.h?n.g=n.h=null:e<=n.g&&t<n.h?n.g=t:e>n.g&&t>=n.h&&(n.h=e)),M(i)})},q("shaka.text.TextEngine",nS),nS.prototype.destroy=nS.prototype.destroy,nS.findParser=function(e){return nk[e]},nS.unregisterParser=function(e){delete nk[e]},nS.registerParser=function(e,t){nk[e]=t};var nk={};function nI(e,t){return e.concat(t)}function nC(){}function nM(e){return null!=e}function nD(){}function nR(e,t){return e=nL(e),t=nL(t),e.split("-")[0]==t.split("-")[0]}function nN(e,t){return e=nL(e),t=nL(t),e=e.split("-"),t=t.split("-"),e[0]==t[0]&&1==e.length&&2==t.length}function nP(e,t){return e=nL(e),t=nL(t),e=e.split("-"),t=t.split("-"),2==e.length&&2==t.length&&e[0]==t[0]}function nL(e){var t=(e=v(e.split("-x-"))).next().value;t=void 0===t?"":t,e=void 0===(e=e.next().value)?"":e;var n=v(t.split("-"));return t=void 0===(t=n.next().value)?"":t,n=void 0===(n=n.next().value)?"":n,e=e?"x-"+e:"",t=t.toLowerCase(),t=nB.get(t)||t,((n=n.toUpperCase())?t+"-"+n:t)+(e?"-"+e:"")}function nj(e,t){return e=nL(e),(t=nL(t))==e?4:nN(t,e)?3:nP(t,e)?2:+!!nN(e,t)}function nO(e){var t=e.indexOf("-");return e=(e=0<=t?e.substring(0,t):e).toLowerCase(),nB.get(e)||e}function nU(e){return e.language?nL(e.language):e.audio&&e.audio.language?nL(e.audio.language):e.video&&e.video.language?nL(e.video.language):"und"}function n_(e,t){e=nL(e);var n=new Set;t=v(t);for(var i=t.next();!i.done;i=t.next())n.add(nL(i.value));for(i=(t=v(n)).next();!i.done;i=t.next())if((i=i.value)==e)return i;for(i=(t=v(n)).next();!i.done;i=t.next())if(nN(i=i.value,e))return i;for(i=(t=v(n)).next();!i.done;i=t.next())if(nP(i=i.value,e))return i;for(t=(n=v(n)).next();!t.done;t=n.next())if(nN(e,t=t.value))return t;return null}q("shaka.util.LanguageUtils",nD),nD.findClosestLocale=n_,nD.getLocaleForVariant=nU,nD.getLocaleForText=function(e){return nL(e.language||"und")},nD.getBase=nO,nD.relatedness=nj,nD.areSiblings=function(e,t){var n=nO(e),i=nO(t);return e!=n&&t!=i&&n==i},nD.normalize=nL,nD.isSiblingOf=nP,nD.isParentOf=nN,nD.areLanguageCompatible=nR,nD.areLocaleCompatible=function(e,t){return(e=nL(e))==(t=nL(t))};var nB=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["
1ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function nF(e){var t=new WeakSet;return function e(n){switch(typeof n){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return n;default:if(!n||n.buffer instanceof ArrayBuffer)return n;if(t.has(n))return null;var i=n.constructor==Array;if(n.constructor!=Object&&!i)return null;t.add(n);var r,a=i?[]:{};for(r in n)a[r]=e(n[r]);return i&&(a.length=n.length),a}}(e)}function nH(e){var t,n={};for(t in e)n[t]=e[t];return n}function nV(){}function nG(e,t,n){t=v(t);for(var i=t.next(),r={};!i.done;r={ag:void 0},i=t.next())if(r.ag=i.value,(i=e.filter(function(e){return function(t){return t.video&&t.video.codecs.startsWith(e.ag)}}(r))).length){e=i;break}for(t=(n=v(n)).next(),i={};!t.done;i={We:void 0},t=n.next())if(i.We=t.value,(t=e.filter(function(e){return function(t){return t.audio&&t.audio.codecs.startsWith(e.We)}}(i))).length){e=t;break}return e}function nK(e,t,n){var i,r,a,o,s,u,l,c,d,h=e.video;if(h&&h.width&&h.height){var f,p,g,m,y,b,w,x,T,S=h.width,A=h.height;if(A>S&&(S=(A=v([A,S])).next().value,A=A.next().value),f=S,p=t.minWidth,g=Math.min(t.maxWidth,n.width),!(f>=p)||!(f<=g)||(m=A,y=t.minHeight,b=Math.min(t.maxHeight,n.height),!(m>=y)||!(m<=b))||(w=h.width*h.height,x=t.minPixels,T=t.maxPixels,!(w>=x)||!(w<=T)))return!1}return(!e||!e.video||!e.video.frameRate||(i=e.video.frameRate,r=t.minFrameRate,a=t.maxFrameRate,i>=r&&i<=a))&&(!e||!e.audio||!e.audio.channelsCount||(o=e.audio.channelsCount,s=t.minChannelsCount,u=t.maxChannelsCount,o>=s&&o<=u))&&(l=e.bandwidth,c=t.minBandwidth,d=t.maxBandwidth,l>=c&&l<=d)}function nX(e,t,n){var i=!1;e=v(e);for(var r=e.next();!r.done;r=e.next()){var a=(r=r.value).allowedByApplication;r.allowedByApplication=nK(r,t,n),a!=r.allowedByApplication&&(i=!0)}return i}function nW(e,t){var n,i,r,a,o,s,u;return B(function(l){if(1==l.g){for(n=function(e,t){if(e){var n=nH(e);return n.supported=e.supported&&t.supported,n.powerEfficient=e.powerEfficient&&t.powerEfficient,n.smooth=e.smooth&&t.smooth,t.keySystemAccess&&!n.keySystemAccess&&(n.keySystemAccess=t.keySystemAccess),n}return t},i=null,r=[],o=(a=v(t)).next(),s={};!o.done;s={cache:void 0,Xc:void 0},o=a.next())u=o.value,s.Xc=function e(t){var n=[];for(i in t)n.push(i);n.sort();var i=[];n=v(n);for(var r=n.next();!r.done;r=n.next()){var a=r.value;r=JSON.stringify(a),a=(a=t[a])instanceof Object?e(a):JSON.stringify(a),i.push(r+":"+a)}return"{"+i.join(",")+"}"}(u),s.cache=n9,s.cache[s.Xc]?i=n(i,s.cache[s.Xc]):r.push((function(e){var t=[""];e.video&&(t=ny(e.video.contentType).split(","));var n=[""];e.audio&&(n=ny(e.audio.contentType).split(","));var i=[];t=v(t);for(var r=t.next();!r.done;r=t.next()){r=r.value;for(var a=v(n),o=a.next(),s={};!o.done;s={Yb:void 0},o=a.next())o=o.value,s.Yb=nF(e),e.video&&(s.Yb.video.contentType=nd(nv(s.Yb.video.contentType),r)),e.audio&&(s.Yb.audio.contentType=nd(nv(s.Yb.audio.contentType),o)),i.push(new Promise(function(e){return function(t,n){navigator.mediaCapabilities.decodingInfo(e.Yb).then(function(e){t(e)}).catch(n)}}(s)))}return Promise.all(i).catch(function(){return JSON.stringify(e),null})})(u).then(function(e){return function(t){var r=null;t=v(t||[]);for(var a=t.next();!a.done;a=t.next())r=n(r,a.value);r&&(e.cache[e.Xc]=r,i=n(i,r))}}(s)));return C(l,Promise.all(r),2)}i&&e.decodingInfos.push(i),M(l)})}function nq(e,t,n,i){var r,a,o,s,u,l,c,d,h,f,p,g,m,y,b,w;return B(function(x){switch(x.g){case 1:if(e.some(function(e){return e.decodingInfos.length}))return x.return();a=(r=v(i)).next(),o={};case 2:if(a.done){x.s(4);break}o.Ff=a.value,s=!1,l=(u=v(e)).next();case 5:var T;if(l.done){x.s(7);break}h=(d=v(nz(c=l.value,t,n).filter((T=o,function(e){return((e=e[0]).keySystemConfiguration&&e.keySystemConfiguration.keySystem)===T.Ff})))).next();case 8:if(h.done){x.s(10);break}return f=h.value,C(x,nW(c,f),9);case 9:h=d.next(),x.s(8);break;case 10:c.decodingInfos.length&&(s=!0),l=u.next(),x.s(5);break;case 7:if(s)return x.return();o={Ff:void 0},a=r.next(),x.s(2);break;case 4:g=(p=v(e)).next();case 12:if(g.done){x.s(0);break}b=(y=v(nz(m=g.value,t,n).filter(function(e){return!(e=(e=e[0]).keySystemConfiguration&&e.keySystemConfiguration.keySystem)||!i.includes(e)}))).next();case 15:if(b.done){g=p.next(),x.s(12);break}return w=b.value,C(x,nW(m,w),16);
1case 16:b=y.next(),x.s(15)}})}function nz(e,t,n){var i=e.audio,r=e.video,a=[],o=[];if(r)for(var s=v(r.fullMimeTypes),u=s.next();!u.done;u=s.next()){var l=ny(u=u.value);if(l.includes(",")&&!i){var c=l.split(","),d=nv(u);l=ni("video",c),c=nY(c=ni("audio",c),d),d=nf(d,c,"audio"),o.push({contentType:d,channels:2,bitrate:e.bandwidth||1,samplerate:1,spatialRendering:!1})}if(l=nJ(l),u={contentType:nf(nv(u),l,"video"),width:r.width||64,height:r.height||64,bitrate:r.bandwidth||e.bandwidth||1,framerate:r.frameRate||1},r.hdr)switch(r.hdr){case"SDR":u.transferFunction="srgb";break;case"PQ":u.transferFunction="pq";break;case"HLG":u.transferFunction="hlg"}r.colorGamut&&(u.colorGamut=r.colorGamut),a.push(u)}if(i)for(u=(s=v(i.fullMimeTypes)).next();!u.done;u=s.next())u=nv(l=u.value),l=nY(ny(l),u),u=nf(u,l,"audio"),o.push({contentType:u,channels:i.channelsCount||2,bitrate:i.bandwidth||e.bandwidth||1,samplerate:i.audioSamplingRate||1,spatialRendering:i.spatialAudio});for(s=[],0==a.length&&a.push(null),0==o.length&&o.push(null),u=(a=v(a)).next();!u.done;u=a.next())for(u=u.value,d=(l=v(o)).next();!d.done;d=l.next())d=d.value,c={type:n?"file":"media-source"},u&&(c.video=u),d&&(c.audio=d),s.push(c);if(!(o=(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])).length)return[s];for(e=[],n=new Map,a=(o=v(o)).next();!a.done;a=o.next())a=a.value,n.get(a.keySystem)||n.set(a.keySystem,[]),n.get(a.keySystem).push(a);for(o=t?"required":"optional",t=t?["persistent-license"]:["temporary"],u=(a=v(n.keys())).next();!u.done;u=a.next()){for(u=u.value,d=n.get(u),l=new Map,c=(d=v(d)).next();!c.done;c=d.next()){var h=(c=c.value).videoRobustness+","+c.audioRobustness;l.get(h)||l.set(h,[]),l.get(h).push(c)}for(d=(l=v(l.values())).next();!d.done;d=l.next()){d=d.value,c=[],h=v(s);for(var f=h.next();!f.done;f=h.next()){f=Object.assign({},f.value);for(var p={keySystem:u,initDataType:"cenc",persistentState:o,distinctiveIdentifier:"optional",sessionTypes:t},g=v(d),m=g.next();!m.done;m=g.next()){if((m=m.value).initData&&m.initData.length){for(var y=new Set,b=v(m.initData),w=b.next();!w.done;w=b.next())y.add(w.value.initDataType);p.initDataType=m.initData[0].initDataType}m.distinctiveIdentifierRequired&&(p.distinctiveIdentifier="required"),m.persistentStateRequired&&(p.persistentState="required"),m.sessionType&&(p.sessionTypes=[m.sessionType]),i&&(p.audio?(m.encryptionScheme&&(p.audio.encryptionScheme=p.audio.encryptionScheme||m.encryptionScheme),p.audio.robustness=p.audio.robustness||m.audioRobustness):(p.audio={robustness:m.audioRobustness},m.encryptionScheme&&(p.audio.encryptionScheme=m.encryptionScheme))),r&&(p.video?(m.encryptionScheme&&(p.video.encryptionScheme=p.video.encryptionScheme||m.encryptionScheme),p.video.robustness=p.video.robustness||m.videoRobustness):(p.video={robustness:m.videoRobustness},m.encryptionScheme&&(p.video.encryptionScheme=m.encryptionScheme)))}f.keySystemConfiguration=p,c.push(f)}e.push(c)}}return e}function nY(e,t){return"flac"==e.toLowerCase()?tB()?"fLaC":"flac":"opus"===e.toLowerCase()?tB()&&"mp4"==np(t)?"Opus":"opus":e}function nJ(e){if(e.includes("avc1")){var t=e.split(".");if(3==t.length)return t.shift()+"."+parseInt(t.shift(),10).toString(16)+("000"+parseInt(t.shift(),10).toString(16)).slice(-4)}else if("vp9"==e)return"vp09.00.41.08";return e}function n$(e){var t=e.audio,n=e.video,i=t?t.mimeType:null,r=n?n.mimeType:null,a=t?t.codecs:null,o=n?n.codecs:null,s=[];o&&s.push(o),a&&s.push(a);var u=[];n&&u.push(n.mimeType),t&&u.push(t.mimeType),u=u[0]||null;var l=[];t&&l.push(t.kind),n&&l.push(n.kind),l=l[0]||null;var c=new Set;if(t)for(var d=v(t.roles),h=d.next();!h.done;h=d.next())c.add(h.value);if(n)for(h=(d=v(n.roles)).next();!h.done;h=d.next())c.add(h.value);return e={id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null,kind:l,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:u,audioMimeType:i,videoMimeType:r,codecs:s.join(", "),audioCodec:a,videoCodec:o,primary:e.primary,roles:Array.from(c),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,maxSegmentDuration:null,audio
1Bandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null},n&&(e.videoId=n.id,e.originalVideoId=n.originalId,e.width=n.width||null,e.height=n.height||null,e.frameRate=n.frameRate||null,e.pixelAspectRatio=n.pixelAspectRatio||null,e.videoBandwidth=n.bandwidth||null,e.hdr=n.hdr||null,e.colorGamut=n.colorGamut||null,e.videoLayout=n.videoLayout||null,o.includes(",")&&(e.channelsCount=n.channelsCount,e.audioSamplingRate=n.audioSamplingRate,e.spatialAudio=n.spatialAudio,e.originalLanguage=n.originalLanguage)),t&&(e.audioId=t.id,e.originalAudioId=t.originalId,e.channelsCount=t.channelsCount,e.audioSamplingRate=t.audioSamplingRate,e.audioBandwidth=t.bandwidth||null,e.spatialAudio=t.spatialAudio,e.label=t.label,e.audioRoles=t.roles,e.accessibilityPurpose=t.accessibilityPurpose,e.originalLanguage=t.originalLanguage),e}function nQ(e){return{id:e.id,active:!1,type:no,bandwidth:0,language:e.language,label:e.label,kind:e.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:e.primary,roles:e.roles,audioRoles:null,forced:e.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,maxSegmentDuration:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:e.originalId,originalImageId:null,accessibilityPurpose:e.accessibilityPurpose,originalLanguage:e.originalLanguage}}function nZ(e){var t=e.width||null,n=e.height||null,i=null;e.segmentIndex&&(i=aT(e.segmentIndex));var r=e.tilesLayout;return i&&(r=i.tilesLayout||r),r&&null!=t&&(t/=Number(r.split("x")[0])),r&&null!=n&&(n/=Number(r.split("x")[1])),{id:e.id,active:!1,type:"image",bandwidth:e.bandwidth||0,language:"",label:null,kind:null,width:t,height:n,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:r||null,maxSegmentDuration:e.maxSegmentDuration||null,audio
1Bandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:e.originalId,accessibilityPurpose:null,originalLanguage:null}}function n0(e){return e.__shaka_id||(e.__shaka_id=ie++),e.__shaka_id}function n1(e){var t=n4(e);return t.active="disabled"!=e.mode,t.type="text",t.originalTextId=e.id,"captions"==e.kind&&(t.mimeType="unknown"),"subtitles"==e.kind&&(t.mimeType="text/vtt"),e.kind&&(t.roles=[e.kind]),"forced"==e.kind&&(t.forced=!0),t}function n2(e){var t=n4(e);return t.active=e.enabled,t.type="variant",t.originalAudioId=e.id,"main"==e.kind&&(t.primary=!0),e.kind&&(t.roles=[e.kind],t.audioRoles=[e.kind],t.label=e.label),t}function n4(e){var t=e.language;return{id:n0(e),active:!1,type:"",bandwidth:0,language:nL(t||"und"),label:e.label,kind:e.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioR
1oles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,maxSegmentDuration:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:t}}function n3(e){return e.allowedByApplication&&e.allowedByKeySystem&&0==e.disabledUntilTime}function n5(e){return e.filter(function(e){return n3(e)})}function n6(e,t,n,i){var r=e,a=e.filter(function(e){return e.primary});a.length&&(r=a);var o=r.length?r[0].language:"";if(r=r.filter(function(e){return e.language==o}),t){var s=n_(nL(t),e.map(function(e){return e.language}));s&&(r=e.filter(function(e){return nL(e.language)==s}))}if(r=r.filter(function(e){return e.forced==i}),n){if((e=n8(r,n)).length)return e}else if((e=r.filter(function(e){return 0==e.roles.length})).length)return e;return(e=r.map(function(e){return e.roles}).reduce(nI,[])).length?n8(r,e[0]):r}function n8(e,t){return e.filter(function(e){return e.roles.includes(t)})}function n7(e){return"audio"==e.type?"type=audio codecs="+e.codecs+" bandwidth="+e.bandwidth+" channelsCount="+e.channelsCount+" audioSamplingRate="+e.audioSamplingRate:"video"==e.type?"type=video codecs="+e.codecs+" bandwidth="+e.bandwidth+" frameRate="+e.frameRate+" width="+e.width+" height="+e.height:"unexpected stream type"}q("shaka.util.StreamUtils",nV),nV.meetsRestrictions=nK;var n9={},ie=0,it=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),ii=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function ir(){var e=this;this.u=null,this.l=!1,this.j=new Q,this.F=new ea,navigator.connection&&navigator.connection.addEventListener&&this.F.J(navigator.connection,"change",function(){if(e.l&&e.g.useNetworkInformation){e.j=new Q,e.g&&e.j.configure(e.g.advanced);var t=e.chooseVariant();t&&navigator.onLine&&e.u(t,e.g.clearBufferSwitch,e.g.safeMarginSwitch)}}),this.A=[],this.C=null,this.B=1,this.H=!1,this.h=this.o=this.g=this.i=null,this.D=new tT(function(){if(e.l&&e.g.restrictToElementSize){var t=e.chooseVariant();t&&e.u(t,e.g.clearBufferSwitch,e.g.safeMarginSwitch)}}),this.m=null}function ia(t,n){n=void 0!==n&&n;var i=1/0,r=1/0;if(t.g.restrictToScreenSize&&(r=t.g.ignoreDevicePixelRatio?1:e.devicePixelRatio,i=e.screen.height*r,r*=e.screen.width),t.h&&t.g.restrictToElementSize){var a=t.g.ignoreDevicePixelRatio?1:e.devicePixelRatio;i=Math.min(i,t.o.clientHeight*a),r=Math.min(r,t.o.clientWidth*a)}var o=t.A.filter(function(e){return e&&!(e.audio&&e.audio.fastSwitching||e.video&&e.video.fastSwitching)});if(o.length||(o=t.A),a=o,n&&o.length!=t.A.length&&(a=t.A.filter(function(e){return e&&(!!e.audio&&!!e.audio.fastSwitching||!!e.video&&!!e.video.fastSwitching)})),n=is(t,t.g.restrictions,a,i,r),1/0!=i||1/0!=r){for(o=(n=v(n=function(e){var t=[];e=v(e);for(var n=e.next();!n.done;n=e.next())(n=n.value.video)&&n.height&&n.width&&t.push({height:n.height,width:n.width});return t.sort(function(e,t){return e.width-t.width})}(n))).next();!o.done;o=n.next())if((o=o.value).height>=i&&o.width>=r){i=o.height,r=o.width;break}n=is(t,t.g.restrictions,a,i,r)}return a.length&&!n.length&&(n=[(n=is(t,null,a,1/0,1/0))[0]]),n}function io(e,t){if(!e.H){var n=e.j;if(!(n.g>=n.i))return;e.H=!0,e.i-=1e3*(e.g.switchInterval-e.g.minTimeToSwitch)}!t&&Date.now()-e.i<1e3*e.g.switchInterval||(t=e.chooseVariant(),e.getBandwidthEstimate(),t&&e.u(t,e.g.clearBufferSwitch,e.g.safeMarginSwitch))}function is(e,t,n,i,r){if(e.m){var a=e.m.mf();a&&(n=n.filter(function(e){return!e.bandwidth||!a||e.bandwidth<=a}))}return t&&(n=n.filter(function(e){return nK(e,t,{width:r,height:i})})),n.sort(function(e,t){return e.bandwidth-t.bandwidth})}(b=ir.prototype).stop=function(){this.u=null,this.l=!1,this.A=[],this.B=1,this.o=this.i=null,this.h&&(this.h.disconnect(),this.h=null),this.D.stop(),this.m=null},b.release=function(){this.F.release(),this.D=null},b.init=function(e){this.u=e},b.chooseVariant=function(e){e=ia(this,void 0!==e&&e);for(var t=this.getBandwidthEstimate(),n=e[0]||null,i=0;i<e.length;i++){for(var r=e[i],a=isNaN(this.B)?1:Math.abs(this.B),o=a*r.bandwidth/this.g.bandwidthDowngradeTarget,s={bandwidth:1/0},u=i+1;u<e.length;u++)if(r.bandwidth!=e[u].bandwidth){s=e[u];break}a=a*s.bandwidth/this.g.bandwidthUpgradeTarget,t>=o&&t<=a&&(n.bandwidth!=r.bandwidth||n.bandwidth==r.bandwidth&&n.video&&r.video&&(n.video.width<r.video.width||n.video.height<r.video.height))&&(n=r)}return this.i=Date.now(),this.C=n},b.enable=function(){this.l=!0},b.disable=function(){this.l=!1},b.segmentDownloaded=function(e,t,n){if(!(e<this.g.cacheLoadThreshold)){var i=-1===t;i||this.j.sample(e,t),n&&null!=this.i&&this.l&&(i&&this.g.forceLowestRateOnTimeout?(e=this.C,(t=ia(this)[0])!=e&&(this.i=Date.now(),this.C=t,this.u(t))):io(this,i))}},b.trySuggestStreams=function(){null!=this.i&&this.l&&io(this,!1)},b.getBandwidthEstimate=function(){var e=this.g.defaultBandwidthEstimate;return navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(e=1e6*navigator.connection.downlink),e=this.j.getBandwidthEstimate(e),this.m?this.m.getBandwidthEstimate(e):e},b.setVariants=function(e){this.A=e},b.playbackRateChanged=function(e){this.B=e},b.setMediaElement=function(t){var n=this;this.o=t,this.h&&(this.h.disconnect(),this.h=null),this.o&&"ResizeObserver"in e&&(this.h=new ResizeObserver(function(){n.D.da(iu)}),this.h.observe(this.o))},b.setCmsdManager=function(e){this.m=e},b.configure=function(e){this.g=e,this.j&&this.g&&this.j.configure(this.g.advanced)},q("shaka.abr.SimpleAbrManager",ir),ir.prototype.configure=ir.prototype.configure,ir.prototype.setCmsdManager=ir.prototype.setCmsdManager,ir.prototype.setMediaElement=ir.prototype.setMediaElement,ir.prototype.playbackRateChanged=ir.prototype.playbackRateChanged,ir.prototype.setVariants=ir.prototype.setVariants,ir.prototype.getBandwidthEstimate=ir.prototype.getBandwidthEstimate,ir.prototype.trySuggestStreams=ir.prototype.trySuggestStreams,ir.prototype.segmentDownloaded=ir.prototype.segmentDownloaded,ir.prototype.disable=ir.prototype.disable,ir.prototype.enable=ir.prototype.enable,ir.prototype.chooseVariant=ir.prototype.chooseVariant,ir.prototype.init=ir.prototype.init,ir.prototype.release=ir.prototype.release,ir.prototype.stop=ir.prototype.stop;var iu=1;function il(e,t,n,i,r){if(i>=r)return null;for(var a=-1,o=-1,s=0;s<n.length;s++)if(n[s].some(function(e){return null!=e&&""!=e.g.trim()})){a=s;break}for(s=n.length-1;0<=s;s--)if(n[s].some(function(e){return null!=e&&""!=e.g.trim()})){o=s;break}if(-1===a||-1===o)return null;for(var u=s=!1,l="white",c="black",d=ic(i,r,s,u,l,c);a<=o;a++){for(var h=n[a],f=-1,p=-1,g=0;g<h.length;g++)if(null!=h[g]&&""!==h[g].g.trim()){f=g;break}for(g=h.length-1;0<=g;g--)if(null!=h[g]&&""!==h[g].g.trim()){p=g;break}if(-1===f||-1===p)h=id(i,r),e.nestedCues.push(h);else{for(;f<=p;f++)if(g=h[f]){var m=g.l,v=g.i,y=g.j,b=g.h;(m!=s||v!=u||y!=l||b!=c)&&(d.payload&&e.nestedCues.push(d),d=ic(i,r,m,v,y,b),s=m,u=v,l=y,c=b),d.payload+=g.g}else d.payload+=" ";d.payload&&e.nestedCues.push(d),a!==o&&(d=id(i,r),e.nestedCues.push(d)),d=ic(i,r,s,u,l,c)}}return e.nestedCues.length?{cue:e,stream:t}:null}function ic(e,t,n,i,r,a){return e=new eO(e,t,""),n&&e.textDecoration.push("underline"),i&&(e.fontStyle="italic"),e.color=r,e.backgroundColor=a,e}function id(e,t){return(e=new eO(e,t,"")).lineBreak=!0,e}function ih(e,t,n,i,r){this.g=e,this.l=t,this.i=n,this.h=i,this.j=r}function ip(e,t){this.i=[],this.g=1,this.h=0,this.A=e,this.u=t,this.j=this.m=!1,this.l="white",this.o="black",im(this)}function ig(e,t,n){var i="CC"+((e.A<<1|e.u)+1),r=new eO(t,n,"");r.lineInterpretation=1;var a=iA.get(e.g);return a&&(r.line=a),(t=il(r,i,e.i,t,n))&&15<e.g+t.cue.nestedCues.length-3&&(a=iA.get(e.g+3-t.cue.nestedCues.length))&&(r.line=a),t}function im(e){ib(e,0,15),e.g=1}function iv(e,t,n){if(!(32>n||127<n)){var i="";switch(t){case 0:i=iw.has(n)?iw.get(n):String.fromCharCode(n);break;case 1:i=ix.get(n);break;case 2:e.i[e.g].pop(),i=iT.get(n);break;case 3:e.i[e.g].pop(),i=iS.get(n)}i&&e.i[e.g].push(new ih(i,e.m,e.j,e.o,e.l))}}function iy(e,t,n,i){if(!(0>n||0>t))if(t>=n)for(--i;0<=i;i--)e.i[t+i]=e.i[n+i].map(function(e){return e});else for(var r=0;r<i;r++)e.i[t+r]=e.i[n+r].map(function(e){return e})}function ib(e,t,n){for(var i=0;i<=n;i++)e.i[t+i]=[]}var iw=new Map([[39,"â"],[42,"\xe1"],[92,"\xe9"],[92,"\xe9"],[94,"\xed"],[95,"\xf3"],[96,"\xfa"],[123,"\xe7"],[124,"\xf7"],[125,"\xd1"],[126,"\xf1"],[127,"â"]]),ix=new Map([[48,"\xae"],[49,"\xb0"],[50,"\xbd"],[51,"\xbf"],[52,"â¢"],[53,"\xa2"],[54,"\xa3"],[55,"âª"],[56,"\xe0"],[57," "],[58,"\xe8"],[59,"\xe2"],[60,"\xea"],[61,"\xee"],[62,"\xf4"],[63,"\xfb"]]),iT=new Map([[32,"\xc1"],[33,"\xc9"],[34,"\xd3"],[35,"\xda"],[36,"\xdc"],[37,"\xfc"],[38,"â"],[39,"\xa1"],[40,"*"],[41,"'"],[42,"â"],[43,"\xa9"],[44,"â "],[45,"\xb7"],[46,"â"],[47,"â"],[48,"\xc0"],[49,"\xc2"],[50,"\xc7"],[51,"\xc8"],[52,"\xca"],[53,"\xcb"],[54,"\xeb"],[55,"\xce"],[56,"\xcf"],[57,"\xef"],[58,"\xd4"],[59,"\xd9"],[60,"\xf9"],[61,"\xdb"],[62,"\xab"],[63,"\xbb"]]),iS=new Map([[32,"\xc3"],[33,"\xe3"],[34,"\xcd"],[35,"\xcc"],[36,"\xec"],[37,"\xd2"],[38,"\xf2"],[39,"\xd5"],[40,"\xf5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\xc4"],[49,"\xe4"],[50,"\xd6"],[51,"\xf6"],[52,"\xdf"],[53,"\xa5"],[54,"\xa4"],[55,"â"],[56,"\xc5"],[57,"\xe5"],[58,"\xd8"],[59,"\xf8"],[60,"â"],[61,"â"],[62,"â"],[63,"â"]]),iA=new Map([[1,10],[2,15.33],[3,20.66],[4,26],[5,31.33],[6,36.66],[7,42],[8,47.33],[9,52.66],[10,58],[11,63.33],[12,68.66],[13,74],[14,79.33],[15,84.66]]);function iE(e,t){this.h=0,this.o=new ip(e,t),this.i=new ip(e,t),this.g=this.j=new ip(e,t),this.l=0,this.m=null}
1function ik(e,t,n){e.g=e.i;var i=e.g,r=null;return 3!==e.h&&4!==e.h&&(r=ig(i,e.l,n),(n=e.i).g=0<n.h?n.h:0,ib(n,0,15),(n=e.j).g=0<n.h?n.h:0,ib(n,0,15),i.g=15),e.h=3,i.h=t,r}function iI(e){e.h=1,e.g=e.j,e.g.h=0}function iC(e){en("Cea608DataChannel","CEA-608 text mode entered, but is unsupported"),e.g=e.o,e.h=4}var iM="black green blue cyan red yellow magenta black".split(" "),iD="white green blue cyan red yellow magenta white_italics".split(" ");function iR(e,t){this.I=t,this.M=e,this.K=this.l=!1,this.m=this.o=this.F=this.L=this.H=0,this.D=2,this.i=[],this.g=this.h=this.j=0,this.C=this.A=!1,this.B="white",this.u="black",iN(this)}function iN(e){e.i=[];for(var t=0;16>t;t++)e.i.push(iP())}function iP(){for(var e=[],t=0;42>t;t++)e.push(null);return e}function iL(e,t){ij(e)&&(e.i[e.h][e.g]=new ih(t,e.C,e.A,e.u,e.B),e.g++)}function ij(e){var t=e.g<e.m&&0<=e.g;return e.h<e.o&&0<=e.h&&t}function iO(e,t,n){var i=new eO(e.j,t,"");i.textAlign=0===e.D?"left":1===e.D?"right":eF;var r=i.region;switch(e.I&&(r.id+="svc"+e.I),r.id+="win"+e.M,r.height=e.o,r.width=e.m,r.heightUnits=2,r.widthUnits=2,r.viewportAnchorX=e.H,r.viewportAnchorY=e.L,r.viewportAnchorUnits=e.K?eR:2,e.F){case 0:r.regionAnchorX=0,r.regionAnchorY=0;break;case 1:r.regionAnchorX=50,r.regionAnchorY=0;break;case 2:r.regionAnchorX=100,r.regionAnchorY=0;break;case 3:r.regionAnchorX=0,r.regionAnchorY=50;break;case 4:r.regionAnchorX=50,r.regionAnchorY=50;break;case 5:r.regionAnchorX=100,r.regionAnchorY=50;break;case 6:r.regionAnchorX=0,r.regionAnchorY=100;break;case 7:r.regionAnchorX=50,r.regionAnchorY=100;break;case 8:r.regionAnchorX=100,r.regionAnchorY=100}return(n=il(i,"svc"+n,e.i,e.j,t))&&(e.j=t),n}function iU(){this.i=[],this.h=null,this.g=0}function i_(e){this.g=0,this.h=e}function iB(e){if(!e.na())throw new tf(2,2,3e3);return e.h[e.g++]}function iF(e){this.i=e,this.h=[null,null,null,null,null,null,null,null],this.g=null}function iH(e,t){for(var n=[],i=0;8>i;i++)1==(1&t)&&e.h[i]&&n.push(i),t>>=1;return n}function iV(e,t,n){var i=[];t=v(iH(e,t));for(var r=t.next();!r.done;r=t.next()){r=r.value;var a=e.h[r];a.isVisible()&&(a=iO(a,n,e.i))&&i.push(a),e.h[r]=null}return i}function iG(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function iK(e,t,n){var i={0:0,1:0,2:1,3:1};return e=i[e],t=i[t],iW[e<<2|t<<1|(n=i[n])]}iR.prototype.isVisible=function(){return this.l},i_.prototype.na=function(){return this.g<this.h.length},i_.prototype.ra=function(){return this.g},i_.prototype.skip=function(e){if(this.g+e>this.h.length)throw new tf(2,2,3e3);this.g+=e};var iX=new Map([[32," "],[33,"\xa0"],[37,"â¦"],[42,"Å "],[44,"Å"],[48,"â"],[49,"â"],[50,"â"],[51,"â"],[52,"â"],[53,"â¢"],[57,"â¢"],[58,"Å¡"],[60,"Å"],[61,"â "],[63,"Ÿ"],[118,"â
"],[119,"â
"],[120,"â
"],[121,"â
"],[122,"â"],[123,"â"],[124,"â"],[125,"â"],[126,"â"],[127,"â"]]),iW="black blue green cyan red magenta yellow white".split(" ");function iq(e,t){this.h=eA(e),this.i=t==iY,this.g=0}function iz(){return new tf(2,3,3e3)}(b=iq.prototype).na=function(){return this.g<this.h.byteLength},b.ra=function(){return this.g},b.getLength=function(){return this.h.byteLength},b.S=function(){try{var e=this.h.getUint8(this.g);return this.g+=1,e}catch(e){throw iz()}},b.ma=function(){try{var e=this.h.getUint16(this.g,this.i);return this.g+=2,e}catch(e){throw iz()}},b.N=function(){try{var e=this.h.getUint32(this.g,this.i);return this.g+=4,e}catch(e){throw iz()}},b.Hf=function(){try{var e=this.h.getInt32(this.g,this.i);return this.g+=4,e}catch(e){throw iz()}},b.mc=function(){try{if(this.i)var e=this.h.getUint32(this.g,!0),t=this.h.getUint32(this.g+4,!0);else t=this.h.getUint32(this.g,!1),e=this.h.getUint32(this.g+4,!1)}catch(e){throw iz()}if(2097151<t)throw new tf(2,3,3001);return this.g+=8,0x100000000*t+e},b.Ua=function(e){if(this.g+e>this.h.byteLength)throw iz();var t=eT(this.h,this.g,e);return this.g+=e,t},b.skip=function(e){if(this.g+e>this.h.byteLength)throw iz();this.g+=e},b.xh=function(e){if(this.g<e)throw iz();this.g-=e},b.seek=function(e){if(0>e||e>this.h.byteLength)throw iz();this.g=e},b.Sb=function(){for(var e=this.g;this.na()&&0!=this.h.getUint8(this.g);)this.g+=1;return e=eT(this.h,e,this.g-e),this.g+=1,tY(e)},q("shaka.util.DataViewReader",iq),iq.prototype.readTerminatedString=iq.prototype.Sb,iq.prototype.seek=iq.prototype.seek,iq.prototype.rewind=iq.prototype.xh,iq.prototype.skip=iq.prototype.skip,iq.prototype.readBytes=iq.prototype.Ua,iq.prototype.readUint64=iq.prototype.mc,iq.prototype.readInt32=iq.prototype.Hf,iq.prototype.readUint32=iq.prototype.N,iq.prototype.readUint16=iq.prototype.ma,iq.prototype.readUint8=iq.prototype.S,iq.prototype.getLength=iq.prototype.getLength,iq.prototype.getPosition=iq.prototype.ra,iq.prototype.hasMoreData=iq.prototype.na;var iY=1;function iJ(){this.h=[],this.g=[],this.i=new iU,this.l=0,this.m=new Map([["CC1",new iE(0,0)],["CC2",new iE(0,1)],["CC3",new iE(1,0)],["CC4",new iE(1,1)]]),this.u=this.o=0,this.j=new Map,this.B=!0,this.A=new Set,i$(this)}function i$(e){e.o=0,e.u=0;for(var t=v(e.m.values()),n=t.next();!n.done;n=t.next())(n=n.value).h=0,n.g=n.j,n.m=null,im(n.i),im(n.j),im(n.o);e.B=!0}function iQ(e){for(var t=0;e;)t^=1&e,e>>=1;return 1===t}function iZ(){this.i=[],this.h=[],this.g=!1}function i0(e){for(var t=i8(e);e.reader.na()&&!e.parser.g;)e.parser.jc(e.start+t,e.reader,e.partialOkay)}function i1(e){for(var t=i8(e),n=e.reader.N(),i=0;i<n&&(e.parser.jc(e.start+t,e.reader,e.partialOkay),!e.parser.g);i++);}function i2(e){var t=i8(e);for(e.reader.skip(78);e.reader.na()&&!e.parser.g;)e.parser.jc(e.start+t,e.reader,e.partialOkay)}function i4(e){var t=i8(e);e.reader.skip(8);var n=e.reader.ma();for(e.reader.skip(6),2==n?e.reader.skip(48):e.reader.skip(12),1==n&&e.reader.skip(16);e.reader.na()&&!e.parser.g;)e.parser.jc(e.start+t,e.reader,e.partialOkay)}function i3(e){return function(t){e(t.reader.Ua(t.reader.getLength()-t.reader.ra()))}}function i5(e){var t=0;e=v(e);for(var n=e.next();!n.done;n=e.next())t=t<<8|n.value.charCodeAt(0);return t}function i6(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function i8(e){return 8+8*!!e.has64BitSize+4*(null!=e.flags)}iq.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:1},iJ.prototype.clear=function(){this.l=0,this.h=[],this.g=[];var e=this.i;e.i=[],e.h=[],e.g=0,i$(this),e=v(this.j.values());for(var t=e.next();!t.done;t=e.next())iG(t.value)},iJ.prototype.extract=function(e,t){if(this.B){for(var n=v(this.m.values()),i=n.next();!i.done;i=n.next())i.value.l=t;this.B=!1}if(!(8>(e=new iq(e,0)).getLength())&&181===e.S()&&49===e.ma()&&0x47413934===e.N()&&3===e.S()&&0!=(64&(n=e.S())))for(n&=31,e.skip(1),i=0;i<n;i++){var r=e.S(),a=(4&r)>>2,o=e.S(),s=e.S();a&&(0==(r&=3)||1===r?this.h.push({pts:t,type:r,Pa:o,ib:s,order:this.h.length}):(this.g.push({pts:t,type:r,value:o,order:this.g.length}),this.g.push({pts:t,type:2,value:s,order:this.g.length})))}},iJ.prototype.decode=function(){function e(e,t){return e.pts-t.pts||e.order-t.order}var t,n,i=[];this.h.sort(e),this.g.sort(e);for(var r=v(this.h),a=r.next();!a.done;a=r.next())(a=function(e,t){var n=t.type;if(16==(112&t.Pa)){var i=t.Pa>>3&1;0===n?e.o=i:e.u=i}if(i="CC"+((n<<1|(n?e.u:e.o))+1),n=e.m.get(i),255===t.Pa&&255===t.ib||!t.Pa&&!t.ib||!iQ(t.Pa)||!iQ(t.ib))return 45<=++e.l&&i$
1(e),null;e.l=0,t.Pa&=127,t.ib&=127;var r=t.Pa;if(1<=r&&15>=r||!t.Pa&&!t.ib)return null;if(r=null,16==(112&t.Pa))e:{if(e.A.add(i),i=t.Pa,e=t.ib,n.m===(i<<8|e))n.m=null;else if(n.m=i<<8|e,16==(240&i)&&64==(192&e)){t=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(7&i)<<1|e>>5&1];var a=(30&e)>>1;i="white",r=!1,7>a?i=iD[a]:7===a&&(r=!0),e=1==(1&e),4!==n.h&&(a=n.g,3===n.h&&t!==a.g&&(n=1+t-a.h,iy(a,n,1+a.g-a.h,a.h),ib(a,0,n-1),ib(a,t+1,15-t)),a.g=t,a.m=e,a.j=r,a.l=i,a.o="black")}else if(17==(247&i)&&32==(240&e))n.g.m=!1,n.g.j=!1,n.g.l="white",iv(n.g,0,32),i=!1,"white_italics"===(t=iD[(14&e)>>1])&&(t="white",i=!0),n.g.m=1==(1&e),n.g.j=i,n.g.l=t;else if(16==(247&i)&&32==(240&e)||23==(247&i)&&45==(255&e))t="black",0==(7&i)&&(t=iM[(14&e)>>1]),n.g.o=t;else if(17==(247&i)&&48==(240&e))iv(n.g,1,e);else if(18==(246&i)&&32==(224&e))iv(n.g,1&i?3:2,e);else if(20==(246&i)&&32==(240&e)){switch(e=t.pts,i=null,t.ib){case 32:iI(n);break;case 33:(n=n.g).i[n.g].pop();break;case 37:i=ik(n,2,e);break;case 38:i=ik(n,3,e);break;case 39:i=ik(n,4,e);break;case 40:iv(n.g,0,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.l=e;break;case 42:im(n.o),iC(n);break;case 43:iC(n);break;case 44:t=n.i,i=null,4!==n.h&&(i=ig(t,n.l,e)),ib(t,0,15);break;case 45:t=n.g,3!==n.h?i=null:(i=ig(t,n.l,e),r=t.g-t.h+1,iy(t,r-1,r,t.h),ib(t,0,r-1),ib(t,t.g,15-t.g),n.l=e);break;case 46:ib(n.j,0,15);break;case 47:t=null,4!==n.h&&(t=ig(n.i,n.l,e)),i=n.j,n.j=n.i,n.i=i,iI(n),n.l=e,i=t}r=i;break e}r=null}else e=t.ib,iv(n.g,0,t.Pa),iv(n.g,0,e);return r}(this,a.value))&&i.push(a);for(a=(r=v(this.g)).next();!a.done;a=r.next())t=this.i,3===(n=a.value).type?(t.g=2*(63&n.value)-1,t.h=[]):t.h&&(0<t.g&&(t.h.push(n),t.g--),0===t.g&&(t.i.push(new i_(t.h)),t.h=null,t.g=0));for(a=(r=v(this.i.i)).next();!a.done;a=r.next())a=function(e,t){var n=[];try{for(;t.na();){var i=iB(t).value,r=(224&i)>>5,a=31&i;if(7===r&&0!=a&&(r=63&iB(t).value),0!=r){e.A.add("svc"+r),e.j.has(r)||e.j.set(r,new iF(r));for(var o=e.j.get(r),s=t.ra();t.ra()-s<a;){r=o;var u=t,l=iB(u),c=l.value,d=l.pts;if(16===c){var h=iB(u);c=c<<16|h.value}if(0<=c&&31>=c){u=r;var f=c,p=d;if(u.g){var g=u.g;switch(r=null,f){case 8:!ij(g)||0>=g.g&&0>=g.h||(0>=g.g?(g.g=g.m-1,g.h--):g.g--,g.i[g.h][g.g]=null);break;case 13:if(g.isVisible()&&(r=iO(g,p,u.i)),g.h+1>=g.o){for(u=g,f=0,p=1;16>p;p++,f++)u.i[f]=u.i[p];for(p=0;1>p;p++,f++)u.i[f]=iP()}else g.h++;g.g=0;break;case 14:g.isVisible()&&(r=iO(g,p,u.i)),g.i[g.h]=iP(),g.g=0;break;case 12:g.isVisible()&&(r=iO(g,p,u.i)),iN(g),(u=g).h=0,u.g=0}var m=r?[r]:[]}else m=[]}else if(128<=c&&159>=c)m=function(e,t,n,i){if(128<=n&&135>=n)i=7&n,e.h[i]&&(e.g=e.h[i]);else{if(136===n){n=iB(t).value,t=[],n=v(iH(e,n));for(var r=n.next();!r.done;r=n.next()){if((r=e.h[r.value]).isVisible()){var a=iO(r,i,e.i);a&&t.push(a)}iN(r)}return t}if(137===n)for(n=(t=v(iH(e,t=iB(t).value))).next();!n.done;n=t.next())(n=e.h[n.value]).isVisible()||(n.j=i),n.l=!0;else{if(138===n){for(n=iB(t).value,t=null,r=(n=v(iH(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()&&(t=iO(r,i,e.i)),r.l=!1;return t?[t]:[]}if(139===n){for(n=iB(t).value,t=null,r=(n=v(iH(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()?t=iO(r,i,e.i):r.j=i,r.l=!r.l;return t?[t]:[]}if(140===n)return iV(e,t=iB(t).value,i);if(143===n)return i=iV(e,255,i),iG(e),i;if(144===n)t.skip(1),i=iB(t).value,e.g&&(e.g.A=0<(128&i),e.g.C=0<(64&i));
1else if(145===n)i=iB(t).value,n=iB(t).value,t.skip(1),e.g&&(t=iK((48&n)>>4,(12&n)>>2,3&n),e.g.B=iK((48&i)>>4,(12&i)>>2,3&i),e.g.u=t);else if(146===n)i=iB(t).value,t=iB(t).value,e.g&&((e=e.g).h=15&i,e.g=63&t);else if(151===n)t.skip(1),t.skip(1),i=iB(t).value,t.skip(1),e.g&&(e.g.D=3&i);else if(152<=n&&159>=n){n=(15&n)-8,(r=null!==e.h[n])||((a=new iR(n,e.i)).j=i,e.h[n]=a),i=iB(t).value,a=iB(t).value;var o=iB(t).value,s=iB(t).value,u=iB(t).value;t=iB(t).value,r&&0==(7&t)||((t=e.h[n]).h=0,t.g=0,t.C=!1,t.A=!1,t.B="white",t.u="black"),(t=e.h[n]).l=0<(32&i),t.L=127&a,t.H=o,t.F=(240&s)>>4,t.K=0<(128&a),t.o=(15&s)+1,t.m=(63&u)+1,e.g=e.h[n]}}}return[]}(r,u,c,d);else{if(4096<=c&&4127>=c)r=u,u=255&c,8<=u&&15>=u?r.skip(1):16<=u&&23>=u?r.skip(2):24<=u&&31>=u&&r.skip(3);else if(4224<=c&&4255>=c)r=u,u=255&c,128<=u&&135>=u?r.skip(4):136<=u&&143>=u&&r.skip(5);else if(32<=c&&127>=c)u=c,r.g&&(127===u?iL(r.g,"âª"):iL(r.g,String.fromCharCode(u)));else if(160<=c&&255>=c)r.g&&iL(r.g,String.fromCharCode(c));else if(4128<=c&&4223>=c){if(u=255&c,r.g)if(iX.has(u)){var b=iX.get(u);iL(r.g,b)}else iL(r.g,"_")}else 4256<=c&&4351>=c&&r.g&&(160!=(255&c)?iL(r.g,"_"):iL(r.g,"[CC]"));m=[]}n.push.apply(n,y(m))}}}}catch(e){if(e instanceof tf&&3e3===e.code)en("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw e}return n}(this,a.value),i.push.apply(i,y(a));return this.i.i=[],this.h=[],this.g=[],i},iJ.prototype.getStreams=function(){return Array.from(this.A)},q("shaka.cea.CeaDecoder",iJ),eM=function(){return new iJ},(b=iZ.prototype).box=function(e,t){return e=i5(e),this.i[e]=i7,this.h[e]=t,this},b.P=function(e,t){return e=i5(e),this.i[e]=i9,this.h[e]=t,this},b.stop=function(){this.g=!0},b.parse=function(e,t,n){for(e=new iq(e,0),this.g=!1;e.na()&&!this.g;)this.jc(0,e,t,n)},b.jc=function(e,t,n,i){var r=t.ra();if(i&&r+8>t.getLength())this.g=!0;else{var a=t.N(),o=t.N(),s=i6(o),u=!1;switch(a){case 0:a=t.getLength()-r;break;case 1:if(i&&t.ra()+8>t.getLength()){this.g=!0;return}a=t.mc(),u=!0}var l=this.h[o];if(l){var c=null,d=null;if(this.i[o]==i9){if(i&&t.ra()+4>t.getLength()){this.g=!0;return}c=(d=t.N())>>>24,d&=0xffffff}o=r+a,n&&o>t.getLength()&&(o=t.getLength()),i&&o>t.getLength()?this.g=!0:l({name:s,parser:this,partialOkay:n||!1,version:c,flags:d,reader:t=new iq(t=0<(i=o-t.ra())?t.Ua(i):new Uint8Array(0),0),size:a,start:r+e,has64BitSize:u})}else t.skip(Math.min(r+a-t.ra(),t.getLength()-t.ra()))}},q("shaka.util.Mp4Parser",iZ),iZ.headerSize=i8,iZ.typeToString=i6,iZ.allData=i3,iZ.audioSampleEntry=i4,iZ.visualSampleEntry=i2,iZ.sampleDescription=i1,iZ.children=i0,iZ.prototype.parseNext=iZ.prototype.jc,iZ.prototype.parse=iZ.prototype.parse,iZ.prototype.stop=iZ.prototype.stop,iZ.prototype.fullBox=iZ.prototype.P,iZ.prototype.box=iZ.prototype.box;var i7=0,i9=1;function re(e,t){var n=null,i=null,r=null,a=e.N();return 1&t&&(r=e.mc()),2&t&&e.skip(4),8&t&&(n=e.N()),16&t&&(i=e.N()),{trackId:a,xc:n,dd:i,Vh:r}}function rt(e,t){return 1==t?{baseMediaDecodeTime:0x100000000*(t=e.N())+(e=e.N())}:{baseMediaDecodeTime:e.N()}}function rn(e,t){return 1==t?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),t=e.N(),e.skip(4),{timescale:t,language:String.fromCharCode(((e=e.ma())>>10)+96)+String.fromCharCode(((960&e)>>5)+96)+String.fromCharCode((31&e)+96)}}function ri(e,t,n){var i=e.N(),r=[],a=null;1&n&&(a=e.N()),4&n&&e.skip(4);for(var o=0;o<i;o++){var s={Ae:null,sampleSize:null,Dd:null};256&n&&(s.Ae=e.N()),512&n&&(s.sampleSize=e.N()),1024&n&&e.skip(4),2048&n&&(s.Dd=0==t?e.N():e.Hf()),r.push(s)}return{Zh:i,Kf:r,qg:a}}function rr(e){e.skip(6),e.skip(2),e.skip(8);var t=e.ma();return e.skip(2),e.skip(2),e.skip(2),{channelCount:t,sampleRate:e=e.ma()+e.ma()/65536}}function ra(e){return{codec:i6(e=e.N())}}function ro(e,t){return t=void 0!==t&&t,e=e.toString(16).toUpperCase(),t?e:("0"+e).slice(-2)}function rs(e){return(10>e?"0":"")+e}function ru(){this.j=new Map,this.i=this.h=0,this.g=rl}ru.prototype.init=function(e){function t(e){(e=e.name)in rf&&(n.g=rf[e])}var n=this,i=[],r=[];if((new iZ).box("moov",i0).box("mvex",i0).P("trex",function(e){var t=e.reader;t.skip(4),t.skip(4),e=t.N(),t=t.N(),n.h=e,n.i=t}).box("trak",i0).P("tkhd",function(e){var t=e.reader;1==(e=e.version)?(t.skip(8),t.skip(8)):(t.skip(4),t.skip(4));var n=t.N();1==e?t.skip(8):t.skip(4),t.skip(4),t.skip(8),t.skip(2),t.skip(2),t.skip(2),t.skip(2),t.skip(36),t.ma(),t.ma(),t.ma(),t.ma(),i.push(n)}).box("mdia",i0).P("mdhd",function(e){e=rn(e.reader,e.version),r.push(e.timescale)}).box("minf",i0).box("stbl",i0).P("stsd",i1).box("avc1",t).box("avc3",t).box("dvav",t).box("dva1",t).box("hev1",t).box("hvc1",t).box("dvh1",t).box("dvhe",t).box("vvc1",t).box("vvi1",t).box("dvc1",t).box("dvi1",t).box("encv",i2).box("sinf",i0).box("frma",function(e){(e=ra(e.reader).codec)in rf&&(n.g=rf[e])}).parse(e,!0),!i.length||!r.length||i.length!=r.length)throw new tf(2,2,2010);this.g==rl&&et("Unable to determine bitstream format for CEA parsing!"),i.forEac
1h(function(e,t){n.j.set(e,r[t])})},ru.prototype.parse=function(e){var t=this;if(this.g==rl)return[];var n=[],i=0,r=[];return(new iZ).box("moof",function(e){i=e.start,r=[],i0(e)}).box("traf",function(e){r.push({baseMediaDecodeTime:null,xc:t.h,dd:t.i,Df:[],timescale:9e4}),i0(e)}).P("trun",function(e){var t=r[r.length-1];e=ri(e.reader,e.version,e.flags),t.Df.push(e)}).P("tfhd",function(e){var n=r[r.length-1];n.xc=(e=re(e.reader,e.flags)).xc||t.h,n.dd=e.dd||t.i,e=e.trackId,t.j.has(e)&&(n.timescale=t.j.get(e))}).P("tfdt",function(e){var t=r[r.length-1];t.baseMediaDecodeTime=(e=rt(e.reader,e.version)).baseMediaDecodeTime}).box("mdat",function(e){for(var a=i-e.start-8,o=e.reader.ra(),s=v(r),u=s.next();!u.done;u=s.next()){if(null===(u=u.value).baseMediaDecodeTime)throw et("Unable to find base media decode time for CEA captions!"),new tf(2,2,2010);e.reader.seek(o),function(e,t,n,i,r,a,o,s,u){var l=0,c=a,d=s.map(function(e){return e.Kf});for((d=[].concat.apply([],y(d))).length&&(c=d[0].sampleSize||a),t.skip(o+s[0].qg);t.na();){o=t.N();var h=t.S(),f=null;switch(f=!1,s=1,e.g){case rc:f=6==(f=31&h);break;case rd:s=2,t.skip(1),f=39==(f=h>>1&63)||40==f;break;case rh:s=2,t.skip(1),f=23==(f=h>>1&63)||24==f;break;default:return}if(f)for(h=0,l<d.length&&(h=d[l].Dd||0),h=(n+h)/i,f=(s=v(function(e){for(var t=[],n=e,i=e=0;i<n.length;)2==e&&3==n[i]?(e=0,(n=[].concat(y(n))).splice(i,1),n=new Uint8Array(n)):0==n[i]?e++:e=0,i++;for(e=n,i=0;i<e.length;){for(n=0;255==e[i];)n+=255,i++;n+=e[i++];for(var r=0;255==e[i];)r+=255,i++;r+=e[i++],4==n&&t.push(e.subarray(i,i+r)),i+=r}return t}(t.Ua(o-s)))).next();!f.done;f=s.next())u.push({packet:f.value,pts:h});else try{t.skip(o-s)}catch(e){break}0==(c-=o+4)&&(n=l<d.length?n+(d[l].Ae||r):n+r,c=++l<d.length&&d[l].sampleSize||a)}}(t,e.reader,u.baseMediaDecodeTime,u.timescale,u.xc,u.dd,a,u.Df,n)}}).parse(e,!1),n},q("shaka.cea.Mp4CeaParser",ru);var rl=0,rc=1,rd=2,rh=3,rf={avc1:1,avc3:1,dvav:1,dva1:1,hev1:2,hvc1:2,dvh1:2,dvhe:2,vvc1:3,vvi1:3,dvc1:3,dvi1:3};function rp(e){var t=this;this.h=[],this.g=[],this.data=[],(new iZ).box("moov",i0).box("moof",i0).P("pssh",function(e){if(!(1<e.version)){var n=eT(e.reader.h,-12,e.size);if(t.data.push(n),t.h.push(t7(e.reader.Ua(16))),0<e.version){n=e.reader.N();for(var i=0;i<n;i++){var r=t7(e.reader.Ua(16));t.g.push(r)}}}}).parse(e)}function rg(e,t,n,i){var r=e.length,a=t.length+16+r;0<i&&(a+=4+16*n.size);var o=new Uint8Array(a),s=eA(o),u=0;if(s.setUint32(u,a),u+=4,s.setUint32(u,0x70737368),u+=4,1>i?s.setUint32(u,0):s.setUint32(u,0x1000000),u+=4,o.set(t,u),u+=t.length,0<i)for(s.setUint32(u,n.size),u+=4,n=(t=v(n)).next();!n.done;n=t.next())n=t8(n.value),o.set(n,u),u+=n.length;return s.setUint32(u,r),o.set(e,u+4),o}function rm(e,t){var n=void 0!==n&&n;return rv(e=t$(e),t,n)}function rv(e,t,n){return e=function(e,t){function n(){for(var t=i;-1==="\r\n >/= ".indexOf(e[i])&&e[i];)i++;return e.slice(t,i)}var i=0;return function r(a,o){o=void 0!==o&&o;for(var s=[];e[i];)if(60==e.charCodeAt(i)){if(47===e.charCodeAt(i+1)){o=i+2,i=e.indexOf(">",i);var u=(o=e.substring(o,i)).indexOf(a);if(-1==u){var l=a.indexOf(".");0<l&&(u=o.indexOf(a.substring(0,l)))}if(-1==u)throw Error("Unexpected close tag\nLine: "+((a=e.substring(0,i).split("\n")).length-1)+"\nColumn: "+(a[a.length-1].length+1)+"\nChar: "+e[i]);i+1&&(i+=1);break}
1if(33===e.charCodeAt(i+1)){if(45==e.charCodeAt(i+2)){for(;-1!==i&&(62!==e.charCodeAt(i)||45!=e.charCodeAt(i-1)||45!=e.charCodeAt(i-2)||-1==i);)i=e.indexOf(">",i+1);-1===i&&(i=e.length)}else if(91===e.charCodeAt(i+2)&&91===e.charCodeAt(i+8)&&"cdata"===e.substr(i+3,5).toLowerCase()){-1==(u=e.indexOf("]]>",i))?(s.push(e.substr(i+9)),i=e.length):(s.push(e.substring(i+9,u)),i=u+3);continue}i++;continue}e:{l=o,i++;var c=n(),d={};for(u=[];62!==e.charCodeAt(i)&&e[i];){var h=e.charCodeAt(i);if(64<h&&91>h||96<h&&123>h){h=n();for(var f=e.charCodeAt(i);f&&39!==f&&34!==f&&!(64<f&&91>f||96<f&&123>f)&&62!==f;)i++,f=e.charCodeAt(i);var p=i+1;if(i=e.indexOf(e[i],p),p=e.slice(p,i),39===f||34===f){if(-1===i){if(l={tagName:c,attributes:d,children:u,parent:null},t)for(c=0;c<u.length;c++)"string"!=typeof u[c]&&(u[c].parent=l);u=l;break e}}else p=null,i--;if(h.startsWith("xmlns:")){f=p;var g=h.split(":")[1];rX.set(f,g),rW.set(g,f)}"tt"===c&&"xml:space"===h&&"preserve"===p&&(l=!0),d[h]=p}i++}for(47!==e.charCodeAt(i-1)?(i++,u=r(c,l)):i++,l={tagName:c,attributes:d,children:u,parent:null},c=u.length,d=0;d<c;d++)"string"!=typeof(h=u[d])?t&&(h.parent=l):d==c-1&&"\n"==h&&u.pop();u=l}if(s.push(u),"string"==typeof u)break;"?"===u.tagName[0]&&u.children&&(s.push.apply(s,y(u.children)),u.children=[])}else u=i,-2==(i=e.indexOf("<",i)-1)&&(i=e.length),u=e.slice(u,i+1),o?0<u.length&&s.push(u):s.length&&1==u.length&&"\n"==u[0]?s.push(u):0<u.trim().length&&s.push(u),i++;return s}("")}(e,void 0!==n&&n),!t&&e.length?e[0]:(e=e.find(function(e){return e.tagName===t}))?e:null}function ry(e){return rX.has(e)?rX.get(e):""}function rb(e){return"string"==typeof e}function rw(e){var t=[];if(!e.children)return[];e=v(e.children);for(var n=e.next();!n.done;n=e.next())"string"!=typeof(n=n.value)&&t.push(n);return t}function rx(e,t){var n=[];if(!e.children)return[];e=v(e.children);for(var i=e.next();!i.done;i=e.next())(i=i.value).tagName===t&&n.push(i);return n}function rT(e){return"string"==typeof e?t1(e):""===(e=e.children.reduce(function(e,t){return"string"==typeof t?e+t:e},""))?null:t1(e)}function rS(e){return Array.from(e.children).every(function(e){return"string"==typeof e})?((e=rT(e))&&(e=e.trim()),e):null}function rA(e,t,n){if(n=void 0===n?[]:n,e.tagName===t&&n.push(e),e.children){e=v(e.children);for(var i=e.next();!i.done;i=e.next())rA(i.value,t,n)}return n}function rE(e,t){return 1!=(e=rx(e,t)).length?null:e[0]}function rk(e,t,n){return 1!=(e=rM(e,t,n)).length?null:e[0]}function rI(e,t,n,i){i=void 0===i?null:i;var r=null;return null!=(e=e.attributes[t])&&(r=n(e)),null==r?i:r}function rC(e,t,n){return t=ry(t),e.attributes[t+":"+n]||null}function rM(e,t,n){t=ry(t);var i=[];if(e.children){e=v(e.children);for(var r=e.next();!r.done;r=e.next())(r=r.value)&&r.tagName===t+":"+n&&i.push(r)}return i}function rD(e,t,n){t=v(t);for(var i=t.next();!i.done;i=t.next())if(i=rC(e,i.value,n))return i;return null}function rR(e){return e?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),isNaN(e=Date.parse(e))?null:e/1e3):null}function rN(e){return e&&(e=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(e))&&isFinite(e=31536e3*Number(e[1]||null)+2592e3*Number(e[2]||null)+86400*Number(e[3]||null)+3600*Number(e[4]||null)+60*Number(e[5]||null)+Number(e[6]||null))?e:null}function rP(e){var t=/([0-9]+)-([0-9]+)/.exec(e);return t&&isFinite(e=Number(t[1]))&&isFinite(t=Number(t[2]))?{start:e,end:t}:null}function rL(e){return 0==(e=Number(e))%1?e:null}function rj(e){return 0==(e=Number(e))%1&&0<e?e:null}function rO(e){return 0==(e=Number(e))%1&&0<=e?e:null}function rU(e){return isNaN(e=Number(e))?null:e}function r_(e){return!!e&&"true"===e.toLowerCase()}function rB(e){var t,n=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e);return isNaN(n)?null:n}function rF(e){var t=[];e=v(e=t1(e).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/));for(var n=e.next();!n.done;n=e.next()){var i=(n=n.value).match(/^([\w]+)/);if(i){var r=n.match(/(@id='(.*?)')/),a=n.match(/(@t='(\d+)')/),o=n.match(/(@n='(\d+)')/),s=n.match(/\[(\d+)\]/);t.push({name:i[0],id:r?r[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:a?Number(a[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:o?Number(o[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:s?Number(s[1])-1:null,wb:n.split("/@")[1]||null})}else n.startsWith("@")&&t.length&&(t[t.length-1].wb=n.slice(1))}return t}function rH(e,t){var n=rF(t.attributes.sel||"");if(n.length){var i=n[n.length-1],r=t.attributes.pos||null;null==(n=i.position)&&(null!==i.t&&(n=rV(e,"t",i.t)),null!==i.n&&(n=rV(e,"n",
1i.n))),null===n?n="prepend"===r?0:e.length:"prepend"===r?--n:"after"===r&&++n,r=t.tagName,(i=i.wb)&&e[n]?rG(e[n],r,i,rS(t)||""):("remove"!==r&&"replace"!==r||e.splice(n,1),"add"!==r&&"replace"!==r||e.splice.apply(e,[n,0].concat(y(t.children))))}}function rV(e,t,n){var i=0;e=v(e);for(var r=e.next();!r.done;r=e.next()){if(Number(r.value.attributes[t])===n)return i;i++}return null}function rG(e,t,n,i){"remove"===t?delete e.attributes[n]:("add"===t||"replace"===t)&&(e.attributes[n]=i)}function rK(e){if(!e)return null;var t={tagName:e.tagName,attributes:nH(e.attributes),children:[],parent:null};e=v(e.children);for(var n=e.next();!n.done;n=e.next())"string"==typeof(n=n.value)||((n=rK(n)).parent=t),t.children.push(n);return t}eC["video/mp4"]=function(){return new ru},q("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3}),q("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});var rX=new Map,rW=new Map;function rq(t,n,i){var r=function(e){var t=[];e=v(e);for(var n=e.next();!n.done;n=e.next())(n=function(e){var t=e.attributes.schemeIdUri,n=rC(e,"urn:mpeg:cenc:2013","default_KID"),i=rM(e,"urn:mpeg:cenc:2013","pssh").map(rS),r=e.attributes.value;if(!t)return null;if(t=t.toLowerCase(),n&&(n=n.replace(/-/g,"").toLowerCase()).includes(" "))throw new tf(2,4,4009);var a=[];try{a=i.map(function(e){return{initDataType:"cenc",initData:t6(e),keyId:null}})}catch(e){throw new tf(2,4,4007)}return{node:e,nc:t,keyId:n,init:0<a.length?a:null,encryptionScheme:r}}(n.value))&&t.push(n);return t}(t),a=null;t=[];var o=[],s=null,u=new Set(r.map(function(e){return e.keyId}));u.delete(null);var l="cenc";if(1<u.size)throw new tf(2,4,4010);if(!n){if(1<(o=r.filter(function(e){return"urn:mpeg:dash:sea:2012"==e.nc})).length)throw new tf(2,4,4050);o.length&&(s=function(t){if(!e.crypto||!e.crypto.subtle)throw et("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new tf(2,4,4042);var n=rk(t.node,"urn:mpeg:dash:schema:sea:2012","SegmentEncryption");if(!n||"urn:mpeg:dash:sea:aes128-cbc:2013"!=n.attributes.schemeIdUri||!(n=rk(t.node,"urn:mpeg:dash:schema:sea:2012","CryptoPeriod"))||(t=n.attributes.IV,n=t1(n.attributes.keyUriTemplate),!t||!n))throw new tf(2,4,4051);if(16!=(t=t8(t.substr(2))).byteLength)throw new tf(2,4,4048);return{fh:n,iv:t}}(o[0])),(o=r.find(function(e){return"urn:mpeg:dash:mp4protection:2011"==e.nc}))&&o.encryptionScheme&&(l=o.encryptionScheme),(o=r.filter(function(e){return"urn:mpeg:dash:mp4protection:2011"==e.nc?(a=e.init||a,!1):"urn:mpeg:dash:sea:2012"!=e.nc})).length&&0==(t=function(e,t,n,i,r){var a=[];n=v(n);for(var o=n.next();!o.done;o=n.next()){var s,u=i[(o=o.value).nc];if(u){if((s=rk(o.node,"urn:microsoft:playready","pro"))&&rT(s)){s=t6(s=rT(s));var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);s=[{initData:rg(s,l,new Set,0),initDataType:"cenc",keyId:o.keyId}]}else s=null;if(l=null,"urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===o.nc)if(l=o,0==r.size)l=null;else{var c=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75]);l=[{initData:rg(new Uint8Array([]),c,r,1),initDataType:"cenc",keyId:l.keyId}]}s=nt(u,t,o.init||e||s||l),(u=rJ.get(u))&&(s.licenseServerUri=u(o)),a.push(s)}}return a}(a,l,o,i,u)).length&&(t=[nt("",l,a)])}if(r.length&&!s&&(n||!o.length))for(t=[],i=(n=v(Object.values(i))).next();!i.done;i=n.next())"org.w3.clearkey"!=(i=i.value)&&t.push(nt(i,l,a));if(u=Array.from(u)[0]||null)for(n=(l=v(t)).next();!n.done;n=l.next())for(i=(n=v(n.value.initData)).next();!i.done;i=n.next())i.value.keyId=u;return{$e:u,Wh:a,drmInfos:t,Td:s,ff:!0}}function rz(e){var t=rk(e.node,"https://dashif.org/CPS","Laurl");return t&&(t=rT(t))?t:(e=rk(e.node,"urn:microsoft:playready","pro"))&&rT(e)&&(e=(function(e){var t=0,n=eA(e),i=n.getUint32(t,!0);if(i!=e.byteLength)return[];e:{for(e=t+6,t=[];e<n.byteLength-1;){i=n.getUint16(e,!0),e+=2;var r=n.getUint16(e,!0);if(e+=2,0!=(1&r)||r+e>n.byteLength){n=[];break e}var a=eT(n,e,r);t.push({type:i,value:a}),e+=r}n=t}return n})(e=t6(e=rT(e))).filter(function(e){return e.type===rY})[0])&&(e=rv(e=tJ(e.value,!0),"WRMHEADER"))?function(e){e=v(rA(e,"DATA"));for(var t=e.next();!t.done;t=e.next())if((t=t.value).children){t=v(t.children);for(var n=t.next();!n.done;n=t.next())if("LA_URL"==(n=n.value).tagName)return rT(n)}return""}(e):""}var rY=1,rJ=(new Map).set("com.widevine.alpha",function(e){var t=rk(e.node,"https://dashif.org/CPS","Laurl");return t&&(t=rT(t))?t:(e=rk(e.node,"urn:microsoft","laurl"))&&t1(e.attributes.licenseUrl)||""}).set("com.microsoft.playready",rz).set("com.microsoft.playready.recommendation",rz).set("com.microsoft.playready.softw
1are",rz).set("com.microsoft.playready.hardware",rz).set("org.w3.clearkey",function(e){var t=rk(e.node,"https://dashif.org/CPS","Laurl");return t&&(t=rT(t))?t:(e=rk(e.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===e.attributes.Lic_type&&e&&(e=rT(e))?e:""});function r$(e,t){var n=rZ();this.l=null==e.maxAttempts?n.maxAttempts:e.maxAttempts,this.j=null==e.baseDelay?n.baseDelay:e.baseDelay,this.o=null==e.fuzzFactor?n.fuzzFactor:e.fuzzFactor,this.m=null==e.backoffFactor?n.backoffFactor:e.backoffFactor,this.g=0,this.h=this.j,(this.i=void 0!==t&&t)&&(this.g=1)}function rQ(e){var t,n;return B(function(i){if(1==i.g){if(e.g>=e.l)if(e.i)e.g=1,e.h=e.j;else throw new tf(2,7,1010);return(t=e.g,e.g++,0==t)?i.return():(n=e.h*(1+(2*Math.random()-1)*e.o),C(i,new Promise(function(e){new tT(e).da(n/1e3)}),2))}e.h*=e.m,M(i)})}function rZ(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function r0(){var e,t,n=new Promise(function(n,i){e=n,t=i});return n.resolve=e,n.reject=t,n}function r1(e,t){this.promise=e,this.l=t,this.g=!1}function r2(e){return new r1(Promise.reject(e),function(){return Promise.resolve()})}function r4(){var e=Promise.reject(new tf(2,7,7001));return e.catch(function(){}),new r1(e,function(){return Promise.resolve()})}function r3(e){return new r1(Promise.resolve(e),function(){return Promise.resolve()})}function r5(e){return new r1(e,function(){return e.catch(function(){})})}function r6(e){return new r1(Promise.all(e.map(function(e){return e.promise})),function(){return Promise.all(e.map(function(e){return e.abort()}))})}function r8(t,n){if(n)if(n instanceof Map)for(var i=v(n.keys()),r=i.next();!r.done;r=i.next())Object.defineProperty(this,r=r.value,{value:n.get(r),writable:!0,enumerable:!0});else for(i in n)Object.defineProperty(this,i,{value:n[i],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=e.performance&&e.performance.now?e.performance.now():Date.now(),this.type=t,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function r7(){this.xa=new er,this.Re=this}function r9(){this.g=[]}function ae(e,t){e.g.push(t.finally(function(){eL(e.g,t)}))}function at(e,t,n,i,r,a,o){r7.call(this),this.j=!1,this.m=new r9,this.g=new Set,this.h=new Set,this.i=e||null,this.l=t||null,this.B=n||null,this.C=i||null,this.F=r||null,this.D=a||null,this.A=o||null,this.o=this.u=!1}function an(e,t,n,i){n=n||au;var r=al[e];(!r||n>=r.priority)&&(al[e]={priority:n,yd:t,oh:void 0!==i&&i})}function ai(e,t,n){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===n?null:n}}function ar(e){if(e){var t=e.segment;if(e=e.stream,t&&e&&e.fastSwitching&&t.Nc)return!1}return!0}function aa(){this.g=0,this.h=!1}function ao(e,t,n,i){r1.call(this,e,t),this.h=n,this.j=Date.now(),this.i=i}r0.prototype.resolve=function(){},r0.prototype.reject=function(){},r1.prototype.abort=function(){return this.g=!0,this.l()},r1.prototype.finally=function(e){return this.promise.then(function(){return e(!0)},function(){return e(!1)}),this},r1.prototype.Na=function(e,t){function n(n){return function(s){if(r.g&&n)a.reject(o);else{var u=n?e:t;u?i=function(e,t,n){try{var i=e(t);if(i&&i.promise&&i.abort)return n.resolve(i.promise),function(){return i.abort()};return n.resolve(i),function(){return Promise.resolve(i).then(function(){},function(){})}}catch(e){return n.reject(e),function(){return Promise.resolve()}}}(u,s,a):(n?a.resolve:a.reject)(s)}}}function i(){return a.reject(o),r.abort()}var r=this,a=new r0;a.catch(function(){});var o=new tf(2,7,7001);return this.promise.then(n(!0),n(!1)),new r1(a,function(){return i()})},p.Object.defineProperties(r1.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g}}}),q("shaka.util.AbortableOperation",r1),r1.prototype.chain=r1.prototype.Na,r1.prototype.finally=r1.prototype.finally,r1.all=r6,r1.prototype.abort=r1.prototype.abort,r1.notAbortable=r5,r1.completed=r3,r1.aborted=r4,r1.failed=r2,r8.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},r8.prototype.stopImmediatePropagation=function(){this.g=!0},r8.prototype.stopPropagation=function(){},q("shaka.util.FakeEvent",r8),r7.prototype.addEventListener=function(e,t){this.xa&&this.xa.push(e,t)},r7.prototype.removeEventListener=function(e,t){this.xa&&this.xa.remove(e,t)},r7.prototype.dispatchEvent=function(e){if(!this.xa)return!0;var t=this.xa.get(e.type)||[],n=this.xa.get("All");for(n&&(t=t.concat(n)),n=(t=v(t)).next();!n.done;n=t.next()){n=n.value,e.target=this.Re,e.currentTarget=this.Re;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){}if(e.g)break}return e.defaultPrevented},r7.prototype.release=function(){this.xa=null},r9.prototype.destroy=function(){for(var e=[],t=v(this.g),n=t.next();!n.done;n=t.next())(n=n.value).promise.catch(function(){}),e.push(n.abort());return this.g=[],Promise.all(e)},A(at,r7),(b=at.prototype).De=function(e){this.u=e},b.Ee=function(e){this.o=e},b.rh=function(e){this.g.add(e)},b.Fh=function(e){this.g.delete(e)},b.ng=function(){this.g.clear()},b.sh=function(e){this.h.add(e)},b.Gh=function(e){this.h.delete(e)},b.og=function(){this.h.clear()},b.destroy=function(){return this.j=!0,this.g.clear(),this.h.clear(),r7.prototype.release.call(this),this.m.destroy()},b.request=function(e,t,n){var i=this,r=t.retryParameters=t.retryParameters?nF(t.retryParameters):rZ(),a=new aa;if(this.j)return(r=Promise.reject(new tf(2,7,7001))).catch(function(){}),new ao(r,function(){return Promise.resolve()},a,0);t.method=t.method||"GET",t.headers=t.headers||{},t.retryParameters=r,t.uris=nF(t.uris);var o=function(e,t,n,i){function r(e){a=a.Na(function(){return n.body&&(n.body=ex(n.body)),e(t,n,i)})}var a=r3(void 0);e.C&&r(e.C),e=v(e.g);for(var o=e.next();!o.done;o=e.next())r(o.value);return a.Na(void 0,function(e){if(e instanceof tf&&7001==e.code)throw e;throw new tf(2,1,1006,e)})}(this,e,t,n),s=o.Na(function(){return function e(t,n,i,r,a,o,s,u){t.u&&(i.uris[o]=i.uris[o].replace("https://","http://")),t.o&&(i.uris[o]=i.uris[o].replace("http://","https://")),0<o&&t.F&&t.F(n,r,i.uris[o],i.uris[o-1]);var l=new e7(i.uris[o]),c=l.fb,d=!1;c||(e9(l,c=(c=location.protocol).slice(0,-1)),i.uris[o]=l.toString());var h=(c=al[c=c.toLowerCase()])?c.yd:null;if(!h)return r2(new tf(2,1,1e3,l));var f,p=c.oh,g=null,m=null,v=!1,y=!1;return r5(rQ(a)).Na(function(){if(t.j)return r4();f=Date.now();var e=0;u.h&&new tT(function(){t.i(0,-1,ar(r))}).da(0),i.requestStartTime=Date.now();var a=h(i.uris[o],i,n,function(a,o,s){g&&g.stop(),m&&m.da(l/1e3),t.i&&n==as&&(i.packetNumber=++e,t.i(a,o,ar(r),i),d=!0,u.g=s)},function(e){t.l&&t.l(e,i,n),y=!0,i.timeToFirstByte=Date.now()-i.requestStartTime});if(!p)return a;var s=i.retryParameters.connectionTimeout;s&&(g=new tT(function(){v=!0,a.abort()})).da(s/1e3);var l=i.retryParameters.stallTimeout;return l&&(m=new tT(function(){v=!0,a.abort()})),a}).Na(function(e){g&&g.stop(),m&&m.stop(),void 0==e.timeMs&&(e.timeMs=Date.now()-f);var r={response:e,Wg:d};return!y&&t.l&&t.l(e.headers,i,n),n==as&&t.A&&t.A(i,e),r},function(l){if(g&&g.stop(),m&&m.stop(),t.B){var c=null,d=0;l instanceof tf&&(c=l,1001==l.code&&(d=l.data[1])),t.B(i,c,d,v)}if(t.j)return r4();if(v&&(l=new tf(1,1,1003,i.uris[o],n)),l instanceof tf){if(7001==l.code)throw l;if(1010==l.code)throw s;if(1==l.severity)return c=new r8("retry",c=(new Map).set("error",l)),t.dispatchEvent(c),1==l.category&&1003==l.code&&n==as&&(u.h=!0),o=(o+1)%i.uris.length,e(t,n,i,r,a,o,l,u)}throw l})}(i,e,t,n,new r$(t.retryParameters,!1),0,null,a)}),u=s.Na(function(t){var r=i,a=e,o=t,s=n,u=r3(void 0);r=v(r.h);for(var l=r.next(),c={};!l.done;c={Jf:void 0},l=r.next())c.Jf=l.value,u=u.Na(function(e){return function(){var t=o.response;return t.data&&(t.data=ex(t.data)),(0,e.Jf)(a,t,s)}}(c));return u.Na(function(){return o},function(e){var t=2;if(e instanceof tf){if(7001==e.code)throw e;t=e.severity}throw new tf(t,1,1007,e)})}),l=Date.now(),c=0;o.promise.then(function(){c=Date.now()-l},function(){});var d=0;s.promise.then(function(){d=Date.now()},function(){});var h=u.Na(function(r){var a=Date.now()-d,o=r.response;return o.timeMs+=c,o.timeMs+=a,r.Wg||!i.i||o.fromCache||"HEAD"==t.method||e!=as||i.i(o.timeMs,o.data.byteLength,ar(n)),i.D&&i.D(e,o,n),o},function(e){throw e&&(e.severity=2),e});return r=new ao(h.promise,function(){return h.abort()},a,r.timeout/1e3),ae(this.m,r),r},q("shaka.net.NetworkingEngine",at),at.prototype.request=at.prototype.request,at.prototype.destroy=at.prototype.destroy,at.makeRequest=ai,at.defaultRetryParameters=function(){return rZ()},at.prototype.clearAllResponseFilters=at.prototype.og,at.prototype.unregisterResponseFilter=at.prototype.Gh,at.prototype.registerResponseFilter=at.prototype.sh,at.prototype.clearAllRequestFilters=at.prototype.ng,at.prototype.unregisterRequestFilter=at.prototype.Fh,at.prototype.registerRequestFilter=at.prototype.rh,at.unregisterScheme=function(e){delete al[e]},at.registerScheme=an,at.prototype.setForceHTTPS=at.prototype.Ee,at.prototype.setForceHTTP=at.prototype.De,at.NumBytesRemainingClass=aa,A(ao,r1),at.PendingRequest=ao;var as=1;at.RequestType={MANIFEST:0,SEGMENT:1,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8},at.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5,MPD_PATCH:6};var au=3;at.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:3};var al={};function ac(t,n,i,r,a,o){var s={RepresentationID:n,Number:i,SubNumber:r,Bandwidth:a,Time:o};return t.replace(/\$(RepresentationID|Number|SubNumber|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(t,n,i,r){if("$$"==t)return"$";var a=s[n];if(null==a)return t;switch("RepresentationID"==n&&i&&(i=void 0),"Time"==n&&"bigint"!=typeof a&&(.2<=Math.abs(a-Math.round(a))&&et("Calculated $Time$ values must be close to integers"),a=Math.round(a)),r){case void 0:case"d":case"i":case"u":default:t=a.toString();break;case"o":t=a.toString(8);break;case"x":t=a.toString(16);break;case"X":t=a.toString(16).toUpperCase()}return Array(Math.max(0,(i=e.parseInt(i,10)||1)-t.length)+1).join("0")+t})}function ad(e,t){var n=af(e,t,"timescale"),i=1;n&&(i=rj(n)||1),(n=rj((n=af(e,t,"duration"))||""))&&(n/=i);var r=af(e,t,"startNumber"),a=Number(af(e,t,"presentationTimeOffset"))||0,o=rO(r||"");if((null==r||null==o)&&(o=1),r=null,t=ap(e,t,"SegmentTimeline")){t=rx(t,"S"),r=i,e=e.ha.duration||1/0;for(var s=o,u=[],l=-a,c=0;c<t.length;++c){var d=t[c],h=t[c+1],f=rI(d,"t",rO),p=rI(d,"d",rO),g=rI(d,"r",rL);if(d=rI(d,"k",rL)||0,null!=f&&(f-=a),p){if(f=null!=f?f:l,0>
1(g=g||0))if(h){if(null==(h=rI(h,"t",rO))||f>=h)break;g=Math.ceil((h-f)/p)-1}else{if(1/0==e||f/r>=e)break;g=Math.ceil((e*r-f)/p)-1}for(0<u.length&&f!=l&&(u[u.length-1].end=f/r),h=0;h<=g;++h)l=f+p,u.push({start:f/r,end:l/r,Hh:f,eb:d,yh:u.length+s}),f=l}}r=u}return{timescale:i,Aa:n,Qc:o,Wa:a/i||0,Me:a,timeline:r}}function ah(e,t){return[t(e.G),t(e.ga),t(e.ca)].filter(nM)}function af(e,t,n){t=ah(e,t),e=null,t=v(t);for(var i=t.next();!i.done&&!(e=i.value.attributes[n]);i=t.next());return e}function ap(e,t,n){t=ah(e,t),e=null,t=v(t);for(var i=t.next();!i.done&&!(e=rE(i.value,n));i=t.next());return e}function ag(e,t,n,i,r,a){if(a=void 0===a?0:a,rC(e,"http://www.w3.org/1999/xlink","href")){var o=function(e,t,n,i,r,a){for(var o=rC(e,"http://www.w3.org/1999/xlink","href"),s=rC(e,"http://www.w3.org/1999/xlink","actuate")||"onRequest",u=v(Object.keys(e.attributes)),l=u.next();!l.done;l=u.next()){var c=(l=l.value).split(":"),d=ry("http://www.w3.org/1999/xlink");c[0]==d&&delete e.attributes[l]}if(5<=a)return r2(new tf(2,4,4028));if("onLoad"!=s)return r2(new tf(2,4,4027));var h=ne([i],[o]);return r.request(0,ai(h,t)).Na(function(i){if(!(i=rm(i.data,e.tagName)))return r2(new tf(2,4,4001,o));for(e.children=[];i.children.length;){var s=i.children.shift();e.children.push(s)}s=v(Object.keys(i.attributes));for(var u=s.next();!u.done;u=s.next())u=u.value,e.attributes[u]=i.attributes[u];return ag(e,t,n,h[0],r,a+1)})}(e,t,n,i,r,a);return n&&(o=o.Na(void 0,function(){return ag(e,t,n,i,r,a)})),o}o=[];for(var s=v(rw(e)),u=s.next(),l={};!u.done;l={uc:void 0},u=s.next())l.uc=u.value,"urn:mpeg:dash:resolve-to-zero:2013"==rC(l.uc,"http://www.w3.org/1999/xlink","href")?e.children=e.children.filter(function(e){return function(t){return t!==e.uc}}(l)):"SegmentTimeline"!=l.uc.tagName&&o.push(ag(l.uc,t,n,i,r,a));return r6(o).Na(function(){return e})}function am(e,t,n,i,r,a,o){this.Z=e,this.Ia=t,this.ta=n,this.hc=void 0===i?null:i,this.timescale=void 0===r?null:r,this.g=void 0===a?null:a,this.aesKey=void 0===o?null:o,this.mimeType=this.codecs=null}function av(e,t){return e===t||(e&&t?e.zb()==t.zb()&&e.xb()==t.xb()&&ej(e.Z().sort(),t.Z().sort())&&eb(e.Ac(),t.Ac()):e==t)}function ay(e,t,n,i,r,a,o,s,u,l,c,d,h,f,p,g){for(l=void 0===l?[]:l,f=void 0===f?ab:f,this.startTime=e,this.i=this.endTime=t,this.H=n,this.Ia=i,this.ta=r,this.ba=a,this.m=o,this.D=s,this.C=u,this.g=l,this.tilesLayout=void 0===c?"":c,this.B=void 0===d?null:d,this.h=void 0===h?null:h,this.status=f,this.preload=!1,this.l=!0,this.o=!1,this.aesKey=void 0===p?null:p,this.A=null,this.j=0,this.u=void 0!==g&&g,this.nd=this.Nc=!1,t=(e=v(this.g)).next();!t.done;t=e.next())t.value.xf();this.u&&this.g.length&&this.g[this.g.length-1].wf(),this.F=this.mimeType=this.codecs=null}am.prototype.zb=function(){return this.Ia},am.prototype.xb=function(){return this.ta},am.prototype.Ac=function(){return this.g},q("shaka.media.InitSegmentReference",am),am.prototype.getEndByte=am.prototype.xb,am.prototype.getStartByte=am.prototype.zb,(b=ay.prototype).Z=function(){return this.H()},b.getStartTime=function(){return this.startTime},b.yg=function(){return this.endTime},b.zb=function(){return this.Ia},b.xb=function(){return this.ta},b.Sg=function(){return this.tilesLayout},b.Rg=function(){return this.B},b.Ab=function(){return this.status},b.ih=function(){this.status=aw},b.re=function(){this.preload=!0},b.dh=function(){return this.preload},b.pd=function(){this.l=!1},b.$g=function(){return this.l},b.xf=function(){this.Nc=!0},b.bh=function(){return this.Nc},b.wf=function(){this.nd=!0},b.ah=function(){return this.nd},b.vf=function(){this.o=!0},b.Xg=function(){return this.o},b.Uf=function(e){this.A=e},b.Pg=function(){return this.A},b.offset=function(e){this.startTime+=e,this.endTime+=e,this.i+=e;for(var t=v(this.g),n=t.next();!n.done;n=t.next())n=n.value,n.startTime+=e,n.endTime+=e,n.i+=e},b.Ke=function(e){null==this.h?ee("Sync attempted without sync time!"):.001<=Math.abs(e=this.h-e-this.startTime)&&this.offset(e)},b.Bh=function(e){this.F=e},b.Ac=function(){return this.F},q("shaka.media.SegmentReference",ay),ay.prototype.getSegmentData=ay.prototype.Ac,ay.prototype.setSegmentData=ay.prototype.Bh,ay.prototype.syncAgainst=ay.prototype.Ke,ay.prototype.offset=ay.prototype.offset,ay.prototype.getThumbnailSprite=ay.prototype.Pg,ay.prototype.setThumbnailSprite=ay.prototype.Uf,ay.prototype.hasByterangeOptimization=ay.prototype.Xg,ay.prototype.markAsByterangeOptimization=ay.prototype.vf,ay.prototype.isLastParti
1al=ay.prototype.ah,ay.prototype.markAsLastPartial=ay.prototype.wf,ay.prototype.isPartial=ay.prototype.bh,ay.prototype.markAsPartial=ay.prototype.xf,ay.prototype.isIndependent=ay.prototype.$g,ay.prototype.markAsNonIndependent=ay.prototype.pd,ay.prototype.isPreload=ay.prototype.dh,ay.prototype.markAsPreload=ay.prototype.re,ay.prototype.markAsUnavailable=ay.prototype.ih,ay.prototype.getStatus=ay.prototype.Ab,ay.prototype.getTileDuration=ay.prototype.Rg,ay.prototype.getTilesLayout=ay.prototype.Sg,ay.prototype.getEndByte=ay.prototype.xb,ay.prototype.getStartByte=ay.prototype.zb,ay.prototype.getEndTime=ay.prototype.yg,ay.prototype.getStartTime=ay.prototype.getStartTime,ay.prototype.getUris=ay.prototype.Z;var ab=0,aw=1;function ax(e){this.g=e,this.m=null,this.i=0,this.o=!1}function aT(e){return e.g[0]||null}function aS(e,t,n){return new ax([e=new ay(e,e+t,function(){return n},0,null,null,e,e,e+t)])}function aA(e,t,n,i){this.i=e,this.h=t,this.g=n,this.reverse=i}function aE(){ax.call(this,[]),this.h=[]}function ak(e){this.h=eA(e),this.g=new iq(this.h,0)}function aI(e){var t=aC(e);if(7<t.length)throw new tf(2,3,3002);var n=0;t=v(t);for(var i=t.next();!i.done;i=t.next())n=256*n+i.value;t=aC(e);e:{i=v(aM);for(var r=i.next();!r.done;r=i.next())if(eb(t,new Uint8Array(r.value))){i=!0;break e}i=!1}if(i)t=e.h.byteLength-e.g.ra();else{if(8==t.length&&224&t[1])throw new tf(2,3,3001);for(r=i=0;r<t.length;r++){var a=t[r];i=0==r?a&(1<<8-t.length)-1:256*i+a}t=i}return t=e.g.ra()+t<=e.h.byteLength?t:e.h.byteLength-e.g.ra(),i=eA(e.h,e.g.ra(),t),e.g.skip(t),new aD(n,i)}function aC(e){var t=e.g.ra(),n=e.g.S();if(0==n)throw new tf(2,3,3002);return n=8-Math.floor(Math.log2(n)),e.g.skip(n-1),eT(e.h,t,n)}ay.Status={Mh:0,Th:1,Rh:2},(b=ax.prototype).getNumReferences=function(){return this.g.length},b.getNumEvicted=function(){return this.i},b.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)},b.jh=function(){this.o=!0},b.$a=function(e){for(var t=v(this.g),n=t.next();!n.done;n=t.next())e(n.value)},b.find=function(e){for(var t=this.g.length-1,n=t;0<=n;--n){var i=this.g[n],r=n<t?this.g[n+1].startTime:i.endTime;if(e>=i.startTime&&e<r)return n+this.i}return this.g.length&&e<this.g[0].startTime?this.i:null},b.get=function(e){return 0==this.g.length||0>(e-=this.i)||e>=this.g.length?null:this.g[e]},b.offset=function(e){if(!this.o)for(var t=v(this.g),n=t.next();!n.done;n=t.next())n.value.offset(e)},b.rd=function(e){if(!this.o&&e.length){var t=Math.round(1e3*e[0].startTime)/1e3;this.g=this.g.filter(function(e){return Math.round(1e3*e.startTime)/1e3<t}),this.g.push.apply(this.g,y(e))}},b.Ic=function(e,t){var n=this;e=e.filter(function(e){return e.endTime>t&&(0==n.g.length||e.endTime>n.g[0].startTime)}),this.rd(e),this.za(t)},b.za=function(e){if(!this.o){var t=this.g.length;this.g=this.g.filter(function(t){return t.endTime>e}),this.i+=t-this.g.length}},b.$b=function(e,t,n){if(n=void 0!==n&&n,!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=t)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=e)this.g.shift(),n||this.i++;else break;0!=this.g.length&&((t=new ay((e=this.g[this.g.length-1]).startTime,t,e.H,e.Ia,e.ta,e.ba,e.m,e.D,e.C,e.g,e.tilesLayout,e.B,e.h,e.status,e.aesKey)).mimeType=e.mimeType,t.codecs=e.codecs,t.j=e.j,this.g[this.g.length-1]=t)}},b.Id=function(e,t){var n=this;this.o||(this.m&&this.m.stop(),this.m=new tT(function(){var e=t();e?n.g.push.apply(n.g,y(e)):(n.m.stop(),n.m=null)}),this.m.Ja(e))},ax.prototype[Symbol.iterator]=function(){return this.nb(0)},ax.prototype.nb=function(e,t,n){t=void 0!==t&&t,n=void 0!==n&&n;var i=this.find(e);if(null==i)return null;var r=this.get(i);n?i++:i--;var a=-1;if(r&&0<r.g.length)for(var o=r.g.length-1;0<=o;--o){var s=r.g[o];if(e>=s.startTime&&e<s.endTime){if(!t){for(;o&&!s.l;)o--,s=r.g[o];if(!s.l)return ee("No independent partial segment found!"),null}n?i--:i++,a=o-1;break}}return new aA(this,i,a,n)},ax.prototype.bd=function(){return -1},q("shaka.media.SegmentIndex",ax),ax.forSingleSegment=aS,ax.prototype.getIteratorForTime=ax.prototype.nb,ax.prototype.updateEvery=ax.prototype.Id,ax.prototype.fit=ax.prototype.$b,ax.prototype.evict=ax.prototype.za,ax.prototype.mergeAndEvict=ax.prototype.Ic,ax.prototype.offset=ax.prototype.offset,ax.prototype.get=ax.prototype.get,ax.prototype.find=ax.prototype.find,ax.prototype.markImmutable=ax.prototype.jh,ax.prototype.release=ax.prototype.release,ax.prototype.getNumEvicted=ax.prototype.getNumEvicted,ax.prototype.getNumReferences=ax.prototype.getNumReferences,aA.prototype.qc=function(e){this.reverse=e},aA.prototype.pg=function(){return this.h},aA.prototype.current=function(){var e=this.i.get(this.h);return e&&0<e.g.length&&e.u&&this.g>=e.g.length&&(this.h++,this.g=0,e=this.i.get(this.h)),e&&0<e.g.length?e.g[this.g]:e},aA.prototype.next=function(){var e=this.i.get(this.h);return this.reverse?e&&0<e.g.length?(this.g--,0>this.g&&(this.h--,this.g=(e=this.i.get(this.h))&&0<e.g.length?e.g.length-1:0)):(this.h--,this.g=0):e&&0<e.g.length?(this.g++,e.u&&this.g==e.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0),{value:e=this.current(),done:!e}},q("shaka.media.SegmentIterator",aA),aA.prototype.next=aA.prototype.next,aA.prototype.current=aA.prototype.current,aA.prototype.currentPosition=aA.prototype.pg,aA.prototype.setReverse=aA.prototype.qc,A(aE,ax),(b=aE.prototype).clone=function(){var e=new aE;
1return e.h=this.h.slice(),e.i=this.i,e},b.release=function(){for(var e=v(this.h),t=e.next();!t.done;t=e.next())t.value.release();this.h=[]},b.$a=function(e){for(var t=v(this.h),n=t.next();!n.done;n=t.next())n.value.$a(e)},b.find=function(e){for(var t=this.i,n=v(this.h),i=n.next();!i.done;i=n.next()){var r=(i=i.value).find(e);if(null!=r)return r+t;t+=i.getNumEvicted()+i.getNumReferences()}return null},b.get=function(e){for(var t=this.i,n=v(this.h),i=n.next();!i.done;i=n.next()){var r=(i=i.value).get(e-t);if(r)return r;r=i.getNumReferences(),t+=i.getNumEvicted()+r}return null},b.offset=function(){},b.rd=function(){},b.za=function(e){for(var t=v(this.h),n=t.next();!n.done;n=t.next())n.value.za(e);for(;1<this.h.length&&0==this.h[0].getNumReferences();)e=this.h.shift(),this.i+=e.getNumEvicted(),e.release()},b.Ic=function(){},b.$b=function(){},b.Id=function(){},q("shaka.media.MetaSegmentIndex",aE),aE.prototype.updateEvery=aE.prototype.Id,aE.prototype.fit=aE.prototype.$b,aE.prototype.mergeAndEvict=aE.prototype.Ic,aE.prototype.evict=aE.prototype.za,aE.prototype.merge=aE.prototype.rd,aE.prototype.offset=aE.prototype.offset,aE.prototype.get=aE.prototype.get,aE.prototype.find=aE.prototype.find,aE.prototype.forEachTopLevelReference=aE.prototype.$a,aE.prototype.release=aE.prototype.release,ak.prototype.na=function(){return this.g.na()};var aM=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function aD(e,t){this.id=e,this.g=t}function aR(e){if(8<e.g.byteLength)throw new tf(2,3,3002);if(8==e.g.byteLength&&224&e.g.getUint8(0))throw new tf(2,3,3001);for(var t=0,n=0;n<e.g.byteLength;n++)t=256*t+e.g.getUint8(n);return t}function aN(e,t,n){if(!(t=ap(e,t,"Initialization")))return null;var i=e.G.Da(),r=t.attributes.sourceURL;r&&(i=ne(i,[t1(r)])),r=0;var a=null;return(t=rI(t,"range",rP))&&(r=t.start,a=t.end),(n=new am(function(){return i},r,a,aU(e),null,null,n)).codecs=e.G.codecs,n.mimeType=e.G.mimeType,n}function aP(e,t,n,i,r,a,o){var s,u,l,c,d,h,f,p,g,m,y,b,w,x,T,S,A,E;return B(function(k){if(1==k.g)return s=e.presentationTimeline,u=!e.Za||!e.ha.le,l=e.ha.start,c=e.ha.duration,d=e.G.mimeType.split("/")[1],f=null,p=[(h=t)(i,r,a,!1),"webm"==d?h(n.Z(),n.Ia,n.ta,!0):null],h=null,C(k,Promise.all(p),2);if(m=(g=k.h)[0],y=g[1]||null,b=null,w=l-o,x=l,T=c?l+c:1/0,"mp4"==d)var I=function(e,t,n,i,r,a,o){var s,u=(new iZ).P("sidx",function(e){s=function(e,t,n,i,r,a,o){var s=[];o.reader.skip(4);var u=o.reader.N();if(0==u)throw new tf(2,3,3005);if(0==o.version)var l=o.reader.N(),c=o.reader.N();else l=o.reader.mc(),c=o.reader.mc();o.reader.skip(2);var d=o.reader.ma();for(e=e+o.size+c,c=0;c<d;c++){var h=o.reader.N(),f=(0x80000000&h)>>>31;h&=0x7fffffff;var p=o.reader.N();if(o.reader.skip(4),1==f)throw new tf(2,3,3006);s.push(new ay(l/u+n,(l+p)/u+n,function(){return a},e,e+h-1,t,n,i,r)),l+=p,e+=h}return o.parser.stop(),s}(t,i,r,a,o,n,e)});if(e&&u.parse(e),s)return s;throw new tf(2,3,3004)}(m,r,i,n,w,x,T);else{I=m;var M=new ak(y);if(0x1a45dfa3!=aI(M).id)throw new tf(2,3,3008);var D=aI(M);if(0x18538067!=D.id)throw new tf(2,3,3009);M=D.g.byteOffset,D=new ak(D.g);for(var R=null;D.na();){var N=aI(D);if(0x1549a966==N.id){R=N;break}}if(!R)throw new tf(2,3,3010);for(R=new ak(R.g),N=1e6,D=null;R.na();){var P=aI(R);if(2807729==P.id)N=aR(P);else if(17545==P.id)if(4==P.g.byteLength)D=P.g.getFloat32(0);else if(8==P.g.byteLength)D=P.g.getFloat64(0);else throw new tf(2,3,3003)}if(null==D)throw new tf(2,3,3011);if(D*=R=N/1e9,0x1c53bb6b!=(I=aI(new ak(I))).id)throw new tf(2,3,3007);I=function(e,t,n,i,r,a,o,s,u){function l(){return r}var c=[];e=new ak(e.g);for(var d=null,h=null;e.na();){var f=aI(e);if(187==f.id){var p=function(e){var t=new ak(e.g);if(179!=(e=aI(t)).id)throw new tf(2,3,3013);if(e=aR(e),183!=(t=aI(t)).id)throw new tf(2,3,3012);t=new ak(t.g);for(var n=0;t.na();){var i=aI(t);if(241==i.id){n=aR(i);break}}return{Ih:e,th:n}}(f);p&&(f=n*p.Ih,p=t+p.th,null!=d&&c.push(new ay(d+o,f+o,l,h,p-1,a,o,s,u)),d=f,h=p)}}return null!=d&&c.push(new ay(d+o,i+o,l,h,null,a,o,s,u)),c}(I,M,R,D,i,n,w,x,T)}for(A=(S=v(b=I)).next();!A.done;A=S.next())(E=A.value).codecs=e.G.codecs,E.mimeType=e.G.mimeType;return s.ud(b),f=new ax(b),u&&f.$b(x,T,!0),k.return(f)})}function aL(e){return e.pc}function aj(e){var t=ap(e,aL,"RepresentationIndex");return e=rP((e=af(e,aL,"indexRange"))||""),t&&(e=rI(t,"range",rP,e)),e}function aO(e,t){var n=e.G.mimeType.split("/")[1];if(e.G.contentType!=no&&"mp4"!=n&&"webm"!=n)throw new tf(2,4,4006);if("webm"==n&&!t)throw new tf(2,4,4005)}function aU(e){var t=e.G;return{bandwidth:e.bandwidth,audioSamplingRate:t.audioSamplingRate,codecs:t.codecs,contentType:t.contentType,frameRate:t.frameRate||null,height:t.height||null,mimeType:t.mimeType,channelsCount:t.vd,pixelAspectRatio:t.pixelAspectRatio||null,width:t.width||null,label:e.ga.label||null,roles:e.roles||null,language:e.ga.language||null}}function a_(e){return e.sb}function aB(t,n,i,r,a,o,s,u,l,c){l||t.G.md||(t.G.md=af(t,aF,"initialization"));var d,h,f,p,g=t.G.md?function(e,t){var n=e.G.md;if(n||(n=af(e,aF,"initialization")),!n)return null;n=t1(n);var i=e.G.id,r=e.bandwidth||null,a=e.G.Da;return(t=new am(function(){var e=ac(n,i,null,null,r,null);return ne(a(),[e])},0,null,aU(e),null,null,t)).codecs=e.G.codecs,t.mimeType=e.G.mimeType,t}(t,s):null,m=(h=ad(d=t,aF),f=af(d,aF,"media"),p=af(d,aF,"index"),{Aa:h.Aa,timescale:h.timescale,Qc:h.Qc,Wa:h.Wa,Me:h.Me,timeline:h.timeline,Bb:f&&t1(f),Dc:p,mimeType:d.G.mimeType,codecs:d.G.codecs});t.maxSegmentDuration||(t.maxSegmentDuration=m.Aa||0),function(e){var t=+!!e.Dc;if(0==(t+=+!!e.timeline+ +!!e.Aa)||(1!=t&&(e.Dc&&(e.timeline=null),e.Aa=null),!e.Dc&&!e.Bb))throw new tf(2,4,4002)}(m);var y=nH(t);if(m.Dc)return aO(t,g),{endTime:-1,timeline:-1,Kb:function(){var e=ac(m.Dc,y.G.id,null,null,y.bandwidth||null,
1null);return e=ne(y.G.Da(),[e]),aP(y,n,g,e,0,null,m.Wa)}};if(m.Aa)return r||"image"===t.ga.contentType||"text"===t.ga.contentType||(r=t.ha.start,c=t.ca.id,i=t.ha.duration,c=(c=null!=c&&o[c]||i)?r+c:1/0,t.presentationTimeline.se(m.Aa),t.presentationTimeline.Af(r,c)),{endTime:-1,timeline:-1,Kb:function(){return function(t,n,i,r,a,o,s){function u(i){var a=(i-m)*g,s=a+n.Wa,u=a+h,l=Math.min(a=u+g,c());return(u=new ay(u,l,function(){var t=s*y;return"BigInt"in e&&t>Number.MAX_SAFE_INTEGER&&(t=BigInt(s)*BigInt(y)),t=ac(b,x,i,null,w,t),ne(T(),[t])},0,null,r,S,h,c(),[],"",null,null,ab,o)).codecs=t.G.codecs,u.mimeType=t.G.mimeType,u.i=a,u}function l(){var e=[Math.max(d.cb(),h),Math.min(d.yb(),c())].map(function(e){return e-h});return e=[Math.ceil(e[0]/g),Math.ceil(e[1]/g)-1],t.G.Ka&&e[1]++,e.map(function(e){return e+m})}function c(){var e=null!=f&&a[f]||p;return e?h+e:1/0}var d=t.presentationTimeline,h=t.ha.start,f=t.ca.id,p=t.ha.duration,g=n.Aa,m=n.Qc,y=n.timescale,b=n.Bb,w=t.bandwidth||null,x=t.G.id,T=t.G.Da,S=h-n.Wa,A=l();i=t.Za?Math.max(A[0],A[1]-i+1):A[0],s=s||A[1],A=[];for(var E=i;E<=s;++E){var k=u(E);A.push(k)}var I=new ax(A);if(A=d.yb()<c(),E=d.Y(),A||E){var C=Math.max(i,s+1);i=g,t.G.Ka&&(i=.1),I.Id(i,function(){var e=d.cb();I.za(e);var t=v(l());t.next(),t=t.next().value;for(var n=[];C<=t;){var i=u(C);n.push(i),C++}return e>c()&&!n.length?null:n})}return Promise.resolve(I)}(y,m,a,g,o,s,u)}};var b=null;r=r=null,t.ca.id&&t.G.id&&(r=i[r=t.ca.id+","+t.G.id])&&(b=r.segmentIndex);var w=t.ha.start,x=t.ha.duration?w+t.ha.duration:1/0,T=!(t.Za&&t.ha.le);if(b)aV(c=b,m,w,x,T,g),c.za(t.presentationTimeline.cb());else{if(i=0,l=-1,null!=t.ca.id&&null!=t.G.id){var S=c.get(t.ca.id);if(S)l=S.timeline;else for(S=(c=v(c.values())).next();!S.done;S=c.next())if(S=S.value,Math.abs(m.Wa-S.endTime)<=nu&&S.ye.includes(t.G.id)){l=S.timeline;break}else S.timeline>=i&&(i=S.timeline+1)}-1==l&&(l=i),b=new aH(m,t.G.id,t.bandwidth,t.G.Da,w,x,g,T,s,t.G.Be,l)}return m.timeline&&"image"!==t.ga.contentType&&"text"!==t.ga.contentType&&t.presentationTimeline.Bf(m.timeline,w),r&&t.Za&&(r.segmentIndex=b),t=(t=(t=m.timeline)&&t[t.length-1])?t.end+m.Wa:-1,r=-1,b instanceof aH&&(r=b.bd()),{endTime:t,timeline:r,Kb:function(){return b instanceof aH&&0==b.getNumReferences()&&aV(b,m,w,x,T,g),Promise.resolve(b)}}}function aF(e){return e.Eb}function aH(e,t,n,i,r,a,o,s,u,l,c){ax.call(this,[]),this.h=e,this.D=t,this.B=n,this.C=i,this.j=r,this.l=a,this.u=o,this.A=u,this.F=l,this.H=c,s&&aG(this)}function aV(e,t,n,i,r,a){if(function(e,t){if(e.u!==t){e.u=t,e=v(e.g);for(var n=e.next();!n.done;n=e.next())(n=n.value)&&function e(t,n){t.ba=n,t=v(t.g);for(var i=t.next();!i.done;i=t.next())e(i.value,n)}(n,t)}}(e,a),e.h){if(n=e.h.timeline,e.h.Bb!==t.Bb&&(e.h.Bb=t.Bb),n.length){var o=n[n.length-1];t=t.timeline.filter(function(e){return e.start>=o.end})}else t=t.timeline.slice();0<t.length&&e.h.timeline.push.apply(e.h.timeline,y(t)),e.l!==i&&(e.l=i)}else e.h=t,e.j=n,e.l=i;r&&aG(e)}function aG(e){if(e.h&&!e.o){for(var t=e.h.timeline;t.length;)if(t[t.length-1].start>=e.l)t.pop();else break;e.za(e.j)}}function aK(e,t,n,i,r,a,o){return e=ac(e,t,n,a,i||null,r),ne(o(),[e]).map(function(e){return e.toString()})}function aX(){}function aW(e,t){if(t){var n=aq[t.toLowerCase()];if(n)return n}throw new tf(2,4,4e3,e,t)}A(aH,ax),(b=aH.prototype).getNumReferences=function(){return this.h?this.h.timeline.length:0},b.release=function(){ax.prototype.release.call(this),this.h=null},b.za=function(e){if(this.h){for(var t=0,n=this.h.timeline,i=0;i<n.length;i+=1)if(n[i].end+this.j<=e)t+=1;else break;0<t&&(this.h.timeline=n.slice(t),this.g.length>=t&&(this.g=this.g.slice(t)),this.i+=t,0===this.getNumReferences()&&this.release())}},b.find=function(e){if(this.h&&this.h.timeline&&this.h.timeline.length&&e<this.h.timeline[0].start+this.j)return this.i;if(!this.h)return null;var t=this.h.timeline;if(e<this.j||e>=this.l)return null;for(var n=t.length-1,i=0;i<t.length;i++){var r=t[i],a=r.start+this.j;if(r=i<n?t[i+1].start+this.j:1/0===this.l?r.end+this.j:this.l,e>=a&&e<r)return i+this.i}return null},b.get=function(e){var t=this;if(0>(e-=this.i)||e>=this.getNumReferences()||!this.h)return null;var n=this.g[e];if(!n){var i=this.h.timeline[e],r=i.yh,a=this.h.Me+i.Hh;n=this.j-this.h.Wa;var o=this.j+i.end,s=o;e===this.getNumReferences()-1&&1/0!==this.l&&(s=this.l);for(var u=this.h.codecs,l=this.h.mimeType,c=[],d=(i.end-i.start)/i.eb,h={},f=0;f<i.eb;h={Kd:void 0,Xf:void 0},f++){var p=i.start+d*f,g=p+d;h.Xf=f+1,h.Kd=null,(h=new ay(this.j+p,this.j+g,function(e){return function(){return t.h?(null==e.Kd&&(e.Kd=aK(t.h.Bb,t.D,r,t.B,a,e.Xf,t.C)),e.Kd):[]}}(h),0,null,this.u,n,this.j,this.l,[],"",null,null,ab,this.A)).codecs=u,h.mimeType=l,0==this.F?0<f&&h.pd():0!=f%this.F&&h.pd(),c.push(h)}(n=new ay(this.j+i.start,s,function(){return 0<i.eb||!t.h?[]:aK(t.h.Bb,t.D,r,t.B,a,null,t.C)},0,null,this.u,n,this.j,this.l,c,"",null,null,ab,this.A,0<i.eb)).codecs=u,n.mimeType=l,n.i=o,this.g[e]=n}return n},b.$a=function(e){aG(this);for(var t=0;t<this.getNumReferences();t++){var n=this.get(t+this.i);n&&e(n)}},b.bd=function(){return this.H},q("shaka.media.ManifestParser",aX),aX.unregisterParserByMime=function(e){delete aq[e]},aX.registerParserByMime=function(e,t){aq[e]=t},aX.registerParserByExtension=function(){eh("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},aX.AccessibilityPurpose={Uh:"visually impaired",Oh:"hard of hearing"};var aq={};function az(e,t,n){this.i=e,this.A=t,this.o=this.l=1/0,this.h=1,this.g=this.j=null,this.B=0,this.C=!0,this.I=!1,this.H=0,this.D=void 0===n||n,this.F=0,this.u=!1,this.m=e}
1function aY(e,t){if(this.j=e,void 0===t?0:t){t=new Uint8Array(e.byteLength);for(var n=0,i=0;i<e.byteLength;i++)2<=i&&3==e[i]&&0==e[i-1]&&0==e[i-2]||(t[n]=e[i],n++);this.j=eT(t,0,n)}this.i=this.j.byteLength,this.g=this.h=0}function aJ(e){var t=e.j.byteLength-e.i,n=new Uint8Array(4),i=Math.min(4,e.i);0!==i&&(n.set(e.j.subarray(t,t+i)),e.h=new iq(n,0).N(),e.g=8*i,e.i-=i)}function a$(e,t){if(e.g<=t){var n=Math.floor((t-=e.g)/8);t-=8*n,e.g-=n,aJ(e)}e.h<<=t,e.g-=t}function aQ(e,t){var n=Math.min(e.g,t),i=e.h>>>32-n;return e.g-=n,0<e.g?e.h<<=n:0<e.i&&aJ(e),0<(n=t-n)?i<<n|aQ(e,n):i}function aZ(e){var t;for(t=0;t<e.g;++t)if(0!=(e.h&0x80000000>>>t))return e.h<<=t,e.g-=t,t;return aJ(e),t+aZ(e)}function a0(e){a$(e,1+aZ(e))}function a1(e){var t=aZ(e);return aQ(e,t+1)-1}function a2(e){return 1===aQ(e,1)}function a4(e,t){for(var n=8,i=8,r=0;r<t;r++)0!==i&&(i=(n+(1&(i=a1(e))?1+i>>>1:-1*(i>>>1))+256)%256),n=0===i?n:i}function a3(){}function a5(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]||!1}function a6(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]||!1}function a8(e,t){var n=(127&e[t])<<21;return n|=(127&e[t+1])<<14,(n|=(127&e[t+2])<<7)|127&e[t+3]}function a7(e){for(var t=0,n=[];a5(e,t);){var i=a8(e,t+6);for(e[t+5]>>6&1&&(t+=10),t+=10,i=t+i;t+10<i;){var r=e.subarray(t),a=a8(r,4);(a=function(e){var t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if("APIC"===e.type){if(2>e.size||3!==e.data[0])return null;var n=e.data.subarray(1).indexOf(0);if(-1===n)return null;var i=tY(eT(e.data,1,n)),r=e.data[2+n],a=e.data.subarray(3+n).indexOf(0);if(-1===a)return null;var o,s=tY(eT(e.data,3+n,a));return o="--\x3e"===i?tY(eT(e.data,4+n+a)):ex(e.data.subarray(4+n+a)),t.mimeType=i,t.pictureType=r,t.description=s,t.data=o,t}return"TXXX"===e.type||"WXXX"===e.type?2>e.size||3!==e.data[0]||-1===(i=e.data.subarray(1).indexOf(0))?null:(n=tY(eT(e.data,1,i)),e=tY(eT(e.data,2+i)).replace(/\0*$/,""),t.description=n,t.data=e,t):"PRIV"===e.type?2>e.size||-1===(n=e.data.indexOf(0))?null:(t.description=n=tY(eT(e.data,0,n)),"com.apple.streaming.transportStreamTimestamp"==n?(e=1&(n=e.data.subarray(n.length+1))[3],n=((n[4]<<23)+(n[5]<<15)+(n[6]<<7)+n[7])/45,e&&(n+=47721858.84),t.data=n):t.data=e=ex(e.data.subarray(n.length+1)),t):"T"===e.type[0]?2>e.size||3!==e.data[0]?null:(t.data=e=tY(e.data.subarray(1)).replace(/\0*$/,""),t):"W"===e.type[0]?(t.data=e=tY(e.data).replace(/\0*$/,""),t):e.data?(t.data=ex(e.data),t):null}(r={type:String.fromCharCode(r[0],r[1],r[2],r[3]),size:a,data:r.subarray(10,10+a)}))&&n.push(a),t+=r.size+10}a6(e,t)&&(t+=10)}return n}function a9(){this.D=null,this.F=!1,this.m=this.H=null,this.j=[],this.g=[],this.A=this.B=null,this.i=[],this.h=[],this.C=null,this.l=[],this.o=this.u=null}function oe(e,t){if(1!=(t[0]<<16|t[1]<<8|t[2]))return null;var n={data:new Uint8Array(0),packetLength:t[4]<<8|t[5],pts:null,dts:null,nalus:[]};if(n.packetLength&&n.packetLength>t.byteLength-6)return null;var i=t[7];if(192&i){var r=0x20000000*(14&t[9])+4194304*(255&t[10])+16384*(254&t[11])+128*(255&t[12])+(254&t[13])/2;null==e.u&&(e.u=r),n.pts=ot(r,e.u),e.u=n.pts,n.dts=n.pts,64&i&&(i=0x20000000*(14&t[14])+4194304*(255&t[15])+16384*(254&t[16])+128*(255&t[17])+(254&t[18])/2,null==e.o&&(e.o=i),n.dts=ot(i,e.o)),e.o=n.dts}return(e=t[8]+9,t.byteLength<=e)?null:(n.data=t.subarray(e),n)}function ot(e,t){var n=1;for(e>t&&(n=-1);0x100000000<Math.abs(t-e);)e+=0x200000000*n;return e}function on(e){return!(0>oi(e))}function oi(e){for(var t=Math.min(1e3,e.length-564),n=0;n<t;){if(71==e[n]&&71==e[n+188]&&71==e[n+376])return n;n++}return -1}(b=az.prototype).getDuration=function(){return this.l},b.Fg=function(){return this.h},b.Tf=function(e){this.i=e},b.gb=function(e){this.l=e},b.Kg=function(){return this.i},b.Rf=function(e){this.B=e},b.rc=function(e){e&&!this.C&&(this.I=!0),this.C=e},b.Ge=function(e){this.o=e},b.kd=function(){return this.o},b.Ce=function(e){this.A=e},b.xg=function(){return this.A},b.Bf=function(e,t){if(0!=e.length){var n=(Date.now()+this.B)/1e3;if(0!=(e=e.filter(function(e){return e.start+t<n}
1)).length){var i=e[e.length-1].end+t;this.td(e[0].start+t),this.h=e.reduce(function(e,t){return Math.max(e,t.end-t.start)},this.h),this.g=Math.max(this.g,i),null!=this.i&&this.D&&!this.u&&(this.i=n-this.g-this.h)}}},b.ud=function(e){if(0!=e.length){var t=e[0].startTime,n=e[0].endTime,i=(Date.now()+this.B)/1e3;e=v(e);for(var r=e.next();!r.done;r=e.next())i<(r=r.value).startTime||(t=Math.min(t,r.startTime),n=Math.max(n,r.endTime),this.h=Math.max(this.h,r.endTime-r.startTime));this.td(t),this.g=Math.max(this.g,n),null!=this.i&&this.D&&!this.u&&(this.i=i-this.g-this.h)}},b.Af=function(e,t){this.td(e),1/0==t||this.Y()||(this.g=Math.max(this.g,t))},b.Gg=function(){return this.g},b.qe=function(){this.u=!0},b.eh=function(){return this.u},b.Sf=function(e){this.m=e},b.Bg=function(){return this.m},b.td=function(e){null==this.j?this.j=e:this.I||(this.j=Math.min(this.j,e))},b.se=function(e){this.h=Math.max(this.h,e)},b.offset=function(e){null!=this.j&&(this.j+=e),null!=this.g&&(this.g+=e)},b.Y=function(){return 1/0==this.l&&!this.C},b.ec=function(){return 1/0!=this.l&&!this.C},b.cb=function(){return Math.max(this.H,this.yb()-this.o)},b.Wf=function(e){this.H=e},b.yb=function(){return this.Y()||this.ec()?Math.min(Math.max(0,(Date.now()+this.B)/1e3-this.h-this.i)+this.F,this.l):this.g?Math.min(this.g,this.l):this.l},b.zc=function(e){var t=Math.max(this.j,this.H);return 1/0==this.o?Math.ceil(1e3*t)/1e3:Math.max(t,Math.min(this.yb()-this.o+e,this.bb()))},b.ob=function(){return this.zc(0)},b.bb=function(){return Math.max(0,this.yb()-(this.Y()||this.ec()?this.A:0))},b.$f=function(){return null!=this.i&&(null==this.g||!this.D)},b.Qf=function(e){this.F=e},b.vg=function(){return this.F},q("shaka.media.PresentationTimeline",az),az.prototype.getAvailabilityTimeOffset=az.prototype.vg,az.prototype.setAvailabilityTimeOffset=az.prototype.Qf,az.prototype.usingPresentationStartTime=az.prototype.$f,az.prototype.getSeekRangeEnd=az.prototype.bb,az.prototype.getSeekRangeStart=az.prototype.ob,az.prototype.getSafeSeekRangeStart=az.prototype.zc,az.prototype.getSegmentAvailabilityEnd=az.prototype.yb,az.prototype.setUserSeekStart=az.prototype.Wf,az.prototype.getSegmentAvailabilityStart=az.prototype.cb,az.prototype.isInProgress=az.prototype.ec,az.prototype.isLive=az.prototype.Y,az.prototype.offset=az.prototype.offset,az.prototype.notifyMaxSegmentDuration=az.prototype.se,az.prototype.notifyMinSegmentStartTime=az.prototype.td,az.prototype.getInitialProgramDateTime=az.prototype.Bg,az.prototype.setInitialProgramDateTime=az.prototype.Sf,az.prototype.isStartTimeLocked=az.prototype.eh,az.prototype.lockStartTime=az.prototype.qe,az.prototype.getMaxSegmentEndTime=az.prototype.Gg,az.prototype.notifyPeriodDuration=az.prototype.Af,az.prototype.notifySegments=az.prototype.ud,az.prototype.notifyTimeRange=az.prototype.Bf,az.prototype.getDelay=az.prototype.xg,az.prototype.setDelay=az.prototype.Ce,az.prototype.getSegmentAvailabilityDuration=az.prototype.kd,az.prototype.setSegmentAvailabilityDuration=az.prototype.Ge,az.prototype.setStatic=az.prototype.rc,az.prototype.setClockOffset=az.prototype.Rf,az.prototype.getPresentationStartTime=az.prototype.Kg,az.prototype.setDuration=az.prototype.gb,az.prototype.setPresentationStartTime=az.prototype.Tf,az.prototype.getMaxSegmentDuration=az.prototype.Fg,az.prototype.getDuration=az.prototype.getDuration,q("shaka.util.ExpGolomb",aY),q("shaka.util.Id3Utils",a3),a3.getID3Data=function(e,t){for(var n=t=void 0===t?0:t,i=0;a5(e,t);)e[t+5]>>6&1&&(i+=10),i+=10,i+=a8(e,t+6),a6(e,t+10)&&(i+=10),t+=i;return 0<i?e.subarray(n,n+i):new Uint8Array([])},a3.getID3Frames=a7,(b=a9.prototype).clearData=function(){this.j=[],this.g=[],this.i=[],this.h=[],this.l=[]},b.parse=function(e){if(564>e.length)return this;for(var t=Math.max(0,oi(e)),n=e.length-(e.length+t)%188,i=!1,r=t;r<n;r+=188)if(71==e[r]){var a=!!(64&e[r+1]),o=((31&e[r+1])<<8)+e[r+2];if(1<(48&e[r+3])>>4){var s=r+5+e[r+4];if(s==r+188)continue}else s=r+4;switch(o){case 0:a&&(s+=e[s]+1),this.D=(31&e[s+10])<<8|e[s+11];break;case 17:case 8191:break;case this.D:a&&(s+=e[s]+1),o={audio:-1,video:-1,ld:-1,audioCodec:"",videoCodec:""};var u=s+3+((15&(a=e)[s+1])<<8|a[s+2])-4;for(s+=12+((15&a[s+10])<<8|a[s+11]);s<u;
1){var l=(31&a[s+1])<<8|a[s+2],c=(15&a[s+3])<<8|a[s+4];switch(a[s]){case 6:if(0<c)for(var d=s+5,h=c;2<h;){var f=a[d+1]+2;switch(a[d]){case 5:var p=t0(a.subarray(d+2,d+f));-1==o.audio&&"Opus"===p?(o.audio=l,o.audioCodec="opus"):-1==o.video&&"AV01"===p&&(o.video=l,o.videoCodec="av1");break;case 106:-1==o.audio&&(o.audio=l,o.audioCodec="ac3");break;case 122:-1==o.audio&&(o.audio=l,o.audioCodec="ec3");break;case 124:-1==o.audio&&(o.audio=l,o.audioCodec="aac")}d+=f,h-=f}break;case 15:-1==o.audio&&(o.audio=l,o.audioCodec="aac");break;case 17:-1==o.audio&&(o.audio=l,o.audioCodec="aac-loas");break;case 21:-1==o.ld&&(o.ld=l);break;case 27:-1==o.video&&(o.video=l,o.videoCodec="avc");break;case 3:case 4:-1==o.audio&&(o.audio=l,o.audioCodec="mp3");break;case 36:-1==o.video&&(o.video=l,o.videoCodec="hvc");break;case 129:-1==o.audio&&(o.audio=l,o.audioCodec="ac3");break;case 132:case 135:-1==o.audio&&(o.audio=l,o.audioCodec="ec3")}s+=c+5}-1!=(a=o).video&&(this.H=a.video,this.m=a.videoCodec),-1!=a.audio&&(this.B=a.audio,this.A=a.audioCodec),-1!=a.ld&&(this.C=a.ld),i&&!this.F&&(i=!1,r=t-188),this.F=!0;break;case this.H:s=e.subarray(s,r+188),a?this.j.push([s]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(s);break;case this.B:s=e.subarray(s,r+188),a?this.i.push([s]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(s);break;case this.C:s=e.subarray(s,r+188),a?this.l.push([s]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(s);break;default:i=!0}}return this},b.nh=function(e){return eh("TsParser.parseAvcNalus","Please use parseNalus function instead."),this.ve(e)},b.ve=function(e,t,n){var i=e.pts?e.pts/9e4:null,r=(e=e.data).byteLength,a=1;"hvc"==this.m&&(a=2);for(var o,s=n||0,u=[],l=-1,c=0,d=0;d<r;++d){var h=e[d];if(h){if(2<=s&&1==h){if(t&&!u.length&&-1==l&&(h=d-(3<s?3:s),n&&0!=h&&(h=e.subarray(0,h),t.data=t9(t.data,h),t.fullData=t9(t.fullData,h))),0<=l?(s=d-((3<s?3:s)+1),u.push({data:e.subarray(l+a,s+1),fullData:e.subarray(l,s+1),type:c,time:i})):t&&!u.length&&0<(l=d-s)&&(l=e.subarray(0,l),t.data=t9(t.data,l),t.fullData=t9(t.fullData,l)),d>=r-a)return u;l=++d,c="hvc"==this.m?e[d]>>1&63:31&e[d]}s=0}else s++;d>=r-1&&0<=l&&0<=s&&(o={data:e.subarray(l+a,r),fullData:e.subarray(l,r),type:c,time:i})}return o&&u.push(o),!u.length&&t&&(t.data=t9(t.data,e),t.fullData=t9(t.fullData,e)),u},b.getMetadata=function(){for(var e=[],t=v(this.l),n=t.next();!n.done;n=t.next())(n=oe(this,n=t9.apply(t4,y(n.value))))&&e.push({cueTime:n.pts?n.pts/9e4:null,data:n.data,frames:a7(n.data),dts:n.dts,pts:n.pts});return e},b.gf=function(){if(this.i.length&&!this.h.length){for(var e=!1,t=v(this.i),n=t.next();!n.done;n=t.next()){var i=t9.apply(t4,y(n.value)),r=oe(this,i);n=this.h.length?this.h[this.h.length-1]:null,r&&null!=r.pts&&null!=r.dts&&(!n||n.pts!=r.pts&&n.dts!=r.dts)?(this.h.length&&r.dts<(n.dts||0)&&(e=!0),this.h.push(r)):this.h.length&&(i=r?r.data:i)&&((n=this.h.pop()).data=t9(n.data,i),this.h.push(n))}e&&(this.h=this.h.sort(function(e,t){var n=(e.pts||0)-(t.pts||0);return(e.dts||0)-(t.dts||0)||n}))}return this.h},b.fe=function(e){if(e=void 0===e||e,this.j.length&&!this.g.length){for(var t=!1,n=v(this.j),i=n.next();!i.done;i=n.next()){var r=t9.apply(t4,y(i.value)),a=oe(this,r);i=this.g.length?this.g[this.g.length-1]:null,a&&null!=a.pts&&null!=a.dts&&(!i||i.pts!=a.pts&&i.dts!=a.dts)?(this.g.length&&a.dts<(i.dts||0)&&(t=!0),this.g.push(a)):this.g.length&&(r=a?a.data:r)&&((i=this.g.pop()).data=t9(i.data,r),this.g.push(i))}if(e){for(n=[],r=(i=v(this.g)).next();!r.done;r=i.next())if((r=r.value).nalus=this.ve(r,o,void 0),r.nalus.length){n.push(r);var o=r.nalus[r.nalus.length-1]}this.g=n}t&&(this.g=this.g.sort(function(e,t){var n=(e.pts||0)-(t.pts||0);return(e.dts||0)-(t.dts||0)||n}))}return e?this.g:(e=this.g,this.g=[],e)},b.getStartTime=function(e){if("audio"==e){e=null;var t=this.gf();return t.length&&(e=Math.min((e=t[0]).dts,e.pts)/9e4),e}return"video"==e?(e=null,(t=this.fe(!1)).length&&(e=Math.min((e=t[0]).dts,e.pts)/9e4),e):null},b.kf=function(){return{audio:this.A,video:this.m}},b.he=function(){for(var e=[],t=v(this.fe()),n=t.next();!n.done;n=t.next())e.push.apply(e,y(n.value.nalus));return e},b.Ug=function(){eh("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var e=this.ge();return{height:e.height,width:e.width}},b.ge=function(){return"hvc"==this.m?function(e){var t={height:null,width:null,codec:null};if(!(e=e.he()).length||!(e=e.find(function(e){return 33==e.type})))return t;var n=new aY(e.fullData,!0);aQ(n,8),aQ(n,8),aQ(n,4);var i=aQ(n,3);a2(n);var r=aQ(n,2),a=aQ(n,1),o=aQ(n,5),s=aQ(n,32);e=aQ(n,8);for(var u=aQ(n,8),l=aQ(n,8),c=aQ(n,8),d=aQ(n,8),h=aQ(n,8),f=aQ(n,8),p=[],g=[],m=0;m<i;
1m++)p.push(a2(n)),g.push(a2(n));if(0<i)for(m=i;8>m;m++)aQ(n,2);for(m=0;m<i;m++)p[m]&&aQ(n,88),g[m]&&aQ(n,8);a1(n),3==(i=a1(n))&&aQ(n,1),p=a1(n),g=a1(n);var v=m=0,y=0,b=0;return a2(n)&&(m+=a1(n),v+=a1(n),y+=a1(n),b+=a1(n)),t.width=String(p-(m+v)*(1===i||2===i?2:1)),t.height=String(g-(y+b)*(1===i?2:1)),n=function(e){for(var t=0,n=0;32>n;n++)t|=(e>>n&1)<<31-n;return t>>>0}(s),a=1==a?"H":"L",r="hvc1."+["","A","B","C"][r]+o+"."+n.toString(16).toUpperCase()+("."+a)+f,h&&(r+="."+h.toString(16).toUpperCase()),d&&(r+="."+d.toString(16).toUpperCase()),c&&(r+="."+c.toString(16).toUpperCase()),l&&(r+="."+l.toString(16).toUpperCase()),u&&(r+="."+u.toString(16).toUpperCase()),e&&(r+="."+e.toString(16).toUpperCase()),t.codec=r,t}(this):function(e){var t={height:null,width:null,codec:null};if(!(e=e.he()).length||!(e=e.find(function(e){return 7==e.type})))return t;var n=aQ(e=new aY(e.data),8),i=aQ(e,8),r=aQ(e,8);if(a0(e),or.includes(n)){var a=a1(e);if(3===a&&a$(e,1),a0(e),a0(e),a$(e,1),a2(e)){a=3!==a?8:12;for(var o=0;o<a;o++)a2(e)&&(6>o?a4(e,16):a4(e,64))}}if(a0(e),0===(a=a1(e)))a1(e);else if(1===a)for(a$(e,1),a0(e),a0(e),a=a1(e),o=0;o<a;o++)a0(e);a0(e),a$(e,1),a=a1(e),o=a1(e);var s=aQ(e,1);0===s&&a$(e,1),a$(e,1);var u=0,l=0,c=0,d=0;return a2(e)&&(u=a1(e),l=a1(e),c=a1(e),d=a1(e)),t.height=String((2-s)*(o+1)*16-2*c-2*d),t.width=String(16*(a+1)-2*u-2*l),t.codec="avc1."+("0"+n.toString(16).toUpperCase()).slice(-2)+("0"+i.toString(16).toUpperCase()).slice(-2)+("0"+r.toString(16).toUpperCase()).slice(-2),t}(this)},q("shaka.util.TsParser",a9),a9.syncOffset=oi,a9.probe=on,a9.prototype.getVideoInfo=a9.prototype.ge,a9.prototype.getVideoResolution=a9.prototype.Ug,a9.prototype.getVideoNalus=a9.prototype.he,a9.prototype.getCodecs=a9.prototype.kf,a9.prototype.getStartTime=a9.prototype.getStartTime,a9.prototype.getVideoData=a9.prototype.fe,a9.prototype.getAudioData=a9.prototype.gf,a9.prototype.getMetadata=a9.prototype.getMetadata,a9.prototype.parseNalus=a9.prototype.ve,a9.prototype.parseAvcNalus=a9.prototype.nh,a9.prototype.parse=a9.prototype.parse,a9.prototype.clearData=a9.prototype.clearData,a9.Timescale=9e4;var or=[100,110,122,244,44,83,86,118,128,138,139,134];function oa(e){var t=nv(e),n=t.split("/")[0];return{type:n,mimeType:t,codecs:e=ny(e),language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,Tc:null,colorGamut:null}}function oo(e){var t=new Set,n=[];e=v(e);for(var i=e.next();!i.done;i=e.next()){var r=nm(i=i.value);t.has(r)||(n.push(i),t.add(r))}return t=na("audio",n),i=na("video",n),e=na(no,n),i=function(e){if(1>=e.length)return e;var t=e.find(function(e){return e.startsWith("dvav.")||e.startsWith("dva1.")||e.startsWith("dvh1.")||e.startsWith("dvhe.")||e.startsWith("dav1.")||e.startsWith("dvc1.")||e.startsWith("dvi1.")});return t?eu('video/mp4; codecs="'+t+'"')?[t]:e.filter(function(e){return e!=t}):e}(i),t=t.concat(i).concat(e),n.length&&!t.length?n:t}function os(t,n,i){var r,a,o,s,u;return B(function(l){if(1==l.g)return(r=n).cryptoKey?l.s(2):C(l,r.fetchKey(),3);if(!(a=r.iv))for(a=eT(new ArrayBuffer(16)),o=r.firstMediaSequenceNumber+i,s=a.byteLength-1;0<=s;s--)a[s]=255&o,o>>=8;return u="CBC"==n.blockCipherMode?{name:"AES-CBC",iv:a}:{name:"AES-CTR",counter:a,length:64},l.return(e.crypto.subtle.decrypt(u,r.cryptoKey,t))})}function ou(e){this.o=null,this.A=e,this.F=new r9,this.i=[],this.h=null,this.m=[],this.B=null,this.D=[],this.C=300,this.l=new Map,this.j=new Map,this.g=null,this.u="UNKNOWN"}function ol(e,t){var n,i,r,a,o;return B(function(s){var u,l,c,d;return 1==s.g?(n=ai(ne(e.i,[function(e,t){if(!e.m.length)return t;t=new e7(t);var n,i=e.B||e.m[0],r=Math.round(e.A.getBandwidthEstimate()),a=t.g;return"DASH"==e.u?(a.add("_DASH_pathway",i),a.add("_DASH_throughput",String(r))):"HLS"==e.u&&(a.add("_HLS_pathway",i),a.add("_HLS_throughput",String(r))),th(n=a),n.wc&&tn(t,a),t.toString()}(e,t)]),e.o.retryParameters),i=e.A.networkingEngine.request(8,n),ae(e.F,i),D(s,2),C(s,i.promise,4)):2!=s.g?(1==(a=JSON.parse(tY((r=s.h).data))).VERSION&&(u=e,l=a,c=r.uri,null!=u.g&&(u.g.stop(),u.g=null),d=l["RELOAD-URI"]||c,u.g=new tT(function(){ol(u,d)}),(c=l.TTL)&&(u.C=c),u.g.da(u.C),u.m=l["PATHWAY-PRIORITY"]||[],u.D=l["PATHWAY-CLONES"]||[]),R(s,0)):(o=N(s))&&7001==o.code?s.return():void(null!=e.g&&(e.g.stop(),e.g=null),e.g=new tT(function(){ol(e,t)}),e.g.da(e.C),M(s))})}function oc(e,t,n,i){var r=e.l.get(t);r||(r=new Map),r.set(n,i),e.l.set(t,r)}
1function od(e,t,n){n=void 0!==n&&n,t=e.l.get(t)||new Map;for(var i=[],r=v(e.m),a=r.next(),o={};!a.done;o={kc:void 0},a=r.next())if(o.kc=a.value,a=t.get(o.kc))i.push({we:o.kc,location:a});else if(a=e.D.find(function(e){return function(t){return t.Ph==e.kc}}(o))){var s=t.get(a["BASE-ID"]);s&&(a["URI-REPLACEMENT"].dg?(te(s=new e7(s),a["URI-REPLACEMENT"].dg),i.push({we:o.kc,location:s.toString()})):i.push({we:o.kc,location:s}))}for(r=Date.now(),a=(o=v(e.j.keys())).next();!a.done;a=o.next())a=a.value,r>(s=e.j.get(a))&&e.j.delete(a);if((i=i.filter(function(t){for(var n=v(e.j.keys()),i=n.next();!i.done;i=n.next())if(i.value.includes(new e7(t.location).jb))return!1;return!0})).length&&(e.B=i[0].we),!(i=i.map(function(e){return e.location})).length&&e.h)for(o=(r=v(e.h.split(","))).next();!o.done;o=r.next())(o=t.get(o.value))&&(e.B=e.h,i.push(o));if(!i.length)for(r=(t=v(t.values())).next();!r.done;r=t.next())i.push(r.value);return n?i:ne(e.i,i)}function oh(e,t,n,i,r){return e=ai(e,i,r),(0!=t||null!=n)&&(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}function of(){this.l=[],this.h=[],this.g=[],this.j=[],this.i=[],this.u=this.o=!1,this.m=new Set}function op(e,t){var n=[],i=[],r=[],a=[];e=v(e);for(var o=e.next();!o.done;o=e.next()){var s=o.value;o=new Map(s.audioStreams.map(function(e){return[oL(e),e]}));var u=new Map(s.videoStreams.map(function(e){return[oP(e),e]})),l=new Map(s.textStreams.map(function(e){return[oj(e),e]}));if(s=new Map(s.imageStreams.map(function(e){return[oO(e),e]})),t){var c=oM(no);l.set(oj(c),c),c=oM("image"),s.set(oO(c),c)}n.push(o),i.push(u),r.push(l),a.push(s)}return{Xe:n,bg:i,Yf:r,qf:a}}function og(e,t,n,i,r){var a,o,s,u,l,c,d,h,f,p,g,m,y,b;return B(function(w){switch(w.g){case 1:for(o=0,a=[];o<n.length;o++)o>=i?a.push(new Set(n[o].values())):a.push(new Set);u=(s=v(t)).next();case 2:var x,T,S,A,E,k,I;if(u.done){w.s(4);break}return C(w,(x=e,T=u.value,S=n,A=i,E=ob,k=a,I=r,B(function(e){return 1==e.g?(ow(x,S,T,0<I),T.matchedStreams?T.segmentIndex?C(e,om(T,A+I),2):e.s(2):e.return(!1)):(ov(T,A,E,k,I),e.return(!0))})),5);case 5:if(!w.h)throw new tf(2,4,4037);u=s.next(),w.s(2);break;case 4:for(c=(l=v(a)).next();!c.done;c=l.next())for(h=(d=v(c.value)).next();!h.done;h=d.next())(f=function(e,t,n,i,r,a){if(oN(t))return null;var o=i(t);return(ow(e,n,o),o.createSegmentIndex&&(o.createSegmentIndex=function(){return B(function(e){return o.segmentIndex?e.s(0):(o.segmentIndex=new aE,C(e,om(o,0),0))})}),o.matchedStreams&&o.matchedStreams.length)?(ov(o,0,r,a,0),o):null}(e,h.value,n,oy,ob,a))&&t.push(f);for(g=(p=v(a)).next();!g.done;g=p.next())for(y=(m=v(g.value)).next(),b={};!y.done;b={He:void 0},y=m.next())if(b.He=y.value,!oN(b.He)&&t.some(function(t){return function(n){return oT(e,t.He,n)}}(b)))throw new tf(2,4,4037);return w.return(t)}})}function om(e,t){var n,i,r,a,o,s;return B(function(u){if(1==u.g){for(n=[],i=e.matchedStreams,r=t;r<i.length;r++)a=i[r],n.push(a.createSegmentIndex()),a.trickModeVideo&&!a.trickModeVideo.segmentIndex&&n.push(a.trickModeVideo.createSegmentIndex());return C(u,Promise.all(n),2)}if(e.segmentIndex instanceof aE)for(o=t;o<i.length;o++)(s=i[o]).segmentIndex&&e.segmentIndex.h.push(s.segmentIndex);M(u)})}function ov(e,t,n,i,r){var a=e.matchedStreams;for(t+=r;t<a.length;t++){var o=a[t];n(e,o);var s=!0;if("audio"==e.type&&0==nj(e.language,o.language)&&(s=!1),s&&(i[t-r].delete(o),o.fullMimeTypes))for(s=(o=v(o.fullMimeTypes.values())).next();!s.done;s=o.next())e.fullMimeTypes.add(s.value)}}function oy(e){var t=Object.assign({},e);return t.originalId=null,t.createSegmentIndex=function(){return Promise.resolve()},t.closeSegmentIndex=function(){if(t.segmentIndex&&(t.segmentIndex.release(),t.segmentIndex=null),t.matchedStreams)for(var e=v(t.matchedStreams),n=e.next();!n.done;n=e.next())(n=n.value).segmentIndex&&(n.segmentIndex.release(),n.segmentIndex=null)},t.roles=t.roles.slice(),t.segmentIndex=null,t.emsgSchemeIdUris=[],t.keyIds=new Set,t.closedCaptions=e.closedCaptions?new Map(e.closedCaptions):null,t.trickModeVideo=null,t}function ob(e,t){function n(e,t){e||(e=[]),t=v(t);for(var n=t.next();!n.done;n=t.next())n=n.value,e.includes(n)||e.push(n);return e}e.roles=n(e.roles,t.roles),t.emsgSchemeIdUris&&(e.emsgSchemeIdUris=n(e.emsgSchemeIdUris,t.emsgSchemeIdUris));for(var i=v(t.keyIds),r=i.next();!r.done;r=i.next())e.keyIds.add(r.value);if(null==e.originalId?e.originalId=t.originalId:(i=t.originalId||"")&&!e.originalId.endsWith(i)&&(e.originalId+=","+i),i=tv(e.drmInfos,t.drmInfos),t.drmInfos.length&&e.drmInfos.length&&!i.length)throw new tf(2,4,4038);if(e.drmInfos=i,e.encrypted=e.encrypted||t.encrypted,t.closedCaptions)for(e.closedCaptions||(e.closedCaptions=new Map),r=(i=v(t.closedCaptions)).next();!r.done;r=i.next()){var a=v(r.value);r=a.next().value,a=a.next().value,e.closedCaptions.set(r,a)}e.bandwidth&&t.bandwidth&&(e.bandwidth=Math.max(e.bandwidth,t.bandwidth)),t.trickModeVideo?(e.trickModeVideo||(e.trickModeVideo=oy(t.trickModeVideo),e.trickModeVideo.matchedStreams=[],e.trickModeVideo.createSegmentIndex=function(){if(e.trickModeVideo.segmentIndex)return Promise.resolve();for(var t=new aE,n=v(e.trickModeVideo.matchedStreams),i=n.next();!i.done;i=n.next())t.h.push(i.value.segmentIndex);return e.trickModeVideo.segmentIndex=t,Promise.resolve()}),e.trickModeVideo.matchedStreams.push(t.trickModeVideo),ob(e.trickModeVideo,t.trickModeVideo)):e.trickModeVideo&&(e.trickModeVideo.matchedStreams.push(t),ob(e.trickModeVideo,t))}function ow(e,t,n,i){i=(void 0===i?0:i)?n.matchedStreams:[],t=v(t);for(var r=t.next();!r.done;r=t.next()){if(!(r=function(e,t,n){var i={audio:oL,video:oP,text:oj,image:oO}[n.type],r=null,a=i(n);if(t.has(a))r=t.get(a);else{a=({audio:function(t,n){return oT(e,t,n)},video:function(t,n){return oT(e,t,n)},text:oS,image:oA})[n.type];for(var o={audio:oE,video:ok,text:oI,image:oC}[n.type],s=v(t.values()),u=s.next();!u.done;u=s.next())a(n,u=u.value)&&n.fastSwitching==u.fastSwitching&&(!r||o(n,r,u))&&(r=u)}return e.u&&!oN(r)&&t.delete(i(r)),r}(e,r.value,n)))return;i.push(r)}n.matchedStreams=i}function ox(e,t){return e.mimeType==t.mimeType&&oU(e.codecs)===oU(t.codecs)}function oT(e,t,n){return(!!ox(t,n)||!!e.o)&&(!t.drmInfos||!!tm(t.drmInfos,n.drmInfos))}function oS(e,t){return!t.language||e.forced===t.forced&&0!=nj(e.language,t.language)&&t.kind==e.kind}function oA(){return!0}function oE(e,t,n){var i=ox(e,t),r=ox(e,n);if(i&&!r)return!1;if(!i&&r||(i=nj(e.language,t.language),(r=nj(e.language,n.language))>i))return!0;
1if(r<i)return!1;if(t.label!==n.label){if(e.label===t.label)return!1;if(e.label===n.label)return!0}if(e.roles.length){if(i=t.roles.filter(function(t){return e.roles.includes(t)}),(r=n.roles.filter(function(t){return e.roles.includes(t)})).length>i.length)return!0;if(r.length<i.length)return!1;if(n.roles.length!==t.roles.length)return n.roles.length<t.roles.length}else{if(!n.roles.length&&t.roles.length)return!0;if(n.roles.length&&!t.roles.length)return!1}return!t.primary&&!!n.primary||(!t.primary||!!n.primary)&&((i=oD(e.channelsCount,t.channelsCount,n.channelsCount))==o_||i!=oF&&((i=oD(e.audioSamplingRate,t.audioSamplingRate,n.audioSamplingRate))==o_||i!=oF&&!!e.bandwidth&&oR(e.bandwidth,t.bandwidth,n.bandwidth)==o_))}function ok(e,t,n){var i=ox(e,t),r=ox(e,n);if(i&&!r)return!1;if(!i&&r||(i=oD(e.width*e.height,t.width*t.height,n.width*n.height))==o_)return!0;if(i==oF)return!1;if(e.frameRate){if((i=oD(e.frameRate,t.frameRate,n.frameRate))==o_)return!0;if(i==oF)return!1}return!!e.bandwidth&&oR(e.bandwidth,t.bandwidth,n.bandwidth)==o_}function oI(e,t,n){var i=nj(e.language,t.language),r=nj(e.language,n.language);if(r>i)return!0;if(r<i)return!1;if(!t.primary&&n.primary)return!0;if(t.primary&&!n.primary)return!1;if(t.label!==n.label){if(e.label===t.label)return!1;if(e.label===n.label)return!0}if(e.roles.length){if(i=t.roles.filter(function(t){return e.roles.includes(t)}),(r=n.roles.filter(function(t){return e.roles.includes(t)})).length>i.length)return!0;if(r.length<i.length)return!1}else{if(!n.roles.length&&t.roles.length)return!0;if(n.roles.length&&!t.roles.length)return!1}return n.mimeType==e.mimeType&&n.codecs==e.codecs&&(t.mimeType!=e.mimeType||t.codecs!=e.codecs)}function oC(e,t,n){return oD(e.width*e.height,t.width*t.height,n.width*n.height)==o_}function oM(e){return{id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new ax([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",originalLanguage:null,label:null,type:e,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set}}function oD(e,t,n){if(t==e&&e!=n)return oF;if(n==e&&e!=t)return o_;if(t>e){if(n<=e||n-e<t-e)return o_;if(n-e>t-e)return oF}else{if(n>e)return oF;if(e-n<e-t)return o_;if(e-n>e-t)return oF}return oB}function oR(e,t,n){return t=Math.abs(e-t),(e=Math.abs(e-n))<t?o_:t<e?oF:oB}function oN(e){switch(e.type){case no:return!e.language;case"image":return!e.tilesLayout;default:return!1}}function oP(e){return JSON.stringify([e.fastSwitching,e.width,e.frameRate,oU(e.codecs),e.mimeType,e.label,e.roles,e.closedCaptions?Array.from(e.closedCaptions.entries()):null,e.bandwidth])}function oL(e){return JSON.stringify([e.fastSwitching,e.channelsCount,e.language,e.bandwidth,e.label,oU(e.codecs),e.mimeType,e.roles,e.audioSamplingRate,e.primary])}function oj(e){return JSON.stringify([e.language,e.label,e.codecs,e.mimeType,e.bandwidth,e.roles])}function oO(e){return JSON.stringify([e.width,e.codecs,e.mimeType])}function oU(e){if(!oH.has(e)){var t=ng(e);oH.set(e,t)}return oH.get(e)}ou.prototype.configure=function(e){this.o=e},ou.prototype.destroy=function(){return this.A=this.o=null,this.i=[],this.h=null,this.m=[],this.D=[],this.l.clear(),null!=this.g&&(this.g.stop(),this.g=null),this.F.destroy()},ou.prototype.setManifestType=function(e){this.u=e},ou.prototype.banLocation=function(e){this.j.set(e,Date.now()+6e4)},(b=of.prototype).release=function(){for(var e=v(this.h.concat(this.g,this.j,this.i)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();this.h=[],this.g=[],this.j=[],this.i=[],this.l=[],this.u=this.o=!1,this.m.clear()},b.Tg=function(){return this.l},b.ee=function(){return this.j.slice()},b.zg=function(){return this.i},b.af=function(e,t){if(e){if("audio"==e.type)for(var n=v(this.h),i=n.next();!i.done;i=n.next())(i=i.value).matchedStreams=i.matchedStreams.filter(function(t){return t!==e});else if("video"==e.type)for(i=(n=v(this.g)).next();!i.done;i=n.next())(i=i.value).matchedStreams=i.matchedStreams.filter(function(t){return t!==e}),i.trickModeVideo&&(i.trickModeVideo.matchedStreams=i.trickModeVideo.matchedStreams.filter(function(t){return t!==e}));else if(e.type==no)for(i=(n=v(this.j)).next();!i.done;i=n.next())(i=i.value).matchedStreams=i.matchedStreams.filter(function(t){return t!==e});else if("image"==e.type)for(i=(n=v(this.i)).next();!i.done;i=n.next())(i=i.value).matchedStreams=i.matchedStreams.filter(function(t){return t!==e});e.segmentIndex&&e.closeSegmentIndex(),this.m.delete(t)}},b.Ud=function(e,t,n){n=void 0!==n&&n;var i,r,a,o,s,u,l,c,d,h,f,p,g,m,y,b,w,x,T,S,A,E,k,I,D,R,N,P,L,j=this;return B(function(O){if(1==O.g){if(i=ns,!t&&1==e.length)return a=(r=op(e,!1)).Xe,o=r.bg,s=r.Yf,u=r.qf,j.h=Array.from(a[0].values()),j.g=Array.from(o[0].values()),j.j=Array.from(s[0].values()),j.i=Array.from(u[0].values()),O.s(2);for(l=n?j.m.size:0,c=-1,d=0;d<e.length;d++)h=e[d],j.m.has(h.id)||(j.m.add(h.id),-1==c&&(c=d));return -1==c?O.return():(p=(f=op(e,!0)).Xe,g=f.bg,m=f.Yf,y=f.qf,C(O,Promise.all([og(j,j.h,p,c,l),og(j,j.g,g,c,l),og(j,j.j,m,c,l),og(j,j.i,y,c,l)]),2))}if(b=0,w=[],j.g.length&&j.h.length)for(k=(E=v(j.h)).next();!k.done;k=E.next())for(I=k.value,R=(D=v(j.g)).next();!R.done;R=D.next())N=R.value,P=tv(I.drmInfos,N.drmInfos),I.drmInfos.length&&N.drmInfos.length&&!P.length||(L=b++,w.push({id:L,language:I.language,disabledUntilTime:0,primary:I.primary,audio:I,video:N,bandwidth:(I.bandwidth||0)+(N.bandwidth||0),drmInfos:P,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(T=(x=v(j.g.length?j.g:j.h)).next();!T.done;T=x.next())S=T.value,A=b++,w.push({id:A,language:S.language,disabledUntilTime:0,primary:S.primary,audio:S.t
1ype==i.X?S:null,video:S.type==i.ia?S:null,bandwidth:S.bandwidth||0,drmInfos:S.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});j.l=w,M(O)})},b.Pf=function(e){this.o=e},b.Vf=function(e){this.u=e},q("shaka.util.PeriodCombiner",of),of.prototype.setUseStreamOnce=of.prototype.Vf,of.prototype.setAllowMultiTypeVariants=of.prototype.Pf,of.prototype.combinePeriods=of.prototype.Ud,of.prototype.deleteStream=of.prototype.af,of.prototype.getImageStreams=of.prototype.zg,of.prototype.getTextStreams=of.prototype.ee,of.prototype.getVariants=of.prototype.Tg;var o_=1,oB=0,oF=-1,oH=new Map;function oV(){}function oG(e,t,n,i,r){var a,o=r in i,s=o?n.constructor==Object&&0==Object.keys(i).length:n.constructor==Object&&0==Object.keys(n).length,u=o||s,l=!0;for(a in t){var c=r+"."+a,d=o?i[r]:n[a];u||a in n?void 0===t[a]?void 0===d||u?delete e[a]:e[a]=nF(d):s?e[a]=t[a]:d.constructor==Object&&t[a]&&t[a].constructor==Object?(e[a]||(e[a]=nF(d)),c=oG(e[a],t[a],d,i,c),l=l&&c):typeof t[a]!=typeof d||null==t[a]||"function"!=typeof t[a]&&t[a].constructor!=d.constructor?(ee("Invalid config, wrong type for "+c),l=!1):("function"==typeof n[a]&&n[a].length!=t[a].length&&et("Unexpected number of arguments for "+c),e[a]=t[a]):(ee("Invalid config, unrecognized key "+c),l=!1)}return l}function oK(e,t){for(var n={},i=n,r=0,a=0;!(0>(r=e.indexOf(".",r)));)(0==r||"\\"!=e[r-1])&&(i[a=e.substring(a,r).replace(/\\\./g,".")]={},i=i[a],a=r+1),r+=1;return i[e.substring(a).replace(/\\\./g,".")]=t,n}function oX(e,t){function n(e){return Array.isArray(e)&&0===e.length}function i(e){return e&&"object"==typeof e&&!Array.isArray(e)}return!function e(t){for(var r=v(Object.keys(t)),a=r.next();!a.done;a=r.next())i(t[a=a.value])&&0===Object.keys(t[a]).length||n(t[a])||"function"==typeof t[a]?delete t[a]:i(t[a])&&(e(t[a]),0===Object.keys(t[a]).length&&delete t[a])}(e=function e(t,r){return Object.keys(t).reduce(function(a,o){var s=t[o];return r.hasOwnProperty(o)?i(s)&&i(r[o])?(0<Object.keys(s=e(s,r[o])).length||!i(s))&&(a[o]=s):n(s)&&n(r[o])||Number.isNaN(s)&&Number.isNaN(r[o])||s!==r[o]&&(a[o]=s):a[o]=s,a},{})}(e,t)),e}function oW(){}function oq(e){return new e7(e=t$(e)).jb}function oz(e,t,n){function i(e){eA(a).setUint32(o,e.byteLength,!0),o+=4,a.set(eT(e),o),o+=e.byteLength}if(!n||!n.byteLength)throw new tf(2,6,6015);var r="string"==typeof t?tZ(t,!0):t,a=new Uint8Array(12+(e=tZ(e=t$(e),!0)).byteLength+r.byteLength+n.byteLength),o=0;return i(e),i(r),i(n),a}function oY(e,t,n){return"skd"!==t?e:(t=n.serverCertificate,n=t$(e).split("skd://").pop(),oz(e,n,t))}function oJ(e,t){2===e&&(t.headers["Content-Type"]="application/octet-stream")}function o$(){}function oQ(){var t=1/0;navigator.connection&&navigator.connection.saveData&&(t=360);var n={retryParameters:rZ(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(e,t,n){return tK()&&"skd"==t&&(t=n.serverCertificate,n=oq(e),e=oz(e,n,t)),e},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:tk(),minHdcpVersion:"",ignoreDuplicateInitData:!tV("Tizen 2"),additionalRestrictedStatuses:[]};(tk()||tj())&&n.preferredKeySystems.push("com.microsoft.playready");var i="reload",r=!1;tI()||!(!tR()||tR()&&tH()||tR()&&tV("Fuchsia"))||tF()&&tE()||(i="smooth",r=!0),r={retryParameters:rZ(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,overrideDolbyVisionCodecs:!1,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"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:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"},manifestPreprocessor:o0,manifestPreprocessorTXml:o1,sequenceMode:!1,enableAudioGroups:!1,multiTypeVariantsAllowed:r,useStreamOnceInPeriodFlattening:!1,updatePeriod:-1,enableFastSwitching:!0}
1,hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',useSafariBehaviorForLive:!0,liveSegmentsDelay:3,sequenceMode:!(tC()||tV("Tizen 2")||tD()&&38===tN()||tj()),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,restrictedManifestParsing:!1},mss:{manifestPreprocessor:o0,manifestPreprocessorTXml:o1,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}};var a={additionalHdcpCheck:tE(),retryParameters:rZ(),failureCallback:function(e){},rebufferingGoal:0,bufferingGoal:10,bufferBehind:30,evictionGoal:1,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,gapPadding:.01,gapJumpTimerTime:.25,durationBackoff:1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsForFairPlay:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTP:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30,parsePrftBox:!1,segmentPrefetchLimit:0,prefetchAudioLanguages:[],disableAudioPrefetch:!1,disableTextPrefetch:!1,disableVideoPrefetch:!1,liveSync:{enabled:!1,targetLatency:.5,targetLatencyTolerance:.5,maxPlaybackRate:1.1,minPlaybackRate:.95,panicMode:!1,panicThreshold:60,dynamicTargetLatency:{enabled:!1,stabilityThreshold:60,rebufferIncrement:.5,maxAttempts:10,maxLatency:4,minLatency:1}},allowMediaSourceRecoveries:!0,minTimeBetweenRecoveries:5,vodDynamicPlaybackRate:!1,vodDynamicPlaybackRateLowBufferRate:.95,vodDynamicPlaybackRateBufferRatio:.5,infiniteLiveStreamDuration:!1,preloadNextUrlWindow:30,loadTimeout:30,clearDecodingCache:tj()||tL(),dontChooseCodecs:!1,shouldFixTimestampOffset:tD()||tI()};(tD()||tI()||tR()||tO())&&(a.stallSkip=0),tI()&&(a.gapPadding=2);var o={trackSelectionCallback:function(e){return B(function(t){return t.return(e)})},downloadSizeCallback:function(e){var t;return B(function(n){return 1==n.g?navigator.storage&&navigator.storage.estimate?C(n,navigator.storage.estimate(),3):n.return(!0):(t=n.h,n.return(t.usage+e<.95*t.quota))})},progressCallback:function(e,t){},usePersistentLicense:!0,numberOfParallelDownloads:5};t={enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,forceLowestRateOnTimeout:!1,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:t,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0,minChannelsCount:0,maxChannelsCount:1/0},advanced:{minTotalBytes:128e3,minBytes:16e3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1,clearBufferSwitch:!1,safeMarginSwitch:0,cacheLoadThreshold:20,minTimeToSwitch:.5*!!tP()},i={codecSwitchingStrategy:i,addExtraFeaturesToSourceBuffer:function(e){return""},forceTransmux:!1,insertFakeEncryptionInInit:!0,modifyCueCallback:function(e,t){}};var s=!1,u=!1,l=!0;(tI()||tD()||tk()||tj()||tL()||tV("AFT")||tV("PC=EOS")||tV("PC=APL")||tV("VirginMedia")||tU()||tV("WPE")||tR()||tO()||tV("DT_STB_BCM")||tV("PC=APPSTB")||t_()||tM())&&(u=s=!0,l=!1);var c={drm:n,manifest:r,streaming:a,mediaSource:i,offline:o,abrFactory:function(){return new ir},abr:t,autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoHdrLevel:"AUTO",preferredVideoLayout:"",preferredVideoLabel:"",preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferSpatialAudio:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0,minChannelsCount:0,maxChannelsCount:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayer:{captionsUpdatePeriod:.25},textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[]},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1},ads:{customPlayheadTracker:s,skipPlayDetection:u,supportsMultipleMediaElements:l},restrictVariantsByBandwidth:!1};return o.trackSelectionCallback=function(t){return B(function(n){return n.return(function(t,n,i){var r=i;"AUTO"==r&&(r=e.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR");var a=t.filter(function(e){return"variant"==e.type&&(!e.hdr||e.hdr==r)});i=[];var o=n_(n,a.map(function(e){return e.language}));o&&(i=a.filter(function(e){return nL(e.language)==o})),0==i.length&&(i=a.filter(function(e){return e.primary})),0==i.length&&(a.map(function(e){return e.language}),i=a);var s=i.filter(function(e){return e.height&&480>
1=e.height});for(s.length&&(s.sort(function(e,t){return t.height-e.height}),i=s.filter(function(e){return e.height==s[0].height})),n=[],i.length&&(a=Math.floor(i.length/2),i.sort(function(e,t){return e.bandwidth-t.bandwidth}),n.push(i[a])),i=(t=v(t)).next();!i.done;i=t.next())(i=i.value).type!=no&&"image"!=i.type||n.push(i);return n}(t,c.preferredAudioLanguage,c.preferredVideoHdrLevel))})},c}function oZ(e,t,n){var i={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return oG(e,t,n||oQ(),i,"")}function o0(e){var t,n;return t=[e],n=e,t&&n}function o1(e){var t,n;return t=[e],n=e,t&&n}q("shaka.util.ConfigUtils",oV),oV.getDifferenceFromConfigObjects=oX,oV.convertToConfigObject=oK,oV.mergeConfigObjects=oG,q("shaka.util.FairPlayUtils",oW),oW.commonFairPlayResponse=function(e,t){if(2===e){try{var n=tY(t.data)}catch(e){return}e=!1,"<ckc>"===(n=n.trim()).substr(0,5)&&"</ckc>"===n.substr(-6)&&(n=n.slice(5,-6),e=!0);try{var i=JSON.parse(n);i.ckc&&(n=i.ckc,e=!0),i.CkcMessage&&(n=i.CkcMessage,e=!0),i.License&&(n=i.License,e=!0)}catch(e){}e&&(t.data=ex(t6(n)))}},oW.expressplayFairPlayRequest=function(e,t){oJ(e,t)},oW.conaxFairPlayRequest=function(e,t){oJ(e,t)},oW.ezdrmFairPlayRequest=function(e,t){oJ(e,t)},oW.verimatrixFairPlayRequest=function(e,t){2===e&&(e=t5(e=eT(t.body)),t.headers["Content-Type"]="application/x-www-form-urlencoded",t.body=tQ("spc="+e))},oW.expressplayInitDataTransform=function(e,t,n){return oY(e,t,n)},oW.conaxInitDataTransform=function(t,n,i){if("skd"!==n)return t;n=i.serverCertificate,i=t$(t).split("skd://").pop().split("?").shift();var r=new ArrayBuffer(2*(i=e.atob(i)).length);r=eS(r);for(var a=0,o=i.length;a<o;a++)r[a]=i.charCodeAt(a);return oz(t,r,n)},oW.ezdrmInitDataTransform=function(e,t,n){return"skd"!==t?e:(t=n.serverCertificate,n=t$(e).split(";").pop(),oz(e,n,t))},oW.verimatrixInitDataTransform=function(e,t,n){return oY(e,t,n)},oW.initDataTransform=oz,oW.defaultGetContentId=oq,oW.isFairPlaySupported=function(){var e;return B(function(t){return 1==t.g?(e={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},D(t,2),C(t,navigator.requestMediaKeySystemAccess("com.apple.fps",[e]),4)):2!=t.g?t.return(!0):(N(t),t.return(!1))})},q("shaka.util.PlayerConfiguration",o$),o$.mergeConfigObjects=oZ,o$.createDefault=oQ;var o2=new tg(function(){if("u">typeof trustedTypes){var e=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(e){return e}});return function(t){return e.createHTML(t)}}return function(e){return e}});function o4(){var e=this;this.j=this.g=null,this.A=[],this.h=null,this.la=1,this.D=[],this.l={sd:"",type:"",profiles:[],qb:null,Ka:0,Da:null,Oc:0},this.u=new Map,this.L=new Map,this.o={},this.B={},this.fa={},this.m=new of,this.R=0,this.ka=new J(5),this.K=new tT(function(){e.I&&!e.g.continueLoadingWhenPaused&&(e.F.ub(e.I,"timeupdate"),e.I.paused)?e.F.sa(e.I,"timeupdate",function(){return st(e)}):st(e)}),this.U=new r9,this.O=null,this.C=[],this.W=1/0,this.H=!1,this.i=null,this.M=0,this.aa=!1,this.F=new ea,this.I=null,this.ea=!1,this.V=[]}function o3(e){var t,n,i,r,a,o,s,u,l,c,d,h;return B(function(f){if(1==f.g)return t=4,n="MPD",i=function(e){var t=e.l.Oc;if(!e.l.sd||!t||!e.D.length)return[];var n=Date.now()/1e3,i=e.D.filter(function(e){return!(e=rO(e.attributes.ttl))||t+e>n}).map(rS).filter(nM);return i.length?ne(e.A,i):[]}(e),r=e.A,i.length?(r=i,n="Patch",t=6):1<e.A.length&&e.i&&(a=od(e.i,"Location",!0)).length&&(r=a),o=ai(r,e.g.retryParameters),s=Date.now()/1e3,C(f,ss(e,o,0,{type:t}),2);if(3!=f.g){var p,g,m,b,w,x,T,S,A,E,k,I;return(u=f.h,l=Date.now()/1e3,e.j)?(u.uri&&u.uri!=u.originalUri&&!e.A.includes(u.uri)&&e.A.unshift(u.uri),c=Date.now()/1e3,C(f,(p=e,g=u.data,m=u.uri,b=n,B(function(e){if(1==e.g){if(w=g,(x=p.g.dash.manifestPreprocessor)!=o0){eh("manifest.dash.manifestPreprocessor configuration","Please Use manifest.dash.manifestPreprocessorTXml instead.");var t,n,i,r,a,o,s,u,l,c,d,h,f,D,R,N,P,L,j,O,U,_,F,H,V,G=w;
1try{var K=t$(G),X=function(e,t){var n=new DOMParser,i=o2.value()(e);e=null;try{e=n.parseFromString(i,"text/xml")}catch(e){return null}if(!(n=e.documentElement)||n.getElementsByTagName("parsererror").length||n.tagName!=t)return null;if(!("createNodeIterator"in document))return n;for(t=document.createNodeIterator(e,NodeFilter.SHOW_ALL);e=t.nextNode();)if(e instanceof HTMLElement||e instanceof SVGElement)return null;return n}(K,b)}catch(e){X=null}if(!(T=X))throw new tf(2,4,4001,m);x(T),w=tQ(T.outerHTML)}if(!(S=rm(w,b)))throw new tf(2,4,4001,m);return((A=p.g.dash.manifestPreprocessorTXml)!=o1&&A(S),"Patch"===b)?e.return((t=p,n=S,B(function(e){if(1==e.g){if(i=n.attributes.mpdId,r=rI(n,"originalPublishTime",rR),!i||i!==t.l.sd||r!==t.l.Oc)throw t.D=[],new tf(1,4,4052);for(a=[],o=[],s=new Set,l=(u=v(rw(n))).next();!l.done;l=u.next())if(h=(d=rF((c=l.value).attributes.sel||""))[d.length-1],f=rS(c)||"","MPD"===h.name)if("mediaPresentationDuration"===h.wb){var p=rN(rS(c)||"");if(null!=p){t.l.qb=p;for(var g=v(t.u.values()),m=g.next();!m.done;m=g.next())m.value.qb=p}}else if("type"===h.wb){for(t.h.presentationTimeline.rc("static"==f),t.l.type=f,g=(p=v(t.u.values())).next();!g.done;g=p.next())g.value.Za="dynamic"==f;"static"==f&&(t.R=-1)}else"publishTime"===h.wb?t.l.Oc=rR(f)||0:null===h.wb&&"add"===c.tagName&&o.push(c);else if("PatchLocation"===h.name)rH(t.D,c);else if("Period"===h.name)"add"===c.tagName?o.push(c):"remove"===c.tagName&&h.id&&function(e,t){e.h.periodCount--;for(var n=v(e.u.keys()),i=n.next();!i.done;i=n.next())(i=i.value).startsWith(t)&&(ap(e.u.get(i),aF,"SegmentTimeline").children=[],o7(e,i),e.u.delete(i));e.C=e.C.filter(function(e){return e!==t})}(t,h.id);else if("SegmentTemplate"===h.name){if((p=(g=rF(c.attributes.sel||""))[g.length-1]).wb){g=o8(t,g),m=rS(c)||"";for(var b=v(g),w=b.next();!w.done;w=b.next())rG((w=t.u.get(w.value)).G.Eb,c.tagName,p.wb,m);p=g}else p=[];for(R=(D=v(p)).next();!R.done;R=D.next())N=R.value,s.add(N)}else if("SegmentTimeline"===h.name||"S"===h.name){for(m=(g=v(p=o8(t,p=rF(c.attributes.sel||"")))).next();!m.done;m=g.next())rH(b=rx(m=ap(m=t.u.get(m.value),aF,"SegmentTimeline"),"S"),c),m.children=b;for(L=(P=v(p)).next();!L.done;L=P.next())j=L.value,s.add(j)}for(U=(O=v(s)).next();!U.done;U=O.next())o7(t,U.value);for(F=(_=v(o)).next();!F.done;F=_.next())H=F.value,a.push.apply(a,y(o9(t,{Za:"dynamic"==t.l.type,presentationTimeline:t.h.presentationTimeline,ca:null,ha:null,ga:null,G:null,bandwidth:0,ie:!1,Ka:t.l.Ka,profiles:t.l.profiles,qb:t.l.qb,roles:null},t.l.Da,H,!0).periods));return a.length?(t.h.periodCount+=a.length,t.h.gapCount=t.M,C(e,o6(t,a,!0),2)):e.s(2)}"static"==t.l.type&&(V=t.l.qb,t.h.presentationTimeline.gb(V||1/0)),M(e)}))):p.g.dash.disableXlinkProcessing?e.return(o5(p,S,m)):(E=p.g.dash.xlinkFailGracefully,k=ag(S,p.g.retryParameters,E,m,p.j.networkingEngine),ae(p.U,k),C(e,k.promise,2))}return I=e.h,e.return(o5(p,I,m))})),3)):f.return(0)}return h=(d=Date.now()/1e3)-s,e.h.manifestDownloadTimeSeconds=l-s,e.h.manifestParseTimeSeconds=d-c,e.ka.sample(1,h),f.return(h)})}function o5(e,t,n){var i,r,a,o,s,u,l,c,d,h,f,p,g,m,y,b,w,x,T,S,A,E,k,I,P,L,j,O,U,_,F,H,V,G,K,X,W,q,z,Y,J,$,Q,Z,ee,en,ei,er,ea,eo;return B(function(es){switch(es.g){case 1:for(e.i&&e.i.l.clear(),i=[n],r=[],a=new Map,s=(o=v(rx(t,"Location"))).next();!s.done;s=o.next())l=(u=s.value).attributes.serviceLocation,(c=rS(u))&&(d=ne(i,[c])[0],l&&(e.i?oc(e.i,"Location",l,d):a.set(l,d)),r.push(d));if(e.i?0<(h=od(e.i,"Location",!0)).length&&(i=e.A=h):r.length&&(i=e.A=r),e.l.sd=t.attributes.id||"",e.l.Oc=rI(t,"publishTime",rR)||0,e.D=rx(t,"PatchLocation"),f=Promise.resolve(),(p=rE(t,"ContentSteering"))&&e.j)for(g=p.attributes.defaultServiceLocation,e.i?(e.i.i=i,e.i.h=g):(e.i=new ou(e.j),e.i.configure(e.g),e.i.setManifestType("DASH"),e.i.i=i,e.i.h=g,(m=rS(p))&&(rI(p,"queryBeforeStart",r_,!1)?f=ol(e.i,m):ol(e.i,m))),b=(y=v(a.keys())).next();!b.done;b=y.next())w=b.value,x=a.get(w),oc(e.i,"Location",w,x);if(T=rx(t,"BaseURL"),S=!1,e.i)for(E=(A=v(T)).next();!E.done;E=A.next())I=(k=E.value).attributes.serviceLocation,P=rS(k),I&&P&&(oc(e.i,"BaseURL",I,P),S=!0);if(e.V=null,S&&e.i||(L=T.map(rS),e.V=ne(i,L)),j=function(){return e.i&&S?od(e.i,"BaseURL"):e.V?e.V:[]},e.l.Da=j,O=0,T&&T.length&&(O=rI(T[0],"availabilityTimeOffset",rU)||0),e.l.Ka=O,U=e.g.dash.ignoreMinBufferTime,_=0,U||(_=rI(t,"minBufferTime",rN)||0),e.R=rI(t,"minimumUpdatePeriod",rN,-1),F=rI(t,"availabilityStartTime",rR),H=rI(t,"timeShiftBufferDepth",rN),V=e.g.dash.ignoreSuggestedPresentationDelay,G=null,V||(G=rI(t,"suggestedPresentationDelay",r
1N)),K=e.g.dash.ignoreMaxSegmentDuration,X=null,K||(X=rI(t,"maxSegmentDuration",rN)),W=t.attributes.type||"static",e.h&&e.h.presentationTimeline&&(e.ea=e.h.presentationTimeline.Y()&&"static"==W),e.l.type=W,function(e){var t=Object.keys(e.B).filter(function(t){return!e.C.includes(t)});t=v(t);for(var n=t.next();!n.done;n=t.next()){n=n.value;for(var i=v(e.B[n]),r=i.next();!r.done;r=i.next())r=r.value,e.m&&e.m.af(e.o[r],n),delete e.o[r];delete e.B[n]}}(e),e.h)for(q=e.h.presentationTimeline,Y=(z=v(Object.values(e.o))).next();!Y.done;Y=z.next())(J=Y.value).segmentIndex&&J.segmentIndex.za(q.cb());else $=e.g.defaultPresentationDelay||1.5*_,q=new az(F,null!=G?G:$,e.g.dash.autoCorrectDrift);return q.rc("static"==W),q.Y()&&!isNaN(e.g.availabilityWindowOverride)&&(H=e.g.availabilityWindowOverride),null==H&&(H=1/0),q.Ge(H),Q=t.attributes.profiles||"",e.l.profiles=Q.split(","),Z={Za:"static"!=W,presentationTimeline:q,ca:null,ha:null,ga:null,G:null,bandwidth:0,ie:!1,Ka:O,qb:null,profiles:Q.split(","),roles:null},e.M=0,en=(ee=o9(e,Z,j,t,!1)).duration,ei=ee.periods,("static"!=W||e.ea)&&ee.df||q.gb(en||1/0),e.aa&&!e.H&&e.j.isAutoLowLatencyMode()&&(e.j.enableLowLatencyMode(),e.H=e.j.isLowLatencyMode()),e.H&&q.Qf(e.W),q.se(X||1),C(es,f,2);case 2:if(e.H&&(_=0,er=null!=G?G:e.g.defaultPresentationDelay,q.Ce(er)),!e.h)return C(es,e.m.Ud(ei,Z.Za),6);return e.h.periodCount=ei.length,e.h.gapCount=e.M,C(es,o6(e,ei,!1),4);case 6:var eu,el,ec,ed,eh,ef,ep,eg,em,ev,ey;if(e.h={presentationTimeline:q,variants:e.m.l,textStreams:e.m.ee(),imageStreams:e.m.i,offlineSessionIds:[],minBufferTime:_||0,sequenceMode:e.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:function(e){var t=rE(e,"ServiceDescription");if(!t||(e=rE(t,"Latency"),t=rE(t,"PlaybackRate"),!e&&!t))return null;var n={};return e&&("target"in e.attributes&&(n.targetLatency=parseInt(e.attributes.target,10)/1e3),"max"in e.attributes&&(n.maxLatency=parseInt(e.attributes.max,10)/1e3),"min"in e.attributes&&(n.minLatency=parseInt(e.attributes.min,10)/1e3)),t&&("max"in t.attributes&&(n.maxPlaybackRate=parseFloat(t.attributes.max)),"min"in t.attributes&&(n.minPlaybackRate=parseFloat(t.attributes.min))),n}(t),nextUrl:function(e){if(!(e=rx(e,"SupplementalProperty")).length)return null;e=v(e);for(var t=e.next();!t.done;t=e.next())if("urn:mpeg:dash:chaining:2016"==(t=t.value).attributes.schemeIdUri)return t.attributes.value;return null}(t),periodCount:ei.length,gapCount:e.M,isLowLatency:e.aa,lowestVideoBitrate:0,manifestDownloadTimeSeconds:NaN,manifestParseTimeSeconds:NaN},!q.$f()){es.s(7);break}return ea=rx(t,"UTCTiming"),C(es,(eu=e,el=j,ec=ea,B(function(e){switch(e.g){case 1:ed=ec.map(function(e){return{scheme:e.attributes.schemeIdUri,value:e.attributes.value}}),eh=eu.g.dash.clockSyncUri,!ed.length&&eh&&ed.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:eh}),ep=(ef=v(ed)).next();case 2:if(ep.done){e.s(4);break}switch(eg=ep.value,D(e,5),em=eg.scheme,ev=eg.value,em){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":return e.s(7);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":return e.s(8);case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":return ey=Date.parse(ev),e.return(isNaN(ey)?0:ey-Date.now());case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":et("NTP UTCTiming scheme is not supported");break;default:et("Unrecognized scheme in UTCTiming element",em)}e.s(9);break;case 7:return C(e,sr(eu,el,ev,"HEAD"),10);case 10:case 11:return e.return(e.h);case 8:return C(e,sr(eu,el,ev,"GET"),11);case 9:R(e,3);break;case 5:N(e);case 3:ep=ef.next(),e.s(2);break;case 4:return et("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),e.return(0)}})),8);case 8:if(eo=es.h,!e.j)return es.return();q.Rf(eo);case 7:q.qe();case 4:e.h.lowestVideoBitrate=function(e){e=v(e.h.variants);for(var t=e.next();!t.done;t=e.next())if((t=t.value).video&&"number"==typeof t.video.bandwidth&&(!n||t.video.bandwidth<n))var n=t.video.bandwidth;return n||0}(e),e.j.makeTextStreamsForClosedCaptions(e.h),M(es)}})}function o6(e,t,n){var i;return B(function(r){if(1==r.g)return C(r,e.m.Ud(t,!0,n),2);e.h.variants=e.m.l,0<(i=e.m.ee()).length&&(e.h.textStreams=i),e.h.imageStreams=e.m.i,e.j.filter(e.h),M(r)}
1)}function o8(e,t){var n="",i="",r=-1,a="";t=v(t);for(var o=t.next();!o.done;o=t.next())"Period"===(o=o.value).name?n=o.id:"AdaptationSet"===o.name?(i=o.id,null!==o.position&&(r=o.position)):"Representation"===o.name&&(a=o.id);if(t=[],a)t.push(n+","+a);else if(i)for(e=(r=v(e.u.values())).next();!e.done;e=r.next())(e=e.value).ca.id===n&&e.ga.id===i&&e.G.id&&t.push(n+","+e.G.id);else if(-1<r)for(e=(i=v(e.u.values())).next();!e.done;e=i.next())(e=e.value).ca.id===n&&e.ga.position===r&&e.G.id&&t.push(n+","+e.G.id);return t}function o7(e,t){var n=e.u.get(t),i=e.o[t];i.segmentIndex&&i.segmentIndex.za(e.h.presentationTimeline.cb());try{var r=aB(n,function(t,n,i,r){return sa(e,t,n,i,r)},e.o,!0,e.g.dash.initialSegmentLimit,e.fa,n.G.aesKey,null,!0,e.L);i.createSegmentIndex=function(){return B(function(e){if(1==e.g)return i.segmentIndex?e.s(0):C(e,r.Kb(),3);i.segmentIndex=e.h,M(e)})}}catch(e){if((t=n.G.contentType)!=no&&"application"!=t&&"image"!=t||4002!=e.code)throw e}}function o9(t,n,i,r,a){var o=n.qb;o||(o=rI(r,"mediaPresentationDuration",rN),t.l.qb=o);var s=0;t.h&&t.h.presentationTimeline&&t.ea&&(s=t.h.presentationTimeline.ob());var u=[],l=s;r=rx(r,"Period");for(var c=0;c<r.length;c++){var d=r[c],h=r[c+1],f=rI(d,"start",rN,l),p=d.attributes.id,g=rI(d,"duration",rN),m=null;if(h){var b=rI(h,"start",rN);null!=b&&(m=b-f)}else null!=o&&(m=o-f+s);if(b=nu,m&&g&&Math.abs(m-g)>b&&m>g&&t.M++,null==m&&(m=g),!(null!==t.O&&null!==p&&null!==f&&f<t.O)||t.C.includes(p)||c+1==r.length){if(null!==f&&(null===t.O||f>t.O)&&(t.O=f),l=function(t,n,i,r){n.ca=si(t,r.node,null,i),n.ha=r,n.ca.Ka=n.Ka,n.ca.id||(n.ca.id="__shaka_period_"+r.start);var a=rx(r.node,"EventStream");i=n.presentationTimeline.cb(),a=v(a);for(var o=a.next();!o.done;o=a.next())!function(e,t,n,i,r){var a=i.attributes.schemeIdUri||"",o=i.attributes.value||"",s=rI(i,"timescale",rO)||1,u=rI(i,"presentationTimeOffset",rO)||0;i=v(rx(i,"Event"));for(var l=i.next();!l.done;l=i.next()){var c=rI(l=l.value,"presentationTime",rO)||0,d=rI(l,"duration",rO)||0;d=(c=Math.max((c-u)/s+t,t))+d/s,null!=n&&(c=Math.min(c,t+n),d=Math.min(d,t+n)),d<r||(l={schemeIdUri:a,value:o,startTime:c,endTime:d,id:l.attributes.id||"",eventElement:function e(t){var n="",i=t.tagName.split(":");for(var r in 0<i.length&&(n=i[0],n=rW.has(n)?rW.get(n):""),n=document.createElementNS(n,t.tagName),t.attributes)n.setAttribute(r,t.attributes[r]);for(r=(t=v(t.children)).next();!r.done;r=t.next())r=r.value,i=void 0,i="string"==typeof r?new Text(r):e(r),n.appendChild(i);return n}(l),eventNode:rK(l)},e.j.onTimelineRegionAdded(l))}}(t,r.start,r.duration,o.value,i);if(i=rx(r.node,"AdaptationSet").map(function(i,r){return function(t,n,i,r){function a(e){switch(e){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function o(e){switch(e){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}n.ga=si(t,r,n.ca,null),n.ga.position=i;var s=!1,u=(i=rx(r,"Role")).map(function(e){return e.attributes.value}).filter(nM),l=void 0,c=n.ga.contentType==no;c&&(l="subtitle"),i=v(i);for(var d=i.next();!d.done;d=i.next()){var h=(d=d.value).attributes.schemeIdUri;if(null==h||"urn:mpeg:dash:role:2011"==h)switch(d=d.attributes.value){case"main":s=!0;break;case"caption":case"subtitle":l=d}}h=rx(r,"EssentialProperty"),i=null;var f=!1;d=!1,h=v(h);for(var p=h.next();!p.done;p=h.next()){var g=(p=p.value).attributes.schemeIdUri;"http://dashif.org/guidelines/trickmode"==g?i=p.attributes.value:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==g?b=o(parseInt(p.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==g?w=a(parseInt(p.attributes.value,10)):"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=g&&("urn:mpeg:dash:ssr:2023"==g&&t.g.dash.enableFastSwitching?f=!0:d=!0)}var m=null;for(p=(h=v(h=rx(r,"SupplementalProperty"))).next();!p.done;p=h.next())"http://dashif.org/guidelines/last-segment-number"==(g=(p=p.value).attributes.schemeIdUri)?m=parseInt(p.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==g?b=o(parseInt(p.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==g&&(w=a(parseInt(p.attributes.value,10)));h=rx(r,"Accessibility");var b,w,x,T=new Map;for(p=(h=v(h)).next();!p.done;p=h.next())if(p=(g=p.value).attributes.schemeIdUri,g=g.attributes.value,"urn:scte:dash:cc:cea-608:2
1015"!=p||t.g.disableText)if("urn:scte:dash:cc:cea-708:2015"!=p||t.g.disableText)"urn:mpeg:dash:role:2011"==p?null!=g&&(u.push(g),"captions"==g&&(l="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==p&&("1"==g?x="visually impaired":"2"==g&&(x="hard of hearing"));else if(p=1,null!=g){g=v(g.split(";"));for(var S=g.next();!S.done;S=g.next()){var A=S.value,E=S=void 0;A.includes("=")?(S="svc"+(A=A.split("="))[0],E=A[1].split(",")[0].split(":").pop()):(S="svc"+p,p++,E=A),T.set(S,nL(E))}}else T.set("svc1","und");else if(p=1,null!=g)for(A=(S=v(g=g.split(";"))).next();!A.done;A=S.next()){E=A.value;var k=A=void 0;E.includes("=")?(A=(E=E.split("="))[0].startsWith("CC")?E[0]:"CC"+E[0],k=E[1]||"und"):(A="CC"+p,2==g.length?p+=2:p++,k=E),T.set(A,nL(k))}else T.set("CC1","und");if(d)return null;var I=rq(d=rx(r,"ContentProtection"),t.g.dash.ignoreDrmInfo,t.g.dash.keySystemsByURI),D=nL(n.ga.language||"und"),R=n.ga.label;if(0==(r=(d=rx(r,"Representation")).map(function(i){return(i=function(t,n,i,r,a,o,s,u,l,c,d,h){n.G=si(t,c,n.ga,null);var f,p,g=n.G.id;if(t.W=Math.min(t.W,n.G.Ka),t.aa=0<t.W,!function(e){var t=+!!e.pc;return 0==(t+=+!!e.sb+ +!!e.Eb)?e.contentType==no||"application"==e.contentType:(1!=t&&(e.pc&&(e.sb=null),e.Eb=null),!0)}(n.G))return null;var m=n.ha.start;n.bandwidth=rI(c,"bandwidth",rj)||0,n.roles=u;var y=n.G.contentType,b=y==no||"application"==y;y="image"==y;try{var w=void 0;if(i.Td){var x=n.G.Da,T=ne(x(),[i.Td.fh]),S=ai(T,t.g.retryParameters);w={bitsKey:128,blockCipherMode:"CBC",iv:i.Td.iv,firstMediaSequenceNumber:0,fetchKey:function(){var n,i,r;return B(function(a){if(1==a.g)return C(a,ss(t,S,6),2);if(3!=a.g){if(!(n=a.h).data||16!=n.data.byteLength)throw new tf(2,4,4049);return i={name:"AES-CBC"},r=w,C(a,e.crypto.subtle.importKey("raw",n.data,i,!0,["decrypt"]),3)}r.cryptoKey=a.h,w.fetchKey=void 0,M(a)})}}}if(n.G.aesKey=w,x=function(e,n,i,r){return sa(t,e,n,i,r)},n.G.pc)var A,E,k,I,D,R,N,P,L,j=(A=n,E=x,k=w,I=Number(af(A,aL,"presentationTimeOffset"))||0,D=af(A,aL,"timescale"),R=1,D&&(R=rj(D)||1),N=I/R||0,P=aN(A,aL,k),function(e,t){if(aO(e,t),!aj(e))throw new tf(2,4,4002)}(A,P),L=nH(A),{endTime:-1,timeline:-1,Kb:function(){var e=ap(L,aL,"RepresentationIndex"),t=L.G.Da();return e&&(e=t1(e.attributes.sourceURL))&&(t=ne(t,[e])),e=aj(L),aP(L,E,P,t,e.start,e.end,N)}});else if(n.G.sb)j=function(e,t,n){var i=aN(e,a_,n),r=function(e){var t=function(e){return[e.G.sb,e.ga.sb,e.ca.sb].filter(nM).map(function(e){return rx(e,"SegmentURL")}).reduce(function(e,t){return 0<e.length?e:t}).map(function(t){t.attributes.indexRange&&!e.ie&&(e.ie=!0);var n=t1(t.attributes.media);return{kh:n,start:(t=rI(t,"mediaRange",rP,{start:0,end:null})).start,end:t.end}})}(e),n=(e=ad(e,a_)).Qc;0==n&&(n=1);var i=0;return e.Aa?i=e.Aa*(n-1):e.timeline&&0<e.timeline.length&&(i=e.timeline[0].start),{Aa:e.Aa,startTime:i,Qc:n,Wa:e.Wa,timeline:e.timeline,ic:t}}(e);if(!r.Aa&&!r.timeline&&1<r.ic.length||!r.Aa&&!e.ha.duration&&!r.timeline&&1==r.ic.length||r.timeline&&0==r.timeline.length)throw new tf(2,4,4002);var a=null,o=null;e.ca.id&&e.G.id&&(o=t[e.ca.id+","+e.G.id])&&(a=o.segmentIndex);var s=function(e,t,n,i,r,a,o,s){var u=i.ic.length;i.timeline&&i.timeline.length!=i.ic.length&&(u=Math.min(i.timeline.length,i.ic.length));for(var l=e-i.Wa,c=t?e+t:1/0,d=[],h=i.startTime,f={},p=0;p<u;f={Jd:void 0,Ed:void 0},p++){f.Ed=i.ic[p];var g=h;h=void 0,h=null!=i.Aa?g+i.Aa:i.timeline?i.timeline[p].end:g+t,f.Jd=null,(f=new ay(e+g,e+h,function(e){return function(){return null==e.Jd&&(e.Jd=ne(n(),[e.Ed.kh])),e.Jd}}(f),f.Ed.start,f.Ed.end,r,l,e,c,[],"",null,null,ab,a)).codecs=s,f.mimeType=o,d.push(f)}return d}(e.ha.start,e.ha.duration,e.G.Da,r,i,n,e.G.mimeType,e.G.codecs);return t=!a,a?a.Ic(s,e.presentationTimeline.cb()):a=new ax(s),e.presentationTimeline.ud(s),e.Za&&e.ha.le||a.$b(e.ha.start,e.ha.duration?e.ha.start+e.ha.duration:1/0,t),o&&(o.segmentIndex=a),{endTime:-1,timeline:-1,Kb:function(){return a&&0!=a.getNumReferences()||a.rd(s),Promise.resolve(a)}}}(n,t.o,w);else if(n.G.Eb)j=aB(n,x,t.o,!!t.h,t.g.dash.initialSegmentLimit,t.fa,w,h,!1,t.L);else{var O=n.ha.duration||0,U=n.G.Da,_=n.G.mimeType,F=n.G.codecs;j={endTime:-1,timeline:-1,Kb:function(){var e=aS(m,O,U());return e.$a(function(e){e.mimeType=_,e.codecs=F}),Promise.resolve(e)}}}}catch(e){if((b||y)&&4002==e.code)return null;throw e}if(h=new Set((h=function(e,t,n,i){var r=rq(e,n,i);
1if(t.ff)e=1==t.drmInfos.length&&!t.drmInfos[0].keySystem,n=0==r.drmInfos.length,(0==t.drmInfos.length||e&&!n)&&(t.drmInfos=r.drmInfos),t.ff=!1;else if(0<r.drmInfos.length&&(t.drmInfos=t.drmInfos.filter(function(e){return r.drmInfos.some(function(t){return t.keySystem==e.keySystem})}),0==t.drmInfos.length))throw new tf(2,4,4008);return r.$e||t.$e}(h=rx(c,"ContentProtection"),i,t.g.dash.ignoreDrmInfo,t.g.dash.keySystemsByURI))?[h]:[]),x=!1,rx(c,"SupplementalProperty").some(function(e){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==e.attributes.schemeIdUri&&"JOC"==e.attributes.value})&&(x=!0),T=!1,b&&(T=u.includes("forced_subtitle")||u.includes("forced-subtitle")),y&&((c=rx(c,"EssentialProperty").find(function(e){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(e.attributes.schemeIdUri)}))&&(f=c.attributes.value),!f))return null;if(t.g.overrideDolbyVisionCodecs&&(n.G.codecs=function(e){for(var t={dvav:"avc3",dva1:"avc1",dvhe:"hev1",dvh1:"hvc1"},n=v(Object.keys(t)),i=n.next();!i.done;i=n.next())if(i=i.value,e.includes(i))return t[i];return e}(n.G.codecs)),b=n.G.codecs,n.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(b.includes("hvc1.2.4.L153.B0")||b.includes("hev1.2.4.L153.B0"))&&(p="PQ"),c=n.G.id?n.ca.id+","+n.G.id:"",t.D.length&&g&&t.u.set(n.ca.id+","+g,function(e){function t(e){return e?((e=nH(e)).pc=null,e.sb=null,e.Eb=rK(e.Eb),e):null}return(e=nH(e)).ca=t(e.ca),e.ga=t(e.ga),e.G=t(e.G),e.ha&&(e.ha=nH(e.ha),e.ha.node=null),e}(n)),-1!=j.endTime&&null!=n.ca.id&&null!=n.G.id&&((g=t.L.get(n.ca.id))?(g.endTime=j.endTime,g.ye.includes(n.G.id)||g.ye.push(n.G.id),t.L.set(n.ca.id,g)):t.L.set(n.ca.id,{endTime:j.endTime,timeline:j.timeline,ye:[n.G.id]})),n.maxSegmentDuration)var H=n.maxSegmentDuration;var V=c&&t.o[c]?t.o[c]:{id:t.la++,originalId:n.G.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){V.segmentIndex&&(V.segmentIndex.release(),V.segmentIndex=null)},segmentIndex:null,mimeType:n.G.mimeType,codecs:b,frameRate:n.G.frameRate,pixelAspectRatio:n.G.pixelAspectRatio,bandwidth:n.bandwidth,width:n.G.width,height:n.G.height,kind:r,encrypted:0<i.drmInfos.length,drmInfos:i.drmInfos,keyIds:h,language:a,originalLanguage:n.ga.language,label:o,type:n.ga.contentType,primary:s,trickModeVideo:null,emsgSchemeIdUris:n.G.emsgSchemeIdUris,roles:u,forced:T,channelsCount:n.G.vd,audioSamplingRate:n.G.audioSamplingRate,spatialAudio:x,closedCaptions:l,hdr:p,colorGamut:void 0,videoLayout:void 0,tilesLayout:f,accessibilityPurpose:d,external:!1,fastSwitching:!1,fullMimeTypes:new Set([nd(n.G.mimeType,n.G.codecs)]),maxSegmentDuration:H};return V.createSegmentIndex=function(){var e;return B(function(t){if(1==t.g)return V.segmentIndex?t.s(0):(e=V,C(t,j.Kb(),3));e.segmentIndex=t.h,M(t)})},c&&n.Za&&!t.o[c]&&(n=n.ca.id||"",t.B[n]||(t.B[n]=[]),t.o[c]=V,t.B[n].push(c)),V}(t,n,I,l,D,R,s,u,T,i,x,m))&&(i.hdr=i.hdr||b,i.colorGamut=i.colorGamut||w,i.fastSwitching=f),i}).filter(function(e){return!!e})).length){if(i="image"==n.ga.contentType,t.g.dash.ignoreEmptyAdaptationSet||c||i)return null;throw new tf(2,4,4003)}if(!n.ga.contentType||"application"==n.ga.contentType)for(n.ga.contentType=so(r[0].mimeType,r[0].codecs),h=(c=v(r)).next();!h.done;h=c.next())h.value.type=n.ga.contentType;for(c=n.ga.id||"__fake__"+t.la++,p=(h=v(r)).next();!p.done;p=h.next()){for(p=p.value,S=(g=v(I.drmInfos)).next();!S.done;S=g.next())(S=S.value).keyIds=S.keyIds&&p.keyIds?new Set([].concat(y(S.keyIds),y(p.keyIds))):S.keyIds||p.keyIds;t.g.dash.enableAudioGroups&&(p.groupId=c)}return d=d.map(function(e){return e.attributes.id}).filter(nM),{id:c,contentType:n.ga.contentType,language:D,Xh:s,streams:r,drmInfos:I.drmInfos,Le:i,vh:d}}(t,n,r,i)}).filter(nM),n.Za){for(r=[],o=(a=v(i)).next();!o.done;o=a.next()){o=v(o.value.vh);for(var s=o.next();!s.done;s=o.next())r.push(s.value)}if(r.length!=new Set(r).size)throw new tf(2,4,4018)}for(r=i.filter(function(e){return!e.Le}),a=(i=v(i=i.filter(function(e){return e.Le}))).next();!a.done;a=i.next()){o=(a=a.value).Le.split(" "),s=v(r);for(var u=s.next();!u.done;u=s.next())if(u=u.value,o.includes(u.id)){u=v(u.streams);for(var l=u.next(),c={};!l.done;c={Ie:void 0},l=u.next())c.Ie=l.value,c.Ie.trickModeVideo=a.streams.find(function(e){return function(t){return ng(e.Ie.codecs)==ng(t.codecs)}}(c))}}if(i=se(t.g.disableAudio,r,"audio"),a=se(t.g.disableVideo,r,"video"),o=se(t.g.disableText,r,no),r=se(t.g.disableThumbnails,r,"image"),0===a.length&&0===i.length)throw new tf(2,4,4004);return{id:n.ca.id,audioStreams:i,videoStreams:a,textStreams:o,imageStreams:r}}(t,n,i,{start:f,duration:m,node:d,le:null==m||!h}),u.push(l),n.ca.id&&m&&(t.fa[n.ca.id]=m),null==m){l=null;break}l=f+m}}if(a)for(i=(n=v(u)).next();!i.done;i=n.next())i=i.value.id,t.C.includes(i)||t.C.push(i);else t.C=u.map(function(e){return e.id});return null!=o?{periods:u,duration:o+s,df:!1}:{periods:u,duration:l,df:!0}}function se(e,t,n){return e||!t.length?[]:t.reduce(function(e,t){return t.contentType!=n||e.push.apply(e,y(t.streams)),e},[])}function st(e){var t,n;return B(function(i){switch(i.g){case 1:return t=0,D(i,2),C(i,o3(e),4);case 4:t=i.h,R(i,3);break;case 2:if(n=N(i),e.j){if(e.g.raiseFatalErrorOnManifestUpdateRequestFailure)return e.j.onError(n),i.return();n.severity=1,e.j.onError(n)}case 3:if(!e.j)return i.return();e.j.onManifestUpdated(),sn(e,t),M(i)}})}function sn(e,t){if(!(0>e.R)){var n=e.R;0<=e.g.dash.updatePeriod&&(n=e.g.dash.updatePeriod),e.K.da(Math.max(n-t,$(e.ka)))}}function si(e,t,n,i){n=n||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,vd:null,audioSamplingRate:null,Ka:0,Be:0},i=i||n.Da;var r,a=t.attributes.id,o=rx(t,"BaseURL"),s=!1;if(e.i)for(var u=v(o),l=u.next();!l.done;l=u.next()){var c=l.value;l=c.attributes.serviceLocation,c=rS(c),l&&c&&(oc(e.i,a,l,c),s=!0)}s&&e.i||(r=o.map(rS)),u=t.attributes.contentType||n.contentType,l=t.attributes.mimeType||n.mimeType,c=[t.attributes.codecs||n.c
1odecs];var d=rC(t,"urn:scte:dash:scte214-extensions","supplementalCodecs");d&&c.push(d),c=oo(c).join(","),d=rI(t,"frameRate",rB)||n.frameRate;var h=t.attributes.sar||n.pixelAspectRatio,f=function(e,t){t=t.slice(),e=v(e);for(var n=e.next();!n.done;n=e.next())n=n.value.attributes.schemeIdUri,t.includes(n)||t.push(n);return t}(rx(t,"InbandEventStream"),n.emsgSchemeIdUris),p=rx(t,"AudioChannelConfiguration");p=function(e){e=v(e);for(var t=e.next();!t.done;t=e.next()){var n=t.value;if((t=n.attributes.schemeIdUri)&&(n=n.attributes.value))switch(t){case"urn:mpeg:dash:outputChannelPositionList:2012":return n.trim().split(/ +/).length;case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(!(t=parseInt(n,10)))continue;return t;case"tag:dolby.com,2014:dash:audio_channel_configuration:2011":case"urn:dolby:dash:audio_channel_configuration:2011":if(!(t=parseInt(n,16)))continue;for(e=0;t;)1&t&&++e,t>>=1;return e;case"urn:mpeg:mpegB:cicp:ChannelConfiguration":if(t=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(n=parseInt(n,10))&&0<n&&n<t.length)return t[n]}}return null}(p)||n.vd;var g=rI(t,"audioSamplingRate",rO)||n.audioSamplingRate;u||(u=so(l,c));var m=rE(t,"SegmentBase"),y=rE(t,"SegmentTemplate"),b=m&&rI(m,"availabilityTimeOffset",rU)||0,w=y&&rI(y,"availabilityTimeOffset",rU)||0,x=o&&o.length&&rI(o[0],"availabilityTimeOffset",rU)||0;b=n.Ka+x+b+w,w=null,(x=rE(t,"SegmentSequenceProperties"))&&(x=rE(x,"SAP"))&&(w=rI(x,"cadence",rL)),x=t.attributes.label;var T=rx(t,"Label");return T&&T.length&&rT(T=T[0])&&(x=rT(T)),{Da:function(){return ne(i(),o.length?e.i&&s?od(e.i,a):r||[]:[])},pc:m||n.pc,sb:rE(t,"SegmentList")||n.sb,Eb:y||n.Eb,width:rI(t,"width",rO)||n.width,height:rI(t,"height",rO)||n.height,contentType:u,mimeType:l,codecs:c,frameRate:d,pixelAspectRatio:h,emsgSchemeIdUris:f,id:a,language:t.attributes.lang,vd:p,audioSamplingRate:g,Ka:b,md:null,Be:w||n.Be,label:x||null}}function sr(e,t,n,i){var r,a,o,s,u,l;return B(function(c){if(1==c.g)return r=[t1(n)],(a=ai(ne(t(),r),e.g.retryParameters)).method=i,o=e.j.networkingEngine.request(4,a),ae(e.U,o),C(c,o.promise,2);if(s=c.h,"HEAD"==i){if(!s.headers||!s.headers.date)return c.return(0);u=s.headers.date}else u=tY(s.data);return isNaN(l=Date.parse(u))?c.return(0):c.return(l-Date.now())})}function sa(e,t,n,i,r){var a,o,s,u;return B(function(l){return 1==l.g?(a=as,o=+!r,s=oh(t,n,i,e.g.retryParameters),C(l,ss(e,s,a,{type:o}),2)):(u=l.h,l.return(u.data))})}function so(e,t){return nA(t=nd(e,t))?no:e.split("/")[0]}function ss(e,t,n,i){return t=e.j.networkingEngine.request(n,t,i),ae(e.U,t),t.promise}function su(){}(b=o4.prototype).configure=function(e){var t=this.j&&e.dash.updatePeriod!=this.g.dash.updatePeriod&&0<=e.dash.updatePeriod;this.g=e,t&&this.h&&this.h.presentationTimeline.Y()&&this.K.Gd(),this.i&&this.i.configure(this.g),this.m&&(this.m.Pf(this.g.dash.multiTypeVariantsAllowed&&el()),this.m.Vf(this.g.dash.useStreamOnceInPeriodFlattening))},b.start=function(e,t){var n,i=this;return B(function(r){if(1==r.g)return i.H=t.isLowLatencyMode(),i.A=[e],i.j=t,C(r,o3(i),2);if(n=r.h,i.j&&sn(i,n),!i.j)throw new tf(2,7,7001);return r.return(i.h)})},b.stop=function(){for(var e=v(Object.values(this.o)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();return this.m&&this.m.release(),this.g=this.j=null,this.A=[],this.h=null,this.o={},this.B={},this.u.clear(),this.l={sd:"",type:"",profiles:[],qb:null,Ka:0,Da:null,Oc:0},this.m=null,null!=this.K&&(this.K.stop(),this.K=null),this.i&&this.i.destroy(),this.F&&(this.F.release(),this.F=null),this.U.destroy()},b.update=function(){var e,t=this;return B(function(n){return 1==n.g?(D(n,2),C(n,o3(t),4)):2!=n.g?R(n,0):(e=N(n),t.j&&e)?void(t.j.onError(e),M(n)):n.return()})},b.onExpirationUpdated=function(){},b.onInitialVariantChosen=function(e){if(this.h&&this.h.presentationTimeline.Y()){var t=e.video||e.audio;if(t&&t.segmentIndex){e=this.h.presentationTimeline.yb();var n=t.segmentIndex.find(e);null!=n&&(t=t.segmentIndex.get(n))&&(this.R=t.endTime-e,sn(this,0))}}},b.banLocation=function(e){this.i&&this.i.banLocation(e)},b.setMediaElement=function(e){this.I=e}
1,q("shaka.dash.DashParser",o4),aq["application/dash+xml"]=function(){return new o4},aq["video/vnd.mpeg.dash.mpd"]=function(){return new o4},q("shaka.dependencies",su),su.has=function(e){return sd.has(e)},su.add=function(e,t){if(!sc[e])throw Error(e+" is not supported");e==sl?eh("mux.js","mux.js is no longer used in Shaka Player."):sd.set(e,function(){return t})};var sl="muxjs",sc={Yh:sl,ISOBoxer:"ISOBoxer"};su.Allowed=sc;var sd=new Map([["ISOBoxer",function(){return e.ISOBoxer}]]);function sh(e,t,n){this.type=e,this.g=t,this.segments=n||null}function sf(e,t,n,i){this.id=e,this.name=t,this.attributes=n,this.value=void 0===i?null:i}function sp(e,t){return t?e.toString():(t=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI"),e.toString(t))}function sg(e,t){return(e=e.attributes.filter(function(e){return e.name==t})).length?e[0]:null}function sm(e,t,n){return(e=sg(e,t))?e.value:n||null}function sv(e,t){if(!(e=sg(e,t)))throw new tf(2,4,4023,t);return e.value}function sy(e,t,n){n=void 0===n?[]:n,this.g=t,this.h=e,this.eb=n}function sb(e,t){this.name=e,this.value=t}function sw(e,t){return e.filter(function(e){return e.name==t})}function sx(e,t){return e.filter(function(e){return sv(e,"TYPE")==t})}function sT(e,t){e=v(e);for(var n=e.next();!n.done;n=e.next())if((n=n.value).name===t)return n;return null}function sS(e,t,n){return n=void 0===n?0:n,(e=sT(e,t))?Number(e.value):n}function sA(e,t,n){return t?sE(e,[t],n):[]}function sE(e,t,n){if(!t.length)return[];t=ne(e,t),e=[],t=v(t);for(var i=t.next();!i.done;i=t.next())e.push(sk(i.value,n));return e}function sk(e,t){if(!t||!t.size)return e;var n=(e=String(e).replace(/%7B/g,"{").replace(/%7D/g,"}")).match(/{\$\w*}/g);if(n){n=v(n);for(var i=n.next();!i.done;i=n.next()){var r=(i=i.value).slice(2,i.length-1),a=t.get(r);if(a)e=e.replace(i,a);else throw new tf(2,4,4039,r)}}return e}function sI(e){this.h=e||"",this.g=0}function sC(e){sM(e,/[ \t]+/gm)}function sM(e,t){return(t.lastIndex=e.g,t=null==(t=t.exec(e.h))?null:{position:t.index,length:t[0].length,results:t},e.g==e.h.length||null==t||t.position!=e.g)?null:(e.g+=t.length,t.results)}function sD(e){return e.g==e.h.length?null:(e=sM(e,/[^ \t\n]*/gm))?e[0]:null}function sR(){this.g=0}function sN(e,t){var n=(t=(t=tY(t)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim()).split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(n[0]))throw new tf(2,4,4015);t=0;for(var i=!0,r=v(n),a=r.next();!a.done;a=r.next())if(a=a.value,/^#(?!EXT)/m.test(a)||i)i=!1;else if(a=sP(e,a),--e.g,sL.includes(a.name)){t=1;break}else"EXT-X-STREAM-INF"==a.name&&(i=!0);for(a=0,r=[],i=!0;a<n.length;a++){var o=n[a],s=n[a+1];if(/^#(?!EXT)/m.test(o)||i)i=!1;else{if(o=sP(e,o),sj.includes(o.name)){if(1!=t)throw new tf(2,4,4017);o=n.splice(a,n.length-a),n=[],i=[],a=[],s=null,o=v(o);for(var u=o.next();!u.done;u=o.next())u=u.value,/^(#EXT)/.test(u)?(u=sP(e,u),sL.includes(u.name)?r.push(u):"EXT-X-MAP"==u.name?s=u:"EXT-X-PART"==u.name?a.push(u):"EXT-X-PRELOAD-HINT"==u.name?"PART"==sm(u,"TYPE")?a.push(u):"MAP"==sm(u,"TYPE")&&(u.name="EXT-X-MAP",s=u):i.push(u)):/^#(?!EXT)/m.test(u)||(u=u.trim(),s&&i.push(s),n.push(new sy(u,i,a)),i=[],a=[]);return a.length&&(s&&i.push(s),n.push(new sy("",i,a))),new sh(t,r,n)}r.push(o),"EXT-X-STREAM-INF"==o.name&&(o.attributes.push(new sb("URI",s)),i=!0)}}return new sh(t,r)}function sP(e,t){e=e.g++;var n=t.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new tf(2,4,4016,t);t=n[1];var i=n[2];if(n=[],i){(a=sM(i=new sI(i),/^([^,=]+)(?:,|$)/g))&&(r=a[1]);for(var r,a,o=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;a=sM(i,o);)n.push(new sb(a[1],a[2]||a[3])),sC(i)}return new sf(e,t,n,r)}sf.prototype.toString=function(e){var t="#"+this.name,n=this.attributes?this.attributes.filter(function(t){return!e||!e.has(t.name)}).map(function(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}):[];return this.value&&n.unshift(this.value),0<n.length&&(t+=":"+n.join(",")),t};var sL="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF EXT-X-DATERANGE".split(" "),sj="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP EXT-X-GAP EXT-X-TILES".split(" ");function sO(e){var t=this;this.h=e,this.g=new Set,this.i=new tT(function(){sU(t,!1)}).Ja(.25)}function sU(e,t){for(var n=v(e.g),i=n.next();!i.done;i=n.next())i.value.j(e.h.currentTime,t)}function s_(e){r7.call(this),this.g=new Map,this.h=e}function sB(e,t,n){return!!(e=e.h()[n])&&0<e.length&&(n=e[e.length-1].end,t>=e[0].start&&t<n)}function sF(e){var t={bandwidth:e.bandwidth||0,audioSamplingRate:null,codecs:e.codecs,contentType:e.type,frameRate:null,height:null,mimeType:e.mimeType,channelsCount:null,pixelAspectRatio:null,width:null,label:null,roles:e.roles,language:null};return"video"==e.type&&(t.frameRate=e.frameRate||null,t.height=e.height||null,t.pixelAspectRatio=e.pixelAspectRatio||null,t.width=e.width||null),"audio"==e.type&&(t.audioSamplingRate=e.audioSamplingRate,t.channelsCount=e.channelsCount,t.label=e.label||null,t.language=e.language),t}function sH(){}function sV(e){try{var t=sG(e);return r3({uri:e,originalUri:e,data:t.data,headers:{"content-type":t.contentType}})}catch(e){return r2(e)}}function sG(t){var n=t.split(":");if(2>n.length||"data"!=n[0]||2>(n=n.slice(1).join(":").split(",")).length)throw new tf(2,1,1004,t);var i=n[0];t=e.decodeURIComponent(n.slice(1).join(",")),i=(n=i.split(";"))[0];var r=!1;return 1<n.length&&"base64"==n[n.length-1]&&(r=!0,n.pop()),{data:r?t6(t):tQ(t),contentType:i}}function sK(){var e=this;this.g=this.h=null,this.B=1,this.u=new Map,this.F=new Map,this.M=new Map,this.M.set("video",new Map),this.M.set("audio",new Map),this.M.set(no,new Map),this.M.set("image",new Map),this.Ma=new Set,this.i=new Map,this.l=null,this.L="",this.ya=new sR,this.H=-1,this.ea=1/0,this.aa=this.lb=this.mb=!1,this.A=new tT(function(){e.V&&!e.g.continueLoadingWhenPaused&&(e.U.ub(e.V,"timeupdate"),e.V.paused)?e.U.sa(e.V,"timeupdate",function(){return uf(e)}):uf(e)}),this.qa=uS,this.m=null,this.La=0,this.o=1/0,this.wa=this.xa=this.R=0,this.W=new r9,this.C=new Map,this.D=new Map,this.oa=new Map,this.fa=new Map,this.K=new Map,this.ka=new Map,this.la=new Map,this.kb=this.I=!1,this.Ya=new J(5),this.j=null,this.O=!0,this.va=new Set,this.U=new ea,this.V=null}function sX(e,t){return up(e)?e.M.get(t.type):t.qd}function sW(e,t,n){n=void 0!==n&&n;for(var i=-1==e.H,r=v(t),a=r.next();!a.done;a=r.next()){var o=(a=a.value).stream.segmentIndex,s=sX(e,a);if(o=aT(o)){s=v(s);for(var u=s.next();!u.done;u=s.next()){var l=(u=v(u.value)).next().value;if(u.next().value==o.startTime){i&&(e.H=Math.max(e.H,l)),a.Zd=l;break}}}}if(!(0>e.H))for(i=(t=v(t)).next();!i.done;i=t.next())(s6(e,(i=i.value).type)||n)&&(r=i.stream.segmentIndex)&&0<(a=e.H-i.Zd)&&(r.g.splice(0,a),r=aT(r))&&(r=-r.startTime,i.stream.segmentIndex.offset(r),sq(e,i,r))}function sq(e,t,n){t.Qb+=n,t.pb+=n,e=sX(e,t);for(var i=v(e),r=i.next();!r.done;r=i.next()){var a=v(r.value);r=a.next().value,a=a.next().value,e.set(r,a+n)}t.Z()}
1function sz(e){if(up(e)){if(e.qa==uE){for(var t,n=t=1/0,i=v(e.i.values()),r=i.next();!r.done;r=i.next())(r=r.value).stream.segmentIndex&&"text"!=r.stream.type&&(t=Math.min(t,r.pb),n=Math.min(n,r.Qb));t-=n,e.g.hls.useSafariBehaviorForLive&&(t=e.l.A),isNaN(e.g.availabilityWindowOverride)||(t=e.g.availabilityWindowOverride),e.l.Ge(t)}}else e.l.gb(s4(e));if(!e.l.u)for(n=(t=v(e.i.values())).next();!n.done;n=t.next())!(n=n.value).stream.segmentIndex||"audio"!=n.type&&"video"!=n.type||(n=aT(n.stream.segmentIndex))&&n.h&&e.l.Sf(n.h);e.l.qe()}function sY(e,t,n){n=new e7(n).g;var i=new Map;t=v(t);for(var r=t.next();!r.done;r=t.next()){var a=r.value,o=sm(a,"NAME"),s=sm(a,"VALUE");r=sm(a,"QUERYPARAM"),a=sm(a,"IMPORT"),o&&s&&(i.has(o)||i.set(o,s)),r&&(o=n.get(r)[0])&&!i.has(o)&&i.set(r,o),a&&(r=e.u.get(a))&&i.set(a,r)}return i}function sJ(e){var t=new Set([nd(e.mimeType,e.codecs)]);e.segmentIndex&&e.segmentIndex.$a(function(n){n.mimeType&&t.add(nd(n.mimeType,e.codecs))}),e.fullMimeTypes=t}function s$(e,t){var n=sm(t,"CODECS")||"";return t=sm(t,"SUPPLEMENTAL-CODECS"),e.aa=0<n.length,e.aa||e.g.hls.disableCodecGuessing||(n=[],e.g.disableVideo||n.push(e.g.hls.defaultVideoCodec),e.g.disableAudio||n.push(e.g.hls.defaultAudioCodec),n=n.join(",")),e=n.split(/\s*,\s*/),t&&(t=t.split(/\s*,\s*/).map(function(e){return e.split("/")[0]}),e.push.apply(e,y(t))),oo(e)}function sQ(e){return(e=sm(e,"CHANNELS"))?parseInt(e.split("/")[0],10):null}function sZ(e){return(e=sm(e,"SAMPLE-RATE"))?parseInt(e,10):null}function s0(e){return!!(e=sm(e,"CHANNELS"))&&e.includes("/JOC")}function s1(e,t,n){for(var i=[],r=[],a=new Map,o=v(t),s=o.next();!s.done;s=o.next()){var u=s.value;s=sv(u,"URI"),u=sv(u,"GROUP-ID"),i.push(s),r.push(u),a.set(u,s)}if(o=r.sort().join(","),s=t[0],t="","subtitles"==(u=sv(s,"TYPE").toLowerCase())&&(u=no),u==no)t=sm(s,"CODECS")||"";else{r=v(r);for(var l=r.next();!l.done;l=r.next())if(l=l.value,e.D.has(l)){t=e.D.get(l);break}}if(r=i.sort().join(","),e.i.has(r))return e.i.get(r);if(l=e.B++,e.j){a=v(a);for(var c=a.next();!c.done;c=a.next()){var d=v(c.value);c=d.next().value,d=d.next().value,(c=n.get(c))&&oc(e.j,l,c,d)}}n=sm(s,"LANGUAGE"),a=sm(s,"NAME"),c="YES"==sm(s,"DEFAULT"),d="audio"==u?sQ(s):null;var h="audio"==u&&s0(s),f=sm(s,"CHARACTERISTICS"),p="YES"==sm(s,"FORCED");return s="audio"==u?sZ(s):null,(i=s2(e,l,i,t,u,n,c,a,d,null,f,p,s,h)).stream&&(i.stream.groupId=o),e.F.has(o)?e.F.get(o).push(i):e.F.set(o,[i]),e.i.set(r,i),i}function s2(e,t,n,i,r,a,o,s,u,l,c,d,h,f){function p(){return e.j&&1<n.length?od(e.j,t):y.concat(sE([e.L],n,e.u))}var g,m=s9(e,i,r,a,o,s,u,l,c,d,h,f),y=[],b={stream:m,type:r,If:y,Z:p,Qb:0,pb:0,qd:new Map,$c:!1,Zc:!1,Bc:!1,Zd:-1,Sa:-1,Ta:-1,pe:!1},w=null;return m.createSegmentIndex=function(){return w||(g=uh(e,b.Z()),w=new Promise(function(t){var n,w,x,T,S,A,E,k,I,P,L,j,O,U,_,F,H,V,G,K,X;t((n=g,B(function(t){switch(t.g){case 1:return w=ns,x=b.Z(),D(t,2),C(t,n.promise,4);case 4:T=t.h,R(t,3);break;case 2:if(S=N(t),m.closeSegmentIndex(),7001===S.code||e.h.disableStream(m))return t.return();throw S;case 3:if(n.aborted)return t.return();if((A=T.uri)==T.originalUri||x.includes(A)||y.push(A),1!=(E=sN(e.ya,T.data)).type)throw new tf(2,4,4017);return k=sY(e,sw(E.g,"EXT-X-DEFINE"),A),I=!1,(!e.aa&&e.g.hls.disableCodecGuessing||e.O&&r==w.ia&&!e.g.hls.disableClosedCaptionsDetection)&&0<E.segments.length&&(e.O=!1,I=!0),P=!e.aa&&e.g.hls.disableCodecGuessing,L=up(e),C(t,s8(e,0,k,E,p,i,r,a,o,s,u,l,c,d,h,f,void 0,I,P),5);case 5:if(j=t.h,n.aborted)return t.return();if(O=j.stream,up(e)&&!L&&ui(e,E),b.Qb=j.Qb,b.pb=j.pb,b.$c=j.$c,b.Zc=j.Zc,b.Bc=j.Bc,b.qd=j.qd,b.Sa=j.Sa,b.Ta=j.Ta,b.pe=!0,m.segmentIndex=O.segmentIndex,m.encrypted=O.encrypted,m.drmInfos=O.drmInfos,m.keyIds=O.keyIds,m.mimeType=O.mimeType,m.bandwidth=m.bandwidth||O.bandwidth,m.codecs=m.codecs||O.codecs,m.closedCaptions=m.closedCaptions||O.closedCaptions,m.width=m.width||O.width,m.height=m.height||O.height,m.hdr=m.hdr||O.hdr,m.colorGamut=m.colorGamut||O.colorGamut,"und"==m.language&&"und"!=O.language&&(m.language=O.language),m.language=m.language||O.language,m.channelsCount=m.channelsCount||O.channelsCount,m.audioSamplingRate=m.audioSamplingRate||O.audioSamplingRate,sJ(m),!e.g.hls.restrictedManifestParsing&&m.drmInfos.length&&e.h.newDrmInfo(m),U=!1,(!l&&m.closedCaptions||l&&m.closedCaptions&&l.size!=m.closedCaptions.size)&&(U=!0),e.m&&U&&e.h.makeTextStreamsForClosedCaptions(e.m),r==w.ia||r==w.X)for(F=(_=v(e.i.values())
1).next();!F.done;F=_.next())(H=F.value).pe||H.type!=r||(H.stream.mimeType=O.mimeType,sJ(H.stream));r==w.ua&&(V=aT(O.segmentIndex))&&V.ba&&(m.mimeType="application/mp4",sJ(m)),G=sF(m),m.segmentIndex.$a(function(e){e.ba&&(e.ba.hc=G)}),function(e){if(!e.m)return!1;var t=[],n=[];e=v(e.m.variants);for(var i=e.next();!i.done;i=e.next())(i=i.value).video&&t.push(i.video),i.audio&&n.push(i.audio);return(!(0<t.length)||!!t.some(function(e){return e.segmentIndex}))&&(!(0<n.length)||!!n.some(function(e){return e.segmentIndex}))}(e)&&(e.lb?s5(e,[b]):(e.lb=!0,K=Array.from(e.i.values()).filter(function(e){return e.stream.segmentIndex}),s5(e,K),sz(e),0<(X=e.o)&&e.A.da(X))),uo(e,E.g,m.type,k,p),M(t)}})))}))},m.closeSegmentIndex=function(){w&&!m.segmentIndex&&g.abort(),m.segmentIndex&&(m.segmentIndex.release(),m.segmentIndex=null),w=null},b}function s4(e){var t=1/0;e=v(e.i.values());for(var n=e.next();!n.done;n=e.next())(n=n.value).stream.segmentIndex&&"text"!=n.stream.type&&(t=Math.min(t,n.pb));return t}function s3(e,t){var n=[];t=v(t);for(var i=t.next();!i.done;i=t.next())(i=i.value).segmentIndex&&i.segmentIndex.$a(function(e){n.push(e)});e.l.ud(n)}function s5(e,t){if(!up(e))for(var n=s4(e),i=v(t),r=i.next();!r.done;r=i.next())r.value.stream.segmentIndex.$b(0,n);s3(e,t.map(function(e){return e.stream})),n=up(e)&&!e.mb,e.g.hls.ignoreManifestProgramDateTime||n?sW(e,t,n):(function(e,t){if(1/0==e.ea){t=v(t);for(var n=t.next();!n.done;n=t.next())null!=(n=aT(n.value.stream.segmentIndex))&&null!=n.h&&(e.ea=Math.min(e.ea,n.h))}if(1/0!=(t=e.ea)){n=v(e.i.values());for(var i=n.next();!i.done;i=n.next())if(!s6(e,(i=i.value).type)){var r=i.stream.segmentIndex;if(null!=r){var a=aT(r);if(a)if(null==a.h)ee("Missing EXT-X-PROGRAM-DATE-TIME for stream",i.Z(),"Expect AV sync issues!");else for(sq(e,i,a.h-t-a.startTime),r=(i=v(r)).next();!r.done;r=i.next())r.value.Ke(t)}}}}(e,t),0<e.g.hls.ignoreManifestProgramDateTimeForTypes.length&&sW(e,t))}function s6(e,t){return!!e.g.hls.ignoreManifestProgramDateTime||e.g.hls.ignoreManifestProgramDateTimeForTypes.includes(t)}function s8(e,t,n,i,r,a,o,s,u,l,c,d,h,f,p,g,m,y,b){var w,x,T,S,A,E,k,I,M,P,L,j,O,U,_,F,H,V,G,K,X,W,q;return y=void 0===y||y,b=void 0===b||b,B(function(t){switch(t.g){case 1:var z,Y,J,$,Q,Z,ee,et,en,ei,er,ea,eo,es,eu,el,ec,ed,eh,ef,ep,eg,em,ev,ey,eb,ew,ex,eS,eA,eE,ek,eC,eM,eD,eR=sT(i.g,"EXT-X-PLAYLIST-TYPE"),eN=sT(i.g,"EXT-X-ENDLIST");if(eN=eR&&"VOD"==eR.value||eN,eR=eR&&"EVENT"==eR.value&&!eN,eR=!eN&&!eR,eN?ug(e,uS):eR?ug(e,uE):ug(e,uA),up(e)&&un(e,i),w=up(e)?e.M.get(o):new Map,T=(x=us(e,i,w,n,r,o)).segments,S=x.bandwidth,I=k=E=A=null,!(0<T.length&&y)){t.s(2);break}return C(t,(es=e,eu=T,B(function(e){switch(e.g){case 1:if(el=oa(es.g.hls.mediaPlaylistFullMimeType),!eu.length)return e.return(el);if(ed=(ec=uc(es,eu)).segment,eh=ec.segmentIndex,ep=ub[ef=new e7(ed.Z()[0]).Ha.split(".").pop()])return e.return(oa(ep));if(eg=as,ev=em=null,!(ey=ed.ba)){e.s(2);break}return eb=oh(ey.Z(),ey.zb(),ey.xb(),es.g.retryParameters),C(e,um(es,eb,eg,{type:0}).promise,3);case 3:if(em=(ew=e.h).data,!ey.aesKey){e.s(4);break}return C(e,os(em,ey.aesKey,0),5);case 5:em=e.h;case 4:(ev=ew.headers["content-type"])&&(ev=ev.split(";")[0].toLowerCase());case 2:return ex=oh(ed.Z(),ed.zb(),ed.xb(),es.g.retryParameters),C(e,um(es,ex,eg,{type:1}).promise,6);case 6:if(eA=(eS=e.h).data,!ed.aesKey){e.s(7);break}return C(e,os(eA,ed.aesKey,eh),8);case 8:eA=e.h;case 7:if((eE=eS.headers["content-type"])&&(eE=eE.split(";")[0].toLowerCase()),ek="mp4 mp4a m4s m4i m4a m4f cmfa mp4v m4v cmfv fmp4".split(" "),eC=["audio/mp4","video/mp4","video/iso.segment"],on(eT(eA))){var t=eA,n=eT(t),i=(n=(new a9).parse(n)).kf();n=n.ge();var r=[],a=!1,o=!1;switch(i.audio){case"aac":case"aac-loas":r.push("mp4a.40.2"),a=!0;break;case"mp3":r.push("mp4a.40.34"),a=!0;break;case"ac3":r.push("ac-3"),a=!0;break;case"ec3":r.push("ec-3"),a=!0;break;case"opus":r.push("opus"),a=!0}switch(i.video){case"avc":n.codec?r.push(n.codec):r.push("avc1.42E01E"),o=!0;break;case"hvc":n.codec?r.push(n.codec):r.push("hvc1.1.6.L93.90"),o=!0;break;case"av1":r.push("av01.0.01M.08"),o=!0}if(r.length){if(i=a&&!o,a=new Map,o){(o=new eI("video/mp2t")).xd(t),t=v(o.Rd());for(var s=t.next();!s.done;s=t.next())s=s.value,a.set(s,s);o.sc()}n={type:i?"audio":"video",mimeType:"video/mp2t",codecs:r.join(", "),language:null,height:n.height,width:n.width,channelCount:null,sampleRate:null,closedCaptions:a,Tc:null,colorGamut:null}}else n=null;if(eM=n)return e.return(eM)}else if((ek.includes(ef)||eC.includes(eE)||ev&&eC.includes(ev))&&(eD=function(e,t){function n(e){a=e.name;var t=e.reader;t.skip(24);var n=t.ma(),i=t.ma();t.skip(50),h=String(n),d=String(i),e.reader.na()&&i0(e)}function i(e){var t=rr(e.reader);f=t.channelCount,p=t.sampleRate,r(e.name)}
1function r(e){switch(e=e.toLowerCase()){case"avc1":case"avc3":s.push(e+".42E01E"),l=!0;break;case"hev1":case"hvc1":s.push(e+".1.6.L93.90"),l=!0;break;case"dvh1":case"dvhe":s.push(e+".05.04"),l=!0;break;case"vp09":s.push(e+".00.10.08"),l=!0;break;case"av01":s.push(e+".0.01M.08"),l=!0;break;case"mp4a":o.push("mp4a.40.2"),u=!0;break;case"ac-3":case"ec-3":case"ac-4":case"opus":case"flac":o.push(e),u=!0}}var a,o=[],s=[],u=!1,l=!1,c=null,d=null,h=null,f=null,p=null,g=null,m=null;if((new iZ).box("moov",i0).box("trak",i0).box("mdia",i0).P("mdhd",function(e){c=rn(e.reader,e.version).language}).box("minf",i0).box("stbl",i0).P("stsd",i1).box("mp4a",function(e){var t=rr(e.reader);f=t.channelCount,p=t.sampleRate,e.reader.na()?i0(e):r(e.name)}).box("esds",function(e){e=e.reader;for(var t,n,i="mp4a";e.na();){t=e.S();for(var r=e.S();128&r;)r=e.S();if(3==t)e.ma(),128&(r=e.S())&&e.ma(),64&r&&e.skip(e.S()),32&r&&e.ma();else if(4==t)n=e.S(),e.skip(12);else if(5==t)break}n&&(i+="."+ro(n),5==t&&e.na()&&(31==(n=(248&(t=e.S()))>>3)&&e.na()&&(n=32+((7&t)<<3)+((224&e.S())>>5)),i+="."+n)),o.push(i),u=!0}).box("ac-3",i).box("ec-3",i).box("ac-4",i).box("Opus",i).box("fLaC",i).box("avc1",n).box("avc3",n).box("hev1",n).box("hvc1",n).box("dva1",n).box("dvav",n).box("dvh1",n).box("dvhe",n).box("vp09",n).box("av01",n).box("avcC",function(e){var t=a||"";switch(a){case"dvav":t="avc3";break;case"dva1":t="avc1"}(e=e.reader).skip(1),e=t+"."+ro(e.S())+ro(e.S())+ro(e.S()),s.push(e),l=!0}).box("hvcC",function(e){var t=a||"";switch(a){case"dvh1":t="hvc1";break;case"dvhe":t="hev1"}var n=e.reader;n.skip(1);var i=["","A","B","C"][(e=n.S())>>6],r=31&e,o=n.N(),u=(32&e)>>5?"H":"L";e=[n.S(),n.S(),n.S(),n.S(),n.S(),n.S()],n=n.S();for(var c=0,d=0;32>d&&(c|=1&o,31!=d);d++)c<<=1,o>>=1;for(t=t+"."+i+r+"."+ro(c,!0)+("."+u)+n,i="",r=e.length;r--;)((u=e[r])||i)&&(i="."+u.toString(16).toUpperCase()+i);t+=i,s.push(t),l=!0}).box("dvcC",function(e){var t=a||"";switch(a){case"hvc1":t="dvh1";break;case"hev1":t="dvhe";break;case"avc1":t="dva1";break;case"avc3":t="dvav";break;case"av01":t="dav1"}var n=e.reader;n.skip(2),e=n.S(),n=n.S(),s.push(t+"."+rs(e>>1&127)+"."+rs(e<<5&32|n>>3&31)),l=!0}).box("dvvC",function(e){var t=a||"";switch(a){case"hvc1":t="dvh1";break;case"hev1":t="dvhe";break;case"avc1":t="dva1";break;case"avc3":t="dvav";break;case"av01":t="dav1"}var n=e.reader;n.skip(2),e=n.S(),n=n.S(),s.push(t+"."+rs(e>>1&127)+"."+rs(e<<5&32|n>>3&31)),l=!0}).P("vpcC",function(e){var t=a||"",n=e.reader;e=n.S();var i=n.S();n=n.S()>>4&15,s.push(t+"."+rs(e)+"."+rs(i)+"."+rs(n)),l=!0}).box("av1C",function(e){var t=a||"";"dav1"===a&&(t="av01");var n=e.reader;n.skip(1),e=n.S(),n=n.S();var i=e>>>5,r=(64&n)>>6;s.push(t+"."+i+"."+rs(31&e)+(n>>>7?"H":"M")+"."+rs(2===i&&r?(32&n)>>5?12:10:r?10:8)+"."+((16&n)>>4)+"."+((8&n)>>3)+((4&n)>>2)+(3&n)+"."+rs(1)+"."+rs(1)+"."+rs(1)+".0"),l=!0}).box("enca",i4).box("encv",i2).box("sinf",i0).box("frma",function(e){r(e=ra(e.reader).codec)}).box("colr",function(e){s=s.map(function(t){if(t.startsWith("av01.")){var n=e.reader,i=n.ra(),r=n.Ua(4),a=String.fromCharCode(r[0]);if(a+=String.fromCharCode(r[1]),a+=String.fromCharCode(r[2]),"nclx"===(a+=String.fromCharCode(r[3]))){r=n.ma(),a=n.ma();var o=n.ma(),s=n.S()>>7,u=t.split(".");10==u.length&&(u[6]=rs(r),u[7]=rs(a),u[8]=rs(o),u[9]=String(s),t=u.join("."))}n.seek(i)}return t});var t=function(e){var t=null,n=null,i=e.Ua(4),r=String.fromCharCode(i[0]);if(r+=String.fromCharCode(i[1]),r+=String.fromCharCode(i[2]),"nclx"===(r+=String.fromCharCode(i[3]))){switch(e.ma()){case 1:case 5:case 6:case 7:t="srgb";break;case 9:t="rec2020";break;case 11:case 12:t="p3"}switch(i=e.ma(),e.ma(),i){case 1:case 6:case 13:case 14:case 15:n="SDR";break;case 16:n="PQ";break;case 18:n="HLG"}}return{colorGamut:t,Tc:n}}(e.reader),n=t.colorGamut;g=t.Tc,m=n}).parse(e||t,!0),!o.length&&!s.length)return null;var y=u&&!l,b=new Map;if(l){var w=new eI("video/mp4");for(e&&w.init(e),w.xd(t),t=(e=v(w.Rd())).next();!t.done;t=e.next())t=t.value,b.set(t,t);w.sc()}return{type:y?"audio":"video",mimeType:y?"audio/mp4":"video/mp4",codecs:oo(o.concat(s)).join(", "),language:c,height:d,width:h,channelCount:f,sampleRate:p,closedCaptions:b,Tc:g,colorGamut:m}}(em,eA)))return e.return(eD);return eE?e.return(oa(eE)):ev?e.return(oa(ev)):e.return(el)}})),3);case 3:o=(M=t.h).type,s=M.language,c=M.channelCount,p=M.sampleRate,e.g.disableText||(d=M.closedCaptions),E=M.height,A=M.width,k=M.Tc,I=M.colorGamut,b&&(m=M.mimeType,a=M.codecs);case 2:if(m){t.s(4);break}return C(t,(z=e,Y=o,J=a,$=T,B(function(e){switch(e.g){case 1:if(Q=as,2==(Z=uc(z,$).segment).status)return e.return(ul(Y));if(et=new e7((ee=Z.Z())[0]).Ha.split(".").pop(),(en=uw[Y][et])||(en=ub[et])||(en=uu(Y,J)))return e.return(en);return er=1,ea=ai(ee,z.g.retryParameters),D(e,2),ea.method="HEAD",C(e,um(z,ea,Q,{type:er}).promise,4);case 4:ei=e.h.headers["content-type"],R(e,3);break;
1case 2:if(!(eo=N(e))||1002!=eo.code&&1001!=eo.code){e.s(3);break}return ea.method="GET",C(e,um(z,ea,Q,{type:er}).promise,6);case 6:ei=e.h.headers["content-type"];case 3:return ei?e.return(ei.toLowerCase().split(";")[0]):e.return(ul(Y))}})),5);case 5:m=t.h;case 4:if(e.g.hls.restrictedManifestParsing){t.s(6);break}return C(t,ue(e,i,m,r,n),7);case 7:P=(U=t.h).drmInfos,L=U.keyIds,j=U.encrypted,O=U.jg;case 6:if(!e.g.hls.restrictedManifestParsing&&j&&!P.length&&!O)throw new tf(2,4,4026);return _=s9(e,a,o,s,u,l,c,d,h,f,p,g),j&&(_.encrypted=j),P&&(_.drmInfos=P),L&&(_.keyIds=L),_.mimeType=m,S&&(_.bandwidth=S),sJ(_),"video"==o&&(A||E||k||I)&&ud(_,A,E,null,k,null,I),up(e)&&un(e,i),F=T[0].startTime,H=T[T.length-1].endTime,_.segmentIndex=new ax(T),G=!!(V=sT(i.g,"EXT-X-SERVER-CONTROL"))&&null!=sg(V,"CAN-SKIP-UNTIL"),K=!!V&&null!=sg(V,"CAN-BLOCK-RELOAD"),W=(X=s7(sS(i.g,"EXT-X-MEDIA-SEQUENCE",0),T)).Sa,q=X.Ta,t.return({stream:_,type:o,If:[],Z:r,Qb:F,pb:H,$c:G,Zc:K,Bc:!1,Zd:-1,Sa:W,Ta:q,qd:w,pe:!1})}})}function s7(e,t){e=e+t.length-1;var n=-1;if(!t.length)return{Sa:++e,Ta:n};var i=(t=t[t.length-1]).g;return t.g.length?(n=i.length-1,i[i.length-1].preload||(e++,n=0)):(e++,t.o&&(n=0)),{Sa:e,Ta:n}}function s9(e,t,n,i,r,a,o,s,u,l,c,d){var h=uu(n,t)||ul(n),f=[];if(u){u=v(u.split(","));for(var p=u.next();!p.done;p=u.next())f.push(p.value)}return u=void 0,p=null,n==no?u=f.includes("public.accessibility.transcribes-spoken-dialog")&&f.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":f.includes("public.accessibility.describes-video")&&(p="visually impaired"),f.length||"subtitle"!==u||f.push("subtitle"),sJ(e={id:e.B++,originalId:a,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:h,codecs:t,kind:n==no?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:nL(i||"und"),originalLanguage:i,label:a,type:n,primary:r,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:f,forced:l,channelsCount:o,audioSamplingRate:c,spatialAudio:d,closedCaptions:s,hdr:void 0,colorGamut:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:p,external:!1,fastSwitching:!1,fullMimeTypes:new Set}),e}function ue(e,t,n,i,r){var a,o,s,u,l,c,d,h,f,p,g,m,y,b,w,x,T,S,A,E,k,I,M,D,R,N,P;return B(function(L){switch(L.g){case 1:if(a=new Map,t.segments){for(s=(o=v(t.segments)).next();!s.done;s=o.next())if(l=sw((u=s.value).g,"EXT-X-KEY"),c=null,l.length)for(c=ur(e,t,u.g,i,r),h=(d=v(l)).next();!h.done;h=d.next())f=h.value,a.set(f,c)}g=p=!1,m=[],y=new Set,w=(b=v(a)).next();case 2:if(w.done){L.s(4);break}if(T=(x=v(w.value)).next().value,S=x.next().value,A=T,E=S,"NONE"==(k=sv(A,"METHOD"))){L.s(3);break}if(p=!0,I=sm(A,"KEYFORMAT")||"identity",M=null,uv(k)){g=!0,L.s(3);break}if("identity"!=I){M=(D=uT[I])?D(A,n):null,L.s(6);break}return C(L,uy(e,A,n,i,E,r),8);case 8:M=L.h;case 6:if(M){if(M.keyIds)for(N=(R=v(M.keyIds)).next();!N.done;N=R.next())P=N.value,y.add(P);m.push(M)}case 3:w=b.next(),L.s(2);break;case 4:return L.return({drmInfos:m,keyIds:y,encrypted:p,jg:g})}})}function ut(t,n,i,r,a){if(!e.crypto||!e.crypto.subtle)throw et("Web Crypto API is not available to decrypt AES. (Web Crypto only exists in secure origins like https)"),new tf(2,4,4042);var o=0,s=sm(n,"IV","");if(s){var u=t8(s.substr(2));if(16!=u.byteLength)throw new tf(2,4,4048)}else o=sS(i.g,"EXT-X-MEDIA-SEQUENCE",0);if(i=n.toString()+"-"+o,!t.fa.has(i)){var l={bitsKey:128,blockCipherMode:"CBC",iv:u,firstMediaSequenceNumber:o};switch(sv(n,"METHOD")){case"AES-256":l.bitsKey=256;break;case"AES-256-CTR":l.bitsKey=256,l.blockCipherMode="CTR"}l.fetchKey=function(){var i,o,s,u,c,d;return B(function(h){if(1==h.g)return o=(i=sA(r(),sv(n,"URI"),a)).sort().join(""),t.K.has(o)||
1(s=ai(i,t.g.retryParameters),u=um(t,s,6).promise,t.K.set(o,u)),C(h,t.K.get(o),2);if(3!=h.g){if(!(c=h.h).data||c.data.byteLength!=l.bitsKey/8)throw new tf(2,4,4049);return d={name:"CTR"==l.blockCipherMode?"AES-CTR":"AES-CBC",length:l.bitsKey},C(h,e.crypto.subtle.importKey("raw",c.data,d,!0,["decrypt"]),3)}l.cryptoKey=h.h,l.fetchKey=void 0,M(h)})},t.fa.set(i,l)}return t.fa.get(i)}function un(e,t){var n=1/0,i=t.segments;if(i.length)for(var r=i.length-1;0<=r;){var a=sT(i[r].g,"EXTINF");if(a){n=Number(a.value.split(",")[0]);break}r--}if(!(i=sT(t.g,"EXT-X-TARGETDURATION")))throw new tf(2,4,4024,"EXT-X-TARGETDURATION");i=Number(i.value),(r=sT(t.g,"EXT-X-PART-INF"))&&(e.R=Number(sv(r,"PART-TARGET"))),t=sT(t.g,"EXT-X-SERVER-CONTROL"),e.I&&e.R?(e.o=e.kb?5*e.R<=n?Math.min(e.R,e.o):Math.min(n,e.o):Math.min(e.R,e.o),e.wa=t?Number(sv(t,"PART-HOLD-BACK")):0):(e.o=Math.min(n,e.o),e.xa=(n=t?sg(t,"HOLD-BACK"):null)?Number(n.value):0),e.La=Math.max(i,e.La)}function ui(e,t){if(e.g.defaultPresentationDelay)t=e.g.defaultPresentationDelay;else if(e.wa)t=e.wa;else if(e.xa)t=e.xa;else{t=t.segments.length;var n=e.g.hls.liveSegmentsDelay;n>t-2&&(n=Math.max(1,t-2)),t=e.La*n}e.l.Tf(0),e.l.Ce(t),e.l.rc(!1)}function ur(e,t,n,i,r){var a=sT(n,"EXT-X-MAP");if(!a)return null;var o=sv(a,"URI"),s=sA(i(),o,r);if(o=[s.toString(),sm(a,"BYTERANGE","")].join("-"),!e.oa.has(o)){var u,l,c,d,h,f,p=void 0,g=null;n=v(n);for(var m=n.next();!m.done;m=n.next())"EXT-X-KEY"==(m=m.value).name?uv(sv(m,"METHOD"))&&m.id<a.id&&(p=ut(e,m,t,i,r)):"EXT-X-BYTERANGE"==m.name&&m.id<a.id&&(g=m);u=s,l=a,c=g,d=p,h=0,f=null,(l=sm(l,"BYTERANGE"))||!c||(l=c.value),l&&(f=Number((h=l.split("@"))[0]),f=(h=Number(h[1]))+f-1,d&&(c=f+1-h)%16&&(f+=16-c%16)),t=new am(function(){return u},h,f,null,null,null,d),e.oa.set(o,t)}return e.oa.get(o)}function ua(e,t){var n=0,i=null;return t&&(t=Number((n=t.split("@"))[0]),i=(n=n[1]?Number(n[1]):e.ta+1)+t-1),[n,i]}function uo(e,t,n,i,r){if("video"==n||"audio"==n){var a=e.l.m;if(a&&!s6(e,n))for(t=(t=sw(t,"EXT-X-DATERANGE")).sort(function(e,t){return(e=sv(e,"START-DATE"))<(t=sv(t,"START-DATE"))?-1:+(e>t)}),n=0;n<t.length;n++){var o=t[n],s=sv(o,"ID");if(!e.va.has(s)){var u=sv(o,"START-DATE"),l=rR(u);if(!isNaN(l)){u=Math.max(0,l-a);var c=null,d=sm(o,"END-DATE");if(d&&!isNaN(d=rR(d))&&0>(c=d-a)||null==c&&(d=sm(o,"DURATION")||sm(o,"PLANNED-DURATION"))&&(isNaN(d=parseFloat(d))||(c=u+d),0>l-a+d))continue;d=sm(o,"CLASS")||"com.apple.quicktime.HLS";var h="YES"==sm(o,"END-ON-NEXT");if(null==c&&h){for(h=n+1;h<t.length;h++){var f=sm(t[h],"CLASS")||"com.apple.quicktime.HLS";if(d==f&&!isNaN(f=rR(f=sv(t[h],"START-DATE")))&&f&&f>l){c=Math.max(0,f-a);break}}if(null==c)continue}for(l="ID CLASS START-DATE END-DATE DURATION END-ON-NEXT".split(" "),h=[],f=(o=v(o.attributes)).next();!f.done;f=o.next())if(f=f.value,!l.includes(f.name)){var p=sk(f.value,i);("X-ASSET-URI"==f.name||"X-ASSET-LIST"==f.name)&&(p=sA(r(),f.value,i)[0]),h.push({key:f.name,description:"",data:p,mimeType:null,pictureType:null})}h.length&&e.h.onMetadata(d,u,c,h),e.va.add(s)}}}}}function us(t,n,i,r,a,o){var s=n.segments,u=void 0,l=sS(n.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),c=sS(n.g,"EXT-X-MEDIA-SEQUENCE",0),d=sT(n.g,"EXT-X-SKIP"),h=d?Number(sm(d,"SKIPPED-SEGMENTS")):0,f=c+h,p=0;up(t)&&i.has(f)&&(p=i.get(f)),0===p&&t.qa==uE&&0<i.size&&!i.has(f)&&(p=t.l.cb());var g=[],m=null;d=[];for(var y=0;y<s.length;y++){var b=s[y],w=0==y?p:m.endTime;f=c+h+y,sT(b.g,"EXT-X-DISCONTINUITY")&&l++;for(var x=v(b.g),T=x.next();!T.done;T=x.next())"EXT-X-KEY"==(T=T.value).name&&(u=uv(sv(T,"METHOD"))?ut(t,T,n,a,r):void 0);i.set(f,w),x=ur(t,n,b.g,a,r),!t.I&&t.h.isAutoLowLatencyMode()&&(t.h.enableLowLatencyMode(),t.I=t.h.isLowLatencyMode()),(w=function(t,n,i,r,a,o,s,u,l){function c(e){e=new e7(e).Ha.split(".").pop();var t=uw[s][e];return t||(t=ub[e]),t}var d=r.g,h=sT(d,"EXTINF"),f=0,p=0,g=null;r.eb.length&&(t.m.isLowLatency=!0);var m=null;if(!t.g.hls.ignoreManifestProgramDateTime){var y=sT(d,"EXT-X-PROGRAM-DATE-TIME");y&&y.value&&(m=rR(y.value),t.mb=!0)}var b=ab;if(sT(d,"EXT-X-GAP")&&(t.m.gapCount++,b=2),!h){if(0==r.eb.length)throw new tf(2,4,4024,"EXTINF");if(!t.I)return null}var w=[];y=!1;var x=null,T=!1,S=!1;if(t.I&&r.eb.length){f=n&&e.ReadableStream&&t.g.hls.allowLowLatencyByteRangeOptimization;for(var A=m,E={},k=0;k<r.eb.length;E={Ld:void 0,wd:void 0},k++){var I=r.eb[k],C=0==k?i:w[w.length-1],M=0==k?a:C.endTime,D=Number(sm(I,"DURATION"))||t.R;if(D){var R=M+D,N=0,P=null;
1if("EXT-X-PRELOAD-HINT"==I.name?(N=(N=sm(I,"BYTERANGE-START"))?Number(N):0,(C=sm(I,"BYTERANGE-LENGTH"))?P=N+Number(C)-1:N&&(P=Number.MAX_SAFE_INTEGER)):(N=(P=v(ua(C,N=sm(I,"BYTERANGE")))).next().value,P=P.next().value),E.wd=sm(I,"URI"),E.wd){C=ab,"YES"==sm(I,"GAP")&&(t.m.gapCount++,C=2,T=!0),E.Ld=null;var L=function(e){return function(){return null==e.Ld&&(e.Ld=sA(u(),e.wd,o)),e.Ld}}(E);f&&0<=N&&null!=P&&(x=L,y=!0),M=new ay(M,R,L,N,P,n,0,0,1/0,[],"",null,A,C,l),"EXT-X-PRELOAD-HINT"==I.name&&(M.re(),S=!0),"YES"!=sm(I,"INDEPENDENT")&&0<k&&M.pd(),(E=c(E.wd))&&(M.mimeType=E,ux.has(E)&&(M.ba=null)),w.push(M),A&&(A+=D)}}}}if(h){if(0==(h=Number(h.value.split(",")[0])))return null;f=a+h}else{if(!w.length)return null;f=w[w.length-1].endTime}y&&(T||0!=w[0].Ia?(y=!1,x=null):w=[]),(h=sT(d,"EXT-X-BYTERANGE"))?(p=(g=v(ua(i,h.value))).next().value,g=g.next().value):w.length&&(p=w[0].Ia,g=w[w.length-1].ta),i="",h=null,"image"==s&&(i="1x1",d=sT(d,"EXT-X-TILES"))&&(i=sv(d,"LAYOUT"),(d=sm(d,"DURATION"))&&(h=Number(d)));var j=null;return n=new ay(a,f,function(){return x?x():(null==j&&(j=sA(u(),r.h,o)),j||[])},p,g,n,0,0,1/0,w,i,h,m,b,l,0<w.length&&!!r.h),(a=c(r.h))&&(n.mimeType=a,ux.has(a)&&(n.ba=null)),y&&(t.kb=!0,n.vf(),S&&n.re()),n}(t,x,m,b,w,r,o,a,u))&&((m=sS(b.g,"EXT-X-BITRATE"))?d.push({bitrate:m,duration:w.endTime-w.startTime}):d.length&&(m=d.pop(),m.duration+=w.endTime-w.startTime,d.push(m)),m=w,w.j=l,s6(t,o)&&null!=t.H&&f<t.H||g.push(w))}if(n=void 0,d.length&&(n=d.reduce(function(e,t){return e+t.duration},0),n=Math.round(d.reduce(function(e,t){return e+t.bitrate*t.duration},0)/n*1e3)),d=g.some(function(e){return null!=e.h})){for(i={},r=0;r<g.length;i={fd:void 0,ed:void 0,Wc:void 0,Tb:void 0,Vc:void 0},r++)if(i.Tb=g[r],null==i.Tb.h)for(i.ed=0,i.fd=r,a=function(e){return function(){var t=g[e.fd];if(t){if(null!=t.h)return t.h+e.ed;e.ed-=t.endTime-t.startTime,e.fd+=1}return null}}(i),i.Vc=0,i.Wc=r,s=function(e){return function(){var t=g[e.Wc];if(t){if(t!=e.Tb&&(e.Vc+=t.endTime-t.startTime),null!=t.h)return t.h+e.Vc;--e.Wc}return null}}(i);null==i.Tb.h;)i.Tb.h=s(),null==i.Tb.h&&(i.Tb.h=a())}if(d)for(r=(i=v(g)).next();!r.done;r=i.next())for(r=(a=r.value).h,s=(a=v(a.g)).next();!s.done;s=a.next())(s=s.value).h=r,r+=s.endTime-s.startTime;if(i=t.ea,d&&1/0!=i&&!s6(t,o))for(o=(t=v(g)).next();!o.done;o=t.next())o.value.Ke(i);return{segments:g,bandwidth:n}}function uu(e,t){if(e==no){if("vtt"==t||"wvtt"==t)return"text/vtt";if(t&&""!==t)return"application/mp4"}return"image"!=e||t&&"jpeg"!=t?"audio"==e&&"mp4a.40.34"==t?"audio/mpeg":"mjpg"==t?"application/mp4":null:"image/jpeg"}function ul(e){return e==no?"text/vtt":uw[e].mp4}function uc(e,t){e=up(e)?Math.trunc((t.length-1)/2):0;for(var n=t[e];2==n.Ab()&&e+1<t.length;)n=t[++e];return{segment:n,segmentIndex:e}}function ud(e,t,n,i,r,a,o){e&&(e.width=Number(t)||void 0,e.height=Number(n)||void 0,e.frameRate=Number(i)||void 0,e.hdr=r||void 0,e.videoLayout=a||void 0,e.colorGamut=o||void 0)}function uh(e,t,n){return um(e,ai(t,e.g.retryParameters),0,{type:n?2:3})}function uf(e){var t,n,i,r,a;return B(function(o){switch(o.g){case 1:if(!e.h)return o.return();return D(o,2),t=Date.now(),C(o,e.update(),4);case 4:n=Date.now(),up(e)&&(i=(n-t)/1e3,e.Ya.sample(1,i),r=Math.max(0,e.o-$(e.Ya)),e.A.da(r)),R(o,3);break;case 2:if(a=N(o),!e.h)return o.return();if(e.g.raiseFatalErrorOnManifestUpdateRequestFailure)return e.h.onError(a),o.return();a.severity=1,e.h.onError(a),e.A.da(.1);case 3:if(!e.h)return o.return();e.h.onManifestUpdated(),M(o)}})}function up(e){return e.qa!=uS}function ug(e,t){e.qa=t,e.l&&e.l.rc(!up(e)),up(e)||e.A.stop()}function um(e,t,n,i){if(!e.W)throw new tf(2,7,7001);return t=e.h.networkingEngine.request(n,t,i),ae(e.W,t),t}function uv(e){return"AES-128"==e||"AES-256"==e||"AES-256-CTR"==e}function uy(e,t,n,i,r,a){var o,s,u,l,c,d,h,f,p,g,m;return B(function(v){switch(v.g){case 1:if("video/mp2t"==n)throw new tf(2,4,4040);if(tK())throw new tf(2,4,4041);if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(o=sv(t,"METHOD")))return v.return(null);if((s=sA(i(),sv(t,"URI"),a))[0].startsWith("data:text/plain;base64,")){u=t7(t6(s[0].split("data:text/plain;base64,").pop())),v.s(2);break}return l=s.sort().join(""),e.ka.has(l)||(c=ai(s,e.g.retryParameters),d=um(e,c,6).promise,e.ka.set(l,d)),C(v,e.ka.get(l),3);case 3:u=t7(v.h.data);case 2:if(h="00000000000000000000000000000000",!r){v.s(4);break}if(e.la.has(r)){f=e.la.get(r),v.s(5);break}return p=oh(r.Z(),r.zb(),r.xb(),e.g.retryParameters),C(v,um(e,p,as,{type:0}).promise,6);case 6:var y,b;y=v.h.data,b=null,(new iZ).box("moov",i0).box("trak",i0).box("mdia",i0).box("minf",i0).box("stbl",i0).P("stsd",i1).box("encv",i2).box("enca",i4).box("sinf",i0).box("schi",i0).P("tenc",function(e){(e=e.reader).S(),e.S(),e.S(),e.S(),b=t7(e.Ua(16))}).parse(y,!0),f=b,e.la.set(r,f);case 5:f&&(h=f);case 4:return(g=new Map).set(h,u),m="cenc","SAMPLE-AES"==o&&(m="cbcs"),v.return(nn(g,m))}})}sO.prototype.release=function(){this.i.stop();for(var e=v(this.g),t=e.next();!t.done;t=e.next())t.value.release();this.g.clear()},A(s_,r7),s_.prototype.release=function(){this.g.clear(),r7.prototype.release.call(this)},s_.prototype.j=function(e){for(var t=v(this.g.values()),n=t.next();!n.done;n=t.next()){var i=(n=n.value).Yd;e:{for(var r=n.Pc,a=r.length-1;0<=a;a--){var o=r[a];if(o.position<=e){r=o.hc;break e}}r=null}a=r&&!(i===r||i&&r&&i.bandwidth==r.bandwidth&&i.audioSamplingRate==r.audioSamplingRate&&i.codecs==r.codecs&&i.contentType==r.contentType&&i.frameRate==r.frameRate&&i.height==r.height&&i.mimeType==r.mimeType&&i.channelsCount==r.channelsCount&&i.pixelAspectRatio==r.pixelAspectRatio&&i.width==r.width),o=r&&i&&r.label&&i.label&&i.label!==r.label;var s=r&&i&&r.language&&i.language&&i.language!==r.language;i=r&&i&&r.roles&&i.roles&&!ej(i.roles,r.roles),(o||s||i)&&sB(this,e,r.contentType)&&(n.Yd=r,i=new r8("audiotrackchange",new Map([["quality",r],["position",e]])),this.dispatchEvent(i)),a&&sB(this,e,r.contentType)&&(n.Yd=r,JSON.stringify(r),n=new r8("qualitychange",new Map([["quality",r],["position",e]])),this.dispatchEvent(n))}},q("shaka.net.DataUriPlugin",sH),sH.parse=sV,an("data",sV),(b=sK.prototype).configure=function(e){this.g=e,this.j&&this.j.configure(this.g)},b.start=function(e,t){var n,i,r,a,o,s=this;return B(function(u){var l,c,d,h,f,p,g,m,b,w,x,T,S,A,E,k,I,M,R,P,L,j,O,U,_,F,H,V,G,K,X,W,q,z;return 1==u.g?(s.h=t,s.I=t.isLowLatencyMode(),n=Date.now()/1e3,C(u,uh(s,[e]).promise,2)):3!=u.g?(i=u.h,r=Date.now()/1e3,s.L=i.uri,a=Date.now()/1e3,C(u,(l=s,c=i.data,d=e,B(function(e){var t,n,i,r,a,o,s,u,Y,J,$,Q,Z,ee,et,en,ei,er,ea,eo,es,eu,el,ec,ed,eh,ef,ep,eg,em,ev,ey,eb,ew,ex,eT,eS,eA,eE,ek,eI,eC,eM,eD,eR,eN,eP,ej,eO,eU,e_,eB,eF;switch(e.g){case 1:if(h=ns,p=sw((f=sN(l.ya,c)).g,"EXT-X-DEFINE"),g=[],m=[],b=[],l.l=ne
1w az(null,0),l.l.rc(!0),w=function(){return[d]},x=null,T=new Map,1==f.type)return l.O=!1,T=sY(l,sw(f.g,"EXT-X-DEFINE"),l.L),x=h.ia,P="",L=new Map,C(e,s8(l,l.B++,T,f,w,"",x,P,!0,"Media Playlist",null,L,null,!1,null,!1),7);return function(e,t){var n=new e7(e.L).g;t=v(t);for(var i=t.next();!i.done;i=t.next()){var r=i.value;i=sm(r,"NAME");var a=sm(r,"VALUE");r=sm(r,"QUERYPARAM"),i&&a&&(e.u.has(i)||e.u.set(i,a)),r&&(i=n.get(r)[0])&&!e.u.has(i)&&e.u.set(r,i)}}(l,p),S=sw(f.g,"EXT-X-MEDIA"),A=sw(f.g,"EXT-X-STREAM-INF"),E=sw(f.g,"EXT-X-IMAGE-STREAM-INF"),k=sw(f.g,"EXT-X-I-FRAME-STREAM-INF"),I=sw(f.g,"EXT-X-SESSION-KEY"),M=sw(f.g,"EXT-X-SESSION-DATA"),R=sw(f.g,"EXT-X-CONTENT-STEERING"),function(e,t){t=v(t);for(var n=t.next();!n.done;n=t.next()){var i=n.value,r=sm(i,"DATA-ID");n=sm(i,"URI");var a=sm(i,"LANGUAGE");i=sm(i,"VALUE"),r=(new Map).set("id",r),n&&r.set("uri",sA([e.L],n,e.u)[0]),a&&r.set("language",a),i&&r.set("value",i),n=new r8("sessiondata",r),e.h&&e.h.onEvent(n)}}(l,M),C(e,(t=l,n=R,B(function(e){if(!t.h||!t.g)return e.return();for(a=(r=v(n)).next();!a.done;a=r.next())if(s=sm(o=a.value,"PATHWAY-ID"),u=sm(o,"SERVER-URI"),s&&u){t.j=new ou(t.h),t.j.configure(t.g),t.j.i=[t.L],t.j.setManifestType("HLS"),t.j.h=s,i=ol(t.j,u);break}return C(e,i,0)})),4);case 4:return l.g.hls.restrictedManifestParsing&&(S=[],A=0<A.length?[A[0]]:[]),function(e,t){t=v(t);for(var n=t.next();!n.done;n=t.next()){var i=n.value,r=sm(i,"AUDIO");n=sm(i,"VIDEO");var a=sm(i,"SUBTITLES");if(i=s$(e,i),a){var o=nr(no,i);e.D.set(a,o),eL(i,o)}r&&((a=nr("audio",i))||(a=e.g.hls.defaultAudioCodec),e.D.set(r,a)),n&&((r=nr("video",i))||(r=e.g.hls.defaultVideoCodec),e.D.set(n,r))}}(l,A),function(e,t){e.O=0==(t=sx(t,"CLOSED-CAPTIONS")).length,t=v(t);for(var n=t.next();!n.done;n=t.next()){var i=n.value,r=sm(i,"LANGUAGE");n=nL(r||"und"),r||(r=sm(i,"NAME"))&&(n=r),r=sv(i,"GROUP-ID"),i=sv(i,"INSTREAM-ID").replace("SERVICE","svc"),e.C.get(r)||e.C.set(r,new Map),e.C.get(r).set(i,n)}}(l,S),C(e,(Y=l,J=A,$=I,Q=S,Z=w,ee=l.u,B(function(e){switch(e.g){case 1:if(et=[],en=new Set,Y.g.hls.restrictedManifestParsing||!(0<$.length)){e.s(2);break}er=(ei=v($)).next();case 4:if(er.done){e.s(2);break}if(eo=sv(ea=er.value,"METHOD"),es=sm(ea,"KEYFORMAT")||"identity",eu=null,"NONE"==eo){e.s(5);break}if(uv(eo)){ec=(el=sA(Z(),sv(ea,"URI"),ee)).sort().join(""),Y.K.has(ec)||(ed=ai(el,Y.g.retryParameters),eh=um(Y,ed,6).promise,Y.K.set(ec,eh)),e.s(5);break}if("identity"!=es){eu=(ef=uT[es])?ef(ea,""):null,e.s(7);break}return C(e,uy(Y,ea,"",Z,null,ee),10);case 10:eu=e.h;case 7:if(eu){if(eu.keyIds)for(eg=(ep=v(eu.keyIds)).next();!eg.done;eg=ep.next())em=eg.value,en.add(em);et.push(eu)}case 5:er=ei.next(),e.s(4);break;case 2:for(ev={},eb=(ey=v(J)).next();!eb.done;eb=ey.next())ev[ex=sp(ew=eb.value,!Y.j)]?ev[ex].push(ew):ev[ex]=[ew];for(eS in eT=[],ev)ek=sm(eE=(eA=ev[eS])[0],"FRAME-RATE"),eI=Number(sm(eE,"AVERAGE-BANDWIDTH"))||Number(sv(eE,"BANDWIDTH")),eD=(eM=v((eC=sm(eE,"RESOLUTION"))?eC.split("x"):[null,null])).next().value,eR=eM.next().value,eN=sm(eE,"VIDEO-RANGE"),(eP=sm(eE,"REQ-VIDEO-LAYOUT"))&&eP.includes(",")&&(eP=eP.split(",").filter(function(e){return"CH-STEREO"==e||"CH-MONO"==e})[0]),eP=eP||"CH-MONO",ej=function(e,t,n){for(var i={audio:[],video:[]},r=new Map,a=[],o=!1,s=!1,u=v(t),l=u.next();!l.done;l=u.next()){var c=l.value;l=sm(c,"AUDIO");var d=sm(c,"VIDEO"),h=l||d;h&&(a.includes(h)||a.push(h),(c=sm(c,"PATHWAY-ID"))&&r.set(h,c),l?o=!0:d&&(s=!0))}a.length&&n.length&&function(e,t,n){t=t.filter(function(e){var t=sm(e,"URI")||"";return"SUBTITLES"!=sm(e,"TYPE")&&""!=t});var i={};t=v(t);for(var r=t.next();!r.done;r=t.next()){var a=sp(r=r.value,!e.j);i[a]?i[a].push(r):i[a]=[r]}for(var o in i)s1(e,i[o],n)}(e,u=n.filter(function(e){return a.includes(sv(e,"GROUP-ID"))}),r),u=(r=a.sort().join(","))&&e.F.has(r)?e.F.get(r):[],o?i.audio.push.apply(i.audio,y(u)):s&&i.video.push.apply(i.video,y(u)),l=!1;var f=t.map(function(e){return sv(e,"URI")});if(s=i.audio.find(function(e){return e&&e.Z().find(function(e){return f.includes(e)})}),d=nr("video",o=s$(e,t[0])),(h=nr("audio",o))&&!d?(s="audio",l=0<i.audio.length):!i.audio.length&&!i.video.length&&h&&d?(s="video",o=[[d,h].join()]):i.audio.length&&s?(s="audio",l=!0):s=i.video.length&&!i.audio.length?"audio":"video",!l){var p=c=h=d=l=null;!u.length&&(n=n.find(function(e){var t=sm(e,"URI")||"",n=sm(e,"TYPE");return e=sv(e,"GROUP-ID"),"SUBTITLES"!=n&&""==t&&a.includes(e)}))&&(l=sm(n,"LANGUAGE"),d=sm(n,"NAME"),h=sQ(n),s0(n),c=sm(n,"CHARACTERISTICS"),p=s
1Z(n)),e=function(e,t,n,i,r,a,o,s,u){for(var l=e.B++,c=[],d=v(t),h=d.next();!h.done;h=d.next()){var f=h.value;h=sv(f,"URI"),f=sm(f,"PATHWAY-ID"),e.j&&f&&oc(e.j,l,f,h),c.push(h)}if(d=c.sort().join(","),e.i.has(d))return e.i.get(d);e:{if(t=sm(t[0],"CLOSED-CAPTIONS"),"video"==i){if(e.g.disableText){e.O=!1,t=null;break e}if(t){if("NONE"!=t){t=e.C.get(t);break e}e.O=!1}else if(!t&&e.C.size)for(t=v(e.C.keys()).next();!t.done;){t=e.C.get(t.value);break e}}t=null}return i=s2(e,l,c,n=ni(i,n),i,r,!1,a,o,t,s,!1,u,!1),e.i.set(d,i),i}(e,t,o,s,l,d,h,c,p),r&&(e.stream.groupId=r),i[e.stream.type]=[e]}return i}(Y,eA,Q),eT.push.apply(eT,y(function(e,t,n,i,r,a,o,s,u,l,c){for(var d=v(n),h=d.next();!h.done;h=d.next())ud(h.value.stream,r,a,o,s,u,null);for(r=e.g.disableAudio,(!t.length||r)&&(t=[null]),r=e.g.disableVideo,(!n.length||r)&&(n=[null]),r=[],a=(t=v(t)).next();!a.done;a=t.next())for(a=a.value,s=(o=v(n)).next();!s.done;s=o.next()){var f=s.value;(s=a?a.stream:null)&&(s.drmInfos=l,s.keyIds=c),(u=f?f.stream:null)&&(u.drmInfos=l,u.keyIds=c),u&&!s&&(u.bandwidth=i),!u&&s&&(s.bandwidth=i),d=a?a.stream.drmInfos:null,h=f?f.stream.drmInfos:null,f=(f=f?f.Z().sort().join(","):"")+" - "+(a?a.Z().sort().join(","):""),s&&u&&!tm(d,h)||e.Ma.has(f)||(s={id:e.B++,language:s?s.language:"und",disabledUntilTime:0,primary:!!s&&s.primary||!!u&&u.primary,audio:s,video:u,bandwidth:i,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},r.push(s),e.Ma.add(f))}return r}(Y,ej.audio,ej.video,eI,eD,eR,ek,eN,eP,et,en)));return e.return(eT.filter(function(e){return null!=e}))}})),5);case 5:return g=e.h,m=function(e,t){var n=sx(t,"SUBTITLES");t=n.map(function(t){if(e.g.disableText)return null;try{return s1(e,[t],new Map).stream}catch(t){if(e.g.hls.ignoreTextStreamFailures)return null;throw t}}),n=v(n);for(var i=n.next();!i.done;i=n.next()){var r=sv(i.value,"GROUP-ID");if((i=e.D.get(r))&&(r=e.F.get(r))){r=v(r);for(var a=r.next();!a.done;a=r.next())(a=a.value).stream.codecs=i,a.stream.mimeType=uu(no,i)||ul(no),sJ(a.stream)}}return t.filter(function(e){return e})}(l,S),C(e,(eO=l,eU=E,e_=k,B(function(e){return 1==e.g?(eB=eU.map(function(e){var t,n;return B(function(i){if(1==i.g){var r,a,o,s,u,l,c,d,h,f,p;return eO.g.disableThumbnails?i.return(null):(D(i,2),C(i,(r=eO,a=e,B(function(e){return 1==e.g?(o=sv(a,"URI"),s=sm(a,"CODECS","jpeg")||"",r.i.has(o))?e.return(r.i.get(o)):(u=sm(a,"LANGUAGE"),l=sm(a,"NAME"),c=sm(a,"CHARACTERISTICS"),d=s2(r,r.B++,[o],s,"image",u,!1,l,null,null,c,!1,null,!1),(h=sm(a,"RESOLUTION"))?C(e,d.stream.createSegmentIndex(),3):e.s(2)):(2!=e.g&&(f=aT(d.stream.segmentIndex).tilesLayout)&&(d.stream.width=Number(h.split("x")[0])*Number(f.split("x")[0]),d.stream.height=Number(h.split("x")[1])*Number(f.split("x")[1])),(p=sm(a,"BANDWIDTH"))&&(d.stream.bandwidth=Number(p)),r.i.set(o,d),e.return(d))})),4))}if(2!=i.g)return t=i.h,i.return(t.stream);if(n=N(i),eO.g.hls.ignoreImageStreamFailures)return i.return(null);throw n})}).concat(e_.map(function(e){if(eO.g.disableThumbnails)return null;try{var t=sv(e,"URI"),n=sm(e,"CODECS")||"";if(eO.i.has(t))var i=eO.i.get(t);else{var r=sm(e,"LANGUAGE"),a=sm(e,"NAME"),o=sm(e,"CHARACTERISTICS"),s=s2(eO,eO.B++,[t],n,"image",r,!1,a,null,
1null,o,!1,null,!1),u=sm(e,"RESOLUTION"),l=v(u?u.split("x"):[null,null]),c=l.next().value,d=l.next().value;s.stream.width=Number(c)||void 0,s.stream.height=Number(d)||void 0;var h=sm(e,"BANDWIDTH");h&&(s.stream.bandwidth=Number(h)),eO.i.set(t,s),i=s}return e=i,"mjpg"!==e.stream.codecs?null:e.stream}catch(e){if(eO.g.hls.ignoreImageStreamFailures)return null;throw e}})),C(e,Promise.all(eB),2)):(eF=e.h,e.return(eF.filter(function(e){return e})))})),6);case 6:b=e.h,e.s(3);break;case 7:j=e.h,l.i.set(d,j),j.stream&&(O=sF(j.stream),j.stream.segmentIndex.$a(function(e){e.ba&&(e.ba.hc=O)})),x=j.stream.type,g.push({id:0,language:nL(P||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==x?j.stream:null,video:"video"==x?j.stream:null,bandwidth:j.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!l.h)throw new tf(2,7,7001);if(1==f.type&&(up(l)&&(ui(l,f),U=l.o,l.A.da(U)),_=Array.from(l.i.values()),s5(l,_),sz(l),uo(l,f.g,x,T,w)),l.m={presentationTimeline:l.l,variants:g,textStreams:m,imageStreams:b,offlineSessionIds:[],minBufferTime:0,sequenceMode:l.g.hls.sequenceMode,lowestVideoBitrate:0,ignoreManifestTimestampsInSegmentsMode:l.g.hls.ignoreManifestTimestampsInSegmentsMode,type:"HLS",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,manifestDownloadTimeSeconds:NaN,manifestParseTimeSeconds:NaN},l.aa||!l.g.hls.disableCodecGuessing){e.s(8);break}
1for(F=[],V=(H=v(l.m.variants)).next();!V.done;V=H.next())(G=V.value).audio&&""===G.audio.codecs&&F.push(G.audio.createSegmentIndex()),G.video&&""===G.video.codecs&&F.push(G.video.createSegmentIndex());return C(e,Promise.all(F),8);case 8:if(l.h.makeTextStreamsForClosedCaptions(l.m),1==g.length){for(K=[],q=(W=v([(X=g[0]).video,X.audio])).next();!q.done;q=W.next())(z=q.value)&&!z.segmentIndex&&K.push(z.createSegmentIndex());if(0<K.length)return C(e,Promise.all(K),0)}e.s(0)}})),3)):(o=Date.now()/1e3,s.m.manifestDownloadTimeSeconds=r-n,s.m.manifestParseTimeSeconds=o-a,u.return(s.m))})},b.stop=function(){this.A&&(this.A.stop(),this.A=null);var e=[];return this.W&&(e.push(this.W.destroy()),this.W=null),this.g=this.h=null,this.Ma.clear(),this.m=null,this.i.clear(),this.F.clear(),this.D.clear(),this.u.clear(),this.oa.clear(),this.fa.clear(),this.K.clear(),this.ka.clear(),this.la.clear(),this.va.clear(),this.j&&this.j.destroy(),this.U&&(this.U.release(),this.U=null),Promise.all(e)},b.update=function(){var e,t,n,i,r,a,o,s,u,l,c,d=this;return B(function(h){if(1==h.g){if(!up(d))return h.return();for(e=[],t=Array.from(d.i.values()),d.o=1/0,d.m.gapCount=0,r=(i=v(n=t.filter(function(e){return e.stream.segmentIndex}))).next();!r.done;r=i.next())a=r.value,e.push(function(e,t){var n,i,r,a,o,s,u,l,c,d,h,f,p,g,m,b,w,x,T,S,A,E,k,I,P,L,j,O,U,_;return B(function(B){switch(B.g){case 1:for(n=[],r=(i=v(t.Z())).next();!r.done;r=i.next()){var F;o=(a=new e7(r.value)).g,t.Zc&&(0<=t.Sa&&o.add("_HLS_msn",String(t.Sa)),0<=t.Ta&&o.add("_HLS_part",String(t.Ta))),t.$c&&o.add("_HLS_skip","YES"),th(F=o),F.wc&&tn(a,o),n.push(a.toString())}return D(B,2),C(B,uh(e,n,!0).promise,4);case 4:s=B.h,R(B,3);break;case 2:throw u=N(B),e.h&&e.h.disableStream(t.stream),u;case 3:if(!t.stream.segmentIndex)return B.return();if(1!=(l=sN(e.ya,s.data)).type)throw new tf(2,4,4017);if((c=s.uri)==s.originalUri||t.Z().includes(c)||t.If.push(c),d=sY(e,sw(l.g,"EXT-X-DEFINE"),c),h=t.stream,f=sX(e,t),e.g.hls.restrictedManifestParsing){B.s(5);break}return C(B,ue(e,l,h.mimeType,t.Z,d),6);case 6:g=(p=B.h).keyIds,m=p.drmInfos,function(e,t){return e.size===t.size&&[].concat(y(e)).every(function(e){return t.has(e)})}(h.keyIds,g)||(h.keyIds=g,h.drmInfos=m,e.h.newDrmInfo(h));case 5:for(w=(b=us(e,l,f,d,t.Z,t.type)).segments,(x=b.bandwidth)&&(h.bandwidth=x),T=sF(h),A=(S=v(w)).next();!A.done;A=S.next())(E=A.value).ba&&(E.ba.hc=T);h.segmentIndex.Ic(w,e.l.cb()),w.length&&(k=sS(l.g,"EXT-X-MEDIA-SEQUENCE",0),P=(I=sT(l.g,"EXT-X-SKIP"))?Number(sm(I,"SKIPPED-SEGMENTS")):0,j=(L=s7(k,w)).Sa,O=L.Ta,t.Sa=j+P,t.Ta=O,U=f.get(k),h.segmentIndex.za(U)),(_=aT(h.segmentIndex))&&(t.Qb=_.startTime,t.pb=w[w.length-1].endTime),sT(l.g,"EXT-X-ENDLIST")&&(t.Bc=!0),un(e,l),uo(e,l.g,h.type,d,t.Z),M(B)}})}(d,a));return C(h,Promise.all(e),2)}for(d.m.manifestDownloadTimeSeconds=NaN,d.m.manifestParseTimeSeconds=NaN,s3(d,n.map(function(e){return e.stream})),o=n.some(function(e){return 0==e.Bc}),n.length&&!o&&(ug(d,uk.fg),s=n.map(function(e){return e.pb}),d.l.gb(Math.min.apply(Math,y(s))),d.h.updateDuration()),o&&sz(d),l=(u=v(n)).next();!l.done;l=u.next())(c=l.value).stream.segmentIndex&&!aT(c.stream.segmentIndex)&&d.h.disableStream(c.stream);M(h)})},b.onExpirationUpdated=function(){},b.onInitialVariantChosen=function(){},b.banLocation=function(e){this.j&&this.j.banLocation(e)},b.setMediaElement=function(e){this.V=e},q("shaka.hls.HlsParser",sK);var ub={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},uw={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},ux=new Set(["video/mp2t"].concat(y(nT))),uT={"com.apple.streamingkeydelivery":function(e,t){if("video/mp2t"==t)throw new tf(2,4,4040);if(tK())throw new tf(2,4,4041);if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t=sv(e,"METHOD")))return null;var n="cenc";return"SAMPLE-AES"==t&&(n="cbcs"),nt("com.apple.fps",n,[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}],sv(e,"URI"))},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(e){var t=sv(e,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t))return null;var n="cenc";return"SAMPLE-AES"==t&&(n="cbcs"),n=nt("com.widevine.alpha",n,[{initDataType:"cenc",initData:t=eT((t=sG((t=sv(e,"URI")).split("?")[0])).data)}]),(e=sm(e,"KEYID"))&&(n.keyIds=new Set([e.toLowerCase().substr(2)])),n},"com.microsoft.playready":function(e){var t=sv(e,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t))return null;var n="cenc";return"SAMPLE-AES"==t&&(n="cbcs"),e=eT((e=sG((e=sv(e,"URI")).split("?")[0])).data),nt("com.microsoft.playready",n,[{initDataType:"cenc",initData:e=rg(e,t=new
1Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),new Set,0)}])}},uS="VOD",uA="EVENT",uE="LIVE",uk={fg:uS};function uI(e,t,n){this.g=null,this.o=-1,this.l=e,this.i=t,this.m=n,this.j=!1;e:{if("u"<typeof libDPIModule&&et("Could not find LCEVC Library dependencies on this page"),"u">typeof LCEVCdec)this.h=LCEVCdec;else if("u">typeof LcevcDil)this.h=LcevcDil,this.j=!0,eh("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{et("Could not find LCEVC Library on this page"),e=!1;break e}void 0===this.h.SupportObject?(et("Could not find LCEVC Library on this page"),e=!1):(this.h.SupportObject.SupportStatus||et(this.h.SupportObject.SupportError),e=void 0!==this.h&&"u">typeof libDPIModule&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}e&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}function uC(e){e.g&&e.i.classList.add("shaka-hidden")}function uM(e,t,n){var i=0,r=-1;switch(t.mimeType){case"video/webm":i=1;break;case"video/mp4":i=2}switch(n){case"DASH":r=1;break;case"HLS":r=0}e.g&&(e.o=t.id,e.g.setLevelSwitching(t.id,!0),e.g.setContainerFormat(i),e.j||e.g.setStreamingFormat(r))}function uD(e,t,n,i){for(n=void 0===n||n,i=void 0!==i&&i,this.h=e,this.g=new Set([e]),t=(e=v(t=t||[])).next();!t.done;t=e.next())this.add(t.value,n,i)}function uR(e,t,n,i){var r;if(!(r=!!e.audio!=!!t.audio||!!e.video!=!!t.video||e.language!=t.language)&&(r=e.audio&&t.audio)){r=e.audio;var a=t.audio;r=!!((!r.channelsCount||!a.channelsCount||2<r.channelsCount||2<a.channelsCount)&&r.channelsCount!=a.channelsCount||r.spatialAudio!==a.spatialAudio||n&&!uN(r,a)||!uP(r.roles,a.roles)||i&&r.groupId!==a.groupId)}return!(i=r)&&(i=e.video&&t.video)&&(e=e.video,t=t.video,i=!((!n||uN(e,t))&&uP(e.roles,t.roles))),!i}function uN(e,t){if(e.mimeType!=t.mimeType||(e=e.codecs.split(",").map(function(e){return nm(e)}),t=t.codecs.split(",").map(function(e){return nm(e)}),e.length!=t.length))return!1;e.sort(),t.sort();for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function uP(e,t){if(e=new Set(e),t=new Set(t),e.delete("main"),t.delete("main"),e.size!=t.size)return!1;e=v(e);for(var n=e.next();!n.done;n=e.next())if(!t.has(n.value))return!1;return!0}function uL(){this.g=uU,this.i=(new Map).set(uU,2).set(uO,1),this.h=0}function uj(e,t,n){e.i.set(uU,n).set(uO,t)}aq["application/x-mpegurl"]=function(){return new sK},aq["application/vnd.apple.mpegurl"]=function(){return new sK},uI.prototype.release=function(){this.g&&(this.g.close(),this.g=null)},q("shaka.lcevc.Dec",uI),uI.prototype.release=uI.prototype.release,uD.prototype.add=function(e,t,n){return!!uR(this.h,e,void 0===t||t,void 0!==n&&n)&&(this.g.add(e),!0)},uD.prototype.values=function(){return this.g.values()};var uO=0,uU=1;function u_(e,t,n){0!=(t=(e=eA(e,t)).getUint32(0))&&(1==t?(e.setUint32(8,n>>32),e.setUint32(12,0|n)):e.setUint32(0,n))}var uB=new tg(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function uF(e){this.g=!1,this.h=new r0,this.i=e}function uH(e,t){if(e.g){if(t instanceof tf&&7003==t.code)throw t;throw new tf(2,7,7003,t)}}function uV(e){for(var t=new Map,n=v(Object.keys(e)),i=n.next();!i.done;i=n.next())i=i.value,t.set(i,e[i]);return t}function uG(e){var t={};return e.forEach(function(e,n){t[n]=e}),t}function uK(e){var t=this;this.C=e,this.H=new Set,this.m=this.u=null,this.ea=!1,this.I=0,this.g=null,this.A=new ea,this.i=new Map,this.R=[],this.B=new Map,this.L=!1,this.l=new r0,this.h=null,this.o=function(n){2==n.severity&&t.l.reject(n),e.onError(n)},this.V=new Map,this.fa=new Map,this.M=new tT(function(){var e,n,i;return n=(e=t).V,void((i=e.fa).clear(),n.forEach(function(e,t){return i.set(t,e)}),(n=Array.from(i.values())).length&&n.every(function(e){return"expired"==e})&&e.o(new tf(2,6,6014)),e.C.Cf(uG(i)))}),this.aa=!1,this.O=[],this.U=!1,this.K=new tT(function(){var e;
1(e=t).i.forEach(function(t,n){var i=t.te,r=n.expiration;isNaN(r)&&(r=1/0),r!=i&&(e.C.onExpirationUpdated(n.sessionId,r),t.te=r)})}),this.l.catch(function(){}),this.j=new uF(function(){var e;return e=t,B(function(t){switch(t.g){case 1:return e.A.release(),e.A=null,e.l.reject(),e.K.stop(),e.K=null,e.M.stop(),e.M=null,C(t,uQ(e),2);case 2:if(!e.m){t.s(3);break}return D(t,4),C(t,e.m.setMediaKeys(null),6);case 6:R(t,5);break;case 4:N(t);case 5:e.m=null;case 3:e.g=null,e.H.clear(),e.u=null,e.B=new Map,e.h=null,e.o=function(){},e.C=null,e.W=!1,e.F=null,M(t)}})}),this.W=!1,this.D=this.F=null}function uX(t,n,i){t.B=new Map,i=v(i);for(var r,a,o,s,u,l,c,d,h,f,p,g,m,y,b,w,x,T,S,A,E=i.next();!E.done;E=i.next())t.B.set(E.value,{initData:null,initDataType:null});for(E=(i=v(t.h.persistentSessionsMetadata)).next();!E.done;E=i.next())E=E.value,t.B.set(E.sessionId,{initData:E.initData,initDataType:E.initDataType});return t.aa=0<t.B.size,r=t,a=n,B(function(t){var n,i,E,k,I,M,P,L,j,O,U,_,F,H,V,G,K,X;if(1==t.g){if(o=0==(n=uV((n=r).h.clearKeys)).size?null:nn(n))for(u=(s=v(a)).next();!u.done;u=s.next())(l=u.value).video&&(l.video.drmInfos=[o]),l.audio&&(l.audio.drmInfos=[o]);for((c=a.some(function(e){return!!e.video&&!!e.video.drmInfos.length||!!e.audio&&!!e.audio.drmInfos.length}))||function(e,t){var n=[];for(t.forEach(function(e,t){n.push({keySystem:t,licenseServerUri:e,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})}),t=(e=v(e)).next();!t.done;t=e.next())(t=t.value).video&&(t.video.drmInfos=n),t.audio&&(t.audio.drmInfos=n)}(a,uV(r.h.servers)),d=new Set,f=(h=v(a)).next();!f.done;f=h.next())for(g=(p=v(uZ(f.value))).next();!g.done;g=p.next())m=g.value,d.add(m);for(b=(y=v(d)).next();!b.done;b=y.next())!function(t,n,i,r){var a=t.keySystem;a&&("org.w3.clearkey"!=a||!t.licenseServerUri)&&(n.size&&(t.licenseServerUri=n=n.get(a)||""),t.keyIds||(t.keyIds=new Set),(i=i.get(a))&&(t.distinctiveIdentifierRequired||(t.distinctiveIdentifierRequired=i.distinctiveIdentifierRequired),t.persistentStateRequired||(t.persistentStateRequired=i.persistentStateRequired),t.videoRobustness||(t.videoRobustness=i.videoRobustness),t.audioRobustness||(t.audioRobustness=i.audioRobustness),t.serverCertificate||(t.serverCertificate=i.serverCertificate),i.sessionType&&(t.sessionType=i.sessionType),t.serverCertificateUri||(t.serverCertificateUri=i.serverCertificateUri)),r[a]&&(t.keySystem=r[a]),e.cast&&e.cast.__platform__&&"com.microsoft.playready"==a&&(t.keySystem="com.chromecast.playready"))}(b.value,uV(r.h.servers),uV(r.h.advanced||{}),r.h.keySystemsMapping);for(w=function(e,t){var n=[];e=v(e);for(var i=e.next();!i.done;i=e.next()){i=i.value;for(var r=v(i[t].split(",")),a=r.next();!a.done;a=r.next()){var o={};n.push(Object.assign({},i,(o[t]=a.value,o)))}}return n},T=(x=v(a)).next();!T.done;T=x.next())(S=T.value).video&&(S.video.drmInfos=w(S.video.drmInfos,"videoRobustness"),S.video.drmInfos=w(S.video.drmInfos,"audioRobustness")),S.audio&&(S.audio.drmInfos=w(S.audio.drmInfos,"videoRobustness"),S.audio.drmInfos=w(S.audio.drmInfos,"audioRobustness"));return C(t,nq(a,r.aa,r.W,r.h.preferredKeySystems),2)}return(uH(r.j),c||Object.keys(r.h.servers).length)?(i=r,E=a,A=B(function(e){switch(e.g){case 1:var t,n,r,a,o,s,u,l,c,d,h,f,p,g,m,y;if(k=new Map,E.length){I=function(e,t,n){for(var i=v(t),r=i.next();!r.done;r=i.next()){r=v(uZ(r.value));for(var a=r.next();!a.done;a=r.next())a=a.value,n.has(a.keySystem)||n.set(a.keySystem,[]),n.get(a.keySystem).push(a)}if(1==n.size&&n.has(""))throw new tf(2,6,6e3);for(r=(e=v(e.h.preferredKeySystems)).next(),i={};!r.done;i={Gf:void 0},r=e.next())for(i.Gf=r.value,a=(r=v(t)).next();!a.done;a=r.next())if(a=a.value.decodingInfos.find(function(e){return function(t){return t.supported&&null!=t.keySystemAccess&&t.keySystemAccess.keySystem==e.Gf}}(i)))return a.keySystemAccess;for(i=(e=v([!0,!1])).next();!i.done;i=e.next())for(i=i.value,a=(r=v(t)).next();!a.done;a=r.next()){a=v(a.value.decodingInfos);for(var o=a.next();!o.done;o=a.next())if((o=o.value).supported&&o.keySystemAccess){var s=n.get(o.keySystemAccess.keySystem);s=v(s);for(var u=s.next();!u.done;u=s.next())if(!!u.value.licenseServerUri==i)return o.keySystemAccess}}return null}(i,E,k),e.s(2);break}return C(e,(t=i,B(function(e){switch(e.g){case 1:if(1==(void 0).size&&(void 0).has(""))throw new tf(2,6,6e3);
1for(a=(r=v((void 0).values())).next();!a.done;a=r.next())0==(o=a.value).audioCapabilities.length&&delete o.audioCapabilities,0==o.videoCapabilities.length&&delete o.videoCapabilities;u=(s=v(t.h.preferredKeySystems)).next();case 2:if(u.done){e.s(4);break}if(l=u.value,!(void 0).has(l)){e.s(3);break}return c=(void 0).get(l),D(e,6),C(e,navigator.requestMediaKeySystemAccess(l,[c]),8);case 8:return n=e.h,e.return(n);case 6:N(e);case 7:uH(t.j);case 3:u=s.next(),e.s(2);break;case 4:h=(d=v([!0,!1])).next();case 9:if(h.done){e.s(11);break}f=h.value,g=(p=v((void 0).keys())).next();case 12:if(g.done){h=d.next(),e.s(9);break}if(m=g.value,(y=(void 0).get(m)).drmInfos.some(function(e){return!!e.licenseServerUri})!=f){e.s(13);break}return D(e,15),C(e,navigator.requestMediaKeySystemAccess(m,[y]),17);case 17:return n=e.h,e.return(n);case 15:N(e);case 16:uH(t.j);case 13:g=p.next(),e.s(12);break;case 11:return e.return(n)}})),3);case 3:I=e.h;case 2:if(!(M=I))throw new tf(2,6,6001);for(uH(i.j),D(e,4),i.H.clear(),L=(P=M.getConfiguration()).audioCapabilities||[],j=P.videoCapabilities||[],U=(O=v(L)).next();!U.done;U=O.next())_=U.value,i.H.add(_.contentType.toLowerCase());for(H=(F=v(j)).next();!H.done;H=F.next())V=H.value,i.H.add(V.contentType.toLowerCase());if(E.length){var b,w,x,T=M.keySystem,S=k.get(M.keySystem),A=[],W=[],q=[],z=[],Y=[],J=new Set,$=new Set;u1(S,A,W,z,q,Y,J,$);var Q=i.aa?"persistent-license":"temporary";for(T={keySystem:T,encryptionScheme:A[0],licenseServerUri:W[0],distinctiveIdentifierRequired:S[0].distinctiveIdentifierRequired,persistentStateRequired:S[0].persistentStateRequired,sessionType:S[0].sessionType||Q,audioRobustness:S[0].audioRobustness||"",videoRobustness:S[0].videoRobustness||"",serverCertificate:z[0],serverCertificateUri:q[0],initData:Y,keyIds:J},0<$.size&&(T.keySystemUris=$),$=(S=v(S)).next();!$.done;$=S.next())($=$.value).distinctiveIdentifierRequired&&(T.distinctiveIdentifierRequired=$.distinctiveIdentifierRequired),$.persistentStateRequired&&(T.persistentStateRequired=$.persistentStateRequired);S=T}else S=M.keySystem,$=(void 0).get(M.keySystem),T=[],A=[],W=[],q=[],z=[],Y=new Set,u1($.drmInfos,T,A,q,W,z,Y),S={keySystem:S,encryptionScheme:T[0],licenseServerUri:A[0],distinctiveIdentifierRequired:"required"==$.distinctiveIdentifier,persistentStateRequired:"required"==$.persistentState,sessionType:$.sessionTypes[0]||"temporary",audioRobustness:($.audioCapabilities?$.audioCapabilities[0].robustness:"")||"",videoRobustness:($.videoCapabilities?$.videoCapabilities[0].robustness:"")||"",serverCertificate:q[0],serverCertificateUri:W[0],initData:z,keyIds:Y};if(i.g=S,!i.g.licenseServerUri)throw new tf(2,6,6012,i.g.keySystem);return C(e,M.createMediaKeys(),6);case 6:if(G=e.h,uH(i.j),i.u=G,!(""!=i.h.minHdcpVersion&&"getStatusForPolicy"in i.u)){e.s(7);break}return D(e,8),C(e,i.u.getStatusForPolicy({minHdcpVersion:i.h.minHdcpVersion}),10);case 10:if("usable"!=e.h)throw new tf(2,6,6018);uH(i.j),R(e,7,4);break;case 8:if((K=N(e,4))instanceof tf)throw K;throw new tf(2,6,6019,K.message);case 7:return i.ea=!0,C(e,(b=i,B(function(e){switch(e.g){case 1:if(!b.u||!b.g)return e.return();if(!b.g.serverCertificateUri||b.g.serverCertificate&&b.g.serverCertificate.length){e.s(2);break}return w=ai([b.g.serverCertificateUri],b.h.retryParameters),D(e,3),C(e,b.C.Rb.request(5,w).promise,5);case 5:x=e.h,b.g.serverCertificate=eT(x.data),R(e,4);break;case 3:throw new tf(2,6,6017,N(e));case 4:if(b.j.g)return e.return();case 2:if(!b.g.serverCertificate||!b.g.serverCertificate.length)return e.return();return D(e,6),C(e,b.u.setServerCertificate(b.g.serverCertificate),8);case 8:R(e,0);break;case 6:throw new tf(2,6,6004,N(e).message)}})),11);case 11:uH(i.j),R(e,0);break;case 4:if(X=N(e),uH(i.j,X),i.g=null,i.H.clear(),X instanceof tf)throw X;throw new tf(2,6,6002,X.message)}}),t.return(c?A:A.catch(function(){}))):(r.ea=!0,t.return(Promise.resolve()))})}function uW(e){var t;return B(function(n){switch(n.g){case 1:if(e.m.mediaKeys)return n.return();if(!e.F){n.s(2);break}return C(n,e.F,3);case 3:return uH(e.j),n.return();case 2:return D(n,4),e.F=e.m.setMediaKeys(e.u),C(n,e.F,6);case 6:R(n,5);break;case 4:t=N(n),e.o(new tf(2,6,6003,t.message));case 5:uH(e.j),M(n)}})}function uq(e,t,n){if(n.length){if(e.h.ignoreDuplicateInitData){var i=e.i.values();i=v(i);for(var r=i.next();!r.done;r=i.next())if(eb(n,r.value.initData))return}
1e.L=!0,0<e.i.size&&u0(e)&&(e.l.resolve(),e.L=!1,e.l=new r0,e.l.catch(function(){})),function(e,t,n,i){try{var r=e.u.createSession(i)}catch(t){e.o(new tf(2,6,6005,t.message));return}e.A.J(r,"message",function(t){e.m&&e.h.delayLicenseRequestUntilPlayed&&e.m.paused&&!e.U?e.O.push(t):uJ(e,t)}),e.A.J(r,"keystatuseschange",function(t){return u$(e,t)}),e.i.set(r,{initData:n,initDataType:t,loaded:!1,te:1/0,hb:null,type:i});try{n=e.h.initDataTransform(n,t,e.g)}catch(n){t=n,n instanceof tf||(t=new tf(2,6,6016,n)),e.o(t);return}e.h.logLicenseExchange&&t5(n),r.generateRequest(t,n).catch(function(t){if(!e.j.g){e.i.delete(r);var n=t.errorCode;if(n&&n.systemCode){var i=n.systemCode;0>i&&(i+=0x100000000),i="0x"+i.toString(16)}e.o(new tf(2,6,6006,t.message,t,i))}})}(e,t,n,e.g.sessionType)}}function uz(e){u0(e)&&e.l.resolve()}function uY(e,t){new tT(function(){t.loaded=!0,uz(e)}).da(u4)}function uJ(e,t){var n,i,r,a,o,s,u,l,c,d,h,f,p;B(function(g){switch(g.g){case 1:if(n=t.target,e.h.logLicenseExchange&&t5(t.message),i=e.i.get(n),r=e.g.licenseServerUri,a=e.h.advanced[e.g.keySystem],"individualization-request"==t.messageType&&a&&a.individualizationServer&&(r=a.individualizationServer),(o=ai([r],e.h.retryParameters)).body=t.message,o.method="POST",o.licenseRequestType=t.messageType,o.sessionId=n.sessionId,o.drmInfo=e.g,i&&(o.initData=i.initData,o.initDataType=i.initDataType),a&&a.headers)for(s in a.headers)o.headers[s]=a.headers[s];if(ty(e.g.keySystem)){var m=tJ(o.body,!0,!0);if(m.includes("PlayReadyKeyMessage")){var y=rA(m=rv(m,"PlayReadyKeyMessage"),"HttpHeader");y=v(y);for(var b=y.next();!b.done;b=y.next()){var w=b.value;b=rA(w,"name")[0],w=rA(w,"value")[0],o.headers[rT(b)]=rT(w)}o.body=t6(rT(m=rA(m,"Challenge")[0]))}else o.headers["Content-Type"]="text/xml; charset=utf-8"}return u=Date.now(),D(g,2),c=e.C.Rb.request(2,o),e.R.push(c),C(g,c.promise,4);case 4:l=g.h,eL(e.R,c),R(g,3);break;case 2:if(d=N(g),e.j.g)return g.return();return h=new tf(2,6,6007,d),1==e.i.size?(e.o(h),i&&i.hb&&i.hb.reject(h)):(i&&i.hb&&i.hb.reject(h),e.i.delete(n),u0(e)&&(e.l.resolve(),e.M.da(.1))),g.return();case 3:if(e.j.g)return g.return();return e.I+=(Date.now()-u)/1e3,e.h.logLicenseExchange&&t5(l.data),D(g,5),C(g,n.update(l.data),7);case 7:R(g,6);break;case 5:return f=new tf(2,6,6008,N(g).message),e.o(f),i&&i.hb&&i.hb.reject(f),g.return();case 6:if(e.j.g)return g.return();p=new r8("drmsessionupdate"),e.C.onEvent(p),i&&(i.hb&&i.hb.resolve(),uY(e,i)),M(g)}})}function u$(e,t){t=t.target;var n=e.i.get(t),i=!1;t.keyStatuses.forEach(function(t,r){if("string"==typeof r){var a=r;r=t,t=a}if(ty(e.g.keySystem)&&16==r.byteLength&&(tE()||tj())){var o=(a=eA(r)).getUint32(0,!0),s=a.getUint16(4,!0),u=a.getUint16(6,!0);a.setUint32(0,o,!1),a.setUint16(4,s,!1),a.setUint16(6,u,!1)}"status-pending"!=t&&(n.loaded=!0),"expired"==t&&(i=!0),r=t7(r).slice(0,32),e.V.set(r,t)});var r=t.expiration-Date.now();(0>r||i&&1e3>r)&&n&&!n.hb&&(e.i.delete(t),t.close().catch(function(){})),u0(e)&&(e.l.resolve(),e.M.da(u3))}function uQ(e){var t;return B(function(n){return t=Array.from(e.i.entries()),e.i.clear(),C(n,Promise.all(t.map(function(t){var n=(t=v(t)).next().value,i=t.next().value;return B(function(t){if(1==t.g){var r,a;return D(t,2),e.B.has(n.sessionId)||"persistent-license"!==i.type||e.h.persistentSessionOnlinePlayback?C(t,(r=n,B(function(e){return 1==e.g?(a=new Promise(function(e,t){new tT(t).da(u2)}),D(e,2),C(e,Promise.race([Promise.all([r.close(),r.closed]),a]),4)):2!=e.g?R(e,0):void(N(e),M(e))})),5):C(t,n.remove(),5)}if(2!=t.g)return R(t,0);N(t),M(t)})})),0)})}function uZ(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])}function u0(e){var t,n=e=e.i.values();n=v(n);for(var i=n.next();!i.done;i=n.next()){if(!(t=i.value).loaded)return!1}return!0}function u1(t,n,i,r,a,o,s,u){var l=[];t=v(t);for(var c=t.next(),d={};!c.done;d={pa:void 0},c=t.next()){if(d.pa=c.value,n.includes(d.pa.encryptionScheme)||n.push(d.pa.encryptionScheme),"org.w3.clearkey"==d.pa.keySystem&&d.pa.licenseServerUri.startsWith("data:application/json;base64,")?l.includes(d.pa.licenseServerUri)||l.push(d.pa.licenseServerUri):i.includes(d.pa.licenseServerUri)||i.push(d.pa.licenseServerUri),a.includes(d.pa.serverCertificateUri)||a.push(d.pa.serverCertificateUri),d.pa.serverCertificate&&(r.some(function(e){return function(t){return eb(t,e.pa.serverCertificate)}}(d))||r.push(d.pa.serverCertificate)),d.pa.initData){c=v(d.pa.initData);for(var h=c.next(),f={};!h.done;f={je:void 0},h=c.next())f.je=h.value,o.some(function(e){return function(t){var n=e.je;return!!t.keyId&&t.keyId==n.keyId||t.initDataType==n.initDataType&&eb(t.initData,n.initData)}}(f))||o.push(f.je)}if(d.pa.keyIds)for(h=(c=v(d.pa.keyIds)).next();!h.done;h=c.next())s.add(h.value);if(d.pa.keySystemUris&&u)for(c=(d=v(d.pa.keySystemUris)).next();!c.done;c=d.next())u.add(c.value)}if(1==l.length)i.push(l[0]);else if(0<l.length){for(n=[],r=(l=v(l)).next();!r.done;r=l.next())r=JSON.parse(r=e.atob(r.value.split("data:application/json;base64,").pop())),n.push.apply(n,y(r.keys));l=JSON.stringify({keys:n}),i.push("data:application/json;base64,"+e.btoa(l))}}uF.prototype.destroy=function(){var e=this;return this.g?this.h:(this.g=!0,this.i().then(function(){e.h.resolve()},function(){e.h.resolve()}))},(b=uK.prototype).destroy=function(){return this.j.destroy()},b.configure=function(e){this.h=e,this.K&&this.K.Ja(this.h.updateExpirationTime)},b.vb=function(e){var t=this;return B(function(n){var i,r,a,o;if(1==n.g)return t.m===e?n.return():t.u?(t.m=e,t.A.sa(t.m,"play",function(){for(var e=v(t.O),n=e.next();!n.done;n=e.next())uJ(t,n.value);t.U=!0,t.O=[]}),"webkitCurrentPlaybackTargetIsWireless"in t.m&&t.A.J(t.m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return uQ(t)}),t.D=t.g&&t.g.initData.find(function(e){return 0<e.initData.length})||null,t.D||"com.apple.fps"!==t.g.keySystem||t.B.size?C(n,uW(t),2):n.s(2)):(t.A.sa(e,"encrypted",function(){t.o(new tf(2,6,6010))}),n.return());(i=t,B(function(e){if(1==e.g)return i.B.size?(i.B.forEach(function(e,t){var n,r,a,o,s,u,l,c,d,h;n=i,r=t,a=e,B(function(e){switch(e.g){case 1:try{o=n.u.createSession("persistent-license")}catch(t){return s=new tf(2,6,6005,t.message),n.o(s),e.return(Promise.reject(s))}return n.A.J(o,"message",function(e){n.m&&n.h.delayLicenseRequestUntilPlayed&&n.m.paused&&!n.U?n.O.push(e):uJ(n,e)}),n.A.J(o,"keystatuseschange",function(e){return u$(n,e)}),u={initData:a.initData,initDataType:a.initDataType,loaded:!1,te:1/0,hb:null,type:"persistent-license"},n.i.set(o,u),D(e,2),C(e,o.load(r),4);case 4:return l=e.h,uH(n.j),l||(n.i.delete(o),c=n.h.persistentSessionOnlinePlayback?1:2,n.o(new tf(c,6,6013)),u.loaded=!0),uY(n,u),uz(n),e.return(o);case 2:d=N(e),uH(n.j,d),n.i.delete(o),h=n.h.persistentSessionOnlinePlayback?1:2,n.o(new tf(h,6,6005,d.message)),u.loaded=!0,uz(n);case 3:return e.return(Promise.resolve())}})}),C(e,i.l,3)):e.s(2);if(2!=e.g){if(0<(i.g&&i.g.keyIds||new Set([])).size&&function(e){for(var t=v(e.g&&e.g.keyIds||new Set([])),n=t.next();!n.done;n=t.next())if("usable"!==e.V.get(n.value))return!1;return!0}(i))return e.return(i.l);i.L=!1,i.l=new r0,i.l.catch(function(){})}for(a=(r=v((i.g?i.g.initData:[])||[])).next();!a.done;a=r.next())uq(i,(o=a.value).initDataType,o.initData);return u0(i)&&i.l.resolve(),e.return(i.l)})).catch(function(){}),t.D||t.B.size||t.h.parseInbandPsshEnabled||t.A.J(t.m,"encrypted",function(e){var n,i;return n=t,i=e,B(function(e){if(1==e.g)return C(e,uW(n),2);uq(n,i.initDataType,eT(i.initData)),M(e)})}),M(n)})},b.$d=function(){var e=this,t=this.i.keys();return Array.from(t=function(e,t){var n=[];e=v(e);for(var i=e.next();!i.done;i=e.next())n.push(t(i.value));return n}(t,function(t){var n=e.i.get(t);return{sessionId:t.sessionId,sessionType:n.type,initData:n.initData,initDataType:n.initDataType}}))},b.ae=function(){var e=1/0,t=this.i.keys();t=v(t);for(var n=t.next();!n.done;n=t.next())isNaN((n=n.value).expiration)||(e=Math.min(e,n.expiration));return e},b.hd=function(){return uG(this.fa)};var u2=1,u4=5,u3=.5;function u5(e,t,n,i,r,a,o,s,u,l,c){c=void 0===c?[]:c,this.A=e,this.B=t,this.g=n,this.l=i,this.C=r,this.o=a,this.j=void 0===o?"":o,this.m=void 0===s?"":s,this.u=void 0===u?"reload":u,this.h=void 0!==l&&l,this.i=c}function u6(e){return e.reduce(function(e,t){return(e.audio.bandwidth||e.bandwidth)>(t.audio.bandwidth||t.bandwidth)?e:t})}function u8(e){var t=[],n=0;e=v(e);for(var i=e.next();!i.done;i=e.next()){var r=(i=i.value).video.bandwidth||0;r>n?(n=r,t=[i]):r===n&&t.push(i)}return t}function u7(e,t){return e.filter(function(e){return!e.audio||!e.audio.channelsCount||e.audio.channelsCount==t})}function u9(e,t,n){t=void 0===t?"reload":t,n=void 0!==n&&n,this.i=e,this.h=t,this.g=n,this.j=new u5(e.language,"",e.audio&&e.audio.channelsCount?e.audio.channelsCount:0,"",!1,"","","",t,n
1)}function le(e){return 1==e.length&&1e-4>e.end(0)-e.start(0)}function lt(e){return!e||le(e)?null:e.length?e.end(e.length-1):null}function ln(e,t){return!(!e||!e.length||le(e)||t>e.end(e.length-1))&&t>=e.start(0)}function li(e,t){if(!e||!e.length||le(e))return 0;var n=0;e=v(lr(e));for(var i=e.next();!i.done;i=e.next()){var r=i.value;i=r.start,(r=r.end)>t&&(n+=r-Math.max(i,t))}return n}function lr(e){if(!e)return[];for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}function la(e,t,n){this.j=n,this.l=e,this.u=ls(e),this.g=e.g.currentTime,this.m=Date.now()/1e3,this.h=!1,this.o=0,this.A=t,this.i=function(){}}function lo(e){this.g=e}function ls(e){if(e.g.paused||0==e.g.playbackRate||0==e.g.buffered.length)var t=!1;else e:{t=e.g.currentTime,e=v(lr(e.g.buffered));for(var n=e.next();!n.done;n=e.next())if(!(t<(n=n.value).start-.1||t>n.end-.5)){t=!0;break e}t=!1}return t}function lu(e,t,n,i,r){var a=this;this.A=r,this.g=e,this.C=t,this.o=n,this.m=new ea,this.l=this.B=!1,this.F=e.readyState,this.D=this.i=0,this.h=i,this.u=!1,this.m.J(e,"waiting",function(){return ll(a)}),this.j=new tT(function(){ll(a)})}function ll(e){if(0!=e.g.readyState&&e.B){if(e.g.seeking){if(!e.l)return}else e.l=!1;if(!e.g.paused||e.g.currentTime==e.i&&(e.g.autoplay||e.g.currentTime!=e.i)){if(e.g.readyState!=e.F&&(e.F=e.g.readyState),!(r=!e.h)){var t,n,i,r=e.h,a=r.l,o=ls(a),s=a.g.currentTime,u=Date.now()/1e3;(r.g!=s||r.u!=o)&&(r.m=u,r.g=s,r.u=o,r.h=!1),(o=(s=u-r.m)>=r.A&&o&&!r.h)&&(r.i(r.g,s),r.h=!0,r.g=a.g.currentTime,r.o++,r.j(new r8("stalldetected"))),r=!o}r&&(r=e.g.currentTime,t=a=e.g.buffered,n=r,i=e.o.gapDetectionThreshold,null!=(o=!t||!t.length||le(t)?null:0<=(t=lr(t).findIndex(function(e,t,r){return e.start>n&&(0==t||r[t-1].end-n<=i)}))?t:null)&&(0!=o||e.u))&&(s=a.start(o),(navigator.userAgent.match(/Edge\//)||tk()||tI())&&(s=Math.ceil(100*(s+e.o.gapPadding))/100),s>=e.C.bb()||.001>s-r||(0!=o&&a.end(o-1),e.g.currentTime=s,r==e.i&&(e.i=s),e.D++,e.A(new r8("gapjumped"))))}}}function lc(e,t,n){this.g=e,this.i=t,this.h=n}function ld(e,t){return B(function(n){if(1==n.g){var i,r,a;return C(n,(i=e.h,r=t,a=void 0===(a=e.g.drm.preferredKeySystems)?[]:a,B(function(e){var t,n,o,s,u,l,c,d,h,f,p,g,m,y,b;return 1==e.g?C(e,(t=i,n=r,o=0<r.offlineSessionIds.length,s=a,B(function(e){if(1==e.g)return tk()&&function(e){var t={dvav:"avc3",dva1:"avc1",dvhe:"hev1",dvh1:"hvc1",dvc1:"vvc1",dvi1:"vvi1"},n=new Set;e=v(e);for(var i=e.next();!i.done;i=e.next())(i=i.value).video&&n.add(i.video);for(e=(n=v(n)).next();!e.done;e=n.next()){e=e.value,i=v(Object.keys(t));for(var r=i.next();!r.done;r=i.next())if(r=r.value,e.codecs.includes(r)){e.codecs=e.codecs.replace(r,t[r]);break}}}(n.variants),C(e,nq(n.variants,o,!1,s),2);u=null,t&&(l=t.g)&&(u=l.keySystem),n.variants=n.variants.filter(function(e){var t=function(e,t){if(!e.decodingInfos.some(function(e){return!!e.supported&&(!t||!(e=e.keySystemAccess)||e.keySystem==t)}))return!1;var n=tk(),i=tV("Firefox")&&tH(),r=e.video,a=r&&r.width||0,o=r&&r.height||0;return!(n&&r&&(1920<a||1080<o)&&(r.codecs.includes("avc1.")||r.codecs.includes("avc3.")))&&(e=e.audio,!(i&&e&&e.encrypted&&e.codecs.toLowerCase().includes("opus")))}(e,u);if(!t){var n=[];e.audio&&n.push(n7(e.audio)),e.video&&n.push(n7(e.video))}return t}),M(e)})),2):((c=r).textStreams=c.textStreams.filter(function(e){return nA(e=nd(e.mimeType,e.codecs))}),C(e,(d=r,B(function(e){switch(e.g){case 1:h=[],p=(f=v(d.imageStreams)).next();case 2:var t;if(p.done){e.s(4);break}if("application/mp4"==(m=(g=p.value).mimeType)&&"mjpg"==g.codecs&&(m="image/jpg"),it.has(m)){e.s(5);break}if(!(y=ii.get(m))){it.set(m,!1),e.s(5);break}return C(e,(t=y,new Promise(function(e){var n=new Image;n.src=t,"decode"in n?n.decode().then(function(){e(!0)}).catch(function(){e(!1)}):n.onload=n.onerror=function(){e(2===n.height)}})),7);case 7:b=e.h,it.set(m,b);case 5:it.get(m)&&h.push(g),p=f.next(),e.s(2);break;case 4:d.imageStreams=h,M(e)}})),0))})),2)}if(e.g.streaming.dontChooseCodecs||function(e,t,n,i){var r=e.variants;if((t.length||n.length)&&(r=nG(r,t,n)),i.length){for(t=new er,n=(r=v(r)).next();!n.done;n=r.next())n=n.value,t.push(String(n.video.width||0),n);var a=[];t.forEach(function(e,t){e=0;var n=[];t=v(t);for(var r=t.next(),o={};!r.done;o={Od:void 0},r=t.next())o.Od=r.value,(r=i.filter(function(e){return function(t){return e.Od.decodingInfos[0][t]}}(o)).length)>e?(e=r,n=[o.Od]):r==e&&n.push(o.Od);a.push.apply(a,y(n))}),r=a}n=new Set,t=new Set,r=v(r);
1for(var o=r.next();!o.done;o=r.next())(o=o.value).audio&&n.add(o.audio),o.video&&t.add(o.video);n=Array.from(n).sort(function(e,t){return e.bandwidth-t.bandwidth});var s=[];for(r=new Map,o=(n=v(n)).next();!o.done;o=n.next()){var u=(o=o.value).language+(o.channelsCount||0)+(o.audioSamplingRate||0)+o.roles.join(",")+o.label+o.groupId+o.fastSwitching,l=r.get(u)||[];if(l.length){var c=l[l.length-1],d=ng(c.codecs),h=ng(o.codecs);d!=h||o.bandwidth&&c.bandwidth&&!(o.bandwidth>c.bandwidth)||(l.push(o),s.push(o.id))}else l.push(o),s.push(o.id);r.set(u,l)}n=Array.from(t).sort(function(e,t){return e.bandwidth&&t.bandwidth?e.bandwidth-t.bandwidth:e.width-t.width}),t=el();var f=[];for(r=new Map,o=(n=v(n)).next();!o.done;o=n.next()){if(u=Math.round((o=o.value).frameRate||0)+(o.hdr||"")+o.fastSwitching,(l=r.get(u)||[]).length){if(c=l[l.length-1],!t&&(d=ng(c.codecs))!==(h=ng(o.codecs)))continue;o.width>c.width||o.height>c.height?(l.push(o),f.push(o.id)):o.width==c.width&&o.height==c.height&&((d=ng(c.codecs))!=(h=ng(o.codecs))||o.bandwidth&&c.bandwidth&&!(o.bandwidth>c.bandwidth)||(l.push(o),f.push(o.id)))}else l.push(o),f.push(o.id);r.set(u,l)}e.variants=e.variants.filter(function(e){var t=e.audio;return e=e.video,(!t||!!s.includes(t.id))&&(!e||!!f.includes(e.id))})}(t,e.g.preferredVideoCodecs,e.g.preferredAudioCodecs,e.g.preferredDecodingAttributes),!t.variants.some(n3))throw new tf(2,4,4032);return n.return(lh(e,t))})}function lh(e,t){var n=nX(t.variants,e.g.restrictions,e.i);if(t){var i=e.h?e.h.g:null;if(i&&e.h.u)for(var r=v(t.variants),a=r.next();!a.done;a=r.next())a=a.value,lf(e,i.keySystem,a.video),lf(e,i.keySystem,a.audio);lp(e,t)}return n}function lf(e,t,n){if(n){n=v(n.drmInfos);for(var i=n.next();!i.done;i=n.next())if((i=i.value).keySystem==t){i=v(i.initData||[]);for(var r=i.next();!r.done;r=i.next())r=r.value,uq(e.h,r.initDataType,r.initData)}}}function lp(e,t){var n=lg(e),i=Object.keys(e=e.h?e.h.hd():{});i=i.length&&"00"==i[0];var r=!1,a=!1,o=new Set,s=new Set;t=v(t.variants);for(var u=t.next();!u.done;u=t.next()){u=u.value;var l=[];u.audio&&l.push(u.audio),u.video&&l.push(u.video),l=v(l);for(var c=l.next();!c.done;c=l.next())if((c=c.value).keyIds.size){c=v(c.keyIds);for(var d=c.next();!d.done;d=c.next()){d=d.value;var h=e[i?"00":d];h?n.includes(h)&&s.add(h):o.add(d)}}u.allowedByApplication?u.allowedByKeySystem&&(r=!0):a=!0}if(!r)throw new tf(2,4,4012,n={hasAppRestrictions:a,missingKeys:Array.from(o),restrictedKeyStatuses:Array.from(s)})}function lg(e){return[].concat(y(lm),y(e.g.drm.additionalRestrictedStatuses))}u5.prototype.create=function(t,n){n=void 0===n?{min:0,max:1/0}:n;var i,r,a,o,s,u,l,c,d,h,f,p,g,m,y,b,w,x,T,S,A,E,k,I="smooth"==this.u&&el(),C=[];i=t,r=this.A,C=(a=n_(r=nL(r),i.map(function(e){return nU(e)})))?i.filter(function(e){return a==nU(e)}):[];var M=t.filter(function(e){return e.primary});return(C=C.length?C:M.length?M:t,M=n.min||0,A=C,E=n.max||1/0,k=M,t=(n=A.filter(function(e){return e.bandwidth<=E&&e.bandwidth>=k})).length!==C.length,n.length)?(C=n,M=this.g,n=this.i,t&&(o=C,s=this.i,u=this.g,o=u8(o),l=s||[],s||(s=u6(o))&&s.audio.codecs&&(l=[s.audio.codecs]),s=nG(o,[],l),void 0!==u&&0<(u=u7(s,u)).length&&(s=u),t=0<s.length?s[0]:void 0)&&(n=[t.audio.codecs],M=t.audio.channelsCount),(c=C,h="main"===(d=this.B),t=c.filter(function(e){if(!e.audio)return!1;var t=0==e.audio.roles.length;return d?e.audio.roles.includes(d)||h&&t:t})).length&&(C=t),M&&(t=u7(C,this.g)).length&&(C=t),(f=C,p=this.C,t=f.filter(function(e){return!e.audio||e.audio.spatialAudio==p})).length&&(C=t),n&&(n=nG(C,[],n)).length&&(C=n),this.o&&(g=C,m=this.o,n=g.filter(function(e){return!e.video||!e.video.videoLayout||e.video.videoLayout==m})).length&&(C=n),this.l&&(y=C,"AUTO"==(b=this.l)&&(b=e.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR"),n=y.filter(function(e){return!e.video||!e.video.hdr||e.video.hdr==b})).length&&(C=n),this.j&&(w=C,x=this.j,n=w.filter(function(e){return!!e.audio&&!!e.audio.label&&e.audio.label.toLowerCase()==x.toLowerCase()})).length&&(C=n),this.m&&(T=C,S=this.m,n=T.filter(function(e){return!!e.video&&!!e.video.label&&e.video.label.toLowerCase()==S.toLowerCase()})).length&&(C=n),0<(n=function(e){if(!e||0===e.length||!e[0].audio||!e[0].audio.groupId)return e;var t=u6(u8(e));return t&&t.audio&&void 0!==t.audio.groupId?e.filter(function(e){return e.audio.groupId===t.audio.groupId}):e}(C)).length&&(C=n),new uD(C[0],C,!I,this.h)):(C=function(e,t){var n=void 0;e=v(e);for(var i=e.next();!i.done;i=e.next())(i=i.value).bandwidth>=t&&(void 0===n||i.bandwidth<n.bandwidth)&&(n=i);return n}(C,M))?new uD(C,[C],!I,this.h):new uD},u9.prototype.create=function(e,t){var n=this,i="smooth"==this.h&&el(),r=e.filter(function(e){return uR(n.i,e,!i,n.g)});return r.length?new uD(r[0],r,!i,this.g):this.j.create(e,t)},la.prototype.release=function(){this.j=this.l=null,this.i=function(){}},lu.prototype.release=function(){this.m&&(this.m.release(),this.m=null),null!=this.j&&(this.j.stop(),this.j=null),this.h&&(this.h.release(),this.h=null),this.g=this.C=this.A=null},lu.prototype.ue=function(){this.u=!0,ll(this)};var lm=["output-restricted","internal-error"];function lv(e,t,n,i){var r=this;this.i=e,this.W=n,this.B=null,this.D=t,this.h={},this.H={},this.wa={},this.g=null,this.ea=!1,this.U=i||null,this.m={},this.o=new ea,this.j={},this.F=null,this.K=new r0,this.M="",this.oa=!1,this.l=ly(this,this.K),this.A=!1,this.I=new uF(function(){var e,t,n,i,a,o,s,u;return e=r,B(function(r){if(1==r.g){for(n in t=[],e.m)for(a=(i=e.m[n])[0],e.m[n]=i.slice(0,1),a&&t.push(a.p.catch(nC)),s=(o=v(i.slice(1))).next();!s.done;s=o.next())s.value.p.reject(new tf(2,7,7003,void 0));return e.g&&t.push(e.g.destroy()),e.D&&t.push(e.D.destroy()),C(r,Promise.all(t),2)}for(u in e.j)e.j[u].destroy();e.o&&(e.o.release(),e.o=null),e.i&&(e.i.removeAttribute("src"),e.i.load(),e.i=null),e.B=null,e.l=null,e.g=null,e.D=null,e.h={},e.j={},e.F=null,e.m={},e.U=null,e.L=null,e.W=null,M(r)})}),this.C=!1,this.V="UNKNOWN",this.va=this.ya=!1,this.xa=new r0,this.u=!1,this.qa=!0,this.ka=this.O=this.la=this.R=this.L=this.aa=null,this.fa=new r0}
1function ly(t,n){if(e.ManagedMediaSource){t.i.disableRemotePlayback=!0;var i=new ManagedMediaSource;return t.o.J(i,"startstreaming",function(){t.qa=!0}),t.o.J(i,"endstreaming",function(){t.qa=!1}),t.o.sa(i,"sourceopen",function(){URL.revokeObjectURL(t.M),n.resolve()}),t.o.sa(t.i,"playing",function(){t.oa=!0}),t.M=lO(i),t.i.src=t.M,i}return i=new MediaSource,t.o.sa(i,"sourceopen",function(){URL.revokeObjectURL(t.M),n.resolve()}),t.o.sa(t.i,"playing",function(){t.oa=!0}),t.M=lO(i),t.i.src=t.M,i}function lb(e,t,n,i){var r,a,o,s,u,l,c,d,h,f,p,g;return B(function(m){switch(m.g){case 1:var y,b,w,x,T,S,A,E,k,I,D,R;return r=ns,a=z,o=Y,C(m,(y=n,b=t,B(function(e){if(1==e.g)return y.createSegmentIndex?C(e,y.createSegmentIndex(),2):e.s(2);if(!y.segmentIndex)return e.return(!1);if(0==y.segmentIndex.getNumReferences())return e.return(!0);for(w=ns,x=new Set,S=(T=v(y.segmentIndex)).next();!S.done;S=T.next())if(E=(A=S.value).mimeType||y.mimeType||"",k=A.codecs||y.codecs||"",(E!=y.mimeType||k!=y.codecs)&&(I=E+":"+k,!x.has(I))){if(x.add(I),b==w.ua){if(!nA(nd(E,k)))return e.return(!1)}else if(b==w.ia?k=nJ(k):b==w.X&&(k=nY(k,E)),D=function(e,t,n){var i=[t];return nx.forEach(function(t,r){var a=e[r];"codecs"==r?nT.includes(e.mimeType)||i.push('codecs="'+n+'"'):a&&i.push(t+'="'+a+'"')}),"PQ"==e.hdr&&i.push('eotf="smpte2084"'),i.join(";")}(y,E,k),R=nh(E,k),!eu(D)&&!e1(R))return e.return(!1)}return e.return(!0)})),2);case 2:if(o.call(a,m.h,"Type negotiation should happen before MediaSourceEngine.init!"),s=nd(n.mimeType,i),t==r.ua){lw(e,s,e.C,n.external),m.s(0);break}if(u=e.B.forceTransmux,(!eu(s)||!e.C&&nT.includes(s))&&(u=!0),l=nh(n.mimeType,i),!u){m.s(4);break}if(c=nr(r.X,(i||"").split(",")),d=nr(r.ia,(i||"").split(",")),!c||!d){m.s(5);break}return e.u=!0,C(m,lb(e,r.X,n,c),6);case 6:return C(m,lb(e,r.ia,n,d),7);case 7:return m.return();case 5:(h=e1(l))&&(f=h(),e.j[t]=f,s=f.convertCodecs(t,l));case 4:p=s+e.B.addExtraFeaturesToSourceBuffer(s),uH(e.I);try{g=e.l.addSourceBuffer(p)}catch(t){throw new tf(2,3,3015,t,"The mediaSource_ status was "+e.l.readyState+" expected 'open'",null)}e.C&&(g.mode=lU),e.o.J(g,"error",function(){var n=e.m[t][0];n.p.reject(new tf(2,3,3014,e.i.error?e.i.error.code:0,n.uri))}),e.o.J(g,"updateend",function(){return lD(e,t)}),e.h[t]=g,e.H[t]=s,e.wa[t]=!!n.drmInfos.length,M(m)}})}function lw(e,t,n,i){e.g||(e.g=new nS(e.D),e.g&&(e.g.A=e.B.modifyCueCallback));var r=e.g;i=i||e.ea,e=e.V,"application/cea-608"==t||"application/cea-708"==t?r.i=null:(r.i=(0,nk[t])(),r.i.setSequenceMode?r.i.setSequenceMode(n):eh("Text parsers w/ setSequenceMode",'Text parsers should have a "setSequenceMode" method!'),r.i.setManifestType?r.i.setManifestType(e):eh("Text parsers w/ setManifestType",'Text parsers should have a "setManifestType" method!'),r.B=i)}function lx(e){return!e.A&&(!e.l||"ended"==e.l.readyState)}function lT(e,t){return e=e.A||!Object.keys(e.h).length?null:t==no?e.g.g:!(e=lA(e,t))||le(e)?null:1==e.length&&0>e.start(0)?0:e.length?e.start(0):null}function lS(e,t){return e.A?null:t==no?e.g.h:lt(lA(e,t))}function lA(e,t){try{return e.h[t].buffered}catch(e){return null}}function lE(e,t,n,i,r,a,o,s,u,l,c){var d,h,f,p,g,m,y,b,w,x,T,S;return o=void 0!==o&&o,s=void 0!==s&&s,u=void 0!==u&&u,l=void 0!==l&&l,B(function(A){var E,k,I,D,R,N,P,L,j,O,U,_,F,H,V,G,K,X,W;switch(A.g){case 1:if(t!=(d=ns).ua){A.s(2);break}if(!e.C){A.s(3);break}return C(A,e.xa,4);case 4:h=A.h,e.g.u=h;case 3:return C(A,(E=e.g,k=n,I=i?i.startTime:null,D=i?i.endTime:null,R=i?i.Z()[0]:null,B(function(e){if(1==e.g)return C(e,Promise.resolve(),2);if(!E.i||!E.j)return e.return();if(null==I||null==D)return E.i.parseInit(eT(k)),e.return();for(N=E.B?I:E.u,P={periodStart:E.u,segmentStart:I,segmentEnd:D,vttOffset:N},O=(j=v(L=E.i.parseMedia(eT(k),P,R))).next();!O.done;O=j.next())U=O.value,E.A(U,R||null,P);_=L.filter(function(e){return e.startTime>=E.l&&e.startTime<E.m}),E.j.append(_),null==E.g&&(E.g=Math.max(I,E.l)),E.h=Math.min(D,E.m),M(e)})),5);case 5:case 8:return A.return();case 2:if(l||!e.u){A.s(6);break}return C(A,lE(e,d.X,n,i,r,a,o,s,u,!0),7);case 7:return C(A,lE(e,d.ia,n,i,r,a,o,s,u,!0),8);case 6:if(!e.h[t])return A.return();if(f=e.h[t].timestampOffset,p=e.H[t],e.j[t]&&(p=e.j[t].getOriginalMimeType()),i&&null!=(g=function(e,t,n,i,r,a){var o=null,s=eT(n);if(nT.includes(r))(a=a7(s)).length&&i&&((t=a.find(function(e){return"com.apple.streaming.transportStreamTimestamp"===e.description}))&&t.data&&(o=Math.round(t.data)/1e3),e.W.onMetadata([{cueTime:i.startTime,data:s,frames:a,dts:i.startTime,pts:i.startTime}],0,i.endTime));else if(r.includes("/mp4")&&i&&0==i.m&&i.ba&&i.ba.timescale){var u=i.ba.timescale;if(!isNaN(u)){var l=0,c=!1;(new iZ).box("moof",i0).box("traf",i0).P("tfdt",function(e){l=rt(e.reader,e.version).baseMediaDecodeTime/u,c=!0,e.parser.stop()}).parse(n,!0),c&&(o=l)}}else!r.includes("/mp4")&&!r.includes("/webm")&&on(s)&&(e.L?e.L.clearData():e.L=new a9,null!=(t=(s=e.L.parse(s)).getStartTime(t))&&(o=t),(s=s.getMetadata()).length)&&e.W.onMetadata(s,a,i?i.endTime:null);return o}(e,t,n,i,p,f))&&(null==e.R&&t==d.ia&&(e.R=g,e.la=i.startTime,null!=e.O&&(m=0,e.la==e.ka&&(m=e.R-e.O),e.fa.resolve(m))),null==e.O&&t==d.X&&(e.O=g,e.ka=i.startTime,null!=e.R&&(y=0,e.la==e.ka&&(y=e.R-e.O),e.fa.resolve(y))),b=i.startTime-g,(.001<=Math.abs(f-b)||o||s)&&(!u||0<b||!f)&&(f=b,e.va&&(lR(e,t,function(){return lC(e,t)},null),lR(e,t,function(){return lM(e,t,f)},null))),w=t==d.ia||!(d.ia in e.h),e.C&&w&&e.xa.resolve(f)),a&&t==d.ia&&(e.g||lw(e,"application/cea-608",e.C,!1),e.F||(e.F=new eI(p.split(";",1)[0])),i?(x=e.F.xd(n)).length&&function(e,t,n,i,r){var a=n+" "+i,o=new Map;t=v(t);for(var s=t.next();!s.done;s=t.next()){var u=s.value;s=u.stream,u=u.cue,o.has(s)||o.set(s,new Map),o.get(s).has(a)||o.get(s).set(a,[]),function e(t,n,i){n.startTime+=i,n.endTime+=i,n=v(n.nestedCues);for(var r=n.next();!r.done;r=n.next())e(t,r.value,i)}(e,u,r),u.startTime>=e.l&&u.startTime<e.m&&(o.get(s).get(a).push(u),s==e.C&&e.j.append([u]))}for(a=(r=v(o.keys())).next();!a.done;a=r.next())for(a=a.value,e.o.has(a)||e.o.set(a,new Map),s=(t=v(o.get(a).keys())).next();!s.done;s=t.next())s=s.value,u=o.get(a).get(s),e.o.get(a).set(s,u);e.g=null==e.g?Math.max(n,e.l):Math.min(e.g,Math.max(n,e.l)),e.h=Math.max(e.h,Math.min(i,e.m))}(e.g,x,i.startTime,i.endTime,f):e.F.init(n,s,c)),!e.j[t]){A.s(9);break}return C(A,e.j[t].transmux(n,r,i,e.l.duration,t),10);case 10:n=A.h;case 9:if(F=e,H=n,V=i?i.startTime:null,G=t,K=i?i.Z()[0]:null,X=null==V,W=F.wa[G],V=
1F.W.Cg(),(X=F.B.insertFakeEncryptionInInit&&X&&W)&&(V=ty(V),X=tI()||tk()||tU()||tE()&&tF()&&V),X&&"mp4"==np(F.H[G])&&(H=function(e,t){function n(){o=!0}function i(e){s.push(e),i0(e)}var r,a=e=eT(e),o=!1,s=[],u=[];if((new iZ).box("moov",i).box("trak",i).box("mdia",i).box("minf",i).box("stbl",i).P("stsd",function(e){r=e,s.push(e),i1(e)}).P("encv",n).P("enca",n).P("dvav",function(e){u.push({box:e,Fa:0x656e6376})}).P("dva1",function(e){u.push({box:e,Fa:0x656e6376})}).P("dvh1",function(e){u.push({box:e,Fa:0x656e6376})}).P("dvhe",function(e){u.push({box:e,Fa:0x656e6376})}).P("dvc1",function(e){u.push({box:e,Fa:0x656e6376})}).P("dvi1",function(e){u.push({box:e,Fa:0x656e6376})}).P("hev1",function(e){u.push({box:e,Fa:0x656e6376})}).P("hvc1",function(e){u.push({box:e,Fa:0x656e6376})}).P("avc1",function(e){u.push({box:e,Fa:0x656e6376})}).P("avc3",function(e){u.push({box:e,Fa:0x656e6376})}).P("ac-3",function(e){u.push({box:e,Fa:0x656e6361})}).P("ec-3",function(e){u.push({box:e,Fa:0x656e6361})}).P("ac-4",function(e){u.push({box:e,Fa:0x656e6361})}).P("mp4a",function(e){u.push({box:e,Fa:0x656e6361})}).parse(e),o)return e;if(0==u.length||!r)throw t7(e),new tf(2,3,3019,t);u.reverse(),t=v(u);for(var l=t.next();!l.done;l=t.next())l=l.value,a=function(e,t,n,i,r){var a=uB.value(),o=e.subarray(n.start,n.start+n.size),s=eA(o),u=new Uint8Array(n.size+a.byteLength);for(u.set(o,0),(o=eA(u)).setUint32(4,r),u.set(a,n.size),r=s.getUint32(4),o.setUint32(n.size+16,r),u_(u,0,u.byteLength),r=new
1Uint8Array(e.byteLength+u.byteLength),n=tk()||tE()?n.start:n.start+n.size,a=e.subarray(n),r.set(e.subarray(0,n)),r.set(u,n),r.set(a,n+u.byteLength),i=(e=v(i)).next();!i.done;i=e.next())u_(r,(i=i.value).start,i.size+u.byteLength);return u=eA(r,t.start),t=i8(t),e=u.getUint32(t),u.setUint32(t,e+1),r}(a,r,l.box,s,l.Fa);return tE()&&tF()?((t=new Uint8Array(e.byteLength+a.byteLength)).set(a),t.set(e,a.byteLength),t):a}(H,K)),n=H,!i||!e.C||t==d.ua||!o&&!s){A.s(11);break}if(T=i.startTime,"HLS"!=e.V||e.u||t!=d.X||!e.h[d.ia]){A.s(13);break}return C(A,e.fa,14);case 14:.1<Math.abs(S=A.h)&&(T-=S);case 13:lR(e,t,function(){return lC(e,t)},null),lR(e,t,function(){return lM(e,t,T)},null);case 11:return C(A,lR(e,t,function(){var i=n;if("video"==t&&e.U){var r=e.U;r.g&&r.g.appendBuffer(i,"video",r.o,-f)}e.h[t].appendBuffer(i)},i?i.Z()[0]:null),15);case 15:M(A)}})}function lk(e,t){var n;return B(function(i){return 1==i.g?t==(n=ns).ua?e.g?C(i,e.g.remove(0,1/0),0):i.return():C(i,lR(e,t,function(){return lI(e,t,0,e.l.duration)},null),4):e.u?C(i,lR(e,n.X,function(){return lI(e,n.X,0,e.l.duration)},null),0):i.s(0)})}function lI(e,t,n,i){i<=n?lD(e,t):e.h[t].remove(n,i)}function lC(e,t){var n=e.h[t].appendWindowStart,i=e.h[t].appendWindowEnd;e.h[t].abort(),e.h[t].appendWindowStart=n,e.h[t].appendWindowEnd=i,lD(e,t)}function lM(e,t,n){0>n&&(n+=.001),e.h[t].timestampOffset=n,lD(e,t)}function lD(e,t){if(!e.A){var n=e.m[t][0];n&&(n.p.resolve(),lP(e,t))}}function lR(e,t,n,i){return uH(e.I),n={start:n,p:new r0,uri:i},e.m[t].push(n),1==e.m[t].length&&lL(e,t),n.p}function lN(e,t){var n,i,r,a,o,s,u,l,c;return B(function(d){switch(d.g){case 1:for(uH(e.I),n=[],a=(r=v(i=Object.keys(e.h))).next(),o={};!a.done;o={ready:void 0},a=r.next())s=a.value,o.ready=new r0,u={start:function(e){return function(){return e.ready.resolve()}}(o),p:o.ready,uri:null},e.m[s].push(u),n.push(o.ready),1==e.m[s].length&&u.start();return D(d,2),C(d,Promise.all(n),4);case 4:R(d,3);break;case 2:throw N(d);case 3:return D(d,5,6),C(d,t(),6);case 6:for(P(d),c=(l=v(i)).next();!c.done;c=l.next())lP(e,c.value);L(d,0);break;case 5:throw new tf(2,3,3015,N(d),e.i.error||"No error in the media element",null)}})}function lP(e,t){e.m[t].shift(),lL(e,t)}function lL(e,t){var n=e.m[t][0];if(n)try{n.start()}catch(i){"QuotaExceededError"==i.name?n.p.reject(new tf(2,3,3017,t)):n.p.reject(new tf(2,3,3015,i,e.i.error||"No error in the media element",n.uri,t)),lP(e,t)}}function lj(e,t){return lN(e,function(){var n,i,r,a,o,s,u,l,c,d,h,f,p,g,m,y,b,w;return n=e,i=t,B(function(e){switch(e.g){case 1:for(s in n.A=!0,n.u=!1,r=n.i.currentTime,a=n.i.autoplay,o=n.i.paused,n.oa&&(n.i.autoplay=!1),e.l=0,e.j=2,n.o.Va(),n.j)n.j[s].destroy();for(u in n.h){l=n.h[u];try{n.l.removeSourceBuffer(l)}catch(e){}}return n.j={},n.h={},c=n.l.duration,n.K=new r0,n.l=ly(n,n.K),C(e,n.K,4);case 4:!isNaN(c)&&c?n.l.duration=c:!isNaN(n.aa)&&n.aa&&(n.l.duration=n.aa),d=new r0,h=n.l.sourceBuffers,f=i.size,p=0,g=function(){++p===f&&(d.resolve(),n.o.ub(h,"addsourcebuffer",g))}
1,n.o.J(h,"addsourcebuffer",g),y=(m=v(i.keys())).next();case 5:if(y.done)return n.i.currentTime=r,C(e,d,2);return b=y.value,w=i.get(b),C(e,lb(n,b,w,w.codecs),6);case 6:y=m.next(),e.s(5);break;case 2:P(e),n.A=!1,uH(n.I),n.o.sa(n.i,"canplaythrough",function(){n.I.g||(n.i.autoplay=a,o||n.i.play())}),L(e,0)}})})}(b=lv.prototype).destroy=function(){return this.I.destroy()},b.init=function(e,t,n,i){t=void 0!==t&&t,n=void 0===n?"UNKNOWN":n,i=void 0!==i&&i;var r,a,o,s,u,l=this;return B(function(c){switch(c.g){case 1:return r=ns,C(c,l.K,2);case 2:l.C=t,l.V=n,l.ya=i,l.va=!l.C&&"HLS"==l.V&&!l.ya,l.L=null,o=(a=v(e.keys())).next();case 3:if(o.done){c.s(0);break}return s=o.value,u=e.get(s),C(c,lb(l,s,u,u.codecs),6);case 6:l.u?(l.m[r.X]=[],l.m[r.ia]=[]):l.m[s]=[],o=a.next(),c.s(3)}})},b.configure=function(e){this.B=e,this.g&&(this.g.A=e.modifyCueCallback)},b.ab=function(){var e={total:this.A?[]:lr(this.i.buffered),audio:this.A?[]:lr(lA(this,"audio")),video:this.A?[]:lr(lA(this,"video")),text:[]};if(this.g){var t=this.g.g,n=this.g.h;null!=t&&null!=n&&e.text.push({start:t,end:n})}return e},b.remove=function(e,t,n,i){var r,a=this;return B(function(o){return 1==o.g?(e==(r=ns).ia&&a.F&&a.F.remove(i),e==r.ua?C(o,a.g.remove(t,n),0):C(o,lR(a,e,function(){return lI(a,e,t,n)},null),4)):a.u?C(o,lR(a,r.X,function(){return lI(a,r.X,t,n)},null),0):o.s(0)})},b.flush=function(e){var t,n=this;return B(function(i){return 1==i.g?e==(t=ns).ua?i.return():C(i,lR(n,e,function(){n.i.currentTime-=.001,lD(n,e)},null),2):n.u?C(i,lR(n,t.X,function(){var e=t.X;n.i.currentTime-=.001,lD(n,e)},null),0):i.s(0)})},b.endOfStream=function(e){var t=this;return B(function(n){return C(n,lN(t,function(){lx(t)||"closed"===t.l.readyState||(e?t.l.endOfStream(e):t.l.endOfStream())}),0)})},b.gb=function(e){var t=this;return B(function(n){return C(n,lN(t,function(){if(e<t.l.duration)for(var n in t.h){var i={start:function(){},p:new r0,uri:null};t.m[n].unshift(i)}t.l.duration=e,t.aa=e}),0)})},b.getDuration=function(){return this.l.duration};var lO=e.URL.createObjectURL,lU="sequence";function l_(e){var t=this;this.g=e,this.j=!1,this.i=this.g.jd(),this.h=new tT(function(){t.g.yf(.25*t.i)})}function lB(e){e.h.stop();var t=e.j?0:e.i;if(0<=t)try{e.g.jd()!=t&&e.g.Fe(t);return}catch(e){}e.h.Ja(.25),0!=e.g.jd()&&e.g.Fe(0)}function lF(e,t,n,i){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?i():(t=lH.value().get(t),n.sa(e,t,i))}l_.prototype.release=function(){this.set(this.Lb()),this.h&&(this.h.stop(),this.h=null),this.g=null},l_.prototype.set=function(e){this.i=e,lB(this)},l_.prototype.Lb=function(){return this.g.Lb()};var lH=new tg(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function lV(e,t,n,i){var r=this;this.g=e,this.m=t,this.u=n,this.l=null,this.j=function(){return null==r.l&&(r.l=i()),r.l},this.o=!1,this.h=new ea,this.i=new lq(e),lF(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){lX(r,r.j())})}function lG(e){return e.o?e.g.currentTime:e.j()}function lK(e,t){0<e.g.readyState?lz(e.i,t):lF(e.g,HTMLMediaElement.HAVE_METADATA,e.h,function(){lX(e,e.j())})}function lX(e,t){.001>Math.abs(e.g.currentTime-t)?lW(e):(e.h.sa(e.g,"seeking",function(){lW(e)}),lz(e.i,e.g.currentTime&&0!=e.g.currentTime?e.g.currentTime:t))}function lW(e){e.o=!0,e.h.J(e.g,"seeking",function(){return e.m()}),e.u(e.g.currentTime)}function lq(e){var t=this;this.g=e,this.m=10,this.j=this.l=this.i=0,this.h=new tT(function(){0>=t.i||t.g.currentTime!=t.l||t.g.currentTime===t.j?t.h.stop():(t.g.currentTime=t.j,t.i--)})}function lz(e,t){e.l=e.g.currentTime,e.j=t,e.i=e.m,e.g.currentTime=t,e.h.Ja(.1)}function lY(e){this.h=e,this.j=!1,this.g=null,this.i=new ea}function lJ(e,t,n,i,r,a){var o=this;this.i=e,this.g=t.presentationTimeline,this.B=t.minBufferTime||0,this.l=n,this.A=r,this.u=null,this.o=function(e,t,n){if(!t.stallEnabled)return null;var i=t.stallSkip;return(t=new la(new lo(e),t.stallThreshold,n)).i=function(){i?e.currentTime+=i:(e.pause(),e.play())},t}(e,n,a),this.j=new lu(e,t.presentationTimeline,n,this.o,a),this.h=new lV(e,function(){e:{var e=o.j;e.l=!0,e.u=!1,ll(e);var t=lG(o.h);if(.001<Math.abs((e=lQ(o,t))-t)){if(t=!1,!tR()||tR()&&tH())t=!0;else{var n=Date.now()/1e3;(!o.u||o.u<n-1)&&(o.u=n,t=!0)}if(t){lK(o.h,e),e=void 0;break e}}o.A(),e=void 0}return e},function(e){var t=o.j;t.B=!0,t.g.seeking&&!t.l&&(t.l=!0,t.i=e),t.j&&t.j.Ja(t.o.gapJumpTimerTime),ll(t)}
1,function(){var e=i;return null==e?e=1/0>o.g.getDuration()?o.g.ob():o.g.bb():0>e&&(e=o.g.bb()+e),l$(o,lZ(o,e))}),this.m=new tT(function(){if(0!=o.i.readyState&&!o.i.paused){var e=lG(o.h),t=o.g.ob(),n=o.g.bb();3>n-t&&(t=n-3),e<t&&(e=lQ(o,e),o.i.currentTime=e)}})}function l$(e,t){var n=e.g.getDuration();return t>=n?n-e.l.durationBackoff:t}function lQ(e,t){var n=Math.max(e.B,e.l.rebufferingGoal),i=e.l.safeSeekOffset,r=e.g.ob(),a=e.g.bb(),o=e.g.getDuration();3>a-r&&(r=a-3);var s=e.g.zc(n),u=e.g.zc(i);return n=e.g.zc(n+i),t>=o?l$(e,t):t>a?a:t<r?ln(e.i.buffered,u)?u:n:t>=s||ln(e.i.buffered,t)?t:n}function lZ(e,t){var n=e.g.ob();return t<n?n:t>(e=e.g.bb())?e:t}function l0(e){r7.call(this);var t=this;this.g=new Set,this.i=e,this.h=new tT(function(){for(var e=t.i(),n=v(t.g),i=n.next();!i.done;i=n.next())(i=i.value).endTime<e.start&&(t.g.delete(i),i=new r8("regionremove",new Map([["region",i]])),t.dispatchEvent(i))}).Ja(2)}function l1(e,t,n,i){this.m=e,this.i=t,this.l=n,this.h=new Map,this.j=new Map,this.g=null,this.o=i}function l2(e,t,n){if(n=void 0!==n&&n,!e.i.segmentIndex||(e.g||(e.g=e.i.segmentIndex.nb(t,!0,e.o)),!e.g))return Promise.resolve();for(n&&e.g.next(),t=[];e.h.size<e.m&&(n=e.g.next().value);){var i=!0;if(n.preload&&null!=n.ta&&(i=!1),2==n.Ab()&&(i=!1),i&&n.ba&&t.push(l4(e,n.ba)),i&&!e.h.has(n)&&(i=new l9(e.l),t.push(ce(i,n,e.i)),e.h.set(n,i)),e.i.fastSwitching&&n.Nc&&n.nd)break}return l6(e),Promise.all(t)}function l4(e,t){if(!e.i.segmentIndex||Array.from(e.j.keys()).some(function(e){return av(e,t)}))return Promise.resolve();var n=new l9(e.l),i=ce(n,t,e.i);return e.j.set(t,n),i}function l3(e,t){t=v(t.keys());for(var n=t.next();!n.done;n=t.next())(n=n.value)&&l7(e,n)}function l5(e){l3(e,e.h),l3(e,e.j),e.g=null}function l6(e){for(var t=Array.from(e.h.keys()),n=v(e.j.keys()),i=n.next(),r={};!i.done;r={ke:void 0},i=n.next())r.ke=i.value,t.some(function(e){return function(t){return av(t.ba,e.ke)}}(r))||l7(e,r.ke)}function l8(e,t){e.m=t;for(var n=Array.from(e.h.keys());n.length>t;){var i=n.pop();i&&l7(e,i)}l6(e)}function l7(e,t){var n=e.h;t instanceof am&&(n=e.j),e=n.get(t),n.delete(t),e&&e.abort()}function l9(e){this.g=e,this.Lc=this.Je=null}function ce(e,t,n){var i=new Uint8Array(0);return e.Lc=e.g(t,n,function(t){return B(function(n){if(1==n.g)return i=0<i.byteLength?t9(i,t):t,e.Je?C(n,e.Je(i),3):n.s(0);i=new Uint8Array(0),M(n)})}),e.Lc.promise.catch(function(e){return e instanceof tf&&7001==e.code?Promise.resolve():Promise.reject(e)})}function ct(e,t){var n=this;this.g=t,this.l=e,this.h=null,this.F=new Map,this.B=1,this.u=this.j=null,this.K=0,this.H=!1,this.i=new Map,this.D=!1,this.L=null,this.A=!1,this.m=new uF(function(){var e,t,i,r,a,o,s;return e=n,B(function(n){if(1==n.g){for(t=[],r=(i=v(e.i.values())).next();!r.done;r=i.next())cv(a=r.value),t.push(cy(a)),a.T&&(l5(a.T),a.T=null);for(s=(o=v(e.o.values())).next();!s.done;s=o.next())l5(s.value);return C(n,Promise.all(t),2)}e.i.clear(),e.o.clear(),e.g=null,e.l=null,e.h=null,M(n)})}),this.M=Date.now()/1e3,this.o=new Map,this.I={projection:null,hfov:null},this.R=0,this.O=1/0,this.C=null}function cn(e,t){for(var n=0>e.g.Qa(),i=v(e.i.values()),r=i.next();!r.done;r=i.next())(r=r.value).ja&&r.ja.qc(n),r.T&&r.T.qc(n);for(r=(i=v(e.o.values())).next();!r.done;r=i.next())r.value.qc(n);(n=e.i.get("video"))&&(i=n.stream)&&(t?(t=i.trickModeVideo)&&!n.Cb&&(ca(e,t,!1,0,!1),n.Cb=i):(t=n.Cb)&&(n.Cb=null,ca(e,t,!0,0,!1)))}function ci(e,t,n,i,r,a,o){n=void 0!==n&&n,i=void 0===i?0:i,r=void 0!==r&&r,a=void 0!==a&&a,e.j=t,e.D&&(t.video&&ca(e,t.video,(void 0===o||o)&&n,i,r,a),t.audio&&ca(e,t.audio,n,i,r,a))}function cr(e,t){B(function(n){if(1==n.g)return e.C=null,e.u=t,e.D?t.segmentIndex?n.s(2):C(n,t.createSegmentIndex(),2):n.return();ca(e,t,!0,0,!1),M(n)})}function ca(e,t,n,i,r,a){var o,s,u,l,c,d,h,f,p,g,m,v,y,b=e.i.get(t.type);b||t.type!=no?b&&(b.Cb&&(t.trickModeVideo?(b.Cb=t,t=t.trickModeVideo):b.Cb=null),b.stream!=t||r)&&(e.o.has(t)?b.T=e.o.get(t):b.T&&(c=b.T,(d=t)&&d!==c.i&&(l5(c),c.i=d)),t.type==no&&(r=nd(t.mimeType,t.codecs),lw(e.g.$,r,e.l.sequenceMode,t.external)),!e.o.has(b.stream)&&b.stream.closeSegmentIndex&&(b.Ca?(r="("+b.type+":"+b.stream.id+")",e.F.has(r)||e.F.set(r,b.stream.closeSegmentIndex)):b.stream.closeSegmentIndex()),b.stream=t,b.ja=null,b.Ve=!!a,n?b.vc?b.Pd=!0:b.Ca?(b.Gb=!0,b.ad=i,b.Pd=!0):(cv(b),cg(e,b,!0,i).catch(function(t){e.g&&e.g.onError(t)})):b.Ca||b.Xa||cm(e,b,0),(o=e,s=b,B(function(e){if(1==e.g)return s.Ga?(u=s.stream,l=s.Ga,u.segmentIndex?e.s(2):C(e,u.createSegmentIndex(),2)):e.return();if(s.Ga!=l||s.stream!=u)return e.return();var t=o.g.yc(),n=lS(o.g.$,s.type),i=s.stream.segmentIndex.find(s.Ea?s.Ea.endTime:t),r=null==i?null:s.stream.segmentIndex.get(i);if(i=r&&r.ta?r.ta-r.Ia:null,r&&!i&&(i=(r.endTime-r.getStartTime())*(s.stream.bandwidth||0)/8),i)if((r=r.ba)&&(i+=(r.ta?r.ta-r.Ia:null)||0),8*i/(r=o.g.getBandwidthEstimate())<(n||0)-t-Math.max(o.l.minBufferTime||0,o.h.rebufferingGoal))i=!0;else{t=s.Ga.h.h,n=s.Ga;var a=Date.now()/1e3-n.j/1e3;
1r=8*n.h.g/r,n=0<n.i&&a+r>=n.i,i=s.Ga.h.g>i||!!t||!!n||"video"==s.type&&s.stream.bandwidth===o.l.lowestVideoBitrate}else i=!1;i&&s.Ga.abort(),M(e)})).catch(function(t){e.g&&e.g.onError(t)})):(h=e,f=t,B(function(e){switch(e.g){case 1:return p=ns,h.K++,g=h.K,D(e,2),C(e,lk(h.g.$,p.ua),4);case 4:R(e,3);break;case 2:m=N(e),h.g&&h.g.onError(m);case 3:v=nd(f.mimeType,f.codecs),lw(h.g.$,v,h.l.sequenceMode,f.external),(h.g.$.D.isTextVisible()||h.h.alwaysStreamText)&&h.K==g&&(y=cs(h,f),h.i.set(p.ua,y),cm(h,y,0)),M(e)}}))}function co(e,t){t.vc||t.Gb||(t.Ca?(t.Gb=!0,t.ad=0):null==lT(e.g.$,t.type)?null==t.Xa&&cm(e,t,0):(cv(t),cg(e,t,!1,0).catch(function(t){e.g&&e.g.onError(t)})))}function cs(e,t){return{stream:t,type:t.type,ja:null,T:cu(e,t),Ea:null,fc:null,od:null,Pb:null,Ob:null,Cb:null,endOfStream:!1,Ca:!1,Xa:null,Gb:!1,ad:0,Pd:!1,vc:!1,oc:!0,xe:!1,Cc:!1,Ga:null}}function cu(e,t){if("video"===t.type&&e.h.disableVideoPrefetch||"audio"===t.type&&e.h.disableAudioPrefetch||t.type===no&&("application/cea-608"==t.mimeType||"application/cea-708"==t.mimeType)||t.type===no&&e.h.disableTextPrefetch)return null;if(e.o.has(t))return e.o.get(t);var n=e.i.get(t.type);return(n=n&&n.T)&&t===n.i?n:0<e.h.segmentPrefetchLimit?new l1(e.h.segmentPrefetchLimit,t,function(t,n,i){return cp(t,n,i||null,e.h.retryParameters,e.g.Rb)},0>e.g.Qa()):null}function cl(e,t,n,i,r,a,o,s){var u,l,c,d;return B(function(h){if(1==h.g){var f,p,g,m,v,y,b,w,x,T,S;return u=ns,l=new Map,e.j.audio&&l.set(u.X,e.j.audio),e.j.video&&l.set(u.ia,e.j.video),D(h,2),t.Pb=i,t.Ob=r,o&&(t.ne=o),s&&(t.oe=s),t.od=n,c=e.l.sequenceMode||"HLS"==e.l.type,C(h,(f=e.g.$,p=t.type,g=n,m=i,v=r,y=c,b=a.mimeType||t.stream.mimeType,w=a.codecs||t.stream.codecs,x=l,B(function(e){if(1==e.g){var t,n,i,r,a,o,s,u,l,c,d,h,A,E,k,I,M,D,R,N,P,L,j;if(p==(T=ns).ua){return y||(f.g.u=g),t=f.g,n=m,i=v,t.l=n,t.m=i,e.return()}return S=[],C(e,(r=f,a=p,o=b,s=w,u=x,B(function(e){if(1==e.g){if(a==(l=ns).ua)return e.return(!1);if(c=ng(ny(r.H[a])),d=nv(r.H[a]),A=!1,E=nd(o,s),k=r.B.forceTransmux,(!eu(E)||!r.C&&nT.includes(E))&&(k=!0),k&&(M=e1(I=nh(o,s)))&&(h=M(),D=nr(l.X,(s||"").split(",")),R=nr(l.ia,(s||"").split(",")),D&&R?(A=!0,N=R,a==l.X&&(N=D),E=h.convertCodecs(a,nh(o,N))):E=h.convertCodecs(a,I)),P=ng(ny(E)),L=nv(E),c===P&&d===L)return r.j[a]&&!h?(r.j[a].destroy(),delete r.j[a]):!r.j[a]&&h?r.j[a]=h:h&&(r.j[a]&&r.j[a].transmux!=h.transmux?(r.j[a].destroy(),delete r.j[a],r.j[a]=h):h.destroy()),e.return(!1);if(j=!0,(r.u||A&&h&&!r.j[a])&&(j=!1),j&&"smooth"===r.B.codecSwitchingStrategy&&el()){var t,n,i,f;return C(e,(t=r,n=a,i=E,f=h,lR(t,n,function(){n!==no&&(el()&&(t.j[n]&&(t.j[n].destroy(),delete t.j[n]),f&&(t.j[n]=f),t.h[n].changeType(i+t.B.addExtraFeaturesToSourceBuffer(i)),t.H[n]=i),lD(t,n))},null)),3)}return h&&h.destroy(),C(e,lj(r,u),3)}return e.return(!0)})),2)}return e.h||(S.push(lR(f,p,function(){return lC(f,p)},null)),f.u&&S.push(lR(f,T.X,function(){return lC(f,T.X)},null))),y||(S.push(lR(f,p,function(){return lM(f,p,g)},null)),f.u&&S.push(lR(f,T.X,function(){return lM(f,T.X,g)},null))),S.push(lR(f,p,function(){f.h[p].appendWindowStart=0,f.h[p].appendWindowEnd=v,f.h[p].appendWindowStart=m,lD(f,p)},null)),f.u&&S.push(lR(f,T.X,function(){var e=T.X;f.h[e].appendWindowStart=0,f.h[e].appendWindowEnd=v,f.h[e].appendWindowStart=m,lD(f,e)},null)),C(e,Promise.all(S),0)})),4)}if(2!=h.g)return R(h,0);throw d=N(h),t.Pb=null,t.Ob=null,t.ne=null,t.oe=null,t.od=null,d})}function cc(e,t,n,i,r,a,o,s){var u,l,c,d,h,f,p,g;return o=void 0!==o&&o,s=void 0!==s&&s,B(function(m){switch(m.g){case 1:return u=i.closedCaptions&&0<i.closedCaptions.size,c=null!=i.emsgSchemeIdUris&&0<i.emsgSchemeIdUris.length||e.h.dispatchAllEmsgBoxes,d=e.h.parsePrftBox&&!e.H,h="video/mp4"==i.mimeType||"audio/mp4"==i.mimeType,f=null,r.ba&&(f=r.ba.timescale),p=h&&f&&"video"===i.type&&"DASH"==e.l.type&&e.h.shouldFixTimestampOffset,(c||d||p)&&(l=new iZ),c&&l.P("emsg",function(t){var n=i.emsgSchemeIdUris;if(0===t.version)var a=t.reader.Sb(),o=t.reader.Sb(),s=t.reader.N(),u=t.reader.N(),l=t.reader.N(),c=t.reader.N(),d=r.startTime+u/s;else s=t.reader.N(),u=(d=t.reader.mc()/s+r.m)-r.startTime,l=t.reader.N(),c=t.reader.N(),a=t.reader.Sb(),o=t.reader.Sb();t=t.reader.Ua(t.reader.getLength()-t.reader.ra()),(n&&n.includes(a)||e.h.dispatchAllEmsgBoxes)&&("urn:mpeg:dash:event:2012"==a?e.g.mh():(n=d+l/s,(s=new r8("emsg",s=(new Map).set("detail",{startTime:d,endTime:n,schemeIdUri:a,value:o,timescale:s,presentationTimeDelta:u,eventDuration:l,id:c,messageData:t}))).cancelable=!0,e.g.onEvent(s),!s.defaultPrevented&&("https://aomedia.org/emsg/ID3"==a||"https://developer.apple.com/streaming/emsg-id3"==a)&&(a=a7(t)).length&&e.g.onMetadata([{cueTime:d,data:t,frames:a,dts:d,pts:d}],0,n)))}),d&&l.P("prft",function(t){if(!e.H&&r.ba.timescale){var n=t.reader,i=t.version;n.N(),t=1e3*(t=n.N())+n.N()/0x100000000*1e3,n=0===i?n.N():0x100000000*(i=n.N())+(n=n.N()),t=new Date(new Date(Date.UTC(1900,0,1,0,0,0)).getTime()+t).getTime(),n=new r8("prft",n=(new Map).set("detail",{wallClockTime:t,programStartDate:new Date(t-n/r.ba.timescale*1e3)})),e.g.onEvent(n),e.H=!0}}),p&&l.box("moof",i0).box("traf",i0).P("tfdt",function(n){var i,a,o,s;return B(function(u){return(i=rt(n.reader,n.version).baseMediaDecodeTime)?(a=-i/f,(Number(t.od)||0)<a)?(o=t.Pb,s=t.Ob,C(u,cl(e,t,a,o,s,r),0)):u.s(0):u.return()})}),(c||d||p)&&l.parse(a,!1,o),C(m,cd(e,t,n),2);case 2:return uH(e.m),g=t.oc,t.oc=!1,C(m,e.g.Ye(t.type,a),3);case 3:return C(m,lE(e.g.$,t.type,a,r,i,u,g,s,o),4);case 4:uH(e.m),M(m)}})}function cd(e,t,n){var i,r,a,o,s;return B(function(u){return 1==u.g?((i=t.stream.segmentIndex)instanceof aE&&(i.za(e.l.presentationTimeline.ob()),r=[],function(e,t){e=v(e.h);for(var n=e.next();!n.done;n=e.next())t(n.value)}(i,function(e){r.push(e.bd())})),a=Math.max(e.h.bufferBehind*e.B,e.l.presentationTimeline.h),null==(o=lT(e.g.$,t.type)))?(e.C==t&&(e.C=null),u.return()):(s=n-o-a)<=e.h.evictionGoal?u.return():C(u,e.g.$.remove(t.type,o,o+s,r),2):4!=u.g?(uH(e.m),e.C?C(u,cd(e,e.C,n),4):u.s(0)):void(uH(e.m),M(u))})}function ch(e){return e&&e.type==no&&("application/cea-608"==e.stream.mimeType||"application/cea-708"==e.stream.mimeType)}function cf(e,t,n,i){var r,a,o,s,u;return B(function(l){switch(l.g){case 1:if(r=n.Ac())return l.return(r);if(a=null,t.T){var c=t.T,d=c.h;n instanceof am&&(d=c.j),d.has(n)?(c=d.get(n),i&&(c.Je=i),a=c.Lc):a=null}return a||(a=cp(n,t.stream,i||null,e.h.retryParameters,e.g.Rb)),o=0,t.ja&&(o=t.ja.h),t.Ga=a,C(l,a.promise,2);case 2:if(s=l.h,t.Ga=null,u=s.data,!n.aesKey){l.s(3);break}return C(l,os(u,n.aesKey,o),4);case 4:u=l.h;case 3:return l.return(u)}})}function cp(e,t,n,i,r){var a=e instanceof ay?e:void 0;return(e=oh(e.Z(),e.Ia,e.ta,i,n)).contentType=t.type,r.request(as,e,{type:+!!a,stream:t,segment:a})}function cg(e,t,n,i){var r,a;return B(function(o){return 1==o.g?(t.Gb=!1,t.Pd=!1,t.ad=0,t.vc=!0,t.Ea=null,t.ja=null,t.T&&!e.o.has(t.stream)&&l5(t.T),i?(r=e.g.yc(),a=e.g.$.getDuration(),C(o,e.g.$.remove(t.type,r+i,a),3)):C(o,lk(e.g.$,t.type),4)):3!=o.g?(uH(e.m),n?C(o,e.g.$.flush(t.type),3):o.s(3)):void(uH(e.m),t.vc=!1,t.endOfStream=!1,t.Ca||t.Xa||cm(e,t,0),M(o))})}function cm(t,n,i){var r=n.type;(r!=no||t.i.has(r))&&(n.Xa=new tx(function(){var i;return B(function(r){if(1==r.g){var a,o,s,u,l,c,d,h;return D(r,2),C(r,(a=t,o=n,B(function(t){switch(t.g){case 1:if(uH(a.m),o.Ca||null==o.Xa||o.vc)return t.return();if(o.Xa=null,!o.Gb){t.s(2);break}return C(t,cg(a,o,o.Pd,o.ad),3);case 3:case 8:return t.return();case 2:for(var n=a,i=o,r=v(n.F.entries()),f=r.next();!f.done;f=r.next()){var p=v(f.value);f=p.next().value,p=p.next().value,f.includes(i.type)&&(p(),n.F.delete(f))}if(o.stream.segmentIndex){t.s(4);break}return s=o.stream,D(t,5),C(t,o.stream.createSegmentIndex(),7);case 7:R(t,6);break;case 5:return u=N(t),C(t,cb(a,o,u),8);case 6:if(s!=o.stream)return s.closeSegmentIndex&&s.closeSegmentIndex(),o.Ca||o.Xa||cm(a,o,0),t.return();case 4:D(t,9),null!=(l=function(t,n){if(ch(n))return T=t.g.$,S=n.stream.originalId||"",A=lS(T,"video")||0,nE(T.g,S,A),null;if(n.type==no&&(E=t.g.$).g&&nE(E.g,"",0),!((k=t.g.$).qa&&!k.A)&&n.type!=no)return t.h.updateIntervalSeconds/2;var i,r,a,o,s,u,l,c,d,h,f,p,g,m,y,b,w,x,T,S,A,E,k,I,P,L,j=t.g.yc();if("audio"===n.type)for(var O=v(t.o.keys()),U=O.next();!U.done;U=O.next())(U=t.o.get(U.value)).za(j,!0),l2(U,j);O=n.Ea?n.Ea.endTime:j;
1var _=(I=t.g.$,P=n.type,L=j,I.A?0:P==no?null==(I=I.g).h||I.h<L?0:I.h-Math.max(L,I.g):li(I=lA(I,P),L)),F=Math.max(1,Math.max(t.l.minBufferTime||0,t.h.rebufferingGoal,t.h.bufferingGoal)*t.B),H=t.l.presentationTimeline.getDuration()-O;if(U=lS(t.g.$,n.type),1e-6>H&&U)return n.endOfStream=!0,"video"==n.type&&(t=t.i.get(no))&&ch(t)&&(t.endOfStream=!0),null;if(n.endOfStream=!1,_>=F)return t.h.updateIntervalSeconds/2;if(F=!n.ja,!(U=function(e,t,n,i){if(t.ja)return t.ja.current();if(t.Ea||i)return n=t.Ea?t.Ea.endTime:i,e=0>e.g.Qa(),t.stream.segmentIndex&&(t.ja=t.stream.segmentIndex.nb(n,!1,e)),t.ja&&t.ja.next().value;var r=Math.max(n-(i=e.l.sequenceMode?0:e.h.inaccurateManifestTolerance),0);e=0>e.g.Qa();var a=null;return i&&(t.stream.segmentIndex&&(t.ja=t.stream.segmentIndex.nb(r,!1,e)),a=t.ja&&t.ja.next().value),a||(t.stream.segmentIndex&&(t.ja=t.stream.segmentIndex.nb(n,!1,e)),a=t.ja&&t.ja.next().value),a}(t,n,j,U)))return t.h.updateIntervalSeconds;_=!1,F&&n.Ve&&(_=!0,n.Ve=!1),F=1/0,H=v(H=Array.from(t.i.values()));for(var V=H.next();!V.done;V=H.next())ch(V=V.value)||V.ja&&!V.ja.current()||(F=Math.min(F,V.Ea?V.Ea.endTime:j));return O>=F+t.l.presentationTimeline.h?t.h.updateIntervalSeconds:(n.T&&n.ja&&!t.o.has(n.stream)&&(n.T.za(U.startTime),l2(n.T,U.startTime).catch(function(){})),(i=t,r=n,a=j,o=U,s=_,B(function(t){var n,T,S,A,E,k,I,P,L,j,O,U,_,F,H,V,G,K,X,W,q,z,Y,J,$;switch(t.g){case 1:if(u=ns,l=r.stream,c=r.ja,r.Ca=!0,D(t,2),2==o.Ab())throw new tf(1,1,1011);return C(t,(n=i,T=r,S=o,A=s,B(function(e){switch(e.g){case 1:if(E=ns,k=null==T.Ea,I=[],P=Math.max(0,Math.max(S.D,n.R)-.1),L=Math.min(S.C,n.O)+.01,O=nm(j=S.codecs||T.stream.codecs),U=nv(S.mimeType||T.stream.mimeType),(_=S.m)==T.od&&P==T.Pb&&L==T.Ob&&O==T.ne&&U==T.oe){e.s(2);break}if(!(T.ne&&T.oe&&function(e,t,n,i){if(t==no)var r=!1;else{r=ng(ny(e.H[t]));var a=nv(e.H[t]),o=nd(n,i),s=e.B.forceTransmux;(!eu(o)||!e.C&&nT.includes(o))&&(s=!0),n=nh(n,i),s&&(s=e1(n))&&(o=(s=s()).convertCodecs(t,n),s.destroy()),t=ng(ny(o)),o=nv(o),r=r!==t||a!==o}return!!r&&("smooth"!==e.B.codecSwitchingStrategy||!el()||e.u)}(n.g.$,T.type,U,j))||(F=null,T.type===E.ia?F=n.i.get(E.X):T.type===E.X&&(F=n.i.get(E.ia)),!F)){e.s(3);break}return C(e,cy(F).catch(function(){}),5);case 5:F.fc=null,F.Pb=null,F.Ob=null,co(n,F);case 3:return C(e,cl(n,T,_,P,L,S,O,U),2);case 2:var t,i,r,a;return!av(S.ba,T.fc)&&(T.fc=S.ba,S.l&&S.ba)&&(H=cf(n,T,S.ba),V=function(){var e,t,i,r,a,o,s,u;return B(function(l){switch(l.g){case 1:return D(l,2),C(l,H,4);case 4:return e=l.h,uH(n.m),t=null,i=new Map,r={projection:null,hfov:null},(new iZ).box("moov",i0).box("trak",i0).box("mdia",i0).P("mdhd",function(e){t=rn(e.reader,e.version).timescale}).box("hdlr",function(e){switch((e=e.reader).skip(8),e.Sb()){case"soun":i.set(E.X,t);break;case"vide":i.set(E.ia,t)}t=null}).box("minf",i0).box("stbl",i0).P("stsd",i1).box("encv",i2).box("avc1",i2).box("avc3",i2).box("hev1",i2).box("hvc1",i2).box("dvav",i2).box("dva1",i2).box("dvh1",i2).box("dvhe",i2).box("dvc1",i2).box("dvi1",i2).box("vexu",i0).box("proj",i0).P("prji",function(e){r.projection=e.reader.Sb()}).box("hfov",function(e){r.hfov=e.reader.N()/1e3}).parse(e),function(e,t){if(e.I.projection!=t.projection||e.I.hfov!=t.hfov){if(null!=t.projection||null!=t.hfov){var n=(new Map).set("detail",t);n=new r8("spatialvideoinfo",n)}else n=new r8("nospatialvideoinfo");n.cancelable=!0,e.g.onEvent(n),e.I=t}}(n,r),i.has(T.type)?S.ba.timescale=i.get(T.type):null!=t&&(S.ba.timescale=t),(a=T.stream.segmentIndex)&&a instanceof aE&&(o=function(e,t){e=v(e.h);for(var n=e.next();!n.done;n=e.next())if(null!=(n=n.value).find(t))return n.bd();return -1}(a,S.startTime)),s=T.stream.closedCaptions&&0<T.stream.closedCaptions.size,C(l,n.g.Ye(T.type,e),5);case 5:return C(l,lE(n.g.$,T.type,e,null,T.stream,s,T.oc,A,!1,!1,o),6);case 6:R(l,0);break;case 2:throw u=N(l),T.fc=null,u}})},G=S.startTime,k&&(null!=(K=lS(n.g.$,T.type))&&(G=K),tI()||tM()||tD())&&(tI()&&null!=K&&1>S.endTime-K?G=S.endTime+2:null!=K&&.1<=Math.abs(K-S.startTime)&&(G=S.endTime),tC()&&--G),n.g.lh(G,S.ba),I.push(V())),n.l.sequenceMode&&(X=T.Ea?T.Ea.j:null,S.j!=X&&I.push((t=n.g.$,i=T.type,r=S.startTime,B(function(e){return 1==e.g?i==(a=ns).ua?e.return():(i==a.ia&&(t.xa=new r0),lR(t,i,function(){return lC(t,i)},null),t.u&&lR(t,a.X,function(){return lC(t,a.X)},null),C(e,lR(t,i,function(){return lM(t,i,r)},null),2)):t.u?C(e,lR(t,a.X,function(){return lM(t,a.X,r)},null),0):e.s(0)}
1)))),C(e,Promise.all(I),0)}})),4);case 4:if(uH(i.m),i.A)return t.return();if(d="video/mp4"==l.mimeType||"audio/mp4"==l.mimeType,h=e.ReadableStream,i.h.lowLatencyMode&&i.l.isLowLatency&&h&&d&&("HLS"!=i.l.type||o.o))return p=new Uint8Array(0),m=g=!1,b=function(e){var t,n,u;return B(function(c){switch(c.g){case 1:var d,h,f;if(g||(m=!0,uH(i.m),i.A))return c.return();if(D(c,2),d=p,h=e,(f=new Uint8Array(d.length+h.length)).set(d),f.set(h,d.length),p=f,t=!1,n=0,(new iZ).box("mdat",function(e){n=e.size+e.start,t=!0}).parse(p,!1,!0),!t){c.s(4);break}return u=p.subarray(0,n),p=p.subarray(n),C(c,cc(i,r,a,l,o,u,!0,s),5);case 5:r.T&&r.ja&&l2(r.T,o.startTime,!0);case 4:R(c,0);break;case 2:y=N(c),M(c)}})},C(t,cf(i,r,o,b),9);return C(t,cf(i,r,o),7);case 7:if(f=t.h,uH(i.m),i.A)return t.return();return uH(i.m),r.Gb?(r.Ca=!1,cm(i,r,0),t.return()):C(t,cc(i,r,a,l,o,f,!1,s),6);case 9:if(w=t.h,y)throw y;if(m){t.s(10);break}return g=!0,uH(i.m),i.A?t.return():r.Gb?(r.Ca=!1,cm(i,r,0),t.return()):C(t,cc(i,r,a,l,o,w,!1,s),10);case 10:r.T&&r.ja&&l2(r.T,o.startTime,!0);case 6:if(uH(i.m),i.A)return t.return();r.Ea=o,c.next(),r.Ca=!1,r.xe=!1,JSON.stringify(i.g.$.ab()[r.type]),r.Gb||i.g.ue(o,r.stream),cm(i,r,0),R(t,0);break;case 2:if(x=N(t),uH(i.m,x),i.A)return t.return();if(r.Ca=!1,7001==x.code)r.Ca=!1,cv(r),cm(i,r,0),t.s(0);else if(r.type==u.ua&&i.h.ignoreTextStreamFailures)i.i.delete(u.ua),t.s(0);else{if(3017==x.code){return C(t,(W=i,q=r,z=x,B(function(e){if(1==e.g){if(Array.from(W.i.values()).some(function(e){return e!=q&&e.xe}))return e.s(2);if(Y=0===W.h.maxDisabledTime&&1011==z.code?1:W.h.maxDisabledTime,W.g.disableStream(q.stream,Y))return e.return();if(20<(J=Math.round(100*W.B)))W.B-=.2;else{if(!(4<J))return q.Cc=!0,W.A=!0,W.g.onError(z),e.return();W.B-=.04}return q.xe=!0,$=W.g.yc(),C(e,cd(W,q,$),2)}cm(W,q,4),M(e)})),0)}return r.Cc=!0,1==x.category&&r.T&&l7(r.T,o),x.severity=2,C(t,cb(i,r,x),0)}}})).catch(function(){}),null)}(a,o))&&(cm(a,o,l),o.Cc=!1),R(t,10);break;case 9:return c=N(t),C(t,cb(a,o,c),11);case 11:return t.return();case 10:if(d=Array.from(a.i.values()),!a.D||!d.every(function(e){return e.endOfStream})){t.s(0);break}return C(t,a.g.$.endOfStream(),13);case 13:uH(a.m),0!=(h=a.g.$.getDuration())&&h<a.l.presentationTimeline.getDuration()&&a.l.presentationTimeline.gb(h),M(t)}})),4)}if(2!=r.g)return R(r,0);i=N(r),t.g&&t.g.onError(i),M(r)})}).da(i))}function cv(e){null!=e.Xa&&(e.Xa.stop(),e.Xa=null)}function cy(e){return B(function(t){return e.Ga?C(t,e.Ga.abort(),0):t.s(0)})}function cb(e,t,n){var i;return B(function(r){if(1==r.g)return C(r,rQ(e.L),2);if(uH(e.m),1===n.category&&1003!=n.code){if(t.Cb)return cn(e,!1),r.return();i=0===e.h.maxDisabledTime&&1011==n.code?1:e.h.maxDisabledTime,n.handled=e.g.disableStream(t.stream,i),n.handled&&(n.severity=1)}n.handled&&1011==n.code||e.g.onError(n),n.handled||e.h.failureCallback(n),M(r)})}function cw(){this.g=null,this.h=[]}function cx(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration),e=v(e.h);for(var i=e.next();!i.done;i=e.next())n+=(i=i.value).state==t?i.duration:0;return n}function cT(){this.i=this.h=null,this.g=[]}function cS(e,t,n){e.i!=t&&(e.i=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function cA(){this.Hb=this.uf=this.A=this.B=this.L=this.C=this.u=this.j=this.H=this.D=this.K=this.m=this.i=this.V=this.W=this.O=this.R=this.U=this.l=this.o=NaN,this.M=0,this.F=this.I=NaN,this.g=new cw,this.h=new cT}function cE(e,t,n,i){r7.call(this),this.L=e,this.R=t,this.qa=i.networkingEngine,this.A=n,this.o=null,this.oa=0,this.La=i.cd,this.C=i.gh,this.Ma=i.hh,this.g=i.config,this.l=this.D=this.i=null,this.ea=!1,this.F=i.qh,this.ka=!1,this.h=null,this.W=!1,this.j=this.B=null,this.V=!1,this.K=new Map,this.la=!1,this.va=i.ph,this.U=new cA,this.aa=new r0,this.m=new r0,this.M=null,this.u=!1,this.ya=i.lg,this.fa=null,this.wa=i.kg,this.O=!1,this.I=[],this.H=[]}function ck(e,t,n){(e=t?e.H:e.I)?e.push(n):n()}function cI(e,t){if(e.M=t,e.O=!0,e.I){t=v(e.I);for(var n=t.next();!n.done;n=t.next())(n=n.value)()}e.I=null}function cC(e){if(e.u)throw new tf(2,7,7003)}function cM(e,t){e.dispatchEvent(new r8("onstatechange",(new Map).set("state",t)))}function cD(e,t){var n,i,r;return B(function(a){switch(a.g){case 1:if(!e.i||e.h)return a.return();cM(e,"drm-engine"),e.oa=Date.now()/1e3,e.h=e.La(),e.C.h=e.h,e.h.configure(e.g.drm);var o=e.C;if(!nX(e.i.variants,o.g.restrictions,o.i)){a.s(2);break}return n=new r8("trackschanged",void 0),C(a,Promise.resolve(),3);case 3:cC(e),e.dispatchEvent(n);case 2:return i=n5(e.i.variants),C(a,uX(e.h,i,e.i.offlineSessionIds),4);case 4:if(cC(e),!t){a.s(5);break}return C(a,e.h.vb(t),6);case 6:cC(e);case 5:return C(a,ld(e.C,e.i),7);case 7:if(!a.h){a.s(0);break}return r=new r8("trackschanged",void 0),C(a,Promise.resolve(),9);case 9:e.dispatchEvent(r),M(a)}})}function cR(e,t,n){var i,r,a,o;return B(function(s){return 1==s.g?(i=new l1(e.g.streaming.segmentPrefetchLimit||2,t,function(t,n,i){return cp(t,
1n,i||null,e.g.streaming.retryParameters,e.qa)},!1),e.K.set(t.id,i),C(s,t.createSegmentIndex(),2)):(r=e.A||0,(o=(a=t.segmentIndex.nb(r))?a.current():null)||(o=aT(t.segmentIndex)),o?n?o.ba?C(s,l4(i,o.ba),0):s.s(0):C(s,l2(i,o.startTime),0):s.s(0))})}function cN(e,t){r7.call(this);var n=this;this.i=e,this.l=t,this.g=new Map,this.m=[{Xb:null,Wb:cj,Nb:function(e,t){return cP(n,"enter",e,t)}},{Xb:cL,Wb:cj,Nb:function(e,t){return cP(n,"enter",e,t)}},{Xb:cO,Wb:cj,Nb:function(e,t){return cP(n,"enter",e,t)}},{Xb:cj,Wb:cL,Nb:function(e,t){return cP(n,"exit",e,t)}},{Xb:cj,Wb:cO,Nb:function(e,t){return cP(n,"exit",e,t)}},{Xb:cL,Wb:cO,Nb:function(e,t){return cP(n,"skip",e,t)}},{Xb:cO,Wb:cL,Nb:function(e,t){return cP(n,"skip",e,t)}}],this.h=new ea,this.h.J(this.i,"regionremove",function(e){n.g.delete(e.region)})}function cP(e,t,n,i){t=new r8(t,new Map([["region",n],["seeking",i]])),e.dispatchEvent(t)}lV.prototype.release=function(){this.h&&(this.h.release(),this.h=null),null!=this.i&&(this.i.release(),this.i=null),this.m=function(){},this.g=null},lq.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null},(b=lY.prototype).ready=function(){var e=this;lF(this.h,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){if(null==e.g||0==e.g&&1/0!=e.h.duration)e.j=!0;else{var t=e.h.currentTime,n=e.g;0>e.g&&(n=Math.max(0,t+e.g)),t!=n?(e.i.sa(e.h,"seeking",function(){e.j=!0}),e.h.currentTime=n):e.j=!0}})},b.release=function(){this.i&&(this.i.release(),this.i=null),this.h=null},b.Sd=function(e){this.g=this.j?this.g:e},b.Uc=function(){return(this.j?this.h.currentTime:this.g)||0},b.Ue=function(){return 0},b.Te=function(){return 0},b.zf=function(){},(b=lJ.prototype).ready=function(){this.m.Ja(.25)},b.release=function(){this.h&&(this.h.release(),this.h=null),this.j&&(this.j.release(),this.j=null),this.m&&(this.m.stop(),this.m=null),this.i=this.h=this.g=this.l=null,this.A=function(){}},b.Sd=function(e){lK(this.h,e)},b.Uc=function(){var e=lG(this.h);return 0<this.i.readyState&&!this.i.paused?lZ(this,e):e},b.Ue=function(){return this.o?this.o.o:0},b.Te=function(){return this.j.D},b.zf=function(){this.j.ue()},A(l0,r7),l0.prototype.release=function(){this.g.clear(),this.h.stop(),r7.prototype.release.call(this)},l1.prototype.za=function(e,t){t=void 0!==t&&t;for(var n=v(this.h.keys()),i=n.next();!i.done;i=n.next())e>(i=i.value).endTime&&l7(this,i);t&&l6(this)},l1.prototype.qc=function(e){this.o=e,this.g&&this.g.qc(e)},l9.prototype.abort=function(){this.Lc&&this.Lc.abort()},(b=ct.prototype).destroy=function(){return this.m.destroy()},b.configure=function(e){if(this.h=e,this.L=new r$({maxAttempts:Math.max(e.retryParameters.maxAttempts,2),baseDelay:e.retryParameters.baseDelay,backoffFactor:e.retryParameters.backoffFactor,fuzzFactor:e.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0),e.disableAudioPrefetch){var t=this.i.get("audio");t&&t.T&&(l5(t.T),t.T=null),t=v(this.o.keys());for(var n=t.next();!n.done;n=t.next())n=n.value,l5(this.o.get(n)),this.o.delete(n)}for(e.disableTextPrefetch&&(t=this.i.get(no))&&t.T&&(l5(t.T),t.T=null),e.disableVideoPrefetch&&(t=this.i.get("video"))&&t.T&&(l5(t.T),t.T=null),n=(t=v(this.i.keys())).next();!n.done;n=t.next())(n=this.i.get(n.value)).T?(l8(n.T,e.segmentPrefetchLimit),0<e.segmentPrefetchLimit||(l5(n.T),n.T=null)):0<e.segmentPrefetchLimit&&(n.T=cu(this,n.stream));e.disableAudioPrefetch||function(e){for(var t=e.h.segmentPrefetchLimit,n=e.h.prefetchAudioLanguages,i=v(e.l.variants),r=i.next(),a={};!r.done;a={Ra:void 0},r=i.next())if(a.Ra=r.value,a.Ra.audio)if(e.o.has(a.Ra.audio)){if(l8(r=e.o.get(a.Ra.audio),t),!(0<t&&n.some(function(e){return function(t){return nR(e.Ra.audio.language,t)}}(a)))){var o=e.i.get(a.Ra.audio.type);r!==(o&&o.T)&&l5(r),e.o.delete(a.Ra.audio)}}else!(0>=t)&&n.some(function(e){return function(t){return nR(e.Ra.audio.language,t)}}(a))&&(r=cu(e,a.Ra.audio))&&(a.Ra.audio.segmentIndex||a.Ra.audio.createSegmentIndex(),e.o.set(a.Ra.audio,r))}(this)},b.start=function(e){var t=this;return B(function(n){if(1==n.g){var i,r,a,o,s,u,l,c,d,h,f;return C(n,(i=t,r=e||new Map,B(function(e){if(1==e.g){if(a=ns,!i.j)throw new tf(2,5,5006);return o=new Map,s=new Set,i.j.audio&&(o.set(a.X,i.j.audio),s.add(i.j.audio)),i.j.video&&(o.set(a.ia,i.j.video),s.add(i.j.video)),i.u&&(o.set(a.ua,i.u),s.add(i.u)),C(e,i.g.$.init(o,i.l.sequenceMode,i.l.type,i.l.ignoreManifestTimestampsInSegmentsMode),2)}for(uH(i.m),i.updateDuration(),l=(u=v(o.keys())).next();!l.done;l=u.next())c=l.value,d=o.get(c),i.i.has(c)||(h=cs(i,d),r.has(d.id)&&(function(e,t){e.l=t,e=v(e.h.values());for(var n=e.next();!n.done;n=e.next())n.value.g=t}(f=r.get(d.id),function(e,t,n){return cp(e,t,n||null,i.h.retryParameters,i.g.Rb)}),h.T=f),i.i.set(c,h),cm(i,h,0));M(e)})),2)}uH(t.m),t.D=!0,M(n)})},b.oc=function(){if(this.g)for(var e=this.g.yc(),t=v(this.i.keys()),n=t.next();!n.done;n=t.next()){var i=n.value;n=this.i.get(i);var r=this.g.$;if(!(r=!r.A&&(i==no?null!=(r=r.g).g&&null!=r.h&&e>=r.g&&e<r.h:ln(r=lA(r,i),e)))){if(n.T&&(n.T.g=null),"audio"===n.type){r=v(this.o.values());for(var a=r.next();!a.done;a=r.next())a.value.g=null}n.ja=null,(null!=lS(this.g.$,i)||n.Ca)&&co(this,n),n.Ga&&(n.Ga.abort(),n.Ga=null),i===no&&(i=this.g.$).F&&i.F.sc(),n.oc=!0}}},b.updateDuration=function(){var e=this.l.presentationTimeline.getDuration();1/0>e?this.g.$.gb(e):this.g.$.gb(this.h.infiniteLiveStreamDuration?1/0:0x100000000)},A(cE,r7),(b=cE.prototype).getStartTime=function(){return this.A},b.gd=function(){return this.L},b.be=function(){return this.i},b.getStats=function(){return this.U},b.start=function(){var e,t=this;B(function(n){var i,r,a,o,s,u,l,c,d,h,f,p;switch(n.g){case 1:return C(n,Promise.resolve(),2);case 2:return D(n,3),C(n,(i=t,B(function(e){switch(e.g){case 1:if(cM(i,"manifest-parser"),i.l||(i.D=aW(i.L,i.R),i.l=i.D(),i.l.configure(i.g.manifest)),r=Date.now()/1e3,cM(i,"manifest"),i.i){e.s(2);break}return C(e,i.l.start(i.L,i.Ma),3);case 3:i.i=e.h;case 2:return i.aa.resolve(),a=new r8("manifestparsed",void 0),C(e,Promise.resolve(),4);case 4:if(i.dispatchEvent(a),0==i.i.variants.length)throw new tf(2,4,4036);(function(e){function t(e){return e.video&&e.audio||e.video&&e.video.codecs.includes(",")}e.variants.some(t)&&(e.variants=e.variants.filter(t))})(i.i),o=Date.now()/1e3-r,i.U.K=o,M(e)}})),5);case 5:if(cC(t),tK("webkit")){n.s(6);break}return C(n,cD(t),7);case 7:cC(t);case 6:return C(n,(s=t,B(function(e){return(s.o||(s.o=new u5(s.g.preferredAudioLanguage,s.g.preferredVariantRole,s.g.preferredAudioChannelCount,s.g.preferredVideoHdrLevel,s.g.preferSpatialAudio,s.g.preferredVideoLayout,s.g.preferredAudioLabel,s.g.preferredVideoLabel,s.g.mediaSource.codecSwitchingStrategy,s.g.manifest.dash.enableAudioGroups)),s.wa&&(u=s.g.abrFactory,s.B=u,s.j=u(),s.j.configure(s.g.abr)),s.ya&&(l=s.i.presentationTimeline.Y(),c=n5(s.i.variants),d=s.o.create(c),s.j.configure(s.g.abr),s.j.setVariants(Array.from(d.values())
1),h=s.j.chooseVariant(!0)))?(f=[],s.fa=h,h.video&&f.push(cR(s,h.video,l)),h.audio&&f.push(cR(s,h.audio,l)),C(e,Promise.all(f),0)):e.s(0)})),8);case 8:if(cC(t),!t.h){n.s(9);break}return C(n,(p=t.h,B(function(e){return 1==e.g?p.L?C(e,p.l,3):e.s(0):C(e,Promise.all(p.R.map(function(e){return e.promise})),0)})),10);case 10:cC(t);case 9:t.m.resolve(),R(n,0);break;case 3:e=N(n),t.m.reject(e),M(n)}})},b.dispatchEvent=function(e){return this.M?this.M.dispatchEvent(e):r7.prototype.dispatchEvent.call(this,e)},b.onError=function(e){2===e.severity&&(this.m.reject(e),this.destroy());var t=(new Map).set("detail",e);t=new r8("error",t),this.dispatchEvent(t),t.defaultPrevented&&(e.handled=!0)},b.configure=function(e,t){e=oK(e,t),oZ(this.g,e)},b.getConfiguration=function(){return nF(this.g)},b.Kh=function(){return this.m},b.destroy=function(){var e,t,n=this;return B(function(i){switch(i.g){case 1:if(n.u=!0,!n.l||n.ea){i.s(2);break}return C(i,n.l.stop(),2);case 2:if(!n.j||n.V){i.s(4);break}return C(i,n.j.stop(),4);case 4:if(n.F&&!n.ka&&n.F.release(),!n.h||n.W){i.s(6);break}return C(i,n.h.destroy(),6);case 6:if(0<n.K.size&&!n.la)for(t=(e=v(n.K.values())).next();!t.done;t=e.next())l5(t.value);M(i)}})},q("shaka.media.PreloadManager",cE),cE.prototype.destroy=cE.prototype.destroy,cE.prototype.waitForFinish=cE.prototype.Kh,A(cN,r7),cN.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,r7.prototype.release.call(this)},cN.prototype.j=function(e,t){if(!this.l||0!=e){this.l=!1;for(var n=v(this.i.g),i=n.next();!i.done;i=n.next()){i=i.value;var r=this.g.get(i),a=e<i.startTime?cL:e>i.endTime?cO:cj;this.g.set(i,a);for(var o=v(this.m),s=o.next();!s.done;s=o.next())(s=s.value).Xb==r&&s.Wb==a&&s.Nb(i,t)}}};var cL=1,cj=2,cO=3;function cU(e,t,n,i,r,a){if(200<=n&&299>=n&&202!=n)return{uri:r||i,originalUri:i,data:t,status:n,headers:e,fromCache:!!e["x-shaka-from-cache"]};var o=null;try{o=t$(t)}catch(e){}throw new tf(401==n||403==n?2:1,1,1001,i,n,o,e,a,r||i)}function c_(){}function cB(e,t,n,i,r){var a,o,s,u,l,c,d,h,f,p,g,m,v,y,b,w,x,T,S,A=new cX;uV(t.headers).forEach(function(e,t){A.append(t,e)});var E=new cG,k={Ze:!1,Zf:!1};if(e=new r1((a=e,o=n,s={body:t.body||void 0,headers:A,method:t.method,signal:E.signal,credentials:t.allowCrossSiteCredentials?"include":void 0},u=k,l=i,c=r,d=t.streamDataCallback,e=B(function(e){switch(e.g){case 1:return h=cV,f=cK,v=m=0,y=Date.now(),D(e,2),C(e,h(a,s),4);case 4:if(c(cF((p=e.h).headers)),"HEAD"==s.method){e.s(5);break}return b=p.clone().body.getReader(),x=(w=p.headers.get("Content-Length"))?parseInt(w,10):0,new f({start:function(e){!function t(){var n,i,r;return B(function(a){switch(a.g){case 1:return D(a,2),C(a,b.read(),4);case 4:n=a.h,R(a,3);break;case 2:return N(a),a.return();case 3:if(n.done||(m+=n.value.byteLength,!d)){a.s(5);break}return C(a,d(n.value),5);case 5:(100<(i=Date.now())-y||n.done)&&(r=n.done?0:x-m,l(i-y,m-v,r),v=m,y=i),n.done?e.close():(e.enqueue(n.value),t()),M(a)}})}()}}),C(e,p.arrayBuffer(),6);case 6:g=e.h;case 5:R(e,3);break;case 2:if(T=N(e),u.Ze)throw new tf(1,1,7001,a,o);if(u.Zf)throw new tf(1,1,1003,a,o);throw new tf(1,1,1002,a,T,o);case 3:return S=cF(p.headers),e.return(cU(S,g,p.status,a,p.url,o))}})),function(){return k.Ze=!0,E.abort(),Promise.resolve()}),t=t.retryParameters.timeout){var I=new tT(function(){k.Zf=!0,E.abort()});I.da(t/1e3),e.finally(function(){I.stop()})}return e}function cF(e){var t={};return e.forEach(function(e,n){t[n.trim()]=e}),t}function cH(){if(!e.ReadableStream)return!1;try{new ReadableStream({})}catch(e){return!1}return!!e.Response&&!!new Response("").body&&!(!e.fetch||"polyfill"in e.fetch||!e.AbortController)}q("shaka.net.HttpFetchPlugin",c_),c_.isSupported=cH,c_.parse=cB;var cV=e.fetch,cG=e.AbortController,cK=e.ReadableStream,cX=e.Headers;function cW(){}function cq(e,t,n,i,r){var a=new cY,o=Date.now(),s=0;return new r1(new Promise(function(u,l){a.open(t.method,e,!0),a.responseType="arraybuffer",a.timeout=t.retryParameters.timeout,a.withCredentials=t.allowCrossSiteCredentials,a.onabort=function(){l(new tf(1,1,7001,e,n))};var c=!1;for(var d in a.onreadystatechange=function(){2!=a.readyState||c||(r(cz(a)),c=!0)},a.onload=function(t){var r=cz(a),c=a.response;try{i(Date.now()-o,t.loaded-s,0);var d=cU(r,c,a.status,e,a.responseURL,n);u(d)}catch(e){l(e)}},a.onerror=function(t){l(new tf(1,1,1002,e,t,n))},a.ontimeout=function(){l(new tf(1,1,1003,e,n))},a.onprogress=function(e){var t=Date.now();(100<t-o||e.lengthComputable&&e.loaded==e.total)&&(i(t-o,e.loaded-s,4==a.readyState?0:e.total-e.loaded),s=e.loaded,o=t)},t.headers)a.setRequestHeader(d.toLowerCase(),t.headers[d]);a.send(t.body)}),function(){return a.abort(),Promise.resolve()})}function cz(e){var t=e.getAllResponseHeaders().trim().split("\r\n");e={},t=v(t);for(var n=t.next();!n.done;n=t.next())e[(n=n.value.split(": "))[0].toLowerCase()]=n.slice(1).join(": ");return e}cH()&&(an("http",cB,2,!0),an("https",cB,2,!0),an("blob",cB,2,!0)),q("shaka.net.HttpXHRPlugin",cW),cW.parse=cq;var cY=e.XMLHttpRequest;function cJ(e,t,n){var i,r,a,o;return B(function(s){switch(s.g){case 1:var u=new e7(e).Ha.split("/").pop().split(".");if(i=c$[1==u.length?"":u.pop().toLowerCase()])return s.return(i);return r=0,a=ai([e],n),D(s,2),a.method="HEAD",C(s,t.request(r,a).promise,4);case 4:i=s.h.headers["content-type"],R(s,3);break;case 2:if(!(o=N(s))||1002!=o.code&&1001!=o.code){s.s(3);break}return a.method="GET",C(s,t.request(r,a).promise,6);case 6:i=s.h.headers["content-type"];case 3:return s.return(i?i.toLowerCase().split(";").shift():"")}})}an("http",cq,1,!0),an("https",cq,1,!0),an("blob",cq,1,!0);var c$={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/d
1ash+xml",ism:"application/vnd.ms-sstr+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav",sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"};function cQ(e){var t=(e=e.toLowerCase()).replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);switch(t?e="#"+(256|parseInt(t[1],10)).toString(16).slice(1)+(256|parseInt(t[2],10)).toString(16).slice(1)+(256|parseInt(t[3],10)).toString(16).slice(1):e.startsWith("#")&&7<e.length&&(e=e.slice(0,7)),e){case"white":case"#fff":case"#ffffff":return"white";case"lime":case"#0f0":case"#00ff00":return"lime";case"cyan":case"#0ff":case"#00ffff":return"cyan";case"red":case"#f00":case"#ff0000":return"red";case"yellow":case"#ff0":case"#ffff00":return"yellow";case"magenta":case"#f0f":case"#ff00ff":return"magenta";case"blue":case"#00f":case"#0000ff":return"blue";case"black":case"#000":case"#000000":return"black"}return null}function cZ(e,t){var n=[];e=v(c0(e));for(var i=e.next();!i.done;i=e.next())if((i=i.value).isContainer)n.push.apply(n,y(cZ(i.nestedCues,i)));else{var r=i.clone();r.nestedCues=[],r.payload=function e(t,n){if(t.lineBreak)return"\n";if(t.nestedCues.length)return t.nestedCues.map(function(n){return e(n,t)}).join("");if(!t.payload)return t.payload;var i=[],r=700<=t.fontWeight,a="italic"==t.fontStyle,o=t.textDecoration.includes("underline");return r&&i.push(["b"]),a&&i.push(["i"]),o&&i.push(["u"]),""==(a=t.color)&&n&&(a=n.color),r="",(a=cQ(a))&&(r+="."+a),""==(a=t.backgroundColor)&&n&&(a=n.backgroundColor),(n=cQ(a))&&(r+=".bg_"+n),r&&i.push(["c",r]),i.reduceRight(function(e,t){var n=v(t);return"<"+(t=n.next().value)+(void 0===(n=n.next().value)?"":n)+">"+e+"</"+t+">"},t.payload)}(i,t),n.push(r)}return n}function c0(e){var t=[];e=v(e);for(var n=e.next(),i={};!n.done;i={Vd:void 0},n=e.next())i.Vd=n.value,t.some(function(e){return function(t){return e_(e.Vd,t)}}(i))||t.push(i.Vd);return t}function c1(e,t){this.g=null;for(var n=v(Array.from(e.textTracks)),i=n.next();!i.done;i=n.next())"metadata"!==(i=i.value).kind&&"chapters"!==i.kind&&(i.mode="disabled",i.label==t&&(this.g=i));this.g||(this.g=e.addTextTrack("subtitles",t)),this.g.mode="hidden"}function c2(e,t){var n=e.mode;e.mode="showing"==n?"showing":"hidden";for(var i=v(Array.from(e.cues)),r=i.next();!r.done;r=i.next())(r=r.value)&&t(r)&&e.removeCue(r);e.mode=n}function c4(){}function c3(){}function c5(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function c6(t,n,i){var r=this;this.m=!1,this.h=[],this.A=t,this.u=n,this.l=null,this.g=document.createElement("div"),this.g.classList.add("shaka-text-container"),this.g.style.textAlign="center",this.g.style.display="flex",this.g.style.flexDirection="column",this.g.style.alignItems="center",this.g.style.justifyContent="flex-end",this.u.appendChild(this.g),i&&i.captionsUpdatePeriod||eh("UITextDisplayer w/ config","Please migrate to initializing UITextDisplayer with a config."),this.C=new tT(function(){r.A.paused||c8(r)}).Ja(i&&i.captionsUpdatePeriod?i.captionsUpdatePeriod:.25),this.i=new Map,this.j=new ea,this.j.J(document,"fullscreenchange",function(){c8(r,!0)}),this.j.J(this.A,"seeking",function(){c8(r,!0)}),this.j.J(this.A,"resize",function(){var e=r.A,t=e.videoWidth;e=e.videoHeight,t&&e?r.l=t/e:r.l=null}),this.o=null,"ResizeObserver"in e&&(this.o=new ResizeObserver(function(){c8(r,!0)}),this.o.observe(this.g)),this.B=new Map}function c8(e,t){if(e.g){var n=e.A.currentTime;if(!e.m||(void 0===t?0:t)){t=v(e.B.values());for(var i=t.next();!i.done;i=t.next())c5(i.value);c5(e.g),e.i.clear(),e.B.clear()}e.m&&function e(t,n,i,r,a){var o=!1,s=[],u=[];n=v(n);for(var l=n.next();!l.done;l=n.next()){l=l.value,a.push(l);var c=t.i.get(l),d=l.startTime<=r&&l.endTime>r,h=c?c.cg:null;c&&(s.push(c.Xd),c.Ub&&s.push(c.Ub),d||(o=!0,t.i.delete(l),c=null)),d&&(u.push(l),c?function(e,t){for(;null!=t;){if(t==e.g)return!0;t=t.parentElement}return!1}(t,h)||(o=!0):(function(e,t,n){var i=1<n.length,r=i?"span":"div";t.lineBreak&&(r="br"),t.rubyTag&&(r=t.rubyTag),i=!i&&0<t.nestedCues.length;var a=document.createElement(r);if("br"!=r&&function(e,t,n,i,r){var a,o,s,u=t.style,l=0==n.nestedCues.length,c=1<i.length;u.whiteSpace="pre-wrap";var d=n.payload.replace(/\s+$/g,function(e){return"\xa0".repeat(e.length)});if(u.webkitTextStrokeColor=n.textStrokeColor,u.webkitTextStrokeWidth=n.textStrokeWidth,u.color=n.color,u.direction=n.direction,u.opacity=n.opacity,u.paddingLeft=c7(n.linePadding,n,e.u),u.paddingRight=c7(n.linePadding,n,e.u),u.textCombineUpright=n.textCombineUpright,u.textShadow=n.textShadow,n.backgroundImage)u.backgroundImage="url('"+n.backgroundImage+"')",u.backgroundRepeat="no-repeat",u.backgroundSize="contain",u.backgroundPosition="center",n.backgroundColor&&(u.backgroundColor=n.backgroundColor),u.width="100%",u.height="100%";else{if(n.nestedCues.length)var h=t;else h=document.createElement("span"),t.appendChild(h);n.border&&(h.style.border=n.border),r||((t=function(e,t){for(var n=e.length-1;0<=n;n--){var i=t(e[n]);if(i||0===i)return i}return null}(i,function(e){return e.backgroundColor}))?h.style.backgroundColor=t:d&&(h.style.backgroundColor="rgba(0, 0, 0, 0.8)")),d&&(h.textContent=d)}c&&!i[i.length-1].isContainer?u.display="inline":(u.display="flex",u.flexDirection="column",u.alignItems="center","left"==n.textAlign||"start"==n.textAlign?(u.width="100%",u.alignItems="start"):("right"==n.textAlign||"end"==n.textAlign)&&(u.width="100%",u.alignItems="end"),u.justifyContent="before"==n.displayAlign?"flex-start":"center"==n.displayAlign?"center":"flex-end"),l||(u.margin="0"),u.fontFamily=n.fontFamily,u.fontWeight=n.fontWeight.toString(),u.fontStyle=n.fontStyle,u.letterSpacing=n.letterSpacing,u.fontSize=c7(n.fontSize,n,e.u),null!=(i=n.line)&&((l=n.lineInterpretation)==eW&&(l=1,c=16,e.l&&1>e.l&&(c=32),i=0>i?100+i/c*100:i/c*100),1==l&&(u.position="absolute",n.writingMode==eX?(u.width="100%",n.lineAlign==eq?u.top=i+"%":"end"==n.lineAlign&&(u.bottom=100-i+"%")):"vertical-lr"==n.writingMode?(u.height="100%",
1n.lineAlign==eq?u.left=i+"%":"end"==n.lineAlign&&(u.right=100-i+"%")):(u.height="100%",n.lineAlign==eq?u.right=i+"%":"end"==n.lineAlign&&(u.left=100-i+"%")))),u.lineHeight=n.lineHeight,o=(a=n).direction,s=a.positionAlign,a=a.textAlign,"line-left"==(e=s!==eB?s:"left"===a||"start"===a&&o===eK||"end"===a&&"rtl"===o?"line-left":"right"===a||"start"===a&&"rtl"===o||"end"===a&&o===eK?"line-right":"center")?(u.cssFloat="left",null!==n.position&&(u.position="absolute",n.writingMode==eX?(u.left=n.position+"%",u.width="auto"):u.top=n.position+"%")):"line-right"==e?(u.cssFloat="right",null!==n.position&&(u.position="absolute",n.writingMode==eX?(u.right=100-n.position+"%",u.width="auto"):u.bottom=n.position+"%")):null!==n.position&&50!=n.position&&(u.position="absolute",n.writingMode==eX?(u.left=n.position+"%",u.width="auto"):u.top=n.position+"%"),u.textAlign=n.textAlign,u.textDecoration=n.textDecoration.join(" "),u.writingMode=n.writingMode,"writingMode"in document.documentElement.style&&u.writingMode==n.writingMode||(u.webkitWritingMode=n.writingMode),n.size&&(n.writingMode==eX?u.width=n.size+"%":u.height=n.size+"%")}(e,a,t,n,i),n=null,t.region&&t.region.id){var o=t.region,s=e.l===4/3?2.5:1.9;if(n=o.id+"_"+o.width+"x"+o.height+(o.heightUnits==eR?"%":"px")+"-"+o.viewportAnchorX+"x"+o.viewportAnchorY+(o.viewportAnchorUnits==eR?"%":"px"),e.B.has(n))n=e.B.get(n);else{r=document.createElement("span");var u=o.heightUnits==eR?"%":"px",l=o.widthUnits==eR?"%":"px",c=o.viewportAnchorUnits==eR?"%":"px";r.id="shaka-text-region---"+n,r.classList.add("shaka-text-region"),r.style.position="absolute";var d=o.height,h=o.width;2===o.heightUnits&&(d=5.33*o.height,u="%"),2===o.widthUnits&&(h=o.width*s,l="%"),r.style.height=d+u,r.style.width=h+l,2===o.viewportAnchorUnits?(s=o.viewportAnchorY/75*100,u=o.viewportAnchorX/(e.l===4/3?160:210)*100,s-=o.regionAnchorY*d/100,u-=o.regionAnchorX*h/100,r.style.top=s+"%",r.style.left=u+"%"):(r.style.top=o.viewportAnchorY-o.regionAnchorY*d/100+c,r.style.left=o.viewportAnchorX-o.regionAnchorX*h/100+c),0!==o.heightUnits&&0!==o.widthUnits&&0!==o.viewportAnchorUnits&&(o=Math.max(0,Math.min(100-(parseInt(r.style.width.slice(0,-1),10)||0),parseInt(r.style.left.slice(0,-1),10)||0)),r.style.top=Math.max(0,Math.min(100-(parseInt(r.style.height.slice(0,-1),10)||0),parseInt(r.style.top.slice(0,-1),10)||0))+"%",r.style.left=o+"%"),r.style.display="flex",r.style.flexDirection="column",r.style.alignItems="center",r.style.justifyContent="before"==t.displayAlign?"flex-start":"center"==t.displayAlign?"center":"flex-end",e.B.set(n,r),n=r}}r=a,i&&((r=document.createElement("span")).classList.add("shaka-text-wrapper"),r.style.backgroundColor=t.backgroundColor,r.style.lineHeight="normal",a.appendChild(r)),e.i.set(t,{Xd:a,cg:r,Ub:n})}(t,l,a),h=(c=t.i.get(l)).cg,o=!0)),0<l.nestedCues.length&&h&&e(t,l.nestedCues,h,r,a),a.pop()}if(o){for(a=(r=v(s)).next();!a.done;a=r.next())(a=a.value).parentElement&&a.parentElement.removeChild(a);for(u.sort(function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime-t.endTime}),r=(u=v(u)).next();!r.done;r=u.next())(r=t.i.get(r.value)).Ub?(r.Ub.contains(i)&&r.Ub.removeChild(i),i.appendChild(r.Ub),r.Ub.appendChild(r.Xd)):i.appendChild(r.Xd)}}(e,e.h,e.g,n,[])}}function c7(e,t,n){var i=(i=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(e))?{value:Number(i[1]),unit:i[2]}:null;if(!i)return e;var r=i.value;switch(i.unit){case"%":return r/100*n.clientHeight/t.cellResolution.rows+"px";case"c":return n.clientHeight*r/t.cellResolution.rows+"px";default:return e}}function c9(e,t){this.h=e,this.g=t,this.m=void 0,this.i=!1,this.l=!0,this.j=!1}function de(t){return t.g.sessionId||(t.g.sessionId=e.crypto.randomUUID()),{v:1,sf:t.m,sid:t.g.sessionId,cid:t.g.contentId,mtp:t.h.getBandwidthEstimate()/1e3}}function dt(e,t,n){n=void 0===n?{}:n;var i=void 0===i?e.g.useHeaders:i;if(e.g.enabled){Object.assign(n,de(e)),n.pr=e.h.Qa();var r,a,o,s=n.ot===du||n.ot===dl;if(e.j&&s&&(n.bs=!0,n.su=!0,e.j=!1),null==n.su&&(n.su=e.l),r=e,a=n,e=(o=r.g.includeKeys).length?Object.keys(a).reduce(function(e,t){return o.includes(t)&&(e[t]=a[t]),e},{}):a,i)Object.keys(i=function(e){var t=Object.keys(e),n={},i=["Object","Request","Session","Status"],r=[{},{},{},{}],a={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};t=v(t);for(var o=t.next();!o.done;o=t.next())r[null!=a[o=o.value]?a[o]:1][o]=e[o];for(e=0;e<r.length;e++)(a=di(r[e]))&&(n["CMCD-"+i[e]]=a);return n}(e)).length&&Object.assign(t.headers,i);else{var u=di(e);u&&(t.uris=t.uris.map(function(e){return dr(e,u)}))}}}function dn(e,t){if(!(t=e.h.ab()[t]).length)return 0;var n=e.h.getCurrentTime();return(e=t.find(function(e){return e.start<=n&&e.end>=n}
1))?1e3*(e.end-n):0}function di(e){function t(e){return 100*n(e/100)}function n(e){return Math.round(e)}var i=[],r={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(e){return encodeURIComponent(e)},rtp:t,tb:n},a=Object.keys(e||{}).sort();a=v(a);for(var o=a.next();!o.done;o=a.next()){var s,u=e[o=o.value];if(!Number.isNaN(s=u)&&null!=s&&""!==s&&!1!==s&&("v"!==o||1!==u)&&("pr"!=o||1!==u)){var l=r[o];l&&(u=l(u));var c=void 0;c="string"==(l=typeof u)&&"ot"!==o&&"sf"!==o&&"st"!==o?o+"="+JSON.stringify(u):"boolean"===l?o:"symbol"===l?o+"="+u.description:o+"="+u,i.push(c)}}return i.join(",")}function dr(e,t){return!t||e.includes("offline:")?e:((e=new e7(e)).g.set("CMCD",t),e.toString())}(b=c1.prototype).configure=function(){},b.remove=function(e,t){return!!this.g&&(c2(this.g,function(n){return n.startTime<t&&n.endTime>e}),!0)},b.append=function(e){var t=cZ(e),n=[];e=this.g.cues?Array.from(this.g.cues):[],t=v(t);for(var i=t.next(),r={};!i.done;r={dc:void 0},i=t.next())r.dc=i.value,!e.some(function(e){return function(t){return t.startTime==e.dc.startTime&&t.endTime==e.dc.endTime&&t.text==e.dc.payload}}(r))&&r.dc.payload&&(i=function(e){function t(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return(t>>>0).toString()}if(e.startTime>=e.endTime)return null;var n=new VTTCue(e.startTime,e.endTime,e.payload);n.id=t(e.startTime.toString())+t(e.endTime.toString())+t(e.payload),n.lineAlign=e.lineAlign,n.positionAlign=e.positionAlign,e.size&&(n.size=e.size);try{n.align=e.textAlign}catch(e){}return"center"==e.textAlign&&"center"!=n.align&&(n.align="middle"),"vertical-lr"==e.writingMode?n.vertical="lr":"vertical-rl"==e.writingMode&&(n.vertical="rl"),1==e.lineInterpretation&&(n.snapToLines=!1),null!=e.line&&(n.line=e.line),null!=e.position&&(n.position=e.position),n}(r.dc))&&n.push(i);for(t=(e=v(e=n.slice().sort(function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime!=t.endTime?e.endTime-t.startTime:"line"in VTTCue.prototype?n.indexOf(t)-n.indexOf(e):n.indexOf(e)-n.indexOf(t)}))).next();!t.done;t=e.next())this.g.addCue(t.value)},b.destroy=function(){return this.g&&(c2(this.g,function(){return!0}),this.g.mode="disabled"),this.g=null,Promise.resolve()},b.isTextVisible=function(){return"showing"==this.g.mode},b.setTextVisibility=function(e){this.g.mode=e?"showing":"hidden"},q("shaka.text.SimpleTextDisplayer",c1),c1.prototype.setTextVisibility=c1.prototype.setTextVisibility,c1.prototype.isTextVisible=c1.prototype.isTextVisible,c1.prototype.destroy=c1.prototype.destroy,c1.prototype.append=c1.prototype.append,c1.prototype.remove=c1.prototype.remove,c1.prototype.configure=c1.prototype.configure,(b=c4.prototype).configure=function(){},b.remove=function(){},b.append=function(){},b.destroy=function(){},b.isTextVisible=function(){return!1},b.setTextVisibility=function(){},q("shaka.text.StubTextDisplayer",c4),c4.prototype.setTextVisibility=c4.prototype.setTextVisibility,c4.prototype.isTextVisible=c4.prototype.isTextVisible,c4.prototype.destroy=c4.prototype.destroy,c4.prototype.append=c4.prototype.append,c4.prototype.remove=c4.prototype.remove,c4.prototype.configure=c4.prototype.configure,q("shaka.util.Dom",c3),c3.removeAllChildren=c5,(b=c6.prototype).configure=function(e){this.C&&this.C.Ja(e.captionsUpdatePeriod)},b.append=function(e){var t=[].concat(y(this.h));e=v(c0(e));for(var n=e.next(),i={};!n.done;i={Wd:void 0},n=e.next())i.Wd=n.value,t.some(function(e){return function(t){return e_(t,e.Wd)}}(i))||this.h.push(i.Wd);c8(this)},b.destroy=function(){return this.g&&(this.u.removeChild(this.g),this.g=null,this.m=!1,this.h=[],this.C&&this.C.stop(),this.i.clear(),this.j&&(this.j.release(),this.j=null),this.o&&(this.o.disconnect(),this.o=null)),Promise.resolve()},b.remove=function(e,t){if(!this.g)return!1;var n=this.h.length;return this.h=this.h.filter(function(n){return n.startTime<e||n.endTime>=t}),c8(this,n>this.h.length),!0},b.isTextVisible=function(){return this.m},b.setTextVisibility=function(e){this.m=e},q("shaka.text.UITextDisplayer",c6),c6.prototype.setTextVisibility=c6.prototype.setTextVisibility,c6.prototype.isTextVisible=c6.prototype.isTextVisible,c6.prototype.remove=c6.prototype.remove,c6.prototype.destroy=c6.prototype.destroy,c6.prototype.append=c6.prototype.append,c6.prototype.configure=c6.prototype.configure,q("shaka.text.WebVttGenerator",function(){}),c9.prototype.configure=function(e){this.g=e};var da="m",ds="a",du="v",dl="av",dc="i",dd="c",dh="tt";function df(e){this.h=e,this.g=null}
1function dp(e){return!e||"false"!==e.toLowerCase()&&(/^[-0-9]/.test(e)?parseInt(e,10):e.replace(/["]+/g,""))}q("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",Sh:"s",OTHER:"o"}),(b=df.prototype).configure=function(e){this.h=e},b.mf=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(dm)?1e3*this.g.get(dm):null},b.lf=function(){return this.h.enabled&&this.g&&this.g.has(dg)?1e3*this.g.get(dg):null},b.Lg=function(){return this.h.enabled&&this.g&&this.g.has(dv)?this.g.get(dv):null},b.Mg=function(){return this.h.enabled&&this.g&&this.g.has(dy)?this.g.get(dy):null},b.getBandwidthEstimate=function(e){var t=this.lf();if(!t)return e;var n=this.h.estimatedThroughputWeightRatio;return 0<n&&1>=n?e*(1-n)+t*n:e},q("shaka.util.CmsdManager",df),df.prototype.getBandwidthEstimate=df.prototype.getBandwidthEstimate,df.prototype.getRoundTripTime=df.prototype.Mg,df.prototype.getResponseDelay=df.prototype.Lg,df.prototype.getEstimatedThroughput=df.prototype.lf,df.prototype.getMaxBitrate=df.prototype.mf;var dg="etp",dm="mb",dv="rd",dy="rtt";function db(){this.g=null,this.h=[]}function dw(e,t){return B(function(n){if(1==n.g)return e.g?C(n,new Promise(function(t){return e.h.push(t)}),2):n.s(2);e.g=t,M(n)})}function dx(t,n){r7.call(this);var i,r=this;this.K=!1,this.m=hl,this.zd=this.h=null,this.ka=!1,this.Fd=new ea,this.Gc=new ea,this.l=new ea,this.Ya=new ea,this.lb=new ea,this.D=this.H=this.B=this.F=null,this.Hd=0,this.W=new db,this.oa=this.Ne=this.U=this.i=this.la=this.C=this.j=this.Ec=this.L=this.Se=this.ea=this.O=this.Fc=this.M=this.qa=this.I=this.bc=null,this.La=!1,this.wa=this.u=null,this.Pe=1e9,this.Mc=[],this.V=NaN,this.g=dq(this),this.R=null,this.Nd=-1,this.Ma=null,this.fa={width:1/0,height:1/0},this.kb=new lc(this.g,this.fa,null),this.Cd=[],this.o=null,this.ya=new u5(this.g.preferredAudioLanguage,this.g.preferredVariantRole,this.g.preferredAudioChannelCount,this.g.preferredVideoHdrLevel,this.g.preferSpatialAudio,this.g.preferredVideoLayout,this.g.preferredAudioLabel,this.g.preferredVideoLabel,this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups,this.g.preferredAudioCodecs),this.mb=this.g.preferredTextLanguage,this.Kc=this.g.preferredTextRole,this.Jc=this.g.preferForcedSubs,this.Hc=[],n&&n(this),this.O=(i=this,new c9({getBandwidthEstimate:function(){return i.u?i.u.getBandwidthEstimate():NaN},ab:function(){return i.ab()},getCurrentTime:function(){return i.h?i.h.currentTime:0},Qa:function(){return i.Qa()},de:function(){return i.de()},Mb:function(){return i.Mb()},Y:function(){return i.Y()}},i.g.cmcd)),this.ea=new df(this.g.cmsd),this.F=dj(this),this.F.De(this.g.streaming.forceHTTP),this.F.Ee(this.g.streaming.forceHTTPS),this.cc=this.aa=this.A=null,this.Qd=!1,this.Qe=new tT(function(){return B(function(e){return 1==e.g?r.aa?C(e,r.vb(r.cc,!0),3):e.s(0):4!=e.g?C(e,r.load(r.aa),4):void(r.Qd?r.cc.pause():r.cc.play(),r.aa=null,r.Qd=!1,M(e))})}),hf&&(this.A=hf(),this.A.configure(this.g.ads),this.lb.J(this.A,"ad-content-pause-requested",function(e){var t;return B(function(n){if(1==n.g)return(r.Qe.stop(),r.aa)?n.s(0):(r.cc=r.h,r.Qd=r.h.ended,t=e.saveLivePosition||!1,C(n,r.cf(!0,t),3));r.aa=n.h,M(n)})}),this.lb.J(this.A,"ad-content-resume-requested",function(e){if(e=e.offset||0,r.aa){var t=r.aa;t.A&&e&&(t.A+=e)}r.Qe.da(.1)}),this.lb.J(this.A,"ad-content-attach-requested",function(){return B(function(e){return r.h||!r.cc?e.s(0):C(e,r.vb(r.cc,!0),0)})})),this.Fd.J(e,"online",function(){d9(r),r.ze()}),this.Bd=new tT(function(){for(var e=Date.now()/1e3,t=!1,n=!0,i=v(r.i.variants),a=i.next();!a.done;a=i.next())0<(a=a.value).disabledUntilTime&&a.disabledUntilTime<=e&&(a.disabledUntilTime=0,t=!0),0<a.disabledUntilTime&&(n=!1);n&&r.Bd.stop(),t&&d1(r,!1,void 0,!1,!1)}),this.va=null,t&&(eh("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.vb(t,!0))}function dT(e){null!=e.L&&(uC(e.L),e.L.release(),e.L=null)}function dS(e,t){return new r8(e,t)}function dA(e,t){e.dispatchEvent(dS("onstatechange",(new Map).set("state",t)))}function dE(e,t){var n;return B(function(i){return 1==i.g?(n=++e.Hd,C(i,dw(e.W,t),2)):n!=e.Hd?(e.W.release(),i.return(!0)):i.return(!1)})}function dk(e,t){var n,i;return t=void 0!==t&&t,B(function(r){if(1==r.g)return(n=null,!(e.i&&e.C&&e.la&&e.U)||e.K)?r.s(2):(i=e.h.currentTime,e.Y(
1)&&!t&&(i=null),C(r,dC(e,e.U,i,e.Ne,!0,!1,!1),3));if(2!=r.g){n=r.h,e.Cd.push(n),e.C&&e.C.setMediaElement&&e.C.setMediaElement(null);var a=n,o=e.C,s=e.la;a.i=e.i,a.l=o,a.D=s,a=n,o=e.wa,a.j=e.u,a.B=o,n.o=e.ya,n.start(),e.i=null,e.C=null,e.la=null,e.u=null,e.wa=null}return r.return(n)})}function dI(e,t,n,i,r){var a,o,s;return r=void 0!==r&&r,B(function(u){return 1==u.g?i?u.s(2):C(u,dD(e,t),3):(2!=u.g&&(i=u.h),e.K=function(e,t){if(!tS())return!0;if(t){if(""==(e.h||tG()).canPlayType(t))return!1;if(!(tS()&&t in aq))return!0;if(nb(t))return tP()&&(e.g.drm.servers["com.apple.fps"]||e.g.drm.servers["com.apple.fps.1_0"])?e.g.streaming.useNativeHlsForFairPlay:e.g.streaming.preferNativeHls}return!1}(e,i),e.K)?u.return(null):(a=!1,o=!0,r&&(e.u&&e.wa==e.g.abrFactory&&(o=!1),e.h&&"AUDIO"===e.h.nodeName&&(a=!0)),s=dC(e,t,n,i||null,!r,a,o),r||(s=s.then(function(t){return e.Cd.push(t),t})),u.return(s))})}function dC(e,t,n,i,r,a,o){var s,u,l,c,d,h,f,p,g,m,y,b,w;return r=void 0===r||r,a=void 0!==a&&a,o=void 0===o||o,B(function(x){if(1==x.g)return s=null,u=nF(e.g),a&&(u.manifest.disableVideo=!0),l=function(){return s.O&&s.u?null:s},c=function(){return l()?l().getConfiguration():e.g},d=function(t,n){l()?s.configure(t,n):e.configure(t,n)},1/0!=e.fa.width||1/0!=e.fa.height?x.s(2):C(x,tX(),3);2!=x.g&&(h=x.h,e.fa.width=h.width,e.fa.height=h.height),f=new lc(u,e.fa,null),p={networkingEngine:e.F,filter:function(e){var t;return B(function(n){return 1==n.g?C(n,ld(f,e),2):4!=n.g?n.h?(t=dS("trackschanged"),C(n,Promise.resolve(),4)):n.s(0):void(s.dispatchEvent(t),M(n))})},makeTextStreamsForClosedCaptions:function(t){return function(e,t){for(var n=new Set,i=v(t.textStreams),r=i.next();!r.done;r=i.next())"application/cea-608"!=(r=r.value).mimeType&&"application/cea-708"!=r.mimeType||n.add(r.originalId);
1for(r=(i=v(t.variants)).next();!r.done;r=i.next())if((r=r.value.video)&&r.closedCaptions){for(var a=v(r.closedCaptions.keys()),o=a.next();!o.done;o=a.next())if(o=o.value,!n.has(o)){var s=o.startsWith("CC")?"application/cea-608":"application/cea-708",u=new aE,l=r.closedCaptions.get(o);s={id:e.Pe++,originalId:o,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:u,mimeType:s,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:l,originalLanguage:l,label:null,type:no,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:r.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set([nd(s,"")])},t.textStreams.push(s),n.add(o)}}}(e,t)},onTimelineRegionAdded:function(e){var t=s.F;e:{for(var n=v(t.g),i=n.next();!i.done;i=n.next())if((i=i.value).schemeIdUri==e.schemeIdUri&&i.id==e.id&&i.startTime==e.startTime&&i.endTime==e.endTime){n=i;break e}n=null}null==n&&(t.g.add(e),e=new r8("regionadd",new Map([["region",e]])),t.dispatchEvent(e))},onEvent:function(e){return s.dispatchEvent(e)},onError:function(e){return s.onError(e)},isLowLatencyMode:function(){return c().streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return c().streaming.autoLowLatencyMode},enableLowLatencyMode:function(){d("streaming.lowLatencyMode",!0)},updateDuration:function(){e.j&&s.O&&e.j.updateDuration()},newDrmInfo:function(e){var t=s.h,n=t?t.g:null;n&&t.u&&lf(f,n.keySystem,e)},onManifestUpdated:function(){var t=(new Map).set("isLive",e.Y());s.dispatchEvent(dS("manifestupdated",t)),ck(s,!1,function(){e.A&&e.A.onManifestUpdated(e.Y())})},getBandwidthEstimate:function(){return e.u.getBandwidthEstimate()},onMetadata:function(t,n,i,r){var a=t;"com.apple.hls.interstitial"==t&&(a="com.apple.quicktime.HLS",t={startTime:n,endTime:i,values:r},e.A)&&e.A.onInterstitialMetadata(e,e.h,t),t=(r=v(r)).next();for(var o={};!t.done;o={Ef:void 0},t=r.next())o.Ef=t.value,ck(s,!1,function(t){return function(){dP(e,n,i,a,t.Ef)}}(o))},disableStream:function(t){return e.disableStream(t,e.g.streaming.maxDisabledTime)}},(g=new l0(function(){return e.Db()})).addEventListener("regionadd",function(t){var n=t.region;ht(e,"timelineregionadded",n,s),ck(s,!1,function(){e.A&&e.A.onDashTimedMetadata(n)})}),m=null,u.streaming.observeQualityChanges&&((m=new s_(function(){return e.ab()})).addEventListener("qualitychange",function(t){hn(e,t.quality,t.position)}),m.addEventListener("audiotrackchange",function(t){hn(e,t.quality,t.position,!0)})),y=!0,b={Rb:e.F,onError:function(e){return s.onError(e)},Cf:function(t){ck(s,!0,function(){e:{var n=t,i=dS("keystatuschanged");e.dispatchEvent(i);var r=Object.keys(n);1==r.length&&""==r[0]&&(r=["00"],n={"00":n[""]}),i=1==r.length&&"00"==r[0];var a=lg(e.kb),o=!1;if(r.length){r=v(e.i.variants);for(var s=r.next();!s.done;s=r.next()){s=s.value;var u=[];s.audio&&u.push(s.audio),s.video&&u.push(s.video),u=v(u);for(var l=u.next();!l.done;l=u.next()){var c=l.value;if(l=s.allowedByKeySystem,c.keyIds.size){s.allowedByKeySystem=!0,c=v(c.keyIds);for(var d=c.next();!d.done;d=c.next())d=d.value,((d=n[i?"00":d])||e.B.D)&&(s.allowedByKeySystem=s.allowedByKeySystem&&!!d&&!a.includes(d))}l!=s.allowedByKeySystem&&(o=!0)}}}if(o&&(d3(e),!dZ(e)))break e;(n=e.j.j)&&!n.allowedByKeySystem&&d1(e)}})},onExpirationUpdated:function(e,t){var n=dS("expirationupdated");s.dispatchEvent(n),(n=s.l)&&n.onExpirationUpdated&&n.onExpirationUpdated(e,t)},onEvent:function(t){s.dispatchEvent(t),"drmsessionupdate"==t.type&&y&&(y=!1,t=Date.now()/1e3-s.oa,(e.o||s.getStats()).j=t,e.L&&uC(e.L))}},w=dj(e,l);for(var T=e.F,S=w,A=v(T.g),E=A.next();!E.done;E=A.next())S.g.add(E.value);for(A=(T=v(T.h)).next();!A.done;A=T.next())S.h.add(A.value);return s=new cE(t,i,n,{config:u,hh:p,qh:g,ph:m,cd:function(){return e.cd(b)},gh:f,networkingEngine:w,lg:r,kg:o}),x.return(s)})}function dM(e){var t=e.g.abr;return{max:(e=e.g.restrictVariantsByBandwidth&&t.enabled)?t.restrictions.maxBandwidth:1/0,min:e?t.restrictions.minBandwidth:0}}function dD(e,t){var n,i;
1return B(function(r){return 1==r.g?(n=e.g.manifest.retryParameters,C(r,cJ(t,e.F,n),2)):("application/x-mpegurl"==(i=r.h)&&tP()&&(i="application/vnd.apple.mpegurl"),r.return(i))})}function dR(e){var t,n,i,r;return B(function(a){if(1==a.g){var o,s,u,l;return dA(e,"media-source"),(n=(t=e.g.textDisplayFactory)()).configure?n.configure(e.g.textDisplayer):eh("Text displayer w/ configure",'Text displayer should have a "configure" method!'),e.Oe=t,(o=e.h,s=n,u={Cg:function(){return e.keySystem()},onMetadata:function(t,n,i){dN(e,t,n,i)}},l=e.L,i=new lv(o,s,u,l)).configure(e.g.mediaSource),r=e.g.manifest.segmentRelativeVttTiming,i.ea=r,C(a,i.K,2)}e.H=i,M(a)})}function dN(e,t,n,i){t=v(t);for(var r=t.next();!r.done;r=t.next())if((r=r.value).data&&"number"==typeof r.cueTime&&r.frames){var a=r.cueTime+n,o=i;o&&a>o&&(o=a);for(var s=v(r.frames),u=s.next();!u.done;u=s.next())dP(e,a,o,"org.id3",u.value);e.A&&e.A.onHlsTimedMetadata(r,a)}}function dP(e,t,n,i,r){t=(new Map).set("startTime",t).set("endTime",n).set("metadataType",i).set("payload",r),e.dispatchEvent(dS("metadata",t))}function dL(e,t){if(t&&"chapters"==t.kind){t.mode="hidden";var n=new tT(function(){t.mode="hidden"}).Gd().da(.5);e.Hc.push(function(){n.stop()})}}function dj(e,t){function n(n){t()?t().dispatchEvent(n):e.dispatchEvent(n)}function i(e){t()?ck(t(),!0,e):e()}return t||(t=function(){return null}),new at(function(n,i,r,a){var o=t()?t().j:e.u;o&&o.segmentDownloaded(n,i,r,a)},function(t,r,a){n(dS("downloadheadersreceived",r=(new Map).set("headers",t).set("request",r).set("requestType",a))),i(function(){if(e.ea){var n=e.ea;if(n.h.enabled){var i=t["cmsd-static"];if(i)try{var r=new Map,a=i.split(",");for(i=0;i<a.length;i++){var o=a[i].split("=");r.set(o[0],dp(o[1]))}}catch(e){}if(r=t["cmsd-dynamic"]){try{var s=new Map,u=r.split(";");for(r=1;r<u.length;r++){var l=u[r].split("=");s.set(l[0],dp(l[1]))}var c=s}catch(e){c=null}c&&(n.g=c)}}}})},function(e,t,i,r){n(dS("downloadfailed",e=(new Map).set("request",e).set("error",t).set("httpResponseCode",i).set("aborted",r)))},function(t,n,r){i(function(){var i=e.O,a=r;if(a=void 0===a?{}:a,i.g.enabled)if("HEAD"===n.method)dt(i,n);else switch(t){case 0:try{if(i.g.enabled){if(a.type){e:{switch(a.type){case 4:var o="d";break e;case 3:case 2:o="h";break e;case 5:o="s";break e}o=void 0}i.m=o}dt(i,n,{ot:da,su:!i.i})}}catch(e){en("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",e)}break;case as:try{if(i.g.enabled){var s=a.segment;o=0,s&&(o=s.endTime-s.startTime);var u={d:1e3*o,st:i.h.Y()?"l":"v"};u.ot=function(e){if(0===e.type)return dc;if(e=e.stream){var t=e.type;if("video"==t)return e.codecs&&e.codecs.includes(",")?dl:du;if("audio"==t)return ds;if("text"==t)return"application/mp4"===e.mimeType?dh:dd}}(a);var l=u.ot===du||u.ot===ds||u.ot===dl||u.ot===dh,c=a.stream;if(c){var d=i.h.Qa();if(l&&(u.bl=function(e,t){if(!(t=e.h.ab()[t]).length)return NaN;var n=e.h.getCurrentTime();return(e=t.find(function(e){return e.start<=n&&e.end>=n}))?1e3*(e.end-n):NaN}(i,c.type),u.ot!==dh)){var h=dn(i,c.type);u.dl=d?h/Math.abs(d):h}if(c.bandwidth&&(u.br=c.bandwidth/1e3),c.segmentIndex&&s){var f=c.segmentIndex.nb(s.endTime,!0,0>d);if(f){var p=f.next().value;if(p&&p!=s){if(!ej(s.Z(),p.Z())){var g=p.Z()[0],m=n.uris[0],y=new URL(g),b=new URL(m);if(y.origin!==b.origin)var w=g;else{for(var x=y.pathname.split("/").slice(1),T=b.pathname.split("/").slice(1,-1);x[0]===T[0];)x.shift(),T.shift();for(;T.length;)T.shift(),x.unshift("..");w=x.join("/")}u.nor=w}if((p.Ia||p.ta)&&(s.Ia!=p.Ia||s.ta!=p.ta)){var S=p.Ia+"-";p.ta&&(S+=p.ta),u.nrr=S}}}var A=i.h.Qa()||1,E=dn(i,c.type)||500,k=c.bandwidth,I=k?k*(s.endTime-s.startTime)/1e3/(E/A/1e3)*i.g.rtpSafetyFactor:NaN;isNaN(I)||(u.rtp=I)}}l&&u.ot!==dh&&(u.tb=function(e,t){var n=e.h.Mb();if(!n.length)return NaN;e=n[0],n=v(n);for(var i=n.next();!i.done;i=n.next())"variant"===(i=i.value).type&&i.bandwidth>e.bandwidth&&(e=i);switch(t){case du:return e.videoBandwidth||NaN;case ds:return e.audioBandwidth||NaN;default:return e.bandwidth}}(i,u.ot)/1e3),dt(i,n,u)}}catch(e){en("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",e)}break;
1case 2:case 5:case 6:dt(i,n,{ot:"k"});break;case 4:dt(i,n,{ot:"o"})}})},function(n,i,r,a){(n=t()?t().l:e.C)&&n.banLocation&&n.banLocation(a)},function(n,i){if(i.data){i=i.data.byteLength;var r=t()?t().getStats():e.o;r&&(r.Hb=isNaN(r.Hb)?i:r.Hb+i,0===n&&(r.uf=i))}},function(t,n){ha(e,t=dS("segmentdownloaded",t=(new Map).set("detail",{response:n,request:t})))})}function dO(e,t,n){e.M=new uL,e.M.g=uO,uj(e.M,n,Math.min(.5,n/2)),dz(e),e.qa=new tT(function(){dU(e)}),e.g.streaming.rebufferingGoal&&e.qa.Ja(.25),e.l.J(t,"waiting",function(){return dU(e)}),e.l.J(t,"stalled",function(){return dU(e)}),e.l.J(t,"canplaythrough",function(){return dU(e)}),e.l.J(t,"progress",function(){return dU(e)}),e.l.J(t,"seeked",function(){return dU(e)})}function dU(e){switch(e.m){case hd:if(e.h.ended)var t=!0;else{var n=lt(e.h.buffered);t=null!=n&&n>=e.h.duration-1}break;case hc:e:if(e.h.ended||lx(e.H))t=!0;else{if(e.i.presentationTimeline.Y()){n=e.i.presentationTimeline.yb();var i=lt(e.h.buffered);if(null!=i&&i>=n){t=!0;break e}}t=!1}break;default:t=!1}i=li(e.h.buffered,e.h.currentTime),n=e.M;var r=t,a=n.i.get(n.g);t=n.g,i=r||i>=a&&0<i?uU:uO,n.g=i,(t=t!=i)&&i===uU&&(n.h=Date.now()),t&&dz(e)}function d_(e){if(e.kb=new lc(e.g,e.fa,e.B),e.C){var t=nF(e.g.manifest);e.h&&"AUDIO"===e.h.nodeName&&(t.disableVideo=!0),e.C.configure(t)}if(e.B&&e.B.configure(e.g.drm),e.j){e.j.configure(e.g.streaming);try{e.m!=hu&&lh(e.kb,e.i)&&d3(e)}catch(t){he(e,t)}e.u&&dZ(e),(t=e.j.j)&&(!t.allowedByApplication||!t.allowedByKeySystem)&&d1(e)}if(e.F&&(e.F.De(e.g.streaming.forceHTTP),e.F.Ee(e.g.streaming.forceHTTPS)),e.H)if(e.H.configure(e.g.mediaSource),e.H.ea=e.g.manifest.segmentRelativeVttTiming,t=e.g.textDisplayFactory,e.Oe!=t){var n=t();n.configure?n.configure(e.g.textDisplayer):eh("Text displayer w/ configure",'Text displayer should have a "configure" method!');var i=e.H,r=i.D;i.D=n,r&&(n.setTextVisibility(r.isTextVisible()),r.destroy()),i.g&&(i.g.j=n),e.Oe=t,e.j&&(n=(t=e.j).i.get(no))&&ca(t,n.stream,!0,0,!0)}else(t=e.H.D).configure&&t.configure(e.g.textDisplayer);e.u&&(e.u.configure(e.g.abr),e.g.abr.enabled?e.u.enable():e.u.disable(),d7(e)),e.M&&(t=e.g.streaming.rebufferingGoal,e.i&&(t=Math.max(t,e.i.minBufferTime)),uj(e.M,t,Math.min(.5,t/2))),e.qa&&(e.g.streaming.rebufferingGoal?e.qa.Ja(.25):e.qa.stop()),e.i&&hr(e.i.presentationTimeline,e.g.playRangeStart,e.g.playRangeEnd),e.A&&e.A.configure(e.g.ads),e.O&&e.O.configure(e.g.cmcd),e.ea&&e.ea.configure(e.g.cmsd)}function dB(e){return e&&(e=/(\d+)x(\d+)/.exec(e))?{Ib:parseInt(e[1],10),rows:parseInt(e[2],10)}:null}function dF(e,t){var n=e.segmentIndex.find(t);if(null==n)return null;var i=dB((n=e.segmentIndex.get(n)).tilesLayout||e.tilesLayout);if(!i)return null;var r=e.width||0;e=e.height||0;var a=r/i.Ib,o=e/i.rows,s=i.Ib*i.rows,u=n.i-n.startTime;u=n.B||u/s;var l=n.startTime,c=0,d=0;return 1<s&&(t=Math.floor((t-n.startTime)/u),l=n.startTime+t*u,c=t%i.Ib*a,d=Math.floor(t/i.Ib)*o),t=!1,(i=n.A)&&(t=!0,o=i.height,c=i.positionX,d=i.positionY,a=i.width),{segment:n,imageHeight:e,imageWidth:r,height:o,positionX:c,positionY:d,startTime:l,duration:u,uris:n.Z(),width:a,sprite:t}}function dH(e){return Array.from(e.h.textTracks).filter(function(e){return"metadata"!=e.kind&&"chapters"!=e.kind&&"Shaka Player TextTrack"!=e.label})}function dV(e){return Array.from(e.h.textTracks).filter(function(e){return"chapters"==e.kind})}function dG(e,t){var n;return B(function(i){switch(i.g){case 1:return D(i,2),C(i,cJ(t,e.F,e.g.streaming.retryParameters),4);case 4:n=i.h,R(i,3);break;case 2:N(i);case 3:if(n)return i.return(n);throw new tf(1,2,2011,t)}})}function dK(e,t,n,i,r,a,o){var s;return B(function(u){if(1==u.g)return"text/vtt"!=r||o.length?C(u,dX(e,t,e.F,e.g.streaming.retryParameters),3):u.s(2);2!=u.g&&(t=lO(new Blob([dW(e,u.h,r,o)],{type:"text/vtt"})),r="text/vtt"),s=document.createElement("track");var l=e.O,c=t;try{if(l.g.enabled){var d=de(l);d.ot=dd,d.su=!0;var h=di(d),f=dr(c,h)}else f=c}catch(e){en("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",e),f=c}return s.src=f,s.label=a,s.kind=i,s.srclang=n,e.h.getAttribute("crossorigin")||e.h.setAttribute("crossorigin","anonymous"),e.h.appendChild(s),u.return(s)})}function dX(e,t,n,i){var r,a,o;return B(function(s){if(1==s.g){r=as,(a=ai([t],i)).method="GET";var u=e.O;try{u.g.enabled&&dt(u,a,{ot:dd,su:!0})}catch(e){en("CMCD_TEXT_ERROR","Could not generate text CMCD data.",e)}return C(s,n.request(r,a).promise,2)}return o=s.h,s.return(o.data)})}function dW(e,t,n,i){var r=nk[n];if(r)return n=r(),e={periodStart:0,segmentStart:0,segmentEnd:e.h.duration,vttOffset:0},t=eT(t),function(e,t){function n(e){for(var n=e,i=v(t),r=i.next();!r.done;r=i.next())(r=r.value).end&&r.start<e&&(n+=r.end-r.start);return(10>(e=Math.floor(n/3600))?"0":"")+e+":"+(10>(i=Math.floor(n/60%60))?"0":"")+i+":"+(10>(r=Math.floor(n%60))?"0":"")+r+"."+(100>(n=Math.floor(1e3*n%1e3))?10>n?"00":"0":"")+n}var i=cZ(e);e="WEBVTT\n\n",i=v(i);for(var r=i.next();!r.done;r=i.next())e+=n((r=r.value).startTime)+" --\x3e "+n(r.endTime)+function(e){var t=[];
1switch(e.textAlign){case"left":t.push("align:left");break;case"right":t.push("align:right");break;case eF:t.push("align:middle");break;case"start":t.push("align:start");break;case"end":t.push("align:end")}switch(e.writingMode){case"vertical-lr":t.push("vertical:lr");break;case"vertical-rl":t.push("vertical:rl")}return t.length?" "+t.join(" "):""}(r)+"\n",e+=r.payload+"\n\n";return e}(t=n.parseMedia(t,e,null),i);throw new tf(2,2,2014,n)}function dq(e){var t=oQ();return t.streaming.failureCallback=function(t){if(e.Y()){var n=null;1001==t.code||1002==t.code?(n=1,e.g.streaming.lowLatencyMode&&(n=.1)):1003==t.code&&(n=.1),null!=n&&(t.severity=1,e.ze(n))}},t.textDisplayFactory=function(){if(e.zd){var t=e.getConfiguration();return new c6(e.h,e.zd,t.textDisplayer)}return HTMLMediaElement.prototype.addTextTrack?new c1(e.h,"Shaka Player TextTrack"):new c4},t}function dz(e){var t=e.rf();if(e.o&&e.M&&e.D){if(0==e.g.streaming.rebufferingGoal){var n=e.I;n.j=!1,lB(n)}else(n=e.I).j=t,lB(n);if(e.O&&(n=e.O,t||n.i||(n.i=!0),n.i&&t&&(n.j=!0),n.l=t),dJ(e),n=e.g.streaming.liveSync.dynamicTargetLatency.maxAttempts,e.g.streaming.liveSync.dynamicTargetLatency.enabled&&t&&e.Nd<n){n=e.g.streaming.liveSync.dynamicTargetLatency.maxLatency;var i=e.g.streaming.liveSync.targetLatencyTolerance,r=e.g.streaming.liveSync.dynamicTargetLatency.rebufferIncrement;e.R&&(e.R=Math.min(e.R+ ++e.Nd*r,n-i))}}t=(new Map).set("buffering",t),e.dispatchEvent(dS("buffering",t))}function dY(e){var t=e.h.playbackRate;0!=t&&(e.I&&e.I.set(t),t=dS("ratechange"),e.dispatchEvent(t))}function dJ(e){if(e.o&&e.M){var t=e.o.g,n="playing";e.M.g==uO?n="buffering":e.h.ended?n="ended":e.h.paused&&(n="paused");var i=n;if(null==t.g)t.g={timestamp:Date.now()/1e3,state:i,duration:0},t=!0;else{var r=Date.now()/1e3;t.g.duration=r-t.g.timestamp,t.g.state==i?t=!1:(t.h.push(t.g),t.g={timestamp:r,state:i,duration:0},t=!0)}t&&(n=(new Map).set("newstate",n),e.dispatchEvent(dS("statechanged",n)))}}function d$(e){var t=e.h.playbackRate,n=e.Y();if(e.g.streaming.vodDynamicPlaybackRate&&!n){var i=e.g.streaming.vodDynamicPlaybackRateLowBufferRate,r=e.hf();r<=e.g.streaming.vodDynamicPlaybackRateBufferRatio?t!=i&&e.Rc(i,!1):1==r&&t!==e.I.Lb()&&e.tc()}if(n&&Number.isFinite((n=e.Db()).end)&&!(e.h.currentTime<n.start)){i=e.g.streaming.liveSync.targetLatencyTolerance,r=e.g.streaming.liveSync.dynamicTargetLatency.enabled;var a=e.g.streaming.liveSync.dynamicTargetLatency.stabilityThreshold;if(e.g.streaming.liveSync&&e.g.streaming.liveSync.enabled)var o=e.g.streaming.liveSync.targetLatency,s=o+i,u=Math.max(0,o-i),l=e.g.streaming.liveSync.maxPlaybackRate,c=e.g.streaming.liveSync.minPlaybackRate;else e.i&&e.i.serviceDescription&&(o=e.i.serviceDescription.targetLatency,null!=e.i.serviceDescription.targetLatency?s=e.i.serviceDescription.targetLatency+i:null!=e.i.serviceDescription.maxLatency&&(s=e.i.serviceDescription.maxLatency),null!=e.i.serviceDescription.targetLatency?u=Math.max(0,e.i.serviceDescription.targetLatency-i):null!=e.i.serviceDescription.minLatency&&(u=e.i.serviceDescription.minLatency),l=e.i.serviceDescription.maxPlaybackRate||e.g.streaming.liveSync.maxPlaybackRate,c=e.i.serviceDescription.minPlaybackRate||e.g.streaming.liveSync.minPlaybackRate);e.R||"number"!=typeof o||(e.R=o);var d=e.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;r&&e.Ma&&null!==e.R&&"number"==typeof o&&e.Nd<d&&Date.now()-e.Ma>1e3*a&&(a=e.g.streaming.liveSync.dynamicTargetLatency.minLatency,e.R=Math.max(e.R-(o-a)/2,a+i),e.Ma=Date.now()),r&&null!==e.R&&(s=e.R+i,u=e.R-i),o=n.end-e.h.currentTime,i=0,e.m==hd&&0<(r=e.h.buffered).length&&(i=Math.max(l,(i=r.end(r.length-1))-n.end)),n=e.g.streaming.liveSync.panicMode,r=1e3*e.g.streaming.liveSync.panicThreshold,a=Date.now()-e.M.h,n&&!c&&(c=e.g.streaming.liveSync.minPlaybackRate),n&&c&&a<=r?t!=c&&e.Rc(c,!1):s&&l&&o-i>s?(t!=l&&e.Rc(l,!1),e.Ma=null):u&&c&&o-i<u?(t!=c&&e.Rc(c,!1),e.Ma=null):t!==e.I.Lb()&&(e.tc(),e.Ma=Date.now())}}function dQ(e){if(e.h){var t,n=!1,i=e.h.currentTime/e.h.duration;isNaN(i)||(i=Math.round(100*i),isNaN(e.V)?(e.V=i,n=!0):(i=Math.max(e.V,i),e.V!=i&&(e.V=i,n=!0))),n&&(0==e.V?t=dS("started"):25==e.V?t=dS("firstquartile"):50==e.V?t=dS("midpoint"):75==e.V?t=dS("thirdquartile"):100==e.V&&(t=dS("complete")),t&&e.dispatchEvent(t))}}function dZ(e){try{lp(e.kb,e.i)}catch(t){return he(e,t),!1}var t=n5(e.i.variants);return t=e.ya.create(t,dM(e)),e.u.setVariants(Array.from(t.values())
1),!0}function d0(e,t){return t=void 0!==t&&t,dZ(e)?e.u.chooseVariant(t):null}function d1(e,t,n,i,r,a){t=void 0===t||t,n=void 0===n?0:n,i=void 0!==i&&i,r=void 0===r||r,a=void 0===a||a;var o=d0(e);o&&d2(e,o,r,t,n,i,a)}function d2(e,t,n,i,r,a,o){if(a=void 0!==a&&a,o=void 0===o||o,!n3(t))return!1;var s=e.j.j;if(t==s)return!!i&&(ci(e.j,t,i,r,!0,!1,o),!0);var u=e.o.h;return u.h!=t&&(u.h=t,u.g.push({timestamp:Date.now()/1e3,id:t.id,type:"variant",fromAdaptation:n,bandwidth:t.bandwidth})),ci(e.j,t,i,r,a,n,o),i=null,s&&(i=n$(s)),(t=n$(t)).active=!0,n?(n=(new Map).set("oldTrack",i).set("newTrack",t),e.L&&uM(e.L,t,e.ce()),ha(e,n=dS("adaptation",n))):d5(e,i,t),!0}function d4(e,t){var n=Array.from(e.h.audioTracks).find(function(e){return e.enabled});t.enabled=!0,n&&(t.id!==n.id&&(n.enabled=!1),n=n2(n),d5(e,n,t=n2(t)))}function d3(e){ha(e,dS("trackschanged"))}function d5(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),e.L&&uM(e.L,n,e.ce()),ha(e,n=dS("variantchanged",t))}function d6(e){ha(e,dS("textchanged"))}function d8(e){ha(e,dS("texttrackvisibility"))}function d7(e){e.g.abr.enabled||d9(e);var t=(new Map).set("newStatus",e.g.abr.enabled);ha(e,dS("abrstatuschanged",t))}function d9(e,t){if(t=void 0===t||t,e.m==hc){e.Bd.stop();for(var n=v(e.i.variants),i=n.next();!i.done;i=n.next())i.value.disabledUntilTime=0;t&&dZ(e)}}function he(e,t){var n,i;return B(function(r){switch(r.g){case 1:var a,o,s,u,l,c,d;if(e.m==hu)return r.return();if(1===t.severity&&e.o.M++,n=!0,!(e.La&&e.i&&e.j)||3016!=t.code&&3014!=t.code&&3015!=t.code&&3018!=t.code){r.s(2);break}return D(r,3),C(r,(a=e.j,B(function(e){return 1==e.g?(o=Date.now()/1e3,s=a.h.minTimeBetweenRecoveries,!a.h.allowMediaSourceRecoveries||o-a.M<s)?e.return(!1):(a.M=o,u=ns,(l=a.i.get(u.X))&&(l.fc=null,l.Pb=null,l.Ob=null,co(a,l),cy(l).catch(function(){})),(c=a.i.get(u.ia))&&(c.fc=null,c.Pb=null,c.Ob=null,co(a,c),cy(c).catch(function(){})),d=new Map,a.j.audio&&d.set(u.X,a.j.audio),a.j.video&&d.set(u.ia,a.j.video),C(e,lj(a.g.$,d),2)):e.return(!0)})),5);case 5:n=!r.h,R(r,2);break;case 3:N(r),n=!0;case 2:if(!n)return r.return();2===t.severity&&d9(e,!1),i=dS("error",(new Map).set("detail",t)),e.dispatchEvent(i),i.defaultPrevented&&(t.handled=!0),M(r)}})}function ht(e,t,n,i){i=void 0===i?e:i,e=(new Map).set("detail",{schemeIdUri:n.schemeIdUri,value:n.value,startTime:n.startTime,endTime:n.endTime,id:n.id,eventElement:n.eventElement,eventNode:n.eventNode}),i.dispatchEvent(dS(t,e))}function hn(e,t,n,i){i=void 0!==i&&i,t=(new Map).set("mediaQuality",{bandwidth:t.bandwidth,audioSamplingRate:t.audioSamplingRate,codecs:t.codecs,contentType:t.contentType,frameRate:t.frameRate,height:t.height,mimeType:t.mimeType,channelsCount:t.channelsCount,pixelAspectRatio:t.pixelAspectRatio,width:t.width,label:t.label,roles:t.roles,language:t.language}).set("position",n),e.dispatchEvent(dS(i?"audiotrackchanged":"mediaqualitychanged",t))}function hi(e){var t,n,i,r;return B(function(a){return 1==a.g?e.h.error&&1!=(t=e.h.error.code)?((n=e.h.error.msExtendedCode)&&(0>n&&(n+=0x100000000),n=n.toString(16)),i=e.h.error.message,e.g.streaming.additionalHdcpCheck&&"PIPELINE_ERROR_DECODE"===i&&e.h.mediaKeys&&e.h.mediaKeys.getStatusForPolicy?C(a,e.h.mediaKeys.getStatusForPolicy({minHdcpVersion:"1.0"}),3):a.s(2)):a.return(null):2!=a.g&&(r=a.h,lg(e.kb).includes(r))?a.return(new tf(2,4,4012,{restrictedKeyStatuses:[r]})):a.return(new tf(2,3,3016,t,n,i))})}function hr(e,t,n){0<t&&(e.Y()||e.Wf(t)),n<(t=e.getDuration())&&(e.Y()||e.gb(n))}function ha(e,t){B(function(n){if(1==n.g)return C(n,Promise.resolve(),2);e.m!=hu&&e.dispatchEvent(t),M(n)})}function ho(e){var t=new Set;e=v(e);for(var n=e.next();!n.done;n=e.next())(n=n.value).language?t.add(nL(n.language)):t.add("und");return t}function hs(e){var t=new Map,n=new Map;e=v(e);for(var i=e.next();!i.done;i=e.next()){i=i.value;var r="und",a=[];i.language&&(r=nL(i.language)),(a="variant"==i.type?i.audioRoles:i.roles)&&a.length||(a=[""]),t.has(r)||t.set(r,new Set),a=v(a);for(var o=a.next();!o.done;o=a.next())o=o.value,t.get(r).add(o),i.label&&(n.has(r)||n.set(r,new Map),n.get(r).set(o,i.label))}var s=[];return t.forEach(function(e,t){e=v(e);for(var i=e.next();!i.done;i=e.next()){i=i.value;var r=null;n.has(t)&&n.get(t).has(i)&&(r=n.get(t).get(i)),s.push({language:t,role:i,label:r})}}),s}db.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null},A(dx,r7),(b=dx.prototype).destroy=function(){var e,t=this;return B(function(n){switch(n.g){case 1:if(t.m==hu)return n.return();return dT(t),e=t.detach(),t.m=hu,C(n,e,2);case 2:return C(n,t.bf(),3);case 3:if(t.Fd&&(t.Fd.release(),t.Fd=null),t.Gc&&(t.Gc.release(),t.Gc=null),t.l&&(t.l.release(),t.l=null),t.Ya&&(t.Ya.release(),t.Ya=null),t.lb&&(t.lb.release(),t.lb=null),t.wa=null,t.g=null,t.o=null,t.zd=null,t.O=null,t.ea=null,!t.F){n.s(4);break}return C(n,t.F.destroy(),5);case 5:t.F=null;case 4:t.u&&(t.u.release(),t.u=null),r7.prototype.release.call(t),M(n)}})},b.vb=function(e,t){t=void 0===t||t;var n,i,r,a=this;return B(function(o){switch(o.g){case 1:if(a.m==hu)throw new tf(2,7,7e3);if(n=a.h&&a.h==e,!a.h||a.h==e){o.s(2);break}return C(o,a.detach(),2);case 2:return C(o,dE(a,"attach"),4);case 4:if(o.h)return o.return();if(D(o,5,6),n||(dA(a,"attach"),i=function(){var e;hi(e=a).then(function(t){t&&he(e,t)})}
1,a.Gc.J(e,"error",i),a.h=e),!t||!tS()||a.H){o.s(6);break}return C(o,dR(a),6);case 6:P(o),a.W.release(),L(o,0);break;case 5:return r=N(o),C(o,a.detach(),10);case 10:throw r}})},b.mg=function(e){this.Se=e},b.detach=function(e){e=void 0!==e&&e;var t=this;return B(function(n){if(1==n.g){if(t.m==hu)throw new tf(2,7,7e3);return C(n,t.Sc(!1,e),2)}if(3!=n.g)return C(n,dE(t,"detach"),3);if(n.h)return n.return();try{t.h&&(t.Gc.Va(),t.h=null),dA(t,"detach"),t.A&&!e&&t.A.release()}finally{t.W.release()}M(n)})},b.Sc=function(e,t){e=void 0===e||e,t=void 0!==t&&t;var n,i,r,a,o,s,u,l,c,d,h=this;return B(function(f){switch(f.g){case 1:return h.m!=hu&&(h.m=hl),C(f,dE(h,"unload"),2);case 2:if(f.h)return f.return();return f.l=0,f.j=3,h.La=!1,dA(h,"unload"),e&&!tS()&&(e=!1),dT(h),n=h.Hc.map(function(e){return e()}),h.Hc=[],C(f,Promise.all(n),5);case 5:if(h.dispatchEvent(dS("unloading")),h.Fc&&(h.Fc.release(),h.Fc=null),h.h&&(h.l.Va(),h.Ya.Va()),h.Bd.stop(),h.bc&&(h.bc.release(),h.bc=null),h.qa&&(h.qa.stop(),h.qa=null),!h.C){f.s(6);break}return C(f,h.C.stop(),7);case 7:h.C=null,h.la=null;case 6:if(!h.u){f.s(8);break}return C(f,h.u.stop(),8);case 8:if(!h.j){f.s(10);break}return C(f,h.j.destroy(),11);case 11:h.j=null;case 10:if(h.I&&(h.I.release(),h.I=null),h.D&&(h.D.release(),h.D=null),!tK("webkit")||!h.B){f.s(12);break}return C(f,h.B.destroy(),13);case 13:h.B=null;case 12:if(!h.H){f.s(14);break}return C(f,h.H.destroy(),15);case 15:h.H=null;case 14:var p;if(h.A&&!t&&h.A.onAssetUnload(),h.aa&&!t&&(h.aa.destroy(),h.aa=null),t||h.Qe.stop(),h.O&&((p=h.O).i=!1,p.l=!0,p.j=!1),h.ea&&(h.ea.g=null),h.h&&c5(h.h),h.h&&h.h.src&&(h.h.removeAttribute("src"),h.h.load()),!h.B){f.s(16);break}return C(f,h.B.destroy(),17);case 17:h.B=null;case 16:if(h.va&&h.U!=h.va.gd()&&(h.va.u||h.va.destroy(),h.va=null),h.U=null,h.Ne=null,h.M=null,h.i&&!h.K){for(r=(i=v(h.i.variants)).next();!r.done;r=i.next())for(s=(o=v([(a=r.value).audio,a.video])).next();!s.done;s=o.next())(u=s.value)&&u.segmentIndex&&u.segmentIndex.release();for(c=(l=v(h.i.textStreams)).next();!c.done;c=l.next())(d=c.value).segmentIndex&&d.segmentIndex.release()}h.g.streaming.clearDecodingCache&&(n9={},tw.clear()),h.i=null,h.o=new cA,h.Oe=null,h.Ma=null,h.R=null,h.Nd=-1,h.Mc=[],h.V=NaN,dz(h);case 3:P(f),h.W.release(),L(f,4);break;case 4:if(e&&tS()&&!h.H&&h.h)return C(f,dR(h),0);f.s(0)}})},b.Jh=function(e){this.oa=e},b.load=function(e,t,n){t=void 0===t?null:t;var i,r,a,o,s,u,l,c,d,h,f,p,g=this;return B(function(m){switch(m.g){case 1:if(g.m==hu)throw new tf(2,7,7e3);return i=null,r="",r=e instanceof cE?(i=e).gd()||"":e||"",C(m,dw(g.W,"load"),2);case 2:if(g.W.release(),!g.h)throw new tf(2,7,7002);if(!g.U){m.s(3);break}return g.U=r,C(m,g.Sc(!1),3);case 3:if(a=++g.Hd,o=function(){return B(function(e){if(1==e.g)return g.Hd==a?e.s(0):i?C(e,i.destroy(),3):e.s(3);throw new tf(2,7,7e3)})},s=function(e,t){return B(function(n){switch(n.g){case 1:return n.l=0,n.j=2,C(n,dw(g.W,t),4);case 4:return C(n,o(),5);case 5:return C(n,e(),6);case 6:return C(n,o(),7);case 7:i&&g.g&&(i.g=g.g);case 2:P(n),g.W.release(),L(n,0)}})},D(m,5,6),null==t&&i&&(t=i.getStartTime()),g.oa=t,g.La=!1,g.dispatchEvent(dS("loading")),i){n=i.R,m.s(8);break}if(n){m.s(8);break}return C(m,s(function(){return B(function(e){if(1==e.g)return C(e,dD(g,r),2);n=e.h,M(e)})},"guessMimeType_"),8);case 8:if(u=!!i,i){cI(i,g),g.o=i.getStats(),m.s(11);break}return C(m,dI(g,r,t,n,!0),12);case 12:(i=m.h)?(cI(i,g),g.o=i.getStats(),i.start(),i.m.catch(function(){})):g.o=new cA;case 11:return g.K=!i,l=Date.now()/1e3,g.o=i?i.getStats():new cA,g.U=r,g.Ne=n||null,g.K?C(m,s(function(){return B(function(e){var t,i,r,a,o,s,u;return C(e,(t=g,i=n,B(function(e){return 1==e.g?(r=ns,a=Date.now()/1e3,o=!0,t.B=t.cd({Rb:t.F,onError:function(e){he(t,e)},Cf:function(){},onExpirationUpdated:function(){var e=dS("expirationupdated");t.dispatchEvent(e)},onEvent:function(e){t.dispatchEvent(e),"drmsessionupdate"==e.type&&o&&(o=!1,t.o.j=Date.now()/1e3-a)}}),t.B.configure(t.g.drm),s={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},(u={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:i?nv(i):"",codecs:i?ny(i):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:r.ia,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set}).fullMimeTypes.add(nd(u.mimeType,u.codecs)),i.startsWith("audio/")?(u.type=r.X,s.audio=u):s.video=u,t.B.W=!0,C(e,uX(t.B,[s],[]),2)):C(e,t.B.vb(t.h),0)})),0)})},"initializeSrcEqualsDrmInner_"),23):C(m,s(function(){return B(function(e){if(1==e.g)return C(e,Promise.race([i.aa,i.m]),2);g.la=i.D;var t=i;t.ea=!0,g.C=t.l,g.i=i.be(),M(e)})},"waitForFinish"),15);case 15:if(g.H){m.s(16);break}return C(m,s(function(){return B(function(e){return C(e,dR(g),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return C(m,s(function(){return B(function(e){return C(e,i.m,0)})},"waitForFinish"),18);case 18:if(g.g=i.getConfiguration(),g.kb=i.C,g.C&&g.C.setMediaElement&&g.h&&g.C.setMediaElement(g.h),(y=i).ka=!0,g.Fc=y.F,g.Ec=i.va,(c=i.o)&&(g.ya=c),u&&g.h&&"AUDIO"===g.h.nodeName&&(function(e){for(var t=v(e.i.variants),n=t.next();!n.done;n=t.next())(n=n.value).video&&(n.video.closeSegmentIndex(),n.video=null),n.bandwidth=n.audio&&n.audio.bandwidth?n.audio.bandwidth:0;e.i.variants=e.i.variants.filter(function(e){return e.audio})}(g),g.configure("manifest.disableVideo",!0)),i.h){m.s(19);break}return C(m,s(function(){return B(function(e){return C(e,cD(i,g.h),0)})},"drmEngine_.init"),19);case 19:return(b=i).W=!0,g.B=b.h,C(m,s(function(){return B(function(e){return C(e,g.B.vb(g.h),0)})},"drmEngine_.attach"),21);case 21:return(d=i.B)&&(!g.wa||g.wa!=d)&&((w=i).V=!0,g.u=w.j,g.wa=i.B,"function"!=typeof g.u.setMediaElement&&(eh("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),g.u.setMediaElement=function(){}),"function"!=typeof g.u.setCmsdManager&&(eh("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),g.u.setCmsdManager=function(){}),"function"!=typeof g.u.trySuggestStreams&&(eh("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),g.u.trySuggestStreams=function(){})),(x=i).la=!0,h=x.K,f=i.fa,C(m,s(function(){return B(function(e){var t,n,i,r,a,o,s,u,c,d,p,m,y,b,w,x,T,S,A,E,k,I,D,R,N;return C(e,(t=g,n=l,i=f,r=h,B(function(e){var l,h,f,g,P,L,j,O,U,_,F,H,V;switch(e.g){case 1:dA(t,"load"),a=t.h,t.I=new l_({jd:function(){return a.playbackRate},Lb:function(){return a.defaultPlaybackRate},Fe:function(e){a.playbackRate=e},yf:function(e){a.currentTime+=e}}),o=function(){return dJ(t)},s=function(){return dY(t)},t.l.J(a,"playing",o),t.l.J(a,"pause",o),t.l.J(a,"ended",o),t.l.J(a,"ratechange",s),l=t,(h=t.g).lcevc.enabled?(dT(l),null==l.L&&(l.L=new uI(l.h,l.Se,h.lcevc),l.H&&(l.H.U=l.L))):dT(l),t.mb=t.g.preferredTextLanguage,t.Kc=t.g.preferredTextRole,t.Jc=t.g.preferForcedSubs,hr(t.i.presentationTimeline,t.g.playRangeStart,t.g.playRangeEnd),t.u.init(function(e,n,i){t.i&&t.j&&e!=t.j.j&&d2(t,e,!0,void 0!==n&&n,void 0===i?0:i)}
1),t.u.setMediaElement(a),t.u.setCmsdManager(t.ea),t.j=new ct((L=t).i,{yc:function(){return L.D?L.D.Uc():0},getBandwidthEstimate:function(){return L.u.getBandwidthEstimate()},Qa:function(){return L.Qa()},$:L.H,Rb:L.F,onError:function(e){return he(L,e)},onEvent:function(e){return L.dispatchEvent(e)},mh:function(){L.C&&L.C.update&&L.C.update()},ue:function(e,t){var n=e.startTime,i=e.endTime,r=t.type,a=t.codecs.includes(",");if(r!=no){if(L.D){L.D.zf();var o=lT(L.H,r);!L.Y()&&L.h.paused&&!L.h.seeking&&null!=o&&0<o&&L.D.Uc()<o&&L.D.Sd(o)}dU(L)}n=(new Map).set("start",n).set("end",i).set("contentType",r).set("isMuxed",a),L.dispatchEvent(dS("segmentappended",n)),L.u&&t.fastSwitching&&e.Nc&&e.nd&&L.u.trySuggestStreams()},lh:function(e,t){var n,i,r,a,o,s,u;(t=t.hc)&&L.Ec&&(n=L.Ec,i=t,r=e,a=n,o=i.contentType,(s=a.g.get(o))||(s={Pc:[],Yd:null,contentType:o},a.g.set(o,s)),function(e,t){if((e=e.h()[t.contentType])&&0<e.length){var n=e[0].start,i=e[e.length-1].end,r=t.Pc;t.Pc=r.filter(function(e,t){return(!(e.position<=n)||!(t+1<r.length)||!(r[t+1].position<=n))&&!(e.position>=i)})}else t.Pc=[]}(n,u=s),n={hc:i,position:r},0<=(i=(u=u.Pc).findIndex(function(e){return e.position>=r}))?u.splice(i,+(u[i].position==r),n):u.push(n))},Ye:function(e,t){var n=L.B;if(n.h.parseInbandPsshEnabled&&!n.D&&["audio","video"].includes(e)){e=new rp(eT(t)),t=0;for(var i=v(e.data),r=i.next();!r.done;r=i.next())t+=r.value.length;if(0==t)n=Promise.resolve();else{for(t=new Uint8Array(t),i=0,r=(e=v(e.data)).next();!r.done;r=e.next())r=r.value,t.set(r,i),i+=r.length;uq(n,"cenc",t),n=n.l}}else n=Promise.resolve();return n},onMetadata:function(e,t,n){dN(L,e,t,n)},disableStream:function(e,t){return L.disableStream(e,t)}}),t.j.configure(t.g.streaming),t.m=hc,a.textTracks&&t.l.J(a.textTracks,"addtrack",function(e){e.track&&"chapters"===(e=e.track).kind&&dL(t,e)}),t.dispatchEvent(dS("streaming")),u=i;case 2:for((d=t.j.j)||u||(u=d0(t,!0)),p=[],y=(m=v([(c=d||u).video,c.audio])).next();!y.done;y=m.next())(b=y.value)&&!b.segmentIndex&&p.push(b.createSegmentIndex());if(!(0<p.length)){e.s(4);break}return C(e,Promise.all(p),4);case 4:if(!c||0!=c.disabledUntilTime){e.s(2);break}if(t.C&&t.C.onInitialVariantChosen&&t.C.onInitialVariantChosen(c),t.i.isLowLatency&&!t.g.streaming.lowLatencyMode&&et("Low-latency live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details."),hr(t.i.presentationTimeline,t.g.playRangeStart,t.g.playRangeEnd),f=t.j,g=t.g.playRangeStart,P=t.g.playRangeEnd,f.l.presentationTimeline.Y()||(f.R=g,f.O=P),w=function(e){var n,i,r,o,s;n=t,i=e,t.D=new lJ(n.h,n.i,n.g.streaming,i,function(){n.bc&&sU(n.bc,!0),n.j&&n.j.oc(),n.M&&dU(n)},function(e){return n.dispatchEvent(e)}),r=t,o=e,(o=new cN(r.Fc,r.Y()||0<o)).addEventListener("enter",function(e){ht(r,"timelineregionenter",e.region)}),o.addEventListener("exit",function(e){ht(r,"timelineregionexit",e.region)}),o.addEventListener("skip",function(e){var t=e.region;e.seeking||(ht(r,"timelineregionenter",t),ht(r,"timelineregionexit",t))}),(s=new sO(r.h)).g.add(o),r.Ec&&s.g.add(r.Ec),t.bc=s,dO(t,a,Math.max(t.i.minBufferTime,t.g.streaming.rebufferingGoal))},t.g.streaming.startAtSegmentBoundary||w(t.oa),d){e.s(7);break}if(!t.g.streaming.startAtSegmentBoundary){e.s(8);break}return x=t.i.presentationTimeline,T=t.oa||t.h.currentTime,S=x.ob(),A=x.bb(),T<S?T=S:T>A&&(T=A),C(e,(j=u,O=T,B(function(e){return 1==e.g?(U=j.audio,_=j.video,F=function(e,t){var n,i,r;return B(function(a){return 1==a.g?e?C(a,e.createSegmentIndex(),2):a.return(null):(i=(n=e.segmentIndex.nb(t))?n.next().value:null)?(r=i.startTime,a.return(r)):a.return(null)})},C(e,F(U,O),2)):3!=e.g?(H=e.h,C(e,F(_,O),3)):null!=(V=e.h)&&null!=H?e.return(Math.max(V,H)):null!=V?e.return(V):null!=H?e.return(H):e.return(O)})),9);case 9:E=e.h,w(E);case 8:d2(t,u,!0,!1,0);case 7:return t.D.ready(),t.ac().find(function(e){return e.active})||((k=n6(t.i.textStreams,t.mb,t.Kc,t.Jc)[0]||null)&&cS(t.o.h,k,!0),u&&(k?(function(e,t,n){if(0==e.g.autoShowText)return!1;if(1==e.g.autoShowText)return!0;var i=nL(e.g.preferredTextLanguage);return(n=nL(n.language),2==e.g.autoShowText)?nR(n,i):3==e.g.autoShowText?!!t&&(e=nL(t.language),nR(n,i)&&!nR(e,n)):(et("Invalid autoShowText setting!"),!1)}
1(t,u.audio,k)&&(t.ka=!0),t.ka&&t.H.D.setTextVisibility(!0),d8(t)):t.ka=!1),k&&(t.g.streaming.alwaysStreamText||t.me())&&cr(t.j,k)),C(e,t.j.start(r),10);case 10:t.g.abr.enabled&&(t.u.enable(),d7(t)),d3(t),dZ(t),t.i.variants.some(function(e){return e.primary}),((I=t.Y())&&(t.g.streaming.liveSync&&t.g.streaming.liveSync.enabled||t.i.serviceDescription||t.g.streaming.liveSync.panicMode)||t.g.streaming.vodDynamicPlaybackRate)&&(D=function(){return d$(t)},t.l.J(a,"timeupdate",D)),I||(R=function(){return dQ(t)},t.l.J(a,"timeupdate",R),dQ(t),t.i.nextUrl&&(0<t.g.streaming.preloadNextUrlWindow&&(N=function(){var e;return B(function(n){if(1==n.g)return isNaN(e=t.h.duration-t.h.currentTime)||!(e<=t.g.streaming.preloadNextUrlWindow)?n.s(0):(t.l.ub(a,"timeupdate",N),C(n,t.preload(t.i.nextUrl),4));t.va=n.h,M(n)})},t.l.J(a,"timeupdate",N)),t.l.J(a,"ended",function(){t.load(t.va||t.i.nextUrl)}))),t.A&&t.A.onManifestUpdated(I),t.La=!0,t.l.sa(a,"loadedmetadata",function(){t.o.m=Date.now()/1e3-n}),M(e)}})),0)})},"loadInner_"),22);case 22:var y,b,w,x,T=i;if(T.H)for(var S=v(T.H),A=S.next();!A.done;A=S.next())(A=A.value)();T.H=null,m.s(14);break;case 23:return C(m,s(function(){return B(function(e){var t,i,r,a,o,s,u,c,d,h,f,p,m,y,b,w;return C(e,(t=g,i=l,r=n,B(function(e){switch(e.g){case 1:return dA(t,"src-equals"),a=t.h,t.D=new lY(a),o=!1,t.Hc.push(function(){o=!0}),null!=t.oa&&t.D.Sd(t.oa),t.I=new l_({jd:function(){return a.playbackRate},Lb:function(){return a.defaultPlaybackRate},Fe:function(e){a.playbackRate=e},yf:function(e){a.currentTime+=e}}),s=t.g.streaming.rebufferingGoal,dO(t,a,s),u=function(){return dJ(t)},c=function(){return dY(t)},t.l.J(a,"playing",u),t.l.J(a,"pause",u),t.l.J(a,"ended",u),t.l.J(a,"ratechange",c),"none"!=a.preload&&t.l.sa(a,"loadedmetadata",function(){t.o.m=Date.now()/1e3-i}),a.audioTracks&&(t.l.J(a.audioTracks,"addtrack",function(){return d3(t)}),t.l.J(a.audioTracks,"removetrack",function(){return d3(t)}),t.l.J(a.audioTracks,"change",function(){return d3(t)})),a.textTracks&&(t.l.J(a.textTracks,"addtrack",function(e){if(e.track)switch((e=e.track).kind){case"metadata":var n=t,i=e;if("metadata"==i.kind){i.mode="hidden",n.l.J(i,"cuechange",function(){if(i.activeCues){for(var e=[],t=v(i.activeCues),r=t.next(),a={};!r.done;a={Oa:void 0},r=t.next())a.Oa=r.value,dP(n,a.Oa.startTime,a.Oa.endTime,a.Oa.type,a.Oa.value),n.A&&n.A.onCueMetadataChange(a.Oa.value),"com.apple.quicktime.HLS"==a.Oa.type&&null!=a.Oa.startTime&&((r=e.find(function(e){return function(t){return t.startTime==e.Oa.startTime&&t.endTime==e.Oa.endTime}}(a)))||(r={startTime:a.Oa.startTime,endTime:a.Oa.endTime,values:[]},e.push(r)),r.values.push(a.Oa.value));for(t=(e=v(e)).next();!t.done;t=e.next())(t=t.value).values.some(function(e){return"X-ASSET-URI"==e.key||"X-ASSET-LIST"==e.key})&&n.A&&(t.values.push({key:"CUE",description:"",data:"ONCE",mimeType:null,pictureType:null}),n.A.onInterstitialMetadata(n,n.h,t))}});var r=new tT(function(){var e,t=Array.from((e=n).h.textTracks).filter(function(e){return"metadata"==e.kind});t=v(t);for(var i=t.next();!i.done;i=t.next())i.value.mode="hidden"}).Gd().da(.5);n.Hc.push(function(){r.stop()})}break;case"chapters":dL(t,e);break;default:d3(t)}}),t.l.J(a.textTracks,"removetrack",function(){return d3(t)}),t.l.J(a.textTracks,"change",function(){return d3(t)})),!(d=function(e,t,n){try{if(!e.g.enabled)return t;var i=de(e);e:{switch(n.toLowerCase()){case"audio/mp4":case"audio/webm":case"audio/ogg":case"audio/mpeg":case"audio/aac":case"audio/flac":case"audio/wav":var r=ds;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":r=dl;break e;case"application/x-mpegurl":case"application/vnd.apple.mpegurl":case"application/dash+xml":case"video/vnd.mpeg.dash.mpd":case"application/vnd.ms-sstr+xml":r=da;break e}r=void 0}i.ot=r,i.su=!0;var a=di(i);return dr(t,a)}catch(e){return en("CMCD_SRC_ERROR","Could not generate src CMCD data.",e),t}}(t.O,t.U,r)).includes("#t=")&&(0<t.g.playRangeStart||isFinite(t.g.playRangeEnd))&&(d+="#t=",0<t.g.playRangeStart&&(d+=t.g.playRangeStart),isFinite(t.g.playRangeEnd)&&(d+=","+t.g.playRangeEnd)),a.src=d,(tI()||tD())&&a.load(),"none"!=a.preload&&!a.autoplay&&nb(r)&&tB()&&a.load(),t.m=hd,t.dis
1patchEvent(dS("streaming")),h=new r0,lF(a,HTMLMediaElement.HAVE_METADATA,t.l,function(){t.D.ready(),h.resolve()}),lF(a,HTMLMediaElement.HAVE_CURRENT_DATA,t.l,function(){var e;return B(function(n){var i,r,s,u;return 1==n.g?(""!=(r=(i=t).g.preferredAudioLanguage)&&i.Lf(r,i.g.preferredVariantRole),(e=dH(t)).find(function(e){return"disabled"!=e.mode})?(0<e.length&&(t.ka=!0),n.s(2)):C(n,new Promise(function(e){t.l.sa(a.textTracks,"change",e),new tT(e).da(1)}),2)):o?n.return():void(""!=(u=(s=t).g.preferredTextLanguage)&&s.Mf(u,s.g.preferredTextRole,s.g.preferForcedSubs),M(n))})}),a.error?hi(t).then(function(e){h.reject(e)}):"none"==a.preload&&(et('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),h.resolve()),t.l.sa(t.h,"error",function(){hi(t).then(function(e){h.reject(e)})}),C(e,Promise.race([h,new Promise(function(e,n){new tT(n).da(t.g.streaming.loadTimeout)})]),2);case 2:if(!(tS()&&r in aq)||((f=nF(t.g.manifest)).hls.restrictedManifestParsing=!0,t.g.manifest=f,t.C||(t.la=aW(t.U,r),t.C=t.la(),t.C.configure(t.g.manifest)),t.i)){e.s(3);break}return p={networkingEngine:t.F,filter:function(){return B(function(e){M(e)})},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(){},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return 0},onMetadata:function(){},disableStream:function(){}},C(e,t.C.start(t.U,p),5);case 5:t.i=e.h;case 3:((m=t.Y())&&(t.g.streaming.liveSync&&t.g.streaming.liveSync.enabled||t.g.streaming.liveSync.panicMode)||t.g.streaming.vodDynamicPlaybackRate)&&(y=function(){return d$(t)},t.l.J(a,"timeupdate",y)),m||(b=function(){return dQ(t)},t.l.J(a,"timeupdate",b),dQ(t)),t.A&&(t.A.onManifestUpdated(m),m&&(w=t.Db().end,t.l.J(a,"progress",function(){var e=t.Db().end;w!=e&&(t.A.onManifestUpdated(t.Y()),w=e)}))),t.La=!0,M(e)}})),0)})},"srcEqualsInner_"),14);case 14:g.dispatchEvent(dS("loaded"));case 6:if(P(m),!i){m.s(25);break}return C(m,i.destroy(),25);case 25:g.va=null,L(m,0);break;case 5:if(!(p=N(m))||7e3==p.code){m.s(27);break}return C(m,g.Sc(!1),27);case 27:throw p}})},b.Eh=function(e,t){e=void 0===e||e,t=void 0!==t&&t;var n,i=this;return B(function(r){return 1==r.g?C(r,dk(i),2):3!=r.g?(n=r.h,C(r,i.Sc(e,t),3)):r.return(n)})},b.cf=function(e,t){e=void 0!==e&&e,t=void 0!==t&&t;var n,i=this;return B(function(r){return 1==r.g?C(r,dk(i,t),2):3!=r.g?(n=r.h,C(r,i.detach(e),3)):r.return(n)})},b.preload=function(e,t,n){t=void 0===t?null:t;var i,r=this;return B(function(a){return 1==a.g?C(a,dI(r,e,t,n),2):((i=a.h)?i.start():he(r,new tf(2,7,7005)),a.return(i))})},b.bf=function(){var e,t,n,i,r=this;return B(function(a){for(e=[],n=(t=v(r.Cd)).next();!n.done;n=t.next())(i=n.value).u||e.push(i.destroy());return r.Cd=[],C(a,Promise.all(e),0)})},b.uh=function(){for(var e=this.W;e.g;)e.release()},b.cd=function(e){return new uK(e)},b.configure=function(e,t){if(2==arguments.length&&"string"==typeof e&&(e=oK(e,t)),e.streaming&&"forceTransmuxTS"in e.streaming&&(eh("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),e.mediaSource.mediaSource=e.streaming.forceTransmuxTS,delete e.streaming.forceTransmuxTS),e.streaming&&"forceTransmux"in e.streaming&&(eh("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),e.mediaSource.mediaSource=e.streaming.forceTransmux,delete e.streaming.forceTransmux),e.streaming&&"useNativeHlsOnSafari"in e.streaming&&(eh("streaming.useNativeHlsOnSafari configuration","Please Use streaming.useNativeHlsForFairPlay or streaming.preferNativeHls instead."),e.streaming.preferNativeHls=e.streaming.useNativeHlsOnSafari&&tP(),delete e.streaming.useNativeHlsOnSafari),e.streaming&&"boolean"==typeof e.streaming.liveSync){eh("streaming.liveSync","Please Use streaming.liveSync.enabled instead.");var n=e.streaming.liveSync;e.streaming.liveSync={},e.streaming.liveSync.enabled=n}
1if(e.streaming&&!(e.streaming.liveSync&&"targetLatency"in e.streaming.liveSync)&&("liveSyncMinLatency"in e.streaming||"liveSyncMaxLatency"in e.streaming)){n=e.streaming.liveSyncMinLatency||0;var i=Math.abs((e.streaming.liveSyncMaxLatency||1)-n)/2;e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.targetLatency=n+i,e.streaming.liveSync.targetLatencyTolerance=i}if(e.streaming&&"liveSyncMaxLatency"in e.streaming&&(eh("streaming.liveSyncMaxLatency","Please Use streaming.liveSync.targetLatency and streaming.liveSync.targetLatencyTolerance instead. Or, set the values in your DASH manifest"),delete e.streaming.liveSyncMaxLatency),e.streaming&&"liveSyncMinLatency"in e.streaming&&(eh("streaming.liveSyncMinLatency","Please Use streaming.liveSync.targetLatency and streaming.liveSync.targetLatencyTolerance instead. Or, set the values in your DASH manifest"),delete e.streaming.liveSyncMinLatency),e.streaming&&"liveSyncTargetLatency"in e.streaming&&(eh("streaming.liveSyncTargetLatency","Please Use streaming.liveSync.targetLatency instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.targetLatency=e.streaming.liveSyncTargetLatency,delete e.streaming.liveSyncTargetLatency),e.streaming&&"liveSyncTargetLatencyTolerance"in e.streaming&&(eh("streaming.liveSyncTargetLatencyTolerance","Please Use streaming.liveSync.targetLatencyTolerance instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.targetLatencyTolerance=e.streaming.liveSyncTargetLatencyTolerance,delete e.streaming.liveSyncTargetLatencyTolerance),e.streaming&&"liveSyncPlaybackRate"in e.streaming&&(eh("streaming.liveSyncPlaybackRate","Please Use streaming.liveSync.maxPlaybackRate instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.maxPlaybackRate=e.streaming.liveSyncPlaybackRate,delete e.streaming.liveSyncPlaybackRate),e.streaming&&"liveSyncMinPlaybackRate"in e.streaming&&(eh("streaming.liveSyncMinPlaybackRate","Please Use streaming.liveSync.minPlaybackRate instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.minPlaybackRate=e.streaming.liveSyncMinPlaybackRate,delete e.streaming.liveSyncMinPlaybackRate),e.streaming&&"liveSyncPanicMode"in e.streaming&&(eh("streaming.liveSyncPanicMode","Please Use streaming.liveSync.panicMode instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.panicMode=e.streaming.liveSyncPanicMode,delete e.streaming.liveSyncPanicMode),e.streaming&&"liveSyncPanicThreshold"in e.streaming&&(eh("streaming.liveSyncPanicThreshold","Please Use streaming.liveSync.panicThreshold instead."),e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.panicThreshold=e.streaming.liveSyncPanicThreshold,delete e.streaming.liveSyncPanicThreshold),e.mediaSource&&"sourceBufferExtraFeatures"in e.mediaSource){eh("mediaSource.sourceBufferExtraFeatures configuration","Please Use mediaSource.addExtraFeaturesToSourceBuffer() instead.");var r=e.mediaSource.sourceBufferExtraFeatures;e.mediaSource.addExtraFeaturesToSourceBuffer=function(){return r},delete e.mediaSource.sourceBufferExtraFeatures}return e.streaming&&e.streaming.lowLatencyMode&&(void 0==e.streaming.inaccurateManifestTolerance&&(e.streaming.inaccurateManifestTolerance=0),void 0==e.streaming.segmentPrefetchLimit&&(e.streaming.segmentPrefetchLimit=2),void 0==e.streaming.updateIntervalSeconds&&(e.streaming.updateIntervalSeconds=.1),void 0==e.streaming.maxDisabledTime&&(e.streaming.maxDisabledTime=1),void 0==e.streaming.retryParameters&&(e.streaming.retryParameters={}),void 0==e.streaming.retryParameters.baseDelay&&(e.streaming.retryParameters.baseDelay=100),void 0==e.manifest&&(e.manifest={}),void 0==e.manifest.dash&&(e.manifest.dash={}),void 0==e.manifest.dash.autoCorrectDrift&&(e.manifest.dash.autoCorrectDrift=!1),void 0==e.manifest.retryParameters&&(e.manifest.retryParameters={}),void 0==e.manifest.retryParameters.baseDelay&&(e.manifest.retryParameters.baseDelay=100),void 0==e.drm&&(e.drm={}),void 0==e.drm.retryParameters&&(e.drm.retryParameters={}),void 0==e.drm.retryParameters.baseDelay&&(e.drm.retryParameters.baseDelay=100)),n=oZ(this.g,e,dq(this)),d_(this),n},b.getConfiguration=function(){var e=dq(this);return oZ(e,this.g,dq(this)),e},b.Ig=function(){return oZ(dq(this),this.g,dq(this)),oX(this.g,dq(this))},b.hf=function(){if(this.h){var e=this.h.buffered.length;e=e?this.h.buffered.end(e-1):0;var t=this.getConfiguration().streaming.bufferingGoal;if(e>=(t=Math.min(this.h.currentTime+t,this.Db().end)))return 1;if(!(e<=this.h.currentTime)&&e<t)return(e-this.h.currentTime)/(t-this.h.currentTime)}return 0},b.wh=function(){for(var e in this.g)delete this.g[e];oZ(this.g,dq(this),dq(this)),d_(this)},b.Dg=function(){return this.m},b.ce=function(){return this.i?this.i.type:null},b.Hg=function(){return this.h},b.de=function(){return this.F},b.gd=function(){return this.U},b.rg=function(){return this.A?this.A:null},b.Y=function(){return this.i&&!this.K?this.i.presentationTimeline.Y():!!this.h&&!!this.h.src&&1/0==this.h.duration},b.ec=function(){return!!this.i&&this.i.presentationTimeline.ec()},b.Yg=function(){if(this.i&&!this.K){var e=this.i.variants;return!!e.length&&!e[0].video}return!!this.h&&!!this.h.src&&(this.h.videoTracks?0==this.h.videoTracks.length:0==this.h.videoHeight)},b.Db=function(){if(this.i&&!this.K){if(!this.La&&"HLS"==this.i.type)return{start:0,end:0};var e=this.i.presentationTimeline;return{start:e.ob(),end:e.bb()}}return this.h&&this.h.src&&(e=this.h.seekable).length?{start:e.start(0),end:e.end(e.length-1)}:{start:0,end:0}}
1,b.Vg=function(){this.Y()&&(this.h.currentTime=this.Db().end)},b.Zg=function(){return this.La},b.keySystem=function(){var e=this.drmInfo();return e?e.keySystem:""},b.drmInfo=function(){return this.B?this.B.g:null},b.ae=function(){return this.B?this.B.ae():1/0},b.$d=function(){return this.B?this.B.$d():[]},b.hd=function(){return this.B?this.B.hd():{}},b.rf=function(){return!!this.M&&this.M.g==uO},b.Qa=function(){return this.h?this.I?this.I.i:1:0},b.Rc=function(e,t){var n=this;t=void 0===t||t,0==e?et("A trick play rate of 0 is unsupported!"):(this.Ya.Va(),this.h.paused&&this.h.play(),this.I.set(e),this.m==hc&&(this.u.playbackRateChanged(e),cn(this.j,t&&1<Math.abs(e))),this.Y()&&this.Ya.J(this.h,"timeupdate",function(){var t=n.h.currentTime,i=n.Db(),r=n.g.streaming.safeSeekOffset;0<e?Math.floor(t)>=Math.floor(i.end)&&n.tc():Math.floor(t)<=Math.floor(i.start+r)&&n.tc()}))},b.tc=function(){var e=this.I.Lb();this.m==hd&&this.I.set(e),this.m==hc&&(this.I.set(e),this.u.playbackRateChanged(e),cn(this.j,!1)),this.Ya.Va()},b.Mb=function(){if(this.i&&!this.K){for(var e=this.j?this.j.j:null,t=[],n=0,i=v(this.i.variants),r=i.next();!r.done;r=i.next())if(n3(r=r.value)){var a=n$(r);a.active=r==e,a.active||1==n||null==e||r.video!=e.video||r.audio!=e.audio||(a.active=!0),a.active&&n++,t.push(a)}return t}return this.h&&this.h.audioTracks?Array.from(this.h.audioTracks).map(function(e){return n2(e)}):[]},b.ac=function(){if(this.i&&!this.K){for(var e=this.j?this.j.u:null,t=[],n=v(this.i.textStreams),i=n.next();!i.done;i=n.next()){var r=nQ(i=i.value);r.active=i==e,t.push(r)}return t}return this.h&&this.h.src&&this.h.textTracks?dH(this).map(function(e){return n1(e)}):[]},b.Ag=function(){var e=this.Mc;return this.i&&(e=this.i.imageStreams),e.map(function(e){return nZ(e)})},b.sg=function(e){var t,n,i,r=this;return B(function(a){return 1==a.g?r.m!=hc&&r.m!=hd?a.return(null):(t=r.Mc,r.i&&(t=r.i.imageStreams),(n=t.find(function(t){return t.id==e}))?n.segmentIndex?a.s(2):C(a,n.createSegmentIndex(),2):a.return(null)):(i=[],n.segmentIndex.$a(function(e){var t=dB(e.tilesLayout||n.tilesLayout);if(t){t=t.rows*t.Ib;for(var r=e.i-e.startTime,a=0;a<t;a++){var o=dF(n,e.startTime+r*a/t);o&&i.push(o)}}}),a.return(i))})},b.Qg=function(e,t){var n,i,r=this;return B(function(a){return 1==a.g?r.m!=hc&&r.m!=hd?a.return(null):(n=r.Mc,r.i&&(n=r.i.imageStreams),(i=n.find(function(t){return t.id==e}))?i.segmentIndex?a.s(2):C(a,i.createSegmentIndex(),2):a.return(null)):a.return(dF(i,t))})},b.Nf=function(e){if(this.i&&this.j&&!this.K){var t=this.i.textStreams.find(function(t){return t.id==e.id});t&&t!=this.j.u&&(cS(this.o.h,t,!1),cr(this.j,t),d6(this),this.mb=t.language)}else if(this.h&&this.h.src&&this.h.textTracks){t=v(t=dH(this));for(var n=t.next();!n.done;n=t.next())n0(n=n.value)==e.id?n.mode=this.ka?"showing":"hidden":n.mode="disabled";d6(this)}},b.Of=function(e,t,n){if(t=void 0!==t&&t,n=void 0===n?0:n,this.i&&this.j&&!this.K){var i=this.i.variants.find(function(t){return t.id==e.id});if(i&&d2(this,i,!1,t,n)){var r=this.j.j;this.g.abr.enabled&&(r.video!=i.video||r.audio&&i.audio&&r.audio.language==i.audio.language&&r.audio.channelsCount==i.audio.channelsCount)&&et("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack()."),d2(this,i,!1,t,n),this.ya=new u9(i,this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups),dZ(this)}}else if(this.h&&this.h.audioTracks){for(n=(t=v(t=Array.from(this.h.audioTracks))).next();!n.done;n=t.next())if(n0(n=n.value)==e.id){d4(this,n);break}}},b.ug=function(){return hs(this.Mb())},b.Og=function(){return hs(this.ac())},b.tg=function(){return Array.from(ho(this.Mb()))},b.Ng=function(){return Array.from(ho(this.ac()))},b.Lf=function(e,t,n,i,r){if(n=void 0===n?0:n,i=void 0===i?0:i,r=void 0===r?"":r,this.i&&this.D&&!this.K){this.ya=new u5(e,t||"",n,"",!1,"","","",this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups,[r]),e=function(e,t){return e.video||t.video?e.video&&t.video?Math.abs((e.video.height||0)-(t.video.height||0))+Math.abs((e.video.width||0)-(t.video.width||0)):1/0:0},t=this.j.j,r=this.ya.create(this.i.variants,dM(this)),n=null,r=v(r.values());for(var a=r.next();!a.done;a=r.next())n3(a=a.value)&&(!n||e(n,t)>e(a,t))&&(n=a);n==t||(n?d2(this,n,!1,!0,i)&&dZ(this):d1(this))}else this.h&&this.h.audioTracks&&(i=n6(this.Mb(),e,t||"",!1)[0])&&this.Of(i)},b.Mf=function(e,t,n){n=void 0!==n&&n,this.i&&this.D&&!this.K?(this.mb=e,this.Kc=t||"",this.Jc=n,(e=n6(this.i.textStreams,this.mb,this.Kc,this.Jc)[0]||null)&&e!=this.j.u&&(cS(this.o.h,e,!1),this.g.streaming.alwaysStreamText||this.me())&&(cr(this.j,e),d6(this))):(e=n6(this.ac(),e,t||"",n)[0])&&this.Nf(e)},b.zh=function(e,t,n,i){if(t=void 0===t||t,n=void 0===n?0:n,i=void 0===i||i,this.i&&this.D&&!this.K){for(var r=null,a=v(this.i.variants),o=a.next();!o.done;o=a.next())if((o=o.value).audio.label==e){r=o;break}null!=r&&(this.ya=new u5(r.language,"",0,"",!1,"",e,"",this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups,this.g.preferredAudioCodecs),d1(this,t,n,!1,!0,i))}else if(this.h&&this.h.audioTracks){for(n=Array.from(this.h.audioTracks),t=null,i=(n=v(n)).next();!i.done;i=n.next())(i=i.value).label==e&&(t=i);t&&d4(this,t)}},b.me=function(){var e=this.ka;return this.H&&this.m==hc?this.H.D.isTextVisible():this.h&&this.h.src&&this.h.textTracks?dH(this).some(function(e){return"showing"==e.mode}):e},b.jf=function(){return this.h&&this.h.src&&this.h.textTracks?dV(this).map(function(e){return n1(e)}):[]},b.wg=function(e){if(!this.h||!this.h.src||!this.h.textTracks)return[];var t=nL(e),n=dV(this).filter(function(e){return nL(e.language)==t});if(!n||!n.length)return[];e=[];var i=new Set;n=v(n);for(var r=n.next();!r.done;r=n.next())if((r=r.value)&&r.cues){r=v(r.cues);for(var a=r.next();!a.done;a=r.next()){var o=a.value;
1(a=o.id)&&""!=a||(a=o.startTime+"-"+o.endTime+"-"+o.text),o={id:a,title:o.text,startTime:o.startTime,endTime:o.endTime},i.has(a)||(e.push(o),i.add(a))}}return e},b.Ch=function(e){if(e=!!e,this.ka!=e){if(this.ka=e,this.m==hc){var t,n;this.H.D.setTextVisibility(e),this.g.streaming.alwaysStreamText||(e?this.j.u||0<(e=n6(this.i.textStreams,this.mb,this.Kc,this.Jc)).length&&(cr(this.j,e[0]),d6(this)):((n=(t=this.j).i.get(no))&&(cv(n),cy(n).catch(function(){}),t.C=t.i.get(no),t.i.delete(no)),t.u=null))}else if(this.h&&this.h.src&&this.h.textTracks){var i=dH(this);i=v(i);for(var r=i.next();!r.done;r=i.next())"disabled"!=(r=r.value).mode&&(r.mode=e?"showing":"hidden")}d8(this)}},b.Jg=function(){if(this.D)var e=this.D.Uc();else{if(null==this.oa)return new Date;e=this.oa}if(this.i&&!this.K){var t=this.i.presentationTimeline;return new Date(1e3*((t.m||t.i)+e))}return this.h&&this.h.getStartDate?isNaN((t=this.h.getStartDate()).getTime())?null:new Date(t.getTime()+1e3*e):null},b.nf=function(){if(this.i&&!this.K){var e=this.i.presentationTimeline;return new Date(1e3*(e.m||e.i))}return this.h&&this.h.getStartDate?isNaN((e=this.h.getStartDate()).getTime())?null:e:null},b.kd=function(){return this.Y()&&this.i?this.i.presentationTimeline.kd():null},b.ab=function(){if(this.m==hc)return this.H.ab();var e={total:[],audio:[],video:[],text:[]};return this.m==hd&&(e.total=lr(this.h.buffered)),e},b.getStats=function(){if(this.m!=hc&&this.m!=hd)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,manifestDownloadTimeSeconds:NaN,manifestParseTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,manifestSizeBytes:NaN,bytesDownloaded:NaN,nonFatalErrorCount:NaN,manifestPeriodCount:NaN,manifestGapCount:NaN,switchHistory:[],stateHistory:[]};dJ(this);var e=this.h,t=e.currentTime/e.duration;if(!isNaN(t)&&!this.Y()){var n=this.o;t=Math.round(100*t),n.i=isNaN(n.i)?t:Math.max(n.i,t)}if(this.D&&(this.o.V=this.D.Te(),this.o.W=this.D.Ue()),e.getVideoPlaybackQuality){n=e.getVideoPlaybackQuality(),t=this.o;var i=Number(n.totalVideoFrames);t.U=Number(n.droppedVideoFrames),t.R=i,this.o.O=Number(n.corruptedVideoFrames)}if(n=this.B&&(n=this.B).I?n.I:NaN,this.o.u=n,this.m==hc){if(n=this.j.j,t=this.j.u,n){var r=(i=this.I?this.I.i:1)*n.bandwidth;t&&t.bandwidth&&(r+=i*t.bandwidth),this.o.B=r}n&&n.video&&(t=this.o,i=n.video.height||NaN,t.o=n.video.width||NaN,t.l=i),this.Y()&&(n=this.nf().valueOf()+1e3*e.currentTime,this.o.C=(Date.now()-n)/1e3),this.i&&!this.K&&(this.o.I=this.i.periodCount,this.o.F=this.i.gapCount,this.o.D=this.i.manifestDownloadTimeSeconds,this.o.H=this.i.manifestParseTimeSeconds,this.i.presentationTimeline&&(this.o.L=this.i.presentationTimeline.h)),n=this.u.getBandwidthEstimate(),this.o.A=n}this.m==hd&&((n=this.o).Hb=isNaN(n.Hb)?NaN:n.Hb+NaN,n=this.o,t=e.videoHeight||NaN,n.o=e.videoWidth||NaN,n.l=t);var a=this.o;e=a.o,n=a.l,t=a.B,i=a.R,r=a.U;var o=a.O,s=a.W,u=a.V,l=a.A,c=a.i,d=a.m,h=a.K,f=a.D,p=a.H,g=a.j,m=cx(a.g,"playing"),y=cx(a.g,"paused"),b=cx(a.g,"buffering"),w=a.u,x=a.C,T=a.L,S=a.uf,A=a.Hb,E=a.M,k=a.I,I=a.F,C=function(e){function t(e){return{timestamp:e.timestamp,state:e.state,duration:e.duration}}for(var n=[],i=v(e.h),r=i.next();!r.done;r=i.next())n.push(t(r.value));return e.g&&n.push(t(e.g)),n}(a.g),M=[];a=v(a.h.g);for(var D=a.next();!D.done;D=a.next())M.push({timestamp:(D=D.value).timestamp,id:D.id,type:D.type,fromAdaptation:D.fromAdaptation,bandwidth:D.bandwidth});return{width:e,height:n,streamBandwidth:t,decodedFrames:i,droppedFrames:r,corruptedFrames:o,stallsDetected:s,gapsJumped:u,estimatedBandwidth:l,completionPercent:c,loadLatency:d,manifestTimeSeconds:h,manifestDownloadTimeSeconds:f,manifestParseTimeSeconds:p,drmTimeSeconds:g,playTime:m,pauseTime:y,bufferingTime:b,licenseTime:w,liveLatency:x,maxSegmentDuration:T,manifestSizeBytes:S,bytesDownloaded:A,nonFatalErrorCount:E,manifestPeriodCount:k,manifestGapCount:I,stateHistory:C,switchHistory:M}},b.hg=function(e,t,n,i,r,a,o){o=void 0!==o&&o;var s,u,l,c,d,h,f=this;return B(function(p){switch(p.g){case 1:if(f.m!=hc&&f.m!=hd)throw new tf(1,7,7004);if("subtitles"!=n&&"captions"!=n&&et("Using a kind value different of `subtitles` or `captions` can cause unwanted issues."),i){p.s(2);break}return C(p,dG(f,e),3);case 3:i=p.h;case 2:if(s=[],f.A&&(s=f.A.getCuePoints()),f.m!=hd){p.s(4);break}return o&&(n="forced"),C(p,dK(f,e,t,n,i,a||"",s),5);case 5:if(u=nL(t),l=f.ac().find(function(e){return nL(e.language)==u&&e.label==(a||"")&&e.kind==n}))return d3(f),p.return(l);throw new tf(1,2,2012);case 4:if(c=ns,d=f.h.duration,f.i&&(d=f.i.presentationTimeline.getDuration()),1/0==d)throw new tf(1,4,4033);if(!s.length){p.s(6);break}return C(p,dX(f,e,f.F,f.g.streaming.retryParameters),7);case 7:e=lO(new Blob([dW(f,p.h,i,s)],{type:"text/vtt"})),i="text/vtt";case 6:if(h={id:f.Pe++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:aS(0,d,[e]),mimeType:i||"",codecs:r||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,originalLanguage:t,label:a||null,type:c.ua,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!o,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([nd(i||"",r||"")])},!nA(nd(h.mimeType,h.codecs)))throw new tf(2,2,2014,i);return f.i.textStreams.push(h),d3(f),p.return(nQ(h))}})},b.ig=function(e,t){var n,i,r,a,o,s,u,l,c,d,h,f,p,g,m,y,b,w=this;return B(function(x){switch(x.g){case 1:if(w.m!=hc&&w.m!=hd)throw new tf(1,7,7004);if(t){x.s(2);break}return C(x,dG(w,e),3);case 3:t=x.h;case 2:if("text/vtt"!=t)throw new tf(1,2,2017,e);if(n=ns,i=w.h.duration,w.i&&(i=w.i.presentationTimeline.getDuration()),1/0==i)throw new tf(1,4,4045);return C(x,dX(w,e,w.F,w.g.streaming.retryParameters),4);case 4:if(r=x.h,!(a=nk[t]))throw new tf(2,2,2014,t);for(o=a(),s={periodStart:0,segmentStart:0,segmentEnd:i,vttOffset:0},u=eT(r),l=o.parseMedia(u,s,e),c=[],h=(d=v(l)).next(),f={};!h.done;f={Md:void 0,Zb:void 0},h=d.next())f.Zb=h.value,f.Md=null,p=function(t){return function(){return null==t.Md&&(t.Md=ne([e],[t.Zb.payload])),t.Md||[]}}(f),g=new ay(f.Zb.startTime,f.Zb.endTime,p,0,null,null,0,0,1/0),f.Zb.payload.includes("#xywh")&&4===(m=f.Zb.payload.split("#xywh=")[1].split(",")).length&&g.Uf({height:parseInt(m[3],10),positionX:parseInt(m[0],10),positionY:parseInt(m[1],10),width:parseInt(m[2],10)}),c.push(g);
1if(y=t,!c.length){x.s(5);break}return C(x,cJ(c[0].Z()[0],w.F,w.g.manifest.retryParameters),6);case 6:y=x.h;case 5:return b={id:w.Pe++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new ax(c),mimeType:y||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:n.eg,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([nd(y||"","")])},w.m==hd?w.Mc.push(b):w.i.imageStreams.push(b),d3(w),x.return(nZ(b))}})},b.gg=function(e,t,n){var i,r,a,o=this;return B(function(s){switch(s.g){case 1:if(o.m!=hc&&o.m!=hd)throw new tf(1,7,7004);if(n){s.s(2);break}return C(s,dG(o,e),3);case 3:n=s.h;case 2:return i=[],o.A&&(i=o.A.getCuePoints()),C(s,dK(o,e,t,"chapters",n,"",i),4);case 4:if(r=s.h,!(a=o.jf().find(function(e){return e.language==t}))){s.s(5);break}return C(s,new Promise(function(e,t){o.l.sa(r,"load",e),o.l.sa(r,"error",function(){t(new tf(1,2,2015))})}),6);case 6:return d3(o),s.return(a);case 5:throw new tf(1,2,2012)}})},b.Ah=function(e,t){this.fa.width=e,this.fa.height=t},b.ze=function(e){if(this.m==hc){var t=this.j;if(e=void 0===e?.1:e,t.m.g)t=!1;else if(t.A)t=!1;else{for(var n=v(t.i.values()),i=n.next();!i.done;i=n.next())!(i=i.value).Cc||i.Ca||i.Xa||(i.Cc=!1,cm(t,i,e));t=!0}}else t=!1;return t},b.be=function(){return et("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for."),this.i},b.Eg=function(){return this.la},b.Dh=function(e){this.zd=e},b.disableStream=function(e,t){if(!this.g.abr.enabled||this.m===hu||!navigator.onLine||0==t)return!1;if(this.i.variants.some(function(t){var n=t[e.type];return!!n&&n.id!==e.id&&!t.disabledUntilTime&&("audio"!=e.type||e.language===n.language)})){for(var n=!1,i=!1,r=v(this.i.variants),a=r.next();!a.done;a=r.next()){var o=(a=a.value)[e.type];o&&(o.id===e.id?(a.disabledUntilTime=Date.now()/1e3+t,n=!0):o.trickModeVideo&&o.trickModeVideo.id==e.id&&(i=!0))}return(!!n||!i)&&(this.Bd.Ja(1),d1(this,!1,t=this.ab().video.reduce(function(e,t){return e+t.end-t.start},0),!0,!1),!0)}return!1},q("shaka.Player",dx),dx.prototype.setVideoContainer=dx.prototype.Dh,dx.prototype.getManifestParserFactory=dx.prototype.Eg,dx.prototype.getManifest=dx.prototype.be,dx.prototype.retryStreaming=dx.prototype.ze,dx.prototype.setMaxHardwareResolution=dx.prototype.Ah,dx.prototype.addChaptersTrack=dx.prototype.gg,dx.prototype.addThumbnailsTrack=dx.prototype.ig,dx.prototype.addTextTrackAsync=dx.prototype.hg,dx.prototype.getStats=dx.prototype.getStats,dx.prototype.getBufferedInfo=dx.prototype.ab,dx.prototype.getSegmentAvailabilityDuration=dx.prototype.kd,dx.prototype.getPresentationStartTimeAsDate=dx.prototype.nf,dx.prototype.getPlayheadTimeAsDate=dx.prototype.Jg,dx.prototype.setTextTrackVisibility=dx.prototype.Ch,dx.prototype.getChapters=dx.prototype.wg,dx.prototype.getChaptersTracks=dx.prototype.jf,dx.prototype.isTextTrackVisible=dx.prototype.me,dx.prototype.selectVariantsByLabel=dx.prototype.zh,dx.prototype.selectTextLanguage=dx.prototype.Mf,dx.prototype.selectAudioLanguage=dx.prototype.Lf,dx.prototype.getTextLanguages=dx.prototype.Ng,dx.prototype.getAudioLanguages=dx.prototype.tg,dx.prototype.getTextLanguagesAndRoles=dx.prototype.Og,dx.prototype.getAudioLanguagesAndRoles=dx.prototype.ug,dx.prototype.selectVariantTrack=dx.prototype.Of,dx.prototype.selectTextTrack=dx.prototype.Nf,dx.prototype.getThumbnails=dx.prototype.Qg,dx.prototype.getAllThumbnails=dx.prototype.sg,dx.prototype.getImageTracks=dx.prototype.Ag,dx.prototype.getTextTracks=dx.prototype.ac,dx.prototype.getVariantTracks=dx.prototype.Mb,dx.prototype.cancelTrickPlay=dx.prototype.tc,dx.prototype.trickPlay=dx.prototype.Rc,dx.prototype.getPlaybackRate=dx.prototype.Qa,dx.prototype.isBuffering=dx.prototype.rf,dx.prototype.getKeyStatuses=dx.prototype.hd,dx.prototype.getActiveSessionsMetadata=dx.prototype.$d,dx.prototype.getExpiration=dx.prototype.ae,dx.prototype.drmInfo=dx.prototype.drmInfo,dx.prototype.keySystem=dx.prototype.keySystem,dx.prototype.isFullyLoaded=dx.prototype.Zg,dx.prototype.goToLive=dx.prototype.Vg,dx.prototype.seekRange=dx.prototype.Db,dx.prototype.isAudioOnly=dx.prototype.Yg,dx.prototype.isInProgress=dx.prototype.ec,dx.prototype.isLive=dx.prototype.Y,dx.prototype.getAdManager=dx.prototype.rg,dx.prototype.getAssetUri=dx.prototype.gd,dx.prototype.getNetworkingEngine=dx.prototype.de,dx.prototype.getMediaElement=dx.prototype.Hg,dx.prototype.getManifestType=dx.prototype.ce,dx.prototype.getLoadMode=dx.prototype.Dg,dx.prototype.resetConfiguration=dx.prototype.wh,dx.prototype.getBufferFullness=dx.prototype.hf,dx.prototype.getNonDefaultConfiguration=dx.prototype.Ig,dx.prototype.getConfiguration=dx.prototype.getConfiguration,dx.prototype.configure=dx.prototype.configure,dx.prototype.releaseAllMutexes=dx.prototype.uh,dx.prototype.destroyAllPreloads=dx.prototype.bf,dx.prototype.preload=dx.prototype.preload,dx.prototype.detachAndSavePreload=dx.prototype.cf,dx.prototype.unloadAndSavePreload=dx.prototype.Eh,dx.prototype.load=dx.prototype.load,dx.prototype.updateStartTime=dx.prototype.Jh,dx.prototype.unload=dx.prototype.Sc,dx.prototype.detach=dx.prototype.detach,dx.prototype.attachCanvas=dx.prototype.mg,dx.prototype.attach=dx.prototype.vb,dx.probeSupport=function(e){var t,n,i,r,a,o,s;return e=void 0===e||e,B(function(u){switch(u.g){case 1:var l,c,d,h,f,p,g,m,b,w,x,T,S,A,E,k,I,P,L,j,O,U,_,F,H,V;if(t={},!e){u.s(2);break}return C(u,B(function(e){if(1==e.g){for(l="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.chromecast.playready com.apple.fps.1_0 com.apple.fps".split(" "),c={"com.widevine.alpha":["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"],"com.microsoft.playready.recommendation":["150","2000","3000"]},f={videoCapabilities:d=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],audioCapabilities:h=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],initDataTypes:["cenc","sinf","skd","keyids"]},p=[null,"cenc","cbcs","cbcs-1-9"],g=new Map,m=function(e,t){var n,i,r,a,o,s,u,l;return B(function(c){switch(c.g){case 1:return D(c,2),C(c,t.createMediaKeys(),4);case 4:R(c,3);break;case 2:return N(c),c.return();case 3:i=!!(n=t.getConfiguration().sessionTypes)&&n.includes("persistent-license"),tC()&&(i=!1),r=t.getConfiguration().videoCapabilities,a=t.getConfiguration().audioCapabilities,o={persistentState:i,encryptionSchemes:[],videoRobustnessLevels:[],audioR
1obustnessLevels:[]},g.has(e)&&g.get(e)?o=g.get(e):g.set(e,o),(s=r[0].encryptionScheme)&&!o.encryptionSchemes.includes(s)&&o.encryptionSchemes.push(s),(u=r[0].robustness)&&!o.videoRobustnessLevels.includes(u)&&o.videoRobustnessLevels.push(u),(l=a[0].robustness)&&!o.audioRobustnessLevels.includes(l)&&o.audioRobustnessLevels.push(l),M(c)}})},b=function(e,t,n,i){var r,a,o,s,u,l,c,d,h,p;return B(function(g){switch(g.g){case 1:for(D(g,2),o=(a=v((r=nF(f)).videoCapabilities)).next();!o.done;o=a.next())(s=o.value).encryptionScheme=t,s.robustness=n;for(l=(u=v(r.audioCapabilities)).next();!l.done;l=u.next())(c=l.value).encryptionScheme=t,c.robustness=i;return(d=nF(r)).persistentState="required",d.sessionTypes=["persistent-license"],h=[d,r],C(g,navigator.requestMediaKeySystemAccess(e,h),4);case 4:return p=g.h,C(g,m(e,p),5);case 5:R(g,0);break;case 2:N(g),M(g)}})},w=function(e,t,n,i){var r,a;return B(function(o){switch(o.g){case 1:return D(o,2),r={type:"media-source",video:{contentType:d[0].contentType,width:640,height:480,bitrate:1,framerate:1},audio:{contentType:h[0].contentType,channels:2,bitrate:1,samplerate:1},keySystemConfiguration:{keySystem:e,video:{encryptionScheme:t,robustness:n},audio:{encryptionScheme:t,robustness:i}}},C(o,navigator.mediaCapabilities.decodingInfo(r),4);case 4:return a=o.h.keySystemAccess,C(o,m(e,a),5);case 5:R(o,0);break;case 2:N(o),M(o)}})},T=(x=v(l)).next();!T.done;T=x.next())S=T.value,g.set(S,null);for(A=[],k=(E=v(p)).next();!k.done;k=E.next())for(I=k.value,L=(P=v(l)).next();!L.done;L=P.next())"org.w3.clearkey"===(j=L.value)&&tB()||(A.push(b(j,I,"","")),A.push(w(j,I,"","")));for(U=(O=v(l)).next();!U.done;U=O.next())for(H=(F=v(c[_=U.value]||[])).next();!H.done;H=F.next())V=H.value,A.push(b(_,null,V,"")),A.push(b(_,null,"",V)),A.push(w(_,null,V,"")),A.push(w(_,null,"",V));return C(e,Promise.all(A),2)}return e.return(uG(g))}),3);case 3:t=u.h;case 2:var G={};if(tS())for(var K in aq)G[K]=!0;K=v(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var X=K.next();!X.done;X=K.next())G[X=X.value]=tS()?!!aq[X]:tA(X);for(n=G,K='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="dvh1.20.01",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4.02.01.01",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(y(nT)),G={},X=(K=v(K)).next();!X.done;X=K.next()){G[X=X.value]=!!nA(X)||(tS()?eu(X)||!!e1(X):tA(X));var W=X.split(";")[0];G[W]=G[W]||G[X]}return i=G,C(u,tX(),4);case 4:for(s in r=u.h,a={manifest:n,media:i,drm:t,hardwareResolution:r},o=hh)a[s]=o[s]();return u.return(a)}})},dx.isBrowserSupported=function(){if(e.Promise||et("A Promise implementation or polyfill is required"),!(e.Promise&&e.Uint8Array&&Array.prototype.forEach)||tV("Trident/"))return!1;var t=tB();return(!t||!(9>t))&&!!(e.MediaKeys&&e.navigator&&e.navigator.requestMediaKeySystemAccess&&e.MediaKeySystemAccess&&e.MediaKeySystemAccess.prototype.getConfiguration)&&(!!tS()||tA("application/x-mpegurl"))},dx.setAdManagerFactory=function(e){hf=e},dx.registerSupportPlugin=function(e,t){hh[e]=t},dx.prototype.destroy=dx.prototype.destroy;var hu=0,hl=1,hc=2,hd=3;dx.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3},dx.version="v41000.0.6";eg=new function(e){this.g=e,this.i=ef,this.h=ep}(new ed(Number("41000"),Number("0")));var hh={},hf=null;function hp(){}function hg(e,t){for(e={priority:t||0,callback:e},t=0;t<hm.length;t++)if(hm[t].priority<e.priority)return void hm.splice(t,0,e);hm.push(e)}q("shaka.polyfill",hp),hp.register=hg,hp.installAll=function(){for(var e=v(hm),t=e.next();!t.done;t=e.next()){t=t.value;try{t.callback()}catch(e){et("Error installing polyfill!",e)}}};var hm=[];function hv(){}function hy(){tj()||tV("Sky_STB")||f3()}function hb(){}function hw(){var e=!0;!tR()||tR()&&tH()||tR()&&tV("Fuchsia")||(e=!1),(tP()||tL()||tj()||tD()||tI()||tV("PC=EOS")||tO())&&(e=!1),e&&navigator.mediaCapabilities||
1(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=hx)}function hx(t){var n,i,r,a,o;return B(function(s){switch(s.g){case 1:if(n={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:t},i=t.video,r=t.audio,"media-source"!=t.type){if("file"!=t.type||i&&!tA(i.contentType)||r&&!tA(r.contentType))return s.return(n);s.s(2);break}if(!tS())return s.return(n);if(!i){s.s(3);break}return C(s,(u=i,B(function(t){var n,i,r;return 1==t.g?tR()?C(t,(n=u,B(function(t){return 1==t.g?e.cast&&cast.__platform__&&cast.__platform__.canDisplayType?(i=n.contentType,n.width&&n.height&&(i+="; width="+n.width+"; height="+n.height),n.framerate&&(i+="; framerate="+n.framerate),"pq"===n.transferFunction&&(i+="; eotf=smpte2084"),r=!1,i in hT?(r=hT[i],t.s(2)):C(t,cast.__platform__.canDisplayType(i),3)):t.return(eu(n.contentType)):(2!=t.g&&(r=t.h,hT[i]=r),t.return(r))})),3):tI()?(l=u.contentType,u.width&&u.height&&(l+="; width="+u.width,l+="; height="+u.height),u.framerate&&(l+="; framerate="+u.framerate),u.bitrate&&(l+="; bitrate="+u.bitrate),t.return(eu(l))):t.s(2):2!=t.g?(c=t.h,t.return(c)):t.return(eu(u.contentType))})),4);case 4:if(!s.h)return s.return(n);case 3:if(r){var u,l,c,d,h,f,p,g,m,v,y,b,w,x,T,S,A,E=r.contentType;if(tR()&&r.spatialRendering&&(E+="; spatialRendering=true"),!eu(E))return s.return(n)}case 2:if(!t.keySystemConfiguration)return n.supported=!0,s.return(n);return a=t.keySystemConfiguration,C(s,(d=i,h=r,f=a,B(function(e){switch(e.g){case 1:if(p=[],g=[],f.audio&&(m={robustness:f.audio.robustness||"",contentType:h.contentType},tI()&&h.contentType.includes('codecs="ac-3"')&&(m.contentType='audio/mp4; codecs="ec-3"'),f.audio.encryptionScheme&&(m.encryptionScheme=f.audio.encryptionScheme),p.push(m)),f.video&&(v={robustness:f.video.robustness||"",contentType:d.contentType},f.video.encryptionScheme&&(v.encryptionScheme=f.video.encryptionScheme),g.push(v)),y={initDataTypes:[f.initDataType],distinctiveIdentifier:f.distinctiveIdentifier,persistentState:f.persistentState,sessionTypes:f.sessionTypes},p.length&&(y.audioCapabilities=p),g.length&&(y.videoCapabilities=g),b=d?d.contentType:"",w=h?h.contentType:"",x=nv(b)+";"+nm(b),T=nv(w)+";"+nm(w),S=f.keySystem,A=null,D(e,2),tw.has(x+"#"+T+"#"+S)){A=tw.get(x+"#"+T+"#"+S)||null,e.s(4);break}return C(e,navigator.requestMediaKeySystemAccess(f.keySystem,[y]),5);case 5:A=e.h,tw.set(x+"#"+T+"#"+S,A);case 4:R(e,3);break;case 2:N(e);case 3:return e.return(A)}})),6);case 6:(o=s.h)&&(n.supported=!0,n.keySystemAccess=o);case 5:return s.return(n)}})}hp.EncryptionScheme=hv,hv.install=hy,hg(hy,-2),hp.MediaCapabilities=hb,hb.install=hw;hb.originalMcap=null;var hT={};function hS(){}function hA(){var t,n=tB();(e.MediaSource||e.ManagedMediaSource)&&(n&&e.MediaSource?10>=n?e.MediaSource=null:12>=n?(hE(),hk()):15>=n&&hE():tV("DT_STB_BCM")?(hE(),hk()):(tV("Tizen 2")||tC()||tV("Tizen 4"))&&function(){var t=MediaSource.isTypeSupported.bind(MediaSource);if(MediaSource.isTypeSupported=function(e){return"opus"!=nm(e)&&t(e)},e.ManagedMediaSource){var n=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);e.ManagedMediaSource.isTypeSupported=function(e){return"opus"!=nm(e)&&n(e)}}}()),(e.MediaSource||e.ManagedMediaSource)&&function(){if(e.MediaSource){var t=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(e){return"mp2t"!=np(e)&&t(e)}}if(e.ManagedMediaSource){var n=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);e.ManagedMediaSource.isTypeSupported=function(e){return"mp2t"!=np(e)&&n(e)}}}(),e.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&(t=MediaSource.isTypeSupported,tD()||(MediaSource.isTypeSupported=function(e){var n=e.split(/ *; */),i=n.findIndex(function(e){return e.startsWith("codecs=")});if(0>i)return t(e);var r=n[i].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),a=r.findIndex(function(e){return e.startsWith("vp09")});return 0<=a&&(r[a]="vp9",n[i]='codecs="'+r.join(",")+'"',e=n.join("; ")),t(e)}))}function hE(){var e=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var t=e.apply(this,F.apply(0,arguments));return t.abort=function(){},t}}function hk(){var e=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(t,n){return e.call(this,t,n-.001)}}function hI(){}function hC(e,t){try{var n=new hR(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function hM(e){var t=this.mediaKeys;return t&&t!=e&&hP(t,null),delete this.mediaKeys,(this.mediaKeys=e)?hP(e,this):Promise.resolve()}function hD(e){if(eA(e=eT(e.initData)).getUint32(0,!0)+4!=e.byteLength)throw RangeError("Malformed FairPlay init data");e=tQ(e=tJ(e.subarray(4),!0));var t=new Event("encrypted");t.initDataType="skd",t.initData=ex(e),this.dispatchEvent(t)}function hR(e,t){if(this.keySystem=e,e.startsWith("com.apple.fps"))for(t=(e=v(t)).next();!t.done;t=e.next()){var n=t.value;if("required"==n.persistentState)t=null;else{t={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:n.initDataTypes,sessionTypes:["temporary"],label:n.label};var i=!1,r=!1;if(n.audioCapabilities)for(var a=v(n.audioCapabilities),o=a.next();!o.done;o=a.next())(o=o.value).contentType&&(i=!0,WebKitMediaKeys.isTypeSupp
1orted(this.keySystem,o.contentType.split(";")[0])&&(t.audioCapabilities.push(o),r=!0));if(n.videoCapabilities)for(a=(n=v(n.videoCapabilities)).next();!a.done;a=n.next())(a=a.value).contentType&&(i=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,a.contentType.split(";")[0])&&(t.videoCapabilities.push(a),r=!0));i||(r=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),t=r?t:null}if(t){this.g=t;return}}throw(e=Error("Unsupported keySystem")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}function hN(e){this.h=new WebKitMediaKeys(e),this.g=new ea}function hP(e,t){if(e.g.Va(),!t)return Promise.resolve();e.g.J(t,"webkitneedkey",hD);try{return lF(t,HTMLMediaElement.HAVE_METADATA,e.g,function(){t.webkitSetMediaKeys(e.h)}),Promise.resolve()}catch(e){return Promise.reject(e)}}function hL(e){r7.call(this),this.i=null,this.l=e,this.g=this.h=null,this.j=new ea,this.sessionId="",this.expiration=NaN,this.closed=new r0,this.keyStatuses=new hO}function hj(e,t){var n=e.keyStatuses;n.size=+(void 0!=t),n.g=t,t=new r8("keystatuseschange"),e.dispatchEvent(t)}function hO(){this.size=0,this.g=void 0}hb.memoizedCanDisplayTypeRequests_=hT,hg(hw,-1),hp.MediaSource=hS,hS.install=hA,hg(hA),hp.PatchedMediaKeysApple=hI,hI.uninstall=function(){a&&(a=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",o),HTMLMediaElement.prototype.setMediaKeys=s,e.MediaKeys=u,e.MediaKeySystemAccess=l,navigator.requestMediaKeySystemAccess=c,o=c=s=l=u=null,e.shakaMediaKeysPolyfill="")},hI.install=function(t){e.HTMLVideoElement&&e.WebKitMediaKeys&&((void 0===t?0:t)&&(a=!0,o=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),s=HTMLMediaElement.prototype.setMediaKeys,u=e.MediaKeys,l=e.MediaKeySystemAccess,c=navigator.requestMediaKeySystemAccess),delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=hM,e.MediaKeys=hN,e.MediaKeySystemAccess=hR,navigator.requestMediaKeySystemAccess=hC,e.shakaMediaKeysPolyfill=hU)},hR.prototype.createMediaKeys=function(){return Promise.resolve(new hN(this.keySystem))},hR.prototype.getConfiguration=function(){return this.g},hN.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw TypeError("Session type "+e+" is unsupported on this platform.");return new hL(this.h,e)},hN.prototype.setServerCertificate=function(){return Promise.resolve(!1)},hN.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")},A(hL,r7),(b=hL.prototype).generateRequest=function(e,t){var n=this;this.h=new r0;try{var i=this.l.createSession("video/mp4",eT(t));this.i=i,this.sessionId=i.sessionId||"",this.j.J(this.i,"webkitkeymessage",function(e){n.h&&(n.h.resolve(),n.h=null),e=(new Map).set("messageType",void 0==n.keyStatuses.Ab()?"license-request":"license-renewal").set("message",ex(e.message)),e=new r8("message",e),n.dispatchEvent(e)}),this.j.J(i,"webkitkeyadded",function(){n.g&&(hj(n,"usable"),n.g.resolve(),n.g=null)}),this.j.J(i,"webkitkeyerror",function(){var e=Error("EME PatchedMediaKeysApple key error");if(e.errorCode=n.i.error,null!=n.h)n.h.reject(e),n.h=null;else if(null!=n.g)n.g.reject(e),n.g=null;else switch(n.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:hj(n,"output-not-allowed");break;default:hj(n,"internal-error")}}),hj(this,"status-pending")}catch(e){this.h.reject(e)}return this.h},b.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},b.update=function(e){this.g=new r0;try{this.i.update(eT(e))}catch(e){this.g.reject(e)}return this.g},b.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Va()}catch(e){this.closed.reject(e)}return this.closed},b.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(b=hO.prototype).Ab=function(){return this.g},b.forEach=function(e){this.g&&e(this.g,tb.value())},b.get=function(e){if(this.has(e))return this.g},b.has=function(e){var t=tb.value();return!!(this.g&&eb(e,t))},b.entries=function(){},b.keys=function(){},b.values=function(){};var hU="apple";function h_(){}function hB(){e.MediaKeys&&(!MediaKeys.prototype.setServerCertificate||tC()||tV("Tizen 4")||tV("Tizen 5.0")||tD()&&38===tN())&&(MediaKeys.prototype.setServerCertificate=hF)}function hF(){return Promise.resolve(!1)}function hH(){}function hV(){if(!(!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if
1(HTMLMediaElement.prototype.webkitGenerateKeyRequest)h0="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=hK,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=hX,e.MediaKeys=hq,e.MediaKeySystemAccess=hW,e.shakaMediaKeysPolyfill=h1}}function hG(e){var t=h0;return t?t+e.charAt(0).toUpperCase()+e.slice(1):e}function hK(e,t){try{var n=new hW(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function hX(e){var t=this.mediaKeys;return t&&t!=e&&hz(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&hz(e,this),Promise.resolve()}function hW(e,t){this.g=this.keySystem=e;var n=!1;"org.w3.clearkey"==e&&(this.g="webkit-org.w3.clearkey",n=!1);var i=!1,r=document.getElementsByTagName("video");r=r.length?r[0]:document.createElement("video"),t=v(t);for(var a=t.next();!a.done;a=t.next()){var o={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(a=a.value).initDataTypes,sessionTypes:["temporary"],label:a.label},s=!1;if(a.audioCapabilities)for(var u=v(a.audioCapabilities),l=u.next();!l.done;l=u.next())(l=l.value).contentType&&(s=!0,r.canPlayType(l.contentType.split(";")[0],this.g)&&(o.audioCapabilities.push(l),i=!0));if(a.videoCapabilities)for(l=(u=v(a.videoCapabilities)).next();!l.done;l=u.next())(l=l.value).contentType&&(s=!0,r.canPlayType(l.contentType,this.g)&&(o.videoCapabilities.push(l),i=!0));if(s||(i=r.canPlayType("video/mp4",this.g)||r.canPlayType("video/webm",this.g)),"required"==a.persistentState&&(n?(o.persistentState="required",o.sessionTypes=["persistent-license"]):i=!1),i){this.h=o;return}}throw n="Unsupported keySystem",("org.w3.clearkey"==e||"com.widevine.alpha"==e)&&(n="None of the requested configurations were supported."),(e=Error(n)).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}function hq(e){this.l=e,this.h=null,this.g=new ea,this.i=[],this.j=new Map}function hz(e,t){e.h=t,e.g.Va();var n=h0;t&&(e.g.J(t,n+"needkey",function(t){var n=new CustomEvent("encrypted");n.initDataType="cenc",n.initData=ex(t.initData),e.h.dispatchEvent(n)}),e.g.J(t,n+"keymessage",function(t){var n=hY(e,t.sessionId);n&&(t=new r8("message",t=(new Map).set("messageType",void 0==n.keyStatuses.Ab()?"licenserequest":"licenserenewal").set("message",t.message)),n.h&&(n.h.resolve(),n.h=null),n.dispatchEvent(t))}),e.g.J(t,n+"keyadded",function(t){(t=hY(e,t.sessionId))&&t.ready()}),e.g.J(t,n+"keyerror",function(t){var n=hY(e,t.sessionId);if(n){var i=Error("EME v0.1b key error"),r=t.errorCode;r.systemCode=t.systemCode,i.errorCode=r,!t.sessionId&&n.h?(45==t.systemCode&&(i.message="Unsupported session type."),n.h.reject(i),n.h=null):t.sessionId&&n.g?(n.g.reject(i),n.g=null):(i=t.systemCode,t.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?hQ(n,"output-restricted"):1==i?hQ(n,"expired"):hQ(n,"internal-error"))}}))}function hY(e,t){var n=e.j.get(t);return n||((n=e.i.shift())?(n.sessionId=t,e.j.set(t,n),n):null)}function hJ(e,t,n){r7.call(this),this.j=e,this.m=!1,this.g=this.h=null,this.i=t,this.l=n,this.sessionId="",this.expiration=NaN,this.closed=new r0,this.keyStatuses=new hZ}function h$(e,t,n){if(e.m)return Promise.reject(Error("The session is already initialized."));e.m=!0;try{if("persistent-license"==e.l)if(n)var i=eT(tQ("LOAD_SESSION|"+n));else{var r=tQ("PERSISTENT|");i=t9(r,t)}else i=eT(t)}catch(e){return Promise.reject(e)}e.h=new r0;var a=hG("generateKeyRequest");try{e.j[a](e.i,i)}catch(t){if("InvalidStateError"!=t.name)return e.h=null,Promise.reject(t);new tT(function(){try{e.j[a](e.i,i)}catch(t){e.h.reject(t),e.h=null}}).da(.01)}return e.h}function hQ(e,t){var n=e.keyStatuses;n.size=+(void 0!=t),n.g=t,t=new r8("keystatuseschange"),e.dispatchEvent(t)}function hZ(){this.size=0,this.g=void 0}hp.PatchedMediaKeysCert=h_,h_.install=hB,hg(hB),hp.PatchedMediaKeysWebkit=hH,hH.install=hV,hW.prototype.createMediaKeys=function(){return Promise.resolve(new hq(this.g))},hW.prototype.getConfiguration=function(){return this.h},hq.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary")&&"persistent-license"!=e)throw TypeError("Session type "+e+" is unsupported on this platform.");var t=this.h||document.createElement("video");return t.src||(t.src="about:blank"),e=new hJ(t,this.l,e),this.i.push(e),e},hq.prototype.setServerCertificate=function(){return Promise.resolve(!1)},hq.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")},A(hJ,r7),(b=hJ.prototype).ready=function(){hQ(this,"usable"),this.g&&this.g.resolve(),this.g=null},b.generateRequest=function(e,t){return h$(this,t,null)},b.load=function(e){return"persistent-license"==this.l?h$(this,null,e):Prom
1ise.reject(Error("Not a persistent session."))},b.update=function(e){var t=new r0;return!function e(t,n,i){if(t.g)t.g.then(function(){return e(t,n,i)}).catch(function(){return e(t,n,i)});else{if(t.g=n,"webkit-org.w3.clearkey"==t.i){var r=tY(i),a=JSON.parse(r);"oct"!=a.keys[0].kty&&(t.g.reject(Error("Response is not a valid JSON Web Key Set.")),t.g=null),r=t6(a.keys[0].k),a=t6(a.keys[0].kid)}else r=eT(i),a=null;var o=hG("addKey");try{t.j[o](t.i,r,a,t.sessionId)}catch(e){t.g.reject(e),t.g=null}}}(this,t,e),t},b.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=hG("cancelKeyRequest");try{this.j[e](this.i,this.sessionId)}catch(e){}}return this.closed.resolve(),this.closed},b.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()},(b=hZ.prototype).Ab=function(){return this.g},b.forEach=function(e){this.g&&e(this.g,tb.value())},b.get=function(e){if(this.has(e))return this.g},b.has=function(e){var t=tb.value();return!!(this.g&&eb(e,t))},b.entries=function(){},b.keys=function(){},b.values=function(){};var h0="",h1="webkit";function h2(){}function h4(){e.crypto&&("randomUUID"in e.crypto||(e.crypto.randomUUID=h3))}function h3(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)}function h5(){}function h6(){var e=Symbol.prototype;"description"in e||Object.defineProperty(e,"description",{get:h8})}function h8(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}function h7(){}function h9(){if(e.HTMLMediaElement){var t=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var e=t.apply(this);return e&&e.catch(function(){}),e}}}function fe(){}function ft(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in t||tD()&&38===tN())&&(t.getVideoPlaybackQuality=fn)}}function fn(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function fi(){}function fr(){if(!e.VTTCue&&e.TextTrackCue){var t=null,n=TextTrackCue.length;if(3==n)t=fa;else if(6==n)t=fo;else{try{var i=!!fa(1,2,"")}catch(e){i=!1}i&&(t=fa)}t&&(e.VTTCue=function(e,n,i){return t(e,n,i)})}}function fa(t,n,i){return new e.TextTrackCue(t,n,i)}function fo(t,n,i){return new e.TextTrackCue(t+"-"+n+"-"+i,t,n,i)}function fs(){}function fu(e){var t=e.match(/rgba\(([^)]+)\)/);return t&&4==(t=t[1].split(",")).length?(t[3]=String(Number(t[3])/255),"rgba("+t.join(",")+")"):e}function fl(e,t){t=v(t.split(" "));for(var n=t.next();!n.done;n=t.next())switch(n.value){case"underline":e.textDecoration.includes("underline")||e.textDecoration.push("underline");break;case"noUnderline":e.textDecoration.includes("underline")&&eL(e.textDecoration,"underline");break;case"lineThrough":e.textDecoration.includes("lineThrough")||e.textDecoration.push("lineThrough");break;case"noLineThrough":e.textDecoration.includes("lineThrough")&&eL(e.textDecoration,"lineThrough");break;case"overline":e.textDecoration.includes("overline")||e.textDecoration.push("overline");break;case"noOverline":e.textDecoration.includes("overline")&&eL(e.textDecoration,"overline")}}function fc(e,t,n,i,r){return r=void 0===r||r,(e=fh(e,n,i))?e:r?fd(t,n,i):null}function fd(e,t,n){if(!e)return null;var i=rD(e,fN,n);return i||ff(e,t,n)}function fh(e,t,n){var i=rD(e,fN,n);return i||ff(e,t,n)}function ff(e,t,n){e=fp(e,"style",t,"");for(var i=null,r=0;r<e.length;r++){var a=rC(e[r],"urn:ebu:tt:style",n);a||(a=rD(e[r],fN,n)),a||(a=fh(e[r],t,n)),a&&(i=a)}return i}function fp(e,t,n,i,r){var a=[];if(!e||1>n.length)return a;var o=e;for(e=null;!e&&!(e=r?rC(o,r,t):o.attributes[t])&&(o=o.parent););if(t=e){for(r=(t=v(t.split(" "))).next();!r.done;r=t.next())for(r=r.value,o=(e=v(n)).next();!o.done;o=e.next())if(i+(o=o.value).attributes["xml:id"]==r){a.push(o);break}}return a}function fg(e,t){var n=fm(e.attributes.begin,t),i=fm(e.attributes.end,t);return e=fm(e.attributes.dur,t),null==i&&null!=e&&(i=n+e),{start:n,end:i}}function fm(e,t){var n=null;if(fS.test(e)){n=Number((e=fS.exec(e))[1]);var i=Number(e[2]),r=Number(e[3]),a=Number(e[4]);a+=(Number(e[5])||0)/t.h,r+=a/t.frameRate,n=r+60*i+3600*n}else if(fA.test(e))n=fv(fA,e);else if(fE.test(e))n=fv(fE,e);else if(fk.test(e))n=Number((e=fk.exec(e))[1])/t.frameRate;else if(fI.test(e))n=Number((e=fI.exec(e))[1])/t.g;else if(fC.test(e))n=fv(fC,e);else if(e)throw new tf(2,2,2001,"Could not parse cue time range in TTML");return n}function fv(e,t){return null==(e=e.exec(t))||""==e[0]?null:(Number(e[4])||0)/1e3+(Number(e[3])||0)+60*(Number(e[2])||0)+3600*(Number(e[1])||0)}function fy(e,t,n,i){this.frameRate=Number(e)||30,this.h=Number(t)||1,this.g=Number(i),0==this.g&&(this.g=e?this.frameRate*this.h:1),n&&(e=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=Number(e[1])/Number(e[2]))}hg(hV),hp.RandomUUID=h2,h2.install=h4,hg(h4),hp.Symbol=h5,h5.install=h6,hg(h6),hp.VideoPlayPromise=h7,h7.install=h9,hg(h9),hp.VideoPlaybackQuality=fe,fe.install=ft,hg(ft),hp.VTTCue=fi,fi.install=fr,hg(fr),fs.prototype.parseInit=function(){},fs.prototype.setSequenceMode=function(){},fs.prototype.setManifestType=function(){},fs.prototype.parseMedia=function(e,t,n){var i,r=tY(e);
1if(e=[],""==r)return e;var a=rv(r,"tt",!0);if(!a)throw new tf(2,2,2005,"Failed to parse TTML.");if(!(r=rA(a,"body")[0]))return[];var o=rD(a,fR,"frameRate"),s=rD(a,fR,"subFrameRate"),u=rD(a,fR,"frameRateMultiplier"),l=rD(a,fR,"tickRate"),c=rD(a,fR,"cellResolution"),d=a.attributes["xml:space"]||"default",h=rD(a,fN,"extent");if("default"!=d&&"preserve"!=d)throw new tf(2,2,2005,"Invalid xml:space value: "+d);d="default"==d,o=new fy(o,s,u,l),c=(i=c)&&(i=/^(\d+) (\d+)$/.exec(i))?{Ib:parseInt(i[1],10),rows:parseInt(i[2],10)}:null,s=((s=rA(a,"metadata")[0])?s.children:[]).filter(function(e){return"\n"!=e}),u=rA(a,"style"),a=rA(a,"region"),l=[];for(var f=v(a),p=f.next();!p.done;p=f.next())(p=function(e,t,n){var i=new eD,r=e.attributes["xml:id"];if(!r)return null;i.id=r,r=null,n&&(r=fb.exec(n)||fT.exec(n)),n=r?Number(r[1]):null,r=r?Number(r[2]):null;var a,o=fd(e,t,"extent");if(o){var s=(a=fb.exec(o))||fT.exec(o);null!=s&&(i.width=Number(s[1]),i.height=Number(s[2]),a||(null!=n&&(i.width=100*i.width/n),null!=r&&(i.height=100*i.height/r)),i.widthUnits=a||null!=n?eR:0,i.heightUnits=a||null!=r?eR:0)}return(e=fd(e,t,"origin"))&&null!=(s=(a=fb.exec(e))||fT.exec(e))&&(i.viewportAnchorX=Number(s[1]),i.viewportAnchorY=Number(s[2]),a?o||(i.width=100-i.viewportAnchorX,i.widthUnits=eR,i.height=100-i.viewportAnchorY,i.heightUnits=eR):(null!=r&&(i.viewportAnchorY=100*i.viewportAnchorY/r),null!=n&&(i.viewportAnchorX=100*i.viewportAnchorX/n)),i.viewportAnchorUnits=a||null!=n?eR:0),i}(p.value,u,h))&&l.push(p);if(rx(r,"p").length)throw new tf(2,2,2001,"<p> can only be inside <div> in TTML");for(f=(h=v(rx(r,"div"))).next();!f.done;f=h.next())if(rx(f.value,"span").length)throw new tf(2,2,2001,"<span> can only be inside <p> in TTML");return(t=function e(t,n,i,r,a,o,s,u,l,c,d,h){var f,p,g,m,y=c;if(rb(t)){if(!d)return null;var b={tagName:"span",children:[rT(t)],attributes:{},parent:null}}else b=t;for(var w=null,x=v(fP),T=x.next();!T.done&&!(w=fp(b,"backgroundImage",r,"#",T.value)[0]);T=x.next());x=null;var S=rD(b,fP,"backgroundImage");if(h&&S&&!S.startsWith("#")&&(T=new e7(h),S=new e7(S),(T=T.resolve(S).toString())&&(x=T)),("p"==t.tagName||w||x)&&(d=!0),t=d,T="default"==(b.attributes["xml:space"]||(u?"default":"preserve")),S=b.children.every(rb),u=[],!S)for(var A=v(b.children),E=A.next();!E.done;E=A.next())(E=e(E.value,n,i,r,a,o,s,T,l,b,d,h))&&u.push(E);if(r=null!=c,h=rT(b),h=b.children.length&&h&&/\S/.test(h),!((E=b.attributes.begin||b.attributes.end||b.attributes.dur)||h||"br"==b.tagName||0!=u.length||r&&!T))return null;for(h=(A=fg(b,i)).start,A=A.end;y&&y.tagName&&"tt"!=y.tagName;){h=(f=y,p=i,g=h,m=A,f=fg(f,p),null==g?g=f.start:null!=f.start&&(g+=f.start),null==m?m=f.end:null!=f.start&&(m+=f.start),A={start:g,end:m}).start,A=A.end,y=y.parent}if(null==h&&(h=0),h+=n.periodStart,A=null==A?1/0:A+n.periodStart,h=Math.max(h,n.segmentStart),A=Math.min(A,n.segmentEnd),!E&&0<u.length)for(h=1/0,A=0,i=(n=v(u)).next();!i.done;i=n.next())h=Math.min(h,(i=i.value).startTime),A=Math.max(A,i.endTime);if("br"==b.tagName)return(a=new eO(h,A,"")).lineBreak=!0,a;if(n="",S&&(n=t1(rT(b)||""),T&&(n=n.replace(/\s+/g," "))),(n=new eO(h,A,n)).nestedCues=u,d||(n.isContainer=!0),l&&(n.cellResolution=l),l=fp(b,"region",o,"")[0],b.attributes.region&&l&&l.attributes["xml:id"]){var k=l.attributes["xml:id"];n.region=s.filter(function(e){return e.id==k})[0]}return s=l,c&&r&&!b.attributes.region&&!b.attributes.style&&(s=fp(c,"region",o,"")[0]),function(e,t,n,i,r,a,o,s){if("rtl"==fc(t,n,a,"direction",o=o||s)&&(e.direction="rtl"),"tb"==(s=fc(t,n,a,"writingMode",o))||"tblr"==s?e.writingMode="vertical-lr":"tbrl"==s?e.writingMode="vertical-rl":"rltb"==s||"rl"==s?e.direction="rtl":s&&(e.direction=eK),(s=fc(t,n,a,"textAlign",!0))?(e.positionAlign=fD[s],e.lineAlign=fM[s],e.textAlign=eH[s.toUpperCase()]):e.textAlign=eF,(s=fc(t,n,a,"displayAlign",!0))&&(e.displayAlign=eG[s.toUpperCase()]),(s=fc(t,n,a,"color",o))&&(e.color=fu(s)),(s=fc(t,n,a,"backgroundColor",o))&&(e.backgroundColor=fu(s)),(s=fc(t,n,a,"border",o))&&(e.border=s),s=fc(t,n,a,"fontFamily",o))switch(s){case"monospaceSerif":e.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case"proportionalSansSerif":e.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case"sansSerif":e.fontFamily="sans-serif";break;case"monospaceSansSerif":e.fontFamily="Consolas,monospace";break;case"proportionalSerif":e.fontFamily="serif";break;default:e.fontFamily=s.split(",").filter(function(e){return"default"!=e}).join(",")}switch((s=fc(t,n,a,"fontWeight",o))&&"bold"==s&&(e.fontWeight=700),e.wrapLine=!(s=fc(t,n,a,"wrapOption",o))||"noWrap"!=s,(s=fc(t,n,a,"lineHeight",o))&&s.match(fx)&&(e.lineHeight=s),(s=fc(t,n,a,"fontSize",o))&&(s.match(fx)||s.match(fw))&&(e.fontSize=s),(s=fc(t,n,a,"fontStyle",o))&&(e.fontStyle=eZ[s.toUpperCase()]),i?(r=i.attributes.imageType||i.attributes.imagetype,s=i.attributes.encoding,i=rT(i).trim(),"PNG"==r&&"Base64"==s&&i&&(e.backgroundImage="data:image/png;base64,"+i)):r&&(e.backgroundImage=r),(i=fc(t,n,a,"textOutline",o))&&((i=i.split(" "))[0].match(fx)?e.textStrokeColor=e.color:(e.textStrokeColor=fu(i[0]),i.shift()),i[0]&&i[0].match(fx)?e.textStrokeWidth=i[0]:e.textStrokeColor=""),(i=fc(t,n,a,"letterSpacing",o))&&i.match(fx)&&(e.letterSpacing=i),(i=fc(t,n,a,"linePadding",o))&&i.match(fx)&&(e.linePadding=i),(i=fc(t,n,a,"opacity",o))&&(e.opacity=parseFloat(i)),(i=fd(n,a,"textDecoration"))&&fl(e,i),(i=fh(t,a,"textDecoration"))&&fl(e,i),(i=fc(t,n,a,"textCombine",o))&&(e.textCombineUpright=i),fc(t,n,a,"ruby",o)){case"container":e.rubyTag="ruby";break;case"text":e.rubyTag="rt"}}(n,b,s,w,x,a,t,0==u.length),n}(r,t,o,s,u,a,l,d,c,null,!1,n))&&(t.backgroundColor||(t.backgroundColor="transparent"),e.push(t)),e},q("shaka.text.TtmlTextParser",fs),fs.prototype.parseMedia=fs.prototype.parseMedia,fs.prototype.setManifestType=fs.prototype.setManifestType,fs.prototype.setSequenceMode=fs.prototype.setSequenceMode,fs.prototype.parseInit=fs.prototype.parseInit;var fb=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,fw=/^(\d{1,4}(?:\.\d+)?|100)%$/,fx=/^(\d+px|\d+em|\d*\.?\d+c)$/,fT=/^(\d+)px (\d+)px$/,fS=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,fA=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,fE=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,fk=/^(\d*(?:\.\d*)?)f$/,fI=/^(\d*(?:\.\d*)?)t$/,fC=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),fM={left:eq,center:"center",right:"end",start:eq,end:"end"},fD={left:"line-left",center:"center",right:"line-right"},fR=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],fN=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],fP
1=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];function fL(){this.g=new fs}function fj(){this.h=!1,this.g="UNKNOWN"}function fO(e){for(var t=v(Object.entries(eY)),n=t.next();!n.done;n=t.next()){var i=v(n.value);n=i.next().value,i=i.next().value;var r=new eO(0,0,"");r.color=i,e.set("."+n,r)}for(n=(t=v(Object.entries(eJ))).next();!n.done;n=t.next())n=(i=v(n.value)).next().value,i=i.next().value,(r=new eO(0,0,"")).backgroundColor=i,e.set("."+n,r)}function fU(e,t,n){if(e.includes("<")){0===n.size&&fO(n);var i,r,a,o,s=e;e=[];for(var u=-1,l=0;l<s.length;l++)"<"===s[l]?u=l+1:">"===s[l]&&0<u&&((u=s.substr(u,l-u)).match(fH)&&e.push(u),u=-1);for(l=(e=v(e)).next();!l.done;l=e.next())l=l.value,s=s.replace("<"+l+">",'<div time="'+l+'">')+"</div>";e=s;e:{l=e,u=[];var c=-1;e="",s=!1;for(var d=0;d<l.length;d++)if("/"===l[d]){var h=l.indexOf(">",d);if(-1===h){e=l;break e}if((h=l.substring(d+1,h))&&"v"==h){s=!0;var f=null;if(u.length&&(f=u[u.length-1]),f){if(f===h)e+="/"+h+">";else{if(!f.startsWith("v")){e+=l[d];continue}e+="/"+f+">"}d+=h.length+1}else e+=l[d]}else e+=l[d]}else"<"===l[d]?"v"!=l[c=d+1]&&(c=-1):">"===l[d]&&0<c&&(u.push(l.substr(c,d-c)),c=-1),e+=l[d];for(u=(l=v(u)).next();!u.done;u=l.next())c=(u=u.value).replace(" ",".voice-"),e=(e=e.replace("<"+u+">","<"+c+">")).replace("</"+u+">","</"+c+">"),s||(e+="</"+c+">")}i=e,r={"< ":""," >":" >"},o=RegExp((a=/(< +>|<\s|\s>)/g).source),e=i&&o.test(i)?i.replace(a,function(e){return r[e]||""}):i||"";try{var p=rv("<span>"+e+"</span>","span")}catch(e){}if(p)if(1!=(p=p.children).length||p[0].tagName)for(e=(p=v(p)).next();!e.done;e=p.next())!function e(t,n,i){var r=n.clone();if(r.nestedCues=[],r.payload="",r.rubyTag="",r.line=null,r.region=new eD,r.position=null,r.size=0,t.tagName)for(var a=v(t.tagName.split(/(?=[ .])+/g)),o=a.next();!o.done;o=a.next()){var s=o=o.value;if(s.startsWith(".voice-")){var u=s.split("-").pop();s='v[voice="'+u+'"]',i.has(s)||(s="v[voice="+u+"]")}switch(i.has(s)&&(u=r,s=i.get(s))&&(u.backgroundColor=f_(s.backgroundColor,u.backgroundColor),u.color=f_(s.color,u.color),u.fontFamily=f_(s.fontFamily,u.fontFamily),u.fontSize=f_(s.fontSize,u.fontSize),u.textShadow=f_(s.textShadow,u.textShadow),u.fontWeight=s.fontWeight,u.fontStyle=s.fontStyle,u.opacity=s.opacity,u.rubyTag=s.rubyTag,u.textCombineUpright=s.textCombineUpright,u.wrapLine=s.wrapLine),o){case"br":r=eU(r.startTime,r.endTime),n.nestedCues.push(r);return;case"b":r.fontWeight=700;break;case"i":r.fontStyle="italic";break;case"u":r.textDecoration.push("underline");break;case"font":(o=t.attributes.color)&&(r.color=o);break;case"div":if(!(o=t.attributes.time))break;(o=fF(new sI(o)))&&(r.startTime=o);break;case"ruby":case"rp":case"rt":r.rubyTag=o}}if(a=t.children,rb(t)||1==a.length&&rb(a[0]))for(i=rT(t).split("\n"),t=!0,a=(i=v(i)).next();!a.done;a=i.next())a=a.value,t||(t=eU(r.startTime,r.endTime),n.nestedCues.push(t)),0<a.length&&((t=r.clone()).payload=t1(a),n.nestedCues.push(t)),t=!1;else for(n.nestedCues.push(r),t=(n=v(a)).next();!t.done;t=n.next())e(t.value,r,i)}(e.value,t,n);else t.payload=t1(e);else t.payload=t1(e)}else t.payload=t1(e)}function f_(e,t){return e&&0<e.length?e:t}function fB(e,t,n){var i,r,a;(i=/^align:(start|middle|center|end|left|right)$/.exec(t))?"middle"==(t=i[1])?e.textAlign=eF:e.textAlign=eH[t.toUpperCase()]:(i=/^vertical:(lr|rl)$/.exec(t))?e.writingMode="lr"==i[1]?"vertical-lr":"vertical-rl":(i=/^size:([\d.]+)%$/.exec(t))?e.size=Number(i[1]):(i=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(t))?(e.position=Number(i[1]),i[2]&&(e.positionAlign="line-left"==(t=i[2])||"start"==t?"line-left":"line-right"==t||"end"==t?"line-right":"center"==t||"middle"==t?"center":eB)):(i=/^region:(.*)$/.exec(t))?(r=n,a=i[1],(t=(r=r.filter(function(e){return e.id==a})).length?r[0]:null)&&(e.region=t)):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=ez[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=eW,e.line=Number(n[1]),n[2]&&(e.lineAlign=ez[n[2].toUpperCase()]))}function fF(e){if(null==(e=sM(e,fH)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}nk["application/ttml+xml"]=function(){return new fs},fL.prototype.parseInit=function(e){var t=!1;if((new iZ).box("moov",i0).box("trak",i0).box("mdia",i0).box("minf",i0).box("stbl",i0).P("stsd",i1).box("stpp",function(e){t=!0,e.parser.stop()}).parse(e),!t)throw new tf(2,2,2007)},fL.prototype.setSequenceMode=function(){},fL.prototype.setManifestType=function(){},fL.prototype.parseMedia=function(e,t,n){var i=this,r=!1,a=[];if((new iZ).box("mdat",i3(function(e){r=!0,a=a.concat(i.g.parseMedia(e,t,n
1))})).parse(e,!1),!r)throw new tf(2,2,2007);return a},q("shaka.text.Mp4TtmlParser",fL),fL.prototype.parseMedia=fL.prototype.parseMedia,fL.prototype.setManifestType=fL.prototype.setManifestType,fL.prototype.setSequenceMode=fL.prototype.setSequenceMode,fL.prototype.parseInit=fL.prototype.parseInit,nk['application/mp4; codecs="stpp"']=function(){return new fL},nk['application/mp4; codecs="stpp.ttml"']=function(){return new fL},nk['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new fL},nk['application/mp4; codecs="stpp.ttml.im2t"']=function(){return new fL},nk['application/mp4; codecs="stpp.ttml.etd1"']=function(){return new fL},nk['application/mp4; codecs="stpp.ttml.etd1|im1t"']=function(){return new fL},nk['application/mp4; codecs="stpp.ttml.im1t|etd1"']=function(){return new fL},nk['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new fL},fj.prototype.parseInit=function(){},fj.prototype.setSequenceMode=function(e){this.h=e},fj.prototype.setManifestType=function(e){this.g=e},fj.prototype.parseMedia=function(e,t){var n=(e=(e=tY(e)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")).split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(n[0]))throw new tf(2,2,2e3);if(e=t.vttOffset,n[0].includes("X-TIMESTAMP-MAP")&&"HLS"==this.g)if(this.h){var i=n[0];if(e=i.match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),i=i.match(/MPEGTS:(\d+)/m),!e||!i||null==(e=fF(new sI(e[1]))))throw new tf(2,2,2e3);i=Number(i[1]);for(var r=t.segmentStart-t.periodStart;95443.7176888889<=r;)r-=95443.7176888889,i+=0x200000000;e=t.periodStart+i/9e4-e}else e=t.segmentStart;for(t=[],r=(i=v(n[0].split("\n"))).next();!r.done;r=i.next())if(r=r.value,/^Region:/.test(r)){r=new sI(r);var a=new eD;sD(r),sC(r);for(var o=sD(r);o;){var s=a,u=o;(o=/^id=(.*)$/.exec(u))?s.id=o[1]:(o=/^width=(\d{1,2}|100)%$/.exec(u))?s.width=Number(o[1]):(o=/^lines=(\d+)$/.exec(u))?(s.height=Number(o[1]),s.heightUnits=2):(o=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(u))?(s.regionAnchorX=Number(o[1]),s.regionAnchorY=Number(o[2])):(o=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(u))?(s.viewportAnchorX=Number(o[1]),s.viewportAnchorY=Number(o[2])):/^scroll=up$/.exec(u)&&(s.scroll="up"),sC(r),o=sD(r)}t.push(a)}for(fO(i=new Map),r=[],a=(n=v(n.slice(1))).next();!a.done;a=n.next()){if((1!=(a=a.value.split("\n")).length||a[0])&&!/^NOTE($|[ \t])/.test(a[0])&&"STYLE"==a[0]){for(u=1,s=[],o=-1;u<a.length;u++)a[u].includes("::cue")&&(s.push([]),o=s.length-1),-1!=o&&(s[o].push(a[u]),a[u].includes("}")&&(o=-1));for(o=(s=v(s)).next();!o.done;o=s.next()){var l=o.value;o="global",(u=l[0].match(/\((.*)\)/))&&(o=u.pop()),u=l.slice(1,-1),l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(u=l[1].split(";")),(l=i.get(o))||(l=new eO(0,0,""));for(var c=!1,d=0;d<u.length;d++){var h=/^\s*([^:]+):\s*(.*)/.exec(u[d]);if(h){var f=h[2].trim().replace(";","");switch(h[1].trim()){case"background-color":case"background":c=!0,l.backgroundColor=f;break;case"color":c=!0,l.color=f;break;case"font-family":c=!0,l.fontFamily=f;break;case"font-size":c=!0,l.fontSize=f;break;case"font-weight":(700<=parseInt(f,10)||"bold"==f)&&(c=!0,l.fontWeight=700);break;case"font-style":switch(f){case"normal":c=!0,l.fontStyle=eQ;break;case"italic":c=!0,l.fontStyle="italic";break;case"oblique":c=!0,l.fontStyle="oblique"}break;case"opacity":c=!0,l.opacity=parseFloat(f);break;case"text-combine-upright":c=!0,l.textCombineUpright=f;break;case"text-shadow":c=!0,l.textShadow=f;break;case"white-space":c=!0,l.wrapLine="noWrap"!=f}}}c&&i.set(o,l)}}if(l=a,c=e,1==l.length&&!l[0]||/^NOTE($|[ \t])/.test(l[0])||"STYLE"==l[0]||"REGION"==l[0])a=null;else if(a=null,l[0].includes("--\x3e")||(a=l[0],l.splice(0,1)),o=fF(s=new sI(l[0])),d=sM(s,/[ \t]+--\x3e[ \t]+/g),u=fF(s),null==o||null==d||null==u)et("Failed to parse VTT time code. Cue skipped:",a,l),a=null;else{for(o+=c,u+=c,l=l.slice(1).join("\n").trim(),i.has("global")?((c=i.get("global").clone()).startTime=o,c.endTime=u,c.payload=""):c=new eO(o,u,""),sC(s),o=sD(s);o;)fB(c,o,t),sC(s),o=sD(s);fU(l,c,i),null!=a&&(c.id=a),a=c}a&&r.push(a)}return r},q("shaka.text.VttTextParser",fj),fj.prototype.parseMedia=fj.prototype.parseMedia,fj.prototype.setManifestType=fj.prototype.setManifestType,fj.prototype.setSequenceMode=fj.prototype.setSequenceMode,fj.prototype.parseInit=fj.prototype.parseInit;var fH=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function fV(){this.g=null}function fG(){}function fK(){d||navigator.emeEncryptionSchemePolyfilled?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(d=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=fX,navigator.emeEncryptionSchemePolyfilled=!0):console.debug("EmeEncryptionSchemePolyfill: EME not found")}function fX(e,t){var n,i=this;
1return B(function(r){return 1==r.g?(console.assert(i==navigator,'bad "this" for requestMediaKeySystemAccess'),C(r,d.call(i,e,t),2)):f1(n=r.h)?(console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=d,r.return(n)):(console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.requestMediaKeySystemAccess=fW,r.return(fW.call(i,e,t)))})}function fW(e,t){var n,i,r,a,o,s,u,l,c,h,f,p,g=this;return B(function(m){if(1==m.g){for(console.assert(g==navigator,'bad "this" for requestMediaKeySystemAccess'),n=f0(e),i=[],a=(r=v(t)).next();!a.done;a=r.next())s=fq((o=a.value).videoCapabilities,n),u=fq(o.audioCapabilities,n),o.videoCapabilities&&o.videoCapabilities.length&&!s.length||o.audioCapabilities&&o.audioCapabilities.length&&!u.length||((l=Object.assign({},o)).videoCapabilities=s,l.audioCapabilities=u,i.push(l));if(!i.length)throw(c=Error("Unsupported keySystem or supportedConfigurations.")).name="NotSupportedError",c.code=DOMException.NOT_SUPPORTED_ERR,c;return C(m,d.call(g,e,i),2)}return h=m.h,p=f=null,i[0]&&(i[0].videoCapabilities&&(f=i[0].videoCapabilities[0].encryptionScheme),i[0].audioCapabilities&&(p=i[0].audioCapabilities[0].encryptionScheme)),m.return(new fZ(h,f,p))})}function fq(e,t){return e?e.filter(function(e){return f2(e.encryptionScheme,t)}):e}function fz(){}function fY(){h||navigator.mediaCapabilitiesEncryptionSchemePolyfilled?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(h=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=fJ,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}function fJ(e){var t,n,i=this;return B(function(r){switch(r.g){case 1:return console.assert(i==navigator.mediaCapabilities,'bad "this" for decodingInfo'),C(r,h.call(i,e),2);case 2:if(t=r.h,!e.keySystemConfiguration)return r.return(t);if((n=t.keySystemAccess)&&f1(n))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=h,r.return(t);if(console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=f$,n){r.s(3);break}return C(r,fQ(e),4);case 4:return t.keySystemAccess=r.h,r.return(t);case 3:return r.return(f$.call(i,e))}})}function f$(e){var t,n,i,r,a,o,s,u=this;return B(function(l){switch(l.g){case 1:return console.assert(u==navigator.mediaCapabilities,'bad "this" for decodingInfo'),n=t=null,!e.keySystemConfiguration||(r=(i=e.keySystemConfiguration).keySystem,
1n=i.audio&&i.audio.encryptionScheme,t=i.video&&i.video.encryptionScheme,a=f0(r),o={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:e},f2(n,a)&&f2(t,a))?C(l,h.call(u,e),2):l.return(o);case 2:if((s=l.h).keySystemAccess){s.keySystemAccess=new fZ(s.keySystemAccess,t,n),l.s(3);break}if(!e.keySystemConfiguration){l.s(3);break}return C(l,fQ(e),5);case 5:s.keySystemAccess=l.h;case 3:return l.return(s)}})}function fQ(e){var t,n;return B(function(i){if(1==i.g){var r=e.keySystemConfiguration,a=[],o=[];return r.audio&&a.push({robustness:r.audio.robustness||"",contentType:e.audio.contentType,encryptionScheme:r.audio.encryptionScheme}),r.video&&o.push({robustness:r.video.robustness||"",contentType:e.video.contentType,encryptionScheme:r.video.encryptionScheme}),r={initDataTypes:r.initDataType?[r.initDataType]:[],distinctiveIdentifier:r.distinctiveIdentifier,persistentState:r.persistentState,sessionTypes:r.sessionTypes},a.length&&(r.audioCapabilities=a),o.length&&(r.videoCapabilities=o),t=r,C(i,navigator.requestMediaKeySystemAccess(e.keySystemConfiguration.keySystem,[t]),2)}return n=i.h,i.return(n)})}function fZ(e,t,n){this.g=e,this.i=t||null,this.h=n||null,this.keySystem=e.keySystem}function f0(e){return e.startsWith("com.widevine")||e.startsWith("com.microsoft")||e.startsWith("com.chromecast")||e.startsWith("com.adobe")||e.startsWith("org.w3")?"cenc":e.startsWith("com.apple")?"cbcs":(console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",e,"Please contribute!"),null)}function f1(e){var t=(e=e.getConfiguration()).audioCapabilities&&e.audioCapabilities[0];return!!(e=e.videoCapabilities&&e.videoCapabilities[0]||t)&&void 0!==e.encryptionScheme}function f2(e,t){return!e||e==t||("cbcs"==e||"cbcs-1-9"==e)&&(!!f6||!!f5)}function f4(){}function f3(){fK(),fY()}nk["text/vtt"]=function(){return new fj},nk['text/vtt; codecs="vtt"']=function(){return new fj},nk['text/vtt; codecs="wvtt"']=function(){return new fj},fV.prototype.parseInit=function(e){var t=this,n=!1;if((new iZ).box("moov",i0).box("trak",i0).box("mdia",i0).P("mdhd",function(e){t.g=(e=rn(e.reader,e.version)).timescale}).box("minf",i0).box("stbl",i0).P("stsd",i1).box("wvtt",function(){n=!0}).parse(e),!this.g||!n)throw new tf(2,2,2008)},fV.prototype.setSequenceMode=function(){},fV.prototype.setManifestType=function(){},fV.prototype.parseMedia=function(e,t){if(!e.length)return[];if(!this.g)throw new tf(2,2,2008);var n,i=0,r=[],a=[],o=!1,s=!1,u=!1,l=null;if((new iZ).box("moof",i0).box("traf",i0).P("tfdt",function(e){o=!0,i=rt(e.reader,e.version).baseMediaDecodeTime}).P("tfhd",function(e){l=re(e.reader,e.flags).xc}).P("trun",function(e){s=!0,r=ri(e.reader,e.version,e.flags).Kf}).box("mdat",i3(function(e){u=!0,n=e})).parse(e,!1),!u&&!o&&!s)throw new tf(2,2,2008);e=i;for(var c=new iq(n,0),d=v(r),h=d.next();!h.done;h=d.next()){var f=(h=h.value).Ae||l,p=h.Dd?i+h.Dd:e;e=p+(f||0);var g=0;do{var m=c.N();g+=m;var y=c.N(),b=null;"vttc"==i6(y)?8<m&&(b=c.Ua(m-8)):c.skip(m-8),f&&b&&(m=function(e,t,n){var i,r,a;return(new iZ).box("payl",i3(function(e){i=tY(e)})).box("iden",i3(function(e){r=tY(e)})).box("sttg",i3(function(e){a=tY(e)})).parse(e),i?function(e,t,n,i,r){if(fU(e,i=new eO(i,r,""),new Map),t&&(i.id=t),n)for(t=sD(e=new sI(n));t;)fB(i,t,[]),sC(e),t=sD(e);return i}(i,r,a,t,n):null}(b,t.periodStart+p/this.g,t.periodStart+e/this.g),a.push(m))}while(h.sampleSize&&g<h.sampleSize)}return a.filter(nM)},q("shaka.text.Mp4VttParser",fV),fV.prototype.parseMedia=fV.prototype.parseMedia,fV.prototype.setManifestType=fV.prototype.setManifestType,fV.prototype.setSequenceMode=fV.prototype.setSequenceMode,fV.prototype.parseInit=fV.prototype.parseInit,nk['application/mp4; codecs="wvtt"']=function(){return new fV},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]),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]),new Uint8Array([0,0,0,0,0,0,0,0]),new Uint8Array([0,0,0,0,0,0,0,0]),new Uint8Array([0,0,0,0,0,0,0,0]),new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),new Uint8Array([0,0,0,0,0,0,0,0]),new Uint8Array([0,0,0,0,0,0,0,1]),new Uint8Array([]),new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),new Uint8Array([]),q("EmeEncryptionSchemePolyfill",fG),fG.install=fK,q("McEncryptionSchemePolyfill",fz),fz.install=fY,fZ.prototype.getConfiguration=function(){var e=this.g.getConfiguration();if(e.videoCapabilities)for(var t=v(e.videoCapabilities),n=t.next();!n.done;n=t.next())n.value.encryptionScheme=this.i;if(e.audioCapabilities)for(n=(t=v(e.audioCapabilities)).next();!n.done;n=t.next())n.value.encryptionScheme=this.h;return e},fZ.prototype.createMediaKeys=function(){return this.g.createMediaKeys()},q("EncryptionSchemePolyfills",f4),f4.install=f3;var f5=navigator.userAgent.includes("CrKey"),f6=100<=parseInt(navigator.userAgent.
1split("Firefox/").pop(),10);void 0!==n&&n.exports&&(n.exports=f4)}).call(r,i,i,void 0),r.shaka)t[a]=r.shaka[a]}}]);
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.