PageSourceSearch

https://www.skyshowtime.com/ice/_next/static/chunks/ee16ce23.7055ef51b5591b62.js

js skyshowtime.com collected 2026-10-01 11:38:27 UTC 941,361 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9421],{58649:(e,t,n)=>{var i="u">typeof window?window:n.g,r={};for(var a in(function(e,t,n){var i,r,a,o,s,u,l,c,d,h,p,f="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t},g="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e},m=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),v="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");function y(e,t){t&&b(e,t)}function b(e,t){var n=m;e=e.split(".");for(var i=0;i<e.length-1;i++){var r=e[i];if(!(r in n))return;n=n[r]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&g(n,e,{configurable:!0,writable:!0,value:t})}if(m.BigInt64Array&&(v.push("BigInt64"),v.push("BigUint64")),"function"==typeof Object.setPrototypeOf)i=Object.setPrototypeOf;else{e:{var T={};try{T.__proto__={a:!0},r=T.a;break e}catch(e){}r=!1}i=r?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw TypeError(e+" is not extensible");return e}:null}var w=i;function S(e,t){if(e.prototype=f(t.prototype),e.prototype.constructor=e,w)w(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.Tn=t.prototype}function A(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function E(e){var t="u">typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if("number"==typeof e.length)return{next:A(e)};throw Error(String(e)+" is not an iterable or ArrayLike")}function x(e){if(!(e instanceof Array)){e=E(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}function k(){this.u=!1,this.l=null,this.h=void 0,this.g=1,this.j=this.m=0,this.C=this.i=null}function I(e){if(e.u)throw TypeError("Generator is already running");e.u=!0}function C(e,t){e.i={Xi:t,kj:!0},e.g=e.m||e.j}function M(e,t,n){return e.g=n,{value:t}}function L(e){e.g=0}function R(e,t,n){e.m=t,void 0!=n&&(e.j=n)}function P(e,t){e.m=0,e.j=t||0}function D(e,t,n){e.g=t,e.m=n||0}function N(e,t){return e.m=t||0,t=e.i.Xi,e.i=null,t}function O(e){e.C=[e.i],e.m=0,e.j=0}function _(e,t){var n=e.C.splice(0)[0];(n=e.i=e.i||n)?n.kj?e.g=e.m||e.j:void 0!=n.B&&e.j<n.B?(e.g=n.B,e.i=null):e.g=e.j:e.g=t}function U(e){this.g=new k,this.h=e}function q(e,t,n,i){try{var r=t.call(e.g.l,n);if(!(r instanceof Object))throw TypeError("Iterator result "+r+" is not an object");if(!r.done)return e.g.u=!1,r;var a=r.value}catch(t){return e.g.l=null,C(e.g,t),j(e)}
1return e.g.l=null,i.call(e.g,a),j(e)}function j(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.u=!1,{value:t.value,done:!1}}catch(t){e.g.h=void 0,C(e.g,t)}if(e.g.u=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.kj)throw t.Xi;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function B(e){this.next=function(t){return I(e.g),e.g.l?t=q(e,e.g.l.next,t,e.g.A):(e.g.A(t),t=j(e)),t},this.throw=function(t){return I(e.g),e.g.l?t=q(e,e.g.l.throw,t,e.g.A):(C(e.g,t),t=j(e)),t},this.return=function(t){var n,i,r;return n=e,i=t,I(n.g),(r=n.g.l)?q(n,"return"in r?r.return:function(e){return{value:e,done:!0}},i,n.g.return):(n.g.return(i),j(n))},this[Symbol.iterator]=function(){return this}}function F(e){var t=new B(new U(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 V(){for(var e=Number(this),t=[],n=e;n<arguments.length;n++)t[n-e]=arguments[n];return t}function G(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function H(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function z(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 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+""}function W(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{gj:r,v:a}}return{gj:-1,v:void 0}}k.prototype.A=function(e){this.h=e},k.prototype.return=function(e){this.i={return:e},this.g=this.j},k.prototype.B=function(e){this.g=e},y("Symbol",function(e){function t(e,t){this.g=e,g(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)}}),y("Symbol.iterator",function(e){return e||g(Array.prototype,e=Symbol("Symbol.iterator"),{configurable:!0,writable:!0,value:function(){return G(A(this))}}),e}),y("Promise",function(e){function t(e){this.h=0,this.i=void 0,this.g=[],this.u=!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=m.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.G),reject:e(this.l)}},t.prototype.G=function(e){if(e===this)this.l(TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.I(e);else{switch(typeof e){case"object":var n=null!=e;break;case"function":n=!0;break;default:n=!1}n?this.F(e):this.m(e)}},t.prototype.F=function(e){var t=void 0;try{t=e.then}catch(e){this.l(e);return}"function"==typeof t?this.J(t,e):this.m(e)},t.prototype.l=function(e){this.A(2,e)},t.prototype.m=function(e){this.A(1,e)},t.prototype.A=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.H(),this.C()},t.prototype.H=function(){var e=this;r(function(){if(e.D()){var t=m.console;void 0!==t&&t.error(e.i)}},1)},t.prototype.D=function(){if(this.u)return!1;var e=m.CustomEvent,t=m.Event,n=m.dispatchEvent;return void 0===n||("function"==typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"==typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=m.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.i,n(e))},t.prototype.C=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.I=function(e){var t=this.j();e.mf(t.resolve,t.reject)},t.prototype.J=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.mf(i(e,r),i(n,a)),o},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.mf=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.u=!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=E(e),a=r.next();!a.done;a=r.next())i(a.value).mf(t,n)})},t.all=function(e){var n=E(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).mf(function(t){return function(n){a[t]=n,0==--o&&e(a)}}(a.length-1),t),r=n.next();while(!r.done)})},t}),y("WeakMap",function(e){function t(e){if(this.g=(s+=Math.random()+1).toString(),e){e=E(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)||g(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({}
1),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}),y("Map",function(e){function t(){var e={};return e.Ic=e.next=e.head=e}function n(e,t){var n=e[1];return G(function(){if(n){for(;n.head!=e[1];)n=n.Ic;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=E(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(E([[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],Ic:this[1].Ic,head:this[1],key:e,value:t},n.list.push(n.entry),this[1].Ic.next=n.entry,this[1].Ic=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.Ic.next=e.entry.next,e.entry.next.Ic=e.entry.Ic,e.entry.head=null,this.size--,!0)},r.prototype.clear=function(){this[0]={},this[1]=this[1].Ic=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}),y("Array.prototype.keys",function(e){return e||function(){return z(this,function(e){return e})}}),y("Set",function(e){function t(e){if(this.g=new Map,e){e=E(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(E([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}),y("Array.prototype.values",function(e){return e||function(){return z(this,function(e,t){return t})}}),y("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}}
1),y("Object.is",function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}}),y("Array.prototype.includes",function(e){return e||function(e,t){var n=this;n instanceof String&&(n=String(n));var i=n.length;for((t=t||0)<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}}),y("String.prototype.includes",function(e){return e||function(e,t){return -1!==K(this,e,"includes").indexOf(e,t||0)}}),y("String.fromCodePoint",function(e){return e||function(e){for(var t="",n=0;n<arguments.length;n++){var i=Number(arguments[n]);if(i<0||i>1114111||i!==Math.floor(i))throw RangeError("invalid_code_point "+i);i<=65535?t+=String.fromCharCode(i):(i-=65536,t+=String.fromCharCode(i>>>10&1023|55296),t+=String.fromCharCode(1023&i|56320))}return t}}),y("Array.prototype.findIndex",function(e){return e||function(e,t){return W(this,e,t).gj}}),y("WeakSet",function(e){function t(e){if(this.g=new WeakMap,e){e=E(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({}),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}),y("Array.prototype.find",function(e){return e||function(e,t){return W(this,e,t).v}}),y("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}}),y("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 X="function"==typeof Object.assign?Object.assign:function(e,t){if(null==e)throw TypeError("No nullish arg");e=Object(e);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};function Y(e){if((e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this[e]}y("Object.assign",function(e){return e||X}),y("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})})}}),y("Array.prototype.entries",function(e){return e||function(){return z(this,function(e,t){return[e,t]})}}),y("Number.isNaN",function(e){return e||function(e){return"number"==typeof e&&isNaN(e)}}),y("String.prototype.repeat",function(e){return e||function(e){var t=K(this,null,"repeat");if(e<0||e>0x4fffffff)throw RangeError("Invalid count value");e|=0;for(var n="";e;)1&e&&(n+=t),(e>>>=1)&&(t+=t);return n}}),y("Number.EPSILON",function(){return 2220446049250313e-31}),y("Number.MAX_SAFE_INTEGER",function(){return 0x1fffffffffffff}),y("Number.isFinite",function(e){return e||function(e){return"number"==typeof e&&!isNaN(e)&&e!==1/0&&e!==-1/0}}),y("Object.values",function(e){return e||function(e){var t,n=[];for(t in e)H(e,t)&&n.push(e[t]);return n}}),y("Math.log2",function(e){return e||function(e){return Math.log(e)/Math.LN2}}),y("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;i>0&&t>0;)if(n[--t]!=e[--i])return!1;return i<=0}}),y("Math.trunc",function(e){return e||function(e){if(isNaN(e=Number(e))||e===1/0||e===-1/0||0===e)return e;var t=Math.floor(Math.abs(e));return e<0?-t:t}}),y("Array.prototype.at",function(e){return e||Y});var Z=function(e){return e||Y};if(Z)for(var J=0;J<v.length;J++)b(v[J]+"Array.prototype.at",Z);y("String.prototype.at",function(e){return e||Y});var Q=this||self;function $(e,t){e=e.split(".");var n,i=Q;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 ee(t,n){if(n)if(n instanceof Map)for(var i=E(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 et(e){var t,n=new ee(e.type);for(t in e)Object.defineProperty(n,t,{value:e[t],writable:!0,enumerable:!0});return n}ee.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},ee.prototype.stopImmediatePropagation=function(){this.g=!0},ee.prototype.stopPropagation=function(){},$("shaka.util.FakeEvent",ee);var en={Gm:"abrstatuschanged",Hm:"adaptation",Im:"audiotrackchanged",Jm:"audiotrackschanged",Km:"boundarycrossed",Lm:"buffering",Mm:"canupdatestarttime",Nm:"complete",Om:"currentitemchanged",Pm:"downloadcompleted",Qm:"downloadfailed",Rm:"downloadheadersreceived",Sm:"drmsessionupdate",Tm:"emsg",Zm:"itemsinserted",$m:"itemsremoved",tn:"prft",Error:"error",Um:"expirationupdated",Vm:"firstquartile",Wm:"gapjumped",an:"keystatuschanged",fn:"loaded",gn:"loading",jn:"manifestparsed",ln:"manifestupdated",mn:"mediaqualitychanged",nn:"mediasourcerecovered",on:"metadataadded",Metadata:"metadata",pn:"midpoint",qn:"nosp
1atialvideoinfo",rn:"onstatechange",un:"ratechange",xn:"segmentappended",yn:"sessiondata",zn:"spatialvideoinfo",An:"stalldetected",Bn:"started",Cn:"statechanged",Dn:"streaming",En:"textchanged",Fn:"texttrackvisibility",Gn:"thirdquartile",Hn:"timelineregionadded",In:"timelineregionenter",Jn:"timelineregionexit",Kn:"trackschanged",Mn:"unloading",On:"variantchanged"};function ei(){}function er(){}function ea(){}function eo(e){var t=V.apply(1,arguments);eu.has(e)||(eu.add(e),ea.apply(ei,x(t)))}function es(){}var eu=new Set;function el(){this.g=new Map}function ec(){this.hb=new el,this.$e=this}function ed(e,t){var n=[];e=E(e);for(var i=e.next();!i.done;i=e.next())n.push(t(i.value));return n}function eh(e,t){e=E(e);for(var n=e.next();!n.done;n=e.next())if(t(n.value))return!0;return!1}function ep(e,t){var n=[];e=E(e);for(var i=e.next();!i.done;i=e.next())t(i=i.value)&&n.push(i);return n}e.console&&((new Map).set(1,function(){return console.error.apply(console,x(V.apply(0,arguments)))}).set(2,function(){return console.warn.apply(console,x(V.apply(0,arguments)))}).set(3,function(){return console.info.apply(console,x(V.apply(0,arguments)))}).set(4,function(){return console.log.apply(console,x(V.apply(0,arguments)))}).set(5,function(){return console.debug.apply(console,x(V.apply(0,arguments)))}).set(6,function(){return console.debug.apply(console,x(V.apply(0,arguments)))}),ea=function(){return console.warn.apply(console,x(V.apply(0,arguments)))},er=function(){console.error.apply(console,x(V.apply(0,arguments)))}),(p=el.prototype).push=function(e,t){this.g.has(e)?this.g.get(e).push(t):this.g.set(e,[t])},p.get=function(e){return this.g.has(e)?this.g.get(e).slice():null},p.remove=function(e,t){if(this.g.has(e)){var n=this.g.get(e).filter(function(e){return e!=t});this.g.set(e,n),n.length||this.g.delete(e)}},p.forEach=function(e){this.g.forEach(function(t,n){e(n,t)})},p.size=function(){return this.g.size},p.keys=function(){return Array.from(this.g.keys())},ec.prototype.addEventListener=function(e,t){this.hb&&this.hb.push(e,t)},ec.prototype.removeEventListener=function(e,t){this.hb&&this.hb.remove(e,t)},ec.prototype.dispatchEvent=function(e){if(!this.hb)return!0;var t=this.hb.get(e.type)||[],n=this.hb.get("All");for(n&&(t=t.concat(n)),n=(t=E(t)).next();!n.done;n=t.next()){n=n.value,e.target=this.$e,e.currentTarget=this.$e;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){}if(e.g)break}return e.defaultPrevented},ec.prototype.release=function(){this.hb=null};var ef=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function eg(e){var t;e instanceof eg?(em(this,e.nc),this.yd=e.yd,ev(this,e.Jb),ey(this,e.Td),this.Ub=e.Ub,eb(this,e.g.clone()),this.gd=e.gd):e&&(t=String(e).match(ef))?(em(this,t[1]||"",!0),this.yd=eT(t[2]||""),ev(this,t[3]||"",!0),ey(this,t[4]),this.Ub=eT(t[5]||"",!0),eb(this,t[6]||"",!0),this.gd=eT(t[7]||"")):this.g=new eC(null)}function em(e,t,n){e.nc=n?eT(t,!0):t,e.nc&&(e.nc=e.nc.replace(/:$/,""))}function ev(e,t,n){e.Jb=n?eT(t,!0):t}function ey(e,t){if(t){if(isNaN(t=Number(t))||t<0)throw Error("Bad port number "+t);e.Td=t}else e.Td=null}function eb(e,t,n){t instanceof eC?e.g=t:(n||(t=ew(t,ek)),e.g=new eC(t))}function eT(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function ew(e,t,n){return null!=e?(e=encodeURI(e).replace(t,eS),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function eS(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(p=eg.prototype).nc="",p.yd="",p.Jb="",p.Td=null,p.Ub="",p.gd="",p.toString=function(){var e=[],t=this.nc;if(t&&e.push(ew(t,eA,!0),":"),t=this.Jb){e.push("//");var n=this.yd;n&&e.push(ew(n,eA,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.Td)&&e.push(":",String(t))}return(t=this.Ub)&&(this.Jb&&"/"!=t.charAt(0)&&e.push("/"),e.push(ew(t,"/"==t.charAt(0)?ex:eE,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.gd)&&e.push("#",ew(t,eI)),e.join("")},p.resolve=function(e){var t=this.clone();"data"===t.nc&&(t=new eg);var n=!!e.nc;n?em(t,e.nc):n=!!e.yd,n?t.yd=e.yd:n=!!e.Jb,n?ev(t,e.Jb):n=null!=e.Td;var i=e.Ub;if(n)ey(t,e.Td);else if(n=!!e.Ub){if("/"!=i.charAt(0))if(this.Jb&&!this.Ub)i="/"+i;else{var r=t.Ub.lastIndexOf("/");
1-1!=r&&(i=t.Ub.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?((a.length>1||1==a.length&&""!=a[0])&&a.pop(),r&&o==i.length&&a.push("")):(a.push(s),r=!0)}i=a.join("/")}}return n?t.Ub=i:n=""!==e.g.toString(),n?eb(t,e.g.clone()):n=!!e.gd,n&&(t.gd=e.gd),t},p.clone=function(){return new eg(this)};var eA=/[#\/\?@]/g,eE=/[#\?:]/g,ex=/[#\?]/g,ek=/[#\?@]/g,eI=/#/g;function eC(e){this.g=e||null}function eM(e){if(!e.ob&&(e.ob=new Map,e.me=0,e.g))for(var t=e.g.split("&"),n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(i>=0){var a=t[n].substring(0,i);r=t[n].substring(i+1)}else a=t[n];a=decodeURIComponent(a),r=r||"",e.add(a,decodeURIComponent(r))}}function eL(){}function eR(e,t){if(!e&&!t)return!0;if(!e||!t||e.byteLength!=t.byteLength)return!1;if((ArrayBuffer.isView(e)?e.buffer:e)==(ArrayBuffer.isView(t)?t.buffer:t)&&(e.byteOffset||0)==(t.byteOffset||0))return!0;var n=eD(e);t=eD(t);for(var i=0;i<e.byteLength;i++)if(n[i]!=t[i])return!1;return!0}function eP(e){return ArrayBuffer.isView(e)?0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer:e}function eD(e,t,n){return e_(e,void 0===t?0:t,n=void 0===n?1/0:n,Uint8Array)}function eN(e,t,n){return e_(e,void 0===t?0:t,n=void 0===n?1/0:n,Uint16Array)}function eO(e,t,n){return e_(e,void 0===t?0:t,n=void 0===n?1/0:n,DataView)}function e_(e,t,n,i){var r=ArrayBuffer.isView(e)?e.buffer: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 eU(e,t,n){var i=V.apply(3,arguments);if(this.severity=e,this.category=t,this.code=n,this.data=i,this.handled=!1,this.message="Shaka Error "+this.code,eq)try{throw Error(this.message||"Shaka Error")}catch(e){this.stack=e.stack}}(p=eC.prototype).ob=null,p.me=null,p.add=function(e,t){eM(this),this.g=null;var n=this.ob.has(e)?this.ob.get(e):null;return n||this.ob.set(e,n=[]),n.push(t),this.me++,this},p.set=function(e,t){return eM(this),this.g=null,this.ob.has(e)?this.ob.set(e,[t]):this.add(e,t),this},p.get=function(e){return eM(this),this.ob.get(e)||[]},p.toString=function(){if(this.g)return this.g;if(!this.ob||!this.ob.size)return"";for(var e=[],t=E(this.ob.keys()),n=t.next();!n.done;n=t.next()){var i=n.value;n=encodeURIComponent(i),i=this.ob.get(i);for(var r=0;r<i.length;r++){var a=n;""!==i[r]&&(a+="="+encodeURIComponent(i[r])),e.push(a)}}return this.g=e.join("&")},p.clone=function(){var e=new eC;if(e.g=this.g,this.ob){for(var t=new Map,n=E(this.ob),i=n.next();!i.done;i=n.next()){var r=E(i.value);i=r.next().value,r=r.next().value,t.set(i,r.concat())}e.ob=t,e.me=this.me}return e},$("shaka.util.BufferUtils",eL),eL.toDataView=eO,eL.toUint16=eN,eL.toUint8=eD,eL.toArrayBuffer=eP,eL.equal=eR,eU.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null,"  ")},$("shaka.util.Error",eU);var eq=!0;function ej(e){this.h=e,this.g=void 0}function eB(){return eG.value()}eU.Severity={RECOVERABLE:1,CRITICAL:2},eU.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10},eU.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,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,STREAMING_NOT_ALLOWED:3024,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,HLS_EMPTY_MEDIA_PLAYLIST:4053,DASH_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4054,CANNOT_ADD_EXTERNAL_CHAPTERS_TO_LIVE_STREAM:4055,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,MISSING_EME_SUPPORT:6020,LOAD_INTERRUPTED:7e3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,SRC_EQUALS_PRELOAD_NOT_SUPPORTED:7005,PRELOAD_DESTROYED:7006,QUEUE_INDEX_OUT_OF_BOUNDS:7007,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,INTERSTITIAL_AD_MANAGER_NOT_INITIALIZED:10006,VAST_INVALID_XML:10007},ej.prototype.value=function(){return void 0===this.g&&(this.g=this.h()),this.g};var eF=null,eV=null,eG=new ej(function(){var e=void 0;return eF&&(e=eF()),!e&&eV&&(e=eV()),e});function eH(){}function ez(t){if(!t)return"";if(239==(t=eD(t))[0]&&187==t[1]&&191==t[2]&&(t=t.subarray(3)),e.TextDecoder&&!eB().ni())return(t=(new TextDecoder).decode(t)).includes("�")&&er('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((128&t[i])==0?r=t[i]:t.length>=i+2&&(224&t[i])==192&&(192&t[i+1])==128?(r=(31&t[i])<<6|63&t[i+1],i+=1):t.length>=i+3&&(240&t[i])==224&&(192&t[i+1])==128&&(192&t[i+2])==128?(r=(15&t[i])<<12|(63&t[i+1])<<6|63&t[i+2],i+=2):t.length>=i+4&&(241&t[i])==240&&(192&t[i+1])==128&&(192&t[i+2])==128&&(192&t[i+3])==128&&(r=(7&t[i])<<18|(63&t[i+1])<<12|(63&t[i+2])<<6|63&t[i+3],i+=3),r<=65535)n+=String.fromCharCode(r);else{var a=1023&(r-=65536);n+=String.fromCharCode(55296+(r>>10)),n+=String.fromCharCode(56320+a)}}return n}function eK(e,t,n){if(!e)return"";if(!n&&e.byteLength%2!=0)throw new eU(2,2,2004);var i=new Uint16Array(n=Math.floor(e.byteLength/2));e=eO(e);for(var r=0;r<n;r++)i[r]=e.getUint16(2*r,t);return eZ(i)}function eW(e){function t(e){return n.byteLength<=e||n[e]>=9&&n[e]<=126}if(!e)return"";var n=eD(e);if(239==n[0]&&187==n[1]&&191==n[2])return ez(n);if(254==n[0]&&255==n[1])return eK(n.subarray(2),!1);if(255==n[0]&&254==n[1])return eK(n.subarray(2),!0);if(0==n[0]&&0==n[2])return eK(e,!1);if(0==n[1]&&0==n[3])return eK(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return ez(e);throw new eU(2,2,2003)}function eX(t){if(e.TextEncoder&&!eB().ni()){var n=new TextEncoder;return eP(n.encode(t))}n=new Uint8Array((t=unescape(t=encodeURIComponent(t))).length);for(var i=0;i<t.length;
1i++)n[i]=t[i].charCodeAt(0);return eP(n)}function eY(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 eZ(e){return eQ.value()(e)}function eJ(e){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&nbsp;":"\xa0","&lrm;":"‎","&rlm;":"‏"},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]?(e="x"==e[2]||"X"==e[2]?parseInt(e.substring(3),16):parseInt(e.substring(2),10))>=0&&e<=1114111?String.fromCodePoint(e):"":t[e]||"'"}):e||""}$("shaka.util.StringUtils",eH),eH.resetFromCharCode=function(){eQ.g=void 0},eH.toUTF16=eY,eH.toUTF8=eX,eH.fromBytesAutoDetect=eW,eH.fromUTF16=eK,eH.fromUTF8=ez;var eQ=new ej(function(){for(var e={cd:65536};e.cd>0;e={cd:e.cd},e.cd/=2)if(function(e){try{var t=new Uint8Array(e);return String.fromCharCode.apply(null,t).length>0}catch(e){return!1}}(e.cd))return function(e){return function(t){for(var n="",i=0;i<t.length;i+=e.cd)n+=String.fromCharCode.apply(null,t.subarray(i,i+e.cd));return n}}(e);return null});function e$(){}function e0(e){return btoa(e=eZ(eD(e)))}function e1(e,t){return t=void 0==t||t,e=e0(e).replace(/\+/g,"-").replace(/\//g,"_"),t?e:e.replace(/[=]*$/,"")}function e2(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 e5(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 e3(e){var t=eD(e);e="",t=E(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 e4(){for(var e=V.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];ArrayBuffer.isView(r)&&1===r.BYTES_PER_ELEMENT?t.set(r,n):t.set(eD(r),n),n+=r.byteLength}return t}function e8(e,t,n){if(n=void 0===n?"":n,0==t.length)return e;if(1==e.length&&1==t.length){var i=new eg(e[0]);return t=new eg(t[0]),t=i.resolve(t),n&&eb(t,n),[t.toString()]}t=t.map(function(e){return new eg(e)}),i=[],e=E(e);for(var r=e.next();!r.done;r=e.next()){r=new eg(r.value);for(var a=E(t),o=a.next();!o.done;o=a.next())o=r.resolve(o.value),n&&eb(o,n),i.push(o.toString())}return i}function e6(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 e7(t,n){n=void 0===n?"cenc":n;var i=[],r=[],a=[];t.forEach(function(e,t){var n=t;22!=n.length&&(n=e1(e5(t),!1));var o=e;22!=o.length&&(o=e1(e5(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:eD(eX(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 e9(e,t){if(1==t.length)return t[0];if(null!=(e=te(e,t)))return e;throw new eU(2,4,4025,t)}function te(e,t){var n=ta.get(e);n=E(n);for(var i=n.next();!i.done;i=n.next()){i=i.value;for(var r=E(t),a=r.next();!a.done;a=r.next())if(a=a.value,i.test(a.trim()))return a.trim()}return e==tn?"":null}function tt(e,t){var n=[];e=E(e=ta.get(e));for(var i=e.next();!i.done;i=e.next()){i=i.value;for(var r=E(t),a=r.next();!a.done;a=r.next())a=a.value,i.test(a.trim())&&n.push(a.trim())}return n}$("shaka.util.Uint8ArrayUtils",e$),e$.concat=e4,e$.toHex=e3,e$.fromHex=e5,e$.fromBase64=e2,e$.toBase64=e1,e$.toStandardBase64=e0;var tn="text",ti={Ga:"video",na:"audio",Va:tn,Cg:"image",Em:"application"},tr=1/15,ta=(new Map).set("audio",[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/,/^ac3$/,/^eac3$/,/^apac$/]).set("video",[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/]).set("text",[/^vtt$/,/^wvtt/,/^stpp/]);function to(){}function ts(e,t){return e=tc(e),t=tc(t),e.split("-")[0]==t.split("-")[0]}function tu(e,t){return e=tc(e),t=tc(t),e=e.split("-"),t=t.split("-"),e[0]==t[0]&&1==e.length&&2==t.length}function tl(e,t){return e=tc(e),t=tc(t),e=e.split("-"),t=t.split("-"),2==e.length&&2==t.length&&e[0]==t[0]}function tc(e){var t=(e=E(e.split("-x-"))).next().value;t=void 0===t?"":t,e=void 0===(e=e.next().value)?"":e;var n=E(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=tm.get(t)||t,((n=n.toUpperCase())?t+"-"+n:t)+(e?"-"+e:"")}function td(e,t){var n=tp(e),i=tp(t);return e!=n&&t!=i&&n==i}function th(e,t){return e=tc(e),(t=tc(t))==e?4:tu(t,e)?3:tl(t,e)?2:+!!tu(e,t)}function tp(e){var t=e.indexOf("-");return e=(e=t>=0?e.substring(0,t):e).toLowerCase(),tm.get(e)||e}function tf(e){return e.language?tc(e.language):e.audio&&e.audio.language?tc(e.audio.language):e.video&&e.video.language?tc(e.video.language):"und"}function tg(e,t){e=tc(e);var n=new Set;t=E(t);for(var i=t.next();!i.done;i=t.next())n.add(tc(i.value));for(i=(t=E(n)).next();!i.done;i=t.next())if((i=i.value)==e)return i;for(i=(t=E(n)).next();!i.done;i=t.next())if(tu(i=i.value,e))return i;for(i=(t=E(n)).next();!i.done;i=t.next())if(tl(i=i.value,e))return i;for(t=(n=E(n)).next();!t.done;t=n.next())if(tu(e,t=t.value))return t;return null}$("shaka.util.LanguageUtils",to),to.findClosestLocale=tg,to.getLocaleForVariant=tf,to.getLocaleForText=function(e){return tc(e.language||"und")},to.getBase=tp,to.relatedness=th,to.areSiblings=td,to.normalize=tc,to.isSiblingOf=tl,to.isParentOf=tu,to.areLanguageCompatible=ts,to.areLocaleCompatible=function(e,t){return(e=tc(e))==(t=tc(t))};var tm=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 tv(e){ec.call(this),this.j=tc(e),this.i=new Map,this.g=new Set,this.h=new Map}function ty(e){for(var t=e.h,n=e.j,i=e.g,r=new Set,a=E(i),o=a.next(),s={};!o.done;s={Be:void 0},o=a.next()){s.Be=o.value,r.add(s.Be),r.add(tp(s.Be)),(o=ep(t.keys(),function(e){return function(t){return td(t,e.Be)}}(s))).sort(),o=E(o);for(var u=o.next();!u.done;u=o.next())r.add(u.value);for((s=ep(t.keys(),function(e){return function(t){return tp(t)==e.Be}}(s))).sort(),o=(s=E(s)).next();!o.done;o=s.next())r.add(o.value)}for(r.add(n),n=[],a=(r=E(r)).next();!a.done;a=r.next())(a=t.get(a.value))&&n.push(a);for(n.reverse(),e.i.clear(),r=(t=E(n)).next();!r.done;r=t.next())r.value.forEach(function(t,n){e.i.set(n,t)});for(t=e.i.keys(),r=new Set,a=(n=E(e.g)).next();!a.done;a=n.next()){var l=a=e.h.get(a.value)||new Map,c=t,d=r;c=E(c);for(var h=c.next();!h.done;h=c.next())h=h.value,l.get(h)||d.add(h)}r.size>0&&(i=(new Map).set("locales",Array.from(i)).set("missing",Array.from(r)),e.dispatchEvent(new ee("missing-localizations",i)))}S(tv,ec),(p=tv.prototype).release=function(){ec.prototype.release.call(this)},p.Oi=function(e){var t=this;this.g.clear(),e=E(e);for(var n=e.next();!n.done;n=e.next())this.g.add(tc(n.value));ty(this),(e=ep(this.g,function(e){return!t.h.has(e)})).length&&this.dispatchEvent(new ee("unknown-locales",(new Map).set("locales",e))),e=ep(this.g,function(e){return t.h.has(e)}),e=(new Map).set("locales",e.length?e:[this.j]),this.dispatchEvent(new ee("locale-changed",e))},p.Xa=function(e,t,n){e=tc(e),void 0===n&&(n=tb);var i=this.h.get(e)||new Map;return t.forEach(function(e,t){i.has(t)&&n!=tb||i.set(t,e)}),this.h.set(e,i),ty(this),this.dispatchEvent(new ee("locale-updated")),this},p.hm=function(e){for(var t=E(e.keys()),n=t.next();!n.done;n=t.next())n=n.value,e.set(n,this.resolve(n))},p.resolve=function(e){var t=this.i.get(e);return t||(e=(new Map).set("locales",Array.from(this.g)).set("missing",e),this.dispatchEvent(new ee("unknown-localization",e)),"")},p.Mk=function(){return this.g},$("shaka.ui.Localization",tv),tv.prototype.getCurrentLocales=tv.prototype.Mk,tv.prototype.resolve=tv.prototype.resolve,tv.prototype.resolveDictionary=tv.prototype.hm,tv.prototype.insert=tv.prototype.Xa,tv.prototype.changeLocale=tv.prototype.Oi,tv.prototype.release=tv.prototype.release;var tb=1;function tT(e){this.g=Math.exp(Math.log(.5)/e),this.i=this.h=0}function tw(e){return e.h/(1-Math.pow(e.g,e.i))}function tS(){this.h=new tT(2),this.j=new tT(5),this.g=0,this.i=128e3,this.l=16e3}function tA(e,t){return!!("number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t))||e===t}function tE(e,t){(t=e.indexOf(t))>-1&&e.splice(t,1)}function tx(e,t,n){if(n||(n=tA),e.length!=t.length)return!1;t=t.slice(),e=E(e);for(var i=e.next(),r={};!i.done;r={lj:void 0},i=e.next()){if(r.lj=i.value,-1==(i=t.findIndex(function(e){return function(t){return n(e.lj,t)}}(r))))return!1;t[i]=t[t.length-1],t.pop()}return 0==t.length}
1function tk(e,t,n){if(e===t)return!0;if(!e||!t)return e==t;if(n||(n=tA),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 tI(){this.g=new el}function tC(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=tM;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}tM=t}return t||!1}(e)?t.capture||!1:t}(e,i),this.target.addEventListener(t,n,this.g)}tv.ConflictResolution={USE_OLD:0,USE_NEW:1},tv.UNKNOWN_LOCALES="unknown-locales",tv.UNKNOWN_LOCALIZATION="unknown-localization",tv.MISSING_LOCALIZATIONS="missing-localizations",tv.LOCALE_CHANGED="locale-changed",tv.LOCALE_UPDATED="locale-updated",tT.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)},tS.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)},tS.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)}},tS.prototype.getBandwidthEstimate=function(e){return this.g<this.i?e:Math.min(tw(this.h),tw(this.j))},(p=tI.prototype).release=function(){this.Sa(),this.g=null},p.o=function(e,t,n,i){this.g&&(e=new tC(e,t,n,i),this.g.push(t,e))},p.qa=function(e,t,n,i){var r=this;this.o(e,t,function i(a){r.Ea(e,t,i),n(a)},i)},p.Ea=function(e,t,n){if(this.g){var i=this.g.get(t)||[];i=E(i);for(var r=i.next();!r.done;r=i.next())(r=r.value).target!=e||n!=r.listener&&n||(r.Ea(),this.g.remove(t,r))}},p.Sa=function(){if(this.g){for(var e=[],t=E(this.g.g.values()),n=t.next();!n.done;n=t.next())e.push.apply(e,x(n.value));for(t=(e=E(e)).next();!t.done;t=e.next())t.value.Ea();this.g.g.clear()}},$("shaka.util.EventManager",tI),tI.prototype.removeAll=tI.prototype.Sa,tI.prototype.unlisten=tI.prototype.Ea,tI.prototype.listenOnce=tI.prototype.qa,tI.prototype.listen=tI.prototype.o,tI.prototype.release=tI.prototype.release,tC.prototype.Ea=function(){this.target.removeEventListener(this.type,this.listener,this.g),this.listener=this.target=null,this.g=!1};var tM=void 0;function tL(e,t){this.g=e,this.h=t}function tR(e,t){var n=new tL(5,0),i=tN,r=i.g,a=n.h-r.h;((n.g-r.g||a)>0?i.i:i.h)(i.g,n,e,t)}function tP(e,t,n,i){ea([n,"has been deprecated and will be removed in",t,". We are currently at version",e,". Additional information:",i].join(" "))}function tD(e,t,n,i){er([n,"has been deprecated and has been removed in",t,". We are now at version",e,". Additional information:",i].join(" "))}$("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3}),tL.prototype.toString=function(){return"v"+this.g+"."+this.h};var tN=null;function tO(e,t,n,i){this.g=null,this.l=e,this.i=t,this.m=n,this.u=i,this.j=!1;e:{if("u"<typeof libDPIModule&&ea("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,tR("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{ea("Could not find LCEVC Library on this page"),e=!1;break e}void 0===this.h.SupportObject?(ea("Could not find LCEVC Library on this page"),e=!1):(this.h.SupportObject.SupportStatus||ea(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 t_(e,t,n,i){"video"!==i.type||e.u&&!i.baseOriginalId||e.g&&e.g.appendBuffer(t,"video",i.id,-n,!e.u)}function tU(e){e.g&&e.i.classList.add("shaka-hidden")}function tq(e){return!!e&&"u">typeof LCEVCdec&&"lvc1"==e.codecs}function tj(){}function tB(e,t){tV.set(e,t)}function tF(e,t){if(t){var n=tV.get(t.toLowerCase());if(n)return n}throw new eU(2,4,4e3,e,t)}tO.prototype.release=function(){this.g&&(this.g.close(),this.g=null)},$("shaka.lcevc.Dec",tO),tO.prototype.release=tO.prototype.release,$("shaka.media.ManifestParser",tj),tj.unregisterParserByMime=function(e){tV.delete(e)},tj.registerParserByMime=tB,tj.registerParserByExtension=function(){tR("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},tj.AccessibilityPurpose={Nn:"visually impaired",Xm:"hard of hearing",wn:"spoken subtitles"};var tV=new Map;function tG(){}function tH(){}function tz(){}function tK(e){this.h=new Map,this.i=0,this.j=new tH,(e=tX(e.toLowerCase()))&&
1(this.j=e()),this.g=new tG,(e=tZ)&&(this.g=e(),this.h.set(this.i,this.g))}function tW(e,t){tY.set(e,t)}function tX(e){return tY.get(e)}tG.prototype.extract=function(){},tG.prototype.decode=function(){return[]},tG.prototype.clear=function(){},tG.prototype.getStreams=function(){return[]},tH.prototype.init=function(){},tH.prototype.parse=function(){return[]},(p=tz.prototype).init=function(){},p.Xf=function(){},p.ge=function(){},p.remove=function(){},p.Dg=function(){},$("shaka.media.IClosedCaptionParser",tz),(p=tK.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=tZ)&&(this.g=i()),this.h.set(t,this.g))}else t||this.ge();this.j.init(e),-1!=n&&(this.i=n)},p.Xf=function(e){e=E(e=this.j.parse(e));for(var t=e.next();!t.done;t=e.next()){var n=eD((t=t.value).packet);n.length>0&&this.g.extract(n,t.pts)}return this.g.decode()},p.ge=function(){this.g.clear()},p.remove=function(e){e=new Set(e=void 0===e?[]:e);for(var t=E(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)}},p.Dg=function(){return this.g.getStreams()},$("shaka.media.ClosedCaptionParser",tK),tK.findDecoder=function(){return tZ},tK.unregisterDecoder=function(){tZ=null},tK.registerDecoder=function(e){tZ=e},tK.findParser=tX,tK.unregisterParser=function(e){tY.delete(e)},tK.registerParser=tW;var tY=new Map,tZ=null;function tJ(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=tQ,this.scroll=t$}$("shaka.text.CueRegion",tJ);var tQ=1;tJ.units={PX:0,PERCENTAGE:1,LINES:2};var t$="";function t0(e){this.h=e||"",this.g=0}function t1(e){t2(e,/[ \t]+/gm)}function t2(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 t5(e){return e.g==e.h.length?null:(e=t2(e,/[^ \t\n]*/gm))?e[0]:null}function t3(e){if(null==(e=t2(e,t8)))return null;var t=Number(e[2]),n=Number(e[3]);return t>59||n>59?null:(Number(e[6])||0)/1e3+n+60*t+3600*(Number(e[1])||0)}function t4(e){return e?t3(new t0(e)):null}tJ.scrollMode={NONE:t$,UP:"up"};var t8=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function t6(){}function t7(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||ArrayBuffer.isView(n))return n;if(t.has(n))return null;var i=Array.isArray(n);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 t9(e){var t,n={};for(t in e)n[t]=e[t];return n}function ne(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++){var i=n.toString(),r=e[n];void 0!==r&&(r=ne(r))&&t.push(i+":"+r)}e="["+t.join(",")+"]"}else if("function"==typeof e)e="";else if(e instanceof Object){for((n=Object.keys(e)).sort(),t=[],i=(n=E(n)).next();!i.done;i=n.next())i=JSON.stringify(r=i.value),void 0!==(r=e[r])&&(r=ne(r))&&t.push(i+":"+r);e="{"+t.join(",")+"}"}else e=JSON.stringify(e);return e}function nt(e,t){var n=void 0!==n&&n;return nn(e=eW(e),t,n)}function nn(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(".");l>0&&(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(h>64&&h<91||h>96&&h<123){h=n();for(var p=e.charCodeAt(i);p&&39!==p&&34!==p&&!(p>64&&p<91||p>96&&p<123)&&62!==p;)i++,p=e.charCodeAt(i);var f=i+1;if(i=e.indexOf(e[i],f),f=e.slice(f,i),39===p||34===p){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 f=null,i--;if(h.startsWith("xmlns:")){p=f;var g=h.split(":")[1];nL.set(p,g),nR.set(g,p)}"tt"===c&&"xml:space"===h&&"preserve"===f&&(l=!0),d[h]=f}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,x(u.children)),u.children=[])}else u=i,-2==(i=e.indexOf("<",i)-1)&&(i=e.length),u=e.slice(u,i+1),o?u.length>0&&s.push(u):s.length&&1==u.length&&"\n"==u[0]?s.push(u):u.trim().length>0&&s.push(u),i++;return s}("")}(e,void 0!==n&&n),!t&&e.length?e[0]:(e=e.find(function(e){return t.split(",").includes(e.tagName)}))?e:null}function ni(e){return nL.has(e)?nL.get(e):""}function nr(e){return"string"==typeof e}function na(e){var t=[];if(!e.children)return[];e=E(e.children);for(var n=e.next();!n.done;n=e.next())"string"!=typeof(n=n.value)&&t.push(n);return t}function no(e,t){var n=[];if(!e.children)return[];e=E(e.children);for(var i=e.next();!i.done;i=e.next())(i=i.value).tagName===t&&n.push(i);return n}function ns(e){return"string"==typeof e?eJ(e):""===(e=e.children.reduce(function(e,t){return"string"==typeof t?e+t:e},""))?null:eJ(e)}function nu(e){return Array.from(e.children).every(function(e){return"string"==typeof e})?((e=ns(e))&&(e=e.trim()),e):null}function nl(e,t,n){if(n=void 0===n?[]:n,e.tagName===t&&n.push(e),e.children){e=E(e.children);for(var i=e.next();!i.done;i=e.next())nl(i.value,t,n)}return n}function nc(e,t){return 1!=(e=no(e,t)).length?null:e[0]}function nd(e,t,n){return 1!=(e=nf(e,t,n)).length?null:e[0]}function nh(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}
1function np(e,t,n){return t=ni(t),e.attributes[t+":"+n]||null}function nf(e,t,n){var i=ni(t);if(t=[],e.children)for(n=i?i+":"+n:n,i=(e=E(e.children)).next();!i.done;i=e.next())(i=i.value)&&i.tagName===n&&t.push(i);return t}function ng(e,t,n){t=E(t);for(var i=t.next();!i.done;i=t.next())if(i=np(e,i.value,n))return i;return null}function nm(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 nv(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)?)?$","i").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 ny(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 nb(e){return(e=Number(e))%1==0?e:null}function nT(e){return(e=Number(e))%1==0&&e>0?e:null}function nw(e){return(e=Number(e))%1==0&&e>=0?e:null}function nS(e){return isNaN(e=Number(e))?null:e}function nA(e){return!!e&&"true"===e.toLowerCase()}function nE(e){var t,n=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e);return isNaN(n)?null:n}function nx(e){var t=[];e=E(e=eJ(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,Oc:n.split("/@")[1]||null})}else n.startsWith("@")&&t.length&&(t[t.length-1].Oc=n.slice(1))}return t}function nk(e,t){var n=nx(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=nI(e,"t",i.t)),null!==i.n&&(n=nI(e,"n",i.n))),null===n?n="prepend"===r?0:e.length:"prepend"===r?--n:"after"===r&&++n,r=t.tagName,(i=i.Oc)&&e[n]?nC(e[n],r,i,nu(t)||""):("remove"!==r&&"replace"!==r||e.splice(n,1),"add"!==r&&"replace"!==r||e.splice.apply(e,[n,0].concat(x(t.children))))}}function nI(e,t,n){var i=0;e=E(e);for(var r=e.next();!r.done;r=e.next()){if(Number(r.value.attributes[t])===n)return i;i++}return null}function nC(e,t,n,i){"remove"===t?delete e.attributes[n]:("add"===t||"replace"===t)&&(e.attributes[n]=i)}function nM(e){if(!e)return null;var t={tagName:e.tagName,attributes:t9(e.attributes),children:[],parent:null};e=E(e.children);for(var n=e.next();!n.done;n=e.next())"string"==typeof(n=n.value)||((n=nM(n)).parent=t),t.children.push(n);return t}$("shaka.util.ObjectUtils",t6),t6.alphabeticalKeyOrderStringify=ne,t6.shallowCloneObject=t9,t6.cloneObject=t7;var nL=new Map,nR=new Map;function nP(e,t,n){this.startTime=e,this.endTime=t,this.payload=n,this.region=new tJ,this.position=null,this.positionAlign=nq,this.size=0,this.textAlign=nj,this.direction=nG,this.writingMode=nH,this.lineInterpretation=nz,this.line=null,this.lineHeight="",this.lineAlign=nK,this.displayAlign=nF,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=nZ,this.fontStyle=nQ,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={columns:32,rows:15}}function nD(e,t){return(e=new nP(e,t,"")).lineBreak=!0,e}function nN(e,t){if(e.payload!=t.payload||!(.001>Math.abs(e.startTime-t.startTime)&&.001>Math.abs(e.endTime-t.endTime)))return!1;for(var n in e)if("startTime"!=n&&"endTime"!=n&&"payload"!=n){if("nestedCues"==n){if(!tk(e.nestedCues,t.nestedCues,nN))return!1}else if("region"==n||"cellResolution"==n){for(var i in e[n])if(e[n][i]!=t[n][i])return!1}else if(Array.isArray(e[n])){if(!tk(e[n],t[n]))return!1}else if(e[n]!=t[n])return!1}return!0}function nO(e,t){t=void 0===t?new Map:t;var n=e.payload;if(n.includes("<")){0===t.size&&n_(t);var i,r,a,o,s=n;n=[];for(var u=-1,l=0;l<s.length;l++)"<"===s[l]?u=l+1:">"===s[l]&&u>0&&((u=s.substr(u,l-u)).match(n2)&&n.push(u),u=-1);for(l=(n=E(n)).next();!l.done;l=n.next())l=l.value,s=s.replace("<"+l+">",'<div time="'+l+'">')+"</div>";e:{l=s,u=[];var c=-1;n="",s=!1;for(var d=0;d<l.length;d++)if("/"===l[d]){var h=l.indexOf(">",d);if(-1===h){n=l;break e}if((h=l.substring(d+1,h))&&"v"==h){s=!0;var p=null;if(u.length&&(p=u[u.length-1]),p){if(p===h)n+="/"+h+">";else{if(!p.startsWith("v")){n+=l[d];continue}n+="/"+p+">"}d+=h.length+1}else n+=l[d]}else n+=l[d]}else"<"===l[d]?"v"!=l[c=d+1]&&(c=-1):">"===l[d]&&c>
10&&(u.push(l.substr(c,d-c)),c=-1),n+=l[d];for(u=(l=E(u)).next();!u.done;u=l.next())c=(u=u.value).replace(" ",".voice-"),n=(n=n.replace("<"+u+">","<"+c+">")).replace("</"+u+">","</"+c+">"),s||(n+="</"+c+">")}i=n,r={"< ":""," >":" &gt;"},o=RegExp((a=/(< +>|<\s|\s>)/g).source),n=i&&o.test(i)?i.replace(a,function(e){return r[e]||""}):i||"",e.payload="",s="<span>"+n.replace(/\n/g,"<br />")+"</span>";try{var f=nn(s,"span")}catch(e){}if(f)if(1!=(f=f.children).length||f[0].tagName)for(n=(f=E(f)).next();!n.done;n=f.next())!function e(t,n,i){var r=n.clone();if(r.nestedCues=[],r.payload="",r.rubyTag="",r.line=null,r.region=new tJ,r.position=null,r.size=0,r.textAlign=nj,t.tagName)for(var a=E(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=nU(s.backgroundColor,u.backgroundColor),u.color=nU(s.color,u.color),u.fontFamily=nU(s.fontFamily,u.fontFamily),u.fontSize=nU(s.fontSize,u.fontSize),u.textShadow=nU(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=nD(r.startTime,r.endTime),n.nestedCues.push(r);return;case"b":r.fontWeight=nJ;break;case"i":r.fontStyle=n$;break;case"u":r.textDecoration.push(n1);break;case"font":(o=t.attributes.color)&&(r.color=o);break;case"div":if(!(o=t.attributes.time))break;(o=t4(o))&&(r.startTime=o);break;case"ruby":case"rp":case"rt":r.rubyTag=o}}if(a=t.children,nr(t)||1==a.length&&nr(a[0]))for(i=ns(t).split("\n"),t=!0,a=(i=E(i)).next();!a.done;a=i.next())a=a.value,t||(t=nD(r.startTime,r.endTime),n.nestedCues.push(t)),a.length>0&&((t=r.clone()).payload=eJ(a),n.nestedCues.push(t)),t=!1;else for(n.nestedCues.push(r),t=(n=E(a)).next();!t.done;t=n.next())e(t.value,r,i)}(n.value,e,t);else e.payload=eJ(n);else e.payload=eJ(n)}else e.payload=eJ(n)}function n_(e){for(var t=E(Object.entries(nX)),n=t.next();!n.done;n=t.next()){var i=E(n.value);n=i.next().value,i=i.next().value;var r=new nP(0,0,"");r.color=i,e.set("."+n,r)}for(n=(t=E(Object.entries(nY))).next();!n.done;n=t.next())n=(i=E(n.value)).next().value,i=i.next().value,(r=new nP(0,0,"")).backgroundColor=i,e.set("."+n,r)}function nU(e,t){return e&&e.length>0?e:t}nP.prototype.clone=function(){var e,t=new nP(0,0,"");for(e in this)t[e]=this[e],Array.isArray(t[e])&&(t[e]=t[e].slice());return t},$("shaka.text.Cue",nP),nP.parseCuePayload=nO,nP.equal=nN,nP.prototype.clone=nP.prototype.clone;var nq="auto";nP.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:nq};var nj="center",nB={LEFT:"left",RIGHT:"right",CENTER:nj,START:"start",END:"end"};nP.textAlign=nB;var nF="after",nV={BEFORE:"before",CENTER:"center",AFTER:nF};nP.displayAlign=nV;var nG="ltr";nP.direction={HORIZONTAL_LEFT_TO_RIGHT:nG,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var nH="horizontal-tb";nP.writingMode={HORIZONTAL_TOP_TO_BOTTOM:nH,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var nz=0;nP.lineInterpretation={LINE_NUMBER:0,PERCENTAGE:1};var nK="start",nW={CENTER:"center",START:nK,END:"end"};nP.lineAlign=nW;var nX={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};nP.defaultTextColor=nX;var nY={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};nP.defaultTextBackgroundColor=nY;var nZ=400,nJ=700;nP.fontWeight={NORMAL:400,BOLD:700};var nQ="normal",n$="italic",n0={NORMAL:nQ,ITALIC:n$,OBLIQUE:"oblique"};nP.fontStyle=n0;var n1="underline";nP.textDecoration={UNDERLINE:n1,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var n2=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function n5(){}function n3(e,t,n){n8.set(e.toLowerCase().split(";")[0]+"-"+n,{priority:n,Yf:t})}function n4(e,t){for(var n=e.toLowerCase().split(";")[0],i=E([ie,n9,n7,n6]),r=i.next();!r.done;r=i.next())if(r=n8.get(n+"-"+r.value)){var a=r.Yf(),o=a.isSupported(e,t);if(a.destroy(),o)return r.Yf}return null}n5.prototype.destroy=function(){},$("shaka.transmuxer.TransmuxerEngine",n5),n5.findTransmuxer=n4,n5.unregisterTransmuxer=function(e,t){n8.delete(e.toLowerCase().split(";")[0]+"-"+t)}
1,n5.registerTransmuxer=n3,n5.prototype.destroy=n5.prototype.destroy;var n8=new Map,n6=1,n7=2,n9=3,ie=4;function it(){}function ii(e,t){var n=e;return t&&!ip.includes(e)&&(n+='; codecs="'+t+'"'),n}function ir(e,t){return t&&(e+='; codecs="'+t+'"'),e}function ia(e,t,n){var i=ii(e,t);return n4(t=ir(e,t))?(e=n4(t))?(n=(e=e()).convertCodecs(n,t),e.destroy()):n=t:n="video/mp2t"!=e&&"audio"==n?i.replace("video","audio"):i,n}function io(e){return e.split(";")[0].split("/")[1]}function is(e){var t=ih(e);switch(e=t[0].toLowerCase(),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:case"ac3"===e:case"ac-3"===e:return"ac-3";case"mp4a"===e&&"a6"===t:case"eac3"===e:case"ec-3"===e:return"ec-3";case"ac-4"===e:return"ac-4";case"mp4a"===e&&"b2"===t:return"dtsx";case"mp4a"===e&&"a9"===t:return"dtsc";case"vp09"===e:case"vp9"===e:return"vp9";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 t&&t.startsWith("05")?"dovi-p5":"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";case"lvc1"===e:return"lcevc"}return e}function iu(e){var t=[];e=E(e.split(","));for(var n=e.next();!n.done;n=e.next())t.push((n=ih(n.value))[0]);return t.sort().join(",")}function il(e){return e.split(";")[0]}function ic(e){return(e=e.split(/ *; */)).shift(),(e=e.find(function(e){return e.startsWith("codecs=")}))?e.split("=")[1].replace(/^"|"$/g,""):""}function id(e){return"application/x-mpegurl"===e||"application/vnd.apple.mpegurl"===e}function ih(e){var t=(e=e.split("."))[0];return e.shift(),[t,e.join(".")]}n5.PluginPriority={FALLBACK:1,PREFERRED_SECONDARY:2,PREFERRED:3,APPLICATION:4},$("shaka.util.MimeUtils",it),it.getFullTypeWithAllCodecs=ir,it.getFullType=ii,(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");var ip=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function ig(e){this.i=null,this.l=e,this.D=!1,this.m=this.A=0,this.u=1/0,this.h=this.g=null,this.F="",this.C=function(){},this.j=new Map}function im(e,t){iw.set(e,t)}function iv(e){return iw.get(e)}function iy(e){return!!iw.has(e)||("application/cea-608"==e||"application/cea-708"==e)&&!!tZ}function ib(e,t,n){e.F=t,(t=e.j.get(t))&&(t=t.filter(function(e){return e.endTime<=n})).length&&e.l.append(t)}function iT(e){for(var t=1/0,n=-1/0,i=E(e.j.values()),r=i.next();!r.done;r=i.next()){r=E(r.value);for(var a=r.next();!a.done;a=r.next())t=Math.min(t,(a=a.value).startTime),n=Math.max(n,a.endTime)}t!==1/0&&n!==-1/0&&(e.g=null==e.g?Math.max(t,e.m):Math.min(e.g,Math.max(t,e.m)),e.h=Math.max(e.h,Math.min(n,e.u)))}ig.prototype.destroy=function(){return this.l=this.i=null,this.j.clear(),Promise.resolve()},ig.prototype.remove=function(e,t,n){n=void 0!==n&&n;var i=this;return F(function(r){return 1==r.g?M(r,Promise.resolve(),2):e>=t?r.return():void(n&&function(e,t,n){for(var i=E(e.j.keys()),r=i.next();!r.done;r=i.next()){r=r.value;var a=e.j.get(r);a=a.filter(function(e){return e.startTime<t||e.endTime>=n}),e.j.set(r,a)}}(i,e,t),i.l&&i.l.remove(e,t)&&null!=i.g&&(t<=i.g||e>=i.h||(e<=i.g&&t>=i.h?i.g=i.h=null:e<=i.g&&t<i.h?i.g=t:e>i.g&&t>=i.h&&(i.h=e)),iT(i)),L(r))})},$("shaka.text.TextEngine",ig),ig.prototype.destroy=ig.prototype.destroy,ig.findParser=iv,ig.unregisterParser=function(e){iw.delete(e)},ig.registerParser=im;var iw=new Map;function iS(e){this.h=e,this.g=null}function iA(e){this.h=e,this.g=null}function iE(e,t){return e.concat(t)}function ix(){}function ik(e){return null!=e}function iI(e,t){return Promise.race([t,new Promise(function(t,n){new iA(n).Y(e)})])}function iC(){}function iM(e,t,n,i,r){if(r.length){var a=e.textStreams;r=E(r);
1for(var o=r.next(),s={};!o.done;s={xi:void 0},o=r.next())if(s.xi=o.value,(o=a.filter(function(e){return function(t){return!!(t.codecs.startsWith(e.xi)||t.mimeType.startsWith(e.xi))}}(s))).length){a=o;break}e.textStreams=a}if(a=e.variants,(t.length||n.length)&&(a=function(e,t,n){t=E(t);for(var i=t.next(),r={};!i.done;r={videoCodec:void 0},i=t.next())if(r.videoCodec=i.value,(i=e.filter(function(e){return function(t){return t.video&&t.video.codecs.startsWith(e.videoCodec)}}(r))).length){e=i;break}for(t=(n=E(n)).next(),i={};!t.done;i={audioCodec:void 0},t=n.next())if(i.audioCodec=t.value,(t=e.filter(function(e){return function(t){return t.audio&&t.audio.codecs.startsWith(e.audioCodec)}}(i))).length){e=t;break}return e}(a,t,n)),i.length){for(t=new el,a=(n=E(a)).next();!a.done;a=n.next())a=a.value,t.push(String(a.video.width||0),a);var u=[];t.forEach(function(e,t){e=0;var n=[];t=E(t);for(var r=t.next(),a={};!r.done;a={Bg:void 0},r=t.next())a.Bg=r.value,(r=i.filter(function(e){return function(t){return e.Bg.decodingInfos[0][t]}}(a)).length)>e?(e=r,n=[a.Bg]):r==e&&n.push(a.Bg);u.push.apply(u,x(n))}),a=u}for(n=new Set,t=new Set,r=(a=E(a)).next();!r.done;r=a.next())(r=r.value).audio&&n.add(r.audio),r.video&&t.add(r.video);a=Array.from(n).sort(function(e,t){return e.bandwidth-t.bandwidth});var l=[];for(n=new Map,r=(a=E(a)).next();!r.done;r=a.next()){if(o=function(e){var t=e.language+(e.channelsCount||0)+(e.audioSamplingRate||0)+e.roles.join(",")+e.label+e.groupId+e.fastSwitching;return e.dependencyStream&&(t+=e.dependencyStream.baseOriginalId||""),t}(r=r.value),(s=n.get(o)||[]).length){var c=s[s.length-1],d=is(c.codecs),h=is(r.codecs);d!=h||r.bandwidth&&c.bandwidth&&!(r.bandwidth>c.bandwidth)||(s.push(r),l.push(r.id))}else s.push(r),l.push(r.id);n.set(o,s)}var p={vp8:1,avc:1,"dovi-avc":.95,vp9:.9,vp09:.9,hevc:.85,"dovi-hevc":.8,"dovi-p5":.75,av01:.7,"dovi-av1":.65,vvc:.6};a=Array.from(t).sort(function(e,t){if(!e.bandwidth||!t.bandwidth||e.bandwidth==t.bandwidth){if(e.codecs&&t.codecs&&e.codecs!=t.codecs&&e.width==t.width){var n=is(e.codecs),i=is(t.codecs);if(n!=i)return(p[n]||1)-(p[i]||1)}return e.width-t.width}return e.bandwidth-t.bandwidth}),t=eB().Gb();var f=[];for(n=new Map,r=(a=E(a)).next();!r.done;r=a.next()){if(o=function(e){var t=String(e.width||"")+String(e.height||"")+String(Math.round(e.frameRate||0))+(e.hdr||"")+e.fastSwitching;return e.dependencyStream&&(t+=e.dependencyStream.baseOriginalId||""),e.roles&&(t+=e.roles.sort().join("_")),t}(r=r.value),(s=n.get(o)||[]).length){if(c=s[s.length-1],!t&&(d=is(c.codecs))!==(h=is(r.codecs)))continue;(d=is(c.codecs))!=(h=is(r.codecs))||r.bandwidth&&c.bandwidth&&!(r.bandwidth>c.bandwidth)||(s.push(r),f.push(r.id))}else s.push(r),f.push(r.id);n.set(o,s)}e.variants=e.variants.filter(function(e){var t=e.audio;return e=e.video,(!t||!!l.includes(t.id))&&(!e||!!f.includes(e.id))})}function iL(e,t,n){var i,r,a,o,s,u,l,c,d,h=e.video;if(h&&h.width&&h.height){var p,f,g,m,v,y,b,T,w,S=h.width,A=h.height;if(A>S&&(S=(A=E([A,S])).next().value,A=A.next().value),p=S,f=t.minWidth,g=Math.min(t.maxWidth,n.width),!(p>=f)||!(p<=g)||(m=A,v=t.minHeight,y=Math.min(t.maxHeight,n.height),!(m>=v)||!(m<=y))||(b=h.width*h.height,T=t.minPixels,w=t.maxPixels,!(b>=T)||!(b<=w)))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 iR(e,t,n,i,r){var a,o;return F(function(s){if(1==s.g)return eB().Tj()&&function(e){var t=(new Map).set("dvav","avc3").set("dva1","avc1").set("dvhe","hev1").set("dvh1","hvc1").set("dvc1","vvc1").set("dvi1","vvi1"),n=new Set;e=E(e);for(var i=e.next();!i.done;i=e.next())(i=i.value).video&&n.add(i.video);for(e=(n=E(n)).next();!e.done;e=n.next()){e=e.value,i=E(t);for(var r=i.next();!r.done;r=i.next()){var a=E(r.value);if(r=a.next().value,a=a.next().value,e.codecs.includes(r)){e.codecs=e.codecs.replace(r,a);break}}}}(t.variants),M(s,iD(t.variants,n,!1,i),2);a=null,e&&(o=e.g)&&(a=o.keySystem),t.variants=t.variants.filter(function(e){var t=function(e,t,n){if(!e.decodingInfos.some(function(e){return!!e.supported&&(!t||!(e=e.keySystemAccess)||(n[e.keySystem]||e.keySystem)==t)}))return!1;var i=eB(),r="Xbox"===i.Wb();i="MOBILE"===i.Oa()&&"GECKO"===i.Ja();var a=e.video,o=a&&a.width||0,s=a&&a.height||0;return!(r&&a&&(o>1920||s>1080)&&(a.codecs.includes("avc1.")||a.codecs.includes("avc3.")))&&(!(r=a&&a.dependencyStream)||!!tq(r))&&(e=e.audio,!(i&&e&&e.encrypted&&e.codecs.toLowerCase().includes("opus"))&&(!e||!e.depen
1dencyStream))}(e,a,r);if(!t){var n=[];e.audio&&n.push(iX(e.audio)),e.video&&n.push(iX(e.video))}return t}),L(s)})}function iP(e,t){var n,i,r,a,o,s,u;return F(function(l){if(1==l.g){for(n=function(e,t){if(e){var n=t9(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=E(t)).next(),s={};!o.done;s={cache:void 0,lf:void 0},o=a.next())u=o.value,s.lf=ne(u),s.cache=iJ,s.cache.has(s.lf)?i=n(i,s.cache.get(s.lf)):r.push((function(e){var t=[""];e.video&&(t=ic(e.video.contentType).split(","));var n=[""];e.audio&&(n=ic(e.audio.contentType).split(","));var i=[];t=E(t);for(var r=t.next();!r.done;r=t.next()){r=r.value;for(var a=E(n),o=a.next(),s={};!o.done;s={fd:void 0},o=a.next())o=o.value,s.fd=t7(e),e.video&&(s.fd.video.contentType=ii(il(s.fd.video.contentType),r)),e.audio&&(s.fd.audio.contentType=ii(il(s.fd.audio.contentType),o)),i.push(new Promise(function(e){return function(t,n){("MOBILE"==eB().Oa()?iI(5,navigator.mediaCapabilities.decodingInfo(e.fd)):navigator.mediaCapabilities.decodingInfo(e.fd)).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=E(t||[]);for(var a=t.next();!a.done;a=t.next())r=n(r,a.value);r&&(e.cache.set(e.lf,r),i=n(i,r))}}(s)));return M(l,Promise.all(r),2)}i&&e.decodingInfos.push(i),L(l)})}function iD(e,t,n,i){var r,a,o,s,u,l,c,d,h,p,f,g,m,v,y,b;return F(function(T){switch(T.g){case 1:if(e.some(function(e){return e.decodingInfos.length}))return T.return();a=(r=E(i)).next(),o={};case 2:if(a.done){T.B(4);break}o.zj=a.value,s=!1,l=(u=E(e)).next();case 5:var w;if(l.done){T.B(7);break}h=(d=E(iN(c=l.value,t,n).filter((w=o,function(e){return((e=e[0]).keySystemConfiguration&&e.keySystemConfiguration.keySystem)===w.zj})))).next();case 8:if(h.done){T.B(10);break}return p=h.value,M(T,iP(c,p),9);case 9:h=d.next(),T.B(8);break;case 10:c.decodingInfos.some(function(e){return e.supported})&&(s=!0),l=u.next(),T.B(5);break;case 7:if(s)return T.return();o={zj:void 0},a=r.next(),T.B(2);break;case 4:g=(f=E(e)).next();case 12:if(g.done){T.B(0);break}y=(v=E(iN(m=g.value,t,n).filter(function(e){return!(e=(e=e[0]).keySystemConfiguration&&e.keySystemConfiguration.keySystem)||!i.includes(e)}))).next();case 15:if(y.done){g=f.next(),T.B(12);break}return b=y.value,M(T,iP(m,b),16);case 16:y=v.next(),T.B(15)}})}function iN(e,t,n){var i=e.audio,r=e.video,a=[],o=[];if(r)for(var s=E(r.fullMimeTypes),u=s.next();!u.done;u=s.next()){var l=ic(u=u.value);if(l.includes(",")&&!i){var c=l.split(","),d=il(u);l=e9("video",c),c=iO(c=e9("audio",c),d),d=ia(d,c,"audio"),o.push({contentType:d,channels:2,bitrate:e.bandwidth||1,samplerate:1,spatialRendering:!1})}if(l=i_(l),u={contentType:ia(il(u),l,"video"),width:r.width||64,height:r.height||64,bitrate:r.bandwidth||e.bandwidth||1,framerate:r.frameRate||30},r.hdr)switch(r.hdr){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=E(i.fullMimeTypes)).next();!u.done;u=s.next())u=il(l=u.value),l=iO(ic(l),u),u=ia(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=E(a)).next();!u.done;u=a.next())for(u=u.value,d=(l=E(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=E(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=E(n.keys())).next();!u.done;u=a.next()){for(u=u.value,d=n.get(u),l=new Map,c=(d=E(d)).next();!c.done;
1c=d.next()){var h=(c=c.value).videoRobustness+","+c.audioRobustness;l.get(h)||l.set(h,[]),l.get(h).push(c)}for(d=(l=E(l.values())).next();!d.done;d=l.next()){d=d.value,c=[],h=E(s);for(var p=h.next();!p.done;p=h.next()){p=Object.assign({},p.value);for(var f={keySystem:u,initDataType:"cenc",persistentState:o,distinctiveIdentifier:"optional",sessionTypes:t},g=E(d),m=g.next();!m.done;m=g.next()){if((m=m.value).initData&&m.initData.length){for(var v=new Set,y=E(m.initData),b=y.next();!b.done;b=y.next())v.add(b.value.initDataType);f.initDataType=m.initData[0].initDataType}m.distinctiveIdentifierRequired&&(f.distinctiveIdentifier="required"),m.persistentStateRequired&&(f.persistentState="required"),m.sessionType&&(f.sessionTypes=[m.sessionType]),i&&(f.audio?(m.encryptionScheme&&(f.audio.encryptionScheme=f.audio.encryptionScheme||m.encryptionScheme),f.audio.robustness=f.audio.robustness||m.audioRobustness):(f.audio={robustness:m.audioRobustness},m.encryptionScheme&&(f.audio.encryptionScheme=m.encryptionScheme)),""==f.audio.robustness&&delete f.audio.robustness),r&&(f.video?(m.encryptionScheme&&(f.video.encryptionScheme=f.video.encryptionScheme||m.encryptionScheme),f.video.robustness=f.video.robustness||m.videoRobustness):(f.video={robustness:m.videoRobustness},m.encryptionScheme&&(f.video.encryptionScheme=m.encryptionScheme)),""==f.video.robustness&&delete f.video.robustness)}p.keySystemConfiguration=f,c.push(p)}e.push(c)}}return e}function iO(e,t){var n=eB();return"flac"==e.toLowerCase()?"WEBKIT"!=n.Ja()?"flac":"fLaC":"opus"===e.toLowerCase()?"WEBKIT"!=n.Ja()?"opus":"mp4"==io(t)?"Opus":"opus":"ac-3"==e.toLowerCase()&&n.Je()?"ec-3":e}function i_(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 iU(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=t?t.groupId:null,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=E(t.roles),h=d.next();!h.done;h=d.next())c.add(h.value);if(n)for(h=(d=E(n.roles)).next();!h.done;h=d.next())c.add(h.value);if(e={id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null,videoLabel:null,kind:l,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:u,audioMimeType:i,videoMimeType:r,codecs:"",audioCodec:a,videoCodec:o,primary:e.primary,roles:Array.from(c),audioRoles:null,videoRoles:null,forced:!1,videoId:null,audioId:null,audioGroupId:s,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth: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,e.videoRoles=n.roles,e.videoLabel=n.label,(i=n.dependencyStream)&&(e.width=i.width||e.width,e.height=i.height||e.height,e.videoCodec=i.codecs||e.videoCodec,e.pixelAspectRatio=i.pixelAspectRatio||e.pixelAspectRatio,e.videoBandwidth&&i.bandwidth&&(e.videoBandwidth+=i.bandwidth)),o.includes(","))){e.channelsCount=n.channelsCount,e.audioSamplingRate=n.audioSamplingRate,e.spatialAudio=n.spatialAudio,e.originalLanguage=n.originalLanguage,e.audioMimeType=r,r=o.split(",");try{e.videoCodec=e9("video",r),e.audioCodec=e9("audio",r)}catch(e){}}
1return 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,r=t.dependencyStream)&&(e.audioCodec=r.codecs||e.audioCodec,e.audioBandwidth&&r.bandwidth&&(e.audioBandwidth+=r.bandwidth)),n&&!e.videoBandwidth&&(t?e.audioBandwidth&&(e.videoBandwidth=e.bandwidth-e.audioBandwidth):e.videoBandwidth=e.bandwidth),t&&!e.audioBandwidth&&(n?e.videoBandwidth&&(e.audioBandwidth=e.bandwidth-e.videoBandwidth):e.audioBandwidth=e.bandwidth),t=[],e.videoCodec&&t.push(e.videoCodec),e.audioCodec&&t.push(e.audioCodec),e.codecs=t.join(", "),e}function iq(e){return{id:e.id,active:!1,type:tn,bandwidth:e.bandwidth||0,language:e.language,label:e.label,kind:e.kind||null,mimeType:e.mimeType,codecs:e.codecs||null,primary:e.primary,roles:e.roles,accessibilityPurpose:e.accessibilityPurpose,forced:e.forced,originalTextId:e.originalId,originalLanguage:e.originalLanguage}}function ij(e){var t=e.width||null,n=e.height||null,i=null;e.segmentIndex&&(i=sS(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,type:"image",bandwidth:e.bandwidth||0,width:t,height:n,mimeType:e.mimeType,codecs:e.codecs||null,tilesLayout:r||null,originalImageId:e.originalId}}function iB(e){return e.__shaka_id||(e.__shaka_id=iQ++),e.__shaka_id}function iF(e){var t={id:iB(e),active:"disabled"!=e.mode,type:tn,bandwidth:0,language:tc(e.language||"und"),label:e.label,kind:e.kind,mimeType:null,codecs:null,primary:!1,roles:[],accessibilityPurpose:null,forced:"forced"==e.kind,originalTextId:e.id,originalLanguage:e.language};return"captions"==e.kind&&(t.mimeType="unknown"),"subtitles"==e.kind&&(t.mimeType="text/vtt"),e.kind&&(t.roles=[e.kind]),t}function iV(e,t){var n=e?e.language:null;if(n={id:iB(e||t),active:e?e.enabled:t.selected,type:"variant",bandwidth:0,language:tc(n||"und"),label:e?e.label:null,videoLabel:null,kind:e?e.kind:null,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:!!e&&"main"==e.kind,roles:[],forced:!1,audioR
1oles:null,videoRoles:null,videoId:null,audioId:null,audioGroupId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:t?t.id:null,originalAudioId:e?e.id:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:n},e&&e.kind&&(n.roles=[e.kind],n.audioRoles=[e.kind]),e&&e.configuration&&(e.configuration.codec&&(n.audioCodec=e.configuration.codec,n.codecs=n.audioCodec),e.configuration.bitrate&&(n.audioBandwidth=e.configuration.bitrate,n.bandwidth+=n.audioBandwidth),e.configuration.sampleRate&&(n.audioSamplingRate=e.configuration.sampleRate),e.configuration.numberOfChannels&&(n.channelsCount=e.configuration.numberOfChannels)),t&&t.configuration&&(t.configuration.codec&&(n.videoCodec=t.configuration.codec,n.codecs=n.codecs?n.codecs+","+n.videoCodec:n.videoCodec),t.configuration.bitrate&&(n.videoBandwidth=t.configuration.bitrate,n.bandwidth+=n.videoBandwidth),t.configuration.framerate&&(n.frameRate=t.configuration.framerate),t.configuration.width&&(n.width=t.configuration.width),t.configuration.height&&(n.height=t.configuration.height),t.configuration.colorSpace&&t.configuration.colorSpace.transfer))switch(t.configuration.colorSpace.transfer){case"pq":n.hdr="PQ";break;case"hlg":n.hdr="HLG";break;case"bt709":n.hdr="SDR"}return n}function iG(e){return e.allowedByApplication&&e.allowedByKeySystem&&0==e.disabledUntilTime}function iH(e){return e.filter(function(e){return iG(e)})}function iz(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=tg(tc(t),e.map(function(e){return e.language}));s&&(r=e.filter(function(e){return tc(e.language)==s}))}if(r=r.filter(function(e){return e.forced==i}),n){if((e=iK(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(iE,[])).length?iK(r,e[0]):r}function iK(e,t){return e.filter(function(e){return e.roles.includes(t)})}function iW(e,t){t.length&&(t=t.filter(function(t){return is(e.codecs)==is(t.codecs)}).sort(function(e,t){return e.bandwidth&&t.bandwidth&&e.bandwidth!=t.bandwidth?e.bandwidth-t.bandwidth:(e.width||0)-(t.width||0)}),e.trickModeVideo=t[0],t.length>1&&(t=t.find(function(t){return e.width==t.width&&e.height==t.height})))&&(e.trickModeVideo=t)}function iX(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"}function iY(e,t,n){if(0==n.autoShowText)return!1;if(1==n.autoShowText)return!0;var i=tc(n.preferredTextLanguage);return(t=tc(t.language),2==n.autoShowText)?ts(t,i):3==n.autoShowText?!!e&&(e=tc(e.language),ts(t,i)&&!ts(e,t)):(ea("Invalid autoShowText setting!"),!1)}function iZ(e){var t={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]};e=E(e);for(var n=e.next();!n.done;n=e.next()){var i={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:(n=n.value)?il(n):"",codecs:n?ic(n):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:"video",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null};i.fullMimeTypes.add(ii(i.mimeType,i.codecs)),n.startsWith("audio/")?(i.type="audio",t.audio=i):t.video=i}return t}iS.prototype.Y=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},iS.prototype.stop=function(){this.g&&(this.g(),this.g=null)},iA.prototype.Ka=function(){return this.stop(),this.h(),this},iA.prototype.Y=function(e){var t=this;return this.stop(),this.g=new iS(function(){t.h()}).Y(e),this},iA.prototype.xa=function(e){var t=this;return this.stop(),this.g=new iS(function(){t.g.Y(e),t.h()}).Y(e),this},iA.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},$("shaka.util.Timer",iA),iA.prototype.stop=iA.prototype.stop,iA.prototype.tickEvery=iA.prototype.xa,iA.prototype.tickAfter=iA.prototype.Y,iA.prototype.tickNow=iA.prototype.Ka,$("shaka.util.StreamUtils",iC),iC.meetsRestrictions=iL;var iJ=new Map,iQ=0,i$=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),i0=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdj
1FDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function i1(){var t=this;this.H=null,this.G=!1,this.A=new tS,this.j=new tI,navigator.connection&&navigator.connection.addEventListener&&this.j.o(navigator.connection,"change",function(){t.g.useNetworkInformation&&navigator.onLine&&(t.A=new tS,t.g&&t.A.configure(t.g.advanced),t.trySuggestStreams())}),this.l=[],this.I=1,this.J=!1,this.h=this.u=this.g=this.C=null,this.m=new iA(function(){if(t.G&&(t.g.restrictToElementSize||t.g.restrictToScreenSize)){var e=t.chooseVariant();e&&t.H(e,t.g.clearBufferSwitch,t.g.safeMarginSwitch)}}),this.D=e,"documentPictureInPicture"in e&&this.j.o(e.documentPictureInPicture,"enter",function(){t.D=e.documentPictureInPicture.window,t.m&&t.m.Ka(),t.j.qa(t.D,"pagehide",function(){t.D=e,t.m&&t.m.Ka()})}),this.F=this.i=null}function i2(e,t){if(void 0===t||!t){if(!e.J){if(!((t=e.A).g>=t.i))return;e.J=!0,e.C-=(e.g.switchInterval-e.g.minTimeToSwitch)*1e3}if(Date.now()-e.C<1e3*e.g.switchInterval)return}t=e.chooseVariant(),e.getBandwidthEstimate(),t&&e.H(t,e.g.clearBufferSwitch,e.g.safeMarginSwitch)}function i5(e,t,n,i,r){if(e.F){var a=e.F.aj();a&&(n=n.filter(function(e){return!e.bandwidth||!a||e.bandwidth<=a}))}return t&&(n=n.filter(function(e){return iL(e,t,{width:r,height:i})})),n.sort(function(e,t){return e.bandwidth-t.bandwidth})}(p=i1.prototype).stop=function(){this.H=null,this.G=!1,this.l=[],this.I=1,this.u=this.C=null,this.h&&(this.h.disconnect(),this.h=null),this.m&&this.m.stop(),this.F=this.i=null},p.release=function(){this.stop(),this.j.release(),this.m=null},p.init=function(e){this.H=e},p.chooseVariant=function(e){e=void 0!==e&&e;var t=1/0,n=1/0;if(this.g.restrictToScreenSize&&(n=this.g.ignoreDevicePixelRatio?1:this.D.devicePixelRatio,t=this.D.screen.height*n,n*=this.D.screen.width),this.h&&this.g.restrictToElementSize){var i=this.g.ignoreDevicePixelRatio?1:this.D.devicePixelRatio,r=this.u.clientHeight,a=this.u.clientWidth;this.i&&document.pictureInPictureElement&&document.pictureInPictureElement==this.u&&(r=this.i.height,a=this.i.width),t=Math.min(t,r*i),n=Math.min(n,a*i)}if((r=this.l.filter(function(e){return e&&!(e.audio&&e.audio.fastSwitching||e.video&&e.video.fastSwitching)})).length||(r=this.l),i=r,e&&r.length!=this.l.length&&(i=this.l.filter(function(e){return e&&(!!e.audio&&!!e.audio.fastSwitching||!!e.video&&!!e.video.fastSwitching)})),e=i5(this,this.g.restrictions,i,1/0,1/0),t!=1/0||n!=1/0){for(r=(e=E(e=function(e){var t=[];e=E(e);for(var n=e.next();!n.done;n=e.next())(n=n.value)&&(n=n.video)&&n.height&&n.width&&t.push({height:n.height,width:n.width});return t.sort(function(e,t){return e.width-t.width})}(e))).next();!r.done;r=e.next())if((r=r.value).height>=t&&r.width>=n){t=r.height,n=r.width;break}e=i5(this,this.g.restrictions,i,t,n)}for(t=this.getBandwidthEstimate(),i.length&&!e.length&&(e=[(e=i5(this,null,i,1/0,1/0))[0]]),n=e[0]||null,i=0;i<e.length;i++){r=e[i];var o=isNaN(this.I)?1:Math.abs(this.I);a=o*r.bandwidth/this.g.bandwidthDowngradeTarget;for(var s={bandwidth:1/0},u=i+1;u<e.length;u++)if(r.bandwidth!=e[u].bandwidth){s=e[u];break}o=o*s.bandwidth/this.g.bandwidthUpgradeTarget,n&&r&&t>=a&&t<=o&&(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.C=Date.now(),n},p.enable=function(){this.G=!0,this.l.length&&this.trySuggestStreams()},p.disable=function(){this.G=!1},p.segmentDownloaded=function(e,t,n,i){var r=e;this.g.removeLatencyFromFirstPacketTime&&i&&1===i.packetNumber&&i.timeToFirstByte&&(r=e-i.timeToFirstByte),r>=this.g.cacheLoadThreshold&&this.A.sample(r,t),n&&null!=this.C&&this.G&&i2(this)},p.trySuggestStreams=function(){this.G&&(this.C=Date.now(),i2(this,!0))},p.getBandwidthEstimate=function(){var e=this.g.defaultBandwidthEstimate;return(navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(e=1e6*navigator.connection.downlink),navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&this.g.preferNetworkInformationBandwidth)?e:(e=this.A.getBandwidthEstimate(e),this.F?this.F.getBandwidthEstimate(e):e)},p.setVariants=function(e){return!tx(e,this.l)&&(this.l=e,!0)},p.playbackRateChanged=function(e){this.I=e},p.setMediaElement=function(t){function n(){i.m.Y(i3)}var i=this;this.u=t,this.h&&(this.h.disconnect(),this.h=null),this.u&&"ResizeObserver"in e&&(this.h=new ResizeObserver(n),this.h.observe(this.u)),this.j.o(t,"enterpictureinpicture",function(e){e.pictureInPictureWindow&&(i.i=e.pictureInPictureWindow,i.j.o(i.i,"resize",n))}),this.j.o(t,"leavepictureinpicture",function(){i.i&&i.j.Ea(i.i,"resize",n),i.i=null})},p.setCmsdManager=function(e){this.F=e},p.configure=function(e){this.g=e,this.A&&this.g&&this.A.configure(this.g.advanced)},$("shaka.abr.SimpleAbrManager",i1),i1.prototype.configure=i1.prototype.configure,i1.prototype.setCmsdManager=i1.prototype.setCmsdManager,i1.prototype.setMediaElement=i1.prototype.setMediaElement,i1.prototype.playbackRateChanged=i1.prototype.playbackRateChanged,i1.prototype.setVariants=i1.prototype.setVariants,i1.prototype.getBandwidthEstimate=i1.prototype.getBandwidthEstimate,i1.prototype.trySuggestStreams=i1.prototype.trySuggestStreams,i1.prototype.segmentDownloaded=i1.prototype.segmentDownloaded,i1.prototype.disable=i1.prototype.disable,i1.prototype.enable=i1.prototype.enable,i1.prototype.chooseVariant=i1.prototype.chooseVariant,i1.prototype.init=i1.prototype.init,i1.prototype.release=i1.prototype.release,i1.prototype.stop=i1.prototype.stop;var i3=1;function i4(e,t){if(e===t||!e.length||!t.length)return!0;e=E(e);for(var n=e.next();!n.done;n=e.next()){if(i9(n=n.value))return!0;for(var i=E(t),r=i.next();!r.done;r=i.next())if(r=r.value,n.keySystem===r.keySystem||i9(r))return!0}return!1}function i8(e,t){if(!e.length)return t;if(!t.length)return e;var n=[];e=E(e);for(var i=e.next();!i.done;i=e.next()){i=i.value;for(var r=E(t),a=r.next();!a.done;a=r.next())if(a=a.value,i.keySystem==a.keySystem){r=new Map;for(var o=E((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(x(i.keyIds),x(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,audioR
1obustness:i.audioRobustness||a.audioRobustness,serverCertificate:i.serverCertificate||a.serverCertificate,serverCertificateUri:i.serverCertificateUri||a.serverCertificateUri,initData:r,keyIds:o});break}else i9(i)?n.push(i):i9(a)&&n.push(a)}return n}function i6(e){return!!e&&!!e.match(/^com\.(microsoft|chromecast)\.playready/)}function i7(e){return!!e&&!!e.match(/^com\.apple\.fps/)}function i9(e){return!!(e=e.licenseServerUri)&&e.startsWith("data:application/json;base64,")}var re=new ej(function(){return eP(new Uint8Array([0]))}),rt=new Map;function rn(e,t){var n=rr();this.l=null==e.maxAttempts?n.maxAttempts:e.maxAttempts,this.j=null==e.baseDelay?n.baseDelay:e.baseDelay,this.u=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 ri(e){var t,n;return F(function(i){if(1==i.g){if(e.g>=e.l)if(e.i)e.g=1,e.h=e.j;else throw new eU(2,7,1010);return(t=e.g,e.g++,0==t)?i.return():(n=e.h*(1+(2*Math.random()-1)*e.u),M(i,new Promise(function(e){new iA(e).Y(n/1e3)}),2))}e.h*=e.m,L(i)})}function rr(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function ra(){var e,t,n=new Promise(function(n,i){e=n,t=i});return n.resolve=e,n.reject=t,n}function ro(e,t){this.promise=e,this.i=t,this.g=null}function rs(e){return new ro(Promise.reject(e),function(){return Promise.resolve()})}function ru(){var e=Promise.reject(new eU(2,7,7001));return e.catch(function(){}),new ro(e,function(){return Promise.resolve()})}function rl(e){return new ro(Promise.resolve(e),function(){return Promise.resolve()})}function rc(e){return new ro(e,function(){return e.catch(function(){})})}function rd(e){return new ro(Promise.all(e.map(function(e){return e.promise})),function(){return Promise.all(e.map(function(e){return e.abort()}))})}function rh(){this.g=[]}function rp(e,t){e.g.push(t.finally(function(){tE(e.g,t)}))}function rf(e,t,n,i,r,a,o){ec.call(this),this.i=null,this.j=!1,this.A=new rh,this.g=new Set,this.h=new Set,this.u=e||null,this.m=t||null,this.C=n||null,this.D=i||null,this.F=r||null,this.H=a||null,this.G=o||null,this.l=new Map}function rg(e,t,n,i){i=void 0!==i&&i,n=n||rS;var r=rA.get(e);(!r||n>=r.priority)&&rA.set(e,{priority:n,Yf:t,Wl:i})}function rm(e,t){for(var n=E(e.g),i=n.next();!i.done;i=n.next())t.g.add(i.value);for(n=(e=E(e.h)).next();!n.done;n=e.next())t.h.add(n.value)}function rv(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 ry(e){if(e){var t=e.segment;if(e=e.stream,t&&e&&e.fastSwitching&&t.od)return!1}return!0}function rb(){this.g=0}function rT(e,t,n){ro.call(this,e,t),this.h=n}ra.prototype.resolve=function(){},ra.prototype.reject=function(){},ro.prototype.abort=function(){return this.g||(this.g=this.i()),this.g},ro.prototype.finally=function(e){return this.promise.then(function(){return e(!0)},function(){return e(!1)}),this},ro.prototype.cb=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 ra;a.catch(function(){});var o=new eU(2,7,7001);return this.promise.then(n(!0),n(!1)),new ro(a,function(){return i()})},m.Object.defineProperties(ro.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return null!==this.g}}}),$("shaka.util.AbortableOperation",ro),ro.prototype.chain=ro.prototype.cb,ro.prototype.finally=ro.prototype.finally,ro.all=rd,ro.prototype.abort=ro.prototype.abort,ro.notAbortable=rc,ro.completed=rl,ro.aborted=ru,ro.failed=rs,rh.prototype.destroy=function(){for(var e=[],t=E(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)},S(rf,ec),(p=rf.prototype).configure=function(e){this.i=e},p.Zl=function(e){this.g.add(e)},p.zm=function(e){this.g.delete(e)},p.tk=function(){this.g.clear()},p.$l=function(e){this.h.add(e)},p.Am=function(e){this.h.delete(e)},p.vk=function(){this.h.clear()},p.Qi=function(){this.l.clear()},p.destroy=function(){return this.j=!0,this.g.clear(),this.h.clear(),this.l.clear(),ec.prototype.release.call(this),this.A.destroy()},p.request=function(e,t,n){var i=this,r=new rb;if(this.j){var a=Promise.reject(new eU(2,7,7001));return a.catch(function(){}),new rT(a,function(){return Promise.resolve()},r)}t.method=t.method||"GET",t.headers=t.headers||{},t.retryParameters=t.retryParameters?t7(t.retryParameters):rr(),t.uris=t7(t.uris);var o=(a=function(e,t,n,i){function r(e){a=a.cb(function(){return n.body&&(n.body=eP(n.body)),e(t,n,i)})}var a=rl(void 0);e.F&&r(e.F),e=E(e.g);for(var o=e.next();!o.done;o=e.next())r(o.value);return a.cb(void 0,function(e){if(e instanceof eU&&7001==e.code)throw e;throw new eU(2,1,1006,e)})}(this,e,t,n)).cb(function(){return function e(t,n,i,r,a,o,s,u){t.i.forceHTTP&&(i.uris[o]=i.uris[o].replace("https://","http://")),t.i.forceHTTPS&&(i.uris[o]=i.uris[o].replace("http://","https://")),o>0&&t.H&&t.H(n,r,i.uris[o],i.uris[o-1]);var l=new eg(i.uris[o]),c=l.nc,d=!1;c||(em(l,c=(c=location.protocol).slice(0,-1)),i.uris[o]=l.toString()),c=c.toLowerCase();var h=(c=rA.get(c))?c.Yf:null;if(!h)return rs(new eU(2,1,1e3,l));var p=c.Wl;(l=t.l.get(l.Jb))&&(i.headers["common-access-token"]=l);var f,g=null,m=null,v=!1,y=!1;return rc(ri(a)).cb(function(){if(t.j)return ru();f=Date.now();var e=0;i.requestStartTime=Date.now();var a=h(i.uris[o],i,n,function(a,o,s){g&&g.stop(),m&&m.Y(l/1e3),t.u&&n==rw&&(i.packetNumber=++e,t.u(a,o,ry(r),i,r),d=!0,u.g=s)},function(e){y=!0,i.timeToFirstByte=Date.now()-i.requestStartTime,t.m&&t.m(e,i,n)},{minBytesForProgressEvents:t.i.minBytesForProgressEvents});if(!p)return a;var s=i.retryParameters.connectionTimeout;s&&(g=new iA(function(){v=!0,a.abort()})).Y(s/1e3);var l=i.retryParameters.stallTimeout;return l&&(m=new iA(function(){v=!0,a.abort()})),a}).cb(function(e){g&&g.stop(),m&&m.stop(),void 0==e.timeMs&&(e.timeMs=Date.now()-f);var r=e.headers["common-access-token"];if(r){var a=new eg(e.uri);t.l.set(a.Jb,r)}return r={response:e,Al:d},!y&&t.m&&t.m(e.headers,i,n),t.C&&t.C(i,e),r},function(l){if(g&&g.stop(),m&&m.stop(),t.D){var c=null,d=0;l instanceof eU&&(c=l,1001==l.code&&(d=l.data[1])),t.D(i,c,d,v)}if(t.j)return ru();
1if(v&&(l=new eU(1,1,1003,i.uris[o],n)),l instanceof eU){if(7001==l.code)throw l;if(1010==l.code)throw s;if(1==l.severity){if((c=new ee("retry",c=(new Map).set("error",l))).cancelable=!0,t.dispatchEvent(c),c.defaultPrevented)throw l;return o=(o+1)%i.uris.length,e(t,n,i,r,a,o,l,u)}}throw l})}(i,e,t,n,new rn(t.retryParameters,!1),0,null,r)}),s=o.cb(function(t){var r=i,a=e,o=t,s=n,u=rl(void 0);r=E(r.h);for(var l=r.next(),c={};!l.done;c={Fj:void 0},l=r.next())c.Fj=l.value,u=u.cb(function(e){return function(){var t=o.response;return t.data&&(t.data=eP(t.data)),(0,e.Fj)(a,t,s)}}(c));return u.cb(function(){return o},function(e){var t=2;if(e instanceof eU){if(7001==e.code)throw e;t=e.severity}throw new eU(t,1,1007,e)})}),u=Date.now(),l=0;a.promise.then(function(){l=Date.now()-u},function(){});var c=0;o.promise.then(function(){c=Date.now()},function(){});var d=s.cb(function(r){var a=Date.now()-c,o=r.response;return o.timeMs+=l,o.timeMs+=a,r.Al||!i.u||o.fromCache||"HEAD"==t.method||e!=rw||i.u(o.timeMs,o.data.byteLength,ry(n),t,n),i.G&&i.G(e,o,n),o},function(e){throw e&&(e.severity=2),e});return a=new rT(d.promise,function(){return d.abort()},r),rp(this.A,a),a},$("shaka.net.NetworkingEngine",rf),rf.prototype.request=rf.prototype.request,rf.prototype.destroy=rf.prototype.destroy,rf.makeRequest=rv,rf.defaultRetryParameters=function(){return rr()},rf.prototype.clearCommonAccessTokenMap=rf.prototype.Qi,rf.prototype.clearAllResponseFilters=rf.prototype.vk,rf.prototype.unregisterResponseFilter=rf.prototype.Am,rf.prototype.registerResponseFilter=rf.prototype.$l,rf.prototype.clearAllRequestFilters=rf.prototype.tk,rf.prototype.unregisterRequestFilter=rf.prototype.zm,rf.prototype.registerRequestFilter=rf.prototype.Zl,rf.unregisterScheme=function(e){rA.delete(e)},rf.registerScheme=rg,rf.prototype.configure=rf.prototype.configure,rf.NumBytesRemainingClass=rb,S(rT,ro),rf.PendingRequest=rT;var rw=1;rf.RequestType={MANIFEST:0,SEGMENT:1,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8,CMCD:9},rf.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5,MPD_PATCH:6,MEDIATAILOR_SESSION_INFO:7,MEDIATAILOR_TRACKING_INFO:8,MEDIATAILOR_STATIC_RESOURCE:9,MEDIATAILOR_TRACKING_EVENT:10,INTERSTITIAL_ASSET_LIST:11,INTERSTITIAL_AD_URL:12};var rS=3;rf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:3};var rA=new Map;function rE(e){this.g=!1,this.h=new ra,this.i=e}function rx(e,t){if(e.g){if(t instanceof eU&&7003==t.code)throw t;throw new eU(2,7,7003,t)}}function rk(e){for(var t=new Map,n=E(Object.keys(e)),i=n.next();!i.done;i=n.next())i=i.value,t.set(i,e[i]);return t}function rI(e){var t={};return e.forEach(function(e,n){t[n]=e}),t}function rC(e,t){this.h=eO(e),this.i=t==rL,this.g=0}function rM(){return new eU(2,3,3e3)}rE.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()}))},(p=rC.prototype).Qa=function(){return this.g<this.h.byteLength},p.Wa=function(){return this.g},p.getLength=function(){return this.h.byteLength},p.ba=function(){try{var e=this.h.getUint8(this.g);return this.g+=1,e}catch(e){throw rM()}},p.Ia=function(){try{var e=this.h.getUint16(this.g,this.i);return this.g+=2,e}catch(e){throw rM()}},p.$=function(){try{var e=this.h.getUint32(this.g,this.i);return this.g+=4,e}catch(e){throw rM()}},p.Vh=function(){try{var e=this.h.getInt32(this.g,this.i);return this.g+=4,e}catch(e){throw rM()}},p.Ud=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 rM()}if(t>2097151)throw new eU(2,3,3001);return this.g+=8,0x100000000*t+e},p.cc=function(e,t){if(this.g+e>this.h.byteLength)throw rM();var n=eD(this.h,this.g,e);return this.g+=e,t?new Uint8Array(n):n},p.skip=function(e){if(this.g+e>this.h.byteLength)throw rM();this.g+=e},p.Gj=function(e){if(this.g<e)throw rM();this.g-=e},p.seek=function(e){if(e<0||e>this.h.byteLength)throw rM();this.g=e},p.pd=function(){for(var e=this.g;this.Qa()&&0!=this.h.getUint8(this.g);)this.g+=1;return e=eD(this.h,e,this.g-e),this.g+=1,ez(e)},$("shaka.util.DataViewReader",rC),rC.prototype.readTerminatedString=rC.prototype.pd,rC.prototype.seek=rC.prototype.seek,rC.prototype.rewind=rC.prototype.Gj,rC.prototype.skip=rC.prototype.skip,rC.prototype.readBytes=rC.prototype.cc,rC.prototype.readUint64=rC.prototype.Ud,rC.prototype.readInt32=rC.prototype.Vh,rC.prototype.readUint32=rC.prototype.$,rC.prototype.readUint16=rC.prototype.Ia,rC.prototype.readUint8=rC.prototype.ba,rC.prototype.getLength=rC.prototype.getLength,rC.prototype.getPosition=rC.prototype.Wa,rC.prototype.hasMoreData=rC.prototype.Qa;var rL=1;function rR(){this.i=new Map,this.h=new Map,this.g=!1}function rP(e){for(var t=rj(e);e.reader.Qa()&&!e.parser.g;)e.parser.Rd(e.start+t,e.reader,e.partialOkay,e.stopOnPartial)}function rD(e){for(var t=rj(e),n=e.reader.$(),i=0;i<n&&(e.parser.Rd(e.start+t,e.reader,e.partialOkay,e.stopOnPartial),!e.parser.g);i++);}function rN(e){var t=rj(e);for(e.reader.skip(78);e.reader.Qa()&&!e.parser.g;)e.parser.Rd(e.start+t,e.reader,e.partialOkay,e.stopOnPartial)}function rO(e){var t=rj(e);e.reader.skip(8);var n=e.reader.Ia();for(e.reader.skip(6),2==n?e.reader.skip(48):e.reader.skip(12),1==n&&e.reader.skip(16);e.reader.Qa()&&!e.parser.g;)e.parser.Rd(e.start+t,e.reader,e.partialOkay,e.stopOnPartial)}function r_(e,t){return function(n){e(n.reader.cc(n.reader.getLength()-n.reader.Wa(),t))}}function rU(e){var t=0;e=E(e);for(var n=e.next();!n.done;n=e.next())t=t<<8|n.value.charCodeAt(0);return t}function rq(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function rj(e){return 8+8*!!e.has64BitSize+4*(null!=e.flags)}rC.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:1},(p=rR.prototype).box=function(e,t){return e=rU(e),this.i.set(e,rB),this.h.set(e,t),this},p.X=function(e,t){return e=rU(e),this.i.set(e,rF),this.h.set(e,t),this},p.stop=function(){this.g=!0},p.parse=function(e,t,n){for(e=new rC(e,0),this.g=!1;e.Qa()&&!this.g;)this.Rd(0,e,t,n)},p.Rd=function(e,t,n,i){var r=t.Wa();if(i&&r+8>t.getLength())this.g=!0;else{var a=t.$(),o=t.$(),s=rq(o),u=!1;switch(a){case 0:a=t.getLength()-r;break;case 1:if(i&&t.Wa()+8>t.getLength()){this.g=!0;return}a=t.Ud(),u=!0}var l=this.h.get(o);if(l){var c=null,d=null;if(this.i.get(o)==rF){if(i&&t.Wa()+4>t.getLength()){this.g=!0;return}c=(d=t.$())>>>24,d&=0xffffff}o=r+a,n&&o>t.getLength()&&(o=t.getLength()),i&&o>t.getLength()?this.g=!0:(o-=t.Wa(),l({name:s,parser:this,partialOkay:n||!1,stopOnPartial:i||!1,version:c,flags:d,reader:t=new rC(t=o>0?t.cc(o,!1):new Uint8Array(0),0),size:a,start:r+e,has64BitSize:u}))}else t.skip(Math.min(r+a-t.Wa(),t.getLength()-t.Wa()))}}
1,$("shaka.util.Mp4Parser",rR),rR.headerSize=rj,rR.typeToString=rq,rR.allData=r_,rR.audioSampleEntry=rO,rR.visualSampleEntry=rN,rR.sampleDescription=rD,rR.children=rP,rR.prototype.parseNext=rR.prototype.Rd,rR.prototype.parse=rR.prototype.parse,rR.prototype.stop=rR.prototype.stop,rR.prototype.fullBox=rR.prototype.X,rR.prototype.box=rR.prototype.box;var rB=0,rF=1;function rV(e){var t=this;this.g=[],this.h=[],this.data=[],(new rR).box("moov",rP).box("moof",rP).X("pssh",function(e){if(!(e.version>1)){var n=eD(e.reader.h,-12,e.size);if(t.data.push(n),n=e.reader.cc(16,!1),t.g.push(e3(n)),e.version>0){n=e.reader.$();for(var i=0;i<n;i++){var r=e.reader.cc(16,!1);r=e3(r),t.h.push(r)}}}}).parse(e)}function rG(e,t,n,i){var r=e.length,a=12+t.length+4+r;i>0&&(a+=4+16*n.size);var o=new Uint8Array(a),s=eO(o),u=0;if(s.setUint32(u,a),u+=4,s.setUint32(u,0x70737368),u+=4,i<1?s.setUint32(u,0):s.setUint32(u,0x1000000),u+=4,o.set(t,u),u+=t.length,i>0)for(s.setUint32(u,n.size),u+=4,n=(t=E(n)).next();!n.done;n=t.next())n=e5(n.value),o.set(n,u),u+=n.length;return s.setUint32(u,r),o.set(e,u+4),o}function rH(e){var t=this;this.F=e,this.j=this.C=null,this.ea=this.R=!1,this.J=0,this.g=null,this.u=new tI,this.i=new Map,this.V=[],this.D=new Map,this.K=!1,this.m=new ra,this.h=null,this.A=function(n){2==n.severity&&t.m.reject(n),e.onError(n)},this.Z=new Map,this.aa=new Map,this.L=new iA(function(){var e,n,i;return n=(e=t).Z,void((i=e.aa).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.A(new eU(2,6,6014)),e.F.Vf(rI(i)))}),this.P=!1,this.M=[],this.W=!1,this.G=new iA(function(){var e;(e=t).i.forEach(function(t,n){var i=t.Qh,r=n.expiration;isNaN(r)&&(r=1/0),r!=i&&(e.F.onExpirationUpdated(n.sessionId,r),t.Qh=r)})}),this.m.catch(function(){}),this.l=new rE(function(){var e;return e=t,F(function(t){switch(t.g){case 1:return e.u.release(),e.u=null,e.m.reject(),e.G.stop(),e.G=null,e.L.stop(),e.L=null,M(t,r3(e),2);case 2:if(!e.j){t.B(3);break}return R(t,4),M(t,e.j.setMediaKeys(null),6);case 6:D(t,5);break;case 4:N(t);case 5:e.j=null;case 3:e.g=null,e.C=null,e.D=new Map,e.h=null,e.A=function(){},e.F=null,e.O=!1,e.I=null,L(t)}})}),this.O=!1,this.H=this.I=null,this.T=function(){return!1}}function rz(e,t,n,i){i=void 0===i||i,e.D=new Map,n=E(n);for(var r=n.next();!r.done;r=n.next())e.D.set(r.value,{initData:null,initDataType:null});for(r=(n=E(e.h.persistentSessionsMetadata)).next();!r.done;r=n.next())r=r.value,e.D.set(r.sessionId,{initData:r.initData,initDataType:r.initDataType});return e.P=e.D.size>0,rK(e,t,i)}function rK(t,n,i){var r,a,o,s,u,l,c,d,h,p,f,g,m,v,y;return F(function(b){if(1==b.g){for(r6(t.h.clearKeys,n),r=n.some(function(e){return!!e.video&&!!e.video.drmInfos.length||!!e.audio&&!!e.audio.drmInfos.length}),a=rk(t.h.servers),o=rk(t.h.advanced||{}),!r&&i&&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=E(e)).next();!t.done;t=e.next())(t=t.value).video&&(t.video.drmInfos=n),t.audio&&(t.audio.drmInfos=n)}(n,a),s=new WeakSet,l=(u=E(n)).next();!l.done;l=u.next())for(d=(c=E(r4(l.value))).next();!d.done;d=c.next())h=d.value,s.has(h)||(s.add(h),function(t,n,i,r){var a=t.keySystem;a&&("org.w3.clearkey"!=a||!t.licenseServerUri)&&(n.size&&n.get(a)&&(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.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"))}(h,a,o,t.h.keySystemsMapping));for(p=function(e,n){var i=[];e=E(e);for(var r=e.next();!r.done;r=e.next()){var a,s=(r=r.value)[n]||o.has(r.keySystem)&&o.get(r.keySystem)[n]||"";if((a=""==s)&&(a=!!(a=r.keySystem)&&!!a.match(/^com\.widevine\.alpha
1/)),a&&("audioRobustness"==n?s=[t.h.defaultAudioRobustnessForWidevine]:"videoRobustness"==n&&(s=[t.h.defaultVideoRobustnessForWidevine])),"string"==typeof s)i.push(r);else if(Array.isArray(s))for(0===s.length&&(s=[""]),a=(s=E(s)).next();!a.done;a=s.next()){var u={};i.push(Object.assign({},r,(u[n]=a.value,u)))}}return i},f=new WeakSet,m=(g=E(n)).next();!m.done;m=g.next())(v=m.value).video&&!f.has(v.video)&&(v.video.drmInfos=p(v.video.drmInfos,"videoRobustness"),v.video.drmInfos=p(v.video.drmInfos,"audioRobustness"),f.add(v.video)),v.audio&&!f.has(v.audio)&&(v.audio.drmInfos=p(v.audio.drmInfos,"videoRobustness"),v.audio.drmInfos=p(v.audio.drmInfos,"audioRobustness"),f.add(v.audio));return M(b,iD(n,t.P,t.O,t.h.preferredKeySystems),2)}return(rx(t.l),r||a.size>0)?(y=rJ(t,n),b.return(r?y:y.catch(function(){}))):(t.R=!0,b.return(Promise.resolve()))})}function rW(e){var t;return F(function(n){switch(n.g){case 1:if(e.j.mediaKeys)return n.return();if(!e.I){n.B(2);break}return M(n,e.I,3);case 3:return rx(e.l),n.return();case 2:return R(n,4),e.I=e.j.setMediaKeys(e.C),M(n,e.I,6);case 6:D(n,5);break;case 4:t=N(n),e.A(new eU(2,6,6003,t.message));case 5:rx(e.l),L(n)}})}function rX(e){var t,n,i;return F(function(r){if(1==r.g)return e.D.size?(e.D.forEach(function(t,n){r0(e,n,t)}),M(r,e.m,3)):r.B(2);if(2!=r.g){if((e.g&&e.g.keyIds||new Set([])).size>0&&function(e){for(var t=E(e.g&&e.g.keyIds||new Set([])),n=t.next();!n.done;n=t.next())if("usable"!==e.Z.get(n.value))return!1;return!0}(e))return r.return(e.m);e.K=!1,e.m=new ra,e.m.catch(function(){})}for(n=(t=E((e.g?e.g.initData:[])||[])).next();!n.done;n=t.next())rY(e,(i=n.value).initDataType,i.initData);return r8(e)&&e.m.resolve(),r.return(e.m)})}function rY(e,t,n){if(n.length){if(e.h.ignoreDuplicateInitData){var i=e.i.values();i=E(i);for(var r=i.next();!r.done;r=i.next())if(eR(n,r.value.initData))return;var a=!1;if(e.D.forEach(function(e){!a&&eR(n,e.initData)&&(a=!0)}),a)return}e.K=!0,e.i.size>0&&r8(e)&&(e.m.resolve(),e.K=!1,e.m=new ra,e.m.catch(function(){})),function(e,t,n,i){try{var r=e.C.createSession(i)}catch(t){e.A(new eU(2,6,6005,t.message));return}e.u.o(r,"message",function(t){e.j&&e.h.delayLicenseRequestUntilPlayed&&e.j.paused&&!e.W?e.M.push(t):r1(e,t)}),e.u.o(r,"keystatuseschange",function(t){return r2(e,t)}),e.i.set(r,{initData:n,initDataType:t,loaded:!1,Qh:1/0,Rb:null,type:i});try{n=e.h.initDataTransform(n,t,e.g)}catch(n){t=n,n instanceof eU||(t=new eU(2,6,6016,n)),e.A(t);return}e.h.logLicenseExchange&&e1(n),r.generateRequest(t,n).catch(function(t){if(!e.l.g){e.i.delete(r);var n=t.errorCode;if(n&&n.systemCode){var i=n.systemCode;i<0&&(i+=0x100000000),i="0x"+i.toString(16)}e.A(new eU(2,6,6006,t.message,t,i))}})}(e,t,n,e.g.sessionType)}}function rZ(e){return Array.from(e=ed(e=e.i.keys(),function(e){return e.sessionId}))}function rJ(t,n){var i,r,a,o,s,u;return F(function(l){switch(l.g){case 1:if(!(r=function(e,t,n){for(var i=E(t),r=i.next();!r.done;r=i.next()){r=E(r4(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 eU(2,6,6e3);(i=e.h.preferredKeySystems).length||1==(r=rk(e.h.servers)).size&&(i=Array.from(r.keys()));var o=(r=E(i)).next();for(a={};!o.done;a={Aj:void 0},o=r.next()){a.Aj=o.value,o=E(t);for(var s=o.next();!s.done;s=o.next())if(s=s.value.decodingInfos.find(function(e){return function(t){return t.supported&&null!=t.keySystemAccess&&t.keySystemAccess.keySystem==e.Aj}}(a)))return s.keySystemAccess}for(a=(r=E([!0,!1])).next();!a.done;a=r.next())for(a=a.value,s=(o=E(t)).next();!s.done;s=o.next()){s=E(s.value.decodingInfos);for(var u=s.next();!u.done;u=s.next())if((u=u.value).supported&&u.keySystemAccess){var l=u.keySystemAccess.keySystem;if(!i.includes(l)){var c=n.get(l);for(!c&&e.h.keySystemsMapping[l]&&(c=n.get(e.h.keySystemsMapping[l])),c=(l=E(c)).next();!c.done;c=l.next())if(!!c.value.licenseServerUri==a)return u.keySystemAccess}}}return null}(t,n,i=new Map))){if(!navigator.requestMediaKeySystemAccess)throw new eU(2,6,6020);throw new eU(2,6,6001)}rx(t.l),R(l,2),r.getConfiguration();var c,d,h,p=a=t.h.keySystemsMapping[r.keySystem]||r.keySystem,f=i.get(a),g=[],m=[],v=[],y=[],b=[],T=new Set,w=new Set;!function(t,n,i,r,a,o,s,u){var l=[];t=E(t);for(var c=t.next(),d={};!c.done;d={Ta:void 0}
1,c=t.next()){if(d.Ta=c.value,n.includes(d.Ta.encryptionScheme)||n.push(d.Ta.encryptionScheme),"org.w3.clearkey"==d.Ta.keySystem&&d.Ta.licenseServerUri.startsWith("data:application/json;base64,")?l.includes(d.Ta.licenseServerUri)||l.push(d.Ta.licenseServerUri):i.includes(d.Ta.licenseServerUri)||i.push(d.Ta.licenseServerUri),a.includes(d.Ta.serverCertificateUri)||a.push(d.Ta.serverCertificateUri),d.Ta.serverCertificate&&(r.some(function(e){return function(t){return eR(t,e.Ta.serverCertificate)}}(d))||r.push(d.Ta.serverCertificate)),d.Ta.initData){c=E(d.Ta.initData);for(var h=c.next(),p={};!h.done;p={Gh:void 0},h=c.next())p.Gh=h.value,o.some(function(e){return function(t){var n=e.Gh;return!!t.keyId&&t.keyId==n.keyId||t.initDataType==n.initDataType&&eR(t.initData,n.initData)}}(p))||o.push(p.Gh)}if(d.Ta.keyIds)for(h=(c=E(d.Ta.keyIds)).next();!h.done;h=c.next())s.add(h.value);if(d.Ta.keySystemUris&&u)for(c=(d=E(d.Ta.keySystemUris)).next();!c.done;c=d.next())u.add(c.value)}if(1==l.length)i.push(l[0]);else if(l.length>0){for(n=[],r=(l=E(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,x(r.keys));l=JSON.stringify({keys:n}),i.push("data:application/json;base64,"+e.btoa(l))}}(f,g,m,y,v,b,T,w);var S=t.P?"persistent-license":"temporary";for(p={keySystem:p,encryptionScheme:g[0],licenseServerUri:m[0],distinctiveIdentifierRequired:f[0].distinctiveIdentifierRequired,persistentStateRequired:f[0].persistentStateRequired,sessionType:f[0].sessionType||S,audioRobustness:f[0].audioRobustness||"",videoRobustness:f[0].videoRobustness||"",serverCertificate:y[0],serverCertificateUri:v[0],initData:b,keyIds:T},w.size>0&&(p.keySystemUris=w),w=(f=E(f)).next();!w.done;w=f.next())(w=w.value).distinctiveIdentifierRequired&&(p.distinctiveIdentifierRequired=w.distinctiveIdentifierRequired),w.persistentStateRequired&&(p.persistentStateRequired=w.persistentStateRequired);if(t.g=p,!t.g.licenseServerUri)throw new eU(2,6,6012,t.g.keySystem);return M(l,r.createMediaKeys(),4);case 4:if(o=l.h,rx(t.l),t.C=o,!(""!=t.h.minHdcpVersion&&"getStatusForPolicy"in t.C)){l.B(5);break}return R(l,6),M(l,t.C.getStatusForPolicy({minHdcpVersion:t.h.minHdcpVersion}),8);case 8:if("usable"!=l.h)throw new eU(2,6,6018);rx(t.l),D(l,5,2);break;case 6:if((s=N(l,2))instanceof eU)throw s;throw new eU(2,6,6019,s.message);case 5:return t.R=!0,t.G.xa(t.h.updateExpirationTime),M(l,(c=t,F(function(e){switch(e.g){case 1:if(!c.C||!c.g)return e.return();if(!c.g.serverCertificateUri||c.g.serverCertificate&&c.g.serverCertificate.length){e.B(2);break}return d=rv([c.g.serverCertificateUri],c.h.retryParameters),R(e,3),M(e,c.F.Gc.request(5,d,{isPreload:c.T()}).promise,5);case 5:h=e.h,c.g.serverCertificate=eD(h.data),D(e,4);break;case 3:throw new eU(2,6,6017,N(e));case 4:if(c.l.g)return e.return();case 2:if(!c.g.serverCertificate||!c.g.serverCertificate.length)return e.return();return R(e,6),M(e,c.C.setServerCertificate(c.g.serverCertificate),8);case 8:D(e,0);break;case 6:throw new eU(2,6,6004,N(e).message)}})),9);case 9:rx(t.l),D(l,0);break;case 2:if(u=N(l),rx(t.l,u),t.g=null,u instanceof eU)throw u;throw new eU(2,6,6002,u.message)}})}function rQ(e){r8(e)&&e.m.resolve()}function r$(e,t){new iA(function(){t.loaded=!0,rQ(e)}).Y(r9)}function r0(e,t,n){var i,r,a,o,s,u,l;return F(function(c){switch(c.g){case 1:try{i=e.C.createSession("persistent-license")}catch(t){return r=new eU(2,6,6005,t.message),e.A(r),c.return(Promise.reject(r))}return e.u.o(i,"message",function(t){e.j&&e.h.delayLicenseRequestUntilPlayed&&e.j.paused&&!e.W?e.M.push(t):r1(e,t)}),e.u.o(i,"keystatuseschange",function(t){return r2(e,t)}),a={initData:n.initData,initDataType:n.initDataType,loaded:!1,Qh:1/0,Rb:null,type:"persistent-license"},e.i.set(i,a),R(c,2),M(c,i.load(t),4);case 4:return o=c.h,rx(e.l),o||(e.i.delete(i),s=e.h.persistentSessionOnlinePlayback?1:2,e.A(new eU(s,6,6013)),a.loaded=!0),r$(e,a),rQ(e),c.return(i);case 2:u=N(c),rx(e.l,u),e.i.delete(i),l=e.h.persistentSessionOnlinePlayback?1:2,e.A(new eU(l,6,6005,u.message)),a.loaded=!0,rQ(e);case 3:return c.return(Promise.resolve())}})}function r1(e,t){var n,i,r,a,o,s,u,l,c,d,h,p,f,g;F(function(m){switch(m.g){case 1:if(n=t.target,e.h.logLicenseExchange&&e1(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=rv([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("org.w3.clearkey"===e.g.keySystem){var v=o,y=e.g;try{var b=eW(v.body);if(b){var T=JSON.parse(b);T.type||(T.type=y.sessionType,v.body=eX(JSON.stringify(T)))}}catch(e){}}if(i6(e.g.keySystem))if((v=eK(o.body,!0,!0)).includes("PlayReadyKeyMessage")){for(b=(y=E(y=nl(v=nn(v,"PlayReadyKeyMessage"),"HttpHeader"))).next();!b.done;b=y.next())b=nl(T=b.value,"name")[0],T=nl(T,"value")[0],o.headers[ns(b)]=ns(T);o.body=e2(ns(v=nl(v,"Challenge")[0]))}else o.headers["Content-Type"]="text/xml; charset=utf-8";return u=Date.now(),R(m,2),c=e.F.Gc.request(2,o,{isPreload:e.T()}),e.V.push(c),M(m,c.promise,4);case 4:l=m.h,tE(e.V,c),D(m,3);break;case 2:if(d=N(m),e.l.g)return m.return();return h=new eU(2,6,6007,d,{sessionId:n.sessionId,sessionType:i.type,initData:i.initData,initDataType:i.initDataType}),1==e.i.size?(e.A(h),i&&i.Rb&&i.Rb.reject(h)):(i&&i.Rb&&i.Rb.reject(h),e.i.delete(n),r8(e)&&(e.m.resolve(),e.L.Y(.1))),m.return();case 3:if(e.l.g)return m.return();return e.J+=(Date.now()-u)/1e3,e.h.logLicenseExchange&&e1(l.data),R(m,5),M(m,n.update(l.data),7);case 7:D(m,6);break;case 5:return f=new eU(2,6,6008,(p=N(m))&&p.message||String(p)),e.A(f),i&&i.Rb&&i.Rb.reject(f),m.return();case 6:if(e.l.g)return m.return();g=new ee("drmsessionupdate"),e.F.onEvent(g),i&&(i.Rb&&i.Rb.resolve(),r$(e,i
1)),L(m)}})}function r2(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(a=eB(),i6(e.g.keySystem)&&16==r.byteLength&&a.fg()){var o=(a=eO(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=e3(r).slice(0,32),e.Z.set(r,t)});var r=t.expiration-Date.now();(r<0||i&&r<1e3)&&n&&!n.Rb&&(e.i.delete(t),r5(t)),r8(e)&&(e.m.resolve(),e.L.Y(ae))}function r5(e){return F(function(t){return 1==t.g?(R(t,2),M(t,iI(r7,Promise.all([e.close().catch(function(){}),e.closed])),4)):2!=t.g?D(t,0):void(N(t),L(t))})}function r3(e){var t;return F(function(n){return t=Array.from(e.i.entries()),e.i.clear(),M(n,Promise.all(t.map(function(t){var n=(t=E(t)).next().value,i=t.next().value;return F(function(t){return 1==t.g?(R(t,2),e.ea||e.D.has(n.sessionId)||"persistent-license"!==i.type||e.h.persistentSessionOnlinePlayback?M(t,r5(n),5):M(t,n.remove(),5)):2!=t.g?D(t,0):void(N(t),L(t))})})),0)})}function r4(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])}function r8(e){var t,n=e=e.i.values();n=E(n);for(var i=n.next();!i.done;i=n.next()){if(!(t=i.value).loaded)return!1}return!0}function r6(e,t){if(0!=(e=rk(e)).size){e=e7(e),t=E(t);for(var n=t.next();!n.done;n=t.next())(n=n.value).video&&(n.video.drmInfos=[e]),n.audio&&(n.audio.drmInfos=[e])}}(p=rH.prototype).destroy=function(){return this.l.destroy()},p.configure=function(e,t){this.h=e,t&&(this.T=t),this.G&&this.R&&this.g&&this.G.xa(this.h.updateExpirationTime)},p.Vb=function(e){var t,n,i=this;return F(function(r){if(1==r.g)return i.j===e?r.return():i.C?(i.j=e,i.h.delayLicenseRequestUntilPlayed&&i.u.qa(i.j,"play",function(){for(var e=E(i.M),t=e.next();!t.done;t=e.next())r1(i,t.value);i.W=!0,i.M=[]}),i.j.remote?(i.u.o(i.j.remote,"connect",function(){return r3(i)}),i.u.o(i.j.remote,"connecting",function(){return r3(i)}),i.u.o(i.j.remote,"disconnect",function(){return r3(i)})):"webkitCurrentPlaybackTargetIsWireless"in i.j&&i.u.o(i.j,"webkitcurrentplaybacktargetiswirelesschanged",function(){return r3(i)}),i.H=i.g&&i.g.initData.find(function(e){return e.initData.length>0})||null,t=i.g.keySystem,(n=eB().Nh(t))||!i.H&&"com.apple.fps"===i.g.keySystem&&!i.D.size?r.B(2):M(r,rW(i),2)):(i.u.qa(e,"encrypted",function(){i.A(new eU(2,6,6010))}),r.return());rX(i).catch(function(){}),!n&&(i.H||i.D.size||i.h.parseInbandPsshEnabled)||i.u.o(i.j,"encrypted",function(e){var t,n;return t=i,n=e,F(function(e){if(1==e.g)return M(e,rW(t),2);rY(t,n.initDataType,eD(n.initData)),L(e)})}),L(r)})},p.rh=function(){var e=this,t=this.i.keys();return Array.from(t=ed(t,function(t){var n=e.i.get(t);return{sessionId:t.sessionId,sessionType:n.type,initData:n.initData,initDataType:n.initDataType}}))},p.re=function(){var e=1/0,t=this.i.keys();t=E(t);for(var n=t.next();!n.done;n=t.next())isNaN((n=n.value).expiration)||(e=Math.min(e,n.expiration));return e},p.wf=function(){return rI(this.aa)};var r7=1,r9=5,ae=.5;function at(){this.g=ar,this.i=(new Map).set(ar,2).set(ai,1),this.h=0}function an(e,t){var n=e.g!==t;return e.g=t,n&&t===ar&&(e.h=Date.now()),n}var ai=0,ar=1;function aa(e,t,n){this.g=e,this.i=t,this.h=n}function ao(e,t){return F(function(n){if(1==n.g){var i,r,a,o;return M(n,(i=e.h,r=t,a=e.g.drm.preferredKeySystems,o=e.g.drm.keySystemsMapping,a=void 0===a?[]:a,o=void 0===o?{}:o,F(function(e){var t,n,s,u,l,c,d,h,p;return 1==e.g?M(e,iR(i,r,r.offlineSessionIds.length>0,a,o),2):((t=r).textStreams=t.textStreams.filter(function(e){return iy(e=ii(e.mimeType,e.codecs))}),M(e,(n=r,F(function(e){switch(e.g){case 1:s=[],l=(u=E(n.imageStreams)).next();case 2:var t;if(l.done){e.B(4);break}if("application/mp4"==(d=(c=l.value).mimeType)&&"mjpg"==c.codecs&&(d="image/jpg"),i$.has(d)){e.B(5);break}if(!(h=i0.get(d))){i$.set(d,!1),e.B(5);break}return M(e,(t=h,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:p=e.h,i$.set(d,p);case 5:i$.get(d)&&s.push(c),l=u.next(),e.B(2);break;case 4:n.imageStreams=s,L(e)}})),0))})),2)}if(e.g.streaming.dontChooseCodecs||iM(t,e.g.preferredVideoCodecs,e.g.preferredAudioCodecs,e.g.preferredDecodingAttributes,e.g.preferredTextFormats),!t.variants.some(iG))throw new eU(2,4,4032);return n.return(au(e,t))})}function as(e,t){var n=e.g.restrictions;e=e.i;var i=!1;t=E(t.variants);for(var r=t.next();!r.done;r=t.next()){var a=(r=r.value).allowedByApplication;r.allowedByApplication=iL(r,n,e),a!=r.allowedByApplication&&(i=!0)}return i}function au(e,t){var n=as(e,t);if(t){var i=e.h?e.h.g:null;if(i&&e.h.C){for(var r=new Set,a=E(t.variants),o=a.next();!o.done;o=a.next())(o=o.value).audio&&r.add(o.audio),o.video&&r.add(o.video);for(a=(r=E(r)).next();!a.done;a=r.next())al(e,i.keySystem,a.value)}ac(e,t)}return n}function al(e,t,n){n=E(n.drmInfos);for(var i=n.next();!i.done;i=n.next())if((i=i.value).keySystem==t){i=E(i.initData||[]);for(var r=i.next();!r.done;r=i.next())r=r.value,rY(e.h,r.initDataType,r.initData)}}function ac(e,t){function n(e){if(e&&!s.has(e)&&(s.add(e),e.keyIds.size)){e=E(e.keyIds);for(var t=e.next();!t.done;t=e.next()){t=t.value;var n=i[r?"00":t];n?ad.includes(n)&&o.add(n):a.add(t)}}}var i=e.h?e.h.wf():{},r=(e=Object.keys(i)).length&&"00"==e[0];e=!1;var a=new Set,o=new Set,s=new WeakSet;t=E(t.variants);for(var u=t.next();!u.done;u=t.next()){if((u=u.value).allowedByApplication){if(u.allowedByKeySystem)return}else e=!0;n(u.audio),n(u.video)}throw new eU(2,4,4012,e={hasAppRestrictions:e,missingKeys:Array.from(a),restrictedKeyStatuses:Array.from(o)})}var ad=["output-restricted","internal-error"];function ah(t){if(af.has(t))return af.get(t);var n=e.ManagedMediaSource||e.MediaSource;
1return!!n&&(n=n.isTypeSupported(t),af.set(t,n),n)}function ap(){var t=e.ManagedMediaSource||e.MediaSource;return!!t&&!!t.prototype&&!!t.prototype.setLiveSeekableRange&&!!t.prototype.clearLiveSeekableRange}$("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});var af=new Map;function ag(e,t){var n=null,i=null,r=null,a=null,o=e.$();return 1&t&&(r=e.Ud()),2&t&&(a=e.$()),8&t&&(n=e.$()),16&t&&(i=e.$()),{trackId:o,oe:n,pe:i,qk:r,Hj:a}}function am(e,t){return 1==t?{baseMediaDecodeTime:0x100000000*(t=e.$())+(e=e.$())}:{baseMediaDecodeTime:e.$()}}function av(e,t){return 1==t?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),t=e.$(),e.skip(4),{timescale:t,language:String.fromCharCode(((e=e.Ia())>>10)+96)+String.fromCharCode(((960&e)>>5)+96)+String.fromCharCode((31&e)+96)}}function ay(e,t,n){var i=e.$(),r=[],a=null;1&n&&(a=e.Vh()),4&n&&e.skip(4);for(var o=0;o<i;o++){var s={ci:null,sampleSize:null,gg:null};256&n&&(s.ci=e.$()),512&n&&(s.sampleSize=e.$()),1024&n&&e.skip(4),2048&n&&(s.gg=0==t?e.$():e.Vh()),r.push(s)}return{Sn:i,bi:r,Xg:a}}function ab(e){e.skip(6),e.skip(2),e.skip(8);var t=e.Ia();return e.skip(2),e.skip(2),e.skip(2),{channelCount:t,sampleRate:e=e.Ia()+e.Ia()/65536}}function aT(e){return{codec:rq(e=e.$())}}function aw(e,t){return t=void 0!==t&&t,e=e.toString(16).toUpperCase(),t?e:("0"+e).slice(-2)}function aS(e){return(e<10?"0":"")+e}function aA(e){this.g=e}function aE(e){for(var t=[],n=E(e.g),i=n.next();!i.done;i=n.next()){var r=t,a=r.push,o=i.value;i=aD;var s=o.id+1,u=o.stream.width||0,l=o.stream.height||0;"audio"==o.type&&(l=u=0);var c=o.duration*o.timescale,d=Math.floor(c/(aN+1));switch(c=Math.floor(c%(aN+1)),s=aD("tkhd",s=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(aL(s,4)),[0,0,0,0],x(aL(d,4)),x(aL(c,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],x(aL(u,2)),[0,0],x(aL(l,2)),[0,0]))),u=aD,l=Math.floor((d=o.duration*o.timescale)/(aN+1)),d=Math.floor(d%(aN+1)),c=(c=o.stream.language).charCodeAt(0)-96<<10|c.charCodeAt(1)-96<<5|c.charCodeAt(2)-96,l=aD("mdhd",l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(aL(o.timescale,4)),x(aL(l,4)),x(aL(d,4)),x(aL(c,2)),[0,0]))),d=o,c=new Uint8Array([]),d.type){case"video":c=a_.value();break;case"audio":c=aU.value()}d=aD("hdlr",c);e:{switch(o.type){case"video":o=aD("minf",aD("vmhd",aV.value()),aK.value(),ax(o));break e;case"audio":o=aD("minf",aD("smhd",aG.value()),aK.value(),ax(o));break e}o=new Uint8Array([])}i=i("trak",s,o=u("mdia",l,d,o)),a.call(r,i)}for(t=e4.apply(e$,x(t)),a=e.g[0],n=aD,r=Math.floor((i=a.duration*a.timescale)/(aN+1)),i=Math.floor(i%(aN+1)),r=aD("mvhd",r=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(aL(a.timescale,4)),x(aL(r,4)),x(aL(i,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))),i=[],u=(e=E(e.g)).next();!u.done;u=e.next())s=(o=i).push,u=aD("trex",u=new Uint8Array([0,0,0,0].concat(x(aL(u.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]))),s.call(o,u);if(e=aD("mvex",e=e4.apply(e$,x(i))),i=[],a.encrypted){for(o=(a=E(a.stream.drmInfos)).next();!o.done;o=a.next())if((o=o.value).initData)for(s=(o=E(o.initData)).next();!s.done;s=o.next())i.push(s.value.initData);a=e4.apply(e$,x(i))}else a=new Uint8Array([]);return e=n("moov",r,t,e,a),(n=new Uint8Array((t=az.value()).byteLength+e.byteLength)).set(t),n.set(e,t.byteLength),n}function ax(e){var t="aac";e.codecs.includes("mp3")?t="mp3":e.codecs.includes("ac-3")?t=eB().Je()?"ec-3":"ac-3":e.codecs.includes("ec-3")?t="ec-3":e.codecs.includes("opus")&&(t="opus");var n=new Uint8Array([]);switch(e.type){case"video":if(e.codecs.includes("avc1")){if(t=e.stream.width||0,n=e.stream.height||0,e.Ya.byteLength>0)var i=aD("avcC",e.Ya);else{i=aD;for(var r=7,a=[],o=[],s=0,u=0,l=0,c=0;c<e.Hb.length;c++){var d=aR(e.Hb[c]);switch(31&d[0]){case 7:a.push(d),r+=d.length+2;break;case 8:o.push(d),r+=d.length+2}}for(a.length>0&&(s=a[0][1],l=a[0][2],u=a[0][3]),r=new Uint8Array(r),c=0,r[c++]=1,r[c++]=s,r[c++]=l,r[c++]=u,r[c++]=255,r[c++]=224|a.length,s=0;s<a.length;s++)r[c++]=(65280&a[s].length)>>8,r[c++]=255&a[s].length,r.set(a[s],c),c+=a[s].length;for(r[c++]=o.length,a=0;a<o.length;a++)r[c++]=(65280&o[a].length)>>8,r[c++]=255&o[a].length,r.set(o[a],c),c+=o[a].length;i=i("avcC",r)}t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(x(aL(t,2)),x(aL(n,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),n="avc1",o=ak(e),a=new Uint8Array([]),e.encrypted&&(a=aC(e.stream,e.codecs),n="encv"),n=aD(n,t,i,o,a)}else e.codecs.includes("hvc1")&&(n=e.stream.width||0,i=e.stream.height||0,t=new Uint8Array([]),e.Ya.byteLength>0&&(t=aD("hvcC",e.Ya)),n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(x(aL(n,2)),x(aL(i,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),i="hvc1",o=ak(e),a=new Uint8Array([]),e.encrypted&&(a=aC(e.stream,e.codecs),i="encv"),n=aD(i,n,t,o,a));break;case"audio":"mp3"==t?e=aD(".mp3",aI(e)):("ac-3"==t?(t=aD("dac3",e.Ma),n="ac-3"):"ec-3"==t?(t=aD("dec3",e.Ma),n="ec-3"):"opus"==t?(t=aD("dOps",e.Ma),n="Opus"):(e.Ma.byteLength>0?t=aD("esds",e.Ma):(t=aD,n=e.id+1,i=e.stream.channelsCount||2,a=e.stream.audioSamplingRate||44100,s=e9("audio",e.codecs.split(",")),o=(u={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12})[a],("mp4a.40.5"===s||"mp4a.40.29"===s)&&(o=u[2*a]),a=parseInt(s.split(".").pop(),10),t=t("esds",n=new Uint8Array([0,0,0,0,3,25].concat(x(aL(n,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,a<<3|o>>>1,o<<7|i<<3,6,1,2])))),n="mp4a"),i=new Uint8Array([]),e.encrypted&&(i=aC(e.stream,e.codecs),n="enca"),e=aD(n,aI(e),t,i)),n=e}
1return e=aD("stsd",aH.value(),n),aD("stbl",e,aD("stts",aq.value()),aD("stsc",aj.value()),aD("stsz",aF.value()),aD("stco",aB.value()))}function ak(e){if(!e.fb&&!e.gb)return new Uint8Array([]);var t=e.gb;return aD("pasp",e=new Uint8Array([].concat(x(aL(e.fb,4)),x(aL(t,4)))))}function aI(e){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.stream.channelsCount||2,0,16,0,0,0,0].concat(x(aL(e.stream.audioSamplingRate||44100,2)),[0,0]))}function aC(e,t){t=aD("frma",t=new Uint8Array([].concat(x(aL(aP(t.split(".")[0]),4)))));var n="cenc",i=e.drmInfos[0];i&&i.encryptionScheme&&(n=i.encryptionScheme),n=aD("schm",n=new Uint8Array([0,0,0,0].concat(x(aL(aP(n),4)),[0,1,0,0]))),i=aD;var r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);e=E(e.drmInfos);for(var a=e.next();!a.done;a=e.next())if((a=a.value)&&a.keyIds&&a.keyIds.size){a=E(a.keyIds);for(var o=a.next();!o.done;o=a.next())r=aR(o.value)}return r=aD("tenc",e=new Uint8Array([0,0,0,0,0,0,1,8]),r),aD("sinf",t,n,i("schi",r))}function aM(e){var t=[];e=E(e.g);for(var n=e.next();!n.done;n=e.next()){n=n.value;var i,r,a=t.push,o=a.apply,s=aD,u=new Uint8Array([0,0,0,0].concat(x(aL(n.data?n.data.sequenceNumber:0,4))));u=aD("mfhd",u);var l=n.data?n.data.Eb:[],c=new Uint8Array(4+l.length);for(r=0;r<l.length;r++){var d=l[r].flags;c[r+4]=d.rb<<4|d.ub<<2|d.sb}var h=(l=aD("sdtp",c)).length+32+20+8+16+8+8;c=aD,r=aD("tfhd",r=new Uint8Array([0,0,0,58].concat(x(aL(n.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])));var p=Math.floor((d=n.data?n.data.baseMediaDecodeTime:0)%(aN+1));d=aD("tfdt",d=new Uint8Array([1,0,0,0].concat(x(aL(Math.floor(d/(aN+1)),4)),x(aL(p,4)))));var f=h,g=12+16*(p=(h=n.data?n.data.Eb:[]).length),m=new Uint8Array(g);for(f+=8+g,m.set([+("video"===n.type),0,15,1].concat(x(aL(p,4)),x(aL(f,4))),0),f=0;f<p;f++){var v=h[f];g=aL(v.duration,4);var y=aL(v.size,4),b=v.flags;v=aL(v.Ab,4),m.set([].concat(x(g),x(y),[b.Cb<<2|b.rb,b.ub<<6|b.sb<<4|b.Db,61440&b.qb,15&b.qb],x(v)),12+16*f)}s=s("moof",u,l=c("traf",r,d,h=aD("trun",m),l)),o.call(a,t,[s,(i=((i=n).data?i.data.Eb:[]).map(function(e){return e.data}),aD("mdat",i=e4.apply(e$,x(i))))])}return e4.apply(e$,x(t))}function aL(e,t){var n=[];for(--t;t>=0;t--)n.push(e>>8*t&255);return n}function aR(e){for(var t=new Uint8Array(e.length/2),n=0;n<e.length/2;n+=1)t[n]=parseInt(String(e[2*n]+e[2*n+1]),16);return t}function aP(e){for(var t=0,n=0;n<e.length;n+=1)t|=e.charCodeAt(n)<<(e.length-n-1)*8;return t}function aD(e){var t=V.apply(1,arguments),n=aO.get(e);n||(n=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)],aO.set(e,n));for(var i=8,r=t.length-1;r>=0;r--)i+=t[r].byteLength;for((r=new Uint8Array(i))[0]=i>>24&255,r[1]=i>>16&255,r[2]=i>>8&255,r[3]=255&i,r.set(n,4),n=0,i=8;n<t.length;n++)r.set(t[n],i),i+=t[n].byteLength;return r}var aN=0xffffffff,aO=new Map,a_=new ej(function(){return 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])}),aU=new ej(function(){return 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])}),aq=new ej(function(){return new Uint8Array([0,0,0,0,0,0,0,0])}),aj=new ej(function(){return new Uint8Array([0,0,0,0,0,0,0,0])}),aB=new ej(function(){return new Uint8Array([0,0,0,0,0,0,0,0])}),aF=new ej(function(){return new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0])}),aV=new ej(function(){return new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}),aG=new ej(function(){return new Uint8Array([0,0,0,0,0,0,0,0])}),aH=new ej(function(){return new Uint8Array([0,0,0,0,0,0,0,1])}),az=new ej(function(){var e=new Uint8Array([105,115,111,109]),t=new Uint8Array([97,118,99,49]);return aD("ftyp",e,new Uint8Array([0,0,0,1]),e,t)}),aK=new ej(function(){var e=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]);return e=aD("dref",e),aD("dinf",e)});function aW(e,t,n){0!=(t=(e=eO(e,t)).getUint32(0))&&(1==t?(e.setUint32(8,n>>32),e.setUint32(12,0|n)):e.setUint32(0,n))}function aX(e,t,n,i,r,a,o,s){this.S=e,this.startByte=t,this.endByte=n,this.Pd=void 0===i?null:i,this.timescale=void 0===r?null:r,this.h=void 0===a?null:a,this.aesKey=void 0===o?null:o,this.g=this.mimeType=this.codecs=null,this.encrypted=void 0!==s&&s}function aY(e,t){return e===t||(e&&t?e.Uc()==t.Uc()&&e.Sc()==t.Sc()&&tk(e.S().sort(),t.S().sort())&&eR(e.jc(),t.jc()):e==t)}function aZ(e,t,n,i,r,a,o,s,u,l,c,d,h,p,f,g){for(l=void 0===l?[]:l,p=void 0===p?aQ:p,this.startTime=e,this.j=this.endTime=t,this.D=n,this.startByte=i,this.endByte=r,this.ia=a,this.timestampOffset=o,this.appendWindowStart=s,this.appendWindowEnd=u,this.g=l,this.tilesLayout=void 0===c?"":c,this.C=void 0===d?null:d,this.h=void 0===h?null:h,this.status=p,this.preload=!1,this.l=!0,this.u=!1,this.aesKey=void 0===f?null:f,this.thumbnailSprite=null,this.i=-1,this.m=void 0!==g&&g,this.Ae=this.od=!1,t=(e=E(this.g)).next();!t.done;t=e.next())t.value.qj();this.m&&this.g.length&&this.g[this.g.length-1].pj(),this.A=this.bandwidth=this.mimeType=this.codecs=null,this.F=!1}function aJ(e){if(e.endByte)return e.endByte+1-e.startByte;if(e.bandwidth){var t=e.bandwidth*(e.endTime-e.startTime);if(!isNaN(t)&&t>0)return t}if(e.g.length>0&&e.m)for(e=(e=E(e.g)).next();!e.done;e=e.next()){aJ(e.value);break}return null}aX.prototype.Uc=function(){return this.startByte},aX.prototype.Sc=function(){return this.endByte},aX.prototype.Le=function(e){this.h=e},aX.prototype.jc=function(){return this.h},$("shaka.media.InitSegmentReference",aX),aX.prototype.getEndByte=aX.prototype.Sc,aX.prototype.getStartByte=aX.prototype.Uc,(p=aZ.prototype).S=function(){return this.D()},p.getStartTime=function(){return this.startTime},p.Ok=function(){return this.endTime},p.Uc=function(){return this.startByte},p.Sc=function(){return this.endByte},p.rl=function(){return this.tilesLayout},p.ql=function(){return this.C},p.Vc=function(){return this.status},p.Ol=function(){this.status=a$},p.Mh=function(){this.preload=!0},p.isPreload=function(){return this.preload},p.Od=function(){this.l=!1},p.El=function(){return this.l},p.qj=function(){this.od=!0},p.Gl=function(){return this.od},p.pj=function(){this.Ae=!0},p.Fl=function(){return this.Ae},p.oj=function(){this.u=!0},p.Bl=function(){return this.u},p.ng=function(e){this.thumbnailSprite=e},p.ol=function(){return this.thumbnailSprite},p.offset=function(e){this.startTime+=e,this.endTime+=e,this.j+=e;for(var t=E(this.g),n=t.next();!n.done;
1n=t.next())n=n.value,n.startTime+=e,n.endTime+=e,n.j+=e},p.ti=function(e){null==this.h?er("Sync attempted without sync time!"):Math.abs(e=this.h-e-this.startTime)>=.001&&this.offset(e)},p.Le=function(e,t){this.A=e,this.F=void 0!==t&&t},p.jc=function(e){var t=this.A;return(void 0===e||e)&&this.F&&(this.A=null),t},$("shaka.media.SegmentReference",aZ),aZ.prototype.getSegmentData=aZ.prototype.jc,aZ.prototype.setSegmentData=aZ.prototype.Le,aZ.prototype.syncAgainst=aZ.prototype.ti,aZ.prototype.offset=aZ.prototype.offset,aZ.prototype.getThumbnailSprite=aZ.prototype.ol,aZ.prototype.setThumbnailSprite=aZ.prototype.ng,aZ.prototype.hasByterangeOptimization=aZ.prototype.Bl,aZ.prototype.markAsByterangeOptimization=aZ.prototype.oj,aZ.prototype.isLastPartial=aZ.prototype.Fl,aZ.prototype.markAsLastPartial=aZ.prototype.pj,aZ.prototype.isPartial=aZ.prototype.Gl,aZ.prototype.markAsPartial=aZ.prototype.qj,aZ.prototype.isIndependent=aZ.prototype.El,aZ.prototype.markAsNonIndependent=aZ.prototype.Od,aZ.prototype.isPreload=aZ.prototype.isPreload,aZ.prototype.markAsPreload=aZ.prototype.Mh,aZ.prototype.markAsUnavailable=aZ.prototype.Ol,aZ.prototype.getStatus=aZ.prototype.Vc,aZ.prototype.getTileDuration=aZ.prototype.ql,aZ.prototype.getTilesLayout=aZ.prototype.rl,aZ.prototype.getEndByte=aZ.prototype.Sc,aZ.prototype.getStartByte=aZ.prototype.Uc,aZ.prototype.getEndTime=aZ.prototype.Ok,aZ.prototype.getStartTime=aZ.prototype.getStartTime,aZ.prototype.getUris=aZ.prototype.S;var aQ=0,a$=1;function a0(e){return 1==e.length&&e.end(0)-e.start(0)<1e-4}function a1(e){return!e||a0(e)?null:1==e.length&&0>e.start(0)?0:e.length?e.start(0):null}function a2(e){return!e||a0(e)?null:e.length?e.end(e.length-1):null}function a5(e,t){return!(!e||!e.length||a0(e)||t>e.end(e.length-1))&&t>=e.start(0)}function a3(e,t){if(!e||!e.length||a0(e))return 0;var n=0;e=E(a4(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 a4(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 a8(){}function a6(e){return document.createElement(e)}function a7(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function a9(){var e=document.createElement("button");return e.setAttribute("type","button"),e}function oe(e,t){var n=document.createElement("source");return n.src=e,n.type=void 0===t?"":t,n}function ot(e){for(var t=!1,n=e.getElementsByTagName("source"),i=n.length-1;i>=0;--i)e.removeChild(n[i]),t=!0;return e.src&&(e.removeAttribute("src"),t=!0),t}function on(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function oi(){return oa||(or||(or=new iA(function(){oa=null})),(oa=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(oa=document.createElement("video")),or.Y(1)),oa}aZ.Status={Fm:0,Ln:1,hn:2},$("shaka.util.Dom",a8),a8.removeAllChildren=on,a8.clearSourceFromVideo=ot;var or=null,oa=null;function oo(){}function os(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128||!1}function ou(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128||!1}function ol(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 oc(e){for(var t=0,n=[];os(e,t);){var i=ol(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=ol(r,4);(a=function(e){var t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if("APIC"===e.type){if(e.size<2||3!==e.data[0])return null;var n=e.data.subarray(1).indexOf(0);if(-1===n)return null;var i=ez(eD(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=ez(eD(e.data,3+n,a));return o="--\x3e"===i?ez(eD(e.data,4+n+a)):eP(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?e.size<2||3!==e.data[0]||-1===(i=e.data.subarray(1).indexOf(0))?null:(n=ez(eD(e.data,1,i)),e=ez(eD(e.data,2+i)).replace(/\0*$/,""),t.description=n,t.data=e,t):"PRIV"===e.type?e.size<2||-1===(n=e.data.indexOf(0))?null:(t.description=n=ez(eD(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=eP(e.data.subarray(n.length+1)),t):"T"===e.type[0]?e.size<2||3!==e.data[0]?null:(t.data=e=ez(e.data.subarray(1)).replace(/\0*$/,""),t):"W"===e.type[0]?(t.data=e=ez(e.data).replace(/\0*$/,""),t):e.data?(t.data=eP(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}ou(e,t)&&(t+=10)}return n}function od(e,t){for(var n=t=void 0===t?0:t,i=0;os(e,t);)e[t+5]>>6&1&&(i+=10),i+=10,i+=ol(e,t+6),ou(e,t+10)&&(i+=10),t+=i;return i>0?e.subarray(n,n+i):new Uint8Array([])}function oh(e){return new Date(Date.UTC(1900,0,1,0,0,0,0)+e).getTime()}
1function op(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++)i>=2&&3==e[i]&&0==e[i-1]&&0==e[i-2]||(t[n]=e[i],n++);this.j=eD(t,0,n)}this.i=this.j.byteLength,this.g=this.h=0}function of(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 rC(n,0).$(),e.g=8*i,e.i-=i)}function og(e,t){if(e.g<=t){var n=Math.floor((t-=e.g)/8);t-=8*n,e.g-=n,of(e)}e.h<<=t,e.g-=t}function om(e,t){var n=Math.min(e.g,t),i=e.h>>>32-n;return e.g-=n,e.g>0?e.h<<=n:e.i>0&&of(e),(n=t-n)>0?i<<n|om(e,n):i}function ov(e){var t;for(t=0;t<e.g;++t)if((e.h&0x80000000>>>t)!=0)return e.h<<=t,e.g-=t,t;return of(e),t+ov(e)}function oy(e){og(e,1+ov(e))}function ob(e){var t=ov(e);return om(e,t+1)-1}function oT(e){return 1&(e=ob(e))?1+e>>>1:-1*(e>>>1)}function ow(e){return 1===om(e,1)}function oS(e){return om(e,8)}function oA(e,t){for(var n=8,i=8,r=0;r<t;r++)0!==i&&(i=(n+(i=oT(e))+256)%256),n=0===i?n:i}function oE(){this.I=null,this.J=!1,this.m=this.K=null,this.j=[],this.g=[],this.D=this.F=null,this.i=[],this.h=[],this.G=null,this.l=[],this.C=this.H=this.u=this.A=null}function ox(e,t){if((t[0]<<16|t[1]<<8|t[2])!=1)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=(14&t[9])*0x20000000+(255&t[10])*4194304+(254&t[11])*16384+(255&t[12])*128+(254&t[13])/2;null==e.A&&(e.A=r),n.pts=oI(r,e.A),e.A=n.pts,n.dts=n.pts,64&i&&(i=(14&t[14])*0x20000000+(255&t[15])*4194304+(254&t[16])*16384+(255&t[17])*128+(254&t[18])/2,null==e.u&&(e.u=i),n.dts=n.pts!=r?oI(i,e.u):i),e.u=n.dts}return(e=t[8]+9,t.byteLength<=e)?null:(n.data=t.subarray(e),n)}function ok(e){var t=e.Kd();return t.length>1&&(e=t[0].pts,!isNaN((t=t[1].pts)-e))?String(Math.abs(1/(t-e)*9e4)):null}function oI(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>0x100000000;)e+=0x200000000*n;return e}function oC(e){return!(0>oM(e))}function oM(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}$("shaka.util.Id3Utils",oo),oo.getID3Data=od,oo.getID3Frames=oc,$("shaka.util.ExpGolomb",op),(p=oE.prototype).clearData=function(){this.j=[],this.g=[],this.i=[],this.h=[],this.l=[]},p.kg=function(e){null!=this.C&&this.C!=e&&(this.u=this.A=null),this.C=e},p.parse=function(e){if(e.length<564)return this;for(var t=Math.max(0,oM(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((48&e[r+3])>>4>1){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.I=(31&e[s+10])<<8|e[s+11];break;case 17:case 8191:break;case this.I:a&&(s+=e[s]+1),o={audio:-1,video:-1,Cf:-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(c>0)for(var d=s+5,h=c;h>2;){var p=a[d+1]+2;switch(a[d]){case 5:var f=eZ(a.subarray(d+2,d+p));-1==o.audio&&"Opus"===f?(o.audio=l,o.audioCodec="opus"):-1==o.video&&"AV01"===f&&(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");break;case 127:"opus"==o.audioCodec&&(f=null,128===a[d+2]&&(f=a[d+3]),null!=f&&(this.H={channelCount:(15&f)==0?2:15&f,rk:f,sampleRate:48e3}))}d+=p,h-=p}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.Cf&&(o.Cf=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.K=a.video,this.m=a.videoCodec),-1!=a.audio&&(this.F=a.audio,this.D=a.audioCodec),-1!=a.Cf&&(this.G=a.Cf),i&&!this.J&&(i=!1,r=t-188),this.J=!0;break;case this.K: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.F: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.G: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},p.Vl=function(e){return tR("TsParser.parseAvcNalus","Please use parseNalus function instead."),this.Sh(e,{De:null,state:null})},p.Sh=function(e,t){var n=e.pts?e.pts/9e4:null,i=(e=e.data).byteLength,r=1;"hvc"==this.m&&(r=2);var a=t.state||0,o=a,s=0,u=[],l=-1,c=0;for(-1==a&&(l=0,c="hvc"==this.m?e[0]>>1&63:31&e[0],a=0,s=1);s<i;){var d=e[s++];a?1===a?a=2*!d:d?1==d?(d=s-a-1,l>=0?u.push({data:e.subarray(l+r,d),fullData:e.subarray(l,d),type:c,time:n,state:null}):(a=u.length?u[u.length-1]:t.De)&&(o&&s<=4-o&&a.state&&(a.data=a.data.subarray(0,a.data.byteLength-o),a.fullData=a.fullData.subarray(0,a.fullData.byteLength-o)),d>0&&(d=e.subarray(0,d),a.data=e4(a.data,d),a.fullData=e4(a.fullData,d),a.state=0)),s<i?(c="hvc"==this.m?e[s]>>1&63:31&e[s],l=s,a=0):a=-1):a=0:a=3:a=+!d}return l>=0&&a>=0&&u.push({data:e.subarray(l+r,i),fullData:e.subarray(l,i),type:c,time:n,state:a}),!u.length&&t.De&&(n=u.length?u[u.length-1]:t.De)&&(n.data=e4(n.data,e),n.fullData=e4(n.fullData,e)),t.state=a,u},p.getMetadata=function(){for(var e=[],t=E(this.l),n=t.next();!n.done;n=t.next())(n=ox(this,n=e4.apply(e$,x(n.value))))&&e.push({cueTime:n.pts?n.pts/9e4:null,data:n.data,frames:oc(n.data),dts:n.dts,pts:n.pts});return e},p.Bb=function(){if(this.i.length&&!this.h.length)for(var e=E(this.i),t=e.next();!t.done;t=e.next()){var n=e4.apply(e$,x(t.value)),i=ox(this,n);t=this.h.length?this.h[this.h.length-1]:null,i&&null!=i.pts&&null!=i.dts&&(!t||t.pts!=i.pts&&t.dts!=i.dts)?this.h.push(i):this.h.length&&(n=i?i.data:n)&&((t=this.h.pop()).data=e4(t.data,n),this.h.push(t))}return this.h},p.Kd=function(e){if(e=void 0===e||e,this.j.length&&!this.g.length){for(var t=E(this.j),n=t.next();!n.done;n=t.next()){var i=e4.apply(e$,x(n.value)),r=ox(this,i);n=this.g.length?this.g[this.g.length-1]:null,r&&null!=r.pts&&null!=r.dts&&(!n||n.pts!=r.pts&&n.dts!=r.dts)?this.g.push(r):this.g.length&&(i=r?r.data:i)&&((n=this.g.pop()).data=e4(n.data,i),this.g.push(n))}if(e){for(t={De:null,state:null},n=[],r=(i=E(this.g)).next();!r.done;r=i.next())(r=r.value).nalus=this.Sh(r,t),r.nalus.length&&(n.push(r),t.De=r.nalus[r.nalus.length-1]);this.g=n}}return e?this.g:(e=this.g,this.g=[],e)},p.getStartTime=function(e){if("audio"==e){e=null;var t=this.Bb();return t.length&&(e=Math.min((e=t[0]).dts,e.pts)/9e4),e}return"video"==e?(e=null,(t=this.Kd(!1)).length&&(e=Math.min((e=t[0]).dts,e.pts)/9e4),e):null},p.qe=function(){return{audio:this.D,video:this.m}},p.Bf=function(){for(var e=[],t=E(this.Kd()),n=t.next();!n.done;n=t.next())e.push.apply(e,x(n.value.nalus));return e},p.yl=function(){tR("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var e=this.Bh();return{height:e.height,width:e.width}},p.Bh=function(){return"hvc"==this.m?function(e){var t={height:null,width:null,codec:null,frameRate:null},n=e.Bf();if(!n.length||!(n=n.find(function(e){return 33==e.type})))return t;var i=new op(n.fullData,!0);oS(i),oS(i),om(i,4);var r=om(i,3);ow(i);var a=om(i,2),o=om(i,1),s=om(i,5),u=om(i,32);n=oS(i);for(var l=oS(i),c=oS(i),d=oS(i),h=oS(i),p=oS(i),f=oS(i),g=[],m=[],v=0;v<r;v++)g.push(ow(i)),m.push(ow(i));if(r>0)for(v=r;v<8;v++)om(i,2);for(v=0;v<r;v++)g[v]&&om(i,88),m[v]&&oS(i);ob(i),3==(r=ob(i))&&om(i,1),g=ob(i),m=ob(i);var y=v=0,b=0,T=0;return ow(i)&&(v+=ob(i),y+=ob(i),b+=ob(i),T+=ob(i)),t.width=String(g-(v+y)*(1===r||2===r?2:1)),t.height=String(m-(b
1+T)*(1===r?2:1)),i=function(e){for(var t=0,n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}(u),o=1==o?"H":"L",a="hvc1."+["","A","B","C"][a]+s+"."+i.toString(16).toUpperCase()+("."+o)+f,p&&(a+="."+p.toString(16).toUpperCase()),h&&(a+="."+h.toString(16).toUpperCase()),d&&(a+="."+d.toString(16).toUpperCase()),c&&(a+="."+c.toString(16).toUpperCase()),l&&(a+="."+l.toString(16).toUpperCase()),n&&(a+="."+n.toString(16).toUpperCase()),t.codec=a,t.frameRate=ok(e),t}(this):function(e){var t={height:null,width:null,codec:null,frameRate:null},n=e.Bf();if(!n.length||!(n=n.find(function(e){return 7==e.type})))return t;var i=oS(n=new op(n.data)),r=oS(n),a=oS(n);if(oy(n),oL.includes(i)){var o=ob(n);if(3===o&&og(n,1),oy(n),oy(n),og(n,1),ow(n)){o=3!==o?8:12;for(var s=0;s<o;s++)ow(n)&&(s<6?oA(n,16):oA(n,64))}}if(oy(n),0===(o=ob(n)))ob(n);else if(1===o)for(og(n,1),oy(n),oy(n),o=ob(n),s=0;s<o;s++)oy(n);oy(n),og(n,1),o=ob(n),s=ob(n);var u=om(n,1);0===u&&og(n,1),og(n,1);var l=0,c=0,d=0,h=0;return ow(n)&&(l=ob(n),c=ob(n),d=ob(n),h=ob(n)),t.height=String((2-u)*(s+1)*16-2*d-2*h),t.width=String((o+1)*16-2*l-2*c),t.codec="avc1."+("0"+i.toString(16).toUpperCase()).slice(-2)+("0"+r.toString(16).toUpperCase()).slice(-2)+("0"+a.toString(16).toUpperCase()).slice(-2),t.frameRate=ok(e),t}(this)},$("shaka.util.TsParser",oE),oE.syncOffset=oM,oE.probe=oC,oE.prototype.getVideoInfo=oE.prototype.Bh,oE.prototype.getVideoResolution=oE.prototype.yl,oE.prototype.getVideoNalus=oE.prototype.Bf,oE.prototype.getCodecs=oE.prototype.qe,oE.prototype.getStartTime=oE.prototype.getStartTime,oE.prototype.getVideoData=oE.prototype.Kd,oE.prototype.getAudioData=oE.prototype.Bb,oE.prototype.getMetadata=oE.prototype.getMetadata,oE.prototype.parseNalus=oE.prototype.Sh,oE.prototype.parseAvcNalus=oE.prototype.Vl,oE.prototype.parse=oE.prototype.parse,oE.prototype.setDiscontinuitySequence=oE.prototype.kg,oE.prototype.clearData=oE.prototype.clearData,oE.Timescale=9e4;var oL=[100,110,122,244,44,83,86,118,128,138,139,134];function oR(e,t,n,i,r){var a=this;this.g=e,this.O=n,this.C=i,this.Z=t,this.l=new Map,this.G=new Map,this.La=new Map,this.h=null,this.Fa=!1,this.D=r||null,this.u=new Map,this.A=new tI,this.j=new Map,this.K=null,this.L=new ra,this.ya="",this.jb=!1,this.ua=!0,this.M=!1,this.F=this.P=null,this.i=oP(this,this.L),this.Na=this.H=!1,this.I=new rE(function(){var e,t,n,i,r,o,s,u,l,c,d,h,p;return e=a,F(function(a){if(1==a.g){for(t=[],i=(n=E(e.u)).next();!i.done;i=n.next())for(o=(r=E(i.value)).next().value,u=(s=r.next().value)[0],l=o,e.u.set(l,s.slice(0,1)),u&&t.push(u.p.catch(ix)),d=(c=E(s.slice(1))).next();!d.done;d=c.next())d.value.p.reject(new eU(2,7,7003,void 0));return e.h&&t.push(e.h.destroy()),M(a,Promise.all(t),2)}for(p=(h=E(e.j.values())).next();!p.done;p=h.next())p.value.destroy();e.A&&(e.A.release(),e.A=null),e.g&&e.F&&e.g.removeChild(e.F),e.g&&e.P&&(e.g.removeChild(e.P),e.g.load(),e.g.disableRemotePlayback=!1),e.g=null,e.P=null,e.F=null,e.C=null,e.i=null,e.h=null,e.Z=null,e.l.clear(),e.La.clear(),e.j.clear(),e.K=null,e.u.clear(),e.D=null,e.W.clear(),e.O=null,L(a)})}),this.J=!1,this.V="UNKNOWN",this.$a=this.ib=!1,this.hb=new ra,this.m=!1,this.sa=null,this.W=new Map,this.ea=this.R=this.oa=this.T=null,this.aa=new ra,this.g.remote&&(this.M="disconnected"!=this.g.remote.state,this.A.o(this.g.remote,"connect",function(){a.M="disconnected"!=a.g.remote.state}),this.A.o(this.g.remote,"connecting",function(){a.M="disconnected"!=a.g.remote.state}),this.A.o(this.g.remote,"disconnect",function(){a.M="disconnected"!=a.g.remote.state}))}function oP(t,n){if(t.ua=!0,e.ManagedMediaSource){t.F||(t.g.disableRemotePlayback=!0);var i=new ManagedMediaSource;t.A.o(i,"startstreaming",function(){t.ua=!0}),t.A.o(i,"endstreaming",function(){t.ua=!1})}else i=new MediaSource;return t.A.qa(i,"sourceopen",function(){URL.revokeObjectURL(t.ya),n.resolve()}),t.A.qa(t.g,"playing",function(){t.jb=!0}),t.ya=o5(i),t.C.useSourceElements?(t.g.removeAttribute("src"),t.P&&t.g.removeChild(t.P),t.F&&t.g.removeChild(t.F),t.P=oe(t.ya),t.g.appendChild(t.P),t.F&&t.g.appendChild(t.F),t.g.load()):t.g.src=t.ya,i}function oD(e,t,n,i){"audio"==t&&i&&(i=iO(i,n.mimeType));
1var r=ii(n.mimeType,i);if(t==tn)oO(e,r,e.J,n.external);else{var a=e.C.forceTransmux;(!ah(r)||!e.J&&ip.includes(r))&&(a=!0);var o=ir(n.mimeType,i);if(a){if(a=te("audio",(i||"").split(",")),i=te("video",(i||"").split(",")),a&&i){e.m=!0,oD(e,"audio",n,a),oD(e,"video",n,i);return}(i=n4(o))&&(r=i(),e.j.set(t,r),r=r.convertCodecs(t,o))}o=r+e.C.addExtraFeaturesToSourceBuffer(r),rx(e.I);try{var s=e.i.addSourceBuffer(o)}catch(t){throw new eU(2,3,3015,t,"The mediaSource_ status was "+e.i.readyState+" expected 'open'",null)}e.J&&(s.mode=o3),e.A.o(s,"error",function(){var n=e.u.get(t)[0];n.p.reject(new eU(2,3,3014,e.g.error?e.g.error.code:0,n.uri))}),e.A.o(s,"updateend",function(){return oY(e,t)}),e.l.set(t,s),e.G.set(t,r),e.La.set(t,!!n.drmInfos.length)}}function oN(e){return e.ua&&!e.M&&!e.H}function oO(e,t,n,i){e.h||(e.h=new ig(e.Z),e.h&&(e.h.C=e.C.modifyCueCallback));var r=e.h;i=i||e.Fa,e=e.V,"application/cea-608"==t||"application/cea-708"==t?r.i=null:(r.i=iw.get(t)(),r.i.setSequenceMode?r.i.setSequenceMode(n):tR("Text parsers w/ setSequenceMode",'Text parsers should have a "setSequenceMode" method!'),r.i.setManifestType?r.i.setManifestType(e):tR("Text parsers w/ setManifestType",'Text parsers should have a "setManifestType" method!'),r.D=i)}function o_(e){return!e.H&&(!e.i||"ended"==e.i.readyState)}function oU(e){return!e.H&&(!e.i||"closed"==e.i.readyState)}function oq(e,t){return e.l.size?t==tn?e.h.g:a1(oB(e,t)):null}function oj(e,t){return e.l.size?t==tn?e.h.h:a2(oB(e,t)):null}function oB(e,t){if(e.H||e.M)return null;try{return e.l.get(t).buffered}catch(n){return e.l.has(t),null}}function oF(e,t,n,i,r,a,o,s,u,l,c){var d,h,p,f,g,m,v,y,b,T,w,S,A,k,I,C,R,P;return o=void 0!==o&&o,s=void 0!==s&&s,u=void 0!==u&&u,l=void 0!==l&&l,F(function(D){switch(D.g){case 1:if(t!=(d=ti).Va){D.B(2);break}if("HLS"!=e.V){D.B(3);break}return M(D,e.hb,4);case 4:h=D.h,e.h.A=h;case 3:var N,O,_,U,q,j,B,V,G,H,z,K;return M(D,(N=e.h,O=n,_=i?i.startTime:null,U=i?i.endTime:null,q=i?i.S()[0]:null,F(function(e){if(1==e.g)return M(e,Promise.resolve(),2);if(!N.i||!N.l)return e.return();if(null==_||null==U)return N.i.parseInit(eD(O)),e.return();for(j=N.D?_:N.A,B={periodStart:N.A,segmentStart:_,segmentEnd:U,vttOffset:j},H=(G=E(V=N.i.parseMedia(eD(O),B,q,[]))).next();!H.done;H=G.next())z=H.value,N.C(z,q||null,B);K=V.filter(function(e){return e.startTime>=N.m&&e.startTime<N.u}),N.l.append(K),null==N.g&&(N.g=Math.max(_,N.m)),N.h=Math.min(U,N.u),L(e)})),5);case 5:case 8:return D.return();case 2:if(l||!e.m){D.B(6);break}return M(D,oF(e,d.na,n,i,r,a,o,s,u,!0),7);case 7:return M(D,oF(e,d.Ga,n,i,r,a,o,s,u,!0),8);case 6:if(!e.l.has(t))return D.return();if(p=e.l.get(t).timestampOffset,f=e.G.get(t),e.j.has(t)&&(f=e.j.get(t).getOriginalMimeType()),i&&(m=(g=function(e,t,n,i,r,a,o){o=void 0!==o&&o;var s=null,u=[],l=eD(n);if(ip.includes(a))(n=oc(l)).length&&i&&((o=n.find(function(e){return"com.apple.streaming.transportStreamTimestamp"===e.description}))&&"number"==typeof o.data&&(s=Math.round(o.data)/1e3),e.O.onMetadata([{cueTime:i.startTime,data:l,frames:n,dts:i.startTime,pts:i.startTime}],0,i.endTime));else if(a.includes("/mp4")&&i&&i.ia){l=new rR;var c=null!=r.emsgSchemeIdUris&&r.emsgSchemeIdUris.length>0||e.C.dispatchAllEmsgBoxes;c&&l.X("emsg",function(t){var n=r.emsgSchemeIdUris;if(0===t.version)var a=t.reader.pd(),o=t.reader.pd(),s=t.reader.$(),u=t.reader.$(),l=t.reader.$(),c=t.reader.$(),d=i.startTime+u/s;else s=t.reader.$(),u=(d=t.reader.Ud()/s+i.timestampOffset)-i.startTime,l=t.reader.$(),c=t.reader.$(),a=t.reader.pd(),o=t.reader.pd();t=t.reader.cc(t.reader.getLength()-t.reader.Wa(),!0),(n&&n.includes(a)||e.C.dispatchAllEmsgBoxes)&&("urn:mpeg:dash:event:2012"==a?e.O.Ul():(n=d+l/s,e.O.Sl({startTime:d,endTime:n,schemeIdUri:a,value:o,timescale:s,presentationTimeDelta:u,eventDuration:l,id:c,messageData:t}),("https://aomedia.org/emsg/ID3"==a||"https://developer.apple.com/streaming/emsg-id3"==a)&&(s=oc(t)).length&&e.O.onMetadata([{cueTime:d,data:t,frames:s,dts:d,pts:d}],0,n)))});var d=i.ia.timescale;t=d&&!isNaN(d);var h=0,p=!1;t&&l.X("prft",function(t){var n=t.reader,i=t.version;n.$(),t=1e3*(t=n.$())+n.$()/0x100000000*1e3,n=0===i?n.$():0x100000000*(i=n.$())+(n=n.$()),t=oh(t),n=new ee("prft",n=(new Map).set("detail",{wallClockTime:t,programStartDate:new Date(t-n/d*1e3)})),e.O.onEvent(n)}).box("moof",rP).box("traf",rP).X("tfdt",function(e){p||(h=am(e.reader,e.version).baseMediaDecodeTime/d,p=!0,c||e.parser.stop())}),(c||t)&&l.parse(n,!1,o),p&&0==i.timestampOffset&&(s=h)}else a.includes("/mp4")||a.includes("/webm")||!oC(l)||(e.W.has(t)||e.W.set(t,new oE),(u=e.W.get(t)).clearData(),u.kg(i.i),u.parse(l),null!=(l=u.getStartTime(t))&&(s=l),u=u.getMetadata());return{timestamp:s,metadata:u}}(e,t,n,i,r,f,u)).timestamp,v=g.metadata,null!=m&&(null==e.T&&t==d.Ga&&(e.T=m,e.oa=i.startTime,null!=e.R&&(y=0,e.oa==e.ea&&(y=e.T-e.R),e.aa.resolve(y))),null==e.R&&t==d.na&&(e.R=m,e.ea=i.startTime,null!=e.T&&(b=0,e.oa==e.ea&&(b=e.T-e.R),e.aa.resolve(b))),T=m,w=ip,!e.J&&w.includes(e.G.get(t))&&(T=0),S=i.startTime-T,(Math.abs(p-S)>=.001||o||s)&&(!u||S>0||!p)&&(p=S,e.$a&&(oZ(e,t,function(){return oK(e,t)},null),oZ(e,t,function(){return oW(e,t,p)},null))),t!=d.Ga&&e.l.has(d.Ga)||e.hb.resolve(p)),v.length)&&e.O.onMetadata(v,p,i?i.endTime:null),a&&t==d.Ga&&(e.h||oO(e,"application/cea-608",e.J,!1),e.K||(e.K=new tK(f.split(";",1)[0])),i?(A=e.K.Xf(n)).length&&function(e,t,n){var i=new Map;t=E(t);for(var r=t.next();!r.done;r=t.next()){var a=r.value;r=a.stream,a=a.cue,i.has(r)||i.set(r,[]),function e(t,n,i){n.startTime+=i,n.endTime+=i,n=E(n.nestedCues);for(var r=n.next();!r.done;r=n.next())e(t,r.value,i)}(e,a,n),a.startTime>=e.m&&a.startTime<e.u&&(i.get(r).push(a),r==e.F&&e.l.append([a]))}for(t=(n=E(i.keys())).next();!t.done;t=n.next())for(t=t.value,e.j.has(t)||e.j.set(t,[]),a=(r=E(i.get(t))).next();!a.done;a=r.next())a=a.value,e.j.get(t).push(a);iT(e)}(e.h,A,p):e.K.init(n,s,c)),!e.j.has(t)){D.B(9);break}return M(D,e.j.get(t).transmux(n,r,i,e.i.duration,t),10);case 10:ArrayBuffer.isView(k=D.h)?n=k:(null!=(I=k).init&&(C=I.init,oZ(e,t,function(){e.D&&t_(e.D,C,p,r),e.l.get(t).appendBuffer(C)},i?i.S()[0]:null)),n=I.data);case 9:if(n=function(e,t,n,i,r){if("mp4"!=io(e.G.get(r)))return n;var a,o,s=null===i,u=e.La.get(r),l=e.O.Sk(),c=!1;i&&i.ia&&(c=i.ia.encrypted),i=i?i.S()[0]:null;var d=eB();return e.C.correctEc3Enca&&s&&"audio"===r&&(a=eD(a=n),o=null,(new rR).box("moov",rP).box("trak",rP).box("mdia",rP).box("minf",rP).box("stbl",rP).X("stsd",rD).box("enca",function(e){return o=e.reader.h,rO(e)}).box("sinf",rP).box("frma",function(e){e.parser.stop(),"ec-3"===aT(e.reader).codec&&o&&2!==o.getUint16(16)&&o.setUint16(16,2)}).parse(a),n=a),e.C.insertFakeEncryptionInInit&&u&&d.Vd(l,r)&&(s?n=function(e,t,n){function i(e){d.push({box:e,uj:0x656e6361}
1)}function r(e){d.push({box:e,uj:0x656e6376})}function a(e){l=!0,e.parser.stop()}function o(e){c.push(e),rP(e)}var s,u=t=eD(t),l=!1,c=[],d=[];if((new rR).box("moov",o).box("trak",o).box("mdia",o).box("minf",o).box("stbl",o).X("stsd",function(e){s=e,c.push(e),rD(e)}).X("encv",a).X("enca",a).X("dvav",r).X("dva1",r).X("dvh1",r).X("dvhe",r).X("dvc1",r).X("dvi1",r).X("hev1",r).X("hvc1",r).X("avc1",r).X("avc3",r).X("ac-3",i).X("ec-3",i).X("ac-4",i).X("Opus",i).X("fLaC",i).X("mp4a",i).parse(t),l)return t;if(0==d.length||!s)throw e3(t),new eU(2,3,3019,n);d.reverse(),n=E(d);for(var h=n.next();!h.done;h=n.next())h=h.value,u=function(e,t,n,i,r,a){var o=aC(e,i.name),s=t.subarray(i.start,i.start+i.size);for((e=new Uint8Array(i.size+o.byteLength)).set(s,0),eO(e).setUint32(4,a),e.set(o,i.size),aW(e,0,e.byteLength),a=new Uint8Array(t.byteLength+e.byteLength),i=eB().Ef()?i.start:i.start+i.size,o=t.subarray(i),a.set(t.subarray(0,i)),a.set(e,i),a.set(o,i+e.byteLength),r=(t=E(r)).next();!r.done;r=t.next())aW(a,(r=r.value).start,r.size+e.byteLength);return e=eO(a,n.start),n=rj(n),t=e.getUint32(n),e.setUint32(n,t+1),a}(e,u,s,h.box,c,h.uj);return eB().Zh()?((e=new Uint8Array(t.byteLength+u.byteLength)).set(u),e.set(t,u.byteLength),e):u}(t,n,i):!c&&d.Dj(r)&&(n=function(e){e=eD(e);var t=[];(new rR).box("mdat",function(e){t.push(e)}).parse(e);for(var n=[],i=0;i<t.length;i++){var r=t[i-1],a=t[i];n.push(function(e){function t(e){o.push(e),rP(e)}var n,i,r,a,o=[];if((new rR).box("moof",t).box("traf",t).X("tfhd",function(e){n=e,r=ag(e.reader,e.flags)}).X("trun",function(e){i=e,a=ay(e.reader,e.version,e.flags)}).parse(e),r&&2!==r.Hj){var s=n.start+rj(n)+4+8*(null!==r.qk),u=eO(e);if(null!==r.Hj)u.setUint32(s,2);else{aW(e,n.start,n.size+4);var l=u.getUint32(n.start+8);u.setUint32(n.start+8,2|l),a&&null!==a.Xg&&u.setInt32(i.start+rj(i)+4,a.Xg+4),l=e.subarray(0,s),u=e.subarray(s),(e=new Uint8Array(e.byteLength+4)).set(l),l=[];for(var c=3;c>=0;c--)l.push(2>>8*c&255);for(e.set(new Uint8Array(l),s),e.set(u,s+4),u=(s=E(o)).next();!u.done;u=s.next())aW(e,(u=u.value).start,u.size+4)}}return e}(e.subarray(r?r.start+r.size:0,a.start+a.size)))}return e4.apply(e$,x(n))}(n))),s&&d.Je()&&(n=function(e){function t(e){i.push({start:e.start,size:e.size}),rP(e)}var n=eD(e),i=[];return(new rR).box("moov",t).box("trak",t).box("mdia",t).box("minf",t).box("stbl",t).box("stsd",function(e){i.push({start:e.start,size:e.size});for(var t=eO(n,e.start),r=0;r<e.size-3;r++){var a=t.getUint32(r);0x61632d33==a?t.setUint32(r,0x65632d33):0x64616333==a&&t.setUint32(r,0x64656333)}}).parse(n),n}(n)),n}(e,r,n,i,t),!i||!e.J||t==d.Va||!o&&!s){D.B(11);break}if(R=i.startTime,"HLS"!=e.V||e.m||t!=d.na||!e.l.has(d.Ga)){D.B(13);break}return M(D,e.aa,14);case 14:Math.abs(P=D.h)>.15&&(R-=P);case 13:oZ(e,t,function(){return oK(e,t)},null),oZ(e,t,function(){return oW(e,t,R)},null);case 11:return M(D,oZ(e,t,function(){var i=n;e.D&&t_(e.D,i,p,r),e.l.get(t).appendBuffer(i)},i?i.S()[0]:null),15);case 15:L(D)}})}function oV(e,t){var n;return F(function(i){return 1==i.g?t==(n=ti).Va?e.h?M(i,e.h.remove(0,1/0),0):i.return():t===n.Ga&&e.K&&e.h?M(i,e.h.remove(0,1/0,!0),4):i.B(4):6!=i.g?M(i,oZ(e,t,function(){return oz(e,t,0,e.i.duration)},null),6):e.m?M(i,oZ(e,n.na,function(){return oz(e,n.na,0,e.i.duration)},null),0):i.B(0)})}function oG(e,t,n,i,r,a,o,s,u){var l,c;return F(function(d){if(1==d.g){var h,p,f,g,m,v,y,b,T,w,S,A,E,x;if(t==(l=ti).Va){return a||(e.h.A=n),h=e.h,p=i,f=r,h.m=p,h.u=f,d.return()}return c=[],M(d,(g=e,m=t,v=o,y=s,b=u,F(function(e){if(1==e.g){if(T=ti,S=(w=o2(g,m,v,y,b)).type,A=w.tc,E=w.Sf,(x=b.get(T.na))&&(g.m=x.isAudioMuxedInVideo),S==o4)return g.j.has(m)&&!A?(g.j.get(m).destroy(),g.j.delete(m)):!g.j.has(m)&&A?g.j.set(m,A):A&&(g.j.has(m)&&g.j.get(m).transmux!==A.transmux?(g.j.get(m).destroy(),g.j.set(m,A)):A.destroy()),e.return(!1);if(S==o6){var t,n,i,r;return M(e,(t=g,n=m,i=E,r=A,oZ(t,n,function(){if(n!==tn){if(t.G.get(n),eB().Gb()){t.j.has(n)&&(t.j.get(n).destroy(),t.j.delete(n)),r&&t.j.set(n,r);var e=i+t.C.addExtraFeaturesToSourceBuffer(i);t.l.get(n).changeType(e),t.G.set(n,i)}oY(t,n)}},null)),3)}return S!=o8?e.B(3):(A&&A.destroy(),M(e,o0(g,b),3))}return e.return(!0)})),2)}return d.h||(c.push(oZ(e,t,function(){return oK(e,t)},null)),e.m&&c.push(oZ(e,l.na,function(){return oK(e,l.na)},null))),a||(c.push(oZ(e,t,function(){return oW(e,t,n)},null)),e.m&&c.push(oZ(e,l.na,function(){return oW(e,l.na,n)},null))),(0!=i||r!=1/0)&&(c.push(oZ(e,t,function(){return oX(e,t,i,r)},null)),e.m&&c.push(oZ(e,l.na,function(){return oX(e,l.na,i,r)},null))),c.length?M(d,Promise.all(c),0):d.B(0)})}function oH(e){F(function(t){return e.I.g||e.g.error||e.M||e.H||o_(e)||oU(e)?t.return():M(t,oJ(e,function(){o_(e)||oU(e)||e.i.clearLiveSeekableRange()}),0)})}function oz(e,t,n,i){if(i<=n)oY(e,t);else{if(e.D){var r=e.D;"video"===t&&r.g&&r.g.flushBuffer(n,i)}e.l.get(t).remove(n,i)}}function oK(e,t){var n=e.l.get(t),i=n.appendWindowStart,r=n.appendWindowEnd;n.abort(),n.appendWindowStart=i,n.appendWindowEnd=r,oY(e,t)}function oW(e,t,n){n<0&&(n+=.001),e.l.get(t).timestampOffset=n,oY(e,t)}function oX(e,t,n,i){var r=e.l.get(t);
1(r.appendWindowEnd!==i||r.appendWindowStart!==n)&&(r.appendWindowStart=0,r.appendWindowEnd=i,r.appendWindowStart=n),oY(e,t)}function oY(e,t){if(e.H||e.I.g){var n=e.u.get(t);n&&n.length&&((n=n[0])&&n.p&&n.p.resolve(),e.u.set(t,[]))}else(n=e.u.get(t)[0])&&(n.p.resolve(),oQ(e,t))}function oZ(e,t,n,i){return rx(e.I),n={start:n,p:new ra,uri:i},e.u.get(t).push(n),1==e.u.get(t).length&&o$(e,t),n.p}function oJ(e,t){var n,i,r,a,o,s,u,l,c,d;return F(function(h){switch(h.g){case 1:for(rx(e.I),n=[],a=(r=E(i=Array.from(e.l.keys()))).next(),o={};!a.done;o={ready:void 0},a=r.next())s=a.value,o.ready=new ra,u={start:function(e){return function(){return e.ready.resolve()}}(o),p:o.ready,uri:null},(l=e.u.get(s)).push(u),n.push(o.ready),1==l.length&&u.start();return R(h,2),M(h,Promise.all(n),4);case 4:D(h,3);break;case 2:throw N(h);case 3:return R(h,5,6),M(h,t(),6);case 6:for(O(h),d=(c=E(i)).next();!d.done;d=c.next())oQ(e,d.value);_(h,0);break;case 5:throw new eU(2,3,3015,N(h),e.g.error||"No error in the media element",null)}})}function oQ(e,t){e.u.get(t).shift(),o$(e,t)}function o$(e,t){var n=e.u.get(t)[0];if(n)try{n.start()}catch(i){"QuotaExceededError"==i.name?n.p.reject(new eU(2,3,3017,t)):oN(e)?n.p.reject(new eU(2,3,3015,i,e.g.error||"No error in the media element",n.uri)):n.p.reject(new eU(2,3,3024,t)),oQ(e,t)}}function o0(e,t){return oJ(e,function(){var n,i,r,a,o,s,u,l,c,d,h,p,f,g,m,v,y,b,T,w,S;return n=e,i=t,F(function(e){if(1==e.g){if(n.H||n.M)return e.return();for(r=ti,n.H=!0,n.m=!1,a=n.g.currentTime,o=n.g.autoplay,n.g.paused||(n.Na=!0),n.jb&&(n.g.autoplay=!1),P(e,2),n.A.Sa(),u=(s=E(n.j.values())).next();!u.done;u=s.next())u.value.destroy();
1for(c=(l=E(n.l.values())).next();!c.done;c=l.next()){d=c.value;try{n.i.removeSourceBuffer(d)}catch(e){}}return n.j.clear(),n.l.clear(),h=n.i.duration,n.L=new ra,n.i=oP(n,n.L),M(e,n.L,4)}if(2!=e.g){for(!isNaN(h)&&h?n.i.duration=h:!isNaN(n.sa)&&n.sa&&(n.i.duration=n.sa),p=new ra,f=n.i.sourceBuffers,g=i.size,m=0,v=function(){++m===g&&(p.resolve(),n.A.Ea(f,"addsourcebuffer",v))},n.A.o(f,"addsourcebuffer",v),b=(y=E(i.keys())).next();!b.done;b=y.next())T=b.value,w=i.get(T),oD(n,T,w,w.codecs);return(S=i.get(r.na))&&S.isAudioMuxedInVideo&&(n.m=!0),n.m&&!n.u.has(r.na)&&n.u.set(r.na,[]),M(e,p,2)}return O(e),n.H=!1,rx(n.I),n.A.qa(n.g,"loadedmetadata",function(){n.I.g||(n.g.currentTime=a)}),n.A.qa(n.g,"canplaythrough",function(){n.I.g||(n.g.autoplay=o,n.Na&&(n.Na=!1,n.g.play()))}),_(e,0)})})}function o1(e,t,n,i){var r=!1,a=te("audio",(i||"").split(",")),o=te("video",(i||"").split(",")),s=o;"audio"==t&&(s=a),s||(s=i),i=ii(n,s);var u=il(e.G.get(t)),l=e.C.forceTransmux;if(!ah(i)||!e.J&&ip.includes(i)?l=!0:l||n==u||(l=!eB().pg()&&ip.includes(n)),l&&(n=n4(e=ir(n,s)))){var c=n();a&&o&&(r=!0),i=c.convertCodecs(t,e)}return t=is(ic(i)),{tc:c,ym:r,Li:il(i),codec:t,mimeType:i}}function o2(e,t,n,i,r){if(t==tn)return{type:o4,Sf:n,tc:null};var a=is(ic(e.G.get(t))),o=il(e.G.get(t)),s=o1(e,t,n,i),u=s.tc,l=s.ym,c=s.Li,d=s.codec;s=s.mimeType;var h=!0;return(l&&e.G.has("audio")&&(n=o1(e,"audio",n,i),i=is(ic(e.G.get("audio"))),h=il(e.G.get("audio")),h=i==n.codec&&h==n.Li,n.tc&&n.tc.destroy()),a===d&&o===c&&h)?{type:o4,Sf:s,tc:u}:(a=!0,(e.m&&!r.has("audio")||l&&u&&!e.j.has(t))&&(a=!1),t=eB(),a&&"smooth"===e.C.codecSwitchingStrategy&&t.Gb())?{type:o6,Sf:s,tc:u}:(u&&u.destroy(),{type:o8,Sf:s,tc:null})}(p=oR.prototype).destroy=function(){return this.I.destroy()},p.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,c=this;return F(function(d){if(1==d.g)return r=ti,M(d,c.L,2);if(3!=d.g)return o_(c)||oU(c)?(er("Expected MediaSource to be open during init(); reopening the media source."),c.L=new ra,c.i=oP(c,c.L),M(d,c.L,3)):d.B(3);for(c.J=t,c.V=n,c.ib=i,c.$a=!c.J&&"HLS"==c.V&&!c.ib,c.W.clear(),c.T=null,c.oa=null,c.R=null,c.ea=null,c.aa=new ra,o=(a=E(e.keys())).next();!o.done;o=a.next())s=o.value,u=e.get(s),oD(c,s,u,u.codecs),c.m?(c.u.set(r.na,[]),c.u.set(r.Ga,[])):c.u.set(s,[]);(l=e.get(r.na))&&l.isAudioMuxedInVideo&&(c.m=!0),L(d)})},p.configure=function(e){this.C=e,this.h&&(this.h.C=e.modifyCueCallback)},p.Rc=function(){var e={total:this.H?[]:a4(this.g.buffered),audio:a4(oB(this,"audio")),video:a4(oB(this,"video")),text:[]};if(this.h){var t=this.h.g,n=this.h.h;null!=t&&null!=n&&e.text.push({start:t,end:n})}return e},p.remove=function(e,t,n,i){var r,a,o=this;return F(function(s){return 1==s.g?(e==(r=ti).Ga&&o.K&&(o.K.remove(i),a=o.h.g||0,o.h.remove(a,n,!0)),e==r.Va?M(s,o.h.remove(t,n),0):n>t?M(s,oZ(o,e,function(){return oz(o,e,t,n)},null),5):s.B(0)):o.m?M(s,oZ(o,r.na,function(){return oz(o,r.na,t,n)},null),0):s.B(0)})},p.flush=function(e){var t,n=this;return F(function(i){return 1==i.g?e==(t=ti).Va?i.return():M(i,oZ(n,e,function(){n.g.currentTime-=.001,oY(n,e)},null),2):n.m?M(i,oZ(n,t.na,function(){var e=t.na;n.g.currentTime-=.001,oY(n,e)},null),0):i.B(0)})},p.endOfStream=function(e){var t=this;return F(function(n){return M(n,oJ(t,function(){o_(t)||oU(t)||(e?t.i.endOfStream(e):t.i.endOfStream())}),0)})},p.Fb=function(e){var t=this;return F(function(n){return M(n,oJ(t,function(){if(t.C.durationReductionEmitsUpdateEnd&&e<t.i.duration)for(var n=E(t.l.keys()),i=n.next();!i.done;i=n.next()){i=i.value;var r={start:function(){},p:new ra,uri:null};t.u.get(i).unshift(r)}t.i.duration=e,t.sa=e}),0)})},p.getDuration=function(){return this.i.duration};var o5=e.URL.createObjectURL,o3="sequence",o4="none",o8="reset",o6="changeType";function o7(e,t,n){this.i=e,this.F=t,this.A=this.l=1/0,this.h=1,this.g=this.j=null,this.C=0,this.D=!0,this.J=!1,this.I=0,this.G=void 0===n||n,this.H=0,this.u=!1,this.m=e}function o9(e,t,n,i){var r=this;this.A=i,this.g=e,this.F=t,this.h=n,this.j=new tI,this.m=!1,this.l=0,this.D=!1,this.H=this.G=0,this.u=function(e){if(!e.h.stallEnabled)return null;var t=e.h.stallThreshold,n=e.h.stallSkip;return new st(new sn(e.g),t,function(){return F(function(t){if(1==t.g)return a4(e.g.buffered).length?n?(e.g.currentTime+=n,t.B(2)):M(t,e.g.play(),3):t.return();if(2!=t.g){if(!e.g)return t.return();e.g.pause(),e.g.play()}e.H++,e.A(new ee("stalldetected")),L(t)})})}(this),this.C=!1,this.j.o(e,"waiting",function(){return se(r)}),this.i=new iA(function(){se(r)}).xa(this.h.gapJumpTimerTime)}function se(e){if(0!=e.g.readyState){if(e.g.seeking){if(!e.m)return}else e.m=!1;if(!e.g.paused||e.g.currentTime==e.l&&(e.g.autoplay||e.g.currentTime!=e.l)){if(!(i=!e.u)){var t,n,i,r,a,o,s=(i=e.u).h,u=si(s),l=s.g.currentTime,c=Date.now()/1e3;(i.g!=l||i.m!=u)&&(i.l=c,i.g=l,i.m=u,i.i=!1),(u=(l=c-i.l)>=i.u&&u&&!i.i)&&(i.j&&i.j(i.g,l),i.i=!0,i.g=s.g.currentTime),i=!u}i&&(i=e.g.currentTime,r=s=e.g.buffered,a=i,o=e.h.gapDetectionThreshold,null==(u=!r||!r.length||a0(r)?null:(r=a4(r).findIndex(function(e,t,n){return e.start>a&&(0==t||n[t-1].end-a<=o)}))>=0?r:null)||0==u&&!e.C||(l=s.start(u),(c=e.h.gapPadding)&&(l=Math.ceil((l+c)*100)/100),l>=e.F.Mb()||l-i<.001||(0!=u&&s.end(u-1),t=e,n=l,t.D=!0,t.j.qa(t.g,"seeked",function(){t.D=!1}),t.g.currentTime=n,i==e.l&&(e.l=l),e.G++,e.A(new ee("gapjumped")))))}}}function st(e,t,n){this.h=e,this.m=si(e),this.g=e.g.currentTime,this.l=Date.now()/1e3,this.i=!1,this.u=t,this.j=n}function sn(e){var t=this;this.g=e,this.h=new tI,this.i=!1,this.h.o(this.g,"audiofocuspaused",function(){t.i=!0}),this.h.o(this.g,"audiofocusgranted",function(){t.i=!1}),this.h.o(this.g,"audiofocuslost",function(){t.i=!0})}function si(e){if(e.g.paused||0==e.g.playbackRate||e.i||0==e.g.buffered.length)var t=!1;else e:{t=e.g.currentTime,e=E(a4(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 sr(e,t,n,i){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>
1=t?i():(t=sa.value().get(t),n.qa(e,t,i))}(p=o7.prototype).getDuration=function(){return this.l},p.Xk=function(){return this.h},p.Qj=function(e){this.i=e},p.Fb=function(e){this.l=e},p.cl=function(){return this.i},p.Nj=function(e){this.C=e},p.td=function(e){e&&!this.D&&(this.J=!0),this.D=e},p.lg=function(e){this.A=e},p.Af=function(){return this.A},p.gi=function(e){this.F=e},p.Nk=function(){return this.F},p.xj=function(e,t){if(0!=e.length){var n=(Date.now()+this.C)/1e3;if(0!=(e=e.filter(function(e){return e.start+t<n})).length){var i=e[e.length-1].end+t;this.Tf(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.G&&!this.u&&(this.i=n-this.g-this.h)}}},p.Ee=function(e){if(0!=e.length){var t=e[0].startTime,n=e[0].endTime,i=(Date.now()+this.C)/1e3;e=E(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.Tf(t),this.g=Math.max(this.g,n),null!=this.i&&this.G&&!this.u&&(this.i=i-this.g-this.h)}},p.wj=function(e,t){this.Tf(e),t==1/0||this.U()||(this.g=Math.max(this.g,t))},p.Yk=function(){return this.g},p.Nf=function(){this.u=!0},p.Il=function(){return this.u},p.ji=function(e){this.m=e},p.Rk=function(){return this.m},p.Tf=function(e){null==this.j?this.j=e:this.J||(this.j=Math.min(this.j,e))},p.Oh=function(e){this.h=Math.max(this.h,e)},p.offset=function(e){null!=this.j&&(this.j+=e),null!=this.g&&(this.g+=e)},p.U=function(){return this.l==1/0&&!this.D},p.md=function(){return this.l!=1/0&&!this.D},p.Nb=function(){return Math.max(this.I,this.Tc()-this.A)},p.Sj=function(e){this.I=e},p.Tc=function(){return this.U()||this.md()?Math.min(Math.max(0,(Date.now()+this.C)/1e3-this.h-this.i)+this.H,this.l):this.g?Math.min(this.g,this.l):this.l},p.se=function(e){var t=Math.max(this.j,this.I);return this.A==1/0?Math.ceil(1e3*t)/1e3:Math.max(t,Math.min(this.Tc()-this.A+e,this.Mb()))},p.hc=function(){return this.se(0)},p.Mb=function(){return Math.max(0,this.Tc()-(this.U()||this.md()?this.F:0))},p.gk=function(){return null!=this.i&&(null==this.g||!this.G)},p.Mj=function(e){this.H=e},p.Dk=function(){return this.H},$("shaka.media.PresentationTimeline",o7),o7.prototype.getAvailabilityTimeOffset=o7.prototype.Dk,o7.prototype.setAvailabilityTimeOffset=o7.prototype.Mj,o7.prototype.usingPresentationStartTime=o7.prototype.gk,o7.prototype.getSeekRangeEnd=o7.prototype.Mb,o7.prototype.getSeekRangeStart=o7.prototype.hc,o7.prototype.getSafeSeekRangeStart=o7.prototype.se,o7.prototype.getSegmentAvailabilityEnd=o7.prototype.Tc,o7.prototype.setUserSeekStart=o7.prototype.Sj,o7.prototype.getSegmentAvailabilityStart=o7.prototype.Nb,o7.prototype.isInProgress=o7.prototype.md,o7.prototype.isLive=o7.prototype.U,o7.prototype.offset=o7.prototype.offset,o7.prototype.notifyMaxSegmentDuration=o7.prototype.Oh,o7.prototype.notifyMinSegmentStartTime=o7.prototype.Tf,o7.prototype.getInitialProgramDateTime=o7.prototype.Rk,o7.prototype.setInitialProgramDateTime=o7.prototype.ji,o7.prototype.isStartTimeLocked=o7.prototype.Il,o7.prototype.lockStartTime=o7.prototype.Nf,o7.prototype.getMaxSegmentEndTime=o7.prototype.Yk,o7.prototype.notifyPeriodDuration=o7.prototype.wj,o7.prototype.notifySegments=o7.prototype.Ee,o7.prototype.notifyTimeRange=o7.prototype.xj,o7.prototype.getDelay=o7.prototype.Nk,o7.prototype.setDelay=o7.prototype.gi,o7.prototype.getSegmentAvailabilityDuration=o7.prototype.Af,o7.prototype.setSegmentAvailabilityDuration=o7.prototype.lg,o7.prototype.setStatic=o7.prototype.td,o7.prototype.setClockOffset=o7.prototype.Nj,o7.prototype.getPresentationStartTime=o7.prototype.cl,o7.prototype.setDuration=o7.prototype.Fb,o7.prototype.setPresentationStartTime=o7.prototype.Qj,o7.prototype.getMaxSegmentDuration=o7.prototype.Xk,o7.prototype.getDuration=o7.prototype.getDuration,o9.prototype.release=function(){this.j&&(this.j.release(),this.j=null),null!=this.i&&(this.i.stop(),this.i=null),this.u&&(this.u.release(),this.u=null),this.g=this.F=this.A=null},o9.prototype.Wf=function(){this.C=!0,this.i&&this.i.xa(this.h.gapJumpTimerTime),se(this)},st.prototype.release=function(){this.h&&this.h.release(),this.j=this.h=null},sn.prototype.release=function(){this.h&&this.h.release(),this.h=null};var sa=new ej(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function so(e,t,n,i){var r=this;this.g=e,this.m=t,this.A=n,this.l=null,this.j=function(){return null==r.l&&(r.l=i()),r.l},this.u=!1,this.h=new tI,this.i=new sd(e),sr(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){sl(r,r.j())})}function ss(e){return e.u?e.g.currentTime:e.j()}function su(e,t){e.g.readyState>0?sh(e.i,t):sr(e.g,HTMLMediaElement.HAVE_METADATA,e.h,function(){sl(e,e.j())})}function sl(e,t){.001>Math.abs(e.g.currentTime-t)?sc(e):(e.h.qa(e.g,"seeking",function(){sc(e)}),sh(e.i,e.g.currentTime&&0!=e.g.currentTime?e.g.currentTime:t))}function sc(e){e.u=!0,e.h.o(e.g,"seeking",function(){return e.m()}),e.A(e.g.currentTime)}function sd(e){var t=this;this.g=e,this.m=10,this.j=this.l=this.i=0,this.h=new iA(function(){t.i<=0||t.g.currentTime!=t.l||t.g.currentTime===t.j?t.h.stop():(t.g.currentTime=t.j,t.i--)})}function sh(e,t){e.l=e.g.currentTime,e.j=t,e.i=e.m,e.g.currentTime=t,e.h.xa(.1)}function sp(e){this.g=e,this.i=!1,this.h=null,this.j=new tI}function sf(e){return e.g.getStartDate&&!isNaN(e=e.g.getStartDate().getTime())?e/1e3:null}function sg(e,t){return(e=e.g.seekable).length>0&&(t=Math.max(e.start(0),t),t=Math.min(e.end(e.length-1),t)),t}function sm(e,t,n,i,r,a){var o=this;this.h=e,this.g=t.presentationTimeline,this.l=n,this.A=r,this.u=null,this.i=new o9(e,t.presentationTimeline,n,a),this.j=new so(e,function(){e:{var e=o.i;e.m=!0,e.C=!1,e.i&&e.i.xa(e.h.gapJumpTimerTime),se(e);var t=ss(o.j);if(e=sb(o,t),!ap()&&Math.abs(e-t)>.001){t=!1;var n=eB().Ij();if(n){var i=Date.now()/1e3;(!o.u||o.u<i-n)&&(o.u=i,t=!0)}else t=!0;if(t){su(o.j,e),e=void 0;break e}}o.A(),e=void 0}return e},function(e){var t=o.i;t.g.seeking&&!t.m&&(t.m=!0,t.l=e),t.i&&t.i.xa(t.h.gapJumpTimerTime),se(t)},function(){return sv(o,i)}),this.m=new iA(function(){if(0!=o.h.readyState&&!o.h.paused){var e=ss(o.j),t=o.g.hc(),n=o.g.Mb();
1n-t<3&&(t=n-3),e<t&&(e=sb(o,e),o.h.currentTime=e)}})}function sv(e,t){return null==t?t=e.g.getDuration()<1/0?e.g.hc():e.g.Mb():t instanceof Date?t=t.getTime()/1e3-(e.g.m||e.g.i):t<0&&(t=e.g.Mb()+t),sy(e,sT(e,t))}function sy(e,t){var n=e.g.getDuration();return t>=n?n-e.l.durationBackoff:t}function sb(e,t){var n=e.l.rebufferingGoal,i=e.l.safeSeekOffset,r=e.g.hc(),a=e.g.Mb(),o=e.g.getDuration();a-r<3&&(r=a-3);var s=e.g.se(n),u=e.g.se(i);return n=e.g.se(n+i),t>=o?sy(e,t):t>a?a-e.l.safeSeekEndOffset:t<r?e.g.U()&&e.l.returnToEndOfLiveWindowWhenOutside?a-e.l.safeSeekEndOffset:a5(e.h.buffered,u)?u:n:t>=s||a5(e.h.buffered,t)?t:n}function sT(e,t){var n=e.g.hc();return t<n?n:t>(e=e.g.Mb())?e:t}function sw(e){this.g=e,this.m=null,this.i=0,this.u=!1}function sS(e){return e.g[0]||null}function sA(e,t,n){return new sw([e=new aZ(e,e+t,function(){return n},0,null,null,e,e,e+t)])}function sE(e,t,n,i){this.i=e,this.h=t,this.g=n,this.reverse=i}function sx(){sw.call(this,[]),this.h=[]}function sk(e){var t=this;this.g=e,this.j=!1,this.i=this.g.zf(),this.h=new iA(function(){t.g.tj(.25*t.i)})}function sI(e){e.h.stop();var t=e.j?0:e.i;if(t>=0)try{e.g.zf()!=t&&e.g.ki(t);return}catch(e){}e.h.xa(.25),0!=e.g.zf()&&e.g.ki(0)}function sC(e){var t=this;this.j=e,this.h=new tI,this.g=new Set,this.i=new iA(function(){sM(t,!1)}).Ka(),e.paused||this.i.xa(.25),this.h.o(e,"playing",function(){t.i.Ka().xa(.25)}),this.h.o(e,"pause",function(){t.i.stop()})}function sM(e,t){var n=e.j.currentTime;e=E(e.g);for(var i=e.next();!i.done;i=e.next())i.value.j(n,t)}function sL(e){ec.call(this),this.g=new Map,this.h=e}function sR(e,t,n){return!!(e=e.h()[n])&&e.length>0&&(n=e[e.length-1].end,t>=e[0].start&&t<n)}function sP(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 sD(e){ec.call(this),this.h=new Map,this.i=e,this.g=null}function sN(e,t){var n,i=t.schemeIdUri+"_"+t.id+"_"+t.startTime.toFixed(1)+"_"+t.endTime.toFixed(1);e.h.has(i)||(e.h.set(i,t),t=new ee("regionadd",new Map([["region",t]])),e.dispatchEvent(t),(n=e).g||(n.g=new iA(function(){for(var e=n.i(),t=E(n.h),i=t.next();!i.done;i=t.next()){var r=E(i.value);i=r.next().value,(r=r.next().value).endTime<e.start&&(n.h.delete(i),i=new ee("regionremove",new Map([["region",r]])),n.dispatchEvent(i))}!n.h.size&&n.g&&(n.g.stop(),n.g=null)}).xa(2)))}function sO(e,t,n,i,r){this.m=e,this.i=t,this.l=n,this.g=new Map,this.j=new Map,this.h=null,this.u=i,this.A=r||function(e,t){return!t.fastSwitching||!e.od||!e.Ae}}function s_(e,t,n){if(n=void 0!==n&&n,!e.i.segmentIndex||(e.h||(e.h=e.i.segmentIndex.fc(t,!0,e.u)),!e.h))return Promise.resolve();for(n&&e.h.next(),t=[];e.g.size<e.m&&(n=e.h.next().value);){var i=!0;if(n.isPreload()&&null!=n.endByte&&(i=!1),2==n.Vc()&&(i=!1),n.jc(!1)&&(i=!1),i&&n.ia&&t.push(sU(e,n.ia)),i&&!e.g.has(n)&&(i=new sG(e.l),t.push(sH(i,n,e.i)),e.g.set(n,i)),!e.A(n,e.i))break}return sB(e),Promise.all(t)}function sU(e,t){if(!e.i.segmentIndex||t.jc()||Array.from(e.j.keys()).some(function(e){return aY(e,t)}))return Promise.resolve();var n=new sG(e.l),i=sH(n,t,e.i);return e.j.set(t,n),i}function sq(e,t){t=E(t.keys());for(var n=t.next();!n.done;n=t.next())(n=n.value)&&sV(e,n)}function sj(e){sq(e,e.g),sq(e,e.j),e.h=null}function sB(e){if(e.g.size)for(var t=Array.from(e.g.keys()),n=E(e.j.keys()),i=n.next(),r={};!i.done;r={Hh:void 0},i=n.next())r.Hh=i.value,t.some(function(e){return function(t){return aY(t.ia,e.Hh)}}(r))||sV(e,r.Hh)}function sF(e,t){e.m=t;for(var n=Array.from(e.g.keys());n.length>t;){var i=n.pop();i&&sV(e,i)}sB(e)}function sV(e,t){var n=e.g;t instanceof aX&&(n=e.j),e=n.get(t),n.delete(t),e&&e.abort()}function sG(e){this.g=e,this.Fe=this.ri=null}
1function sH(e,t,n){var i=new Uint8Array(0);return e.Fe=e.g(t,n,function(t){return F(function(n){if(1==n.g)return i=i.byteLength>0?e4(i,t):t,e.ri?M(n,e.ri(i),3):n.B(0);i=new Uint8Array(0),L(n)})}),e.Fe.promise.catch(function(e){return e instanceof eU&&7001==e.code?Promise.resolve():Promise.reject(e)})}function sz(e){var t=il(e),n=t.split("/")[0];return{type:n,mimeType:t,codecs:e=ic(e),language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,Qe:null,colorGamut:null,frameRate:null}}function sK(e){var t=new Set,n=[];e=E(e);for(var i=e.next();!i.done;i=e.next()){var r=iu(i=i.value);t.has(r)||(n.push(i),t.add(r))}return t=tt("audio",n),i=tt("video",n),e=tt(tn,n),i=function(e){if(e.length<=1)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?ah('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 sW(t,n,i){var r,a,o,s,u;return F(function(l){if(1==l.g)return(r=n).cryptoKey?l.B(2):M(l,r.fetchKey(),3);if(!(a=r.iv))for(a=eD(new ArrayBuffer(16)),o=r.firstMediaSequenceNumber+i,s=a.byteLength-1;s>=0;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 sX(e,t,n){var i,r,a,o,s;return F(function(u){switch(u.g){case 1:if(i=sY(e),r=sJ.get(i))return u.return(r);return a=0,o=rv([e],n),R(u,2),o.method="HEAD",M(u,t.request(a,o).promise,4);case 4:r=u.h.headers["content-type"],D(u,3);break;case 2:if(!(s=N(u))||1002!=s.code&&1001!=s.code){u.B(3);break}return o.method="GET",M(u,t.request(a,o).promise,6);case 6:r=u.h.headers["content-type"];case 3:return u.return(r?r.toLowerCase().split(";").shift():"")}})}function sY(e){return 1==(e=new eg(e).Ub.split("/").pop().split(".")).length?"":e.pop().toLowerCase()}function sZ(e,t,n,i,r){return e=rv(e,i,r),(0!=t||null!=n)&&(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}so.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},sd.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null},(p=sp.prototype).ready=function(){var e=this;sr(this.g,HTMLMediaElement.HAVE_FUTURE_DATA,this.j,function(){if(null==e.h||0==e.h&&e.g.duration!=1/0)e.i=!0;else{var t=e.g.currentTime,n=null;if("number"==typeof e.h)n=e.h;else if(e.h instanceof Date){var i=sf(e);null!==i&&(n=e.h.getTime()/1e3-i,n=sg(e,n))}null==n?e.i=!0:(n<0&&(n=Math.max(0,t+n)),t!=n?(e.j.qa(e.g,"seeking",function(){e.i=!0}),e.g.currentTime=n):e.i=!0)}})},p.release=function(){this.j&&(this.j.release(),this.j=null),this.g=null},p.Eg=function(e){this.h=this.i?this.h:e},p.ie=function(){var e=this.i?this.g.currentTime:this.h;return e instanceof Date&&(e=sg(this,e=e.getTime()/1e3-(sf(this)||0))),e||0},p.Fi=function(){return 0},p.Di=function(){return 0},p.Ei=function(){return!1},p.vj=function(){},p.jj=function(){var e=a2(this.g.buffered);return null!=e&&e>=this.g.duration-1},(p=sm.prototype).ready=function(){this.m.xa(.25)},p.release=function(){this.j&&(this.j.release(),this.j=null),this.i&&(this.i.release(),this.i=null),this.m&&(this.m.stop(),this.m=null),this.h=this.j=this.g=this.l=null,this.A=function(){}},p.Eg=function(e){su(this.j,sv(this,e))},p.ie=function(){var e=ss(this.j);return this.h.readyState>0&&!this.h.paused?sT(this,e):e},p.Fi=function(){return this.i.H},p.Di=function(){return this.i.G},p.Ei=function(){return this.i.D},p.vj=function(){this.i.Wf()},p.jj=function(){if(this.g.U()){var e=this.g.Tc(),t=a2(this.h.buffered);if(null!=t&&t>=e)return!0}return!1},(p=sw.prototype).getNumReferences=function(){return this.g.length},p.getNumEvicted=function(){return this.i},p.release=function(){this.u||(this.g=[],this.m&&this.m.stop(),this.m=null)},p.Pl=function(){this.u=!0},p.Lb=function(e){for(var t=E(this.g),n=t.next();!n.done;n=t.next())e(n.value)},p.find=function(e){for(var t=this.g.length-1,n=t;n>=0;--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},p.get=function(e){return 0==this.g.length||(e-=this.i)<0||e>=this.g.length?null:this.g[e]},p.offset=function(e){if(!this.u)for(var t=E(this.g),n=t.next();!n.done;n=t.next())n.value.offset(e)},p.Pf=function(e){if(!this.u&&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,x(e))}},p.Ce=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.Pf(e),this.eb(t)},p.eb=function(e){if(!this.u){var t=this.g.length;this.g=this.g.filter(function(t){return t.endTime>e}),this.i+=t-this.g.length}},p.Hd=function(e,t,n){if(n=void 0!==n&&n,!this.u){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 aZ((e=this.g[this.g.length-1]).startTime,t,e.D,e.startByte,e.endByte,e.ia,e.timestampOffset,e.appendWindowStart,e.appendWindowEnd,e.g,e.tilesLayout,e.C,e.h,e.status,e.aesKey)).mimeType=e.mimeType,t.codecs=e.codecs,t.i=e.i,this.g[this.g.length-1]=t)}},p.vg=function(e,t){var n=this;this.u||(this.m&&this.m.stop(),this.m=new iA(function(){var e=t();e?n.g.push.apply(n.g,x(e)):(n.m.stop(),n.m=null)}),this.m.xa(e))},sw.prototype[Symbol.iterator]=function(){return this.fc(0)},sw.prototype.fc=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&&r.g.length>0)for(var o=r.g.length-1;o>=0;--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 er("No independent partial segment found!"),null}n?i--:i++,a=o-1;break}}return new sE(this,i,a,n)},sw.prototype.qf=function(){return -1},$("shaka.media.SegmentIndex",sw),sw.forSingleSegment=sA,sw.prototype.getIteratorForTime=sw.prototype.fc,sw.prototype.updateEvery=sw.prototype.vg,sw.prototype.fit=sw.prototype.Hd,sw.prototype.evict=sw.prototype.eb,sw.prototype.mergeAndEvict=sw.prototype.Ce,sw.prototype.offset=sw.prototype.offset,sw.prototype.get=sw.prototype.get,sw.prototype.find=sw.prototype.find,sw.prototype.markImmutable=sw.prototype.Pl,sw.prototype.release=sw.prototype.release,sw.prototype.getNumEvicted=sw.prototype.getNumEvicted,sw.prototype.getNumReferences=sw.prototype.getNumReferences,(p=sE.prototype).Zd=function(e){this.reverse=e},p.yk=function(){return this.h},p.current=function(){var e=this.i.get(this.h);return e&&e.g.length>0&&e.m&&this.g>=e.g.length&&(this.h++,this.g=0,e=this.i.get(this.h)),e&&e.g.length>0?e.g[this.g]:e},p.next=function(){var e=this.i.get(this.h);return this.reverse?e&&e.g.length>0?(this.g--,this.g<0&&(this.h--,this.g=(e=this.i.get(this.h))&&e.g.length>0?e.g.length-1:0)):(this.h--,this.g=0):e&&e.g.length>0?(this.g++,e.m&&this.g==e.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0),{value:e=this.current(),done:!e}},p.$h=function(){var e=this.current();if(e&&e.od&&!e.l&&(e=this.i.get(this.h))&&e.g.length>0)for(var t=e.g[this.g];t.l&&!(this.g<=0);)this.g--,t=e.g[this.g]},$("shaka.media.SegmentIterator",sE),sE.prototype.resetToLastIndependent=sE.prototype.$h,sE.prototype.next=sE.prototype.next,sE.prototype.current=sE.prototype.current,sE.prototype.currentPosition=sE.prototype.yk,sE.prototype.setReverse=sE.prototype.Zd,S(sx,sw),(p=sx.prototype).clone=function(){var e=new sx;
1return e.h=this.h.slice(),e.i=this.i,e},p.release=function(){this.h=[]},p.Lb=function(e){for(var t=E(this.h),n=t.next();!n.done;n=t.next())n.value.Lb(e)},p.find=function(e){for(var t=this.i,n=E(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},p.get=function(e){for(var t=this.i,n=E(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},p.offset=function(){},p.Pf=function(){},p.eb=function(e){if(this.h.length){var t=this.h[0];t.eb(e),0==t.getNumReferences()&&(this.h.shift(),this.i+=t.getNumEvicted(),t.release(),this.eb(e))}},p.Ce=function(){},p.Hd=function(){},p.vg=function(){},$("shaka.media.MetaSegmentIndex",sx),sx.prototype.updateEvery=sx.prototype.vg,sx.prototype.fit=sx.prototype.Hd,sx.prototype.mergeAndEvict=sx.prototype.Ce,sx.prototype.evict=sx.prototype.eb,sx.prototype.merge=sx.prototype.Pf,sx.prototype.offset=sx.prototype.offset,sx.prototype.get=sx.prototype.get,sx.prototype.find=sx.prototype.find,sx.prototype.forEachTopLevelReference=sx.prototype.Lb,sx.prototype.release=sx.prototype.release,sk.prototype.release=function(){this.set(this.kd()),this.h&&(this.h.stop(),this.h=null),this.g=null},sk.prototype.set=function(e){this.i=e,sI(this)},sk.prototype.kd=function(){return this.g.kd()},sC.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.i.stop();for(var e=E(this.g),t=e.next();!t.done;t=e.next())t.value.release();this.g.clear()},S(sL,ec),sL.prototype.release=function(){this.g.clear(),ec.prototype.release.call(this)},sL.prototype.j=function(e){for(var t=E(this.g.values()),n=t.next();!n.done;n=t.next()){var i=(n=n.value).Wg;e:{for(var r=n.Ie,a=r.length-1;a>=0;a--){var o=r[a];if(o.position<=e){r=o.Pd;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&&!tk(i.roles,r.roles),(o||s||i)&&sR(this,e,r.contentType)&&(n.Wg=r,i=new ee("audiotrackchange",new Map([["quality",r],["position",e]])),this.dispatchEvent(i)),a&&sR(this,e,r.contentType)&&(n.Wg=r,JSON.stringify(r),n=new ee("qualitychange",new Map([["quality",r],["position",e]])),this.dispatchEvent(n))}},S(sD,ec),sD.prototype.release=function(){this.h.clear(),this.g&&(this.g.stop(),this.g=null),ec.prototype.release.call(this)},sO.prototype.eb=function(e,t){t=void 0!==t&&t;for(var n=E(this.g.keys()),i=n.next();!i.done;i=n.next())e>(i=i.value).endTime&&sV(this,i);t&&sB(this)},sO.prototype.Zd=function(e){this.u=e,this.h&&this.h.Zd(e)},sG.prototype.abort=function(){this.Fe&&this.Fe.abort()},$("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});var sJ=(new Map).set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/mp4").set("webm","video/webm").set("weba","audio/webm").set("mkv","video/webm").set("ts","video/mp2t").set("ogv","video/ogg").set("ogg","audio/ogg").set("mpg","video/mpeg").set("mpeg","video/mpeg").set("mov","video/quicktime").set("m3u8","application/x-mpegurl").set("mpd","application/dash+xml").set("ism","application/vnd.ms-sstr+xml").set("mp3","audio/mpeg").set("aac","audio/aac").set("flac","audio/flac").set("wav","audio/wav").set("sbv","text/x-subviewer").set("srt","text/srt").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml").set("lrc","application/x-subtitle-lrc").set("ssa","text/x-ssa").set("ass","text/x-ssa").set("jpeg","image/jpeg").set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif").set("html","text/html").set("htm","text/html");function sQ(e,t){var n=this;this.g=t,this.j=e,this.i=null,this.L=new Map,this.D=1,this.C=this.u=null,this.T=0,this.h=new Map,this.M=!1,this.V=null,this.F=!1,this.l=new rE(function(){var e,t,i,r,a,o,s;return e=n,F(function(n){if(1==n.g){for(e.A&&e.A.stop(),e.A=null,e.K&&e.K.stop(),e.K=null,e.G&&(e.G.release(),e.G=null),t=[],r=(i=E(e.h.values())
1).next();!r.done;r=i.next())uo(a=r.value),t.push(us(a)),a.ma&&(sj(a.ma),a.ma=null);for(s=(o=E(e.m.values())).next();!s.done;s=o.next())sj(s.value);return M(n,Promise.all(t),2)}e.h.clear(),e.m.clear(),e.g=null,e.j=null,e.i=null,e.I=null,L(n)})}),this.P=Date.now()/1e3,this.m=new Map,this.R={projection:null,hfov:null},this.Z=0,this.W=1/0,this.H=null,this.O=[],this.A=new iA(function(){if(n.j&&n.g)if(n.j.presentationTimeline.U()){var e,t,i,r=n.j.presentationTimeline.hc(),a=n.j.presentationTimeline.Mb();a-r>1?(e=n.g.ha,t=r,i=a,F(function(n){return e.I.g||e.g.error||e.M||e.H||o_(e)||oU(e)?n.return():M(n,oJ(e,function(){o_(e)||oU(e)||e.i.setLiveSeekableRange(t,i)}),0)})):oH(n.g.ha)}else oH(n.g.ha),n.A&&n.A.stop();else n.A&&n.A.stop()}),this.I=null,this.J=!1,this.K=new iA(function(){var e=n.g.video;!e.ended&&n.I&&(n.J=!0,e.currentTime=n.I,n.I=null)}),this.G=new tI}function s$(e,t){for(var n=0>e.g.Za(),i=E(e.h.values()),r=i.next();!r.done;r=i.next())(r=r.value).Ba&&r.Ba.Zd(n),r.ma&&r.ma.Zd(n);for(r=(i=E(e.m.values())).next();!r.done;r=i.next())r.value.Zd(n);(n=e.h.get("video"))&&(i=n.stream)&&(t?(t=i.trickModeVideo)&&!n.$c&&(s2(e,t,!1,0,!1),n.$c=i):(t=n.$c)&&(n.$c=null,s2(e,t,!0,0,!1)))}function s0(e,t,n,i,r,a){n=void 0!==n&&n,i=void 0===i?0:i,r=void 0!==r&&r,a=void 0!==a&&a,e.u=t,e.M&&(t.video&&s2(e,t.video,n,i,r,a),t.audio&&s2(e,t.audio,n,i,r,a))}function s1(e,t){F(function(n){if(1==n.g)return e.H=null,e.C=t,e.M?t.segmentIndex?n.B(2):M(n,t.createSegmentIndex(),2):n.return();s2(e,t,!0,0,!1),L(n)})}function s2(e,t,n,i,r,a){var o,s,u,l,c,d,h,p,f,g=e.h.get(t.type);g||t.type!=tn?g&&(g.$c&&(t.trickModeVideo?(g.$c=t,t=t.trickModeVideo):g.$c=null),g.stream!=t||r)&&(e.m.has(t)?g.ma=e.m.get(t):g.ma&&(o=g.ma,(s=t)&&s!==o.i&&(sj(o),o.i=s)),t.type==tn&&g.stream!=t&&(r=ii(t.mimeType,t.codecs),oO(e.g.ha,r,e.j.sequenceMode,t.external)),!e.m.has(g.stream)&&g.stream.closeSegmentIndex&&(g.Ra?(r="("+g.type+":"+g.stream.id+")",e.L.has(r)||e.L.set(r,g.stream.closeSegmentIndex)):g.stream.closeSegmentIndex()),r=g.stream.isAudioMuxedInVideo!=t.isAudioMuxedInVideo,g.stream=t,g.Ba=null,g.Kg=!!a,t.dependencyStream?g.Qc=s4(e,t.dependencyStream):g.Qc=null,uh(e),r&&(g.xb=null,g.Ec=null,g.Dc=null,t.isAudioMuxedInVideo&&(t=null,"video"===g.type?t=e.h.get("audio"):"audio"===g.type&&(t=e.h.get("video")),t&&(us(t).catch(function(){}),t.xb=null,t.Ec=null,t.Dc=null,s3(e,t),s5(e,t).catch(function(t){e.g&&e.g.onError(t)})))),n?g.ec?g.ce=!0:g.Ra?(g.wc=!0,g.Dd=i,g.ce=!0):(uo(g),ur(e,g,!0,i).catch(function(t){e.g&&e.g.onError(t)})):g.Ra||g.yb||ua(e,g,0),s5(e,g).catch(function(t){e.g&&e.g.onError(t)})):(u=e,l=t,F(function(e){switch(e.g){case 1:return c=ti,u.T++,d=u.T,R(e,2),M(e,oV(u.g.ha,c.Va),4);case 4:D(e,3);break;case 2:h=N(e),u.g&&u.g.onError(h);case 3:p=ii(l.mimeType,l.codecs),oO(u.g.ha,p,u.j.sequenceMode,l.external),(u.g.ha.Z.isTextVisible()||u.i.alwaysStreamText)&&u.T==d&&(f=s4(u,l),u.h.set(c.Va,f),ua(u,f,0)),L(e)}}))}function s5(e,t){var n,i,r;return F(function(a){if(1==a.g)return t.ab?(n=t.stream,i=t.ab,n.segmentIndex?a.B(2):M(a,n.createSegmentIndex(),2)):a.return();if(4!=a.g)return(r=n.dependencyStream)&&!r.segmentIndex?M(a,r.createSegmentIndex(),4):a.B(4);if(t.ab!=i||t.stream!=n)return a.return();var o=e.g.Bc(),s=oj(e.g.ha,t.type),u=t.stream.segmentIndex.find(t.Ua?t.Ua.endTime:o),l=null==u?null:t.stream.segmentIndex.get(u);u=l?aJ(l):null,l&&!u&&(u=(l.endTime-l.getStartTime())*(t.stream.bandwidth||e.u.bandwidth)/8),u?((l=l.ia)&&(u+=(l.endByte?l.endByte+1-l.startByte:null)||0),o=8*u/(l=e.g.getBandwidthEstimate())<(s||0)-o-e.i.rebufferingGoal||t.ab.h.g>u):o=!0,o&&t.ab.abort(),L(a)})}function s3(e,t){t.ec||t.wc||(t.Ra?(t.wc=!0,t.Dd=0):null==oq(e.g.ha,t.type)?null==t.yb&&ua(e,t,0):(uo(t),ur(e,t,!1,0).catch(function(t){e.g&&e.g.onError(t)})))}function s4(e,t){var n={stream:t,type:t.type,Ba:null,ma:s8(e,t),Ua:null,xb:null,Mf:null,Ec:null,Dc:null,Kf:null,Lf:null,$c:null,endOfStream:!1,Ra:!1,yb:null,wc:!1,Dd:0,ce:!1,ec:!1,sd:!0,Kg:!1,Wh:!1,ve:!1,ab:null,Qc:null};return t.dependencyStream&&(n.Qc=s4(e,t.dependencyStream)),n}function s8(e,t){if("video"===t.type&&e.i.disableVideoPrefetch||"audio"===t.type&&e.i.disableAudioPrefetch||t.type===tn&&("application/cea-608"==t.mimeType||"application/cea-708"==t.mimeType)||t.type===tn&&e.i.disableTextPrefetch)return null;if(e.m.has(t))return e.m.get(t);var n=e.h.get(t.type);return(n=n&&n.ma)&&t===n.i?n:e.i.segmentPrefetchLimit>0?new sO(e.i.segmentPrefetchLimit,t,function(t,n,i){return ui(t,n,i||null,e.i.retryParameters,e.g.Gc)},0>e.g.Za(),e.g.wm):null}function s6(e,t,n,i){if(t.Ba)return(n=t.Ba.current())&&t.Ua&&.001>Math.abs(t.Ua.startTime-n.startTime)&&(n=t.Ba.next().value),n;if(t.Ua||i)return n=t.Ua?t.Ua.endTime:i,e=0>e.g.Za(),t.stream.segmentIndex&&(t.Ba=t.stream.segmentIndex.fc(n,!1,e)),t.Ba&&t.Ba.next().value;var r=Math.max(n-(i=e.j.sequenceMode||ud(e)?0:e.i.inaccurateManifestTolerance),0);e=0>e.g.Za();var a=null;return i&&(t.stream.segmentIndex&&(t.Ba=t.stream.segmentIndex.fc(r,!1,e)),a=t.Ba&&t.Ba.next().value),a||(t.stream.segmentIndex&&(t.Ba=t.stream.segmentIndex.fc(n,!1,e)),a=t.Ba&&t.Ba.next().value),a}function s7(e,t,n,i,r,a,o,s){var u,l,c,d,h;return F(function(p){switch(p.g){case 1:if(u=ti,l=uf(e),R(p,2),t.Ec=i,t.Dc=r,o&&(t.Kf=o),s&&(t.Lf=s),t.Mf=n,c=e.j.sequenceMode||"HLS"==e.j.type,d=null,t.type===u.Ga?d=e.h.get(u.na):t.type===u.na&&(d=e.h.get(u.Ga)),!(d&&d.stream&&d.stream.isAudioMuxedInVideo)){p.B(4);break}return M(p,oG(e.g.ha,d.type,n,i,r,c,d.stream.mimeType,d.stream.codecs,l),4);case 4:return M(p,oG(e.g.ha,t.type,n,i,r,c,a.mimeType||t.stream.mimeType,a.
1codecs||t.stream.codecs,l),6);case 6:D(p,0);break;case 2:throw h=N(p),t.Ec=null,t.Dc=null,t.Kf=null,t.Lf=null,t.Mf=null,h}})}function s9(e,t,n,i,r,a,o,s){var u,l,c,d;return o=void 0!==o&&o,s=void 0!==s&&s,F(function(h){switch(h.g){case 1:return u=i.closedCaptions&&i.closedCaptions.size>0,e.i.shouldFixTimestampOffset&&(l="video/mp4"==i.mimeType||"audio/mp4"==i.mimeType,c=null,r.ia&&(c=r.ia.timescale),l&&c&&"video"===i.type&&"DASH"==e.j.type&&(new rR).box("moof",rP).box("traf",rP).X("tfdt",function(n){var i,a,o,s;return F(function(u){return(i=am(n.reader,n.version).baseMediaDecodeTime)?(a=-i/c,(Number(t.Mf)||0)<a)?(o=t.Ec,s=t.Dc,M(u,s7(e,t,a,o,s,r),0)):u.B(0):u.return()})}).parse(a,!1,o)),M(h,ue(e,t,n),2);case 2:return rx(e.l),d=t.sd,t.sd=!1,M(h,e.g.Mi(t.type,a),3);case 3:return M(h,oF(e.g.ha,t.type,a,r,i,u,d,s,o),4);case 4:rx(e.l),L(h)}})}function ue(e,t,n){var i,r,a,o,s,u,l,c,d;return F(function(h){return 1==h.g?(e.H==t&&(e.H=null),(i=t.stream.segmentIndex)instanceof sx&&(i.eb(e.j.presentationTimeline.Nb()),r=[],function(e,t){e=E(e.h);for(var n=e.next();!n.done;n=e.next())t(n.value)}(i,function(e){r.push(e.qf())})),a=Math.max(e.i.bufferBehind*e.D,e.j.presentationTimeline.h),null==(o=oq(e.g.ha,t.type)))?h.return():(s=n-o,u=e.i.evictionGoal,l=e.j.presentationTimeline.hc(),c=e.j.presentationTimeline.Mb(),d=s-a,c-l>u&&(d=Math.max(s-a,l-u-o)),d<=u?h.return():M(h,e.g.ha.remove(t.type,o,o+d,r),2)):4!=h.g?(rx(e.l),e.H?M(h,ue(e,e.H,n),4):h.B(0)):void(rx(e.l),L(h))})}function ut(e){return e&&e.type==tn&&("application/cea-608"==e.stream.mimeType||"application/cea-708"==e.stream.mimeType)}function un(e,t,n,i){var r,a,o,s,u;return F(function(l){switch(l.g){case 1:if(r=n.jc())return l.return(r);if(a=null,t.ma){var c=t.ma,d=c.g;n instanceof aX&&(d=c.j),d.has(n)?(c=d.get(n),i&&(c.ri=i),a=c.Fe):a=null}return a||(a=ui(n,t.stream,i||null,e.i.retryParameters,e.g.Gc)),o=0,t.Ba&&(o=t.Ba.h),t.ab=a,M(l,a.promise,2);case 2:if(s=l.h,t.ab=null,u=s.data,!n.aesKey){l.B(3);break}return M(l,sW(u,n.aesKey,o),4);case 4:u=l.h;case 3:return l.return(u)}})}function ui(e,t,n,i,r,a){a=void 0!==a&&a;var o=e instanceof aZ?e:void 0;return(e=sZ(e.S(),e.startByte,e.endByte,i,n)).contentType=t.type,r.request(rw,e,{type:+!!o,stream:t,segment:o,isPreload:a})}function ur(e,t,n,i){var r,a;return F(function(o){return 1==o.g?(t.wc=!1,t.ce=!1,t.Dd=0,t.ec=!0,t.Ua=null,t.Ba=null,t.ma&&!e.m.has(t.stream)&&sj(t.ma),i?(r=e.g.Bc(),a=e.g.ha.getDuration(),M(o,e.g.ha.remove(t.type,r+i,a),3)):M(o,oV(e.g.ha,t.type),4)):3!=o.g?(rx(e.l),n?M(o,e.g.ha.flush(t.type),3):o.B(3)):void(rx(e.l),t.ec=!1,t.endOfStream=!1,t.Ra||t.yb||ua(e,t,0),L(o))})}function ua(t,n,i){var r=n.type;(r!=tn||t.h.has(r))&&(n.yb=new iS(function(){var i;return F(function(r){if(1==r.g){var a,o,s,u,l,c,d,h,p,f,g;return R(r,2),M(r,(a=t,o=n,F(function(t){switch(t.g){case 1:if(rx(a.l),s=ti,o.Ra||null==o.yb||o.ec)return t.return();if(o.yb=null,!o.wc){t.B(2);break}return M(t,ur(a,o,o.ce,o.Dd),3);case 3:case 8:return t.return();case 2:for(var n=a,i=o,r=E(n.L.entries()),m=r.next();!m.done;m=r.next()){var v=E(m.value);m=v.next().value,v=v.next().value,m.includes(i.type)&&(v(),n.L.delete(m))}if(o.stream.segmentIndex){t.B(4);break}return u=o.stream,R(t,5),M(t,o.stream.createSegmentIndex(),7);case 7:D(t,6);break;case 5:return l=N(t),M(t,uu(a,o,l),8);case 6:if(u!=o.stream)return u.closeSegmentIndex&&u.closeSegmentIndex(),o.Ra||o.yb||ua(a,o,0),t.return();case 4:if(!o.Qc||o.Qc.stream.segmentIndex){t.B(9);break}return R(t,11),M(t,o.Qc.stream.createSegmentIndex(),13);case 13:D(t,9);break;case 11:N(t);case 9:R(t,14),null!=(c=function(t,n){if(ut(n))return S=t.g.ha,A=n.stream.originalId||"",k=oj(S,"video")||0,ib(S.h,A,k),null;if(n.type==tn&&(I=t.g.ha).h&&ib(I.h,"",0),n.stream.isAudioMuxedInVideo&&"audio"==n.type)return null;if(n.type!=tn&&oU(t.g.ha))return uc(t,!0),null;var i,r,a,o,s,u,l,c,d,h,p,f,g,m,v,y,b,T,w,S,A,k,I,C,P,O,_=t.i.updateIntervalSeconds/Math.max(1,Math.abs(t.g.Za()));if(!oN(t.g.ha)&&n.type!=tn)return _/2;var U=t.g.Bc();if("audio"===n.type)for(var q=E(t.m.keys()),j=q.next();!j.done;j=q.next())(j=t.m.get(j.value)).eb(U,!0),s_(j,U);q=n.Ua?n.Ua.endTime:U;var B=(C=t.g.ha,P=n.type,O=U,P==tn?null==(C=C.h).h||C.h<O?0:C.h-Math.max(O,C.g):a3(C=oB(C,P),O));j=Math.max(1,Math.max(t.i.rebufferingGoal,t.i.bufferingGoal)*t.D);var V=t.j.presentationTimeline.getDuration()-q,G=oj(t.g.ha,n.type);if(V<1e-6&&G)return n.endOfStream=!0,"video"==n.type&&(t=t.h.get(tn))&&ut(t)&&(t.endOfStream=!0),null;if(n.endOfStream=!1,B>=j)return _/2;if(V=!n.Ba,!(G=s6(t,n,U,G)))return _;B=n.xb;var H=G.ia;B&&H&&aY(H,B)&&(B.g=H.g),B=!1,V&&n.Kg&&(B=!0,n.Kg=!1),V=1/0,H=E(H=Array.from(t.h.values())
1);for(var z=H.next();!z.done;z=H.next())ut(z=z.value)||z.Ba&&!z.Ba.current()||(V=Math.min(V,z.Ua?z.Ua.endTime:U));return q>=V+t.j.presentationTimeline.h?_:(n.ma&&n.Ba&&!t.m.has(n.stream)&&(n.ma.eb(G.startTime+.001),s_(n.ma,G.startTime).catch(function(){})),ud(t)&&function(e,t,n){if(t.type===tn)return!1;var i=t.xb;if(!i)return!1;var r=n.ia;if(n=i.g!==r.g,"reset_to_encrypted"===e.i.crossBoundaryStrategy&&(i.encrypted||r.encrypted||(n=!1),i.encrypted&&(e.i.crossBoundaryStrategy="keep")),"RESET_ON_ENCRYPTION_CHANGE"===e.i.crossBoundaryStrategy&&i.encrypted==r.encrypted&&(n=!1),"keep"===e.i.crossBoundaryStrategy&&i.mimeType&&r.mimeType){var a=is(ic(i.mimeType)),o=is(ic(i.mimeType));i.mimeType==r.mimeType&&a==o&&(n=!1)}return n&&(e.J||t.sd)&&(e.J=!1,uc(e,!0).then(function(){var t=(new Map).set("oldEncrypted",i.encrypted).set("newEncrypted",r.encrypted);e.g.onEvent(new ee("boundarycrossed",t))})),n}(t,n,G)||((i=t,r=n,a=U,o=G,s=B,F(function(t){var n,S,A,x,k,I,C,P,O,_,U,q,j,B,V,G,H,z,K,W,X,Y,Z,J,Q,$,et;switch(t.g){case 1:if(u=ti,l=r.stream,c=r.Ba,r.Ra=!0,R(t,2),2==o.Vc())throw new eU(1,1,1011);return M(t,(n=i,S=r,A=o,x=s,F(function(e){var t,i,r,a,o,s,u;switch(e.g){case 1:if(k=ti,I=null==S.Ua,C=[],P=Math.max(0,Math.max(A.appendWindowStart,n.Z)-.1),O=Math.min(A.appendWindowEnd,n.W)+.1,U=iu(_=A.codecs||S.stream.codecs),q=il(A.mimeType||S.stream.mimeType),(j=A.timestampOffset)==S.Mf&&P==S.Ec&&O==S.Dc&&U==S.Kf&&q==S.Lf){e.B(2);break}if(!(S.Kf&&S.Lf&&(t=n.g.ha,i=S.type,(t=o2(t,i,q,_,uf(n))).tc&&t.tc.destroy(),t.type==o8))||(B=null,S.type===k.Ga?B=n.h.get(k.na):S.type===k.na&&(B=n.h.get(k.Ga)),!B)){e.B(3);break}return M(e,us(B).catch(function(){}),5);case 5:B.xb=null,B.Ec=null,B.Dc=null,s3(n,B);case 3:return M(e,s7(n,S,j,P,O,A,U,q),2);case 2:return aY(A.ia,S.xb)||(S.xb=A.ia,A.l&&A.ia&&(V=un(n,S,A.ia),G=function(){var e,t,i,r,a,o,s,u,l,c,d;return F(function(h){switch(h.g){case 1:return R(h,2),M(h,V,4);case 4:return e=h.h,rx(n.l),t=null,i=new Map,r={projection:null,hfov:null},S.stream&&(a=S.stream.videoLayout)&&((o=a.split("/")).includes("PROJ-RECT")?r.projection="rect":o.includes("PROJ-EQUI")?r.projection="equi":o.includes("PROJ-HEQU")?r.projection="hequ":o.includes("PROJ-PRIM")?r.projection="prim":o.includes("PROJ-AIV")&&(r.projection="hequ")),(s=new rR).box("moov",rP).box("trak",rP).box("mdia",rP).X("mdhd",function(e){t=av(e.reader,e.version).timescale}).box("hdlr",function(e){switch((e=e.reader).skip(8),e.pd()){case"soun":i.set(k.na,t);break;case"vide":i.set(k.Ga,t)}t=null}),S.type!==k.Ga||r.projection||s.box("minf",rP).box("stbl",rP).X("stsd",rD).box("encv",rN).box("avc1",rN).box("avc3",rN).box("hev1",rN).box("hvc1",rN).box("dvav",rN).box("dva1",rN).box("dvh1",rN).box("dvhe",rN).box("dvc1",rN).box("dvi1",rN).box("vexu",rP).box("proj",rP).X("prji",function(e){r.projection=e.reader.pd()}).box("hfov",function(e){r.hfov=e.reader.$()/1e3}),s.parse(e,!0,!0),S.type===k.Ga&&function(e,t){if(e.R.projection!=t.projection||e.R.hfov!=t.hfov){if(null!=t.projection||null!=t.hfov){var n=(new Map).set("detail",t);n=new ee("spatialvideoinfo",n)}else n=new ee("nospatialvideoinfo");n.cancelable=!0,e.g.onEvent(n),e.R=t}}(n,r),i.has(S.type)?A.ia.timescale=i.get(S.type):null!=t&&(A.ia.timescale=t),(u=S.stream.segmentIndex)instanceof sx&&(l=function(e,t){e=E(e.h);for(var n=e.next();!n.done;n=e.next())if(null!=(n=n.value).find(t))return n.qf();return -1}(u,A.startTime)),c=S.stream.closedCaptions&&S.stream.closedCaptions.size>0,M(h,n.g.Mi(S.type,e),5);case 5:return M(h,oF(n.g.ha,S.type,e,null,S.stream,c,S.sd,x,!1,!1,l),6);case 6:D(h,0);break;case 2:throw d=N(h),S.xb=null,d}})},H=A.startTime,I&&null!=(z=oj(n.g.ha,S.type))&&(H=z),n.g.Tl(H,A.ia),C.push(G()))),K=S.Ua?S.Ua.i:-1,A.i!=K&&C.push((r=n.g.ha,a=S.type,o=A.startTime,F(function(e){return 1==e.g?a==(s=ti).Va||(a==s.Ga&&(r.hb=new ra),!r.J||(u=oj(r,a))&&.15>Math.abs(u-o))?e.return():(oZ(r,a,function(){return oK(r,a)},null),r.m&&oZ(r,s.na,function(){return oK(r,s.na)},null),M(e,oZ(r,a,function(){return oW(r,a,o)},null),2)):r.m?M(e,oZ(r,s.na,function(){return oW(r,s.na,o)},null),0):e.B(0)}))),M(e,Promise.all(C),0)}})),4);case 4:if(rx(i.l),i.F)return t.return();if(d="video/mp4"==l.mimeType||"audio/mp4"==l.mimeType,h=e.ReadableStream,i.i.lowLatencyMode&&i.j.isLowLatency&&h&&d&&("HLS"!=i.j.type||o.u))return f=new Uint8Array(0),m=g=!1,y=function(e){var t,n,u;return F(function(c){switch(c.g){case 1:if(g||(m=!0,rx(i.l),i.F))return c.return();if(R(c,2),f=e4(f,e),t=!1,n=0,(new rR).box("mdat",function(e){n=e.size+e.start,t=!0}).parse(f,!1,!0),!t){c.B(4);break}return u=f.subarray(0,n),f=f.subarray(n),M(c,s9(i,r,a,l,o,u,!0,s),5);case 5:r.ma&&r.Ba&&s_(r.ma,o.startTime,!0);case 4:D(c,0);break;case 2:v=N(c),L(c)}})},M(t,un(i,r,o,y),9);return M(t,un(i,r,o),7);case 7:if(p=t.h,rx(i.l),i.F)return t.return();return rx(i.l),r.wc?(r.Ra=!1,ua(i,r,0),t.return()):M(t,s9(i,r,a,l,o,p,!1,s),6);case 9:if(b=t.h,v)throw v;if(m){t.B(10);break}return g=!0,rx(i.l),i.F?t.return():r.wc?(r.Ra=!1,ua(i,r,0),t.return()):M(t,s9(i,r,a,l,o,b,!1,s),10);case 10:r.ma&&r.Ba&&s_(r.ma,o.startTime,!0);case 6:if(rx(i.l),i.F)return t.return();r.Ua=o,c.next(),r.Ra=!1,r.Wh=!1,JSON.stringify(i.g.ha.Rc()[r.type]),r.wc||(T=null,r.type===u.Ga?T=i.h.get(u.na):r.type===u.na&&(T=i.h.get(u.Ga)),T&&T.type==u.na?i.g.Wf(o,r.stream,T.stream.isAudioMuxedInVideo):i.g.Wf(o,r.stream,r.stream.codecs.includes(","))),uo(r),ua(i,r,0),D(t,0);break;case 2:if(w=N(t),rx(i.l,w),i.F)return t.return();
1if(r.Ra=!1,7001==w.code)r.Ra=!1,uo(r),ua(i,r,0),t.B(0);else if(r.type==u.Va&&i.i.ignoreTextStreamFailures)i.h.delete(u.Va),t.B(0);else{if(3017==w.code){return M(t,(W=i,X=r,Y=w,F(function(e){switch(e.g){case 1:if(Array.from(W.h.values()).some(function(e){return e!=X&&e.Wh})){e.B(2);break}if(W.i.avoidEvictionOnQuotaExceededError){if(Z=ul(W,Y),W.g.disableStream(X.stream,Z))return e.return();return ua(W,X,4),e.return()}if((J=Math.round(100*W.D))>20){W.D-=.2,e.B(3);break}if(J>4){W.D-=.04,e.B(3);break}if(Q=ul(W,Y),!W.g.disableStream(X.stream,Q)){X.ve=!0,W.F=!0,W.g.onError(Y),e.B(5);break}return W.D=1,$=W.g.Bc(),M(e,ue(W,X,$),5);case 5:return e.return();case 3:return X.Wh=!0,et=W.g.Bc(),M(e,ue(W,X,et),2);case 2:ua(W,X,4),L(e)}})),0)}return r.ve=!0,1==w.category&&r.ma&&sV(r.ma,o),w.severity=2,M(t,uu(i,r,w),0)}}})).catch(function(){}),n.Qc&&function e(t,n,i,r){var a,o,s,u,l,c,d,h,p,f;return F(function(g){switch(g.g){case 1:for(u=(s=(o=(a=n.stream).segmentIndex)&&o.fc(i))&&s.next().value;u&&t.O.includes(u.startTime);)u=s&&s.next().value;if(!u){g.B(0);break}if(!(l=u.ia)||aY(l,n.xb)){g.B(3);break}return n.xb=l,R(g,4),M(g,un(t,n,l),6);case 6:c=g.h;var m=t.g.ha;m.D&&t_(m.D,c,0,a),t.O=[],D(g,3);break;case 4:throw d=N(g),n.xb=null,d;case 3:if(n.Ua&&n.Ua==u){g.B(0);break}return n.Ua=u,R(g,8),M(g,un(t,n,u),10);case 10:h=g.h,(m=t.g.ha).D&&t_(m.D,h,0,a),t.O.push(u.startTime),D(g,9);break;case 8:throw p=N(g),n.Ua=null,p;case 9:if(f=Math.max.apply(Math,[0].concat(x(t.O))),t.g.Bc()+r>f)return M(g,e(t,n,u.startTime,r),0);g.B(0)}})}(t,n.Qc,U,j)),null)}(a,o))&&(ua(a,o,c),o.ve=!1),D(t,15);break;case 14:return d=N(t),M(t,uu(a,o,d),16);case 16:return t.return();case 15:if(o.type===s.Va)return t.return();if(h=[],o.stream&&!o.stream.isAudioMuxedInVideo&&h.push(o),p=o.type===s.na?s.Ga:s.na,(f=a.h.get(p))&&f.stream&&!f.stream.isAudioMuxedInVideo&&h.push(f),!a.M||!h.every(function(e){return e.endOfStream})){t.B(0);break}return M(t,a.g.ha.endOfStream(),18);case 18:rx(a.l),0!=(g=a.g.ha.getDuration())&&g<a.j.presentationTimeline.getDuration()&&a.j.presentationTimeline.Fb(g),L(t)}})),4)}if(2!=r.g)return D(r,0);i=N(r),t.g&&t.g.onError(i),L(r)})}).Y(i))}function uo(e){null!=e.yb&&(e.yb.stop(),e.yb=null)}function us(e){return F(function(t){return e.ab?M(t,e.ab.abort(),0):t.B(0)})}function uu(e,t,n){var i;return F(function(r){if(1==r.g)return 3024==n.code?(t.Ra=!1,uo(t),ua(e,t,0),r.return()):M(r,ri(e.V),2);if(rx(e.l),1===n.category&&1003!=n.code){if(t.$c)return s$(e,!1),r.return();i=ul(e,n),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.i.failureCallback(n),L(r)})}function ul(e,t){return 0===e.i.maxDisabledTime&&1011==t.code?1:e.i.maxDisabledTime}function uc(e,t){var n,i,r,a,o,s;return t=void 0!==t&&t,F(function(u){if(1==u.g){if(n=Date.now()/1e3,i=e.i.minTimeBetweenRecoveries,!t){if(!e.i.allowMediaSourceRecoveries||n-e.P<i)return u.return(!1);e.P=n}return r=ti,(a=e.h.get(r.na))&&(uo(a),a.ab&&(a.ab.abort(),a.ab=null),a.xb=null,a.Ec=null,a.Dc=null,a.Ra=!1,a.wc=!1,a.Dd=0,a.ce=!1,a.ec=!1,a.Ba&&a.Ba.$h()),(o=e.h.get(r.Ga))&&(uo(o),o.ab&&(o.ab.abort(),o.ab=null),o.xb=null,o.Ec=null,o.Dc=null,o.Ra=!1,o.wc=!1,o.Dd=0,o.ce=!1,o.ec=!1,o.Ba&&o.Ba.$h()),s=e.g.video.paused,M(u,o0(e.g.ha,uf(e)),2)}return!o||o.ec||o.Ra||o.yb||ua(e,o,0),!a||a.ec||a.Ra||a.yb||ua(e,a,0),s||e.g.video.play(),u.return(!0)})}function ud(e){if("keep"!==e.i.crossBoundaryStrategy)return!0;var t=eB();if(t.Gb()){if(!t.pg()){for(n=(t=E(e.h.keys())).next();!n.done;n=t.next())if((n=e.h.get(n.value)).type!==ti.Va&&(n=n.stream)&&n.fullMimeTypes&&n.fullMimeTypes.size>1){for(e=new Set,n=(t=E(n.fullMimeTypes)).next();!n.done;n=t.next())e.add(io(n.value));return e.size>1}}}else{t=E(e.h.keys());for(var n=t.next();!n.done;n=t.next())if((n=e.h.get(n.value)).type!==ti.Va&&(n=n.stream)&&n.fullMimeTypes&&n.fullMimeTypes.size>1)return!0}return!1}function uh(e){e.G.Sa(),ud(e)&&(e.G.o(e.g.video,"waiting",function(){return up(e)}),e.G.o(e.g.video,"timeupdate",function(){return up(e)}))}function up(e){if(ud(e)){e.K.stop();var t=e.g.Bc(),n=e.h.get("video")||e.h.get("audio");n&&(n=n.xb)&&null!==n.g&&((t=n.g-t)<0||t>1||(e.I=n.g+.1,e.K.Y(t)))}}function uf(e,t){function n(t){if(t.fullMimeTypes&&t.fullMimeTypes.size>1&&e.h.has(t.type)){var n=e.h.get(t.type),i=oj(e.g.ha,n.type),r=e.g.Bc();
1(n=s6(e,n,r,i))&&n.codecs&&n.mimeType&&(t.codecs=n.codecs,t.mimeType=n.mimeType)}}t=void 0!==t&&t;var i=new Map,r=e.u.audio;return r&&(n(r),i.set("audio",r)),(r=e.u.video)&&(n(r),i.set("video",r)),t&&e.C&&i.set(tn,e.C),i}function ug(){}function um(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]=t7(d):s?e[a]=t[a]:d.constructor==Object&&t[a]&&t[a].constructor==Object?(e[a]||(e[a]=t7(d)),c=um(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?(er("Invalid config, wrong type for "+c),l=!1):"function"==typeof n[a]&&n[a].length!=t[a].length?(ea("Unexpected number of arguments for "+c),e[a]=t[a]):e[a]=Array.isArray(e[a])?t[a].slice():t[a]:(er("Invalid config, unrecognized key "+c),l=!1)}return l}function uv(e,t){for(var n={},i=n,r=0,a=0;!((r=e.indexOf(".",r))<0);)(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}(p=sQ.prototype).destroy=function(){return this.l.destroy()},p.configure=function(e){if(this.i=e,this.V=new rn({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.h.get("audio");t&&t.ma&&(sj(t.ma),t.ma=null),t=E(this.m.keys());for(var n=t.next();!n.done;n=t.next())n=n.value,sj(this.m.get(n)),this.m.delete(n)}for(e.disableTextPrefetch&&(t=this.h.get(tn))&&t.ma&&(sj(t.ma),t.ma=null),e.disableVideoPrefetch&&(t=this.h.get("video"))&&t.ma&&(sj(t.ma),t.ma=null),n=(t=E(this.h.keys())).next();!n.done;n=t.next())(n=this.h.get(n.value)).ma?(sF(n.ma,e.segmentPrefetchLimit),e.segmentPrefetchLimit>0||(sj(n.ma),n.ma=null)):e.segmentPrefetchLimit>0&&(n.ma=s8(this,n.stream));e.disableAudioPrefetch||function(e){for(var t=e.i.segmentPrefetchLimit,n=e.i.prefetchAudioLanguages,i=E(e.j.variants),r=i.next(),a={};!r.done;a={Tb:void 0},r=i.next())if(a.Tb=r.value,a.Tb.audio)if(e.m.has(a.Tb.audio)){if(sF(r=e.m.get(a.Tb.audio),t),!(t>0&&n.some(function(e){return function(t){return ts(e.Tb.audio.language,t)}}(a)))){var o=e.h.get(a.Tb.audio.type);r!==(o&&o.ma)&&sj(r),e.m.delete(a.Tb.audio)}}else!(t<=0)&&n.some(function(e){return function(t){return ts(e.Tb.audio.language,t)}}(a))&&(r=s8(e,a.Tb.audio))&&(a.Tb.audio.segmentIndex||a.Tb.audio.createSegmentIndex(),e.m.set(a.Tb.audio,r))}(this)},p.start=function(e){var t=this;return F(function(n){if(1==n.g){var i,r,a,o,s,u,l,c,d;return M(n,(i=t,r=e||new Map,F(function(e){if(1==e.g){if(!i.u)throw new eU(2,5,5006);return a=uf(i,!0),M(e,i.g.ha.init(a,i.j.sequenceMode,i.j.type,i.j.ignoreManifestTimestampsInSegmentsMode),2)}for(rx(i.l),i.updateDuration(),s=(o=E(a.keys())).next();!s.done;s=o.next())u=s.value,l=a.get(u),i.h.has(u)||(c=s4(i,l),r.has(l.id)&&(function(e,t){e.l=t,e=E(e.g.values());for(var n=e.next();!n.done;n=e.next())n.value.g=t}(d=r.get(l.id),function(e,t,n){return ui(e,t,n||null,i.i.retryParameters,i.g.Gc)}),c.ma=d),i.h.set(u,c),ua(i,c,0));uh(i),L(e)})),2)}rx(t.l),t.M=!0,L(n)})},p.sd=function(){if(this.g){for(var e=this.g.Bc(),t=E(this.h.keys()),n=t.next();!n.done;n=t.next()){var i,r=n.value;if(n=this.h.get(r),(i=!this.J)&&(i=this.g.ha,i=!(i=r==tn?null!=(i=i.h).g&&null!=i.h&&e>=i.g&&e<i.h:a5(i=oB(i,r),e))),i){if(this.P=0,n.ma&&(n.ma.h=null),"audio"===n.type){i=E(this.m.values());for(var a=i.next();!a.done;a=i.next())a.value.h=null}n.Ba=null,(null!=oj(this.g.ha,r)||n.Ra)&&s3(this,n),n.ab&&(n.ab.abort(),n.ab=null),r===tn&&(r=this.g.ha).K&&r.K.ge(),n.sd=!0}!this.J||n.ec||n.Ra||n.yb||ua(this,n,0)}ud(this)&&up(this)}},p.updateDuration=function(){var e=ap(),t=this.j.presentationTimeline.getDuration();t<1/0?(e&&(this.A&&this.A.stop(),oH(this.g.ha)),this.g.ha.Fb(t)):e?(this.A&&this.A.xa(.5),this.g.ha.Fb(1/0)):this.g.ha.Fb(0x100000000)};function uy(e,t){function n(e){return e&&"object"==typeof e&&!Array.isArray(e)}return!function e(t){for(var i=E(Object.keys(t)),r=i.next();!r.done;r=i.next())if(!(t[r=r.value]instanceof HTMLElement))if(n(t[r])&&0===Object.keys(t[r]).length)delete t[r];else{var a=t[r];Array.isArray(a)&&0===a.length||"function"==typeof t[r]?delete t[r]:n(t[r])&&(e(t[r]),0===Object.keys(t[r]).length&&delete t[r])}}(e=function e(t,i){return Object.keys(t).reduce(function(r,a){var o=t[a];return i.hasOwnProperty(a)?o instanceof HTMLElement&&i[a]instanceof HTMLElement?o.isEqualNode(i[a])||(r[a]=o):n(o)&&n(i[a])?(Object.keys(o=e(o,i[a])).length>0||!n(o))&&(r[a]=o):Array.isArray(o)&&Array.isArray(i[a])?tx(o,i[a])||(r[a]=o):Number.isNaN(o)&&Number.isNaN(i[a])||o!==i[a]&&(r[a]=o):r[a]=o,r},{})}(e,t)),e}function ub(){}function uT(e){return new eg(e=eW(e)).Jb}
1function uw(e,t,n){function i(e){eO(a).setUint32(o,e.byteLength,!0),o+=4,a.set(eD(e),o),o+=e.byteLength}if(!n||!n.byteLength)throw new eU(2,6,6015);var r="string"==typeof t?eY(t,!0):t,a=new Uint8Array(12+(e=eY(e=eW(e),!0)).byteLength+r.byteLength+n.byteLength),o=0;return i(e),i(r),i(n),a}function uS(e,t,n){return"skd"!==t?e:(t=n.serverCertificate,n=eW(e).split("skd://").pop(),uw(e,n,t))}function uA(e,t){2===e&&(e=t.drmInfo)&&i7(e.keySystem)&&(t.headers["Content-Type"]="application/octet-stream")}function uE(e,t,n){for(n=void 0===n||n,this.h=e,this.g=new Set([e]),t=(e=E(t=t||[])).next();!t.done;t=e.next())this.add(t.value,n)}function ux(e,t){return e.mimeType==t.mimeType&&(e=e.codecs.split(",").map(function(e){return iu(e)}),tx(e,t=t.codecs.split(",").map(function(e){return iu(e)})))}function uk(){this.h=this.g=null}function uI(){}function uC(){var t=1/0,n=eB();navigator.connection&&navigator.connection.saveData&&(t=360);var i={retryParameters:rr(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(t,n,i){return"apple"===e.shakaMediaKeysPolyfill&&"skd"==n&&(n=i.serverCertificate,i=uT(t),t=uw(t,i,n)),t},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1,minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},r="reload";n.Gb()&&(r="smooth");var a={retryParameters:rr(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,disableIFrames:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,ignoreSupplementalCodecs:!1,updatePeriod:-1,ignoreDrmInfo:!1,enableAudioGroups:!0,dash:{clockSyncUri:"",disableXlinkProcessing:!0,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","urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2":"com.apple.fps","urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c":"com.huawei.wiseplay"},manifestPreprocessor:uR,manifestPreprocessorTXml:uP,sequenceMode:!1,useStreamOnceInPeriodFlattening:!1,enableFastSwitching:!0},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',liveSegmentsDelay:3,sequenceMode:n.wd(),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,allowRangeRequestsToGuessMimeType:!1},mss:{manifestPreprocessor:uR,manifestPreprocessorTXml:uP,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}},o={trackSelectionCallback:function(e){return F(function(t){return t.return(e)})},downloadSizeCallback:function(e){var t;return F(function(n){return 1==n.g?navigator.storage&&navigator.storage.estimate?M(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},s={drm:i,manifest:a,streaming:{retryParameters:rr(),failureCallback:function(e){},rebufferingGoal:0,bufferingGoal:10,bufferBehind:30,evictionGoal:1,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,gapPadding:0,gapJumpTimerTime:.25,durationBackoff:1,safeSeekOffset:5,safeSeekEndOffset:0,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsForFairPlay:!0,inaccurateManifestTolerance:2,lowLatencyMode:!0,preferNativeDash:!1,preferNativeHls:!1,updateIntervalSeconds:1,observeQualityChanges:!1,maxDisabledTime:30,segmentPrefetchLimit:1,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,preloadNextUrlWindow:30,loadTimeout:30,clearDecodingCache:!1,dontChooseCodecs:!1,shouldFixTimestampOffset:!1,avoidEvictionOnQuotaExceededError:!1,crossBoundaryStrategy:"keep",returnToEndOfLiveWindowWhenOutside:!1},networking:{forceHTTP:!1,forceHTTPS:!1,minBytesForProgressEvents:16e3},mediaSource:{codecSwitchingStrategy:r,addExtraFeaturesToSourceBuffer:function(e){return""},forceTransmux:!1,insertFakeEncryptionInInit:!0,correctEc3Enca:!1,modifyCueCallback:function(e,t,n){},dispatchAllEmsgBoxes:!1,useSourceElements:!0,durationReductionEmitsUpdateEnd:!0},offline:o,abrFactory:function(){return new i1},adaptationSetCriteriaFactory:function(){return new(Function.prototype.bind.apply(uk,[null].concat(x(V.apply(0,arguments)))))},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,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:5,minTimeToSwitch:0,preferNetworkInformationBandwidth:!1,removeLatencyFromFirstPacketTime:!0},autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredAudioRole:"",preferredVideoRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoHdrLevel:"AUTO",preferredVideoLayout:"",preferredVideoLabel:"",preferredVideoCodecs:[],preferredAudioCodecs:[],preferredTextFormats:[],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,fontScaleFactor:1},textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[],version:1,targets:[]},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1,poster:!0},ads:{customPlayheadTracker:!1,skipPlayDetection:!1,supportsMultipleMediaElements:!0,disableHLSInterstitial:!1,disableDASHInterstitial:!1,allowPreloadOnDomElements:!0,allowStartInMiddleOfInterstitial:!0},ignoreHardwareResolution:!1,queue:{preloadNextUrlWindow:1/0,preloadPrevItem:!0,repeatMode:0}};return o.trackSelectionCallback=function(e){return F(function(t){return t.return(function(e,t,n){var i=n;"AUTO"==i&&(n=e.some(function(e){return!!e.hdr&&"HLG"==e.hdr}),i=eB().Jd(n));var r=e.filter(function(e){return"variant"==e.type&&(!e.hdr||e.hdr==i)});n=[];var a=tg(t,r.map(function(e){return e.language}));a&&(n=r.filter(function(e){return tc(e.language)==a})),0==n.length&&(n=r.filter(function(e){return e.primary})),0==n.length&&(r.map(function(e){return e.language}),n=r);var o=n.filter(function(e){return e.height&&e.height<=480});for(o.length&&(o.sort(function(e,t){return t.height-e.height}),n=o.filter(function(e){return e.height==o[0].height})),t=[],n.length&&(r=Math.floor(n.length/2),n.sort(function(e,t){return e.bandwidth-t.bandwidth}),t.push(n[r])),n=(e=E(e)).next();!n.done;n=e.next())(n=n.value).type!=tn&&"image"!=n.type||t.push(n);return t}(e,s.preferredAudioLanguage,s.preferredVideoHdrLevel))})},n.bb(s)}function uM(){return{streaming:{inaccurateManifestTolerance:0,segmentPrefetchLimit:2,updateIntervalSeconds:.1,maxDisabledTime:1,retryParameters:{baseDelay:100}},manifest:{dash:{autoCorrectDrift:!1},retryParameters:{baseDelay:100}},drm:{retryParameters:{baseDelay:100}}}}
1function uL(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 um(e,t,n||uC(),i,"")}function uR(e){var t,n;return t=[e],n=e,t&&n}function uP(e){var t,n;return t=[e],n=e,t&&n}function uD(){this.g=null,this.h=[]}function uN(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration),e=E(e.h);for(var i=e.next();!i.done;i=e.next())n+=(i=i.value).state==t?i.duration:0;return n}function uO(){this.i=this.h=null,this.g=[]}function u_(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 uU(){this.D=this.V=NaN,this.l="",this.j=this.nj=this.A=this.C=this.K=this.F=this.u=this.m=this.J=this.G=this.i=this.R=this.T=this.M=this.O=this.P=NaN,this.L=0,this.H=this.I=NaN,this.g=new uD,this.h=new uO}$("shaka.util.ConfigUtils",ug),ug.getDifferenceFromConfigObjects=uy,ug.convertToConfigObject=uv,ug.mergeConfigObjects=um,$("shaka.config.RepeatMode",{OFF:0,ALL:1,SINGLE:2}),$("shaka.drm.FairPlay",ub),ub.commonFairPlayResponse=function(e,t){if(2===e&&(e=t.originalRequest.drmInfo)&&i7(e.keySystem)){try{var n=ez(t.data)}catch(e){return}if(e=!1,"<ckc>"===(n=n.trim()).substr(0,5)&&"</ckc>"===n.substr(-6)&&(n=n.slice(5,-6),e=!0),!e)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=eP(e2(n)))}},ub.muxFairPlayRequest=function(e,t){uA(e,t)},ub.expressplayFairPlayRequest=function(e,t){if(2===e){var n=t.drmInfo;n&&i7(n.keySystem)&&uA(e,t)}},ub.conaxFairPlayRequest=function(e,t){uA(e,t)},ub.ezdrmFairPlayRequest=function(e,t){uA(e,t)},ub.verimatrixFairPlayRequest=function(e,t){2===e&&(e=t.drmInfo)&&i7(e.keySystem)&&(e=e1(e=eD(t.body)),t.headers["Content-Type"]="application/x-www-form-urlencoded",t.body=eX("spc="+e))},ub.muxInitDataTransform=function(e,t,n){return uS(e,t,n)},ub.expressplayInitDataTransform=function(e,t,n){return uS(e,t,n)},ub.conaxInitDataTransform=function(t,n,i){if("skd"!==n)return t;n=i.serverCertificate,i=eW(t).split("skd://").pop().split("?").shift();var r=new ArrayBuffer(2*(i=e.atob(i)).length);r=eN(r);for(var a=0,o=i.length;a<o;a++)r[a]=i.charCodeAt(a);return uw(t,r,n)},ub.ezdrmInitDataTransform=function(e,t,n){return"skd"!==t?e:(t=n.serverCertificate,n=eW(e).split(";").pop(),uw(e,n,t))},ub.verimatrixInitDataTransform=function(e,t,n){return uS(e,t,n)},ub.initDataTransform=uw,ub.defaultGetContentId=uT,ub.isFairPlaySupported=function(){var e;return F(function(t){return 1==t.g?(e={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},R(t,2),M(t,navigator.requestMediaKeySystemAccess("com.apple.fps",[e]),4)):2!=t.g?t.return(!0):(N(t),t.return(!1))})},uE.prototype.add=function(e,t){var n,i=this.h;if(t=void 0===t||t,!(n=!!i.audio!=!!e.audio||!!i.video!=!!e.video||i.language!=e.language)&&(n=i.audio&&e.audio)){n=i.audio;var r=e.audio;n=!(!((!n.channelsCount||!r.channelsCount||n.channelsCount>2||r.channelsCount>2)&&n.channelsCount!=r.channelsCount||n.spatialAudio!==r.spatialAudio||t&&!ux(n,r))&&tx(n.roles,r.roles)&&n.groupId===r.groupId)}return!n&&(n=i.video&&e.video)&&(i=i.video,n=e.video,n=!((!t||ux(i,n))&&tx(i.roles,n.roles))),!n&&(this.g.add(e),!0)},uE.prototype.values=function(){return this.g.values()},$("shaka.media.AdaptationSet",uE),uk.prototype.configure=function(e){this.g=e},uk.prototype.getConfiguration=function(){return this.g},uk.prototype.create=function(e){if(this.g.language){var t,n,i,r,a,o,s,u,l,c,d,h,p,f,g,m,v=(p=e,f=this.g.language,(g=tg(f=tc(f),p.map(function(e){return tf(e)})))?p.filter(function(e){return g==tf(e)}):[]);v.length&&(m=v)}m||(m=(m=e.filter(function(e){return e.primary})).length?m:e),(t=m,n=this.g.role,e=t.filter(function(e){return!!e.audio&&(n?e.audio.roles.includes(n):0==e.audio.roles.length)})).length&&(m=e),(i=m,r=this.g.videoRole,e=i.filter(function(e){return!!e.video&&(r?e.video.roles.includes(r):0==e.video.roles.length)})).length&&(m=e),this.g.videoLayout&&(a=m,o=this.g.videoLayout,e=a.filter(function(e){return!e.video||!e.video.videoLayout||e.video.videoLayout==o})).length&&(m=e),this.g.hdrLevel&&(e=function(e,t){if("AUTO"==t){var n=e.some(function(e){return!!e.video&&!!e.video.hdr&&"HLG"==e.video.hdr});t=eB().Jd(n)}return e.filter(function(e){return!e.video||!e.video.hdr||e.video.hdr==t})}(m,this.g.hdrLevel)).length&&(m=e);var y=[this.g.channelCount,this.g.preferredAudioChannelCount];
1if((e=y.filter(function(e,t){return e&&y.indexOf(e)===t})).length){for(v=(e=E(e)).next();!v.done;v=e.next())if((v=function(e,t){return e.filter(function(e){return!e.audio||!e.audio.channelsCount||!(e.audio.channelsCount>t)}).sort(function(e,t){return e.audio||t.audio?e.audio?t.audio?(t.audio.channelsCount||0)-(e.audio.channelsCount||0):1:-1:0})}(m,v.value)).length){m=v;break}}this.g.audioLabel&&(s=m,u=this.g.audioLabel,e=s.filter(function(e){return!!e.audio&&!!e.audio.label&&e.audio.label.toLowerCase()==u.toLowerCase()})).length&&(m=e),this.g.videoLabel&&(l=m,c=this.g.videoLabel,e=l.filter(function(e){return!!e.video&&!!e.video.label&&e.video.label.toLowerCase()==c.toLowerCase()})).length&&(m=e),(d=m,h=this.g.spatialAudio,e=d.filter(function(e){return!e.audio||e.audio.spatialAudio==h})).length&&(m=e);var b=[this.g.audioCodec,this.g.activeAudioCodec].concat(x(this.g.preferredAudioCodecs));if((e=b.filter(function(e,t){return e&&b.indexOf(e)===t})).length){for(v=(e=E(e)).next();!v.done;v=e.next())if((v=function(e,t){return e.filter(function(e){return!e.audio||e.audio.codecs==t})}(m,v.value)).length){m=v;break}}return e=eB(),e="smooth"==this.g.codecSwitchingStrategy&&e.Gb(),this.h=new uE(m[0],m,!e)},uk.prototype.getLastAdaptationSet=function(){return this.h},$("shaka.util.PlayerConfiguration",uI),uI.mergeConfigObjects=uL,uI.createDefaultForLL=uM,uI.createDefault=uC;function uq(e,t){e.j=isNaN(e.j)?t:e.j+t}function uj(e,t,n,i){ec.call(this),this.M=e,this.T=t,this.ya=i.networkingEngine,this.u=n,this.D=null,this.ua=0,this.La=i.Ed,this.G=i.Ml,this.Na=i.Nl,this.g=i.config,this.m=this.H=this.h=null,this.ea=!1,this.I=i.Yl,this.oa=!1,this.j=null,this.Z=!1,this.A=null,this.L=new Map,this.sa=!1,this.Fa=i.Xl,this.V=new uU,this.aa=new ra,this.C=new ra,this.O=null,this.l=!1,this.W=i.pk,this.R=this.i=null,this.P=!1,this.K=[],this.J=[],this.F=!0}function uB(e,t,n){(e=t?e.J:e.K)?e.push(n):n()}function uF(e,t){if(e.O=t,e.P=!0,e.K){t=E(e.K);for(var n=t.next();!n.done;n=t.next())(n=n.value)()}e.K=null}function uV(e){if(e.l)throw new eU(2,7,7003)}function uG(e,t){e.dispatchEvent(new ee("onstatechange",(new Map).set("state",t)))}function uH(e,t){var n,i,r;return F(function(a){switch(a.g){case 1:if(!e.h||e.j)return a.return();return uG(e,"drm-engine"),e.ua=Date.now()/1e3,e.j=e.La(),e.G.h=e.j,e.j.configure(e.g.drm,function(){return e.F}),n=iH(e.h.variants),i=!0,e.h&&e.h.presentationTimeline&&(i=e.h.presentationTimeline.U()),M(a,rz(e.j,n,e.h.offlineSessionIds,i),2);case 2:if(uV(e),!t){a.B(3);break}return M(a,e.j.Vb(t),4);case 4:uV(e);case 3:return M(a,ao(e.G,e.h),5);case 5:if(!a.h){a.B(0);break}return r=new ee("trackschanged",void 0),M(a,Promise.resolve(),7);case 7:e.dispatchEvent(r),L(a)}})}function uz(e){if(!e.A){var t=e.g.abrFactory;e.A=t(),e.A.configure(e.g.abr)}return t=iH(e.h.variants),t=e.D.create(t),e.A.setVariants(Array.from(t.values())),e.A.chooseVariant(!0)}function uK(e,t,n){var i,r,a,o;return F(function(s){return 1==s.g?(i=new sO(e.g.streaming.segmentPrefetchLimit||2,t,function(t,n,i){return ui(t,n,i||null,e.g.streaming.retryParameters,e.ya,e.F)},!1),e.L.set(t.id,i),t.segmentIndex?s.B(2):M(s,t.createSegmentIndex(),2)):(r="number"==typeof e.u?e.u:0,a=t.segmentIndex.fc(r),o=null,a&&((o=a.current())||(o=a.next().value)),o||(o=sS(t.segmentIndex)),o?n?o.ia?M(s,sU(i,o.ia),0):s.B(0):M(s,s_(i,o.startTime),0):s.B(0))})}function uW(e){var t,n,i,r;return F(function(a){for(t=[],i=(n=E([e.video,e.audio])).next();!i.done;i=n.next())(r=i.value)&&!r.segmentIndex&&t.push(r.createSegmentIndex());return t.length>0?M(a,Promise.all(t),0):a.B(0)})}function uX(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))}function uY(e,t){ec.call(this);var n=this;this.i=e,this.l=t,this.g=new Map,this.m=[{Bd:null,zd:uQ,ld:function(e,t){return uZ(n,"enter",e,t)}},{Bd:uJ,zd:uQ,ld:function(e,t){return uZ(n,"enter",e,t)}},{Bd:u$,zd:uQ,ld:function(e,t){return uZ(n,"enter",e,t)}},{Bd:uQ,zd:uJ,ld:function(e,t){return uZ(n,"exit",e,t)}},{Bd:uQ,zd:u$,ld:function(e,t){return uZ(n,"exit",e,t)}},{Bd:uJ,zd:u$,ld:function(e,t){t?uZ(n,"skip",e,t):(uZ(n,"enter",e,t),uZ(n,"exit",e,t))}},{Bd:u$,zd:uJ,ld:function(e,t){return uZ(n,"skip",e,t)}}],this.h=new tI,this.h.o(this.i,"regionremove",function(e){n.g.delete(e.region)})}function uZ(e,t,n,i){t=new ee(t,new Map([["region",n],["seeking",i]])),e.dispatchEvent(t)}S(uj,ec),(p=uj.prototype).getStartTime=function(){return this.u},p.jd=function(){return this.M},p.xh=function(){return this.h}
1,p.getStats=function(){return this.V},p.al=function(){return this.i?iU(this.i):null},p.$k=function(){return this.R?iq(this.R):null},p.start=function(){var t,n=this;F(function(i){var r,a,o,s,u,l,c,d,h,p,f,g,m;switch(i.g){case 1:return M(i,Promise.resolve(),2);case 2:return R(i,3),M(i,(r=n,F(function(e){switch(e.g){case 1:if(uG(r,"manifest-parser"),r.m||(r.H=tF(r.M,r.T),r.m=r.H(),r.m.configure(r.g.manifest,function(){return r.F})),a=Date.now()/1e3,uG(r,"manifest"),r.h){e.B(2);break}return M(e,r.m.start(r.M,r.Na),3);case 3:var t;return r.h=e.h,uX(r.h),M(e,(t=r,F(function(e){return(t.D||(t.D=t.g.adaptationSetCriteriaFactory(),t.D.configure({language:t.g.preferredAudioLanguage,role:t.g.preferredAudioRole,videoRole:t.g.preferredVideoRole,channelCount:t.g.preferredAudioChannelCount,hdrLevel:t.g.preferredVideoHdrLevel,spatialAudio:t.g.preferSpatialAudio,videoLayout:t.g.preferredVideoLayout,audioLabel:t.g.preferredAudioLabel,videoLabel:t.g.preferredVideoLabel,codecSwitchingStrategy:t.g.mediaSource.codecSwitchingStrategy,audioCodec:"",activeAudioCodec:"",activeAudioChannelCount:0,preferredAudioCodecs:t.g.preferredAudioCodecs,preferredAudioChannelCount:t.g.preferredAudioChannelCount})),t.i||!t.h.variants.length||1!=t.h.variants.length&&"HLS"!=t.h.type)?e.B(0):(t.i=uz(t),t.i?M(e,uW(t.i),0):e.B(0))})),2);case 2:return r.aa.resolve(),o=new ee("manifestparsed",void 0),M(e,Promise.resolve(),5);case 5:if(r.dispatchEvent(o),0==r.h.variants.length)throw new eU(2,4,4036);if(uX(r.h),!as(r.G,r.h)){e.B(6);break}return s=new ee("trackschanged",void 0),M(e,Promise.resolve(),7);case 7:uV(r),r.dispatchEvent(s);case 6:u=Date.now()/1e3-a,r.V.J=u,L(e)}})),5);case 5:if(uV(n),"webkit"===e.shakaMediaKeysPolyfill){i.B(6);break}return M(i,uH(n),7);case 7:uV(n);case 6:return M(i,(l=n,F(function(e){var t,n,i,r,a;return 1==e.g?!l.i||l.h.variants.includes(l.i)?e.B(0):M(e,(t=l.i,F(function(e){for(n=[],r=(i=E([t.video,t.audio])).next();!r.done;r=i.next())(a=r.value)&&a.segmentIndex&&a.closeSegmentIndex&&n.push(a.closeSegmentIndex());return n.length>0?M(e,Promise.all(n),0):e.B(0)})),3):(l.i=uz(l),l.i?M(e,uW(l.i),0):e.B(0))})),8);case 8:if(uV(n),!n.W){i.B(9);break}return M(i,(c=n,F(function(e){return(!c.i&&(d=uz(c))&&(c.i=d),c.i)?(h=c.h.presentationTimeline.U(),p=[],(f=c.i).video&&p.push(uK(c,f.video,h)),f.audio&&p.push(uK(c,f.audio,h)),(g=iz(c.h.textStreams,c.g.preferredTextLanguage,c.g.preferredTextRole,c.g.preferForcedSubs)[0]||null)&&iY(f.audio,g,c.g)&&(p.push(uK(c,g,h)),c.R=g),M(e,Promise.all(p),0)):e.B(0)})),10);case 10:uV(n);case 9:if(!n.W||!n.j){i.B(11);break}return M(i,(m=n.j,F(function(e){return 1==e.g?m.K?M(e,m.m,3):e.B(0):M(e,Promise.all(m.V.map(function(e){return e.promise})),0)})),12);case 12:uV(n);case 11:n.C.resolve(),D(i,0);break;case 3:(t=N(i))instanceof eU&&(7001==t.code||7003==t.code)||n.C.reject(t),L(i)}})},p.dispatchEvent=function(e){return this.O?this.O.dispatchEvent(e):ec.prototype.dispatchEvent.call(this,e)},p.onError=function(e){2===e.severity&&(this.C.reject(e),this.destroy());var t=(new Map).set("detail",e);t=new ee("error",t),this.dispatchEvent(t),t.defaultPrevented&&(e.handled=!0)},p.configure=function(e,t){e=uv(e,t),uL(this.g,e)},p.getConfiguration=function(){return t7(this.g)},p.Dm=function(){return this.C},p.destroy=function(){var e,t,n=this;return F(function(i){if(1==i.g)return n.l=!0,!n.m||n.ea?i.B(2):M(i,n.m.stop(),2);if(4!=i.g)return n.A&&n.A.release(),n.I&&!n.oa&&n.I.release(),!n.j||n.Z?i.B(4):M(i,n.j.destroy(),4);if(n.L.size>0&&!n.sa)for(t=(e=E(n.L.values())).next();!t.done;t=e.next())sj(t.value);L(i)})},$("shaka.media.PreloadManager",uj),uj.prototype.destroy=uj.prototype.destroy,uj.prototype.waitForFinish=uj.prototype.Dm,uj.prototype.getPrefetchedTextTrack=uj.prototype.$k,uj.prototype.getPrefetchedVariantTrack=uj.prototype.al,S(uY,ec),uY.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,ec.prototype.release.call(this)},uY.prototype.j=function(e,t){if(!this.l||0!=e){this.l=!1;for(var n=E(this.i.h.values()),i=n.next();!i.done;i=n.next()){i=i.value;var r=this.g.get(i),a=e<i.startTime?uJ:e>i.endTime?u$:uQ;this.g.set(i,a);for(var o=E(this.m),s=o.next();!s.done;s=o.next())(s=s.value).Bd==r&&s.zd==a&&s.ld(i,t)}}};for(var uJ=1,uQ=2,u$=3,u0={ach:"Lwo",ady:"Адыгэбзэ",af:"Afrikaans","af-NA":"Afrikaans (Namibia)","af-ZA":"Afrikaans (South Africa)",ak:"Tɕɥi",ar:"العربية","ar-AR":"العربية","ar-MA":"العربية","ar-SA":"العربية (السعودية)","ay-BO":"Aymar aru",az:"Azərbaycan dili","az-AZ":"Azərbaycan dili","be-BY":"Беларуская",bg:"Български","bg-BG":"Български",bn:"বাংলা","bn-IN":"বাংলা (ভারত)","bn-BD":"বাংলা(
1বাংলাদেশ)","bs-BA":"Bosanski",ca:"Catal\xe0","ca-ES":"Catal\xe0",cak:"Maya Kaqchikel","ck-US":"ᏣᎳᎩ (tsalagi)",cs:"Čeština","cs-CZ":"Čeština",cy:"Cymraeg","cy-GB":"Cymraeg",da:"Dansk","da-DK":"Dansk",de:"Deutsch","de-AT":"Deutsch (\xd6sterreich)","de-DE":"Deutsch (Deutschland)","de-CH":"Deutsch (Schweiz)",dsb:"Dolnoserbšćina",el:"Ελληνικά","el-GR":"Ελληνικά",en:"English","en-GB":"English (UK)","en-AU":"English (Australia)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-IN":"English (India)","en-PI":"English (Pirate)","en-UD":"English (Upside Down)","en-US":"English (US)","en-ZA":"English (South Africa)","en@pirate":"English (Pirate)",eo:"Esperanto","eo-EO":"Esperanto",es:"Espa\xf1ol","es-AR":"Espa\xf1ol (Argentine)","es-419":"Espa\xf1ol (Latinoam\xe9rica)","es-CL":"Espa\xf1ol (Chile)","es-CO":"Espa\xf1ol (Colombia)","es-EC":"Espa\xf1ol (Ecuador)","es-ES":"Espa\xf1ol (Espa\xf1a)","es-LA":"Espa\xf1ol (Latinoam\xe9rica)","es-NI":"Espa\xf1ol (Nicaragua)","es-MX":"Espa\xf1ol (M\xe9xico)","es-US":"Espa\xf1ol (Estados Unidos)","es-VE":"Espa\xf1ol (Venezuela)",et:"eesti keel","et-EE":"Eesti (Estonia)",eu:"Euskara","eu-ES":"Euskara",fa:"فارسی","fa-IR":"فارسی","fb-LT":"Leet Speak",ff:"Fulah",fi:"Suomi","fi-FI":"Suomi","fo-FO":"F\xf8royskt",fr:"Fran\xe7ais","fr-CA":"Fran\xe7ais (Canada)","fr-FR":"Fran\xe7ais (France)","fr-BE":"Fran\xe7ais (Belgique)","fr-CH":"Fran\xe7ais (Suisse)","fy-NL":"Frysk",ga:"Gaeilge","ga-IE":"Gaeilge (Gaelic)",gl:"Galego","gl-ES":"Galego","gn-PY":"Ava\xf1e'ẽ","gu-IN":"ગુજરાતી","gx-GR":"Ἑλληνική ἀρχαία",he:"עברית‏","he-IL":"עברית‏",hi:"हिन्दी","hi-IN":"हिन्दी",hr:"Hrvatski","hr-HR":"Hrvatski",hsb:"Hornjoserbšćina",ht:"Krey\xf2l",hu:"Magyar","hu-HU":"Magyar","hy-AM":"Հայերեն",id:"Bahasa Indonesia","id-ID":"Bahasa Indonesia",is:"\xcdslenska","is-IS":"\xcdslenska (Iceland)",it:"Italiano","it-IT":"Italiano",ja:"日本語","ja-JP":"日本語","jv-ID":"Basa Jawa","ka-GE":"ქართული","kk-KZ":"Қазақша",km:"ភាសាខ្មែរ","km-KH":"ភាសាខ្មែរ",kab:"Taqbaylit",kn:"ಕನ್ನಡ","kn-IN":"ಕನ್ನಡ (India)",ko:"한국어","ko-KR":"한국어 (韩国)",ku:"Kurd\xee","ku-TR":"Kurd\xee",la:"Latin","la-VA":"Latin",lb:"L\xebtzebuergesch","li-NL":"L\xe8mb\xf6rgs",lt:"Lietuvių","lt-LT":"Lietuvių",lv:"Latviešu","lv-LV":"Latviešu",mai:"मैथिली, মৈথিলী","mg-MG":"Malagasy",mk:"Македонски","mk-MK":"Македонски (Македонски)",ml:"മലയാളം","ml-IN":"മലയാളം","mn-MN":"Монгол",mr:"मराठी","mr-IN":"मराठी",ms:"Bahasa Melayu","ms-MY":"Bahasa Melayu",mt:"Malti","mt-MT":"Malti",my:"ဗမာစကာ",nb:"Norsk (bokm\xe5l)","nb-NO":"Norsk (bokm\xe5l)",ne:"नेपाली","ne-NP":"नेपाली",nl:"Nederlands","nl-BE":"Nederlands (Belgi\xeb)","nl-NL":"Nederlands (Nederland)","nn-NO":"Norsk (nynorsk)",no:"Norsk",oc:"Occitan","or-IN":"ଓଡ଼ିଆ",pa:"ਪੰਜਾਬੀ","pa-IN":"ਪੰਜਾਬੀ (ਭਾਰਤ ਨੂੰ)",pl:"Polski","pl-PL":"Polski","ps-AF":"پښتو",pt:"Portugu\xeas","pt-BR":"Portugu\xeas (Brasil)","pt-PT":"Portugu\xeas (Portugal)","qu-PE":"Qhichwa","rm-CH":"Rumantsch",ro:"Rom\xe2nă","ro-RO":"Rom\xe2nă",ru:"Русский","ru-RU":"Русский","sa-IN":"संस्कृतम्","se-NO":"Davvis\xe1megiella","si-LK":"පළාත",sk:"Slovenčina","sk-SK":"Slovenčina (Slovakia)",sl:"Slovenščina","sl-SI":"Slovenščina","so-SO":"Soomaaliga",sq:"Shqip","sq-AL":"Shqip",sr:"Српски","sr-RS":"Српски (Serbia)",su:"Basa Sunda",sv:"Svenska","sv-SE":"Svenska",sw:"Kiswahili","sw-KE":"Kiswahili",ta:"தமிழ்","ta-IN":"தமிழ்",te:"తెలుగు","te-IN":"తెలుగు",tg:"забо́ни тоҷикӣ́","tg-TJ":"тоҷикӣ",th:"ภาษาไทย","th-TH":"ภาษาไทย (ประเทศไทย)",tl:"Filipino","tl-PH":"Filipino",tlh:"tlhIngan-Hol",tr:"T\xfcrk\xe7e","tr-TR":"T\xfcrk\xe7e","tt-RU":"татарча",uk:"Українська","uk-UA":"Українська",ur:"اردو","ur-PK":"اردو",uz:"O'zbek","uz-UZ":"O'zbek",vi:"Tiếng Việt","vi-VN":"Tiếng Việt","xh-ZA":"isiXhosa",yi:"ייִדיש","yi-DE":"ייִדיש (German)",zh:"中文","zh-HANS":"中文简体","zh-HANT":"中文繁體","zh-CN":"中文(中国)","zh-HK":"中文(香港)","zh-SG":"中文(新加坡)","zh-TW":"中文(台灣)","zu-ZA":"isiZulu"},u1=E(Object.keys(u0)),u2=u1.next();!u2.done;u2=u1.next()){var u5=u2.value;u0[u5.toLowerCase()]=u0[u5]}function u3(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("#")&&e.length>
17&&(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 u4(e,t){var n=[];e=E(u8(e));for(var i=e.next();!i.done;i=e.next())if((i=i.value).isContainer)n.push.apply(n,x(u4(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=t.fontWeight>=nJ,a=t.fontStyle==n$,o=t.textDecoration.includes(n1);return r&&i.push(["b"]),a&&i.push(["i"]),o&&i.push(["u"]),""==(a=t.color)&&n&&(a=n.color),r="",(a=u3(a))&&(r+="."+a),""==(a=t.backgroundColor)&&n&&(a=n.backgroundColor),(n=u3(a))&&(r+=".bg_"+n),r&&i.push(["c",r]),i.reduceRight(function(e,t){var n=E(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 u8(e){var t=[];e=E(e);for(var n=e.next(),i={};!n.done;i={Tg:void 0},n=e.next())i.Tg=n.value,t.some(function(e){return function(t){return nN(e.Tg,t)}}(i))||t.push(i.Tg);return t}function u6(e,t){var n=u4(t),i=[];t=e.cues?Array.from(e.cues):[],n=E(n);for(var r=n.next(),a={};!r.done;a={Ld:void 0},r=n.next())a.Ld=r.value,!t.some(function(e){return function(t){return t.startTime==e.Ld.startTime&&t.endTime==e.Ld.endTime&&t.text==e.Ld.payload}}(a))&&a.Ld.payload&&(r=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}(a.Ld))&&i.push(r);for(n=(t=E(t=i.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?i.indexOf(t)-i.indexOf(e):i.indexOf(e)-i.indexOf(t)}))).next();!n.done;n=t.next())e.addCue(n.value)}function u7(e,t){var n=!1;"disabled"===e.mode&&(n=!0,e.mode="hidden");for(var i=0;i<e.cues.length;){var r=e.cues[i];t(r)?e.removeCue(r):i++}n&&(e.mode="disabled")}function u9(e){var t=this;this.i=e,this.l=new tI,this.j=null,this.h=new Map,this.g=-1,this.A=!1,this.u=null,this.D=function(){t.l.Ea(t.i,"textchanged",t.m),t.l.Ea(t.j.textTracks,"change",t.C);for(var e=E(t.h.values()),n=e.next();!n.done;n=e.next())n.value.remove();t.h.clear(),t.g=-1,t.j=null},this.m=function(){var e=new Map,n=t.i.Cc();n=E(n);for(var i=n.next();!i.done;i=n.next()){if(i=i.value,t.h.has(i.id)){var r=t.h.get(i.id);i.active||"disabled"===r.track.mode||(r.track.mode="disabled"),t.h.delete(i.id)}else{(r=t.j.ownerDocument.createElement("track")).kind=function(e){var t=eB();return e.forced&&"WEBKIT"===t.Ja()?"forced":"caption"===e.kind||e.roles&&e.roles.some(function(e){return e.includes("transcribes-spoken-dialog")})&&e.roles.some(function(e){return e.includes("describes-music-and-sound")})?"captions":"subtitles"}(i);var a=r,o=void 0;if(i.label)o=i.label;else if(i.language)if(i.language in u0)o=u0[i.language];else{var s=tp(i.language);s in u0&&(o=u0[s]+" ("+i.language+")")}o||(o=i.originalTextId,i.language&&i.language!==i.originalTextId&&(o+=" ("+i.language+")")),a.label=o,i.language in u0&&(r.srclang=i.language),r.src="data:,WEBVTT",r.track.mode="disabled",t.j.appendChild(r)}e.set(i.id,r),i.active&&(t.g=i.id)}for(i=(n=E(t.h.values())).next();!i.done;i=n.next())i.value.remove();t.g>-1&&(e.has(t.g)?"disabled"===(n=e.get(t.g).track).mode&&(n.mode=t.A?"showing":"hidden"):t.g=-1),t.h=e},this.C=function(){if(!t.u){var e=t.j;t.u=new iA(function(){if(t.u=null,t.j===e){var n=-1,i=!1;if(t.h.has(t.g)){var r=t.h.get(t.g);"showing"===r.track.mode?(n=t.g,i=!0):"hidden"===r.track.mode&&(n=t.g)}if(!i)for(r=(i=E(t.h)).next();!r.done;r=i.next()){var a=E(r.value);if(r=a.next().value,"showing"===(a=a.next().value).track.mode){n=r;break}n<0&&"hidden"===a.track.mode&&(n=r)}for(r=(i=E(t.h)).next();!r.done;r=i.next())r=(a=E(r.value)).next().value,a=a.next().value,r!==n&&"disabled"!==a.track.mode&&(a.track.mode="disabled");t.g!==n&&(t.g=n,n>-1&&t.i.jg({id:n})),t.i.$d(n>-1&&"showing"===t.h.get(n).track.mode)}}).Y(0)}},this.l.o(e,"loaded",function(){return t.enableTextDisplayer()}),this.enableTextDisplayer()}function le(e,t){for(tR("SimpleTextDisplayer","Please migrate to NativeTextDisplayer"),this.h=e,this.i=t,this.g=null,t=(e=E(Array.from(this.h.textTracks))).next();!t.done;t=e.next())"metadata"!==(t=t.value).kind&&"chapters"!==t.kind&&(t.mode="disabled",t.label==this.i&&(this.g=t));this.g&&(this.g.mode="hidden")}function lt(e){e.h&&!e.g&&(e.g=e.h.addTextTrack("subtitles",e.i),e.g.mode="hidden")}function ln(){}function li(t,n){var i=this;this.m=!1,this.h=[],this.j=t,this.u=n,this.D=this.A=null,this.g=a6("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.C=new iA(function(){i.j.paused||la(i)}),lr(this),this.l=new Map,this.i=new tI,this.i.o(document,"fullscreenchange",function(){la(i,!0)}),this.i.o(this.j,"seeking",function(){la(i,!0)}),this.i.o(this.j,"ratechange",function(){lr(i)}),this.i.o(this.j,"resize",function(){var e=i.j,t=e.videoWidth;e=e.videoHeight,t&&e?i.A=t/e:i.A=null}),this.F=null,"ResizeObserver"in e&&(this.F=new ResizeObserver(function(){la(i,!0)}),this.F.observe(this.g)),this.G=new Map}function lr(e){e.C&&(e.h.length?e.C.xa((e.D?e.D.captionsUpdatePeriod:.25)/Math.max(1,Math.abs(e.j.playbackRate))):e.C.stop())}function la(e,t){if(e.g){var n=e.j.currentTime;if(!e.m||(void 0===t?0:t)){t=E(e.G.values());for(var i=t.next();!i.done;i=t.next())on(i.value);on(e.g),e.l.clear(),e.G.clear()}e.m&&function e(t,n,i,r,a){var o=!1,s=[],u=[];n=E(n);for(var l=n.next();!l.done;l=n.next()){l=l.value,a.push(l);var c=t.l.get(l),d=l.startTime<=r&&l.endTime>r,h=c?c.kk:null;c&&(s.push(c.Vg),c.rd&&s.push(c.rd),d||(o=!0,t.l.delete(l),c=null)),d&&(u.pu
1sh(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=n.length>1,r=i?"span":"div";t.lineBreak&&(r="br"),t.rubyTag&&(r=t.rubyTag),i=!i&&t.nestedCues.length>0;var a=a6(r);if("br"!=r&&function(e,t,n,i,r){var a,o,s,u=t.style,l=0==n.nestedCues.length,c=i.length>1;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=lo(n.linePadding,n,e.u),u.paddingRight=lo(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=a6("span"),t.appendChild(h);n.border&&(h.style.border=n.border),r||((t=function(e,t){for(var n=e.length-1;n>=0;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.setAttribute("translate","no"),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,(1!==(i=e.D?e.D.fontScaleFactor:1)||n.fontSize)&&(u.fontSize=lo(n.fontSize||"1em",n,e.u,i)),null!=(i=n.line)&&((l=n.lineInterpretation)==nz&&(l=1,c=16,e.A&&e.A<1&&(c=32),i=i<0?100+i/c*100:i/c*100),1==l&&(u.position="absolute",n.writingMode==nH?(u.width="100%",n.lineAlign==nK?u.top=i+"%":"end"==n.lineAlign&&(u.bottom=100-i+"%")):"vertical-lr"==n.writingMode?(u.height="100%",n.lineAlign==nK?u.left=i+"%":"end"==n.lineAlign&&(u.right=100-i+"%")):(u.height="100%",n.lineAlign==nK?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!==nq?s:"left"===a||"start"===a&&o===nG||"end"===a&&"rtl"===o?"line-left":"right"===a||"start"===a&&"rtl"===o||"end"===a&&o===nG?"line-right":"center")?(u.cssFloat="left",null!==n.position&&(u.position="absolute",n.writingMode==nH?(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==nH?(u.right=100-n.position+"%",u.width="auto"):u.bottom=n.position+"%")):null!==n.position&&50!=n.position&&(u.position="absolute",n.writingMode==nH?(u.left=n.position+"%",u.width="auto"):u.top=n.position+"%",n.size&&(u.transform="translateX(-50%)")),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==nH?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.A===4/3?2.5:1.9;if(n=o.id+"_"+o.width+"x"+o.height+(o.heightUnits==tQ?"%":"px")+"-"+o.viewportAnchorX+"x"+o.viewportAnchorY+(o.viewportAnchorUnits==tQ?"%":"px"),e.G.has(n))n=e.G.get(n);else{r=a6("span");var u=o.heightUnits==tQ?"%":"px",l=o.widthUnits==tQ?"%":"px",c=o.viewportAnchorUnits==tQ?"%":"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.A===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.G.set(n,r),n=r}}r=a,i&&((r=a6("span")).classList.add("shaka-text-wrapper"),r.style.backgroundColor=t.backgroundColor,r.style.lineHeight="normal",a.appendChild(r)),e.l.set(t,{Vg:a,kk:r,rd:n})}(t,l,a),h=(c=t.l.get(l)).kk,o=!0)),l.nestedCues.length>0&&h&&e(t,l.nestedCues,h,r,a),a.pop()}if(o){for(a=(r=E(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=E(u)).next();!r.done;r=u.next())(r=t.l.get(r.value)).rd?(r.rd.contains(i)&&r.rd.removeChild(i),i.appendChild(r.rd),r.rd.appendChild(r.Vg)):i.appendChild(r.Vg)}}(e,e.h,e.g,n,[])}}function lo(e,t,n,i){i=void 0===i?1:i;
1var r=(r=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(e))?{value:Number(r[1]),unit:r[2]}:null;if(!r)return e;switch(e=r.unit,i*=r.value,e){case"%":return i/100*n.clientHeight/t.cellResolution.rows+"px";case"c":return n.clientHeight*i/t.cellResolution.rows+"px";default:return i+e}}function ls(e,t){this.g=t,this.j=e,this.m=new Map,this.l=void 0,this.F=!1,this.J=!0,this.A=this.I=!1,this.D=this.C=void 0,this.H=0,this.K={request:!1,response:!1,event:!1},this.u={},this.i=new tI,this.G=[],this.h=null}function lu(e){if(e.G)for(var t=E(e.G),n=t.next();!n.done;n=t.next())n.value.stop();e.G=[]}function ll(e){return(e=e.g.targets)?e.filter(function(e){return e.mode===lZ&&e.enabled}):[]}function lc(e){return(e=e.g.targets)?e.filter(function(e){return e.mode===lY&&!0===e.enabled}):[]}function ld(t){return t.g.sessionId||(t.g.sessionId=e.crypto.randomUUID()),{v:t.g.version,sf:t.l,sid:t.g.sessionId,cid:t.g.contentId,mtp:t.j.getBandwidthEstimate()/1e3}}function lh(e,t,n){if(n=void 0===n?{}:n,t=lT(e,t=Object.assign({e:t,ts:Date.now()},n),lZ),n=e.g.targets,!(e.g.version<lR)&&n){var i=ll(e);n=Array.from(new Set([].concat(x(lj),x(lV)))),i=E(i);for(var r=i.next();!r.done;r=i.next()){var a=lg((r=r.value).includeKeys||[],n);a.includes(lK)||a.push(lK),a=lm(t,a);var o=r.events||[],s=a.e,u=a.sta;s&&(!lG.includes(s)||!("ps"!==s||u&&lH.includes(u))||o&&o.length>0&&!o.includes(s))||lf(e,a,r)}}}function lp(e,t,n){if(e.g.enabled){n=lT(e,n,lX);var i=lv({mode:lX,useHeaders:e.g.useHeaders,includeKeys:e.g.includeKeys||[]});e.u[i]||(e.u[i]={request:1,response:1}),n.sn=e.u[i].request++,i=e.g.includeKeys||[],n=lm(n,i=lg(i,e.g.version==lR?Array.from(new Set([].concat(x(lj),x(lB)))):lq)),function(e,t,n,i){if(i){if(!Object.keys(t=lS(t)).length)return;Object.assign(n.headers,t)}else{var r=lw(t);if(!r)return;n.uris=n.uris.map(function(e){return lA(e,r)})}lc(e).length>0||!e.m.has(n)||e.m.delete(n)}(e,n,t,e.g.useHeaders)}}function lf(e,t,n,i){var r=rr(),a=n.url;if(n.useHeaders){if(!Object.keys(t=lS(t)).length)return;i&&Object.assign(i.headers,t),Object.assign((i=rv([a],r)).headers,t)}else{if(!(t=lw(t)))return;a=lA(a,t),i&&(i.uri=a),i=rv([a],r)}e.j.Xb().request(9,i)}function lg(e,t){if(!e||0===e.length)return t;for(var n=E(e),i=n.next();!i.done;i=n.next())t.includes(i.value);return e.filter(function(e){return t.includes(e)})}function lm(e,t){return Object.keys(e).reduce(function(n,i){return t.includes(i)&&(n[i]=e[i]),n},{})}function lv(e){return JSON.stringify(Object.keys(e).sort().reduce(function(t,n){return"enabled"!==n&&(t[n]=e[n]),t},{}))}function ly(e,t){if(!(t=e.j.Rc()[t]).length)return 0;var n=e.h?e.h.currentTime:0;return(e=t.find(function(e){return e.start<=n&&e.end>=n}))?(e.end-n)*1e3:0}function lb(e,t,n){var i=t.segment,r=0;i&&(r=i.endTime-i.startTime),(r={d:1e3*r,st:e.j.U()?lD:lP}).ot=function(e){if(0===e.type)return lC;if(e=e.stream){var t=e.type;if("video"==t)return e.codecs&&e.codecs.includes(",")?lI:lk;if("audio"==t)return lx;if("text"==t)return"application/mp4"===e.mimeType?lL:lM}}(t);var a=r.ot===lk||r.ot===lx||r.ot===lI||r.ot===lL;if(t=t.stream){var o=e.j.Za();if(a&&(r.bl=function(e,t){if(!(t=e.j.Rc()[t]).length)return NaN;var n=e.h?e.h.currentTime:0;return(e=t.find(function(e){return e.start<=n&&e.end>=n}))?(e.end-n)*1e3:NaN}(e,t.type),r.ot!==lL)){var s=ly(e,t.type);r.dl=o?s/Math.abs(o):s}if(t.bandwidth&&(r.br=t.bandwidth/1e3),t.segmentIndex&&i){if((o=t.segmentIndex.fc(i.endTime,!0,o<0))&&(o=o.next().value)&&o!=i){if(n&&!tk(i.S(),o.S())){var u=o.S()[0];s=new URL(u);var l=new URL(n);if(s.origin!==l.origin)n=u;else{n=s.pathname.split("/").slice(1),u=l.pathname.split("/").slice(1,-1),l=Math.min(n.length,u.length);for(var c=0;c<l&&n[c]===u[c];c++)n.shift(),u.shift();for(;u.length;)u.shift(),n.unshift("..");n=n.join("/")+s.search+s.hash}r.nor=n}(o.startByte||o.endByte)&&(i.startByte!=o.startByte||i.endByte!=o.endByte)&&(n=o.startByte+"-",o.endByte&&(n+=o.endByte),r.nrr=n)}o=e.j.Za()||1,n=ly(e,t.type)||500,isNaN(i=(t=t.bandwidth)?t*(i.endTime-i.startTime)/1e3/(n/o/1e3)*e.g.rtpSafetyFactor:NaN)||(r.rtp=i)}}return a&&r.ot!==lL&&(r.tb=function(e,t){var n=e.j.Ob();if(!n.length)return NaN;e=n[0],n=E(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 lk:return e.videoBandwidth||NaN;
1case lx:return e.audioBandwidth||NaN;default:return e.bandwidth}}(e,r.ot)/1e3),r}function lT(e,t,n){Object.assign(t,ld(e)),t.pr=e.j.Za();var i=t.ot===lk||t.ot===lI;return e.I&&i&&(t.bs=!0,t.su=!0,e.I=!1),null==t.su&&(t.su=e.J),e.j.U()&&(t.ltc=(i=cS(e.j))||void 0),document.hidden&&(t.bg=!0),void 0==(i=e.D&&e.C?e.D-(e.H||e.C):void 0)||e.K[n]||(t.msd=i,e.K[n]=!0),t}function lw(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,ttfb:n,ttlb:n},a=Object.keys(e||{}).sort();a=E(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 lS(e){var t=Object.keys(e),n={},i=["Object","Request","Session","Status"],r=[{},{},{},{}],a={br:0,d:0,ot:0,tb:0,url:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,ltc:1,ttfb:1,ttlb:1,ts:1,rc:1,cmsdd:1,cmsds:1,sn:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,msd:2,bs:3,rtp:3,bg:3};t=E(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=lw(r[e]))&&(n["CMCD-"+i[e]]=a);return n}function lA(e,t){return!t||e.includes("offline:")?e:((e=new eg(e)).g.set("CMCD",t),e.toString())}(p=u9.prototype).configure=function(){},p.remove=function(e,t){return!!this.i&&(this.h.has(this.g)&&u7(this.h.get(this.g).track,function(n){return n.startTime<t&&n.endTime>e}),!0)},p.append=function(e){this.h.has(this.g)&&u6(this.h.get(this.g).track,e)},p.destroy=function(){return this.i&&(this.j&&this.D(),this.i=null),this.l&&(this.l.release(),this.l=null),Promise.resolve()},p.isTextVisible=function(){return this.A},p.setTextVisibility=function(e){if(this.A=e,this.h.has(this.g)){var t=this.h.get(this.g).track;"disabled"!==t.mode&&(e=e?"showing":"hidden",t.mode!==e&&(t.mode=e))}else if(this.i&&3===this.i.Ac())if(t=Array.from(this.i.xf().textTracks).filter(function(e){return["captions","subtitles","forced"].includes(e.kind)}),e){e=null,t=E(t);for(var n=t.next();!n.done;n=t.next())if("showing"===(n=n.value).mode){e=null;break}else e||"hidden"!==n.mode||(e=n);e&&(e.mode="showing")}else for(t=(e=E(t)).next();!t.done;t=e.next())"showing"===(t=t.value).mode&&(t.mode="hidden")},p.setTextLanguage=function(){},p.enableTextDisplayer=function(){!this.j&&this.i&&2===this.i.Ac()&&(this.j=this.i.xf(),this.l.qa(this.i,"unloading",this.D),this.l.o(this.i,"textchanged",this.m),this.l.o(this.j.textTracks,"change",this.C),this.m())},$("shaka.text.NativeTextDisplayer",u9),u9.prototype.enableTextDisplayer=u9.prototype.enableTextDisplayer,u9.prototype.setTextLanguage=u9.prototype.setTextLanguage,u9.prototype.setTextVisibility=u9.prototype.setTextVisibility,u9.prototype.isTextVisible=u9.prototype.isTextVisible,u9.prototype.destroy=u9.prototype.destroy,u9.prototype.append=u9.prototype.append,u9.prototype.remove=u9.prototype.remove,u9.prototype.configure=u9.prototype.configure,(p=le.prototype).configure=function(){},p.remove=function(e,t){return!!this.g&&(u7(this.g,function(n){return n.startTime<t&&n.endTime>e}),!0)},p.append=function(e){this.g&&u6(this.g,e)},p.destroy=function(){return this.g&&(u7(this.g,function(){return!0}),this.g.mode="disabled"),this.g=this.h=null,Promise.resolve()},p.isTextVisible=function(){return!!this.g&&"showing"==this.g.mode},p.setTextVisibility=function(e){e&&!this.g&&lt(this),this.g&&(this.g.mode=e?"showing":"hidden")},p.setTextLanguage=function(){},p.enableTextDisplayer=function(){lt(this)},$("shaka.text.SimpleTextDisplayer",le),le.prototype.enableTextDisplayer=le.prototype.enableTextDisplayer,le.prototype.setTextLanguage=le.prototype.setTextLanguage,le.prototype.setTextVisibility=le.prototype.setTextVisibility,le.prototype.isTextVisible=le.prototype.isTextVisible,le.prototype.destroy=le.prototype.destroy,le.prototype.append=le.prototype.append,le.prototype.remove=le.prototype.remove,le.prototype.configure=le.prototype.configure,(p=ln.prototype).configure=function(){},p.remove=function(){},p.append=function(){},p.destroy=function(){},p.isTextVisible=function(){return!1},p.setTextVisibility=function(){},p.setTextLanguage=function(){},p.enableTextDisplayer=function(){},$("shaka.text.StubTextDisplayer",ln),ln.prototype.enableTextDisplayer=ln.prototype.enableTextDisplayer,ln.prototype.setTextLanguage=ln.prototype.setTextLanguage,ln.prototype.setTextVisibility=ln.prototype.setTextVisibility,ln.prototype.isTextVisible=ln.prototype.isTextVisible,ln.prototype.destroy=ln.prototype.destroy,ln.prototype.append=ln.prototype.append,ln.prototype.remove=ln.prototype.remove,ln.prototype.configure=ln.prototype.configure,(p=li.prototype).configure=function(e){this.D=e,lr(this),la(this,!0)},p.append=function(e){var t=[].concat(x(this.h));e=E(u8(e));for(var n=e.next(),i={};!n.done;i={Ug:void 0},n=e.next())i.Ug=n.value,t.some(function(e){return function(t){return nN(t,e.Ug)}}(i))||this.h.push(i.Ug);this.h.length&&lr(this),la(this)},p.destroy=function(){return this.g&&(this.g.parentElement&&this.u.removeChild(this.g),this.g=null,this.m=!1,this.h=[],this.C&&(this.C.stop(),this.C=null),this.l.clear(),this.i&&(this.i.release(),this.i=null),this.F&&(this.F.disconnect(),this.F=null)),Promise.resolve()},p.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}),la(this,n>this.h.length),this.h.length||lr(this),!0},p.isTextVisible=function(){return this.m},p.setTextVisibility=function(e){(this.m=e)?(this.g.parentElement||this.u.appendChild(this.g),la(this,!0)):this.g.parentElement&&this.u.removeChild(this.g)},p.setTextLanguage=function(e){e&&"und"!=e?this.g.setAttribute("lang",e):this.g.setAttribute("lang","")},p.enableTextDisplayer=function(){},$("shaka.text.UITextDisplayer",li),li.prototype.enableTextDisplayer=li.prototype.enableTextDisplayer,li.prototype.setTextLanguage=li.prototype.setTextLanguage,li.prototype.setTextVisibility=li.prototype.setTextVisibility,li.prototype.isTextVisible=li.prototype.isTextVisible,li.prototype.remove=li.prototype.remove,li.prototype.destroy=li.prototype.destroy,li.prototype.append=li.prototype.append,li.prototype.configure=li.prototype.configure,$("shaka.text.WebVttGenerator",function(){}),ls.prototype.setMediaElement=function(t){var n,i;this.h=t,n=this,n.i.o(n.h,"playing",function(){n.D||(n.D=Date.now()),lh(n,"ps",{ud:"p"})}),n.i.o(n.h,"volumechange",function(){lh(n,n.h.muted?"m":"um")}),n.i.o(n.h,"play",function(){n.C||(n.C=Date.now(),lh(n,"ps",{ud:"s"}))}),n.i.o(n.h,"pause",function(){lh(n,"ps",{ud:"a"})}),n.i.o(n.j,"buffering",function(){lh(n,"ps",{ud:"w"})}),n.i.o(n.h,"seeking",function(){return lh(n,"ps",{ud:"k"})}),n.i.o(document,"fullscreenchange",function(){lh(n,document.fullscreenElement?"pe":"pc")}),((i=n.h).webkitPresentationMode||i.webkitSupportsFullscreen)&&n.i.o(i,"webkitpresentationmodechanged",function(){i.webkitPresentationMode?lh(n,"inline"!==i.webkitPresentationMode?"pe":"pc"):i.webkitSupportsFullscreen&&lh(n,i.webkitDisplayingFullscreen?"pe":"pc")}),n.i.o(n.h,"enterpictureinpicture",function(){lh(n,"pe")}),n.i.o(n.h,"leavepictureinpicture",function(){lh(n,"pc")}),"documentPictureInPicture"in e&&n.i.o(e.documentPictureInPicture,"enter",function(e){lh(n,"pe"),n.i.qa(e.window,"pagehide",function(){lh(n,"pc")})}),n.i.o(document,"visibilitychange",function(){document.hidden?lh(n,"b",{bg:!0}):lh(n,"b")}),n.i.o(n.j,"complete",function(){lh(n,"ps",{ud:"e"})})},ls.prototype.configure=function(e){this.g=e,function(e){lu(e);var t=ll(e);t=E(t);for(var n=t.next();!n.done;n=t.next())if(void 0===(n=n.value.timeInterval)&&(n=lz),n>=1){var i=new iA(function(){return lh(e,lW)});i.xa(n),e.G.push(i)}}(this)};var lE="m",lx="a",lk="v",lI="av",lC="i",lM="c",lL="tt",lR=2,lP="v",lD="l",lN="d",lO="ld",l_="h",lU="lh";$("shaka.util.CmcdManager.StreamingFormat",{DASH:lN,cn:lO,HLS:l_,dn:lU,vn:"s",OTHER:"o"});var lq="br bl bs cid d dl mtp nor nrr ot pr rtp sf sid st su tb v".split(" "),lj="br ab bl tbl bs cdn cid ltc mtp pr sf sid bg sta st ts tpb tb lb tab lab pt ec msd v sn".split(" "),lB="ab bl tbl bs cdn cid d dl ltc mtp nor ot pr rtp sf sid bg sta st su ts tpb tb lb tab lab pt ec msd v".split(" "),lF="d dl nor ot rtp rc su ttfb ttfbb ttlb url cmsdd cmsds".split(" "),lV=["e","sta"],lG="ps e t c b m um pe pc".split(" "),lH="spawkrfeqd".split(""),lz=10,lK="ts",lW="t",lX="request",lY="response",lZ="event";function lJ(e){this.h=e,this.g=null}
1function lQ(e){return!e||"false"!==e.toLowerCase()&&(/^[-0-9]/.test(e)?parseInt(e,10):e.replace(/["]+/g,""))}(p=lJ.prototype).configure=function(e){this.h=e},p.aj=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(l0)?1e3*this.g.get(l0):null},p.$i=function(){return this.h.enabled&&this.g&&this.g.has(l$)?1e3*this.g.get(l$):null},p.fl=function(){return this.h.enabled&&this.g&&this.g.has(l1)?this.g.get(l1):null},p.hl=function(){return this.h.enabled&&this.g&&this.g.has(l2)?this.g.get(l2):null},p.getBandwidthEstimate=function(e){var t=this.$i();if(!t)return e;var n=this.h.estimatedThroughputWeightRatio;return n>0&&n<=1?e*(1-n)+t*n:e},$("shaka.util.CmsdManager",lJ),lJ.prototype.getBandwidthEstimate=lJ.prototype.getBandwidthEstimate,lJ.prototype.getRoundTripTime=lJ.prototype.hl,lJ.prototype.getResponseDelay=lJ.prototype.fl,lJ.prototype.getEstimatedThroughput=lJ.prototype.$i,lJ.prototype.getMaxBitrate=lJ.prototype.aj;var l$="etp",l0="mb",l1="rd",l2="rtt";function l5(){this.g=null,this.h=[]}function l3(e,t){return F(function(n){if(1==n.g)return e.g?M(n,new Promise(function(t){return e.h.push(t)}),2):n.B(2);e.g=t,L(n)})}function l4(e,t,n){return n=void 0===n?Number.EPSILON:n,e===t||(e=Math.abs(e-t))<=n||n!==Number.EPSILON&&Math.abs(e-n)<=Number.EPSILON}function l8(t,n,i){n=void 0===n?null:n,ec.call(this);var r=this;this.m=c2,this.h=null,this.Se=n,this.W=!1,this.cf=new tI,this.Te=new tI,this.j=new tI,this.mc=new tI,this.Wd=new tI,this.G=this.H=this.F=this.M=null,this.df=0,this.Z=new l5,this.O=this.Fa=this.V=this.i=this.Kc=this.I=this.l=this.Pe=this.R=this.Hi=this.oa=this.K=this.ib=this.ya=this.Re=this.P=this.La=this.L=this.Pb=null,this.Na=!1,this.Xe=this.u=null,this.We=1e9,this.bf=[],this.Jc=new Map,this.jb=[],this.Fg=-1,this.g=ck(this),this.Hg=uM(),this.T=null,this.ef=-1,this.lc=null,this.sa={width:1/0,height:1/0},this.Ve=new aa(this.g,this.sa,null),this.Ze=[],this.C=null,this.J=this.g.adaptationSetCriteriaFactory(),this.J.configure({language:this.g.preferredAudioLanguage,role:this.g.preferredAudioRole,videoRole:this.g.preferredVideoRole,channelCount:0,hdrLevel:this.g.preferredVideoHdrLevel,spatialAudio:this.g.preferSpatialAudio,videoLayout:this.g.preferredVideoLayout,audioLabel:this.g.preferredAudioLabel,videoLabel:this.g.preferredVideoLabel,codecSwitchingStrategy:this.g.mediaSource.codecSwitchingStrategy,audioCodec:"",activeAudioCodec:"",activeAudioChannelCount:0,preferredAudioCodecs:this.g.preferredAudioCodecs,preferredAudioChannelCount:this.g.preferredAudioChannelCount}),this.be=this.g.preferredTextLanguage,this.fe=this.g.preferredTextRole,this.ee=this.g.preferForcedSubs,this.Ue=[],i&&i(this),this.K=new ls(this,this.g.cmcd),this.oa=new lJ(this.g.cmsd),this.M=ch(this),this.aa=this.ea=this.ua=this.D=null,this.Jg=!1,this.Gg=[],this.Ig=new iA(function(){return F(function(e){return 1==e.g?r.ea?M(e,r.Vb(r.aa,!0),3):e.B(0):4!=e.g?M(e,r.load(r.ea),4):void(r.Jg?r.aa.pause():r.aa.play(),r.ea=null,r.Jg=!1,L(e))})}),c8&&(this.D=c8(),this.D.configure(this.g.ads),this.Wd.o(this.D,"ad-content-pause-requested",function(e){var t,n;return F(function(i){if(1==i.g)return(r.Ig.stop(),r.ea)?i.B(0):(r.aa=r.h,r.Jg=r.isEnded(),t=e.saveLivePosition||!1,n=!0,r.U()&&(n=t),M(i,r.Vi(!0,n),3));r.ea=i.h,L(i)})}),this.Wd.o(this.D,"ad-content-resume-requested",function(e){if(e=e.offset||0,r.ea){var t=r.ea;t.u&&e&&("number"==typeof t.u?t.u+=e:t.u.setTime(t.u.getTime()+1e3*e))}r.Ig.Y(.1)}),this.Wd.o(this.D,"ad-content-attach-requested",function(){return F(function(e){if(1==e.g)return r.h||!r.aa?e.B(0):M(e,r.Vb(r.aa,!0),3);r.aa=null,L(e)})})),c6&&(this.ua=c6(this),this.ua.configure(this.g.queue)),this.cf.o(e,"online",function(){cK(r),r.ai()}),this.Ye=new iA(function(){for(var e=Date.now()/1e3,t=!1,n=!0,i=E(r.i.variants),a=i.next();!a.done;a=i.next())(a=a.value).disabledUntilTime>0&&a.disabledUntilTime<=e&&(a.disabledUntilTime=0,t=!0),a.disabledUntilTime>0&&(n=!1);n&&r.Ye.stop(),t&&cN(r,!1,void 0,!1,!1)}),this.$a=null,t&&(tR("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Vb(t,!0)),this.A=null}function l6(e){null!=e.R&&(tU(e.R),e.R.release(),e.R=null)}function l7(e,t){return new ee(e,t)}function l9(e,t){c4.set(e,t)}function ce(){return e.Promise||ea("A Promise implementation or polyfill is required"),!(!(e.Promise&&e.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))&&(eB(),!!fq()||""!=oi().canPlayType("application/x-mpegurl"))}function ct(e,t){e.dispatchEvent(l7("onstatechange",(new Map).set("state",t)))}function cn(e,t){var n;return F(function(i){return 1==i.g?(n=++e.df,M(i,l3(e.Z,t),2)):n!=e.df?(e.Z.release(),i.return(!0)):i.return(!1)})}function ci(e,t){var n,i,r;
1return t=void 0!==t&&t,F(function(a){if(1==a.g)return(n=null,e.i&&e.I&&e.Kc&&e.V&&e.g)?(i=e.h.currentTime,t||(i=null),M(a,ca(e,e.V,i,e.Fa,e.g,!0,!1),3)):a.B(2);if(2!=a.g){n=a.h,e.Ze.push(n),e.I&&e.I.setMediaElement&&e.I.setMediaElement(null),(r=e.l?e.l.u:null)&&(n.i=r);var o=n,s=e.I,u=e.Kc;o.h=e.i,o.m=s,o.H=u,n.D=e.J,n.start(),e.i=null,e.I=null,e.Kc=null,e.u=null,e.Xe=null}return a.return(n)})}function cr(e,t,n,i,r,a){var o,s,u;return r=void 0!==r&&r,F(function(l){return 1==l.g?i?l.B(2):M(l,co(e,t),3):(2!=l.g&&(i=l.h),function(e,t){if(!fq(eB()))return!0;if(t){if(""==(e.h||oi()).canPlayType(t))return!1;if(!fq(eB())||!tV.has(t))return!0;if(id(t))return"WEBKIT"===eB().Ja()&&(e.g.drm.servers["com.apple.fps"]||e.g.drm.servers["com.apple.fps.1_0"])?e.g.streaming.useNativeHlsForFairPlay:e.g.streaming.preferNativeHls;if("application/dash+xml"===t||"video/vnd.mpeg.dash.mpd"===t)return e.g.streaming.preferNativeDash}return!1}(e,i))?l.return(null):(o=a||e.g,s=!1,r&&e.h&&"AUDIO"===e.h.nodeName&&(s=!0),u=ca(e,t,n,i||null,o,!r,s),u=r?u.then(function(e){return e.F=!1,e}):u.then(function(t){return e.Ze.push(t),t}),l.return(u))})}function ca(e,t,n,i,r,a,o){var s,u,l,c,d,h,p,f,g,m,v,y;return a=void 0===a||a,o=void 0!==o&&o,F(function(b){return 1==b.g?(s=null,u=t7(r),o&&(u.manifest.disableVideo=!0),l=function(){return s.P&&s.l?null:s},c=function(){return l()?l().getConfiguration():e.g},e.sa.width!=1/0||e.sa.height!=1/0||e.g.ignoreHardwareResolution)?b.B(2):M(b,eB().yc(),3):(2!=b.g&&(d=b.h,e.sa.width=d.width,e.sa.height=d.height),h=new aa(u,e.sa,null),p={networkingEngine:e.M,filter:function(e){var t;return F(function(n){return 1==n.g?M(n,ao(h,e),2):4!=n.g?n.h?(t=l7("trackschanged"),M(n,Promise.resolve(),4)):n.B(0):void(s.dispatchEvent(t),L(n))})},makeTextStreamsForClosedCaptions:function(t){return function(e,t){for(var n=new Set,i=E(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);for(r=(i=E(t.variants)).next();!r.done;r=i.next())if((r=r.value.video)&&r.closedCaptions){for(var a=E(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 sx,l=r.closedCaptions.get(o);s={id:e.We++,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:tn,primary:!1,trickModeVideo:null,dependencyStream: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([ii(s,"")]),isAudioMuxedInVideo:!1,baseOriginalId:null},t.textStreams.push(s),n.add(o)}}}(e,t)},onTimelineRegionAdded:function(e){sN(s.I,e)},onEvent:function(e){return s.dispatchEvent(e)},onError:function(e){return s.onError(e)},isLowLatencyMode:function(){return c().streaming.lowLatencyMode},updateDuration:function(){e.l&&s.P&&e.l.updateDuration()},newDrmInfo:function(e){var t=s.j,n=t?t.g:null;n&&t.C&&al(h,n.keySystem,e)},onManifestUpdated:function(){var t=(new Map).set("isLive",e.U());s.dispatchEvent(l7("manifestupdated",t)),uB(s,!1,function(){e.D&&e.D.onManifestUpdated(e.U())})},getBandwidthEstimate:function(){return e.u.getBandwidthEstimate()},onMetadata:function(t,n,i,r){var a=t;("com.apple.hls.interstitial"==t||"com.apple.hls.overlay"==t)&&(a="com.apple.quicktime.HLS",t={startTime:n,endTime:i,values:r},e.D)&&e.D.onHLSInterstitialMetadata(e,e.h,t),t=(r=E(r)).next();for(var o={};!t.done;o={Uh:void 0},t=r.next())o.Uh=t.value,"ID"!=o.Uh.name&&uB(s,!1,function(t){return function(){cd(e,n,i,a,t.Uh)}}(o))},disableStream:function(t){return e.disableStream(t,e.g.streaming.maxDisabledTime)},addFont:function(t,n){return e.addFont(t,n)}},(f=new sD(function(){return e.wa()})).addEventListener("regionadd",function(t){var n=t.region;cX(e,"timelineregionadded",n,s),uB(s,!1,function(){e.D&&(e.D.onDashTimedMetadata(n),e.D.onDASHInterstitialMetadata(e,e.h,n))})}),g=null,u.streaming.observeQualityChanges&&((g=new sL(function(){return e.Rc()})).addEventListener("qualitychange",function(t){cY(e,t.quality,t.position)}),g.addEventListener("audiotrackchange",function(t){cY(e,t.quality,t.position,!0)})),m=!0,v={Gc:e.M,onError:function(e){return s.onError(e)},Vf:function(t){uB(s,!0,function(){e.F&&function(e,t){var n=l7("keystatuschanged");e.dispatchEvent(n);var i=Object.keys(t);1==i.length&&""==i[0]&&(i=["00"],t={"00":t[""]});var r=1==i.length&&"00"==i[0];if(n=!1,i.length){i=e.keySystem();for(var a=rk(e.g.drm.clearKeys),o=function(n,i){n.allowedByKeySystem=!0,i=E(i);for(var a=i.next();!a.done;a=i.next())a=a.value,((a=t[r?"00":a])||e.F.H)&&(n.allowedByKeySystem=n.allowedByKeySystem&&!!a&&!ad.includes(a))},s=E(e.i.variants),u=s.next();!u.done;u=s.next()){var l=function(e){var t=[];return e.audio&&t.push(e.audio),e.video&&t.push(e.video),t}(u=u.value);l=E(l);for(var c=l.next();!c.done;c=l.next()){c=c.value;var d=u.allowedByKeySystem;if(c.keyIds.size)if(c.drmInfos.length&&!a.size&&"HLS"==e.i.type)for(var h=E(c.drmInfos),p=h.next();!p.done;p=h.next())(p=p.value).keySystem==i&&(p.keyIds.size?o(u,p.keyIds):o(u,c.keyIds));else o(u,c.keyIds);d!=u.allowedByKeySystem&&(n=!0)}}}(!n||(cq(e),cP(e)))&&(n=e.l.u)&&!n.allowedByKeySystem&&cN(e)}(e,t)})},onExpirationUpdated:function(e,t){var n=l7("expirationupdated");s.dispatchEvent(n),(n=s.m)&&n.onExpirationUpdated&&n.onExpirationUpdated(e,t)},onEvent:function(t){s.dispatchEvent(t),"drmsessionupdate"==t.type&&m&&(m=!1,t=Date.now()/1e3-s.ua,(e.C||s.getStats()).m=t,e.R&&tU(e.R))}},y=ch(e,l),rm(e.M,y),s=new uj(t,i,n,{config:u,Nl:p,Yl:f,Xl:g,Ed:function(){return e.Ed(v)},Ml:h,networkingEngine:y,pk:a}),b.return(s))})}function co(e,t){var n,i;
1return F(function(r){return 1==r.g?(n=e.g.manifest.retryParameters,M(r,sX(t,e.M,n),2)):("application/x-mpegurl"==(i=r.h)&&"WEBKIT"===eB().Ja()&&(i="application/vnd.apple.mpegurl"),"video/quicktime"==i&&"CHROMIUM"===eB().Ja()&&(i="video/mp4"),r.return(i))})}function cs(e,t){var n,i,r,a,o=e.g.textDisplayFactory;e.Gi!==o||(void 0===t?0:t)?(t=e.A,e.A=o(),e.A.configure?e.A.configure(e.g.textDisplayer):tR("Text displayer w/ configure",'Text displayer should have a "configure" method!'),e.A.setTextLanguage||tR("Text displayer w/ setTextLanguage",'Text displayer should have a "setTextLanguage" method!'),t?(e.A.setTextVisibility(t.isTextVisible()),t.destroy().catch(function(){})):e.A.setTextVisibility(e.W),e.H&&((n=e.H).Z=i=e.A,n.h&&(n.h.l=i)),e.Gi=o,e.l&&(a=(r=e.l).h.get(tn))&&s2(r,a.stream,!0,0,!0)):e.A&&e.A.configure&&e.A.configure(e.g.textDisplayer)}function cu(e){var t,n;return F(function(i){if(1==i.g){var r,a,o,s,u;return eB(),ct(e,"media-source"),e.g.mediaSource.useSourceElements&&ot(e.h),cs(e),r=e.h,a=e.A,o={Sk:function(){return e.keySystem()},onMetadata:function(t,n,i){t=E(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=E(r.frames),u=s.next();!u.done;u=s.next())cd(e,a,o,"org.id3",u.value);e.D&&e.D.onHlsTimedMetadata(r,a)}},Sl:function(t){e.ib&&sN(e.ib,{schemeIdUri:t.schemeIdUri,startTime:t.startTime,endTime:t.endTime,id:String(t.id),emsg:t})},onEvent:function(t){return e.dispatchEvent(t)},Ul:function(){e.I&&e.I.update&&e.I.update()}},s=e.R,u=e.g.mediaSource,t=new oR(r,a,o,u,s),n=e.g.manifest.segmentRelativeVttTiming,t.Fa=n,M(i,t.L,2)}e.H=t,L(i)})}function cl(e,t,n){function i(){return cM(e)}if(e.j.o(t,"playing",i),e.j.o(t,"pause",i),e.j.o(t,"ended",i),e.j.o(t,"ratechange",function(){var t=e.h.playbackRate;0!=t&&(e.L&&(e.L.set(t),e.m==c5&&e.u.playbackRateChanged(t),cC(e,t)),t=l7("ratechange"),e.dispatchEvent(t))}),t.remote&&(e.j.o(t.remote,"connect",function(){e.l&&"connected"==t.remote.state&&cV(e),cq(e)}),e.j.o(t.remote,"connecting",function(){return cq(e)}),e.j.o(t.remote,"disconnect",function(){return F(function(n){if(1==n.g)return e.l&&"disconnected"==t.remote.state?M(n,uc(e.l),3):n.B(2);2!=n.g&&cV(e),cq(e),L(n)})})),t.audioTracks&&(e.j.o(t.audioTracks,"addtrack",function(){return cq(e)}),e.j.o(t.audioTracks,"removetrack",function(){return cq(e)}),e.j.o(t.audioTracks,"change",function(){return cq(e)})),t.videoTracks&&(e.j.o(t.videoTracks,"addtrack",function(){return cq(e)}),e.j.o(t.videoTracks,"removetrack",function(){return cq(e)}),e.j.o(t.videoTracks,"change",function(){return cq(e)})),(t.webkitPresentationMode||t.webkitSupportsFullscreen)&&e.j.o(t,"webkitpresentationmodechanged",function(){e.Se&&cs(e,!0)}),t.textTracks){var r=function(){e.m===c3&&e.A instanceof u9&&cV(e),cq(e)};e.j.o(t.textTracks,"addtrack",function(t){if(t.track)switch((t=t.track).kind){case"metadata":var n=e,i=t;if("metadata"==i.kind){i.mode="hidden",n.j.o(i,"cuechange",function(){if(i.activeCues)for(var e=E(i.activeCues),t=e.next();!t.done;t=e.next())cd(n,(t=t.value).startTime,t.endTime,t.type,t.value),n.D&&n.D.onCueMetadataChange(t.value);if(i.cues){e=[],t=E(i.cues);for(var r=t.next(),a={};!r.done;a={Pc:void 0},r=t.next())a.Pc=r.value,"com.apple.quicktime.HLS"==a.Pc.type&&null!=a.Pc.startTime&&((r=e.find(function(e){return function(t){return t.startTime==e.Pc.startTime&&t.endTime==e.Pc.endTime}}(a)))||(r={startTime:a.Pc.startTime,endTime:a.Pc.endTime,values:[]},e.push(r)),r.values.push(a.Pc.value));for(t=(e=E(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.D&&(t.values.push({key:"CUE",description:"",data:0!=t.startTime||n.U()?"ONCE":"ONCE,PRE",mimeType:null,pictureType:null}),n.D.onHLSInterstitialMetadata(n,n.h,t))}});var a=new iA(function(){var e=Array.from(n.h.textTracks).filter(function(e){return"metadata"==e.kind});e=E(e);for(var t=e.next();!t.done;t=e.next())t.value.mode="hidden"}).Ka().Y(.5);n.Ue.push(function(){a.stop()})}break;case"chapters":var o=e,s=t;if(s&&"chapters"==s.kind){s.mode="hidden";var u=new iA(function(){s.mode="hidden"}).Ka().Y(.5);o.Ue.push(function(){u.stop()})}break;default:r()}}),e.j.o(t.textTracks,"removetrack",r),e.j.o(t.textTracks,"change",r)}"none"!=t.preload&&e.j.qa(t,"loadedmetadata",function(){e.C.G=Date.now()/1e3-n})}function cc(e,t,n){t=(new Map).set("startTime",t.startTime).set("endTime",t.endTime).set("metadataType",t.schemeIdUri).set("payload",t.payload),e.dispatchEvent(l7(n,t))}function cd(e,t,n,i,r){e.ya&&((t={schemeIdUri:i,startTime:t,endTime:n||
11/0,id:"",payload:r}).id=JSON.stringify(t),sN(e.ya,t))}function ch(e,t){function n(n){t()?t().dispatchEvent(n):e.dispatchEvent(n)}function i(e){t()?uB(t(),!0,e):e()}t||(t=function(){return null});var r=new rf(function(t,n,r,a,o){i(function(){e.u&&e.u.segmentDownloaded(t,n,r,a,o)})},function(t,r,a){n(l7("downloadheadersreceived",r=(new Map).set("headers",t).set("request",r).set("requestType",a))),i(function(){if(e.oa){var n=e.oa;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],lQ(o[1]))}}catch(e){}if(r=t["cmsd-dynamic"]){e:try{var s=new Map,u=r.split(";");for(r=1;r<u.length;r++){var l=u[r].split("=");s.set(l[0],lQ(l[1]))}var c=s;break e}catch(e){c=null;break e}c&&(n.g=c)}}}})},function(e,t){n(l7("downloadcompleted",e=(new Map).set("request",e).set("response",t)))},function(e,t,i,r){n(l7("downloadfailed",e=(new Map).set("request",e).set("error",t).set("httpResponseCode",i).set("aborted",r)))},function(t,n,r){i(function(){if(e.K){var i=e.K,a=r;if(a=void 0===a?{}:a,i.g.enabled)if("HEAD"===n.method)lp(i,n,{});else switch(t){case 0:try{if(i.g.enabled){if(a.type){e:{switch(a.type){case 4:var o=i.A?lO:lN;break e;case 3:case 2:o=i.A?lU:l_;break e;case 5:o="s";break e}o=void 0}i.l=o}lp(i,n,{ot:lE,su:!i.F})}}catch(e){eo("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",e)}break;case rw:try{if(i.g.enabled){var s=lb(i,a,n.uris[0]);s.ts=Date.now(),i.m.has(n)&&i.m.delete(n),i.m.set(n,s.ts),lp(i,n,s)}}catch(e){eo("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",e)}break;case 2:case 5:case 6:lp(i,n,{ot:"k"});break;case 4:lp(i,n,{ot:"o"})}}})},function(n,i,r,a){(n=t()?t().m:e.I)&&n.banLocation&&n.banLocation(a)},function(n,i,r){if(i.data){var a=i.data.byteLength,o=t()?t().getStats():e.C;if(o&&(uq(o,a),0===n&&(o.nj=a)),a=e.K,r=void 0===r?{}:r,0!==lc(a).length&&n===rw)try{var s=lb(a,r,i.uri);i.originalRequest&&null!=i.originalRequest.timeToFirstByte&&(s.ttfb=i.originalRequest.timeToFirstByte),null!=i.timeMs&&(s.ttlb=i.timeMs);var u=i.originalUri||i.uri;if(u.includes("CMCD="))try{var l=new URL(u);l.searchParams.delete("CMCD");var c=l.toString()}catch(e){c=u}else c=u;s.url=c,a.m.has(i.originalRequest)?(s.ts=a.m.get(i.originalRequest),a.m.delete(i.originalRequest)):s.ts||(s.ts=Date.now());var d=lc(a);if(0!==d.length){var h=a.g.version==lR?Array.from(new Set([].concat(x(lj),x(lF)))):lq;s.rc=i.status||0;var p=lT(a,s,lY);i.headers&&i.headers["CMSD-Static"]&&(p.cmsds=btoa(i.headers["CMSD-Static"])),i.headers&&i.headers["CMSD-Dynamic"]&&(p.cmsdd=btoa(i.headers["CMSD-Dynamic"]));for(var f=E(d),g=f.next();!g.done;g=f.next()){var m=g.value,v=lg(m.includeKeys||[],h),y=lv(m);a.u[y]||(a.u[y]={request:1,response:1}),p.sn=a.u[y].response++;
1var b=lm(p,v);lf(a,b,m,i)}}}catch(e){eo("CMCD_SEGMENT_ERROR","Could not generate response segment CMCD data.",e)}}});return r.configure(e.g.networking),r}function cp(e,t,n){e.P=new at,an(e.P,ai),cf(e),cI(e),e.La=new iA(function(){cg(e)}),e.g.streaming.rebufferingGoal&&e.La.xa(.25),e.j.o(t,"waiting",function(){return cg(e,"waiting")}),e.j.o(t,"canplaythrough",function(){return cg(e,"canplaythrough")}),e.j.o(t,"playing",function(){return cg(e,"playing")}),e.j.o(t,"seeked",function(){return cg(e,"seeked")}),n&&(e.j.o(t,"stalled",function(){return cg(e,"stalled")}),e.j.o(t,"progress",function(){return cg(e,"progress")}),e.j.o(t,"timeupdate",function(){return cg(e,"timeupdate")}))}function cf(e){var t=e.g.streaming.rebufferingGoal;e.P.i.set(ar,Math.min(.5,t/2)).set(ai,t)}function cg(e,t){if(e.g.streaming.rebufferingGoal){t=!!e.H&&o_(e.H),t=e.isEnded()||t||e.G.jj();var n=a3(e.h.buffered,e.h.currentTime),i=e.P,r=i.i.get(i.g);an(i,t||n>=r&&n>0?ar:ai)&&cI(e)}else if(t){switch(n=void 0,t){case"seeking":case"waiting":n=ai;break;case"canplaythrough":case"playing":case"seeked":n=ar}void 0!==n&&an(e.P,n)&&cI(e)}}function cm(e,t){if(e.Ve=new aa(e.g,e.sa,e.F),e.I){var n=t7(e.g.manifest);e.h&&"AUDIO"===e.h.nodeName&&(n.disableVideo=!0),e.I.configure(n)}if(e.F&&e.F.configure(e.g.drm),e.l){e.l.configure(e.g.streaming);try{e.m!=c1&&au(e.Ve,e.i)&&cq(e)}catch(t){cW(e,t)}e.u&&cP(e),(n=e.l.u)&&(!n.allowedByApplication||!n.allowedByKeySystem)&&cN(e)}if(e.M&&e.M.configure(e.g.networking),e.H&&(e.H.configure(e.g.mediaSource),e.H.Fa=e.g.manifest.segmentRelativeVttTiming),e.A&&cs(e),e.u&&(e.u.configure(e.g.abr),e.g.abr.enabled?e.u.enable():e.u.disable(),cH(e)),e.P&&cf(e),e.La&&(e.g.streaming.rebufferingGoal?e.La.xa(.25):e.La.stop()),e.i&&cJ(e.i.presentationTimeline,e.g.playRangeStart,e.g.playRangeEnd),e.D&&e.D.configure(e.g.ads),e.K&&e.K.configure(e.g.cmcd),e.oa&&e.oa.configure(e.g.cmsd),e.ua&&e.ua.configure(e.g.queue),e.m==c5&&e.J.getConfiguration){n=e.J.getConfiguration();var i=!1;t.preferredVideoHdrLevel!=e.g.preferredVideoHdrLevel&&n.hdrLevel!=e.g.preferredVideoHdrLevel&&(n.hdrLevel=e.g.preferredVideoHdrLevel,i=!0),t.preferredVideoLayout!=e.g.preferredVideoLayout&&n.videoLayout!=e.g.preferredVideoLayout&&(n.videoLayout=e.g.preferredVideoLayout,i=!0),t.preferSpatialAudio!=e.g.preferSpatialAudio&&n.spatialAudio!=e.g.preferSpatialAudio&&(n.spatialAudio=e.g.preferSpatialAudio,i=!0),t.preferredVideoRole!=e.g.preferredVideoRole&&n.videoRole!=e.g.preferredVideoRole&&(n.videoRole=e.g.preferredVideoRole,i=!0),i&&(e.J.configure(n),cN(e))}}function cv(e){return e&&(e=/(\d+)x(\d+)/.exec(e))?{columns:parseInt(e[1],10),rows:parseInt(e[2],10)}:null}function cy(e,t){var n,i;return F(function(r){return 1==r.g?e.m!=c5&&e.m!=c3?r.return(null):(n=e.bf,e.i&&(n=e.i.imageStreams),i=n[0])?(null!=t&&(i=n.find(function(e){return e.id==t})),i?i.segmentIndex?r.B(2):M(r,i.createSegmentIndex(),2):r.return(null)):r.return(null):r.return(i)})}function cb(e,t,n,i){var r=t.width||0,a=t.height||0,o=r/i.columns,s=a/i.rows,u=i.columns*i.rows,l=e.j-e.startTime;l=e.C||l/u;var c=e.startTime,d=0,h=0;return u>1&&(h=Math.floor((n-e.startTime)/l),c=e.startTime+h*l,d=h%i.columns*o,h=Math.floor(h/i.columns)*s),i=!1,(n=e.thumbnailSprite)&&(i=!0,s=n.height,d=n.positionX,h=n.positionY,o=n.width),{segment:e,imageHeight:a,imageWidth:r,height:s,positionX:d,positionY:h,startTime:c,duration:l,uris:e.S(),startByte:e.Uc(),endByte:e.Sc(),width:o,sprite:i,mimeType:e.mimeType||t.mimeType,codecs:e.codecs||t.codecs}}function cT(e,t){e.j.o(t,"cuechange",function(){e.A.remove(0,Math.max(0,e.h.currentTime-e.g.streaming.bufferBehind));var n={periodStart:0,segmentStart:0,segmentEnd:e.h.duration,vttOffset:0},i=[],r=Array.from(t.activeCues||[]);r=E(r);for(var a=r.next();!a.done;a=r.next()){if((a=a.value).endTime===1/0||a.endTime<a.startTime)a=null;else{var o=new nP(a.startTime,a.endTime,a.text);o.line="number"==typeof a.line?a.line:null,a.lineAlign&&(o.lineAlign=a.lineAlign),o.lineInterpretation=a.snapToLines?nz:1,o.position="number"==typeof a.position?a.position:null,a.positionAlign&&(o.positionAlign=a.positionAlign),o.size=a.size,o.textAlign=a.align,"lr"===a.vertical?o.writingMode="vertical-lr":"rl"===a.vertical&&(o.writingMode="vertical-rl"),a.region&&(o.region.id=a.region.id,o.region.height=a.region.lines,o.region.heightUnits=2,o.region.regionAnchorX=a.region.regionAnchorX,o.region.regionAnchorY=a.region.regionAnchorY,o.region.scroll=a.region.scroll,o.region.viewportAnchorX=a.region.viewportAnchorX,o.region.viewportAnchorY=a.region.viewportAnchorY,o.region.viewportAnchorUnits=tQ,o.region.width=a.region.width,o.region.widthUnits=tQ),nO(o),a=o}a&&((o=e.g.mediaSource.modifyCueCallback)&&o(a,null,n),i.push(a))}e.A.append(i)}),t.mode=document.pictureInPictureElement?"showing":"hidden"}function cw(e){return Array.from(e.h.textTracks).filter(function(e){return"metadata"!=e.kind&&"chapters"!=e.kind&&"Shaka Player TextTrack"!=e.label})}function cS(e){if(!e.h||!e.h.currentTime)return null;var t=e.cj();return t?Math.floor(Date.now()-(t.getTime()+1e3*e.h.currentTime)):null}function cA(e,t){var n;return F(function(i){switch(i.g){case 1:return R(i,2),M(i,sX(t,e.M,e.g.streaming.retryParameters),4);case 4:n=i.h,D(i,3);break;case 2:N(i);case 3:if(n)return i.return(n);throw new eU(1,2,2011,t)}})}function cE(e,t){var n,i,r;
1return F(function(a){if(1==a.g){n=rw,(i=rv([t],e.g.streaming.retryParameters)).method="GET";var o=e.K;try{o.g.enabled&&lp(o,i,{ot:lM,su:!0})}catch(e){eo("CMCD_TEXT_ERROR","Could not generate text CMCD data.",e)}return M(a,e.M.request(n,i).promise,2)}return r=a.h,a.return(r.data)})}function cx(e,t,n,i){var r=iv(n);if(r)return n=r(),e={periodStart:0,segmentStart:0,segmentEnd:e.h.duration,vttOffset:0},t=eD(t),function(e,t){function n(e){for(var n=e,i=E(t),r=i.next();!r.done;r=i.next())(r=r.value).end&&r.start<e&&(n+=r.end-r.start);return((e=Math.floor(n/3600))<10?"0":"")+e+":"+((i=Math.floor(n/60%60))<10?"0":"")+i+":"+((r=Math.floor(n%60))<10?"0":"")+r+"."+((n=Math.floor(1e3*n%1e3))<100?n<10?"00":"0":"")+n}var i=u4(e);e="WEBVTT\n\n",i=E(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=[];switch(e.textAlign){case"left":t.push("align:left");break;case"right":t.push("align:right");break;case nj: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 eU(2,2,2014,n)}function ck(e){var t=uC();return t.streaming.failureCallback=function(t){if(e.U()){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.ai(n))}},t.textDisplayFactory=function(){if(e.Se){var t=e.h;t=!t.webkitDisplayingFullscreen&&(!t.webkitPresentationMode||"inline"==t.webkitPresentationMode)}else t=!1;return t?new li(e.h,e.Se):"track"in document.createElement("track")?new u9(e):new ln},t}function cI(e){var t=e.Ff();if(e.C&&e.P&&e.G){if(0==e.g.streaming.rebufferingGoal){var n=e.L;n.j=!1,sI(n)}else(n=e.L).j=t,sI(n);if(e.K&&(n=e.K,t||n.F||(n.F=!0),n.F&&t&&(n.I=!0,lh(n,"ps",{ud:"r"})),n.J=t),cM(e),n=e.g.streaming.liveSync.dynamicTargetLatency.maxAttempts,e.g.streaming.liveSync.dynamicTargetLatency.enabled&&t&&e.ef<n){n=e.g.streaming.liveSync.dynamicTargetLatency.maxLatency;var i=e.g.streaming.liveSync.targetLatencyTolerance,r=e.g.streaming.liveSync.dynamicTargetLatency.rebufferIncrement;e.T&&(e.T=Math.min(e.T+ ++e.ef*r,n-i))}}t=(new Map).set("buffering",t),e.dispatchEvent(l7("buffering",t))}function cC(e,t){e.mc.Sa(),e.mc.o(e.h,"timeupdate",function(){var n=e.h.currentTime,i=e.wa(),r=e.U(),a=r?e.g.streaming.safeSeekOffset:0;t>0?r&&t>1&&Math.floor(n)>=Math.floor(i.end)&&e.Cd():Math.floor(n)<=Math.floor(i.start+a)&&e.Cd()})}function cM(e){if(e.C&&e.P){var t=e.C.g,n="playing";e.P.g==ai?n="buffering":e.isEnded()?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(l7("statechanged",n)))}}function cL(e){var t=e.h.playbackRate,n=e.U();if(e.g.streaming.vodDynamicPlaybackRate&&!n){var i=e.g.streaming.vodDynamicPlaybackRateLowBufferRate,r=e.Zi();r<=e.g.streaming.vodDynamicPlaybackRateBufferRatio?t!=i&&e.uc(i,!1):1==r&&t!==e.L.kd()&&e.Cd()}if(n&&Number.isFinite((n=e.wa()).end)&&!(e.h.currentTime<n.start||e.h.paused)){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.T||"number"!=typeof o||(e.T=o);var d=e.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;r&&e.lc&&null!==e.T&&"number"==typeof o&&e.ef<d&&Date.now()-e.lc>1e3*a&&(a=e.g.streaming.liveSync.dynamicTargetLatency.minLatency,e.T=Math.max(e.T-(o-a)/2,a+i),e.lc=Date.now()),r&&null!==e.T&&(s=e.T+i,u=e.T-i),o=n.end-e.h.currentTime,i=0,e.m==c3&&(r=e.h.buffered).length>0&&(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.P.h,n&&!c&&(c=e.g.streaming.liveSync.minPlaybackRate),n&&c&&a<=r?t!=c&&e.uc(c,!1):void 0!=s&&l&&o-i>s?(t!=l&&e.uc(l,!1),e.lc=null):void 0!=u&&c&&o-i<u?(t!=c&&e.uc(c,!1),e.lc=null):t!==e.L.kd()&&(e.Cd(),e.lc=Date.now())}}function cR(e){if(e.h){var t=function(t,n){return(!!l4(t,n,.01)||n>t)&&e.Fg<t&&(e.Fg=t,!0)},n=e.wa();if(!isNaN(n=(n=n.end-n.start)>0?e.h.currentTime/n:0)){if(t(0,n*=100))var i=l7("started");else t(25,n)?i=l7("firstquartile"):t(50,n)?i=l7("midpoint"):t(75,n)?i=l7("thirdquartile"):((t(100,n)||n>100)&&(i=l7("complete")),e.g&&e.g.playRangeEnd!=1/0&&e.isEnded()&&e.h.pause());i&&e.dispatchEvent(i)}}}function cP(e){try{ac(e.Ve,e.i)}catch(t){return cW(e,t),!1}var t=iH(e.i.variants);
1return t=e.J.create(t),"boolean"!=typeof(e=e.u.setVariants(Array.from(t.values())))||e}function cD(e,t){if(t=void 0!==t&&t,cP(e)){if(!e.g.abr.enabled){var n=e.J;if("function"!=typeof n.getLastAdaptationSet&&(tR("AdaptationSetCriteria w/o getLastAdaptationSet","Please use an AdaptationSetCriteria with getLastAdaptationSet."),n.getLastAdaptationSet=function(){return null}),(n=n.getLastAdaptationSet())&&(n=Array.from(n.values())).length){var i=e.l.u;if(i&&i.video&&(n=n.find(function(e){return e.video==i.video})))return n}}return e.u.chooseVariant(t)}return null}function cN(e,t,n,i,r){t=void 0===t||t,n=void 0===n?0:n,i=void 0!==i&&i,r=void 0===r||r;var a=cD(e);a&&cO(e,a,r,t,n,i)}function cO(e,t,n,i,r,a){a=void 0!==a&&a;var o=e.l.u;if(t==o)i&&s0(e.l,t,i,r,!0);else{var s=e.C.h;if(s.h!=t&&(s.h=t,s.g.push({timestamp:Date.now()/1e3,id:t.id,type:"variant",fromAdaptation:n,bandwidth:t.bandwidth})),s0(e.l,t,i,r,a,n),i=null,o&&(i=iU(o)),(o=iU(t)).active=!0,e.R&&(r=e.R,t=t.video)){switch(t.dependencyStream&&(t=t.dependencyStream),a=0,s=-1,t.mimeType){case"video/webm":a=1;break;case"video/mp4":a=2}switch(e.yh()){case"DASH":s=1;break;case"HLS":s=0}r.g&&(r.g.setLevelSwitching(t.id,!0),r.g.setContainerFormat(a),r.j||r.g.setStreamingFormat(s))}n?cQ(e,n=l7("adaptation",n=(new Map).set("oldTrack",i).set("newTrack",o))):cj(e,i,o),cB(e,i,o)}}function c_(e,t){var n=Array.from(e.h.audioTracks).find(function(e){return e.enabled});if(t.enabled=!0,n){t.id!==n.id&&(n.enabled=!1);var i=cU(e);n=iV(n,i),cj(e,n,t=iV(t,i)),cB(e,n,t)}}function cU(e){return e.h&&e.h.videoTracks?Array.from(e.h.videoTracks).find(function(e){return e.selected}):null}function cq(e){cQ(e,l7("trackschanged")),cF(e)}function cj(e,t,n){cQ(e,t=l7("variantchanged",t=(new Map).set("oldTrack",t).set("newTrack",n)))}function cB(e,t,n){var i=!1;t&&t.audioId==n.audioId&&t.audioGroupId==n.audioGroupId||(i=!0),i&&cF(e)}function cF(e){cQ(e,l7("audiotrackschanged"))}function cV(e){cQ(e,l7("textchanged"))}function cG(e){cQ(e,l7("texttrackvisibility"))}function cH(e){e.g.abr.enabled||cK(e);var t=(new Map).set("newStatus",e.g.abr.enabled);cQ(e,l7("abrstatuschanged",t))}function cz(e){var t=e.Cc().find(function(e){return e.active});t&&e.A&&e.A.setTextLanguage&&e.A.setTextLanguage(t.language)}function cK(e,t){if(t=void 0===t||t,e.m==c5){e.Ye.stop();for(var n=E(e.i.variants),i=n.next();!i.done;i=n.next())i.value.disabledUntilTime=0;t&&cP(e)}}function cW(e,t){var n,i,r,a;return F(function(o){switch(o.g){case 1:if(e.m==c1)return o.return();if(1===t.severity&&e.C.L++,n=!0,!(e.Na&&e.i&&e.l)||3016!=t.code&&3014!=t.code&&3015!=t.code&&3024!=t.code&&3018!=t.code){o.B(2);break}if("WEBKIT"===eB().Ja()&&3016==t.code)return o.return();return R(o,3),M(o,uc(e.l),5);case 5:n=!(i=o.h),i&&(r=l7("mediasourcerecovered"),e.dispatchEvent(r)),D(o,2);break;case 3:N(o),n=!0;case 2:if(!n)return o.return();2===t.severity&&cK(e,!1),a=l7("error",(new Map).set("detail",t)),e.dispatchEvent(a),a.defaultPrevented&&(t.handled=!0),L(o)}})}function cX(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,timescale:n.timescale,eventElement:n.eventElement,eventNode:n.eventNode}),i.dispatchEvent(l7(t,e))}function cY(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(l7(i?"audiotrackchanged":"mediaqualitychanged",t))}function cZ(e,t){if(t=void 0===t||t,!e.h.error)return t?new eU(2,3,3016):null;var n=e.h.error.code;return t||1!=n?((t=e.h.error.msExtendedCode)&&(t<0&&(t+=0x100000000),t=t.toString(16)),new eU(2,3,3016,n,t,e.h.error.message)):null}function cJ(e,t,n){t>0&&(e.U()||e.Sj(t)),n<(t=e.getDuration())&&(e.U()||e.Fb(n))}function cQ(e,t){F(function(n){if(1==n.g)return M(n,Promise.resolve(),2);e.m!=c1&&e.dispatchEvent(t),L(n)})}function c$(e){var t=new Set;e=E(e);for(var n=e.next();!n.done;n=e.next())(n=n.value).language?t.add(tc(n.language)):t.add("und");return t}function c0(e){for(var t=new Map,n=new Map,i=0;i<e.length;i++){var r=e[i],a="und",o=[];r.language&&(a=tc(r.language)),(o="variant"==r.type?r.audioRoles:r.roles)&&o.length||(o=[""]),t.has(a)||t.set(a,new Set),o=E(o);for(var s=o.next();!s.done;s=o.next())s=s.value,t.get(a).add(s),r.label&&(n.has(a)||n.set(a,new Map),n.get(a).set(s,r.label))}var u=[];return t.forEach(function(e,t){e=E(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)),u.push({language:t,role:i,label:r})}}),u}l5.prototype.release=function(){this.h.length>0?this.h.shift()():this.g=null},S(l8,ec),(p=l8.prototype).destroy=function(){var e,t=this;return F(function(n){switch(n.g){case 1:if(t.m==c1)return n.return();return l6(t),e=t.detach(),t.m=c1,M(n,e,2);case 2:return M(n,t.Yg(),3);case 3:if(t.cf&&(t.cf.release(),t.cf=null),t.Te&&(t.Te.release(),t.Te=null),t.j&&(t.j.release(),t.j=null),t.mc&&
1(t.mc.release(),t.mc=null),t.Wd&&(t.Wd.release(),t.Wd=null),t.Xe=null,t.g=null,t.C=null,t.Se=null,t.K=null,t.oa=null,!t.M){n.B(4);break}return M(n,t.M.destroy(),5);case 5:t.M=null;case 4:t.u&&(t.u.release(),t.u=null),t.ua&&(t.ua.destroy(),t.ua=null),ec.prototype.release.call(t),L(n)}})},p.Vb=function(e,t){t=void 0===t||t;var n,i,r,a=this;return F(function(o){switch(o.g){case 1:if(a.m==c1)throw new eU(2,7,7e3);if(n=a.h&&a.h==e,!a.h||a.h==e){o.B(2);break}return M(o,a.detach(),2);case 2:return M(o,cn(a,"attach"),4);case 4:if(o.h)return o.return();if(R(o,5,6),n||(ct(a,"attach"),i=function(){var e=cZ(a,!1);e&&cW(a,e)},a.Te.o(e,"error",i),a.h=e,a.K&&a.K.setMediaElement(e)),eB(),!t||!fq()||a.H){o.B(6);break}return M(o,cu(a),6);case 6:O(o),a.Z.release(),_(o,0);break;case 5:return r=N(o),M(o,a.detach(),10);case 10:throw r}})},p.Ji=function(e){this.Hi=e},p.detach=function(e){e=void 0!==e&&e;var t=this;return F(function(n){if(1==n.g){if(t.m==c1)throw new eU(2,7,7e3);return M(n,t.vc(!1,e),2)}if(3!=n.g)return M(n,cn(t,"detach"),3);if(n.h)return n.return();try{t.h&&(t.Te.Sa(),t.h=null),ct(t,"detach"),t.D&&!e&&t.D.release()}finally{t.Z.release()}L(n)})},p.vc=function(t,n){t=void 0===t||t,n=void 0!==n&&n;var i,r,a,o,s,u,l,c,d,h,p,f,g,m,v,y=this;return F(function(b){switch(b.g){case 1:return y.m!=c1&&(y.m=c2),M(b,cn(y,"unload"),2);case 2:if(b.h)return b.return();return P(b,3),y.Na=!1,ct(y,"unload"),l6(y),i=y.Ue.map(function(e){return e()}),y.Ue=[],M(b,Promise.all(i),5);case 5:if(y.dispatchEvent(l7("unloading")),y.Re&&(y.Re.release(),y.Re=null),y.ya&&(y.ya.release(),y.ya=null),y.ib&&(y.ib.release(),y.ib=null),y.h&&(y.j.Sa(),y.mc.Sa()),y.Ye.stop(),y.Pb&&(y.Pb.release(),y.Pb=null),y.La&&(y.La.stop(),y.La=null),!y.I){b.B(6);break}return M(b,y.I.stop(),7);case 7:y.I=null,y.Kc=null;case 6:if(y.u&&y.u.stop(),!y.l){b.B(8);break}return M(b,y.l.destroy(),9);case 9:y.l=null;case 8:if(y.L&&(y.L.release(),y.L=null),y.G&&(y.G.release(),y.G=null),"webkit"!==e.shakaMediaKeysPolyfill||!y.F){b.B(10);break}return M(b,y.F.destroy(),11);case 11:y.F=null;case 10:if(!y.H){b.B(12);break}return M(b,y.H.destroy(),13);case 13:y.H=null;case 12:var T;if(y.D&&!n&&y.D.onAssetUnload(),y.ea&&!n&&(y.ea.destroy(),y.ea=null),n||y.Ig.stop(),y.K&&((T=y.K).m.clear(),T.F=!1,T.J=!0,T.I=!1,T.A=!1,T.C=0,T.D=0,T.H=0,T.K={request:!1,response:!1,event:!1},lu(T),T.u={},T.h=null,T.i.Sa()),y.oa&&(y.oa.g=null),!y.A){b.B(14);break}return M(b,y.A.destroy(),15);case 15:y.A=null;case 14:if(y.W=!1,y.h){for(a=(r=E(y.Gg)).next();!a.done;a=r.next())(o=a.value).src.startsWith("blob:")&&URL.revokeObjectURL(o.src),o.remove();y.Gg=[],ot(y.h)&&y.h.load()}if(!y.F){b.B(16);break}return M(b,y.F.destroy(),17);case 17:y.F=null;case 16:if(y.$a&&y.V!=y.$a.jd()&&(y.$a.l||y.$a.destroy(),y.$a=null),y.V=null,y.Fa=null,y.P=null,y.i){for(u=(s=E(y.i.variants)).next();!u.done;u=s.next())for(d=(c=E([(l=u.value).audio,l.video])).next();!d.done;d=c.next())(h=d.value)&&h.segmentIndex&&h.segmentIndex.release();for(f=(p=E(y.i.textStreams)).next();!f.done;f=p.next())(g=f.value).segmentIndex&&g.segmentIndex.release()}for(y.g&&y.g.streaming.clearDecodingCache&&(iJ.clear(),rt.clear()),y.i=null,y.C=new uU,y.Gi=null,y.lc=null,y.T=null,y.ef=-1,y.bf=[],v=(m=E(y.Jc.values())).next();!v.done;v=m.next())v.value.stop();y.Jc.clear(),y.jb=[],y.Fg=-1,y.M&&y.M.Qi(),cI(y);case 3:O(b),y.Z.release(),_(b,4);break;case 4:if(eB(),t&&fq()&&!y.H&&y.h)return M(b,cu(y),0);b.B(0)}})},p.Cm=function(e){this.O=e},p.load=function(t,n,i){n=void 0===n?null:n;var r,a,o,s,u,l,c,d,h,p,f,g,m,v,y=this;return F(function(b){switch(b.g){case 1:if(y.m==c1)throw new eU(2,7,7e3);if(y.h||!y.aa){b.B(2);break}return M(b,y.Vb(y.aa,!0),3);case 3:y.aa=null;case 2:if(r=null,a="",t instanceof uj){if(t.l)throw new eU(2,7,7006);a=(r=t).jd()||""}else a=t||"";return M(b,l3(y.Z,"load"),4);case 4:if(y.Z.release(),!y.h)throw new eU(2,7,7002);if(!y.V){b.B(5);break}return y.V=a,M(b,y.vc(!1),5);case 5:if(o=++y.df,s=function(){return F(function(e){if(1==e.g)return y.df==o?e.B(0):r?M(e,r.destroy(),3):e.B(3);throw new eU(2,7,7e3)})},u=function(e,t){return F(function(n){switch(n.g){case 1:return P(n,2),M(n,l3(y.Z,t),4);case 4:return M(n,s(),5);case 5:return M(n,e(),6);case 6:return M(n,s(),7);case 7:r&&y.g&&(r.g=y.g);case 2:O(n),y.Z.release(),_(n,0)}})},R(b,7,8),null==n&&r&&(n=r.getStartTime()),y.O=n,y.Na=!1,y.dispatchEvent(l7("loading")),r){i=r.T,b.B(10);break}if(i){b.B(10);break}return M(b,u(function(){return F(function(e){if(1==e.g)return M(e,co(y,a),2);i=e.h,L(e)})},"guessMimeType_"),10);case 10:if(l=!!r,r){uF(r,y),y.C=r.getStats(),b.B(13);break}return M(b,cr(y,a,n,i,!0,y.g),14);case 14:(r=b.h)?(r.F=!1,uF(r,y),y.C=r.getStats(),r.start(),r.C.catch(function(){})):y.C=new uU;case 13:if(c=!r,d=Date.now()/1e3,y.C=r?r.getStats():new uU,y.V=a,y.Fa=i||null,cI(y),h=function(){var e=y.h?y.h.buffered:null;return{start:a1(e)||0,end:a2(e)||0}},y.ya=new sD(h),y.ya.addEventListener("regionadd",function(e){cc(y,e.region,"metadataadded")}),c)return M(b,u(function(){return F(function(e){var t,n,r,a,o;return M(e,(t=y,n=i,F(function(e){return 1==e.g?(r=Date.now()/1e3,a=!0,t.F=t.Ed({Gc:t.M,onError:function(e){cW(t,e)},Vf:function(){},onExpirationUpdated:function(){var e=l7("expirationupdated");t.dispatchEvent(e)},onEvent:function(e){t.dispatchEvent(e),"drmsessionupdate"==e.type&&a&&(a=!1,t.C.m=Date.now()/1e3-r)}}),t.F.configure(t.g.drm),o=iZ([n]),t.F.O=!0,M(e,rz(t.F,[o],[]),2)):M(e,t.F.Vb(t.h),0)})),0)})},"initializeSrcEqualsDrmInner_"),25);return y.ib=new sD(h),M(b,u(function(){return F(function(e){if(1==e.g)return M(e,Promise.race([r.aa,r.C]),2);y.Kc=r.H;var t=r;t.ea=!0,y.I=t.m,y.i=r.xh(),L(e)})},"waitForFinish"),17);case 17:if(y.H){b.B(18);break}return M(b,u(function(){return F(function(e){return M(e,cu(y),0)})},"initializeMediaSourceEngineInner_"),18);case 18:return y.i&&y.i.textStreams.length&&(y.A.enableTextDisplayer?y.A.enableTextDisplayer():tR("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),M(b,u(function(){return F(function(e){return M(e,r.C,0)})},"waitForFinish"),20);case 20:if(y.g=r.getConfiguration(),y.Ve=r.G,y.I&&y.I.setMediaElement&&y.h&&y.I.setMediaElement(y.h),(T=r).oa=!0,y.Re=T.I,y.Pe=r.Fa,(p=r.D)&&(y.J=p),l&&y.h&&"AUDIO"===y.h.nodeName&&(function(e){for(var t=E(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})}(y),y.configure("manifest.disableVideo",!0)),r.j){b.B(21);break}return M(b,u(function(){return F(function(e){return M(e,uH(r,y.h),0)})},"drmEngine_.init"),21);case 21:return(w=r).Z=!0,y.F=w.j,M(b,u(function(){return F(function(e){return M(e,y.F.Vb(y.h),0)})},"drmEngine_.attach"),23);case 23:return f=y.g.abrFactory,y.u&&y.Xe==f||(y.Xe=f,y.u&&y.u.release(),y.u=f(),"function"!=typeof y.u.setMediaElement&&(tR("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),y.u.setMediaElement=function(){}),"function"!=typeof y.u.setCmsdManager&&(tR("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),y.u.setCmsdManager=function(){}),"function"!=typeof y.u.trySuggestStreams&&(tR("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),y.u.trySuggestStreams=function(){}),y.u.configure(y.g.abr)),(S=r).sa=!0,g=S.L,m=r.i,M(b,u(function(){return F(function(t){var n,i,r,a,o,s,u,l,c,h,p,f,v,b,T,
1w,S,A,x,k,I,C,R,P,D,N,O,_,U,q,j;return M(t,(n=y,i=d,r=m,a=g,F(function(t){var d,g,m,y,B,V,G,H,z,K,W,X,Y,Z,J;switch(t.g){case 1:for(ct(n,"load"),o=n.h,n.L=new sk({zf:function(){return o.playbackRate},kd:function(){return o.defaultPlaybackRate},ki:function(e){o.playbackRate=e},tj:function(e){o.currentTime+=e}}),cl(n,o,i),("onchange"in e.screen)&&n.j.o(e.screen,"change",function(){if(n.J.getConfiguration){var e=n.J.getConfiguration();"AUTO"==e.hdrLevel?cP(n):"AUTO"==n.g.preferredVideoHdrLevel&&n.g.abr.enabled&&(e.hdrLevel="AUTO",n.J.configure(e),cP(n))}}),s=!1,l=(u=E(n.i.variants)).next();!l.done;l=u.next())(h=(c=l.value).video&&c.video.dependencyStream)&&(s=tq(h));d=n,g=n.g,(m=s)||g.lcevc.enabled?(l6(d),null==d.R&&(d.R=new tO(d.h,d.Hi,g.lcevc,m),d.H&&(d.H.D=d.R))):l6(d),n.be=n.g.preferredTextLanguage,n.fe=n.g.preferredTextRole,n.ee=n.g.preferForcedSubs,cJ(n.i.presentationTimeline,n.g.playRangeStart,n.g.playRangeEnd),n.u.init(function(e,t,i){n.i&&n.l&&e!=n.l.u&&cO(n,e,!0,void 0!==t&&t,void 0===i?0:i)}),n.u.setMediaElement(o),n.u.setCmsdManager(n.oa),n.l=new sQ((H=n).i,{Bc:function(){return H.G?H.G.ie():0},getBandwidthEstimate:function(){return H.u.getBandwidthEstimate()},Za:function(){return H.Za()},video:H.h,ha:H.H,Gc:H.M,onError:function(e){return cW(H,e)},onEvent:function(e){return H.dispatchEvent(e)},Wf:function(e,t,n){var i=e.startTime,r=e.endTime,a=t.type;if(a!=tn){if(H.G){H.G.vj();var o=oq(H.H,a);!H.U()&&H.h.paused&&!H.h.seeking&&null!=o&&o>0&&H.G.ie()<o&&!l4(H.G.ie(),o,.001)&&H.G.Eg(o)}cg(H)}n=(new Map).set("start",i).set("end",r).set("contentType",a).set("isMuxed",n),H.dispatchEvent(l7("segmentappended",n)),H.u&&t.fastSwitching&&e.od&&e.Ae&&H.u.trySuggestStreams()},Tl:function(e,t){var n,i,r,a,o,s,u;(t=t.Pd)&&H.Pe&&(n=H.Pe,i=t,r=e,a=n,o=i.contentType,(s=a.g.get(o))||(s={Ie:[],Wg:null,contentType:o},a.g.set(o,s)),function(e,t){if((e=e.h()[t.contentType])&&e.length>0){var n=e[0].start,i=e[e.length-1].end,r=t.Ie;t.Ie=r.filter(function(e,t){return(!(e.position<=n)||!(t+1<r.length)||!(r[t+1].position<=n))&&!(e.position>=i)})}else t.Ie=[]}(n,u=s),n={Pd:i,position:r},(i=(u=u.Ie).findIndex(function(e){return e.position>=r}))>=0?u.splice(i,+(u[i].position==r),n):u.push(n))},Mi:function(e,t){var n=H.F;if(n.h.parseInbandPsshEnabled&&!n.H&&["audio","video"].includes(e)){e=new rV(eD(t)),t=0;for(var i=E(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=E(e.data)).next();!r.done;r=e.next())r=r.value,t.set(r,i),i+=r.length;rY(n,"cenc",t),n=n.m}}else n=Promise.resolve();return n},disableStream:function(e,t){return H.disableStream(e,t)},wm:function(e,t){return!H.g.abr.enabled||!t.fastSwitching||!e.od||!e.Ae}}),n.l.configure(n.g.streaming),n.m=c5,n.dispatchEvent(l7("streaming")),p=r;case 2:for((v=n.l.u)||p||(p=cD(n,!0)),b=[],w=(T=E([(f=v||p).video,f.audio])).next();!w.done;w=T.next())(S=w.value)&&!S.segmentIndex&&(b.push(S.createSegmentIndex()),S.dependencyStream&&b.push(S.dependencyStream.createSegmentIndex()));if(!(b.length>0)){t.B(4);break}return M(t,Promise.all(b),4);case 4:if(!f||0!=f.disabledUntilTime){t.B(2);break}if(cP(n),n.I&&n.I.onInitialVariantChosen&&n.I.onInitialVariantChosen(f),n.i.isLowLatency&&(n.g.streaming.lowLatencyMode?n.configure(n.Hg):ea("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.")),n.K&&((y=n.K).A=n.i.isLowLatency&&n.g.streaming.lowLatencyMode,y.A?y.l==lN?y.l=lO:y.l==l_&&(y.l=lU):y.l==lO?y.l=lN:y.l==lU&&(y.l=l_),function(e,t){if(e.g&&e.g.enabled&&(lh(e,"ps",{ud:"d"}),e.h&&e.h.autoplay)){var n=e.h.play();n&&n.then(function(){e.H=t}).catch(function(){e.H=0})}}(n.K,1e3*i)),cJ(n.i.presentationTimeline,n.g.playRangeStart,n.g.playRangeEnd),B=n.l,V=n.g.playRangeStart,G=n.g.playRangeEnd,B.j.presentationTimeline.U()||(B.Z=V,B.W=G),n.Na=!0,n.dispatchEvent(l7("canupdatestarttime")),A=function(e){var t,i,r,a,s,u,l;t=n,i=e,n.G=new sm(t.h,t.i,t.g.streaming,i,function(){t.Pb&&sM(t.Pb,!t.G.Ei()),t.l&&t.l.sd(),t.P&&cg(t,"seeking")},function(e){return t.dispatchEvent(e)}),r=n,a=e,s=r.U()||"number"==typeof a&&a>0,(a=new uY(r.Re,s)).addEventListener("enter",function(e){cX(r,"timelineregi
1onenter",e.region)}),a.addEventListener("exit",function(e){cX(r,"timelineregionexit",e.region)}),a.addEventListener("skip",function(e){var t=e.region;e.seeking||(cX(r,"timelineregionenter",t),cX(r,"timelineregionexit",t))}),(u=new uY(r.ya,s)).addEventListener("enter",function(e){cc(r,e.region,"metadata")}),(s=new uY(r.ib,s)).addEventListener("enter",function(e){e=(new Map).set("detail",e.region.emsg),r.dispatchEvent(l7("emsg",e))}),(l=new sC(r.h)).g.add(a),l.g.add(u),l.g.add(s),r.Pe&&l.g.add(r.Pe),n.Pb=l,cp(n,o,!1)},n.g.streaming.startAtSegmentBoundary||(null==(x=n.O)&&n.i.startTime&&(x=n.i.startTime),A(x)),v){t.B(7);break}if(!n.g.streaming.startAtSegmentBoundary){t.B(8);break}return k=n.i.presentationTimeline,n.O instanceof Date&&(C=k.m||k.i,I=R=n.O.getTime()/1e3-C),null==I&&(I="number"==typeof n.O?n.O:n.h.currentTime),null==n.O&&n.i.startTime&&(I=n.i.startTime),P=k.hc(),D=k.Mb(),I<P?I=P:I>D&&(I=D),M(t,(z=p,K=I,F(function(e){return 1==e.g?(W=z.audio,X=z.video,Y=function(e,t){var n,i,r;return F(function(a){return 1==a.g?e?e.segmentIndex?a.B(2):M(a,e.createSegmentIndex(),2):a.return(null):(i=(n=e.segmentIndex.fc(t))?n.next().value:null)?(r=i.startTime,a.return(r)):a.return(null)})},M(e,Y(W,K),2)):3!=e.g?(Z=e.h,M(e,Y(X,K),3)):null!=(J=e.h)&&null!=Z?e.return(Math.max(J,Z)):null!=J?e.return(J):null!=Z?e.return(Z):e.return(K)})),9);case 9:N=t.h,A(N);case 8:cO(n,p,!0,!1,0);case 7:return n.G.ready(),n.Cc().find(function(e){return e.active})||((O=iz(n.i.textStreams,n.be,n.fe,n.ee)[0]||null)&&u_(n.C.h,O,!0),p&&(O?(iY(p.audio,O,n.g)&&(n.W=!0),n.W&&n.A.setTextVisibility(!0)):(n.W=!1,n.A.setTextVisibility(!1)),cG(n)),O&&(n.g.streaming.alwaysStreamText||n.Yc())&&(s1(n.l,O),cz(n))),M(t,n.l.start(a),10);case 10:n.g.abr.enabled&&(n.u.enable(),cH(n)),cq(n),n.i.variants.some(function(e){return e.primary}),((_=n.U())&&(n.g.streaming.liveSync&&n.g.streaming.liveSync.enabled||n.i.serviceDescription||n.g.streaming.liveSync.panicMode)||n.g.streaming.vodDynamicPlaybackRate)&&(U=function(){return cL(n)},n.j.o(o,"timeupdate",U)),_||(q=function(){return cR(n)},n.j.o(o,"timeupdate",q),cR(n),n.i.nextUrl&&(n.g.streaming.preloadNextUrlWindow>0&&(j=function(){var e;return F(function(t){if(1==t.g)return isNaN(e=n.wa().end-n.h.currentTime)||!(e<=n.g.streaming.preloadNextUrlWindow)?t.B(0):(n.j.Ea(o,"timeupdate",j),M(t,n.preload(n.i.nextUrl),4));n.$a=t.h,L(t)})},n.j.o(o,"timeupdate",j)),n.j.o(o,"ended",function(){n.load(n.$a||n.i.nextUrl)}))),n.D&&n.D.onManifestUpdated(_),L(t)}})),0)})},"loadInner_"),24);case 24:var T,w,S,A,x,k,I=r;if(I.J)for(var C=E(I.J),D=C.next();!D.done;D=C.next())(D=D.value)();I.J=null,y.Fa&&eB().og()&&id(y.Fa)&&(A=y.H,x=y.V,k=y.Fa,A.g&&e.ManagedMediaSource&&A.i&&A.C.useSourceElements&&(A.F&&A.g.removeChild(A.F),A.F=oe(x,k),A.g.appendChild(A.F),A.g.disableRemotePlayback=!1)),b.B(16);break;case 25:return M(b,u(function(){return F(function(e){var t,n,r,a,o,s,u,l,c,h,p,f,g,m,v;return M(e,(t=y,n=d,r=i,F(function(e){switch(e.g){case 1:var i,d,y;if(ct(t,"src-equals"),a=t.h,t.G=new sp(a),o=!1,t.Ue.push(function(){o=!0}
1),t.dispatchEvent(l7("canupdatestarttime")),null!=t.O&&t.G.Eg(t.O),i=t,d=t.O||0,(d=new uY(i.ya,d instanceof Date||d>0)).addEventListener("enter",function(e){cc(i,e.region,"metadata")}),(y=new sC(i.h)).g.add(d),t.Pb=y,t.L=new sk({zf:function(){return a.playbackRate},kd:function(){return a.defaultPlaybackRate},ki:function(e){a.playbackRate=e},tj:function(e){a.currentTime+=e}}),cp(t,a,!0),a.textTracks&&(cs(t),s=function(e){if(!(t.A instanceof u9)){var n,i=cw(t).find(function(e){return"disabled"!==e.mode});i&&(i.mode=e?"showing":"hidden"),t.A instanceof le&&(i=Array.from((n=t).h.textTracks).find(function(e){return"Shaka Player TextTrack"==e.label}))&&(i.mode=!e&&t.A.isTextVisible()?"showing":"hidden")}},t.j.o(a,"enterpictureinpicture",function(){return s(!0)}),t.j.o(a,"leavepictureinpicture",function(){return s(!1)}),a.remote?(t.j.o(a.remote,"connect",function(){return s(!1)}),t.j.o(a.remote,"connecting",function(){return s(!1)}),t.j.o(a.remote,"disconnect",function(){return s(!1)})):"webkitCurrentPlaybackTargetIsWireless"in a&&t.j.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){return s(!1)}),((u=a).webkitPresentationMode||u.webkitSupportsFullscreen)&&t.j.o(u,"webkitpresentationmodechanged",function(){u.webkitPresentationMode?s("inline"!==u.webkitPresentationMode):u.webkitSupportsFullscreen&&s(u.webkitDisplayingFullscreen)})),cl(t,a,n),!(l=function(e,t,n){try{if(!e.g.enabled)return t;var i=ld(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=lx;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":r=lI;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=lE;break e}r=void 0}i.ot=r,i.su=!0;var a=lw(i);return lA(t,a)}catch(e){return eo("CMCD_SRC_ERROR","Could not generate src CMCD data.",e),t}}(t.K,t.V,r)).includes("#t=")&&(t.g.playRangeStart>0||isFinite(t.g.playRangeEnd))&&(l+="#t=",t.g.playRangeStart>0&&(l+=t.g.playRangeStart),isFinite(t.g.playRangeEnd)&&(l+=","+t.g.playRangeEnd)),!t.H){e.B(2);break}return M(e,t.H.destroy(),3);case 3:t.H=null;case 2:return ot(a),a.src=l,"TV"==(c=eB()).Oa()&&a.load(),"none"!=a.preload&&!a.autoplay&&id(r)&&"WEBKIT"===c.Ja()&&a.load(),t.m=c3,t.dispatchEvent(l7("streaming")),h=function(){return new Promise(function(e){var n=new iA(e);t.j.o(a.textTracks,"change",function(){return n.Y(.5)}),n.Y(.5)})},p=new ra,sr(a,HTMLMediaElement.HAVE_METADATA,t.j,function(){return F(function(e){if(1==e.g)return t.G.ready(),t.Fa&&id(t.Fa)?M(e,h(),3):(p.resolve(),e.B(0));p.resolve(),L(e)})}),sr(a,HTMLMediaElement.HAVE_CURRENT_DATA,t.j,function(){var e,n,i,r,a;return F(function(s){var u,l,c,d;if(1==s.g)return M(s,h(),2);if(o)return s.return();if(""!=(l=(u=t).g.preferredAudioLanguage)&&u.Jj(l,u.g.preferredAudioRole),(e=cw(t)).some(function(e){return"showing"===e.mode})&&(t.W=!0,t.A.setTextVisibility(!0)),!(t.A instanceof u9))for(e.length&&(t.A.enableTextDisplayer?t.A.enableTextDisplayer():tR("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method')),n=!1,r=(i=E(e)).next();!r.done;r=i.next())"disabled"!==(a=r.value).mode&&(n?(a.mode="disabled",ea("Found more than one enabled text track, disabling it",a)):(cT(t,a),n=!0));""!=(d=(c=t).g.preferredTextLanguage)&&c.di(d,c.g.preferredTextRole,c.g.preferForcedSubs),L(s)})}),a.error?p.reject(cZ(t)):"none"==a.preload&&(ea('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.'),p.resolve()),t.j.qa(a,"error",function(){p.reject(cZ(t))}),M(e,iI(t.g.streaming.loadTimeout,p),4);case 4:((f=t.U())&&(t.g.streaming.liveSync&&t.g.streaming.liveSync.enabled||t.g.streaming.liveSync.panicMode)||t.g.streaming.vodDynamicPlaybackRate)&&(g=function(){return cL(t)},t.j.o(a,"timeupdate",g)),f||(m=function(){return cR(t)},t.j.o(a,"timeupdate",m),cR(t)),t.D&&(t.D.onManifestUpdated(f),f&&(v=t.wa().end,t.j.o(a,"progress",function(){var e=t.wa().end;v!=e&&(t.D.onManifestUpdated(t.U()),v=e)}))),t.Na=!0,L(e)}})),0)})},"srcEqualsInner_"),16);case 16:y.dispatchEvent(l7("loaded"));case 8:if(O(b),!r){b.B(27);break}return M(b,r.destroy(),27);case 27:y.$a=null,_(b,0);break;case 7:if(!(v=N(b))||7e3==v.code){b.B(29);break}return M(b,y.vc(!1),29);case 29:throw v}})},p.fk=function(e,t,n){e=void 0===e||e,t=void 0!==t&&t,n=void 0!==n&&n;var i,r=this;return F(function(a){return 1==a.g?M(a,ci(r,n),2):3!=a.g?(i=a.h,M(a,r.vc(e,t),3)):a.return(i)})},p.Vi=function(e,t){e=void 0!==e&&e,t=void 0!==t&&t;var n,i=this;return F(function(r){return 1==r.g?M(r,ci(i,t),2):3!=r.g?(n=r.h,M(r,i.detach(e),3)):r.return(n)})},p.preload=function(e,t,n,i){t=void 0===t?null:t;var r,a,o=this;return F(function(s){return 1==s.g?(uL(r=ck(o),i||o.g,ck(o)),M(s,cr(o,e,t,n,!1,r),2)):((a=s.h)?a.start():cW(o,new eU(2,7,7005)),s.return(a))})},p.Yg=function(){var e,t,n,i,r=this;return F(function(a){for(e=[],n=(t=E(r.Ze)).next();!n.done;n=t.next())(i=n.value).l||e.push(i.destroy());return r.Ze=[],M(a,Promise.all(e),0)})},p.bm=function(){for(var e=this.Z;e.g;)e.release()},p.Ed=function(e){return new rH(e)},p.configure=function(e,t){var n=this.getConfiguration();if(2==arguments.length&&"string"==typeof e&&(e=uv(e,t)),"preferredVariantRole"in e&&(tR("preferredVariantRole configuration","Please Use preferredAudioRole instead."),e.preferredAudioRole=e.preferredVariantRole,delete e.preferredVariantRole),e.streaming&&"forceTransmuxTS"in e.streaming&&(tR("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),e.mediaSource=e.mediaSource||{},e.mediaSource.mediaSource=e.streaming.forceTransmuxTS,delete e.streaming.forceTransmuxTS),e.streaming&&"forceTransmux"in e.streaming&&(tR("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),e.mediaSource=e.mediaSource||{},e.mediaSource.mediaSource=e.streaming.forceTransmux,delete e.streaming.forceTransmux),e.streaming&&"useNativeHlsOnSafari"in e.streaming){tR("streaming.useNativeHlsOnSafari configuration","Please Use streaming.useNativeHlsForFairPlay or streaming.preferNativeHls instead.");var i=eB();e.streaming.preferNativeHls=e.streaming.useNativeHlsOnSafari&&"WEBKIT"===i.Ja(),delete e.streaming.useNativeHlsOnSafari}if(e.streaming&&"boolean"==typeof e.streaming.liveSync&&(tR("streaming.liveSync","Please Use streaming.liveSync.enabled instead."),i=e.streaming.liveSync,e.streaming.liveSync={},e.streaming.liveSync.enabled=i),e.streaming&&!(e.streaming.liveSync&&"targetLatency"in e.
1streaming.liveSync)&&("liveSyncMinLatency"in e.streaming||"liveSyncMaxLatency"in e.streaming)){i=e.streaming.liveSyncMinLatency||0;var r=Math.abs((e.streaming.liveSyncMaxLatency||1)-i)/2;e.streaming.liveSync=e.streaming.liveSync||{},e.streaming.liveSync.targetLatency=i+r,e.streaming.liveSync.targetLatencyTolerance=r}if(e.streaming&&"liveSyncMaxLatency"in e.streaming&&(tR("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&&(tR("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&&(tR("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&&(tR("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&&(tR("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&&(tR("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&&(tR("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&&(tR("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){tR("mediaSource.sourceBufferExtraFeatures configuration","Please Use mediaSource.addExtraFeaturesToSourceBuffer() instead.");var a=e.mediaSource.sourceBufferExtraFeatures;e.mediaSource.addExtraFeaturesToSourceBuffer=function(){return a},delete e.mediaSource.sourceBufferExtraFeatures}if(e.manifest&&e.manifest.hls&&"useSafariBehaviorForLive"in e.manifest.hls&&(tR("manifest.hls.useSafariBehaviorForLive configuration","Please Use liveSync config to keep on live Edge instead."),delete e.manifest.hls.useSafariBehaviorForLive),e.streaming&&"parsePrftBox"in e.streaming&&(tR("streaming.parsePrftBox configuration","Now fired without needing a configuration."),delete e.streaming.parsePrftBox),e.manifest&&e.manifest.dash&&"enableAudioGroups"in e.manifest.dash&&(tR("manifest.dash.enableAudioGroups configuration","Please Use manifest.enableAudioGroups instead."),e.manifest.enableAudioGroups=e.manifest.dash.enableAudioGroups,delete e.manifest.dash.enableAudioGroups),e.streaming&&"dispatchAllEmsgBoxes"in e.streaming&&(tR("streaming.dispatchAllEmsgBoxes configuration","Please Use mediaSource.dispatchAllEmsgBoxes instead."),e.mediaSource=e.mediaSource||{},e.mediaSource.dispatchAllEmsgBoxes=e.streaming.dispatchAllEmsgBoxes,delete e.streaming.dispatchAllEmsgBoxes),e.streaming&&"autoLowLatencyMode"in e.streaming&&(tR("streaming.autoLowLatencyMode configuration","Please Use streaming.lowLatencyMode instead."),e.streaming.lowLatencyMode=e.streaming.autoLowLatencyMode,delete e.streaming.autoLowLatencyMode),e.manifest&&e.manifest.dash&&"ignoreSupplementalCodecs"in e.manifest.dash&&(tR("manifest.dash.ignoreSupplementalCodecs configuration","Please Use manifest.ignoreSupplementalCodecs instead."),e.manifest.ignoreSupplementalCodecs=e.manifest.dash.ignoreSupplementalCodecs,delete e.manifest.dash.ignoreSupplementalCodecs),e.manifest&&e.manifest.hls&&"ignoreSupplementalCodecs"in e.manifest.hls&&(tR("manifest.hls.ignoreSupplementalCodecs configuration","Please Use manifest.ignoreSupplementalCodecs instead."),e.manifest.ignoreSupplementalCodecs=e.manifest.hls.ignoreSupplementalCodecs,delete e.manifest.hls.ignoreSupplementalCodecs),e.manifest&&e.manifest.dash&&"updatePeriod"in e.manifest.dash&&(tR("manifest.dash.updatePeriod configuration","Please Use manifest.updatePeriod instead."),e.manifest.updatePeriod=e.manifest.dash.updatePeriod,delete e.manifest.dash.updatePeriod),e.manifest&&e.manifest.hls&&"updatePeriod"in e.manifest.hls&&(tR("manifest.hls.updatePeriod configuration","Please Use manifest.updatePeriod instead."),e.manifest.updatePeriod=e.manifest.hls.updatePeriod,delete e.manifest.hls.updatePeriod),e.manifest&&e.manifest.dash&&"ignoreDrmInfo"in e.manifest.dash&&(tR("manifest.dash.ignoreDrmInfo configuration","Please Use manifest.ignoreDrmInfo instead."),e.manifest.ignoreDrmInfo=e.manifest.dash.ignoreDrmInfo,delete e.manifest.dash.ignoreDrmInfo),e.drm&&e.drm.advanced){for(var o in i=!1,e.drm.advanced){var s=e.drm.advanced[o];
1r=s.videoRobustness,s=s.audioRobustness,"videoRobustness"in e.drm.advanced[o]&&!Array.isArray(e.drm.advanced[o].videoRobustness)&&(e.drm.advanced[o].videoRobustness=[r],i=!0),"audioRobustness"in e.drm.advanced[o]&&!Array.isArray(e.drm.advanced[o].audioRobustness)&&(e.drm.advanced[o].audioRobustness=[s],i=!0)}i&&tR("AdvancedDrmConfiguration's videoRobustness and audioRobustness","These properties are no longer strings but array of strings, please update your usage of these properties.")}return e.streaming&&"forceHTTP"in e.streaming&&(tR("streaming.forceHTTP configuration","Please Use networking.forceHTTP instead."),e.networking=e.networking||{},e.networking.forceHTTP=e.streaming.forceHTTP,delete e.streaming.forceHTTP),e.streaming&&"forceHTTPS"in e.streaming&&(tR("streaming.forceHTTPS configuration","Please Use networking.forceHTTP instead."),e.networking=e.networking||{},e.networking.forceHTTPS=e.streaming.forceHTTPS,delete e.streaming.forceHTTPS),e.streaming&&"minBytesForProgressEvents"in e.streaming&&(tR("streaming.minBytesForProgressEvents configuration","Please Use networking.minBytesForProgressEvents instead."),e.networking=e.networking||{},e.networking.minBytesForProgressEvents=e.streaming.minBytesForProgressEvents,delete e.streaming.minBytesForProgressEvents),o=uL(this.g,e,ck(this)),cm(this,n),o},p.xk=function(e){this.Hg=e},p.getConfiguration=function(){var e=ck(this);return uL(e,this.g,ck(this)),e},p.Jk=function(){return this.Hg},p.bj=function(){return uL(ck(this),this.g,ck(this)),uy(this.g,ck(this))},p.Zi=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.wa().end)))return 1;if(!(e<=this.h.currentTime)&&e<t)return(e-this.h.currentTime)/(t-this.h.currentTime)}return 0},p.Ej=function(){var e,t=this.getConfiguration();for(e in this.g)delete this.g[e];uL(this.g,ck(this),ck(this)),cm(this,t)},p.Ac=function(){return this.m},p.yh=function(){return this.i?this.i.type:null},p.xf=function(){return this.h},p.Xb=function(){return this.M},p.jd=function(){return this.V},p.vf=function(){return this.D?this.D:null},p.yf=function(){return this.ua?this.ua:null},p.U=function(){return this.i&&!this.Da()?this.i.presentationTimeline.U():!!(this.h&&(this.h.src||this.Da()))&&this.h.duration==1/0},p.md=function(){return!!this.i&&this.i.presentationTimeline.md()},p.Md=function(){if(this.i&&!this.Da()){var e=this.i.variants;return!!e.length&&!e[0].video}return!!(this.h&&(this.h.src||this.Da()))&&(this.h.videoTracks?0==this.h.videoTracks.length:0==this.h.videoHeight)},p.If=function(){if(this.i&&!this.Da()){var e=this.i.variants;return!!e.length&&!(e=e[0]).audio&&!!e.video&&!e.video.codecs.includes(",")}return!!(this.h&&(this.h.src||this.Da()))&&!!this.h.audioTracks&&0==this.h.audioTracks.length},p.wa=function(){if(this.i&&!this.Da()){if(!this.Na&&"HLS"==this.i.type)return{start:0,end:0};var e=this.i.presentationTimeline;return{start:e.hc(),end:e.Mb()}}if(this.h&&(this.h.src||this.Da())&&(e=this.h.seekable)&&e.length){var t=this.g?this.g.playRangeStart:0;t=Math.max(e.start(0),t);var n=this.g?this.g.playRangeEnd:1/0;return{start:t,end:e=Math.min(e.end(e.length-1),n)}}return{start:0,end:0}},p.zl=function(){this.U()&&(this.h.currentTime=this.wa().end)},p.Ih=function(){return this.Na},p.keySystem=function(){var e=this.drmInfo();return e?e.keySystem:""},p.drmInfo=function(){return this.F?this.F.g:null},p.re=function(){return this.F?this.F.re():1/0},p.rh=function(){return this.F?this.F.rh():[]},p.wf=function(){return this.F?this.F.wf():{}},p.Ff=function(){return this.P?this.P.g==ai:!!this.V},p.Za=function(){return this.h?this.L?this.L.i:1:0},p.Ci=function(e){this.m==c5&&this.l&&s$(this.l,e)},p.uc=function(e,t){t=void 0===t||t,0==e?ea("A trick play rate of 0 is unsupported!"):(this.L.set(e),this.m==c5&&(this.u.playbackRateChanged(e),this.Ci(t&&1!=e)),cC(this,e))},p.Cd=function(){var e=this.L.kd();this.m==c3&&this.L.set(e),this.m==c5&&(this.L.set(e),this.u.playbackRateChanged(e),this.Ci(!1)),this.mc.Sa()},p.Ob=function(){if(this.i&&!this.Da()){for(var e=this.l?this.l.u:null,t=[],n=0,i=E(this.i.variants),r=i.next();!r.done;r=i.next())if(iG(r=r.value)){var a=iU(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}if(this.h&&this.h.audioTracks){var o=cU(this);return(e=Array.from(this.h.audioTracks)).length?e.map(function(e){return iV(e,o)}):o?[iV(null,o)]:[]}return[]},p.Cc=function(){if(this.i){if(this.Da())return[];for(var e=this.l?this.l.C:null,t=[],n=E(this.i.textStreams),i=n.next();!i.done;i=n.next()){var r=iq(i=i.value);r.active=i==e,t.push(r)}return t}return this.h&&this.h.src&&this.h.textTracks?cw(this).map(function(e){return iF(e)}):[]},p.wh=function(){var e=this.bf;return this.i&&(e=this.i.imageStreams),e.map(function(e){return ij(e)})},p.Ak=function(e){var t,n,i=this;return F(function(r){return 1==r.g?M(r,cy(i,e),2):(t=r.h)?(n=[],t.segmentIndex.Lb(function(e){var i=cv(e.tilesLayout||t.tilesLayout);if(i)for(var r=i.rows*i.columns,a=e.j-e.startTime,o=0;o<r;o++){var s=cb(e,t,e.startTime+a*o/r,i);n.push(s)}}),t.closeSegmentIndex&&t.closeSegmentIndex(),r.return(n)):r.return(null)})},p.dj=function(e,t){var n,i,r,a,o,s=this;return F(function(u){return 1==u.g?M(u,cy(s,e),2):(n=u.h)?(n.closeSegmentIndex&&(s.Jc.has(n)||(i=new iA(function(){n.closeSegmentIndex(),s.Jc.delete(n)}),s.Jc.set(n,i)),s.Jc.get(n).Y(5)),null==(r=n.segmentIndex.find(t)))?u.return(null):(o=cv((a=n.segmentIndex.get(r)).tilesLayout||n.tilesLayout))?u.return(cb(a,n,t,o)):u.return(null):u.return(null)})},p.jg=function(e){var t,n=this;if((!this.i||!this.G||((t=n.i.textStreams.find(function(t){return t.id==e.id}))&&t!=n.l.C&&(u_(n.C.h,t,!1),s1(n.l,t),cV(n),cz(n),n.be=t.language),this.Da()))&&n.h&&n.h.textTracks){var i=cw(n),r=i.find(function(t){return iB(t)===e.id});if(r){if(n.A instanceof u9){i=E(i);for(var a=i.next();!a.done;a=i.next()){var o=(a=a.value)===r?n.W?"showing":"hidden":"disabled";a.mode!==o&&(a.mode=o)}}else(i=i.find(function(e){return"disabled"!==e.mode}))!==r&&(i&&(i.mode="disabled",n.j.Ea(i,"cuechange"),n.A.remove(0,1/0)),r&&cT(n,r));cV(n),cz(n)}}},p.Ke=function(e,t,n){var i=this;if(t=void 0!==t&&t,n=void 0===n?0:n,(!this.i||!this.G||(function(){var r=i.i.variants.find(function(t){return t.id==e.id});if(r&&iG(r)){var a=i.l.u;i.g.abr.enabled&&(a.video!=r.video||a.audio&&r.audio&&a.audio.language==r.audio.language&&a.audio.channelsCount==r.audio.channelsCount&&a.audio.label==r.audio.label)&&ea("Changing tracks while abr manager is enabled will likely result in the selected track being overridden. Consider disabling abr before calling selectVariantTrack()."),i.Da()?cO(i,r,!1,!1,0):cO(i,r,!1,t||!1,n||0),i.J.configure({language:r.language,role:r.audio&&r.audio.roles&&r.audio.roles[0]||"",videoRole:r.video&&r.video.roles&&r.video.roles[0]||"",channelCount:r.audio&&r.audio.channelsCount?r.audio.channelsCount:0,hdrLevel:r.video&&r.video.hdr?r.video.hdr:"",spatialAudio:!!r.audio&&!!r.audio.spatialAudio&&r.audio.spatialAudio,videoLayout:r.video&&r.video.videoLayout?r.video.videoLayout:"",audioLabel:r.audio&&r.audio.label?r.audio.label:"",videoLabel:r.video&&r.video.label?r.video.label:"",codecSwitchingStrategy:i.g.mediaSource.codecSwitchingStrategy,audioCodec:r.audio&&r.audio.codecs?r.audio.codecs:"",activeAudioCodec:a.audio&&a.audio.codecs?a.audio.codecs:"",activeAudioChannelCount:a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,preferredAudioCodecs:i.g.preferredAudioCodecs,preferredAudioChannelCount:i.g.preferredAudioChannelCount}),cP(i)}}(),this.Da()))&&e.originalAudioId&&i.h&&i.h.audioTracks){var r=Array.from(i.h.audioTracks);r=E(r);for(var a=r.next();!a.done;a=r.next())if(iB(a=a.value)==e.id){c_(i,a);break}}},p.Kj=function(e,t){var n,i=this;t=void 0===t?0:t,(!this.i||!this.G||((n=i.J.getConfiguration()).audioCodec=e.codecs||"",n.audioLabel=e.label||"",n.channelCount=e.channelsCount||0,n.language=e.language,n.role=e.roles[0]||"",n.spatialAudio=e.spatialAudio,i.J.configure(n),cN(i,!0,t,!1,!1),this.Da()))&&function(){if(i.h&&i.h.audioTracks){var t=tc(e.language),n=Array.from(i.h.audioTracks),r=null;n=E(n);for(var a=n.next();!a.done;a=n.next()){var o=(a=a.value).language||"und";if(a.label==e.label&&tc(o)==t&&a.kind==e.roles[0]){r=a;break}}r&&c_(i,r)}}()},p.getAudioTracks=function(){if(this.i&&!this.Da()){var e=this.Ob();if(!e.length)return[];var t=e.find(function(e){return e.active});if(!t)return[];var n=e;if(this.m!=c5||this.Da()||(n=e.filter(function(e){return e.originalVideoId===t.originalVideoId&&(e.audioCodec||ip.includes(e.audioMimeType||""))})),!n.length)return[];e=new Map,n=E(n);for(var i=n.next();!i.done;i=n.next()){var r=(i=i.value).originalAudioId;r||null==i.audioId||(r=String(i.audioId)),!r&&i.codecs.includes(",")&&i.audioCodec&&(r="muxed-in-video"),r&&(r+=[i.language,i.label,i.channelsCount,i.spatialAudio,i.audioCodec||""].join("_"),e.set(r,{active:i.active,language:i.language,label:i.label,mimeType:i.audioMimeType,codecs:i.audioCodec,primary:i.primary,roles:i.audioR
1oles||[],accessibilityPurpose:i.accessibilityPurpose,channelsCount:i.channelsCount,audioSamplingRate:i.audioSamplingRate,spatialAudio:i.spatialAudio,originalLanguage:i.originalLanguage}))}return Array.from(e.values())}return this.h&&this.h.audioTracks?Array.from(this.h.audioTracks).map(function(e){var t=e.language;return t={active:e.enabled,language:tc(t||"und"),label:e.label,mimeType:null,codecs:null,primary:"main"==e.kind,roles:[],accessibilityPurpose:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,originalLanguage:t},e.kind&&("description"==e.kind&&(t.accessibilityPurpose="visually impaired"),t.roles.push(e.kind)),e.configuration&&(e.configuration.codec&&(t.codecs=e.configuration.codec),e.configuration.sampleRate&&(t.audioSamplingRate=e.configuration.sampleRate),e.configuration.numberOfChannels&&(t.channelsCount=e.configuration.numberOfChannels)),t}):[]},p.Lj=function(e,t,n){t=void 0!==t&&t,n=void 0===n?0:n;var i=this.Ob();if(i.length){var r,a=i.find(function(e){return e.active});a&&((r=1==(i=i.filter(function(t){return(t.videoBandwidth||t.bandwidth)==e.bandwidth&&t.width==e.width&&t.height==e.height&&t.frameRate==e.frameRate&&t.pixelAspectRatio==e.pixelAspectRatio&&t.hdr==e.hdr&&t.colorGamut==e.colorGamut&&t.videoLayout==e.videoLayout&&t.videoMimeType==e.mimeType&&t.videoCodec==e.codecs&&tk(t.videoRoles,e.roles)&&t.videoLabel==e.label})).length?i[0]:i.find(function(e){return e.audioId===a.audioId}))||(r=i.find(function(e){return e.language==a.language&&e.label===a.label&&e.channelsCount===a.channelsCount&&e.spatialAudio===a.spatialAudio&&e.audioMimeType===a.audioMimeType&&is(e.audioCodec||"")===is(a.audioCodec||"")&&tk(e.audioRoles,a.audioRoles)})),r&&!r.active&&this.Ke(r,t,n))}},p.getVideoTracks=function(){if(this.m==c3||this.Da())return[];var e=this.Ob();if(!e.length)return[];var t=e.find(function(e){return e.active});if(!t)return[];var n=e;if(this.If()||(n=e.filter(function(e){return!!e.videoCodec&&e.audioGroupId===t.audioGroupId&&e.originalAudioId===t.originalAudioId&&(e.audioId===t.audioId||e.language===t.language&&e.label===t.label&&e.channelsCount===t.channelsCount&&e.spatialAudio===t.spatialAudio&&e.audioMimeType===t.audioMimeType&&is(e.audioCodec||"")===is(t.audioCodec||"")&&tk(e.audioRoles,t.audioRoles))})),!n.length)return[];e=new Map,n=E(n);for(var i=n.next();!i.done;i=n.next()){var r=(i=i.value).originalVideoId;r||null==i.videoId||(r=String(i.videoId)),r&&e.set(r,{active:i.active,bandwidth:i.videoBandwidth||i.bandwidth,width:i.width,height:i.height,frameRate:i.frameRate,pixelAspectRatio:i.pixelAspectRatio,hdr:i.hdr,colorGamut:i.colorGamut,videoLayout:i.videoLayout,mimeType:i.videoMimeType,codecs:i.videoCodec,roles:i.videoRoles||[],label:i.videoLabel})}return Array.from(e.values())},p.Ck=function(){return c0(this.Ob())},p.ll=function(){return c0(this.Cc())},p.Bk=function(){return Array.from(c$(this.Ob()))},p.kl=function(){return Array.from(c$(this.Cc()))},p.Jj=function(e,t,n,i,r,a,o){var s=this;if(n=void 0===n?0:n,i=void 0===i?0:i,r=void 0===r?"":r,a=void 0!==a&&a,o=void 0===o?"":o,(!this.i||!this.G||(function(){function u(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}var l=s.l.u;s.J=s.g.adaptationSetCriteriaFactory(),s.J.configure({language:e,role:t||"",videoRole:l.video&&l.video.roles&&l.video.roles[0]||"",channelCount:n||0,hdrLevel:"",spatialAudio:a||!1,videoLayout:"",audioLabel:o||"",videoLabel:"",codecSwitchingStrategy:s.g.mediaSource.codecSwitchingStrategy,audioCodec:r||"",activeAudioCodec:l.audio&&l.audio.codecs?l.audio.codecs:"",activeAudioChannelCount:l.audio&&l.audio.channelsCount?l.audio.channelsCount:0,preferredAudioCodecs:s.g.preferredAudioCodecs,preferredAudioChannelCount:s.g.preferredAudioChannelCount});var c=s.J.create(s.i.variants),d=null;c=E(c.values());for(var h=c.next();!h.done;h=c.next())iG(h=h.value)&&(!d||u(d,l)>u(h,l))&&(d=h);d!=l&&(d?(l=iU(d),s.Ke(l,!0,i||0)):cN(s))}(),this.Da()))&&s.h&&s.h.audioTracks){var u=iz(s.Ob(),e,t||"",!1)[0];u&&s.Ke(u)}},p.di=function(e,t,n){var i,r,a=this;
1n=void 0!==n&&n,(!this.i||!this.G||(a.be=e,a.fe=t||"",a.ee=n||!1,(i=iz(a.i.textStreams,a.be,a.fe,a.ee)[0]||null)&&i!=a.l.C&&(u_(a.C.h,i,!1),a.g.streaming.alwaysStreamText||a.Yc())&&(s1(a.l,i),cV(a),cz(a)),this.Da()))&&(r=iz(a.Cc(),e,t||"",n||!1)[0])&&a.jg(r)},p.om=function(e,t,n){var i=this;if(t=void 0===t||t,n=void 0===n?0:n,(!this.i||!this.G||(function(){for(var r=null,a=E(i.i.variants),o=a.next();!o.done;o=a.next())if((o=o.value).audio.label==e){r=o;break}null!=r&&(i.J=i.g.adaptationSetCriteriaFactory(),i.J.configure({language:r.language,role:"",videoRole:"",channelCount:0,hdrLevel:"",spatialAudio:!1,videoLayout:"",videoLabel:"",audioLabel:e,codecSwitchingStrategy:i.g.mediaSource.codecSwitchingStrategy,audioCodec:"",activeAudioCodec:"",activeAudioChannelCount:0,preferredAudioCodecs:i.g.preferredAudioCodecs,preferredAudioChannelCount:i.g.preferredAudioChannelCount}),cN(i,t,n))}(),this.Da()))&&i.h&&i.h.audioTracks){var r=Array.from(i.h.audioTracks),a=null;r=E(r);for(var o=r.next();!o.done;o=r.next())(o=o.value).label==e&&(a=o);a&&c_(i,a)}},p.Yc=function(){var e=this.W;return this.A?this.A.isTextVisible():e},p.Gk=function(){return this.jb.map(function(e){return iq(e)})},p.Fk=function(e){if(tR("getChapters","Please use an getChaptersAsync."),!this.jb.length)return[];var t=tc(e);if(!(e=this.jb.filter(function(e){return tc(e.language)==t})).length)return[];var n=[],i=new Set;e=E(e);for(var r=e.next();!r.done;r=e.next())(r=r.value).segmentIndex&&r.segmentIndex.Lb(function(e){var t=e.S()[0],r=e.startTime+"-"+e.endTime+"-"+t;e={id:r,title:t,startTime:e.startTime,endTime:e.endTime},i.has(r)||(n.push(e),i.add(r))});return n},p.sh=function(e){var t,n,i,r,a,o,s,u=this;return F(function(l){switch(l.g){case 1:if(!u.jb.length||(t=tc(e),!(n=u.jb.filter(function(e){return tc(e.language)==t})).length))return l.return([]);i=[],r=new Set,o=(a=E(n)).next();case 2:if(o.done){l.B(4);break}if((s=o.value).segmentIndex){l.B(5);break}return M(l,s.createSegmentIndex(),5);case 5:s.segmentIndex.Lb(function(e){var t=e.S()[0],n=e.startTime+"-"+e.endTime+"-"+t;e={id:n,title:t,startTime:e.startTime,endTime:e.endTime},r.has(n)||(i.push(e),r.add(n))}),o=a.next(),l.B(2);break;case 4:return l.return(i)}})},p.$d=function(e){var t,n;e=!!e,this.W!=e&&(this.W=e,this.m==c5?(this.A.setTextVisibility(e),this.g.streaming.alwaysStreamText||(e?this.l.C||(e=iz(this.i.textStreams,this.be,this.fe,this.ee)).length>0&&(s1(this.l,e[0]),cV(this),cz(this)):((n=(t=this.l).h.get(tn))&&(uo(n),us(n).catch(function(){}),t.H=t.h.get(tn),t.h.delete(tn),n.stream&&n.stream.closeSegmentIndex&&n.stream.closeSegmentIndex()),t.C=null))):this.h&&this.h.src&&this.h.textTracks&&this.A.setTextVisibility(e),cG(this))},p.Zk=function(){if(this.G)var e=this.G.ie();else{if(null==this.O)return new Date;if(this.O instanceof Date)return this.O;e=this.O}if(this.i&&!this.Da()){var t=this.i.presentationTimeline;return new Date(((t.m||t.i)+e)*1e3)}return this.h&&this.h.getStartDate?isNaN((t=this.h.getStartDate()).getTime())?null:new Date(t.getTime()+1e3*e):null},p.cj=function(){if(this.i&&!this.Da()){var e=this.i.presentationTimeline;return null===(e=e.m||e.i)?null:new Date(1e3*e)}return this.h&&this.h.getStartDate?isNaN((e=this.h.getStartDate()).getTime())?null:e:null},p.Af=function(){return this.U()&&this.i?this.i.presentationTimeline.Af():null},p.Rc=function(){if(this.m==c5)return this.H.Rc();var e={total:[],audio:[],video:[],text:[]};return this.m==c3&&(e.total=a4(this.h.buffered)),e},p.getBandwidthEstimate=function(){return this.u?this.u.getBandwidthEstimate():NaN},p.getStats=function(){if(this.m!=c5&&this.m!=c3)return{width:NaN,height:NaN,currentCodecs:"",streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds: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:[]};cM(this);var e=this.h,t=e.currentTime/e.duration;if(isNaN(t)||this.U()||(n=this.C,i=Math.round(100*t),n.i=isNaN(n.i)?i:Math.max(n.i,i)),this.G&&(this.C.R=this.G.Di(),this.C.T=this.G.Fi()),e.getVideoPlaybackQuality&&(t=e.getVideoPlaybackQuality(),r=this.C,a=Number(t.droppedVideoFrames),o=Number(t.totalVideoFrames),r.P=a,r.O=o,this.C.M=Number(t.corruptedVideoFrames)),this.C.u=this.F&&(s=this.F).J?s.J:NaN,u=this.C,l=e.videoWidth||NaN,c=e.videoHeight||NaN,u.V=l,u.D=c,this.C.l="",this.U()&&null!=(e=cS(this))&&(this.C.F=e/1e3),t=this.Ob().find(function(e){return e.active}),e=this.Cc().find(function(e){return e.active}),t){if(t.bandwidth){var n,i,r,a,o,s,u,l,c,d,h,p,f=this.L?this.L.i:1,g=f*t.bandwidth;e&&e.bandwidth&&(g+=f*e.bandwidth),this.C.C=g}t.width&&t.height&&(d=this.C,h=t.width||NaN,p=t.height||NaN,d.V=h,d.D=p),t=t.codecs,e&&(t+=","+(e.codecs||e.mimeType)),t&&(this.C.l=t)}return this.m!=c5||this.Da()||(this.i&&(this.C.I=this.i.periodCount,this.C.H=this.i.gapCount,this.i.presentationTimeline&&(this.C.K=this.i.presentationTimeline.h)),e=this.u.getBandwidthEstimate(),this.C.A=e),this.m==c3&&uq(this.C,NaN),function(e){var t=e.V,n=e.D,i=e.l,r=e.C,a=e.O,o=e.P,s=e.M,u=e.T,l=e.R,c=e.A,d=e.i,h=e.G,p=e.J,f=e.m,g=uN(e.g,"playing"),m=uN(e.g,"paused"),v=uN(e.g,"buffering"),y=e.u,b=e.F,T=e.K,w=e.nj,S=e.j,A=e.L,x=e.I,k=e.H,I=function(e){function t(e){return{timestamp:e.timestamp,state:e.state,duration:e.duration}}for(var n=[],i=E(e.h),r=i.next();!r.done;r=i.next())n.push(t(r.value));return e.g&&n.push(t(e.g)),n}(e.g),C=[];e=E(e.h.g);for(var M=e.next();!M.done;M=e.next())C.push({timestamp:(M=M.value).timestamp,id:M.id,type:M.type,fromAdaptation:M.fromAdaptation,bandwidth:M.bandwidth});
1return{width:t,height:n,currentCodecs:i,streamBandwidth:r,decodedFrames:a,droppedFrames:o,corruptedFrames:s,stallsDetected:u,gapsJumped:l,estimatedBandwidth:c,completionPercent:d,loadLatency:h,manifestTimeSeconds:p,drmTimeSeconds:f,playTime:g,pauseTime:m,bufferingTime:v,licenseTime:y,liveLatency:b,maxSegmentDuration:T,manifestSizeBytes:w,bytesDownloaded:S,nonFatalErrorCount:A,manifestPeriodCount:x,manifestGapCount:k,stateHistory:I,switchHistory:C}}(this.C)},p.je=function(e,t,n,i,r,a,o){o=void 0!==o&&o;var s,u,l,c,d,h,p,f=this;return F(function(g){switch(g.g){case 1:if(f.m!=c5&&f.m!=c3)throw new eU(1,7,7004);if("subtitles"!=n&&"captions"!=n&&ea("Using a kind value different of `subtitles` or `captions` can cause unwanted issues."),i){g.B(2);break}return M(g,cA(f,e),3);case 3:i=g.h;case 2:var m,v,y,b,T,w,S,A;if(s=[],f.D&&(s=f.D.getCuePoints()),f.m!=c3){g.B(4);break}return u=eB(),o&&"WEBKIT"===u.Ja()&&(n="forced"),M(g,(m=f,v=e,y=t,b=n,T=i,w=a||"",S=s,F(function(e){if(1==e.g)return"text/vtt"!=T||S.length?M(e,cE(m,v),3):e.B(2);2!=e.g&&(v=o5(new Blob([cx(m,e.h,T,S)],{type:"text/vtt"})),T="text/vtt"),A=document.createElement("track");e:{var t=m.K,n=v;try{if(!t.g.enabled){var i=n;break e}var r=ld(t);r.ot=lM,r.su=!0;var a=lw(r);i=lA(n,a);break e}catch(e){eo("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",e),i=n;break e}}return A.src=i,A.label=w,A.kind=b,A.srclang=y,m.h.getAttribute("crossorigin")||m.h.setAttribute("crossorigin","anonymous"),m.h.appendChild(A),m.Gg.push(A),e.return(A)})),5);case 5:if((l=g.h).track)return cq(f),cV(f),g.return(iF(l.track));throw new eU(1,2,2012);case 4:if(c=ti,h=(d=f.wa()).end-d.start,f.i&&(h=f.i.presentationTimeline.getDuration()),h==1/0)throw new eU(1,4,4033);if(!s.length){g.B(6);break}return M(g,cE(f,e),7);case 7:e=o5(new Blob([cx(f,g.h,i,s)],{type:"text/vtt"})),i="text/vtt";case 6:if(p={id:f.We++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:sA(0,h,[e]),mimeType:i||"",codecs:r||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,originalLanguage:t,label:a||null,type:c.Va,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!!o,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([ii(i||"",r||"")]),isAudioMuxedInVideo:!1,baseOriginalId:null},!iy(ii(p.mimeType,p.codecs)))throw new eU(2,2,2014,i);return f.i.textStreams.push(p),cq(f),cV(f),g.return(iq(p))}})},p.hf=function(e,t){var n,i,r,a,o,s,u,l,c,d,h,p,f,g,m,v,y,b,T=this;return F(function(w){switch(w.g){case 1:if(T.m!=c5&&T.m!=c3)throw new eU(1,7,7004);if(t){w.B(2);break}return M(w,cA(T,e),3);case 3:t=w.h;case 2:if("text/vtt"!=t)throw new eU(1,2,2017,e);if(n=ti,r=(i=T.wa()).end-i.start,T.i&&(r=T.i.presentationTimeline.getDuration()),r==1/0)throw new eU(1,4,4045);return M(w,cE(T,e),4);case 4:if(a=w.h,!(o=iv(t)))throw new eU(2,2,2014,t);for(s=o(),u={periodStart:0,segmentStart:0,segmentEnd:r,vttOffset:0},l=eD(a),c=s.parseMedia(l,u,e,[]),d=[],p=(h=E(c)).next(),f={};!p.done;f={Ag:void 0,Fd:void 0},p=h.next())f.Fd=p.value,f.Ag=null,g=function(t){return function(){return null==t.Ag&&(t.Ag=e8([e],[t.Fd.payload])),t.Ag||[]}}(f),m=new aZ(f.Fd.startTime,f.Fd.endTime,g,0,null,null,0,0,1/0),f.Fd.payload.includes("#xywh")&&4===(v=f.Fd.payload.split("#xywh=")[1].split(",")).length&&m.ng({height:parseInt(v[3],10),positionX:parseInt(v[0],10),positionY:parseInt(v[1],10),width:parseInt(v[2],10)}),d.push(m);if(y=t,!d.length){w.B(5);break}return M(w,cA(T,d[0].S()[0]),6);case 6:y=w.h;case 5:return b={id:T.We++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new sw(d),mimeType:y||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:n.Cg,primary:!1,trickModeVideo:null,dependencyStream: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([ii(y||"","")]),isAudioMuxedInVideo:!1,baseOriginalId:null},T.m==c3?T.bf.push(b):T.i.imageStreams.push(b),cq(T),w.return(ij(b))}})},p.gf=function(e,t,n){var i,r,a,o,s,u,l,c,d,h,p,f,g,m,v,y=this;return F(function(b){switch(b.g){case 1:if(y.m!=c5&&y.m!=c3)throw new eU(1,7,7004);if(n){b.B(2);break}return M(b,cA(y,e),3);case 3:n=b.h;case 2:if(i=ti,a=(r=y.wa()).end-r.start,y.i&&(a=y.i.presentationTimeline.getDuration()),a==1/0)throw new eU(1,4,4055);if(!(o=iv(n)))throw new eU(2,2,2014,n);return M(b,cE(y,e),4);case 4:for(s=b.h,u=o(),l={periodStart:0,segmentStart:0,segmentEnd:a,vttOffset:0},c=eD(s),d=u.parseMedia(c,l,e,[]),h=[],f=(p=E(d)).next(),g={};!f.done;g={rf:void 0},f=p.next())g.rf=f.value,m=new aZ(g.rf.startTime,g.rf.endTime,function(e){return function(){return[e.rf.payload]}}(g),0,null,null,0,0,1/0),h.push(m);return v={id:y.We++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new sw(h),mimeType:"text/plain",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:t,originalLanguage:t,label:null,type:i.Va,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([ii("text/plain","")]),isAudioMuxedInVideo:!1,baseOriginalId:null},y.jb.push(v),cq(y),b.return(iq(v))}})},p.um=function(e,t){this.sa.width=e,this.sa.height=t},p.ai=function(e){if(this.m==c5){var t=this.l;if(e=void 0===e?.1:e,t.l.g)t=!1;else if(t.F)t=!1;else{for(var n=E(t.h.values()),i=n.next();!i.done;i=n.next())!(i=i.value).ve||i.Ra||i.yb||(i.ve=!1,ua(t,i,e));t=!0}}else t=!1;return t},p.xh=function(){return ea("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},p.Wk=function(){return this.Kc},p.Pk=function(){var e={video:null,audio:null,text:null};if(this.m!=c5)return e;var t=this.l.u,n=this.h.currentTime;t=E([t.video,t.audio,this.l.C]);for(var i=t.next();!i.done;i=t.next())if((i=i.value)&&i.segmentIndex){var r=i.segmentIndex.find(n);r={codecs:(r=i.segmentIndex.get(r)).codecs||i.codecs,mimeType:r.mimeType||i.mimeType,bandwidth:r.bandwidth||i.bandwidth},"video"==i.type?(r.width=i.width,r.height=i.height,e.video=r):"audio"==i.type?e.audio=r:i.type==tn&&(e.text=r)}return e},p.mi=function(e){this.Se=e},p.disableStream=function(e,t){if(!this.g.abr.enabled||this.m===c1||!navigator.onLine||0==t||!this.i)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=E(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.Ye.xa(1),cN(this,!1,t=this.Rc().video.reduce(function(e,t){return e+t.end-t.start}
1,0),!0,!1),!0)}return!1},p.addFont=function(t,n){var i,r,a,o,s,u;return i=t,r=n,F(function(t){if(1==t.g)return"fonts"in document&&"FontFace"in e?M(t,document.fonts.ready,2):t.return();if(!("entries"in document.fonts))return t.return();for(o=(a=E(function(e){e=e.entries();for(var t=[],n=e.next();!1===n.done;)t.push(n.value),n=e.next();return t}(document.fonts))).next();!o.done;o=a.next())if((s=o.value).family===i&&"swap"===s.display)return t.return();u=new FontFace(i,"url("+r+")",{display:"swap"}),document.fonts.add(u),L(t)})},p.Da=function(){return!!this.h&&!!this.h.remote&&"disconnected"!=this.h.remote.state},p.isEnded=function(){return!this.h||!!this.h.ended||this.Na&&!this.U()&&this.h.currentTime>=this.wa().end},$("shaka.Player",l8),l8.prototype.isEnded=l8.prototype.isEnded,l8.prototype.isRemotePlayback=l8.prototype.Da,l8.prototype.addFont=l8.prototype.addFont,l8.prototype.setVideoContainer=l8.prototype.mi,l8.prototype.getFetchedPlaybackInfo=l8.prototype.Pk,l8.prototype.getManifestParserFactory=l8.prototype.Wk,l8.prototype.getManifest=l8.prototype.xh,l8.prototype.retryStreaming=l8.prototype.ai,l8.prototype.setMaxHardwareResolution=l8.prototype.um,l8.prototype.addChaptersTrack=l8.prototype.gf,l8.prototype.addThumbnailsTrack=l8.prototype.hf,l8.prototype.addTextTrackAsync=l8.prototype.je,l8.prototype.getStats=l8.prototype.getStats,l8.prototype.getBufferedInfo=l8.prototype.Rc,l8.prototype.getSegmentAvailabilityDuration=l8.prototype.Af,l8.prototype.getPresentationStartTimeAsDate=l8.prototype.cj,l8.prototype.getPlayheadTimeAsDate=l8.prototype.Zk,l8.prototype.setTextTrackVisibility=l8.prototype.$d,l8.prototype.getChaptersAsync=l8.prototype.sh,l8.prototype.getChapters=l8.prototype.Fk,l8.prototype.getChaptersTracks=l8.prototype.Gk,l8.prototype.isTextTrackVisible=l8.prototype.Yc,l8.prototype.selectVariantsByLabel=l8.prototype.om,l8.prototype.selectTextLanguage=l8.prototype.di,l8.prototype.selectAudioLanguage=l8.prototype.Jj,l8.prototype.getTextLanguages=l8.prototype.kl,l8.prototype.getAudioLanguages=l8.prototype.Bk,l8.prototype.getTextLanguagesAndRoles=l8.prototype.ll,l8.prototype.getAudioLanguagesAndRoles=l8.prototype.Ck,l8.prototype.getVideoTracks=l8.prototype.getVideoTracks,l8.prototype.selectVideoTrack=l8.prototype.Lj,l8.prototype.getAudioTracks=l8.prototype.getAudioTracks,l8.prototype.selectAudioTrack=l8.prototype.Kj,l8.prototype.selectVariantTrack=l8.prototype.Ke,l8.prototype.selectTextTrack=l8.prototype.jg,l8.prototype.getThumbnails=l8.prototype.dj,l8.prototype.getAllThumbnails=l8.prototype.Ak,l8.prototype.getImageTracks=l8.prototype.wh,l8.prototype.getTextTracks=l8.prototype.Cc,l8.prototype.getVariantTracks=l8.prototype.Ob,l8.prototype.cancelTrickPlay=l8.prototype.Cd,l8.prototype.trickPlay=l8.prototype.uc,l8.prototype.useTrickPlayTrackIfAvailable=l8.prototype.Ci,l8.prototype.getPlaybackRate=l8.prototype.Za,l8.prototype.isBuffering=l8.prototype.Ff,l8.prototype.getKeyStatuses=l8.prototype.wf,l8.prototype.getActiveSessionsMetadata=l8.prototype.rh,l8.prototype.getExpiration=l8.prototype.re,l8.prototype.drmInfo=l8.prototype.drmInfo,l8.prototype.keySystem=l8.prototype.keySystem,l8.prototype.isFullyLoaded=l8.prototype.Ih,l8.prototype.goToLive=l8.prototype.zl,l8.prototype.seekRange=l8.prototype.wa,l8.prototype.isVideoOnly=l8.prototype.If,l8.prototype.isAudioOnly=l8.prototype.Md,l8.prototype.isInProgress=l8.prototype.md,l8.prototype.isLive=l8.prototype.U,l8.prototype.getQueueManager=l8.prototype.yf,l8.prototype.getAdManager=l8.prototype.vf,l8.prototype.getAssetUri=l8.prototype.jd,l8.prototype.getNetworkingEngine=l8.prototype.Xb,l8.prototype.getMediaElement=l8.prototype.xf,l8.prototype.getManifestType=l8.prototype.yh,l8.prototype.getLoadMode=l8.prototype.Ac,l8.prototype.resetConfiguration=l8.prototype.Ej,l8.prototype.getBufferFullness=l8.prototype.Zi,l8.prototype.getNonDefaultConfiguration=l8.prototype.bj,l8.prototype.getConfigurationForLowLatency=l8.prototype.Jk,l8.prototype.getConfiguration=l8.prototype.getConfiguration,l8.prototype.configurationForLowLatency=l8.prototype.xk,l8.prototype.configure=l8.prototype.configure,l8.prototype.releaseAllMutexes=l8.prototype.bm,l8.prototype.destroyAllPreloads=l8.prototype.Yg,l8.prototype.preload=l8.prototype.preload,l8.prototype.detachAndSavePreload=l8.prototype.Vi,l8.prototype.unloadAndSavePreload=l8.prototype.fk,l8.prototype.load=l8.prototype.load,l8.prototype.updateStartTime=l8.prototype.Cm,l8.prototype.unload=l8.prototype.vc,l8.prototype.detach=l8.prototype.detach,l8.prototype.attachCanvas=l8.prototype.Ji,l8.prototype.attach=l8.prototype.Vb,l8.probeSupport=function(t){var n,i,r,a,o;return t=void 0===t||t,F(function(s){switch(s.g){case 1:var u,l,c,d,h,p,f,g,m,v,y,b,T,w,S,A,k,I,C,P,O,_,U,q;if(n={},!t){s.B(2);break}return M(s,F(function(t){if(1==t.g){if(u="org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.microsoft.playready.recommendation.3000 com.microsoft.playready.recommendation.3000.clearlead com.chromecast.playready com.apple.fps.1_0 com.apple.fps com.huawei.wiseplay".split(" "),!(e.MediaKeys&&e.navigator&&e.navigator.requestMediaKeySystemAccess&&e.MediaKeySystemAccess&&e.MediaKeySystemAccess.prototype.getConfiguration)){for(l={},d=(c=E(u)).next();!d.done;d=c.next())l[d.value]=null;return t.return(l)}for(h="1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3".split(" "),f={"com.widevine.alpha":p=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"],"com.widevine.alpha.experiment":p,"com.microsoft.playready.recommendation":["150","2000","3000"]},g={videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],initDataTypes:["cenc","sinf","skd","keyids"]},m=[null,"cenc","cbcs"],v=new Map,y=eB(),b=function(e,t,n){var i,r,a,o,s,u,l,c,d,p,f,g;return F(function(m){switch(m.g){case 1:return R(m,2),M(m,t.createMediaKeys(),5);case 5:i=m.h;case 4:D(m,3);break;case 2:return N(m),m.return();case 3:if(a=!!(r=t.getConfiguration().sessionTypes)&&r.includes("persistent-license"),y.sj()&&(a=!1),o=t.getConfiguration().videoCapabilities,s=t.getConfiguration().audioCapabilities,u={persistentState:a,encryptionSchemes:[],videoRobustnessLevels:[],audioR
1obustnessLevels:[],minHdcpVersions:[]},v.get(e)?u=v.get(e):v.set(e,u),(l=o[0].encryptionScheme)&&!u.encryptionSchemes.includes(l)&&u.encryptionSchemes.push(l),(c=o[0].robustness)&&!u.videoRobustnessLevels.includes(c)&&u.videoRobustnessLevels.push(c),(d=s[0].robustness)&&!u.audioRobustnessLevels.includes(d)&&u.audioRobustnessLevels.push(d),!(n&&"getStatusForPolicy"in i)){m.B(0);break}f=(p=E(h)).next();case 7:if(f.done){m.B(0);break}if(g=f.value,u.minHdcpVersions.includes(g)){m.B(8);break}return M(m,i.getStatusForPolicy({minHdcpVersion:g}),10);case 10:if("usable"==m.h)u.minHdcpVersions.includes(g)||u.minHdcpVersions.push(g);else{m.B(0);break}case 8:f=p.next(),m.B(7)}})},T=function(e,t,n,i,r){var a,o,s,u,l,c,d,h,p,f;return r=void 0!==r&&r,F(function(m){switch(m.g){case 1:for(R(m,2),s=(o=E((a=t7(g)).videoCapabilities)).next();!s.done;s=o.next())(u=s.value).encryptionScheme=t,u.robustness=n;for(c=(l=E(a.audioCapabilities)).next();!c.done;c=l.next())(d=c.value).encryptionScheme=t,d.robustness=i;return(h=t7(a)).persistentState="required",h.sessionTypes=["persistent-license"],p=[h,a],"MOBILE"==eB().Oa()?M(m,iI(5,navigator.requestMediaKeySystemAccess(e,p)),7):M(m,navigator.requestMediaKeySystemAccess(e,p),6);case 6:f=m.h,m.B(5);break;case 7:f=m.h;case 5:return M(m,b(e,f,r),8);case 8:D(m,0);break;case 2:N(m),L(m)}})},w=[],A=(S=E(u)).next();!A.done;A=S.next()){var n;if(k=A.value,v.set(k,null),n=k,"WEBKIT"!==eB().Ja()||"org.w3.clearkey"!==n){for(I=!0,P=(C=E(m)).next();!P.done;P=C.next())O=P.value,w.push(T(k,O,"","",I)),I=!1;for(U=(_=E(f[k]||[])).next();!U.done;U=_.next())q=U.value,w.push(T(k,null,q,"")),w.push(T(k,null,"",q))}}return M(t,Promise.all(w),2)}return t.return(rI(v))}),3);case 3:n=s.h;case 2:return i=function(){var e={};if(eB(),fq())for(var t=E(tV.keys()),n=t.next();!n.done;n=t.next())e[n.value]=!0;for(n=(t=E(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"])).next();!n.done;n=t.next())e[n=n.value]=fq()?tV.has(n):""!=oi().canPlayType(n);return e}(),r=function(){var e='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="hvc1.2.20000000.L153.B0",video/mp4; codecs="hvc1.2.4.L120.b0",video/mp4; codecs="hvc1.2.4.L123.b0",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="dvh1.05.01",video/mp4; codecs="dvh1.08.01",video/mp4; codecs="dav1.10.01",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",audio/mp4; codecs="apac.31.00",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(x(ip)),t={};eB(),e=E(e);for(var n=e.next();!n.done;n=e.next()){if(iy(n=n.value))t[n]=!0;else if(fq()){var i=il(n),r=iO(ic(n),i);i=ii(i,r),t[n]=ah(i)||!!n4(i)}else t[n]=""!=oi().canPlayType(n);t[i=n.split(";")[0]]=t[i]||t[n]}return t}(),M(s,eB().yc(),4);case 4:return a=s.h,o={manifest:i,media:r,drm:n,hardwareResolution:a},c4.forEach(function(e,t){o[t]=e()}),s.return(o)}})},l8.isBrowserSupported=ce,l8.setQueueManagerFactory=function(e){c6=e},l8.setAdManagerFactory=function(e){c8=e},l8.registerSupportPlugin=l9,l8.prototype.destroy=l8.prototype.destroy;var c1=0,c2=1,c5=2,c3=3;l8.LoadMode={DESTROYED:0,NOT_LOADED:1,MEDIA_SOURCE:2,SRC_EQUALS:3},l8.version="v4.16.9";tN=new function(e){this.g=e,this.i=tP,this.h=tD}(new tL(Number("4"),Number("16")));var c4=new Map,c8=null,c6=null;function c7(){this.g=[],this.i=this.m=this.l=this.j=this.h=0}function c9(e,t,n){var i=this;this.g=e,this.h=t,this.m=n,this.i=!1,this.j=this.h.getVolume(),this.l=new tI,this.l.o(this.h,google.ima.AdEvent.Type.PAUSED,function(){i.i=!0}),this.l.o(this.h,google.ima.AdEvent.Type.RESUMED,function(){i.i=!1})}function de(){}function dt(e,t){var n=[];e=E(no(e,"Ad"));for(var i=e.next();!i.done;i=e.next())if((i=nc(i.value,"InLine"))&&(i=nc(i,"Creatives"))){i=E(no(i,"Creative"));for(var r=i.next();!r.done;r=i.next()){var a=nc(r=r.value,"Linear");
1if(a&&function(e,t,n){var i=0;null!=t&&(i=t);var r=null;n.attributes.skipoffset&&isNaN(r=t4(n.attributes.skipoffset))&&(r=null);var a=nc(n,"MediaFiles");if(a){var o=null;for((n=nc(n,"VideoClicks"))&&(n=nc(n,"ClickThrough"))&&(n=nu(n))&&(o=n),a=n=no(a,"MediaFile"),(n=n.filter(function(e){return"streaming"==e.attributes.delivery})).length&&(a=n),n=(a=E(a=a.sort(function(e,t){return(parseInt(t.attributes.height,10)||0)-(parseInt(e.attributes.height,10)||0)}))).next();!n.done;n=a.next())if(!(n=n.value).attributes.apiFramework){var s=nu(n);if(s){e.push({id:null,groupId:null,startTime:i,endTime:null,uri:s,mimeType:n.attributes.type||null,isSkippable:null!=r,skipOffset:r,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:null==t,post:t==1/0,timelineRange:!1,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null,clickThroughUrl:o});break}}}}(n,t,a),r=nc(r,"NonLinearAds")){r=E(r=no(r,"NonLinear"));for(var o=r.next();!o.done;o=r.next())e:{a=n;var s=o.value,u=nc(s,"StaticResource");if(u)o=u.attributes.creativeType;else{if(!(u=nc(s,"HTMLResource")))break e;o="text/html"}if(u=nu(u)){"text/html"===o&&(u="data:text/html;charset=UTF-8,"+encodeURIComponent(u));var l=nh(s,"width",nb)||nh(s,"expandedWidth",nb),c=nh(s,"height",nb)||nh(s,"expandedHeight",nb);if(l||c){var d=null,h=nc(s,"NonLinearClickThrough");h&&(h=nu(h))&&(d=h),h=null,(s=s.attributes.minSuggestedDuration)&&(h=t4(s)),s=0,null!=t&&(s=t),a.push({id:null,groupId:null,startTime:s,endTime:null,uri:u,mimeType:o,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:h,once:!0,pre:null==t,post:t==1/0,timelineRange:!1,loop:!1,overlay:{viewport:{x:0,y:0},topLeft:{x:0,y:0},size:{x:l||0,y:c||0}},displayOnBackground:!1,currentVideo:null,background:null,clickThroughUrl:d})}}}}}}return n}function dn(t,n,i,r,a){var o=this;this.A=t,this.i=n,this.G=!1,this.C=this.u=null,this.H=NaN,this.l=a,this.j=null,this.h=new tI,google.ima.settings.setLocale(i),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0),this.F=new google.ima.AdDisplayContainer(this.A,this.i),this.F.initialize(),this.m=new google.ima.AdsLoader(this.F),this.m.getSettings().setPlayerType("shaka-player"),this.m.getSettings().setPlayerVersion("v4.16.9"),this.g=null,this.D=r||new google.ima.AdsRenderingSettings,this.h.o(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(t){!function(t,n){if(t.l(new ee("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-t.H))),t.u.customPlayheadTracker){var i={currentTime:t.i.currentTime};t.g=n.getAdsManager(i,t.D),t.i.muted?t.g.setVolume(0):t.g.setVolume(t.i.volume),t.h.o(t.i,"timeupdate",function(){t.i.duration&&(i.currentTime=t.i.currentTime)}),t.h.o(t.i,"volumechange",function(){t.j&&(t.j.setVolume(t.i.volume),t.i.muted&&t.j.setMuted(!0))})}else t.g=n.getAdsManager(t.i,t.D);t.l(new ee("ima-ad-manager-loaded",(new Map).set("imaAdManager",t.g)));var r=t.g.getCuePoints();if(r.length){n=[],r=E(r);for(var a=r.next();!a.done;a=r.next())n.push({start:a.value,end:null});t.l(new ee("ad-cue-points-changed",(new Map).set("cuepoints",n)))}var o=t;function s(e,t){e=(new Map).set("originalEvent",e),o.l(new ee(t,e))}o.h.o(o.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(e){di(o,e)}),o.h.o(o.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(e){dr(o,e)}),o.h.o(o.g,google.ima.AdEvent.Type.STARTED,function(e){dr(o,e)}),o.h.o(o.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(e){s(e,"ad-first-quartile")}),o.h.o(o.g,google.ima.AdEvent.Type.MIDPOINT,function(e){s(e,"ad-midpoint")}),o.h.o(o.g,google.ima.AdEvent.Type.THIRD_QUARTILE,function(e){s(e,"ad-third-quartile")}),o.h.o(o.g,google.ima.AdEvent.Type.COMPLETE,function(e){s(e,"ad-complete")}
1),o.h.o(o.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(e){da(o,e)}),o.h.o(o.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(e){s(e,"all-ads-completed"),da(o,e)}),o.h.o(o.g,google.ima.AdEvent.Type.SKIPPED,function(e){s(e,"ad-skipped")}),o.h.o(o.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(e){s(e,"ad-volume-changed")}),o.h.o(o.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(e){s(e,"ad-muted")}),o.h.o(o.g,google.ima.AdEvent.Type.PAUSED,function(e){o.j&&(o.j.i=!0,s(e,"ad-paused"))}),o.h.o(o.g,google.ima.AdEvent.Type.RESUMED,function(e){o.j&&(o.j.i=!1,s(e,"ad-resumed"))}),o.h.o(o.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(e){o.j&&s(e,"ad-skip-state-changed")}),o.h.o(o.g,google.ima.AdEvent.Type.CLICK,function(e){s(e,"ad-clicked")}),o.h.o(o.g,google.ima.AdEvent.Type.AD_PROGRESS,function(e){s(e,"ad-progress")}),o.h.o(o.g,google.ima.AdEvent.Type.AD_BUFFERING,function(e){s(e,"ad-buffering")}),o.h.o(o.g,google.ima.AdEvent.Type.IMPRESSION,function(e){s(e,"ad-impression")}),o.h.o(o.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(e){s(e,"ad-duration-changed")}),o.h.o(o.g,google.ima.AdEvent.Type.USER_CLOSE,function(e){s(e,"ad-closed")}),o.h.o(o.g,google.ima.AdEvent.Type.LOADED,function(e){s(e,"ad-loaded")}),o.h.o(o.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(e){s(e,"ad-linear-changed")}),o.h.o(o.g,google.ima.AdEvent.Type.AD_METADATA,function(e){s(e,"ad-metadata")}),o.h.o(o.g,google.ima.AdEvent.Type.LOG,function(e){s(e,"ad-recoverable-error")}),o.h.o(o.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(e){s(e,"ad-break-ready")}),o.h.o(o.g,google.ima.AdEvent.Type.INTERACTION,function(e){s(e,"ad-interaction")});try{t.g.init(t.i.offsetWidth,t.i.offsetHeight),t.h.o(t.i,"loadeddata",function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight)}),"ResizeObserver"in e?(t.C=new ResizeObserver(function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight)}),t.C.observe(t.i)):t.h.o(document,"fullscreenchange",function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight)}),t.G||t.u.skipPlayDetection?t.g.start():t.h.qa(t.i,"play",function(){t.G=!0,t.g.start()})}catch(e){da(t,null)}}(o,t)}),this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(e){di(o,e)}),this.h.o(this.i,"ended",function(){o.m.contentComplete()}),this.h.qa(this.i,"play",function(){o.G=!0})}function di(e,t){t.getError(),t=(new Map).set("originalEvent",t),e.l(new ee("ad-error",t)),da(e,null),e.l(new ee("ad-cue-points-changed",(new Map).set("cuepoints",[])))}function dr(e,t){var n=t.getAd();n?(e.j=new c9(n,e.g,e.i),t.type!=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED||e.u.supportsMultipleMediaElements||e.l(new ee("ad-content-pause-requested")),t=(new Map).set("ad",e.j).set("sdkAdObject",n).set("originalEvent",t),e.l(new ee("ad-started",t)),e.j.isLinear()&&(e.A.setAttribute("ad-active","true"),e.u.customPlayheadTracker||e.i.pause(),e.i.muted?((t=e.j).j=e.i.volume,t.h.setVolume(0)):e.j.setVolume(e.i.volume))):ea("The IMA SDK fired a "+t.type+" event with no associated ad. Unable to play ad!")}function da(e,t){t&&t.type==google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED&&!e.u.supportsMultipleMediaElements&&e.l(new ee("ad-content-resume-requested")),e.l(new ee("ad-stopped",(new Map).set("originalEvent",t))),e.j&&e.j.isLinear()&&(e.A.removeAttribute("ad-active"),e.u.customPlayheadTracker||e.i.ended||e.i.play())}function ds(e,t,n,i,r,a){this.g=e,this.h=t,this.j=(this.i=t.isSkippable)?t.skipOffset||0:t.skipOffset,this.l=t.skipFor,this.C=n,this.u=i,this.m=r,this.A=a,this.D=t.overlay}function du(e,t,n){this.g=e,this.j=t,this.h=n,this.i=null==e.overlay}function dl(e,t,n,i){var r=this;this.L=null,this.m=e,this.D=t,this.g=n,this.G=null,this.A=!0,this.h=this.g,this.oa=i,this.aa=new Set,this.R=new Set,this.H=new Set,this.F=new Map,this.K=new Map,this.i=new l8,dy(this),this.I=new tI,this.j=new tI,this.J=!1,this.W=this.u=this.C=this.l=null,this.Z=!1,this.O=-1,this.V=function(){if(!r.J&&r.l&&!r.D.Da()){r.l=r.g.currentTime;var e=dp(r);e&&e&&(e.overlay||!r.g.paused)&&df(r,e,1,1,Date.now())}},this.T=function(){if(!(r.J||r.l||r.D.Da())){r.g.paused||(r.l=r.g.currentTime);var e=dp(r,!0);e||(e=dp(r)),e&&e&&(e.overlay||!r.g.paused)&&df(r,e,1,1,Date.now())}},this.ea=function(){if(!r.J&&r.l&&!r.D.Da()){var e=r.g.currentTime;r.C&&!r.C.pre&&!r.C.post&&e<(r.C.endTime||r.C.startTime)&&(r.C=null)}},this.P=new iA(this.V),this.M=new iA(function(){var e,t,n,i,a,o,s,u,l,c,d;return F(function(h){switch(h.g){case 1:if(!r.H.size||null==r.l){h.B(0);break}if((e=r.D.Ac())==c1||e==c2)return h.return();t=!1,n=Array.from(r.H),i=r.D.wa(),o=(a=E(n)).next();case 3:if(o.done){h.B(5);break}if((s=o.value)==r.C){h.B(4);break}if(u=s.endTime||s.startTime,!(i.start-u>=1)){(l=s.startTime-r.l)>0&&l<=10&&(!r.F.has(s)&&dT(s)&&r.F.set(s,r.i.preload(s.uri,null,s.mimeType||void 0)),dS(r,s)),h.B(4);break}if(!r.F.has(s)){h.B(7);break}return M(h,r.F.get(s),8);case 8:(c=h.h)&&c.destroy(),r.F.delete(s);case 7:dA(r,s),d=s.id||JSON.stringify(s),r.R.has(d)&&r.R.delete(
1d),r.H.delete(s),dc(r),s.overlay||(t=!0);case 4:o=a.next(),h.B(3);break;case 5:t&&dv(r),L(h)}})}),this.configure(this.D.getConfiguration().ads)}function dc(e){e.Z&&!e.H.size&&(e.I.Ea(e.g,"playing",e.T),e.I.Ea(e.g,"timeupdate",e.T),e.I.Ea(e.g,"seeked",e.ea),e.I.Ea(e.g,"ended",e.V),-1!=e.O&&(e.g.cancelVideoFrameCallback(e.O),e.O=-1),e.P&&e.P.stop(),e.M&&e.M.stop(),e.Z=!1)}function dd(e){if(e.m&&e.L){var t=e.L.supportsMultipleMediaElements,n=e.g;n.controls||n.webkitPresentationMode&&"inline"!==n.webkitPresentationMode?t=!1:n.webkitDisplayingFullscreen&&(t=!1),e.A==t&&(e.A=!t,e.A?(e.h=e.g,e.G&&(e.G.parentElement&&e.m.removeChild(e.G),e.G=null)):(e.G||((t=document.createElement(e.g.tagName)).autoplay=!0,t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.display="none",t.setAttribute("playsinline",""),e.G=t),e.h=e.G))}else e.A=!0}function dh(e,t){var n,i,r,a,o,s,u,l;F(function(c){switch(c.g){case 1:n=!1,r=(i=E(t)).next();case 2:if(r.done){c.B(4);break}if(!(a=r.value).uri){ea("Missing URL in interstitial",a),c.B(3);break}if(a.mimeType){c.B(5);break}return R(c,6),o=e.i.Xb(),M(c,sX(a.uri,o,e.D.getConfiguration().streaming.retryParameters),8);case 8:a.mimeType=c.h,D(c,5);break;case 6:N(c);case 5:if(s=a.id||JSON.stringify(a),e.R.has(s)){c.B(3);break}a.loop&&!a.overlay&&ea("Loop is only supported in overlay interstitials",a),a.overlay||(n=!0),e.R.add(s),e.H.add(a),u=!1,a.pre&&null==e.l?u=!0:0!=a.startTime||a.canJump?null!=e.l&&(l=a.startTime-e.l)>0&&l<=10&&(u=!0):u=!0,u&&(!e.F.has(a)&&dT(a)&&e.F.set(a,e.i.preload(a.uri,null,a.mimeType||void 0)),dS(e,a));case 3:r=i.next(),c.B(2);break;case 4:n&&dv(e),function(e){if(!e.Z&&e.H.size){if(e.I.o(e.g,"playing",e.T),e.I.o(e.g,"timeupdate",e.T),e.I.o(e.g,"seeked",e.ea),e.I.o(e.g,"ended",e.V),"requestVideoFrameCallback"in e.g&&!dw()){var t=e.g,n=function(){-1!=e.O&&(e.V(),-1!=e.O&&(e.O=t.requestVideoFrameCallback(n)))};e.O=t.requestVideoFrameCallback(n)}else e.P.xa(.025);e.M&&e.M.xa(1),e.Z=!0}}(e),L(c)}})}function dp(e,t,n){t=void 0!==t&&t,n=void 0===n?null:n;var i=0,r=null;if(e.H.size&&null!=e.l){var a=e.g.ended,o=Array.from(e.H).sort(function(e,t){return t.startTime-e.startTime}),s=o;for(s=(o=E(s=t?o.filter(function(e){return e.pre}):a?o.filter(function(e){return e.post}):o.filter(function(e){return!e.pre&&!e.post}))).next();!s.done;s=o.next()){s=s.value;var u=!1;if(t)u=s.pre;else if(a)u=s.post;else if(!s.pre&&!s.post){var l=e.l-Math.round(1e3*s.startTime)/1e3,c=1;e.L.allowStartInMiddleOfInterstitial&&s.endTime&&s.endTime!=1/0&&(c=s.endTime-s.startTime),(l>0||0==l&&0==e.l)&&(l<=c||!s.canJump)&&(u=null!=n||!e.C||!!e.C.pre||!!e.C.post||!(e.C.startTime>=s.startTime))}u&&(!e.C||s.startTime>=e.C.startTime)&&(i==(n||0)?r=s:r&&!s.canJump&&Math.round(1e3*s.startTime)/1e3-Math.round(1e3*r.startTime)/1e3>.001&&(r=s,i=0),i++)}}return r}function df(t,n,i,r,a,o){var s,u,l,c,d,h,p,f,g,m,v,y,b,T,w,S,A,E,x,k,I,C,P,O,_,U,q;o=void 0===o?0:o,t.C=n,dd(t),t.A||!t.m||t.h.parentElement||t.m.appendChild(t.h),1==r&&1==i&&(i=Array.from(t.H).filter(function(e){return n.pre?e.pre==n.pre:n.post?e.post==n.post:.001>Math.abs(e.startTime-n.startTime)}).length),n.once&&(o++,t.H.delete(n),dc(t),n.overlay||dv(t)),n.mimeType&&(n.mimeType.startsWith("image/")||"text/html"===n.mimeType)?n.overlay?function(t,n,i,r,a){function o(){t.u&&(t.u.stop(),t.u=null),t.m.removeChild(l),dm(t,n),dE(t,"ad-stopped"),t.j.Sa();var e=dp(t,n.pre,r-a);e?df(t,e,i,++r,Date.now(),a):t.J=!1}t.J=!0;var s=n.overlay,u="text/html"==n.mimeType?"iframe":"img",l=document.createElement(u);l.style.objectFit="contain",l.style.position="absolute",l.style.border="none",dg(t,n);var c=new du(n,i,r);dE(t,"ad-impression"),dE(t,"ad-started",(new Map).set("ad",c)),"iframe"==u?l.src=n.uri:(l.src=n.uri,l.onerror=function(e){dE(t,"ad-error",(new Map).set("originalEvent",e)),o()}),c=s.viewport;var d=s.topLeft;s=s.size,0==c.x&&0==c.y?(l.width=n.overlay.size.x,l.height=n.overlay.size.y,l.style.bottom="10%",l.style.left="0",l.style.right="0",l.style.width="100%",n.overlay.size.y||"iframe"!=u||(l.style.height="auto")):(l.style.height=s.y/c.y*100+"%",l.style.left=d.x/c.x*100+"%",l.style.top=d.y/c.y*100+"%",l.style.width=s.x/c.x*100+"%"),t.m.appendChild(l);var h=Date.now();
1t.u&&t.u.stop(),t.u=new iA(function(){n.playoutLimit&&(Date.now()-h)/1e3>n.playoutLimit||n.endTime&&t.g.currentTime>n.endTime?(dE(t,"ad-complete"),o()):t.g.currentTime<n.startTime&&(dE(t,"ad-skipped"),o())}),n.playoutLimit&&!n.endTime?t.u.Y(n.playoutLimit):n.endTime&&t.u.xa(.025),t.j.o(t.g,"seeked",function(){var e=t.g.currentTime;(e<n.startTime||n.endTime&&e>n.endTime)&&(t.u&&t.u.stop(),dE(t,"ad-skipped"),o())}),n.clickThroughUrl&&t.j.o(l,"click",function(){n.clickThroughUrl&&e.open(n.clickThroughUrl,"_blank")})}(t,n,i,r,o):ea("Unsupported interstitial",n):t.A&&n.overlay?ea("Unsupported interstitial",n):(s=t,u=n,l=i,c=r,d=a,h=o,F(function(t){switch(t.g){case 1:if(p=Date.now(),s.J=!0,f=!1,g=function(){if(!s.A&&!u.overlay&&null==u.resumeOffset)if(u.timelineRange&&u.endTime&&u.endTime!=1/0)s.g.currentTime!=u.endTime&&(s.g.currentTime=u.endTime);else{var e=Date.now();s.g.currentTime+=(e-d)/1e3,d=e}},m=function(e){var t,n;return F(function(i){if(1==i.g){if(g(),t=dp(s,u.pre,c-h),e&&u.groupId)for(;t&&t.groupId==u.groupId;)c++,t=dp(s,u.pre,c-h);return(s.u&&(!u.groupId||t&&t.groupId!=u.groupId)&&(s.u.stop(),s.u=null),dm(s,u),t&&!t.overlay)?i.B(2):(u.post&&(s.l=null,s.C=null),s.A?M(i,s.i.detach(),4):M(i,s.i.vc(),4))}2!=i.g&&(s.A&&(null==(n=u.resumeOffset)&&(n=u.timelineRange&&u.endTime&&u.endTime!=1/0?u.endTime-(s.l||0):(Date.now()-d)/1e3),dE(s,"ad-content-resume-requested",(new Map).set("offset",n))),dE(s,"ad-stopped"),s.j.Sa(),s.J=!1,s.A?dv(s):(s.h.style.display="none",g(),s.g.ended||s.g.play())),dd(s),t&&(dE(s,"ad-stopped"),s.j.Sa(),df(s,t,l,++c,d,h)),L(i)})},v=function(e){return F(function(t){return f?t.return():(f=!0,dE(s,"ad-error",(new Map).set("originalEvent",e)),M(t,m(!1),0))})},y=function(){return F(function(e){if(1==e.g)return f?e.return():(f=!0,M(e,m(!1),2));dE(s,"ad-complete"),L(e)})},s.W=function(){return F(function(e){return f?e.return():(f=!0,dE(s,"ad-skipped"),M(e,m(!0),0))})},b=new ds(s.h,u,s.W,l,c,!s.A),s.A||(b.setMuted(s.g.muted),b.setVolume(s.g.volume)),dE(s,"ad-started",(new Map).set("ad",b)),(T=b.canSkipNow())&&dE(s,"ad-skip-state-changed"),s.j.qa(s.i,"error",v),s.j.o(s.h,"timeupdate",function(){if(s.h.duration){var e=b.canSkipNow();T!=e&&b.getRemainingTime()>0&&b.getDuration()>0&&dE(s,"ad-skip-state-changed"),T=e,!s.A&&!u.overlay&&null==u.resumeOffset&&u.timelineRange&&u.endTime&&u.endTime!=1/0&&s.g.currentTime!=u.endTime&&s.D.wa().end>=u.endTime&&(s.g.currentTime=u.endTime)}}),s.j.qa(s.i,"firstquartile",function(){g(),dE(s,"ad-first-quartile")}),s.j.qa(s.i,"midpoint",function(){g(),dE(s,"ad-midpoint")}),s.j.qa(s.i,"thirdquartile",function(){g(),dE(s,"ad-third-quartile")}),s.j.qa(s.i,"complete",y),s.j.o(s.h,"play",function(){dE(s,"ad-resumed")}),s.j.o(s.h,"pause",function(){var e=s.i.getConfiguration();s.h.currentTime>=e.playRangeEnd?y():dE(s,"ad-paused")}),s.j.o(s.h,"volumechange",function(){s.h.muted?dE(s,"ad-muted"):dE(s,"ad-volume-changed")}),u.clickThroughUrl&&(w=s.m||s.h,s.j.o(w,"click",function(){u.clickThroughUrl&&(b.isPaused()||b.pause(),e.open(u.clickThroughUrl,"_blank"))})),!s.A||1!=c){t.B(2);break}return dE(s,"ad-content-pause-requested",(new Map).set("saveLivePosition",!0)),S=new ra,A=function(e){return F(function(t){if(1==t.g)return"detach"!=e.state?t.B(0):dw()?M(t,new Promise(function(e){return new iA(e).Y(.1)}),3):t.B(3);S.resolve(),s.j.Ea(s.D,"onstatechange",A),L(t)})},s.j.o(s.D,"onstatechange",A),M(t,S,2);case 2:return dg(s,u),s.A||(s.h.style.display="",u.overlay?(s.h.loop=u.loop,E=u.overlay.viewport,x=u.overlay.topLeft,k=u.overlay.size,s.h.style.height=k.y/E.y*100+"%",s.h.style.left=x.x/E.x*100+"%",s.h.style.top=x.y/E.y*100+"%",s.h.style.width=k.x/E.x*100+"%"):(s.g.pause(),null!=u.resumeOffset&&0!=u.resumeOffset&&(s.g.currentTime+=u.resumeOffset),s.h.loop=!1,s.h.style.height="100%",s.h.style.left="0",s.h.style.top="0",s.h.style.width="100%")),R(t,4),dy(s),u.startTime&&u.endTime&&u.endTime!=1/0&&u.startTime!=u.endTime&&(I=u.endTime-u.startTime)>0&&s.i.configure("playRangeEnd",I),u.playoutLimit&&!s.u&&(s.u=new iA(function(){s.W()}).Y(u.playoutLimit),s.i.configure("playRangeEnd",u.playoutLimit)),M(t,s.i.Vb(s.h),6);case 6:return C=null,s.L.allowStartInMiddleOfInterstitial&&null!=s.l&&Math.abs(P=s.l-u.startTime)>
1.25&&(C=P),s.F.has(u)?M(t,s.F.get(u),10):M(t,s.i.load(u.uri,C,u.mimeType||void 0),8);case 10:return O=t.h,s.F.delete(u),O?M(t,s.i.load(O),8):M(t,s.i.load(u.uri,C,u.mimeType||void 0),8);case 8:u.overlay&&s.g.paused?s.h.pause():s.h.play(),_=(Date.now()-p)/1e3,dE(s,"ads-loaded",(new Map).set("loadTime",_)),s.A&&s.g.play(),u.overlay&&(u.pre||u.post||s.D.U()&&!(u.startTime>0)||(U=function(){var e=s.g.currentTime-u.startTime;Math.abs(e-s.h.currentTime)>.1&&(s.h.currentTime=e)},s.j.qa(s.h,"playing",U),s.j.o(s.g,"seeking",U)),s.j.o(s.g,"seeked",function(){var e=s.g.currentTime;(e<u.startTime||u.endTime&&e>u.endTime)&&s.W()})),D(t,0);break;case 4:if(q=N(t),!s.J)return t.return();v(q),L(t)}}))}function dg(e,t){if(t.displayOnBackground&&(e.g.style.zIndex="1"),null!=t.currentVideo){var n=t.currentVideo;e.g.style.transformOrigin="top left";var i=!0,r=[],a=n.topLeft.x/n.viewport.x*100;a>0&&a<=100&&(r.push("translateX("+a+"%)"),i=!1),(a=n.topLeft.y/n.viewport.y*100)>0&&a<=100&&(r.push("translateY("+a+"%)"),i=!1),(a=n.size.x/n.viewport.x)<1&&r.push("scaleX("+a+")"),n=n.size.y/n.viewport.y,a<1&&r.push("scaleY("+n+")"),r.length&&(e.g.style.transform=r.join(" ")),i&&(e.g.style.transition="transform 250ms")}e.m&&(t.clickThroughUrl?(e.m.setAttribute("ad-active","true"),e.m.style.pointerEvents=""):e.m.style.pointerEvents="none",t.background&&(e.m.style.background=t.background)),e.G&&(e.G.style.background=t.overlay?"":"rgb(0, 0, 0)")}function dm(e,t){(!t||t.displayOnBackground)&&(e.g.style.zIndex=""),t&&null==t.currentVideo||(e.g.style.transformOrigin="",e.g.style.transition="",e.g.style.transform=""),e.m&&(e.m.removeAttribute("ad-active"),e.m.style.pointerEvents="",!t||t.background)&&(e.m.style.background=""),e.G&&(e.G.style.background="")}function dv(e){for(var t=[],n=E(e.H),i=n.next(),r={};!i.done;r={Mc:void 0},i=n.next())(i=i.value).overlay||(r.Mc={start:i.startTime,end:null},i.pre?(r.Mc.start=0,r.Mc.end=null):i.post?(r.Mc.start=-1,r.Mc.end=null):i.timelineRange&&(r.Mc.end=i.endTime),t.find(function(e){return function(t){return e.Mc.start==t.start&&e.Mc.end==t.end}}(r))||t.push(r.Mc));dE(e,"ad-cue-points-changed",(new Map).set("cuepoints",t))}function dy(e){e.i.configure(e.D.bj()),e.i.configure("ads.disableHLSInterstitial",!0),e.i.configure("ads.disableDASHInterstitial",!0),e.i.configure("playRangeEnd",1/0),rm(e.D.Xb(),e.i.Xb())}function db(e,t,n){var i,r;return F(function(a){return 1==a.g?(i=rv([t],rr()),M(a,e.D.Xb().request(7,i,n).promise,2)):(r=a.h,a.return(r.data))})}function dT(e){return!(e=e.mimeType)||!e.startsWith("image/")&&"text/html"!==e}function dw(){var e=eB().Oa();return"TV"==e||"CONSOLE"==e||"CAST"==e}function dS(e,t){if(!(e.K.has(t)||e.L&&!e.L.allowPreloadOnDomElements)){var n=function(e){var t=document.createElement("link");return t.rel="preload",t.href=e,t.as="image",document.head.appendChild(t),t},i=[];if(t.background){var r=t.background.match(/url\(('|")?([^'"()]+)('|")\)?/);r&&i.push(n(r[2]))}t.mimeType&&t.mimeType.startsWith("image/")&&i.push(n(t.uri)),e.K.set(t,i)}}function dA(e,t){if(e.K.has(t)){var n=e.K.get(t);n=E(n);for(var i=n.next();!i.done;i=n.next())(i=i.value).parentNode.removeChild(i);e.K.delete(t)}}function dE(e,t,n){e.oa(new ee(t,n))}function dx(e,t,n,i,r){this.h=e,this.j=t4(this.h.skipOffset),this.g=r,this.i=t,this.l=n,this.u=i,this.m=!1}function dk(e,t,n,i){this.D=e,this.K=t,this.h=n,this.l=null,this.P=NaN,this.i=i,this.J=!1,this.C=null,this.j=[],this.M=[],this.L=this.F=this.g=null,this.G=new Map,this.m=[],this.A=[],this.H="",this.O=!0,this.I="",this.u=new tI}function dI(e){return[e.adId,e.adParameters,e.adSystem,e.adTitle,e.creativeAdId,e.creativeId,e.creativeSequence,e.height,e.width,e.staticResource].join("")}function dC(e){var t=e.h.currentTime;if(0!=t&&null==e.C){for(var n,i,r=E(e.j),a=r.next();!a.done;a=r.next()){a=a.value;for(var o=E(a.ads),s=o.next();!s.done;s=o.next())if(s=s.value,i){if(s.startTimeInSeconds<t&&s.startTimeInSeconds>i.startTimeInSeconds+i.durationInSeconds){i=s,n=a;break}}else s.startTimeInSeconds<t&&(i=s,n=a)}n&&i&&!e.M.includes(i.adId)&&(e.C=t,e.h.currentTime=n.startTimeInSeconds)}}function dM(e){if(e.h.duration&&(e.g||e.j.length)){var t=e.h.currentTime,n=!1;if(e.g){n=!0;var i=e.F,r=i.startTimeInSeconds+.5*i.durationInSeconds,a=i.startTimeInSeconds+.75*i.durationInSeconds;t>=i.startTimeInSeconds+.25*i.durationInSeconds&&!e.A.includes("firstQuartile")?(e.A.push("firstQuartile"),dP(e,"firstQuartile")):t>=r&&!e.A.includes("midpoint")?(e.A.push("midpoint"),dP(e,"midpoint")):t>=a&&!e.A.includes("thirdQuartile")&&(e.A.push("thirdQuartile"),dP(e,"thirdQuartile")),i=e.g.getRemainingTime(),r=e.g.getDuration(),e.g.canSkipNow()&&i>0&&r>0&&dP(e,"skipStateChanged"),r>0&&(i<=0||i>r)&&dL(e)}if(!e.g||!e.g.isLinear()){e:for(r=(i=E(e.j)).next();!r.done&&(r=r.value,!(e.g&&e.g.isLinear()));r=i.next())for(a=0;a<r.ads.length;a++){var o=r.ads[a],s=o.startTimeInSeconds+o.durationInSeconds;if(o.startTimeInSeconds<=t&&s>t){if(e.M.includes(o.adId)){if(e.h.ended)continue;e.h.currentTime=s;break e}dL(e),e.L=r,e.g=new dx(o,a+1,r.ads.length,!0,e.h),e.F=o,0===a&&dP(e,"breakStart"),dR(e);break}}if(!e.g){for(r=(i=E(e.j)).next();!r.done&&(r=r.value,!e.g);r=i.next())for(a=0;a<r.nonLinearAdsList.length;a++)if((o=r.nonLinearAdsList[a]).nonLinearAdList.length){s=r.startTimeInSeconds;var u=e.G.get(dI(o.nonLinearAdList[0]));if(s<=t&&u&&u.length){dL(e),s=e,u=E(u);for(var l=u.next();!l.done;l=u.next())if((l=l.value).data.source.length){var c=document.createElement("img");c.src=l.data.source[0].url,c.style.top=(l.placeholder.top||0)+"%",c.style.height=100-(l.placeholder.top||0)+"%",c.style.left=(l.placeholder.left||0)+"%",c.style.maxWidth=100-(l.placeholder.left||0)+"%",c.style.objectFit="contain",c.style.position="absolute",s.D.appendChild(c)}e.L=r,e.g=new dx(o,a+1,r.ads.length,!1,e.h),e.F=o,0===a&&dP(e,"breakStart"),dR(e);break}}}n&&!e.g&&(t=e.h.currentTime,e.C&&e.C>t&&(e.h.currentTime=e.C),e.C=null)}}}function dL(e){if(e.g){for(;e.D.lastChild;)e.D.removeChild(e.D.firstChild);e.J||e.M.push(e.F.adId);var t=e.g.m;(void 0===t?0:t)?dP(e,"skip"):dP(e,"complete"),t=E(e.m);for(var n=t.next();!n.done;n=t.next())n=n.value,e.u.Ea(n.target,n.type,n.listener);e.m=[],e.A=[],(t=e.g.getPositionInSequence())===(n=e.g.getSequenceLength())&&dP(e,"breakEnd"),e.g=null,e.F=null,e.L=null}}function dR(e){var t=!1;e.h.paused?t=!0:(dP(e,"impression"),dP(e,"start")),e.m.push({target:e.h,type:"volumechange",listener:function(){e.h.muted&&dP(e,"mute")}}),e.m.push({target:e.h,type:"volumechange",listener:function(){e.h.muted||dP(e,"unmute")}}),e.m.push({target:e.h,type:"play",listener:function(){t?(dP(e,"impression"),dP(e,"start"),t=!1):dP(e,"resume")}}),e.m.push({target:e.h,type:"pause",listener:function(){dP(e,"pause")}});for(var n=E(e.m),i=n.next();!i.done;i=n.next())i=i.value,e.u.o(i.target,i.type,i.listener)}function dP(e,t){var n=e.F.trackingEvents.find(function(e){return e.eventType==t});if(n||(n=e.L.adBreakTrackingEvents.find(function(e){return e.eventType==t})),n){var i={type:10};n=E(n.beaconUrls);for(var r=n.next();!r.done;r=n.next())(r=r.value)&&""!=r&&((r=rv([r],rr())).method="POST",e.K.request(7,r,i))}switch(t){case"impression":e.i(new ee("ad-impression"));break;case"start":e.i(new ee("ad-started",(new Map).set("ad",e.g)));break;case"mute":e.i(new ee("ad-muted"));break;case"unmute":e.i(new ee("ad-volume-changed"));break;case"resume":e.i(new ee("ad-resumed"));break;case"pause":e.i(new ee("ad-paused"));break;case"firstQuartile":e.i(new ee("ad-first-quartile"));break;case"midpoint":e.i(new ee("ad-midpoint"));break;case"thirdQuartile":e.i(new ee("ad-third-quartile"));break;case"complete":e.i(new ee("ad-complete")),e.i(new ee("ad-stopped"));break;case"skip":e.i(new ee("ad-skipped")),e.i(new ee("ad-stopped"));break;case"breakStart":e.D.setAttribute("ad-active","true");break;case"breakEnd":e.D.removeAttribute("ad-active");break;case"skipStateChanged":e.i(new ee("ad-skip-state-changed"))}}function dD(e,t){this.g=e,this.i=null,this.h=t}function dN(e,t,n,i){var r=this;this.A=e,this.l=t,this.j=null,this.G=NaN,this.i=i,this.H=!1,this.C=this.m=this.u=null,this.D="",this.F=[],this.h=new tI,(e=new google.ima.dai.api.UiSettings).setLocale(n),this.g=new google.ima.dai.api.StreamManager(this.l,this.A,e),this.i(new ee("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g))),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(e){var t,n;t=r,n=e,t.i(new ee("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-t.G))),n=n.getStreamData().url,t.j.resolve(n),t.j=null,t.H||t.h.o(t.l,"seeked",function(){var e=t.l.currentTime;if(0!=e){t.g.streamTimeForContentTime(e);var n=t.g.previousCuePointForStreamTime(e);n&&!n.played&&(t.u=e,t.l.currentTime=n.start)}})}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){r.D.length?r.j.resolve(r.D):r.j.reject("IMA Stream request returned an error and there was no backup asset uri provided."),r.j=null}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(e){r.m=new dD(e=e.getAd(),r.l),r.C&&(r.m.i=r.C),r.i(new ee("ad-started",(new Map).set("ad",r.m))),r.A.setAttribute("ad-active","true")}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){r.A.removeAttribute("ad-active");var e=r.l.currentTime;r.u&&r.u>e&&(r.l.currentTime=r.u,r.u=null)}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(e){r.C=e.getStreamData().adProgressData,r.m&&(r.m.i=r.C)}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){r.i(new ee("ad-first-quartile"))}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){r.i(new ee("ad-midpoint"))}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){r.i(new ee("ad-third-quartile"))}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){r.i(new ee("ad-complete")),r.i(new ee("ad-stopped")),r.A.removeAttribute("ad-active"),r.m=null}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){r.i(new ee("ad-skipped")),r.i(new ee("ad-stopped"))}),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(e){var t=e.getStreamData();e=[],t=E(t.cuepoints);for(var n=t.next();!n.done;n=t.next())n=n.value,e.push({start:n.start,end:n.end});r.F=e,r.i(new ee("ad-cue-points-changed",(new Map).set("cuepoints",e)))})}function dO(){ec.call(this),this.h=this.i=this.j=this.g=null,this.m=new c7,this.u=navigator.language,this.l=null}function d_(e,t){if(t&&t.type)switch(t.type){case"ads-loaded":e.m.g.push(t.loadTime);break;case"ad-started":e.m.h++;var n=t.ad;n&&!n.isLinear()&&e.m.j++;break;case"ad-complete":e.m.l++;break;case"ad-skipped":e.m.m++;break;case"ad-error":e.m.i++}e.dispatchEvent(t)}function dU(e){return JSON.stringify(e,function(e,t){if("function"!=typeof t){if(e=t instanceof ee,t instanceof Event||e){var n={};for(r in t){var i=t[r];
1i&&"object"==typeof i?"detail"==r?n[r]=i:i instanceof Event||i instanceof ee?n[r]={__type__:"Event",event:dU(i)}:e&&Array.isArray(i)&&(n[r]=i):r in Event||(n[r]=i)}return n}if(t instanceof Error){var r=new Set(["name","message","stack"]);for(n in t)r.add(n);for(n=(e=E(Object.getOwnPropertyNames(t))).next();!n.done;n=e.next())r.add(n.value);for(e={},n=(r=E(r)).next();!n.done;n=r.next())e[n=n.value]=t[n];t={__type__:"Error",contents:e}}else if(t instanceof TimeRanges){for(r={__type__:"TimeRanges",length:t.length,start:[],end:[]},e=(t=E(a4(t))).next();!e.done;e=t.next())n=(e=e.value).end,r.start.push(e.start),r.end.push(n);t=r}else t=ArrayBuffer.isView(t)&&1===t.BYTES_PER_ELEMENT?{__type__:"Uint8Array",entries:Array.from(t)}:"number"==typeof t?isNaN(t)?"NaN":isFinite(t)?t:t<0?"-Infinity":"Infinity":t;return t}})}function dq(e){return JSON.parse(e,function(e,t){if("NaN"==t)var n,i=NaN;else if("-Infinity"==t)i=-1/0;else if("Infinity"==t)i=1/0;else if(t&&"object"==typeof t&&"TimeRanges"==t.__type__){i={length:(n=t).length,start:function(e){return n.start[e]},end:function(e){return n.end[e]}}}else if(t&&"object"==typeof t&&"Uint8Array"==t.__type__)i=new Uint8Array(t.entries);else if(t&&"object"==typeof t&&"Error"==t.__type__){for(i in t=Error((e=t.contents).message),e)t[i]=e[i];i=t}else i=t&&"object"==typeof t&&"Event"==t.__type__?dq(t.event):t;return i})}(p=c9.prototype).needsSkipUI=function(){return!1},p.isClientRendering=function(){return!0},p.hasCustomClick=function(){return!0},p.isUsingAnotherMediaElement=function(){return!0},p.getDuration=function(){return this.g.getDuration()},p.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()},p.getRemainingTime=function(){return this.h.getRemainingTime()},p.isPaused=function(){return this.i},p.isSkippable=function(){return this.g.getSkipTimeOffset()>=0},p.getTimeUntilSkippable=function(){var e=this.g.getSkipTimeOffset();return Math.max(e=this.getRemainingTime()-e,0)},p.canSkipNow=function(){return this.h.getAdSkippableState()},p.skip=function(){return this.h.skip()},p.pause=function(){return this.h.pause()},p.play=function(){return this.h.resume()},p.getVolume=function(){return this.h.getVolume()},p.setVolume=function(e){return this.m.volume=e,this.h.setVolume(e)},p.isMuted=function(){return 0==this.h.getVolume()},p.isLinear=function(){return this.g.isLinear()},p.resize=function(e,t){this.h.resize(e,t)},p.setMuted=function(e){(this.m.muted=e)?(this.j=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.j)},p.getSequenceLength=function(){var e=this.g.getAdPodInfo();return null==e?1:e.getTotalAds()},p.getPositionInSequence=function(){var e=this.g.getAdPodInfo();return null==e?1:e.getAdPosition()},p.getTitle=function(){return this.g.getTitle()},p.getDescription=function(){return this.g.getDescription()},p.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()},p.getVastMediaHeight=function(){return this.g.getVastMediaHeight()},p.getVastMediaWidth=function(){return this.g.getVastMediaWidth()},p.getVastAdId=function(){return""},p.getAdId=function(){return this.g.getAdId()},p.getCreativeAdId=function(){return this.g.getCreativeAdId()},p.getAdvertiserName=function(){return this.g.getAdvertiserName()},p.getMediaUrl=function(){return this.g.getMediaUrl()},p.getTimeOffset=function(){var e=this.g.getAdPodInfo();return null==e?0:e.getTimeOffset()},p.getPodIndex=function(){var e=this.g.getAdPodInfo();return null==e?0:e.getPodIndex()},p.release=function(){this.h=this.g=null},$("shaka.ads.ClientSideAd",c9),c9.prototype.release=c9.prototype.release,c9.prototype.getPodIndex=c9.prototype.getPodIndex,c9.prototype.getTimeOffset=c9.prototype.getTimeOffset,c9.prototype.getMediaUrl=c9.prototype.getMediaUrl,c9.prototype.getAdvertiserName=c9.prototype.getAdvertiserName,c9.prototype.getCreativeAdId=c9.prototype.getCreativeAdId,c9.prototype.getAdId=c9.prototype.getAdId,c9.prototype.getVastAdId=c9.prototype.getVastAdId,c9.prototype.getVastMediaWidth=c9.prototype.getVastMediaWidth,c9.prototype.getVastMediaHeight=c9.prototype.getVastMediaHeight,c9.prototype.getVastMediaBitrate=c9.prototype.getVastMediaBitrate,c9.prototype.getDescription=c9.prototype.getDescription,c9.prototype.getTitle=c9.prototype.getTitle,c9.prototype.getPositionInSequence=c9.prototype.getPositionInSequence,c9.prototype.getSequenceLength=c9.prototype.getSequenceLength,
1c9.prototype.setMuted=c9.prototype.setMuted,c9.prototype.resize=c9.prototype.resize,c9.prototype.isLinear=c9.prototype.isLinear,c9.prototype.isMuted=c9.prototype.isMuted,c9.prototype.setVolume=c9.prototype.setVolume,c9.prototype.getVolume=c9.prototype.getVolume,c9.prototype.play=c9.prototype.play,c9.prototype.pause=c9.prototype.pause,c9.prototype.skip=c9.prototype.skip,c9.prototype.canSkipNow=c9.prototype.canSkipNow,c9.prototype.getTimeUntilSkippable=c9.prototype.getTimeUntilSkippable,c9.prototype.isSkippable=c9.prototype.isSkippable,c9.prototype.isPaused=c9.prototype.isPaused,c9.prototype.getRemainingTime=c9.prototype.getRemainingTime,c9.prototype.getMinSuggestedDuration=c9.prototype.getMinSuggestedDuration,c9.prototype.getDuration=c9.prototype.getDuration,c9.prototype.isUsingAnotherMediaElement=c9.prototype.isUsingAnotherMediaElement,c9.prototype.hasCustomClick=c9.prototype.hasCustomClick,c9.prototype.isClientRendering=c9.prototype.isClientRendering,c9.prototype.needsSkipUI=c9.prototype.needsSkipUI,$("shaka.ads.Utils",de),de.ADS_LOADED="ads-loaded",de.AD_STARTED="ad-started",de.AD_FIRST_QUARTILE="ad-first-quartile",de.AD_MIDPOINT="ad-midpoint",de.AD_THIRD_QUARTILE="ad-third-quartile",de.AD_COMPLETE="ad-complete",de.AD_STOPPED="ad-stopped",de.AD_SKIPPED="ad-skipped",de.AD_VOLUME_CHANGED="ad-volume-changed",de.AD_MUTED="ad-muted",de.AD_PAUSED="ad-paused",de.AD_RESUMED="ad-resumed",de.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",de.CUEPOINTS_CHANGED="ad-cue-points-changed",de.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",de.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded",de.AD_CLICKED="ad-clicked",de.AD_PROGRESS="ad-progress",de.AD_BUFFERING="ad-buffering",de.AD_IMPRESSION="ad-impression",de.AD_DURATION_CHANGED="ad-duration-changed",de.AD_CLOSED="ad-closed",de.AD_LOADED="ad-loaded",de.ALL_ADS_COMPLETED="all-ads-completed",de.AD_LINEAR_CHANGED="ad-linear-changed",de.AD_METADATA="ad-metadata",de.AD_RECOVERABLE_ERROR="ad-recoverable-error",de.AD_ERROR="ad-error",de.AD_BREAK_READY="ad-break-ready",de.AD_INTERACTION="ad-interaction",de.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested",de.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested",de.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested",dn.prototype.configure=function(e){this.u=e},dn.prototype.stop=function(){this.g&&this.g.stop(),this.A&&on(this.A)},dn.prototype.release=function(){this.stop(),this.C&&this.C.disconnect(),this.h&&this.h.release(),this.g&&this.g.destroy(),this.m.destroy(),this.F.destroy()},(p=ds.prototype).needsSkipUI=function(){return!0},p.isClientRendering=function(){return!0},p.hasCustomClick=function(){return null!=this.h.clickThroughUrl},p.isUsingAnotherMediaElement=function(){return this.A},p.getDuration=function(){var e=this.g.duration;return isNaN(e)?-1:e},p.getMinSuggestedDuration=function(){return this.getDuration()},p.getRemainingTime=function(){var e=this.g.duration;return isNaN(e)?-1:e-this.g.currentTime},p.isPaused=function(){return this.g.paused},p.isSkippable=function(){return this.i&&null!=this.l?this.getDuration()-this.getRemainingTime()<this.j+this.l:this.i},p.getTimeUntilSkippable=function(){return this.isSkippable()?Math.max(this.getRemainingTime()+this.j-this.getDuration(),0):Math.max(this.getRemainingTime(),0)},p.canSkipNow=function(){return this.i&&0==this.getTimeUntilSkippable()},p.skip=function(){this.canSkipNow()&&this.C()},p.pause=function(){return this.g.pause()},p.play=function(){return this.g.play()},p.getVolume=function(){return this.g.volume},p.setVolume=function(e){this.g.volume=e},p.isMuted=function(){return this.g.muted},p.isLinear=function(){return null==this.D},p.resize=function(){},p.setMuted=function(e){this.g.muted=e},p.getSequenceLength=function(){return this.u},p.getPositionInSequence=function(){return this.m},p.getTitle=function(){return""},p.getDescription=function(){return""},p.getVastMediaBitrate=function(){return 0},p.getVastMediaHeight=function(){return 0},p.getVastMediaWidth=function(){return 0},p.getVastAdId=function(){return""},p.getAdId=function(){return this.h.id||""},p.getCreativeAdId=function(){return""},p.getAdvertiserName=function(){return""},p.getMediaUrl=function(){return this.h.uri},p.getTimeOffset=function(){return this.h.pre?0:this.h.post?-1:this.h.startTime},p.getPodIndex=function(){return 0},p.release=function(){this.g=null},$("shaka.ads.InterstitialAd",ds),ds.prototype.release=ds.prototype.release,ds.prototype.getPodIndex=ds.prototype.getPodIndex,ds.prototype.getTimeOffset=ds.prototype.getTimeOffset,ds.prototype.getMediaUrl=ds.prototype.getMediaUrl,ds.prototype.getAdvertiserName=ds.prototype.getAdvertiserName,ds.prototype.getCreativeAdId=ds.prototype.getCreativeAdId,ds.prototype.getAdId=ds.prototype.getAdId,ds.prototype.getVastAdId=ds.prototype.getVastAdId,ds.prototype.getVastMediaWidth=ds.prototype.getVastMediaWidth,ds.prototype.getVastMediaHeight=ds.prototype.getVastMediaHeight,ds.prototype.getVastMediaBitrate=ds.prototype.getVastMediaBitrate,ds.prototype.getDescription=ds.prototype.getDescription,ds.prototype.getTitle=ds.prototype.getTitle,ds.prototype.getPositionInSequence=ds.prototype.getPositionInSequence,ds.prototype.getSequenceLength=ds.prototype.getSequenceLength,ds.prototype.setMuted=ds.prototype.setMuted,ds.prototype.resize=ds.prototype.resize,ds.prototype.isLinear=ds.prototype.isLinear,ds.prototype.isMuted=ds.prototype.isMuted,ds.prototype.setVolume=ds.prototype.setVolume,ds.prototype.getVolume=ds.prototype.getVolume,ds.prototype.play=ds.prototype.play,ds.prototype.pause=ds.prototype.pause,ds.prototype.skip=ds.prototype.skip,ds.prototype.canSkipNow=ds.prototype.canSkipNow,ds.prototype.getTimeUntilSkippable=ds.prototype.getTimeUntilSkippable,ds.prototype.isSkippable=ds.prototype.isSkippable,ds.prototype.isPaused=ds.prototype.isPaused,ds.prototype.getRemainingTime=ds.prototype.getRemainingTime,ds.prototype.getMinSuggestedDuration=ds.prototype.getMinSuggestedDuration,ds.prototype.getDuration=ds.prototype.getDuration,ds.prototype.isUsingAnotherMediaElement=ds.prototype.isUsingAnotherMediaElement,ds.prototype.hasCu
1stomClick=ds.prototype.hasCustomClick,ds.prototype.isClientRendering=ds.prototype.isClientRendering,ds.prototype.needsSkipUI=ds.prototype.needsSkipUI,(p=du.prototype).needsSkipUI=function(){return!0},p.isClientRendering=function(){return!0},p.hasCustomClick=function(){return null!=this.g.clickThroughUrl},p.isUsingAnotherMediaElement=function(){return!1},p.getDuration=function(){return -1},p.getMinSuggestedDuration=function(){return this.getDuration()},p.getRemainingTime=function(){return -1},p.isPaused=function(){return!1},p.isSkippable=function(){return!1},p.getTimeUntilSkippable=function(){return 0},p.canSkipNow=function(){return!1},p.skip=function(){},p.pause=function(){},p.play=function(){},p.getVolume=function(){return 1},p.setVolume=function(){},p.isMuted=function(){return!1},p.isLinear=function(){return this.i},p.resize=function(){},p.setMuted=function(){},p.getSequenceLength=function(){return this.j},p.getPositionInSequence=function(){return this.h},p.getTitle=function(){return""},p.getDescription=function(){return""},p.getVastMediaBitrate=function(){return 0},p.getVastMediaHeight=function(){return 0},p.getVastMediaWidth=function(){return 0},p.getVastAdId=function(){return""},p.getAdId=function(){return this.g.id||""},p.getCreativeAdId=function(){return""},p.getAdvertiserName=function(){return""},p.getMediaUrl=function(){return this.g.uri},p.getTimeOffset=function(){return this.g.pre?0:this.g.post?-1:this.g.startTime},p.getPodIndex=function(){return 0},p.release=function(){},$("shaka.ads.InterstitialStaticAd",du),du.prototype.release=du.prototype.release,du.prototype.getPodIndex=du.prototype.getPodIndex,du.prototype.getTimeOffset=du.prototype.getTimeOffset,du.prototype.getMediaUrl=du.prototype.getMediaUrl,du.prototype.getAdvertiserName=du.prototype.getAdvertiserName,du.prototype.getCreativeAdId=du.prototype.getCreativeAdId,du.prototype.getAdId=du.prototype.getAdId,du.prototype.getVastAdId=du.prototype.getVastAdId,du.prototype.getVastMediaWidth=du.prototype.getVastMediaWidth,du.prototype.getVastMediaHeight=du.prototype.getVastMediaHeight,du.prototype.getVastMediaBitrate=du.prototype.getVastMediaBitrate,du.prototype.getDescription=du.prototype.getDescription,du.prototype.getTitle=du.prototype.getTitle,du.prototype.getPositionInSequence=du.prototype.getPositionInSequence,du.prototype.getSequenceLength=du.prototype.getSequenceLength,du.prototype.setMuted=du.prototype.setMuted,du.prototype.resize=du.prototype.resize,du.prototype.isLinear=du.prototype.isLinear,du.prototype.isMuted=du.prototype.isMuted,du.prototype.setVolume=du.prototype.setVolume,du.prototype.getVolume=du.prototype.getVolume,du.prototype.play=du.prototype.play,du.prototype.pause=du.prototype.pause,du.prototype.skip=du.prototype.skip,du.prototype.canSkipNow=du.prototype.canSkipNow,du.prototype.getTimeUntilSkippable=du.prototype.getTimeUntilSkippable,du.prototype.isSkippable=du.prototype.isSkippable,du.prototype.isPaused=du.prototype.isPaused,du.prototype.getRemainingTime=du.prototype.getRemainingTime,du.prototype.getMinSuggestedDuration=du.prototype.getMinSuggestedDuration,du.prototype.getDuration=du.prototype.getDuration,du.prototype.isUsingAnotherMediaElement=du.prototype.isUsingAnotherMediaElement,du.prototype.hasCustomClick=du.prototype.hasCustomClick,du.prototype.isClientRendering=du.prototype.isClientRendering,du.prototype.needsSkipUI=du.prototype.needsSkipUI,(p=dl.prototype).configure=function(e){this.L=e,dd(this)},p.stop=function(){if(this.j&&this.j.Sa(),this.aa.clear(),this.R.clear(),this.H.clear(),this.i.Yg(),this.F.size){var e=Array.from(this.F.values());e=E(e);for(var t=e.next();!t.done;t=e.next())(t=t.value)&&t.then(function(e){e&&e.destroy()})}if(this.F.clear(),this.K.size)for(t=(e=E(e=Array.from(this.K.keys()))).next();!t.done;t=e.next())dA(this,t.value);this.K.clear(),this.i.detach(),this.J=!1,this.C=this.l=null,this.A=!0,this.h=this.g,this.G=null,dm(this),dc(this),this.m&&on(this.m),this.u&&(this.u.stop(),this.u=null)},p.release=function(){this.stop(),this.I&&this.I.release(),this.j&&this.j.release(),this.P&&(this.P.stop(),this.P=null),this.M&&(this.M.stop(),this.M=null),this.i.destroy()},p.Yb=function(){return this.i},p.addAdUrlInterstitial=function(e){var t,n,i,r,a,o,s,u,l=this;return F(function(c){if(1==c.g)return M(c,db(l,e,t={type:12}),2);if(3!=c.g){if(!(n=nt(c.h,"VAST,vmap:VMAP")))throw new eU(2,10,10007);if(i=[],"VAST"==n.tagName)return i=dt(n,l.l),c.B(3);if("vmap:VMAP"!=n.tagName)return c.B(3);for(r=function(e){var n;return F(function(r){if(1==r.g)return M(r,db(l,e.uri,t),2);if(!(n=nt(r.h,"VAST")))throw new eU(2,10,10007);i.push.apply(i,x(dt(n,e.time))),L(r)})},a=[],s=(o=E(function(e){var t=[];e=E(no(e,"vmap:AdBreak"));for(var n=e.next();!n.done;n=e.next()){var i=n.value,r=i.attributes.timeOffset;r&&(n=null,n="start"==r?null:"end"==r?1/0:t4(r),(i=nc(i,"vmap:AdSource"))&&(i=nc(i,"vmap:AdTagURI"))&&(i=ns(i))&&t.pu
1sh({time:n,uri:i}))}return t}(n))).next();!s.done;s=o.next())u=s.value,a.push(r(u));return a.length?M(c,Promise.all(a),3):c.B(3)}dh(l,i),L(c)})},(p=dx.prototype).needsSkipUI=function(){return!0},p.isClientRendering=function(){return!1},p.hasCustomClick=function(){return!1},p.isUsingAnotherMediaElement=function(){return!1},p.getDuration=function(){return this.h.durationInSeconds},p.getMinSuggestedDuration=function(){return this.getDuration()},p.getRemainingTime=function(){return this.h.startTimeInSeconds+this.h.durationInSeconds-this.g.currentTime},p.isPaused=function(){return this.g.paused},p.isSkippable=function(){return"number"==typeof this.j},p.getTimeUntilSkippable=function(){return"number"!=typeof this.j?this.getRemainingTime():Math.max(this.getRemainingTime()+this.j-this.getDuration(),0)},p.canSkipNow=function(){return 0==this.getTimeUntilSkippable()},p.skip=function(){this.m=!0,this.g.currentTime+=this.getRemainingTime()},p.pause=function(){return this.g.pause()},p.play=function(){return this.g.play()},p.getVolume=function(){return this.g.volume},p.setVolume=function(e){this.g.volume=e},p.isMuted=function(){return this.g.muted},p.isLinear=function(){return this.u},p.resize=function(){},p.setMuted=function(e){this.g.muted=e},p.getSequenceLength=function(){return this.l?this.l:1},p.getPositionInSequence=function(){return this.i?this.i:1},p.getTitle=function(){return this.h.adTitle},p.getDescription=function(){return""},p.getVastMediaBitrate=function(){return 0},p.getVastMediaHeight=function(){return 0},p.getVastMediaWidth=function(){return 0},p.getVastAdId=function(){return this.h.vastAdId||""},p.getAdId=function(){return this.h.adId},p.getCreativeAdId=function(){return this.h.creativeId},p.getAdvertiserName=function(){return""},p.getMediaUrl=function(){return null},p.getTimeOffset=function(){return 0},p.getPodIndex=function(){return 0},p.release=function(){this.l=this.i=this.g=this.h=null},$("shaka.ads.MediaTailorAd",dx),dx.prototype.release=dx.prototype.release,dx.prototype.getPodIndex=dx.prototype.getPodIndex,dx.prototype.getTimeOffset=dx.prototype.getTimeOffset,dx.prototype.getMediaUrl=dx.prototype.getMediaUrl,dx.prototype.getAdvertiserName=dx.prototype.getAdvertiserName,dx.prototype.getCreativeAdId=dx.prototype.getCreativeAdId,dx.prototype.getAdId=dx.prototype.getAdId,dx.prototype.getVastAdId=dx.prototype.getVastAdId,dx.prototype.getVastMediaWidth=dx.prototype.getVastMediaWidth,dx.prototype.getVastMediaHeight=dx.prototype.getVastMediaHeight,dx.prototype.getVastMediaBitrate=dx.prototype.getVastMediaBitrate,dx.prototype.getDescription=dx.prototype.getDescription,dx.prototype.getTitle=dx.prototype.getTitle,dx.prototype.getPositionInSequence=dx.prototype.getPositionInSequence,dx.prototype.getSequenceLength=dx.prototype.getSequenceLength,dx.prototype.setMuted=dx.prototype.setMuted,dx.prototype.resize=dx.prototype.resize,dx.prototype.isLinear=dx.prototype.isLinear,dx.prototype.isMuted=dx.prototype.isMuted,dx.prototype.setVolume=dx.prototype.setVolume,dx.prototype.getVolume=dx.prototype.getVolume,dx.prototype.play=dx.prototype.play,dx.prototype.pause=dx.prototype.pause,dx.prototype.skip=dx.prototype.skip,dx.prototype.canSkipNow=dx.prototype.canSkipNow,dx.prototype.getTimeUntilSkippable=dx.prototype.getTimeUntilSkippable,dx.prototype.isSkippable=dx.prototype.isSkippable,dx.prototype.isPaused=dx.prototype.isPaused,dx.prototype.getRemainingTime=dx.prototype.getRemainingTime,dx.prototype.getMinSuggestedDuration=dx.prototype.getMinSuggestedDuration,dx.prototype.getDuration=dx.prototype.getDuration,dx.prototype.isUsingAnotherMediaElement=dx.prototype.isUsingAnotherMediaElement,dx.prototype.hasCustomClick=dx.prototype.hasCustomClick,dx.prototype.isClientRendering=dx.prototype.isClientRendering,dx.prototype.needsSkipUI=dx.prototype.needsSkipUI,dk.prototype.stop=function(){for(var e=E(this.m),t=e.next();!t.done;t=e.next())t=t.value,this.u.Ea(t.target,t.type,t.listener);dL(this),this.m=[],this.A=[],this.H="",this.O=!0,this.I="",this.C=null,this.j=[],this.M=[],this.G.clear()},dk.prototype.release=function(){this.stop(),this.u&&this.u.release()},dk.prototype.onManifestUpdated=function(e){var t,n,i,r,a,o,s,u,l,c,d,h,p,f,g;this.J=e,""!=this.H&&(t=this,n=this.H,i=this.O,F(function(e){if(1==e.g)return r={type:8},a=rv([n],rr()),o=t.K.request(7,a,r),R(e,2),M(e,o.promise,4);if(2!=e.g){var m;if(s=e.h,u=[],(l=JSON.parse(ez(s.data))).avails.length>0){if(JSON.stringify(t.j)!=JSON.stringify(l.avails)){for(t.j=l.avails,d=(c=E(t.j)).next();!d.done;d=c.next())for(p=(h=E(d.value.nonLinearAdsList)).next();!p.done;p=h.next())for(g=(f=E(p.value.nonLinearAdList)).next();!g.done;g=f.next())!function(e,t){var n,i,r,a,o;
1F(function(s){return 1==s.g?t.staticResource?(n=dI(t),e.G.get(n))?s.return():(i={type:9},r=rv([t.staticResource],rr()),a=e.K.request(7,r,i),R(s,2),e.G.set(n,[]),M(s,a.promise,4)):s.return():2!=s.g?(o=JSON.parse(ez(s.h.data)).apps,e.G.set(n,o),D(s,0)):void(N(s),e.G.delete(n),L(s))})}(t,g.value);u=t.getCuePoints(),t.i(new ee("ad-cue-points-changed",(new Map).set("cuepoints",u)))}}else t.j.length&&t.i(new ee("ad-cue-points-changed",(new Map).set("cuepoints",u))),dL(t),t.j=[];return i&&(t.J||u.length>0)&&(dM(m=t),m.J||(dC(m),m.u.o(m.h,"seeked",function(){dC(m)}),m.u.o(m.h,"ended",function(){dL(m)})),m.u.o(m.h,"timeupdate",function(){dM(m)})),D(e,0)}N(e),L(e)}),this.O=!1)},dk.prototype.getCuePoints=function(){for(var e=[],t=E(this.j),n=t.next();!n.done;n=t.next()){n=E(n.value.ads);for(var i=n.next();!i.done;i=n.next())i=i.value,e.push({start:i.startTimeInSeconds,end:i.startTimeInSeconds+i.durationInSeconds})}return e},(p=dD.prototype).needsSkipUI=function(){return!0},p.isClientRendering=function(){return!1},p.hasCustomClick=function(){return!0},p.isUsingAnotherMediaElement=function(){return!1},p.getDuration=function(){return this.i?this.i.duration:-1},p.getMinSuggestedDuration=function(){return this.getDuration()},p.getRemainingTime=function(){return this.i?this.i.duration-this.i.currentTime:-1},p.isPaused=function(){return this.h.paused},p.isSkippable=function(){return this.g.isSkippable()},p.getTimeUntilSkippable=function(){var e=this.g.getSkipTimeOffset();return Math.max(e=this.getRemainingTime()-e,0)},p.canSkipNow=function(){return 0==this.getTimeUntilSkippable()},p.skip=function(){this.h.currentTime+=this.getRemainingTime()},p.pause=function(){return this.h.pause()},p.play=function(){return this.h.play()},p.getVolume=function(){return this.h.volume},p.setVolume=function(e){this.h.volume=e},p.isMuted=function(){return this.h.muted},p.isLinear=function(){return!0},p.resize=function(){},p.setMuted=function(e){this.h.muted=e},p.getSequenceLength=function(){var e=this.g.getAdPodInfo();return null==e?1:e.getTotalAds()},p.getPositionInSequence=function(){var e=this.g.getAdPodInfo();return null==e?1:e.getAdPosition()},p.getTitle=function(){return this.g.getTitle()},p.getDescription=function(){return this.g.getDescription()},p.getVastMediaBitrate=function(){return 0},p.getVastMediaHeight=function(){return this.g.getVastMediaHeight()},p.getVastMediaWidth=function(){return this.g.getVastMediaWidth()},p.getVastAdId=function(){return""},p.getAdId=function(){return this.g.getAdId()},p.getCreativeAdId=function(){return this.g.getCreativeAdId()},p.getAdvertiserName=function(){return this.g.getAdvertiserName()},p.getMediaUrl=function(){return null},p.getTimeOffset=function(){var e=this.g.getAdPodInfo();return null==e?0:e.getTimeOffset()},p.getPodIndex=function(){var e=this.g.getAdPodInfo();return null==e?0:e.getPodIndex()},p.release=function(){this.h=this.i=this.g=null},$("shaka.ads.ServerSideAd",dD),dD.prototype.release=dD.prototype.release,dD.prototype.getPodIndex=dD.prototype.getPodIndex,dD.prototype.getTimeOffset=dD.prototype.getTimeOffset,dD.prototype.getMediaUrl=dD.prototype.getMediaUrl,dD.prototype.getAdvertiserName=dD.prototype.getAdvertiserName,dD.prototype.getCreativeAdId=dD.prototype.getCreativeAdId,dD.prototype.getAdId=dD.prototype.getAdId,dD.prototype.getVastAdId=dD.prototype.getVastAdId,dD.prototype.getVastMediaWidth=dD.prototype.getVastMediaWidth,dD.prototype.getVastMediaHeight=dD.prototype.getVastMediaHeight,dD.prototype.getVastMediaBitrate=dD.prototype.getVastMediaBitrate,dD.prototype.getDescription=dD.prototype.getDescription,dD.prototype.getTitle=dD.prototype.getTitle,dD.prototype.getPositionInSequence=dD.prototype.getPositionInSequence,dD.prototype.getSequenceLength=dD.prototype.getSequenceLength,dD.prototype.setMuted=dD.prototype.setMuted,dD.prototype.resize=dD.prototype.resize,dD.prototype.isLinear=dD.prototype.isLinear,dD.prototype.isMuted=dD.prototype.isMuted,dD.prototype.setVolume=dD.prototype.setVolume,dD.prototype.getVolume=dD.prototype.getVolume,dD.prototype.play=dD.prototype.play,dD.prototype.pause=dD.prototype.pause,dD.prototype.skip=dD.prototype.skip,dD.prototype.canSkipNow=dD.prototype.canSkipNow,dD.prototype.getTimeUntilSkippable=dD.prototype.getTimeUntilSkippable,dD.prototype.isSkippable=dD.prototype.isSkippable,dD.prototype.isPaused=dD.prototype.isPaused,dD.prototype.getRemainingTime=dD.prototype.getRemainingTime,dD.prototype.getMinSuggestedDuration=dD.prototype.getMinSuggestedDuration,dD.prototype.getDuration=dD.prototype.getDuration,dD.prototype.isUsingAnotherMediaElement=dD.prototype.isUsingAnotherMediaElement,dD.prototype.hasCu
1stomClick=dD.prototype.hasCustomClick,dD.prototype.isClientRendering=dD.prototype.isClientRendering,dD.prototype.needsSkipUI=dD.prototype.needsSkipUI,(p=dN.prototype).configure=function(){},p.stop=function(){this.D="",this.u=null,this.F=[]},p.release=function(){this.stop(),this.h&&this.h.release()},p.onCueMetadataChange=function(e){if(e.key&&e.data){var t={};t[e.key]=e.data,this.g.onTimedMetadata(t)}},p.getCuePoints=function(){return this.F},S(dO,ec),(p=dO.prototype).setLocale=function(e){this.u=e},p.configure=function(e){this.l=e,this.g&&this.g.configure(this.l),this.j&&this.j.configure(this.l),this.h&&this.h.configure(this.l)},p.initInterstitial=function(e,t,n){var i=this;this.g&&this.g.release(),this.g=new dl(e,t,n,function(e){return d_(i,e)}),this.g.configure(this.l)},p.initClientSide=function(t,n,i){var r=this;if(!e.google||!google.ima||!google.ima.AdsLoader)throw new eU(2,10,1e4);this.j&&this.j.release(),this.j=new dn(t,n,this.u,i,function(e){return d_(r,e)}),this.j.configure(this.l)},p.release=function(){this.g&&(this.g.release(),this.g=null),this.j&&(this.j.release(),this.j=null),this.i&&(this.i.release(),this.i=null),this.h&&(this.h.release(),this.h=null),ec.prototype.release.call(this)},p.onAssetUnload=function(){this.g&&this.g.stop(),this.j&&this.j.stop(),this.i&&this.i.stop(),this.h&&this.h.stop(),this.dispatchEvent(new ee("ad-stopped")),this.dispatchEvent(new ee("ad-content-attach-requested")),this.m=new c7},p.requestClientSideAds=function(e){if(!this.j)throw new eU(1,10,10001);var t=this.j;t.g&&t.g.destroy(),t.m&&t.m.contentComplete(),t.H=Date.now()/1e3,t.m.requestAds(e)},p.updateClientSideAdsRenderingSettings=function(e){if(!this.j)throw new eU(1,10,10001);var t=this.j;t.D=e,t.g&&t.g.updateAdsRenderingSettings(t.D)},p.initMediaTailor=function(e,t,n){var i=this;this.i&&this.i.release(),this.i=new dk(e,t,n,function(e){return d_(i,e)})},p.requestMediaTailorStream=function(e,t,n){if(!this.i)throw new eU(1,10,10005);var i,r,a,o,s,u,l,c,d,h,p,f=this.i;return n=void 0===n?"":n,f.l?e=Promise.reject(new eU(1,10,10004)):(f.l=new ra,i=f,r=e,a=t,F(function(e){if(1==e.g)return o={type:7},(s=rv([r],rr())).method="POST",a&&(s.body=eX(JSON.stringify(a))),u=i.K.request(7,s,o),R(e,2),M(e,u.promise,4);if(2!=e.g){if((l=JSON.parse(ez(e.h.data))).manifestUrl&&l.trackingUrl)c=new eg(r),d=new eg(l.trackingUrl),i.H=c.resolve(d).toString(),h=Date.now()/1e3-i.P,i.i(new ee("ads-loaded",(new Map).set("loadTime",h))),p=new eg(l.manifestUrl),i.l.resolve(c.resolve(p).toString()),i.l=null;else throw Error("Insufficient data from MediaTailor.");return D(e,0)}if(N(e),!i.I.length)return i.l.reject("MediaTailor request returned an error and there was no backup asset uri provided."),i.l=null,e.return();i.l.resolve(i.I),i.l=null,L(e)}),f.I=n||"",f.P=Date.now()/1e3,e=f.l),e},p.addMediaTailorTrackingUrl=function(e){if(!this.i)throw new eU(1,10,10005);var t=this.i;t.H=e,t.i(new ee("ads-loaded",(new Map).set("loadTime",0)))},p.initServerSide=function(t,n){var i=this;if(!e.google||!google.ima||!google.ima.dai)throw new eU(2,10,10002);this.h&&this.h.release(),this.h=new dN(t,n,this.u,function(e){return d_(i,e)}),this.h.configure(this.l)},p.requestServerSideStream=function(e,t){if(t=void 0===t?"":t,!this.h)throw new eU(1,10,10003);e.adTagParameters||(e.adTagParameters={});var n=e.adTagParameters;return(n.mpt||n.mpv)&&ea('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.'),e.adTagParameters.mpt="shaka-player",e.adTagParameters.mpv="v4.16.9",(n=this.h).j?e=Promise.reject(new eU(1,10,10004)):(e instanceof google.ima.dai.api.LiveStreamRequest&&(n.H=!0),n.j=new ra,n.g.requestStream(e),n.D=t||"",n.G=Date.now()/1e3,e=n.j),e},p.replaceServerSideAdTagParameters=function(e){if(!this.h)throw new eU(1,10,10003);(e.mpt||e.mpv)&&ea('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.'),e.mpt="Shaka Player",e.mpv="v4.16.9",this.h.g.replaceAdTagParameters(e)}
1,p.getServerSideCuePoints=function(){return tR("AdManager.getServerSideCuePoints","Please use getCuePoints function."),this.getCuePoints()},p.getCuePoints=function(){var e=[];return this.h&&(e=e.concat(this.h.getCuePoints())),this.i&&(e=e.concat(this.i.getCuePoints())),e},p.getStats=function(){var e,t=this.m;return{loadTimes:t.g,averageLoadTime:(e=t).g.length?e.g.reduce(function(e,t){return e+t},0)/e.g.length:0,started:t.h,overlayAds:t.j,playedCompletely:t.l,skipped:t.m,errors:t.i}},p.onManifestUpdated=function(e){this.i&&this.i.onManifestUpdated(e)},p.onDashTimedMetadata=function(e){this.h&&"urn:google:dai:2018"==e.schemeIdUri&&this.h.g.processMetadata(e.schemeIdUri,e.eventNode?e.eventNode.attributes.messageData:null,e.startTime)},p.onHlsTimedMetadata=function(e,t){this.h&&this.h.g.processMetadata("ID3",e.data,t)},p.onCueMetadataChange=function(e){this.h&&this.h.onCueMetadataChange(e)},p.onHLSInterstitialMetadata=function(e,t,n){var i,r,a,o,s;this.l&&this.l.disableHLSInterstitial||(this.g||this.initInterstitial(null,e,t),this.g&&(i=this.g,r=n,F(function(e){if(1==e.g){var t,n,u,l,c,d,h,p,f,g,m,v,y,b,T,w,S,A,E,x,k,I,C,P,O,_,U,q,j,B,V,G,H,z,K,W;if(a=null,(o=r.values.find(function(e){return"ID"==e.key}))&&(a=o.data),a){if(i.aa.has(a))return e.return();i.aa.add(a)}return dy(i),s=[],r&&r.values.find(function(e){return"X-OVERLAY-ID"==e.key})?(s=function(e){var t=[];if(!e)return t;var n=e.values.find(function(e){return"X-ASSET-URI"==e.key});if(!n||!(n=n.data))return t;var i=null,r=e.values.find(function(e){return"X-OVERLAY-ID"==e.key});r&&(i=r.data),r=null==i?Math.floor(10*e.startTime)/10:e.startTime;var a=e.endTime;e.endTime&&e.endTime!=1/0&&"number"==typeof e.endTime&&(a=null==i?Math.floor(10*e.endTime)/10:e.endTime);var o=!1,s=!1,u=!1,l=e.values.find(function(e){return"CUE"==e.key});l&&(o=(u=l.data).includes("ONCE"),s=u.includes("PRE"),u=u.includes("POST")),l=null;var c=e.values.find(function(e){return"X-ASSET-MIMETYPE"==e.key});c&&(l=c.data),c=!1;var d=e.values.find(function(e){return"X-LOOP"==e.key});d&&(c="YES"==d.data),d=1;var h=e.values.find(function(e){return"X-DEPTH"==e.key});h&&isNaN(d=parseFloat(h.data))&&(d=1),h=null;var p=e.values.find(function(e){return"X-BACKGROUND"==e.key});p&&(h=p.data),p=1920;var f=1080,g=e.values.find(function(e){return"X-VIEWPORT"==e.key});if(g){if(2!=(f=g.data.split("x")).length)return t;p=parseFloat(f[0]),f=parseFloat(f[1])}if(p={viewport:{x:p,y:f},topLeft:{x:0,y:0},size:{x:p,y:f}},f=e.values.find(function(e){return"X-OVERLAY-POSITION"==e.key})){if(2!=(f=f.data.split("x")).length)return t;p.topLeft.x=parseFloat(f[0]),p.topLeft.y=parseFloat(f[1])}if(f=e.values.find(function(e){return"X-OVERLAY-SIZE"==e.key})){if(2!=(f=f.data.split("x")).length)return t;p.size.x=parseFloat(f[0]),p.size.y=parseFloat(f[1])}if(f=null,(g=e.values.find(function(e){return"X-SQUEEZECURRENT"==e.key}))&&(isNaN(f=parseFloat(g.data))&&(f=1),f={viewport:{x:1920,y:1080},topLeft:{x:0,y:0},size:{x:1920*f,y:1080*f}},e=e.values.find(function(e){return"X-SQUEEZECURRENT-POSITION"==e.key}))){if(2!=(e=e.data.split("x")).length)return t;f.topLeft.x=parseFloat(e[0]),f.topLeft.y=parseFloat(e[1])}return t.push({id:i,groupId:null,startTime:r,endTime:a,uri:n,mimeType:l,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:null,playoutLimit:null,once:o,pre:s,post:u,timelineRange:!0,loop:c,overlay:p,displayOnBackground:-1==d,currentVideo:f,background:h,clickThroughUrl:null}),t}(r),e.B(2)):M(e,(t=i,n=r,F(function(e){switch(e.g){case 1:if(u=[],!n||(l=n.values.find(function(e){return"X-ASSET-URI"==e.key}),c=n.values.find(function(e){return"X-ASSET-LIST"==e.key}),!l&&!c))return e.return(u);if(d=null,(h=n.values.find(function(e){return"ID"==e.key}))&&(d=h.data),p=null==d?Math.floor(10*n.startTime)/10:n.startTime,(f=n.endTime)&&n.endTime!=1/0&&"number"==typeof n.endTime&&(f=null==d?Math.floor(10*n.endTime)/10:n.endTime),g=n.values.find(function(e){return"X-RESTRICT"==e.key}),v=m=!0,g&&g.data&&(m=!(y=g.data).includes("SKIP"),v=!y.includes("JUMP")),b=m?0:null,(T=n.values.find(function(e){return"X-ENABLE-SKIP-AFTER"==e.key}))&&isNaN(b=parseFloat(T.data))&&(b=m?0:null),w=null,(S=n.values.find(function(e){return"X-ENABLE-SKIP-FOR"==e.key}))&&(w=parseFloat(S.data),isNaN(b)&&(w=null)),A=null,(E=n.values.find(function(e){return"X-RESUME-OFFSET"==e.key}))&&isNaN(A=parseFloat(E.data))&&(A=null),x=null,(k=n.values.find(function(e){return"X-PLAYOUT-LIMIT"==e.key}))&&isNaN(x=parseFloat(k.data))&&(x=null),P=C=I=!1,(O=n.values.find(function(e){return"CUE"==e.key}))&&(I=(_=O.data).includes("ONCE"),C=_.includes("PRE"),P=_.includes("POST")),U=!1,(q=n.values.find(function(e){return"X-TIMELINE-OCCUPIES"==e.key}))?U=q.data.includes("RANGE"):!E&&t.D.U()&&(U=!C&&!P),l){if(!(j=l.data))return e.return(u);
1u.push({id:d,groupId:null,startTime:p,endTime:f,uri:j,mimeType:null,isSkippable:m,skipOffset:b,skipFor:w,canJump:v,resumeOffset:A,playoutLimit:x,once:I,pre:C,post:P,timelineRange:U,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null,clickThroughUrl:null}),e.B(2);break}if(!c){e.B(2);break}if(!(B=c.data))return e.return(u);return R(e,4),M(e,db(t,B,{type:11}),6);case 6:for((G=(V=JSON.parse(ez(e.h)))["SKIP-CONTROL"])&&("number"==typeof(H=G["ENABLE-SKIP-AFTER"])&&(b=parseFloat(H),isNaN(H)&&(b=m?0:null)),"number"==typeof(z=G["ENABLE-SKIP-FOR"])&&(w=parseFloat(z),isNaN(z)&&(w=null))),K=0;K<V.ASSETS.length;K++)(W=V.ASSETS[K]).URI&&u.push({id:d+"_shaka_asset_"+K,groupId:d,startTime:p,endTime:f,uri:W.URI,mimeType:null,isSkippable:m,skipOffset:b,skipFor:w,canJump:v,resumeOffset:A,playoutLimit:x,once:I,pre:C,post:P,timelineRange:U,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null,clickThroughUrl:null});D(e,2);break;case 4:N(e);case 2:return e.return(u)}})),3)}2!=e.g&&(s=e.h),s.length?dh(i,s):ea("Unsupported HLS interstitial",r),L(e)})))},p.onDASHInterstitialMetadata=function(e,t,n){if(!this.l||!this.l.disableDASHInterstitial){var i=n.schemeIdUri;if("urn:mpeg:dash:event:alternativeMPD:insert:2025"==i||"urn:mpeg:dash:event:alternativeMPD:replace:2025"==i){if(this.g||this.initInterstitial(null,e,t),this.g&&(e=this.g,t="urn:mpeg:dash:event:alternativeMPD:replace:2025"==n.schemeIdUri,i="urn:mpeg:dash:event:alternativeMPD:insert:2025"==n.schemeIdUri,t||i)){for(var r,a=n.startTime,o=n.endTime,s=null,u=0,l=E(n.eventNode.children),c=l.next();!c.done;c=l.next())if("AlternativeMPD"==(c=c.value).tagName){if(c=c.attributes.uri){r=c;break}}else if("InsertPresentation"==c.tagName||"ReplacePresentation"==c.tagName){var d=c.attributes.url;if(d){r=eJ(d),(l=nh(c,"maxDuration",nb))&&(s=l/n.timescale),(l=nh(c,"returnOffset",nb))&&(u=l/n.timescale),t&&u&&(o=a+u);break}}r&&dh(e,[{id:n.id,groupId:null,startTime:a,endTime:o,uri:r,mimeType:null,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:i?u:null,playoutLimit:s,once:!1,pre:!1,post:!1,timelineRange:t&&!i,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null,clickThroughUrl:null}])}}else("urn:mpeg:dash:event:2012"==i||"urn:scte:dash:scte214-events"==i)&&n.eventNode&&nc(n.eventNode,"OverlayEvent")&&(this.g||this.initInterstitial(null,e,t),this.g&&function(e,t){var n=nc(t.eventNode,"OverlayEvent"),i=n.attributes.uri,r=n.attributes.mimeType,a="true"==n.attributes.loop,o=nh(n,"z",nb);if(i&&0!=o){var s=null,u=nc(n,"Background");if(u){var l=u.attributes.uri;s=l?"center / contain no-repeat url('"+l+"')":nu(u)}u=1920,l=1080;var c=nc(n,"Viewport");if(c&&(null==(u=nh(c,"x",nb))||null==(l=nh(c,"y",nb))))return;var d={viewport:{x:u,y:l},topLeft:{x:0,y:0},size:{x:u,y:l}},h=nc(n,"Overlay");if(c&&h){var p=nc(h,"TopLeft"),f=nc(h,"Size");if(p&&f){if(null==(h=nh(p,"x",nb))||null==(p=nh(p,"y",nb)))return;var g=nh(f,"x",nb);if(null==g||null==(f=nh(f,"y",nb)))return;d.topLeft.x=h,d.topLeft.y=p,d.size.x=g,d.size.y=f}}if(h=null,n=nc(n,"Squeeze"),c&&n&&(f=nc(n,"TopLeft"),n=nc(n,"Size"),f&&n)){if(null==(c=nh(f,"x",nb))||null==(h=nh(f,"y",nb))||null==(f=nh(n,"x",nb))||null==(n=nh(n,"y",nb)))return;h={viewport:{x:u,y:l},topLeft:{x:c,y:h},size:{x:f,y:n}}}dh(e,[{id:t.id,groupId:null,startTime:t.startTime,endTime:t.endTime,uri:i,mimeType:r,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:null,playoutLimit:null,once:!1,pre:!1,post:!1,timelineRange:!0,loop:a,overlay:d,displayOnBackground:-1==o,currentVideo:h,background:s,clickThroughUrl:null}])}}(this.g,n))}},p.addCustomInterstitial=function(e){if(!this.g)throw new eU(1,10,10006);dh(this.g,[e])},p.addAdUrlInterstitial=function(e){if(!this.g)throw new eU(1,10,10006);return this.g.addAdUrlInterstitial(e)},p.getInterstitialPlayer=function(){if(!this.g)throw new eU(1,10,10006);return this.g.Yb()},$("shaka.ads.AdManager",dO),dO.prototype.getInterstitialPlayer=dO.prototype.getInterstitialPlayer,dO.prototype.addAdUrlInterstitial=dO.prototype.addAdUrlInterstitial,dO.prototype.addCustomInterstitial=dO.prototype.addCustomInterstitial,dO.prototype.onDASHInterstitialMetadata=dO.prototype.onDASHInterstitialMetadata,dO.prototype.onHLSInterstitialMetadata=dO.prototype.onHLSInterstitialMetadata,dO.prototype.onCueMetadataChange=dO.prototype.onCueMetadataChange,dO.prototype.onHlsTimedMetadata=dO.prototype.onHlsTimedMetadata,dO.prototype.onDashTimedMetadata=dO.prototype.onDashTimedMetadata,dO.prototype.onManifestUpdated=dO.prototype.onManifestUpdated,dO.prototype.getStats=dO.prototype.getStats,dO.prototype.getCuePoints=dO.prototype.getCuePoints,dO.prototype.getServerSideCuePoints=dO.prototype.getServerSideCuePoints,dO.prototype.replaceServerSideAdTagParameters=dO.prototype.replaceServerSideAdTagParameters,dO.prototype.requestServerSideStream=dO.prototype.requestServerSideStream,dO.prototype.initServerSide=dO.prototype.initServerSide,dO.prototype.addMediaTailorTrackingUrl=dO.prototype.addMediaTailorTrackingUrl,dO.prototype.requestMediaTailorStream=dO.prototype.requestMediaTailorStream,dO.prototype.initMediaTailor=dO.prototype.initMediaTailor,dO.prototype.updateClientSideAdsRenderingSettings=dO.prototype.updateClientSideAdsRenderingSettings,dO.prototype.requestClientSideAds=dO.prototype.requestClientSideAds,dO.prototype.onAssetUnload=dO.prototype.onAssetUnload,dO.prototype.release=dO.prototype.release,dO.prototype.initClientSide=dO.prototype.initClientSide,dO.prototype.initInterstitial=dO.prototype.initInterstitial,dO.prototype.configure=dO.prototype.configure,dO.prototype.setLocale=dO.prototype.setLocale,dO.ADS_LOADED="ads-loaded",dO.AD_STARTED="ad-started",dO.AD_FIRST_QUARTILE="ad-first-quartile",dO.AD_MIDPOINT="ad-midpoint",dO.AD_THIRD_QUARTILE="ad-third-quartile",dO.AD_COMPLETE="ad-complete",dO.AD_STOPPED="ad-stopped",dO.AD_SKIPPED="ad-skipped",dO.AD_VOLUME_CHANGED="ad-volume-changed",dO.AD_MUTED="ad-muted",dO.AD_PAUSED="ad-paused",dO.AD_RESUMED="ad-resumed",dO.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",dO.CUEPOINTS_CHANGED="ad-cue-points-changed",dO.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",dO.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded",dO.AD_CLICKED="ad-clicked",dO.AD_PROGRESS="ad-progress",dO.AD_BUFFERING="ad-buffering",dO.AD_IMPRESSION="ad-impression",dO.AD_DURATION_CHANGED="ad-duration-changed",dO.AD_CLOSED="ad-closed",dO.AD_LOADED="ad-loaded",dO.ALL_ADS_COMPLETED="all-ads-completed",dO.AD_LINEAR_CHANGED="ad-linear-changed",dO.AD_METADATA="ad-metadata",dO.AD_RECOVERABLE_ERROR="ad-recoverable-error",dO.AD_ERROR="ad-error",dO.AD_BREAK_READY="ad-break-ready",dO.AD_INTERACTION="ad-interaction",dO.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested",dO.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested",dO.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested",c8=function(){return new dO};var dj="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),dB="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),dF=["loop","playbackRate"],dV=["pause","play"],dG=(new Map).set("getAssetUri",2).set("getAudioLanguages",4).set("getAudioLanguagesAndRoles",4).set("getBufferFullness",1).set("getBufferedInfo",2).set("getExpiration",2).set("getKeyStatuses",2).set("getPlaybackRate",2).set("getTextLanguages",4).set("getTextLanguagesAndRoles",4).set("isAudioOnly",10).set("isBuffering",1).set("isInProgress",1).set("isLive",10).set("isTextTrackVisible",1).set("isVideoOnly",10).set("keySystem",10).set("seekRange",1).set("getLoadMode",10).set("getManifestType",10).set("isFullyLoaded",1).set("isEnded",1).set("getBandwidthEstimate",1).set("isRemotePlayback",1),dH=(new Map).set("getConfiguration",4).set("getConfigurationForLowLatency",4).set("get
1Stats",5).set("getAudioTracks",2).set("getChaptersTracks",2).set("getImageTracks",2).set("getVideoTracks",2).set("getTextTracks",2).set("getVariantTracks",2),dz=(new Map).set("getPlayheadTimeAsDate",1).set("getPresentationStartTimeAsDate",20).set("getSegmentAvailabilityDuration",20),dK=[["getConfiguration","configure","getConfigurationForLowLatency","configurationForLowLatency"]],dW=[["isTextTrackVisible","setTextTrackVisibility"]],dX="cancelTrickPlay configure configurationForLowLatency getChapters resetConfiguration retryStreaming selectAudioLanguage selectAudioTrack selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel selectVideoTrack setTextTrackVisibility trickPlay updateStartTime goToLive useTrickPlayTrackIfAvailable".split(" "),dY="addChaptersTrack addTextTrackAsync addThumbnailsTrack getAllThumbnails getChaptersAsync getThumbnails attach attachCanvas detach load unload".split(" ");function dZ(e,t,n,i,r,a,o){var s=this;this.H=e,this.K=o,this.l=new iA(t),this.L=n,this.A=!1,this.C=i,this.G=r,this.M=a,this.i=this.m=!1,this.J="",this.u=null,this.D=function(){return d0(s)},this.F=function(e,t){switch((e=dq(t)).type){case"event":var n=e.targetName,i=et(e.event);s.C(n,i);break;case"update":for(i in n=e.update)for(var r in e=s.g[i]||{},n[i])e[r]=n[i][r];s.A&&(s.L(),s.A=!1);break;case"asyncComplete":if(r=e.id,i=e.error,t=e.res,e=s.h.get(r),s.h.delete(r),e)if(i){for(n in r=new eU(i.severity,i.category,i.code),i)r[n]=i[n];e.reject(r)}else e.resolve(t)}},this.g={video:{},player:{}},this.I=0,this.h=new Map,this.j=null,d6.add(this)}function dJ(e,t){var n=e.M();d4=t,t.addUpdateListener(e.D),t.addMessageListener("urn:x-cast:com.google.shaka.v2",e.F),d0(e),d2(e,{type:"init",initState:n,appData:e.u}),e.j.resolve()}function dQ(e,t){var n=8003;switch(t.code){case"cancel":n=8004;break;case"timeout":n=8005;break;case"receiver_unavailable":n=8006}e.j.reject(new eU(2,8,n,t))}function d$(e){var t=d4;t.removeUpdateListener(e.D),t.removeMessageListener("urn:x-cast:com.google.shaka.v2",e.F)}function d0(e){var t=!!d4&&"connected"==d4.status;if(e.i&&!t){for(var n in e.G(),e.g)e.g[n]={};d1(e)}e.i=t,e.J=t?d4.receiver.friendlyName:"",e.l.Ka()}function d1(e){if(e.h)for(var t=E(e.h.keys()),n=t.next();!n.done;n=t.next()){n=n.value;var i=e.h.get(n);e.h.delete(n),i.reject(new eU(1,7,7e3))}}function d2(e,t){t=dU(t);var n=d4;try{n.sendMessage("urn:x-cast:com.google.shaka.v2",t,function(){},es)}catch(i){throw t=new eU(2,8,8005,i),n=new ee("error",(new Map).set("detail",t)),e.C("player",n),e.Id(),t}}(p=dZ.prototype).destroy=function(){return d6.delete(this),d1(this),d4&&d$(this),this.l&&(this.l.stop(),this.l=null),this.G=this.C=null,this.i=this.m=!1,this.F=this.D=this.j=this.h=this.g=this.u=null,Promise.resolve()},p.Pa=function(){return this.i},p.ag=function(){return this.J},p.init=function(){if(this.H.length)if(e.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0,this.l.Ka();var t=new chrome.cast.SessionRequest(this.H,[],null,this.K,null);t=new chrome.cast.ApiConfig(t,function(e){for(var t=E(d6),n=t.next();!n.done;n=t.next())(n=n.value).j=new ra,n.A=!0,dJ(n,e)},function(e){for(var t=E(d6),n=t.next();!n.done;n=t.next())n=n.value,d3="available"==e,n.l.Ka()},"origin_scoped"),chrome.cast.initialize(t,function(){},function(){}),d3&&this.l.Y(d5),(t=d4)&&t.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new ra,this.A=!0,dJ(this,t)):d4=null}else e.__onGCastApiAvailable!==d7&&(d8=e.__onGCastApiAvailable||null,e.__onGCastApiAvailable=d7)},p.ei=function(e){this.u=e,this.i&&d2(this,{type:"appData",appData:this.u})},p.cast=function(){var e=this;return F(function(t){if(!e.m)throw new eU(1,8,8e3);if(!d3)throw new eU(1,8,8001);if(e.i)throw new eU(1,8,8002);return e.j=new ra,chrome.cast.requestSession(function(t){return dJ(e,t)},function(t){return dQ(e,t)}),M(t,e.j,0)})},p.Id=function(){if(this.i){if(d1(this),d4){d$(this);try{d4.stop(function(){},function(){})}catch(e){}d4=null}d0(this)}},p.get=function(e,t){var n=this;if("video"==e){if(dV.includes(t))return function(){return n.Cj.apply(n,[e,t].concat(x(V.apply(0,arguments))))}}else if("player"==e){if(dz.has(t)&&!this.get("player","isLive")())return function(){};if(dX.includes(t))return function(){return n.Cj.apply(n,[e,t].concat(x(V.apply(0,arguments))))};if(dY.includes(t))return function(){return n.dm.apply(n,[e,t].concat(x(V.apply(0,arguments))))};if(dG.has(t)||dH.has(t))return function(){return n.g[e][t]}}return this.g[e][t]},p.set=function(e,t,n){this.g[e][t]=n,d2(this,{type:"set",targetName:e,property:t,value:n})},p.Cj=function(e,t){d2(this,{type:"call",targetName:e,methodName:t,args:V.apply(2,arguments)})},p.dm=function(e,t){var n=V.apply(2,arguments),i=new ra,r=this.I.toString();this.I++,this.h.set(r,i);try{d2(this,{type:"asyncCall",targetName:e,methodName:t,args:n,id:r})}catch(e){i.reject(e)}return i};var d5=.02,d3=!1,d4=null,d8=null,d6=new Set;function d7(t){if(d8?e.__onGCastApiAvailable=d8:delete e.__onGCastApiAvailable,d8=null,t)for(var n=E(d6),i=n.next();!i.done;
1i=n.next())i.value.init();"function"==typeof e.__onGCastApiAvailable&&e.__onGCastApiAvailable(t)}function d9(t,n,i,r){r=void 0!==r&&r,ec.call(this);var a=this;this.i=t,this.h=n,this.l=this.u=this.m=this.A=this.j=null,this.I=i,this.H=r,this.F=[],this.D=[],this.C=[],this.G=new Map,this.g=null,e.chrome&&"CAST"!=eB().Oa()?(this.g=new dZ(i,function(){return hn(a)},function(){return hi(a)},function(e,t){return ha(a,e,t)},function(){return hr(a)},function(){return ht(a)},r),function(e){e.g.init(),e.l=new tI;for(var t,n,i=E(dj),r=i.next();!r.done;r=i.next())e.l.o(e.i,r.value,function(t){e.g.Pa()||(t=et(t),e.m.dispatchEvent(t))});for(var a in en)e.l.o(e.h,en[a],function(t){e.g.Pa()||e.u.dispatchEvent(t)});for(var o in e.j={},i={},e.i)(i={ze:i.ze}).ze=o,Object.defineProperty(e.j,i.ze,{configurable:!1,enumerable:!0,get:function(t){return function(){return function(e,t){if("addEventListener"==t)return function(t,n,i){return e.m.addEventListener(t,n,i)};if("removeEventListener"==t)return function(t,n,i){return e.m.removeEventListener(t,n,i)};if(e.g.Pa()&&0==Object.keys(e.g.g.video).length){var n=e.i[t];if("function"!=typeof n)return n}return e.g.Pa()?e.g.get("video",t):("function"==typeof(t=e.i[t])&&(t=t.bind(e.i)),t)}(e,t.ze)}}(i),set:function(t){return function(n){var i=t.ze;e.g.Pa()?e.g.set("video",i,n):e.i[i]=n}}(i)});e.A={},he(e,function(t){Object.defineProperty(e.A,t,{configurable:!1,enumerable:!0,get:function(){return function e(t,n,i){if(i=void 0!==i&&i,t.G.has(n)&&(n=t.G.get(n)),"addEventListener"==n)return function(e,n,i){return t.u.addEventListener(e,n,i)};if("removeEventListener"==n)return function(e,n,i){return t.u.removeEventListener(e,n,i)};if("getMediaElement"==n)return function(){return t.j};if("getSharedConfiguration"==n)return t.g.get("player","getConfiguration");if("getNetworkingEngine"==n)return function(){return t.h.Xb()};if("getDrmEngine"==n)return function(){return t.h.F};if("getAdManager"==n)return function(){return t.h.vf()};if("getQueueManager"==n)return function(){return t.h.yf()};if("setVideoContainer"==n)return function(e){return t.h.mi(e)};if(!i){if("addThumbnailsTrack"==n)return function(){var i=V.apply(0,arguments);return t.F.push(i),e(t,n,!0).apply(null,x(i))};if("addTextTrackAsync"==n)return function(){var i=V.apply(0,arguments);return t.D.push(i),e(t,n,!0).apply(null,x(i))};if("addChaptersTrack"==n)return function(){var i=V.apply(0,arguments);return t.C.push(i),e(t,n,!0).apply(null,x(i))}}if(t.g.Pa()){if("getManifest"==n||"drmInfo"==n)return function(){return ea(n+"() does not work while casting!"),null};if("attach"==n||"detach"==n)return function(){return ea(n+"() does not work while casting!"),Promise.resolve()};if("getChapters"==n)return function(){return ea(n+"() does not work while casting!"),[]}}return t.g.Pa()&&0==Object.keys(t.g.g.video).length&&(dG.has(n)||dH.has(n))||!t.g.Pa()?t.h[n].bind(t.h):t.g.get("player",n)}(e,t)}})}),t=e,n=new Map,he(t,function(e,i){n.has(i)?(i=n.get(i),e.length<i.length?t.G.set(e,i):t.G.set(i,e)):n.set(i,e)}),e.m=new ec,e.m.$e=e.j,e.u=new ec,e.u.$e=e.A,e.l.o(e.h,"unloading",function(){e.g&&e.g.Pa()||ho(e)})}(this)):(this.j=this.i,this.A=this.h)}function he(e,t){function n(e){return"constructor"!=e&&"function"==typeof r[e]&&!a.has(e)}var i,r=e.h,a=new Set;for(i in r)n(i)&&(a.add(i),t(i,r[i]));for(e=Object.getPrototypeOf(r),i=Object.getPrototypeOf({});e&&e!=i;){for(var o=E(Object.getOwnPropertyNames(e)),s=o.next();!s.done;s=o.next())n(s=s.value)&&(a.add(s),t(s,r[s]));e=Object.getPrototypeOf(e)}}function ht(e){var t={video:{},player:{},playerAfterLoad:{},manifest:e.h.jd(),startTime:null,addThumbnailsTrackCalls:e.F,addTextTrackAsyncCalls:e.D,addChaptersTrackCalls:e.C};e.i.pause();for(var n=E(dF),i=n.next();!i.done;i=n.next())i=i.value,t.video[i]=e.i[i];for(e.i.ended||(t.startTime=e.i.currentTime),i=(n=E(dK)).next();!i.done;i=n.next()){var r=i.value;i=r[1],r=e.h[r[0]](),t.player[i]=r}for(i=(n=E(dW)).next();!i.done;i=n.next())i=(r=i.value)[1],r=e.h[r[0]](),t.playerAfterLoad[i]=r;return t}function hn(e){var t=new ee("caststatuschanged");e.dispatchEvent(t)}function hi(e){var t=new ee(e.j.paused?"pause":"play");e.m.dispatchEvent(t)}function hr(e){for(var t,n=E(dK),i=n.next();!i.done;i=n.next()){var r=i.value;i=r[1],r=e.g.get("player",r[0])(),e.h[i](r)}var a=e.F,o=e.D,s=e.C;ho(e);var u=e.g.get("player","getAssetUri")();r=e.g.get("video","ended"),n=Promise.resolve();var l=e.i.autoplay;i=null,r||(i=e.g.get("video","currentTime")),(r=e.g.get("player","getTextTracks")())&&r.length&&(t=r.find(function(e){return e.active}));var c=e.g.get("player","isTextTrackVisible")();u&&(e.i.autoplay=!1,n=e.h.load(u,i));var d={};for(r=(i=E(dF)).next();!r.done;r=i.next())d[r=r.value]=e.g.get("video",r);n.then(function(){if(e.i){for(var n,i,r,h=E(a),p=h.next();!p.done;p=h.next())p=p.value,(n=e.Yb()).hf.apply(n,x(p));for(n=(h=E(o)).next();!n.done;n=h.next())n=n.value,(i=e.Yb()).je.apply(i,x(n));for(h=(i=E(s)).next();!h.done;h=i.next())h=h.value,(r=e.Yb()).gf.apply(r,x(h));for(i=(r=E(dF)).next();!i.done;i=r.next())i=i.value,e.i[i]=d[i];for(i=(r=E(dW)).next();!i.done;i=r.next())i=(h=i.value)[1],h=e.g.get("player",h[0])(),e.h[i](h);e.h.$d(c),t&&e.h.di(t.language,t.roles,t.forced),e.i.autoplay=l,u&&e.
1i.play()}},function(t){t=new ee("error",t=(new Map).set("detail",t)),e.h.dispatchEvent(t)})}function ha(e,t,n){e.g.Pa()&&("video"==t?e.m.dispatchEvent(n):"player"==t&&("unloading"==n.type&&ho(e),e.u.dispatchEvent(n)))}function ho(e){e.F=[],e.D=[],e.C=[]}function hs(e,t,n,i){ec.call(this);var r=this;this.h=e,this.g=t,this.j=new tI,this.I={video:e,player:t},this.G=n||function(){},this.J=i||function(e){return e},this.i=null,this.H=!1,this.u=!0,this.m=0,this.D=!1,this.C=!0,this.A=this.l=null,this.F=new iA(function(){hd(r)}),function(e){var t=cast.receiver.CastReceiverManager.getInstance();t.onSenderConnected=function(){return hu(e)},t.onSenderDisconnected=function(){return hu(e)},t.onSystemVolumeChanged=function(){var t=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();t&&hg(e,{type:"update",update:{video:{volume:t.level,muted:t.muted}}},e.l),hg(e,{type:"event",targetName:"video",event:{type:"volumechange"}},e.l)},e.A=t.getCastMessageBus("urn:x-cast:com.google.cast.media"),e.A.onMessage=function(t){var n=e,i=t,r=dq(i.data);switch(r.type){case"PLAY":n.h.play(),hm(n);break;case"PAUSE":n.h.pause(),hm(n);break;case"SEEK":i=r.currentTime;var a=r.resumeState;null!=i&&(n.h.currentTime=Number(i)),a&&"PLAYBACK_START"==a?(n.h.play(),hm(n)):a&&"PLAYBACK_PAUSE"==a&&(n.h.pause(),hm(n));break;case"STOP":n.g.vc().then(function(){n.g&&hm(n)});break;case"GET_STATUS":hp(n,Number(r.requestId));break;case"VOLUME":i=(a=r.volume).level,a=a.muted;var o=n.h.volume,s=n.h.muted;null!=i&&(n.h.volume=Number(i)),null!=a&&(n.h.muted=a),o==n.h.volume&&s==n.h.muted||hm(n);break;case"LOAD":n.m=0,n.D=!1,n.C=!1,i=r.media,a=r.currentTime,o=n.J(i.contentId),s=r.auto
1play||!0,n.G(i.customData),s&&(n.h.autoplay=!0),n.g.load(o,a).then(function(){n.g&&hp(n)}).catch(function(e){var t="LOAD_FAILED";7==e.category&&7e3==e.code&&(t="LOAD_CANCELLED"),hg(n,{requestId:Number(r.requestId),type:t},n.A)});break;default:hg(n,{requestId:Number(r.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},n.A)}},e.l=t.getCastMessageBus("urn:x-cast:com.google.shaka.v2"),e.l.onMessage=function(t){return function(e,t){var n,i,r,a,o,s,u,l,c,d,h,p,f,g,m,v,y,b,T,w,S,A=dq(t.data);switch(A.type){case"init":e.m=0,e.D=!1,e.C=!0,n=e,i=A.initState,r=A.appData,F(function(e){switch(e.g){case 1:for(a in i.player)o=i.player[a],n.g[a](o);return n.G(r),s=n.h.autoplay,i.manifest?(n.h.autoplay=!1,R(e,5),M(e,n.g.load(i.manifest,i.startTime),7)):M(e,Promise.resolve(),3);case 7:if(i.addThumbnailsTrackCalls)for(l=(u=E(i.addThumbnailsTrackCalls)).next();!l.done;l=u.next())c=l.value,n.g.hf.apply(n.g,x(c));if(i.addTextTrackAsyncCalls)for(h=(d=E(i.addTextTrackAsyncCalls)).next();!h.done;h=d.next())p=h.value,n.g.je.apply(n.g,x(p));if(i.addChaptersTrackCalls)for(g=(f=E(i.addChaptersTrackCalls)).next();!g.done;g=f.next())m=g.value,n.g.gf.apply(n.g,x(m));D(e,3);break;case 5:return v=N(e),y=new ee("error",(new Map).set("detail",v)),n.g&&n.g.dispatchEvent(y),e.return();case 3:if(!n.g)return e.return();for(b in i.video)T=i.video[b],n.h[b]=T;for(w in i.playerAfterLoad)S=i.playerAfterLoad[w],n.g[w](S);n.h.autoplay=s,i.manifest&&(n.h.play(),hm(n)),L(e)}}),hd(e);break;case"appData":e.G(A.appData);break;case"set":var k=A.targetName,I=A.property;if(A=A.value,"video"==k){if(t=cast.receiver.CastReceiverManager.getInstance(),"volume"==I){t.setSystemVolumeLevel(A);break}else if("muted"==I){t.setSystemVolumeMuted(A);break}}e.I[k][I]=A;break;case"call":(k=e.I[A.targetName])[A.methodName].apply(k,A.args);break;case"asyncCall":k=A.targetName,I=A.methodName,"player"==k&&"load"==I&&(e.m=0,e.D=!1);var C=A.id,P=t.senderId;A=(t=e.I[k])[I].apply(t,A.args),"player"==k&&"load"==I&&(A=A.then(function(){e.C=!0})),A.then(function(t){return hf(e,P,C,null,t)},function(t){return hf(e,P,C,t,null)})}}(e,t)},t.start(),t=E(dj);for(var n=t.next();!n.done;n=t.next())e.j.o(e.h,n.value,function(t){return hc(e,"video",t)});for(var i in en)e.j.o(e.g,en[i],function(t){return hc(e,"player",t)});e.j.o(e.h,"loadeddata",function(){e.D=!0}),e.j.o(e.g,"loading",function(){e.u=!1,hl(e)}),e.j.o(e.h,"playing",function(){e.u=!1,hl(e)}),e.j.o(e.h,"pause",function(){hl(e)}),e.j.o(e.g,"unloading",function(){e.u=!0,hl(e)}),e.j.o(e.h,"ended",function(){new iA(function(){e.h&&e.h.ended&&(e.u=!0,hl(e))}).Y(hy)})}(this)}function hu(e){e.m=0,e.C=!0,e.H=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length,hl(e)}function hl(e){var t;F(function(n){return 1==n.g?M(n,Promise.resolve(),2):e.g?void(t=new ee("caststatuschanged"),e.dispatchEvent(t),hh(e)||hm(e),L(n)):n.return()})}function hc(e,t,n){e.g&&(hd(e),hg(e,{type:"event",targetName:t,event:n},e.l))}function hd(e){e.F.Y(hv);for(var t={video:{},player:{}},n=E(dB),i=n.next();!i.done;i=n.next())i=i.value,t.video[i]=e.h[i];e.g.U()&&dz.forEach(function(n,i){e.m%n==0&&(t.player[i]=e.g[i]())}),dG.forEach(function(n,i){e.m%n==0&&(t.player[i]=e.g[i]())}),(n=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())&&(t.video.volume=n.level,t.video.muted=n.muted),hg(e,{type:"update",update:t},e.l),dH.forEach(function(t,n){e.m%t==0&&((t={player:{}}).player[n]=e.g[n](),hg(e,{type:"update",update:t},e.l))}),e.D&&(e.m+=1),hh(e)}function hh(e){return!!(e.C&&(e.h.duration||e.g.U()))&&(hp(e),e.C=!1,!0)}function hp(e,t){var n={contentId:e.g.jd(),streamType:e.g.U()?"LIVE":"BUFFERED",contentType:""};e.g.U()||(n.duration=e.h.duration),e.i&&(n.metadata=e.i),hm(e,void 0===t?0:t,n)}function hf(e,t,n,i,r){e.g&&hg(e,{type:"asyncComplete",id:n,error:i,res:r},e.l,t)}function hg(e,t,n,i){e.H&&(e=dU(t),i?n.getCastChannel(i).send(e):n.broadcast(e))}function hm(e,t,n){n=void 0===n?null:n;var i={mediaSessionId:0,playbackRate:e.h.playbackRate,playerState:e.u?hb:e.g.Ff()?hw:e.h.paused?hS:hT,currentTime:e.h.currentTime,supportedMediaCommands:63,volume:{level:e.h.volume,muted:e.h.muted}};n&&(i.media=n),hg(e,{requestId:void 0===t?0:t,type:"MEDIA_STATUS",status:[i]},e.A)}S(d9,ec),(p=d9.prototype).destroy=function(e){return this.g&&(void 0===e?0:e)&&this.g.Id(),this.l&&(this.l.release(),this.l=null),e=[],this.h&&(e.push(this.h.destroy()),this.h=null),this.g&&(e.push(this.g.destroy()),this.g=null),this.A=this.j=this.i=null,ec.prototype.release.call(this),Promise.all(e)},p.Wc=function(){return this.j},p.Yb=function(){return this.A},p.Og=function(){return!!this.g&&this.g.m&&d3},p.Pa=function(){return!!this.g&&this.g.Pa()},p.ag=function(){return this.g?this.g.ag():""},p.cast=function(){var e=this;return F(function(t){return 1==t.g?e.g?M(t,e.g.cast(),2):t.return():e.h?M(t,e.h.vc(),0):t.return()})},p.ei=function(e){this.g&&this.g.ei(e)},p.Yj=function(){var e;this.g&&(e=this.g).i&&chrome.cast.requestSession(function(t){return dJ(e,t)},function(t){return dQ(e,t)})},p.Id=function(){this.g&&this.g.Id()},p.Pi=function(e,t){t=void 0!==t&&t;var n=this;return F(function(i){if(1==i.g)return e==n.I&&t==n.H?i.return():(n.I=e,n.H=t,n.g)?(n.g.Id(),M(i,n.g.destroy(),2)):i.return();n.g=null,n.g=new dZ(e,function(){return hn(n)},function(){return hi(n)},function(e,t){return ha(n,e,t)},function(){return hr(n)},function(){return ht(n)},t),n.g.init(),L(i)})},$("shaka.cast.CastProxy",d9),d9.prototype.changeReceiverId=d9.prototype.Pi,d9.prototype.forceDisconnect=d9.prototype.Id,d9.prototype.suggestDisconnect=d9.prototype.Yj,d9.prototype.setAppData=d9.prototype.ei,d9.prototype.cast=d9.prototype.cast,d9.prototype.receiverName=d9.prototype.ag,d9.prototype.isCasting=d9.prototype.Pa,d9.prototype.canCast=d9.prototype.Og,d9.prototype.getPlayer=d9.prototype.Yb,d9.prototype.getVideo=d9.prototype.Wc,d9.prototype.destroy=d9.prototype.destroy,S(hs,ec),(p=hs.prototype).isConnected=function(){return this.H},p.Dl=function(){return this.u},p.rm=function(e){this.i=e},p.wk=function(){this.i=null},p.sm=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.title=e},p.qm=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.images=[{url:e}]},p.pm=function(e){this.i||(this.i={}),this.i.artist=e,this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK},p.destroy=function(){var e,t=this;return F(function(n){if(1==n.g)return t.j&&(t.j.release(),t.j=null),e=[],t.g&&(e.push(t.g.destroy()),t.g=null),t.F&&(t.F.stop(),t.F=null),t.h=null,t.I=null,t.G=null,t.H=!1,t.u=!0,t.l=null,t.A=null,ec.prototype.release.call(t),M(n,Promise.all(e),2);cast.receiver.CastReceiverManager.getInstance().stop(),L(n)})},$("shaka.cast.CastReceiver",hs),hs.prototype.destroy=hs.prototype.destroy,hs.prototype.setContentArtist=hs.prototype.pm,hs.prototype.setContentImage=hs.prototype.qm,hs.prototype.setContentTitle=hs.prototype.sm,hs.prototype.clearContentMetadata=hs.prototype.wk,hs.prototype.setContentMetadata=hs.prototype.rm,hs.prototype.isIdle=hs.prototype.Dl,hs.prototype.isConnected=hs.prototype.isConnected;var hv=.5,hy=5,hb="IDLE",hT="PLAYING",hw="BUFFERING",hS="PAUSED";function hA(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;s>=0;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=hE(i,r,s,u,l,c);a<=o;a++){for(var h=n[a],p=-1,f=-1,g=0;g<h.length;g++)if(null!=h[g]&&""!==h[g].g.trim()){p=g;break}for(g=h.length-1;g>=0;g--)if(null!=h[g]&&""!==h[g].g.trim()){f=g;break}if(-1===p||-1===f)h=hx(i,r),e.nestedCues.push(h);else{for(;p<=f;p++)if(g=h[p]){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=hE(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=hx(i,r),e.nestedCues.push(d)),d=hE(i,r,s,u,l,c)}}return e.nestedCues.length?{cue:e,stream:t}:null}function hE(e,t,n,i,r,a){return e=new nP(e,t,""),n&&e.textDecoration.push(n1),i&&(e.fontStyle=n$),e.color=r,e.backgroundColor=a,e}function hx(e,t){return(e=new nP(e,t,"")).lineBreak=!0,e}function hk(e,t,n,i,r){this.g=e,this.l=t,this.i=n,this.h=i,this.j=r}function hI(e,t){this.i=[],this.g=1,this.h=0,this.F=e,this.D=t,this.j=this.m=!1,this.l="white",this.u="black",this.A=this.C=null,hM(this)}function hC(e,t,n){var i="CC"+((e.F<<1|e.D)+1),r=new nP(t,n,"");r.lineInterpretation=1;var a=hU.get(e.g);return a&&(r.line=a),null!=e.A&&null!=e.C&&(r.position=10+Math.min(70,10*e.A)+2.5*e.C),(t=hA(r,i,e.i,t,n))&&e.g+t.cue.nestedCues.length-3>15&&(a=hU.get(e.g+3-t.cue.nestedCues.length))&&(r.line=a),t}function hM(e){hP(e,0,15),e.g=1}function hL(e,t,n){if(!(n<32||n>127)){var i="";switch(t){case 0:i=hD.has(n)?hD.get(n):String.fromCharCode(n);break;case 1:i=hN.get(n);break;case 2:e.i[e.g].pop(),i=hO.get(n);break;case 3:e.i[e.g].pop(),i=h_.get(n)}i&&e.i[e.g].push(new hk(i,e.m,e.j,e.u,e.l))}}function hR(e,t,n,i){if(!(n<0||t<0))if(t>=n)for(--i;i>=0;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 hP(e,t,n){for(var i=0;i<=n;i++)e.i[t+i]=[]}var hD=new Map([[39,"’"],[42,"\xe1"],[92,"\xe9"],[92,"\xe9"],[94,"\xed"],[95,"\xf3"],[96,"\xfa"],[123,"\xe7"],[124,"\xf7"],[125,"\xd1"],[126,"\xf1"],[127,"█"]]),hN=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"]]),hO=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"]]),h_=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,"┘"]]),hU=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 hq(e,t){this.h=0,this.u=new hI(e,t),this.i=new hI(e,t),this.g=this.j=new hI(e,t),this.l=0,this.m=null}
1function hj(e,t,n){e.g=e.i;var i=e.g,r=null;return 3!==e.h&&4!==e.h&&(r=hC(i,e.l,n),(n=e.i).g=n.h>0?n.h:0,hP(n,0,15),(n=e.j).g=n.h>0?n.h:0,hP(n,0,15),i.g=15),e.h=3,i.h=t,r}function hB(e){e.h=1,e.g=e.j,e.g.h=0}function hF(e){eo("Cea608DataChannel","CEA-608 text mode entered, but is unsupported"),e.g=e.u,e.h=4}var hV="black green blue cyan red yellow magenta black".split(" "),hG="white green blue cyan red yellow magenta white_italics".split(" ");function hH(e,t){this.J=t,this.M=e,this.K=this.l=!1,this.m=this.u=this.H=this.L=this.I=0,this.G=2,this.i=[],this.g=this.h=this.j=0,this.F=this.C=!1,this.D="white",this.A="black",hz(this)}function hz(e){e.i=[];for(var t=0;t<16;t++)e.i.push(hK())}function hK(){for(var e=[],t=0;t<42;t++)e.push(null);return e}function hW(e,t){hX(e)&&(e.i[e.h][e.g]=new hk(t,e.F,e.C,e.A,e.D),e.g++)}function hX(e){var t=e.g<e.m&&e.g>=0;return e.h<e.u&&e.h>=0&&t}function hY(e,t,n){var i=new nP(e.j,t,"");i.textAlign=0===e.G?"left":1===e.G?"right":nj;var r=i.region;switch(e.J&&(r.id+="svc"+e.J),r.id+="win"+e.M,r.height=e.u,r.width=e.m,r.heightUnits=2,r.widthUnits=2,r.viewportAnchorX=e.I,r.viewportAnchorY=e.L,r.viewportAnchorUnits=e.K?tQ:2,e.H){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=hA(i,"svc"+n,e.i,e.j,t))&&(e.j=t),n}function hZ(){this.i=[],this.h=null,this.g=0}function hJ(e){this.g=0,this.h=e}function hQ(e){if(!e.Qa())throw new eU(2,2,3e3);return e.h[e.g++]}function h$(e){this.i=e,this.h=[null,null,null,null,null,null,null,null],this.g=null}function h0(e,t){for(var n=[],i=0;i<8;i++)(1&t)==1&&e.h[i]&&n.push(i),t>>=1;return n}function h1(e,t,n){var i=[];t=E(h0(e,t));for(var r=t.next();!r.done;r=t.next()){r=r.value;var a=e.h[r];a.isVisible()&&(a=hY(a,n,e.i))&&i.push(a),e.h[r]=null}return i}function h2(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function h5(e,t,n){var i={0:0,1:0,2:1,3:1};return e=i[e],t=i[t],h4[e<<2|t<<1|(n=i[n])]}hH.prototype.isVisible=function(){return this.l},hH.prototype.display=function(){this.l=!0},hJ.prototype.Qa=function(){return this.g<this.h.length},hJ.prototype.Wa=function(){return this.g},hJ.prototype.skip=function(e){if(this.g+e>this.h.length)throw new eU(2,2,3e3);this.g+=e},hJ.prototype.Gj=function(e){if(this.g-e<0)throw new eU(2,2,3e3);this.g-=e};var h3=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,"┌"]]),h4="black blue green cyan red magenta yellow white".split(" ");function h8(){this.h=[],this.g=[],this.i=new hZ,this.l=0,this.m=new Map([["CC1",new hq(0,0)],["CC2",new hq(0,1)],["CC3",new hq(1,0)],["CC4",new hq(1,1)]]),this.A=this.u=0,this.j=new Map,this.D=!0,this.C=new Set,h6(this)}function h6(e){e.u=0,e.A=0;for(var t=E(e.m.values()),n=t.next();!n.done;n=t.next())(n=n.value).h=0,n.g=n.j,n.m=null,hM(n.i),hM(n.j),hM(n.u);e.D=!0}function h7(e){for(var t=0;e;)t^=1&e,e>>=1;return 1===t}function h9(e){for(var t=[],n=e,i=e=0;i<n.length;)2==e&&3==n[i]?(e=0,(n=[].concat(x(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}function pe(){this.j=new Map,this.i=this.h=0,this.g=pt}h8.prototype.clear=function(){this.l=0,this.h=[],this.g=[];var e=this.i;e.i=[],e.h=[],e.g=0,h6(this),e=E(this.j.values());for(var t=e.next();!t.done;t=e.next())h2(t.value)},h8.prototype.extract=function(e,t){if(this.D){for(var n=E(this.m.values()),i=n.next();!i.done;i=n.next())i.value.l=t;this.D=!1}if(!(8>(e=new rC(e,0)).getLength())&&181===e.ba()&&49===e.Ia()&&0x47413934===e.$()&&3===e.ba()&&(64&(n=e.ba()))!=0)for(n&=31,e.skip(1),i=0;i<n;i++){var r=e.ba(),a=(4&r)>>2,o=e.ba(),s=e.ba();a&&(0==(r&=3)||1===r?this.h.push({pts:t,type:r,Ib:o,xc: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})))}},h8.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=E(this.h),a=r.next();!a.done;a=r.next())(a=function(e,t){var n=t.type;if((112&t.Ib)==16){var i=t.Ib>>3&1;0===n?e.u=i:e.A=i}if(i="CC"+((n<<1|(n?e.A:e.u))+1),n=e.m.get(i),255===t.Ib&&255===t.xc||!t.Ib&&!t.xc||!h7(t.Ib)||!h7(t.xc))return++e.l>=45&&h6(e),null;e.l=0,t.Ib&=127,t.xc&=127;var r=t.Ib;if(r>=1&&r<=15||!t.Ib&&!t.xc)return null;
1if(r=null,(112&t.Ib)==16)e:{if(e.C.add(i),i=t.Ib,e=t.xc,n.m===(i<<8|e))n.m=null;else if(n.m=i<<8|e,(240&i)==16&&(192&e)==64){t=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(7&i)<<1|e>>5&1],i="white",r=!1;var a=null,o=e>95?e-96:e-64;o<=13?i=hG[Math.floor(o/2)]:o<=15?r=!0:a=Math.floor((o-16)/2),e=(1&e)==1,4!==n.h&&(o=n.g,3===n.h&&t!==o.g&&(n=1+t-o.h,hR(o,n,1+o.g-o.h,o.h),hP(o,0,n-1),hP(o,t+1,15-t)),o.g=t,o.m=e,o.j=r,o.l=i,o.A=a,o.u="black")}else if((247&i)==17&&(240&e)==32)n.g.m=!1,n.g.j=!1,n.g.l="white",hL(n.g,0,32),i=!1,"white_italics"===(t=hG[(14&e)>>1])&&(t="white",i=!0),n.g.m=(1&e)==1,n.g.j=i,n.g.l=t;else if((247&i)==16&&(240&e)==32||(247&i)==23&&(255&e)==45)t="black",(7&i)==0&&(t=hV[(14&e)>>1]),n.g.u=t;else if((247&i)==17&&(240&e)==48)hL(n.g,1,e);else if((246&i)==18&&(224&e)==32)hL(n.g,1&i?3:2,e);else{if((246&i)==20&&(240&e)==32){switch(e=t.pts,i=null,t.xc){case 32:hB(n);break;case 33:(n=n.g).i[n.g].pop();break;case 37:i=hj(n,2,e);break;case 38:i=hj(n,3,e);break;case 39:i=hj(n,4,e);break;case 40:hL(n.g,0,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.l=e;break;case 42:hM(n.u),hF(n);break;case 43:hF(n);break;case 44:t=n.i,i=null,4!==n.h&&(i=hC(t,n.l,e)),hP(t,0,15);break;case 45:t=n.g,3!==n.h?i=null:(i=hC(t,n.l,e),r=t.g-t.h+1,hR(t,r-1,r,t.h),hP(t,0,r-1),hP(t,t.g,15-t.g),n.l=e);break;case 46:hP(n.j,0,15);break;case 47:t=null,4!==n.h&&(t=hC(n.i,n.l,e)),i=n.j,n.j=n.i,n.i=i,hB(n),n.l=e,i=t}r=i;break e}(23==i||31==i)&&e>=33&&e<=35&&(n.g.C=e-32)}r=null}else e=t.xc,hL(n.g,0,t.Ib),hL(n.g,0,e);return r}(this,a.value))&&i.push(a);for(a=(r=E(this.g)).next();!a.done;a=r.next())t=this.i,3===(n=a.value).type?(t.g=(63&n.value)*2-1,t.h=[]):t.h&&(t.g>0&&(t.h.push(n),t.g--),0===t.g&&(t.i.push(new hJ(t.h)),t.h=null,t.g=0));for(a=(r=E(this.i.i)).next();!a.done;a=r.next())a=function(e,t){var n=[];try{for(;t.Qa();){var i=hQ(t).value,r=(224&i)>>5,a=31&i;if(7===r&&0!=a&&(r=63&hQ(t).value),0!=r){e.C.add("svc"+r),e.j.has(r)||e.j.set(r,new h$(r));for(var o=e.j.get(r),s=t.Wa();t.Wa()-s<a;){r=o;var u=t,l=hQ(u),c=l.value,d=l.pts;if(16===c){var h=hQ(u);c=c<<16|h.value}if(c>=0&&c<=31)var p=function(e,t,n,i){if(!e.g)return[];if(24==n)return n=[n=hQ(t).value,i=hQ(t).value].map(function(e){return("0"+(255&e).toString(16)).slice(-2)}).join(""),hW(e.g,String.fromCharCode(parseInt(n,16))),[];t=e.g;var r=null;switch(n){case 8:!hX(t)||t.g<=0&&t.h<=0||(t.g<=0?(t.g=t.m-1,t.h--):t.g--,t.i[t.h][t.g]=null);break;case 13:t.isVisible()&&(r=hY(t,i,e.i)),t.h+1>=t.u?function(e){for(var t=0,n=1;n<16;n++,t++)e.i[t]=e.i[n];for(n=0;n<1;n++,t++)e.i[t]=hK()}(t):t.h++,t.g=0;break;case 14:t.isVisible()&&(r=hY(t,i,e.i)),t.i[t.h]=hK(),t.g=0;break;case 12:t.isVisible()&&(r=hY(t,i,e.i)),hz(t),t.h=0,t.g=0}return r?[r]:[]}(r,u,c,d);else if(c>=128&&c<=159)p=function(e,t,n,i){if(n>=128&&n<=135)i=7&n,e.h[i]&&(e.g=e.h[i]);else{if(136===n){n=hQ(t).value,t=[],n=E(h0(e,n));for(var r=n.next();!r.done;r=n.next()){if((r=e.h[r.value]).isVisible()){var a=hY(r,i,e.i);a&&t.push(a)}hz(r)}return t}if(137===n)for(n=(t=E(h0(e,t=hQ(t).value))).next();!n.done;n=t.next())(n=e.h[n.value]).isVisible()||(n.j=i),n.display();else{if(138===n){for(n=hQ(t).value,t=null,r=(n=E(h0(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()&&(t=hY(r,i,e.i)),r.l=!1;return t?[t]:[]}if(139===n){for(n=hQ(t).value,t=null,r=(n=E(h0(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()?t=hY(r,i,e.i):r.j=i,r.l=!r.l;return t?[t]:[]}if(140===n)return h1(e,t=hQ(t).value,i);if(143===n)return i=h1(e,255,i),h2(e),i;if(144===n)t.skip(1),i=hQ(t).value,e.g&&(e.g.C=(128&i)>0,e.g.F=(64&i)>0);
1else if(145===n)i=hQ(t).value,n=hQ(t).value,t.skip(1),e.g&&(t=h5((48&n)>>4,(12&n)>>2,3&n),e.g.D=h5((48&i)>>4,(12&i)>>2,3&i),e.g.A=t);else if(146===n)i=hQ(t).value,t=hQ(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=hQ(t).value,t.skip(1),e.g&&(e.g.G=3&i);else if(n>=152&&n<=159){n=(15&n)-8,(r=null!==e.h[n])||((a=new hH(n,e.i)).j=i,e.h[n]=a),i=hQ(t).value,a=hQ(t).value;var o=hQ(t).value,s=hQ(t).value,u=hQ(t).value;t=hQ(t).value,r&&(7&t)==0||((t=e.h[n]).h=0,t.g=0,t.F=!1,t.C=!1,t.D="white",t.A="black"),(t=e.h[n]).l=(32&i)>0,t.L=127&a,t.I=o,t.H=(240&s)>>4,t.K=(128&a)>0,t.u=(15&s)+1,t.m=(63&u)+1,e.g=e.h[n]}}}return[]}(r,u,c,d);else{if(c>=4096&&c<=4127)r=u,(u=255&c)>=8&&u<=15?r.skip(1):u>=16&&u<=23?r.skip(2):u>=24&&u<=31&&r.skip(3);else if(c>=4224&&c<=4255)r=u,(u=255&c)>=128&&u<=135?r.skip(4):u>=136&&u<=143&&r.skip(5);else if(c>=32&&c<=127)u=c,r.g&&(127===u?hW(r.g,"♪"):hW(r.g,String.fromCharCode(u)));else if(c>=160&&c<=255)r.g&&hW(r.g,String.fromCharCode(c));else if(c>=4128&&c<=4223){if(u=255&c,r.g)if(h3.has(u)){var f=h3.get(u);hW(r.g,f)}else hW(r.g,"_")}else c>=4256&&c<=4351&&r.g&&((255&c)!=160?hW(r.g,"_"):hW(r.g,"[CC]"));p=[]}n.push.apply(n,x(p))}}}}catch(e){if(e instanceof eU&&3e3===e.code)eo("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw e}return n}(this,a.value),i.push.apply(i,x(a));return this.i.i=[],this.h=[],this.g=[],i},h8.prototype.getStreams=function(){return Array.from(this.C)},$("shaka.cea.CeaDecoder",h8),tZ=function(){return new h8},pe.prototype.init=function(e){function t(e){e=e.name,pa.has(e)&&(n.g=pa.get(e))}var n=this,i=[],r=[];if((new rR).box("moov",rP).box("mvex",rP).X("trex",function(e){var t=e.reader;t.skip(4),t.skip(4),e=t.$(),t=t.$(),n.h=e,n.i=t}).box("trak",rP).X("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.$();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.Ia(),t.Ia(),t.Ia(),t.Ia(),i.push(n)}).box("mdia",rP).X("mdhd",function(e){e=av(e.reader,e.version),r.push(e.timescale)}).box("minf",rP).box("stbl",rP).X("stsd",rD).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",rN).box("sinf",rP).box("frma",function(e){e=aT(e.reader).codec,pa.has(e)&&(n.g=pa.get(e))}).parse(e,!0,!0),!i.length||!r.length||i.length!=r.length)throw new eU(2,2,2010);this.g==pt&&ea("Unable to determine bitstream format for CEA parsing!"),i.forEach(function(e,t){n.j.set(e,r[t])})},pe.prototype.parse=function(e){var t=this;if(this.g==pt)return[];var n=[],i=0,r=[];return(new rR).box("moof",function(e){i=e.start,r=[],rP(e)}).box("traf",function(e){r.push({baseMediaDecodeTime:null,oe:t.h,pe:t.i,yj:[],timescale:9e4}),rP(e)}).X("trun",function(e){var t=r[r.length-1];e=ay(e.reader,e.version,e.flags),t.yj.push(e)}).X("tfhd",function(e){var n=r[r.length-1];n.oe=(e=ag(e.reader,e.flags)).oe||t.h,n.pe=e.pe||t.i,e=e.trackId,t.j.has(e)&&(n.timescale=t.j.get(e))}).X("tfdt",function(e){var t=r[r.length-1];t.baseMediaDecodeTime=(e=am(e.reader,e.version)).baseMediaDecodeTime}).box("mdat",function(e){for(var a=i-e.start-8,o=e.reader.Wa(),s=E(r),u=s.next();!u.done;u=s.next())null===(u=u.value).baseMediaDecodeTime?ea("Unable to find base media decode time for CEA captions!"):(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.bi});for((d=[].concat.apply([],x(d))).length&&(c=d[0].sampleSize||a),t.skip(o+s[0].Xg);t.Qa();){o=t.$();var h=t.ba(),p=null;switch(p=!1,s=1,e.g){case pn:p=6==(p=31&h);break;case pi:s=2,t.skip(1),p=39==(p=h>>1&63)||40==p;break;case pr:s=2,t.skip(1),p=23==(p=h>>1&63)||24==p;break;default:return}if(p)for(h=0,l<d.length&&(h=d[l].gg||0),h=(n+h)/i,p=(s=E(h9(s=t.cc(o-s,!1)))).next();!p.done;p=s.next())u.push({packet:p.value,pts:h});else try{t.skip(o-s)}catch(e){break}0==(c-=o+4)&&(n=l<d.length?n+(d[l].ci||r):n+r,c=++l<d.length&&d[l].sampleSize||a)}}(t,e.reader,u.baseMediaDecodeTime,u.timescale,u.oe,u.pe,a,u.yj,n))}).parse(e,!1,!0),n},$("shaka.cea.Mp4CeaParser",pe);var pt=0,pn=1,pi=2,pr=3,pa=(new Map).set("avc1",pn).set("avc3",pn).set("dvav",pn).set("dva1",pn).set("hev1",pi).set("hvc1",pi).set("dvh1",pi).set("dvhe",pi).set("vvc1",pr).set("vvi1",pr).set("dvc1",pr).set("dvi1",pr);function po(){this.g=null}function ps(e){return(e=(function(e){var t=0,n=eO(e),i=n.getUint32(t,!0);if(i!=e.byteLength)return[];e:{for(e=t+4+2,t=[];e<n.byteLength-1;){i=n.getUint16(e,!0),e+=2;var r=n.getUint16(e,!0);if(e+=2,(1&r)!=0||r+e>n.byteLength){n=[];break e}var a=eD(n,e,r);t.push({type:i,value:a}),e+=r}n=t}return n})(e=e2(ns(e))).filter(function(e){return e.type===pl})[0])&&(e=nn(e=eK(e.value,!0),"WRMHEADER"))?e:null}function pu(e){try{var t=ps(e);if(t)e:{for(var n=E(nl(t,"DATA")),i=n.next();!i.done;i=n.next()){var r=i.value;if(r.children)for(var a=E(r.children),o=a.next();!o.done;o=a.next()){var s=o.value;if("LA_URL"==s.tagName){var u=ns(s);break e}}}u=""}else u="";return u}catch(e){return""}}tW("video/mp4",function(){return new pe}),po.prototype.init=function(){},po.prototype.parse=function(e){this.g?this.g.clearData():this.g=new oE;var t=[];if(!oC(e=eD(e)))return t;var n=(e=this.g.parse(e)).qe(),i=e.Bf();switch(e=[],n.video){case"avc":e.push(6);break;case"hvc":e.push(39),e.push(40)}if(!e.length)return t;for(i=(n=E(i)).next();!i.done;i=n.next())if(i=i.value,e.includes(i.type)&&null!=i.time)for(var r=E(h9(i.data)),a=r.next();!a.done;a=r.next())t.push({packet:a.value,pts:i.time});return t},$("shaka.cea.TsCeaParser",po),tW("video/mp2t",function(){return new po});var pl=1;function pc(){this.g=new Map}function pd(t,n,i,r){var a=function(e,t){var n=[];t=E(t);for(var i=t.next();!i.done;i=t.next())(i=function(e,t){var n=t.attributes.schemeIdUri,i=np(t,"urn:mpeg:cenc:2013","default_KID"),r=nf(t,"urn:mpeg:cenc:2013","pssh").map(nu),a=t.attributes.value;if(!n)return null;if(n=n.toLowerCase(),i&&(i=i.replace(/-/g,"").toLowerCase()).includes(" "))throw new eU(2,4,4009);var o=[];try{o=r.map(function(t){if(!e.g.has(t)){var n=e2(t);e.g.set(t,n)}return{initDataType:"cenc",initData:e.g.get(t),keyId:null}})}catch(e){throw new eU(2,4,4007)}return{node:t,Xd:n,keyId:i,init:o.length>0?o:null,encryptionScheme:a}}(e,i.value))&&n.push(i);return n}(t,n),o=null;t=[];var s=[];n=null;var u=new Set(a.map(function(e){return e.keyId}));u.delete(null);var l="cenc";if(u.size>1)throw new eU(2,4,4010);if(!i){if((s=a.filter(function(e){return"urn:mpeg:dash:sea:2012"==e.Xd})).length>1)throw new eU(2,4,4050);s.length&&(n=function(t){if(!e.crypto||!e.crypto.subtle)throw ea("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new eU(2,4,4042);var n=nd(t.node,"urn:mpeg:dash:schema:sea:2012","SegmentEncryption");if(!n||"urn:mpeg:dash:sea:aes128-cbc:2013"!=n.attributes.schemeIdUri||!(n=nd(t.node,"urn:mpeg:dash:schema:sea:2012","CryptoPeriod"))||(t=n.attributes.IV,n=eJ(n.attributes.keyUriTemplate),!t||!n))throw new eU(2,4,4051);if(16!=(t=e5(t.substr(2))).byteLength)throw new eU(2,4,4048);return{Jl:n,iv:t}}(s[0])),(s=a.find(function(e){return"urn:mpeg:dash:mp4protection:2011"==e.Xd}))&&s.encryptionScheme&&(l=s.encryptionScheme),(s=a.filter(function(e){return"urn:mpeg:dash:mp4protection:2011"==e.Xd?(o=e.init||o,!1):"urn:mpeg:dash:sea:2012"!=e.Xd})).length&&0==(t=function(e,t,n,i,r){var a=[];n=E(n);for(var o=n.next();!o.done;o=n.next()){var s,u=i[(o=o.value).Xd];if(u){if((s=nd(o.node,"urn:microsoft:playready","pro"))&&ns(s)){s=e2(s=ns(s));var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);
1s=[{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.Xd)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=e6(u,t,o.init||e||s||l),(u=pp.get(u))&&(s.licenseServerUri=u(o)),(o=nd(o.node,"https://dashif.org/CPS","Certurl"))&&(o=ns(o))||(o=""),s.serverCertificateUri=o,a.push(s)}}return a}(o,l,s,r,u)).length&&(t=[e6("",l,o)])}if(a.length&&!n&&(i||!s.length))for(t=[],r=(i=E(Object.values(r))).next();!r.done;r=i.next())"org.w3.clearkey"!=(r=r.value)&&t.push(e6(r,l,o));if(u=Array.from(u)[0]||null)for(i=(l=E(t)).next();!i.done;i=l.next())for(r=(i=E(i.value.initData)).next();!r.done;r=i.next())r.value.keyId=u;return{Ti:u,Pn:o,drmInfos:t,Lg:n,Yi:!0}}function ph(e){var t=nd(e.node,"https://dashif.org/CPS","Laurl");if(t&&(t=ns(t)))return t;if((t=nd(e.node,"urn:microsoft:playready","pro"))&&ns(t))return pu(t);if((e=nd(e.node,"urn:mpeg:cenc:2013","pssh"))&&(e=ns(e))){t=e2(e),e=8;var n=(t=eO(t)).getUint8(e);return e+=20,n>0&&(e+=4+16*t.getUint32(e)),pu(e=nn("<pro>"+(e=e0(e=eD(t,e+4)))+"</pro>"))}return""}pc.prototype.release=function(){this.g.clear()};var pp=(new Map).set("com.apple.fps",function(t){if("apple"===e.shakaMediaKeysPolyfill)throw new eU(2,4,4054);return(t=nd(t.node,"https://dashif.org/CPS","Laurl"))&&(t=ns(t))?t:""}).set("com.widevine.alpha",function(e){var t=nd(e.node,"https://dashif.org/CPS","Laurl");return t&&(t=ns(t))?t:(e=nd(e.node,"urn:microsoft","laurl"))&&eJ(e.attributes.licenseUrl)||""}).set("com.microsoft.playready",ph).set("com.microsoft.playready.recommendation",ph).set("com.microsoft.playready.software",ph).set("com.microsoft.playready.hardware",ph).set("org.w3.clearkey",function(e){var t=nd(e.node,"https://dashif.org/CPS","Laurl");return t&&(t=ns(t))?t:(e=nd(e.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===e.attributes.Lic_type&&e&&(e=ns(e))?e:""});function pf(t,n,i,r,a,o){var s=(new Map).set("RepresentationID",n).set("Number",i).set("SubNumber",r).set("Bandwidth",a).set("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.get(n);if(null==a)return t;switch("RepresentationID"==n&&i&&(i=void 0),"Time"==n&&"bigint"!=typeof a&&(Math.abs(a-Math.round(a))>=.2&&ea("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 pg(e,t){var n=pv(e,t,"timescale"),i=1;n&&(i=nT(n)||1);var r=(n=nT((n=pv(e,t,"duration"))||""))?n/i:null,a=pv(e,t,"startNumber"),o=Number(pv(e,t,"presentationTimeOffset"))||0,s=nw(a||"");if((null==a||null==s)&&(s=1),a=null,t=py(e,t,"SegmentTimeline")){t=no(t,"S"),a=i,e=e.ra.duration||1/0;for(var u=s,l=[],c=-o,d=0;d<t.length;++d){var h=t[d],p=t[d+1],f=nh(h,"t",nw),g=nh(h,"d",nw),m=nh(h,"r",nb);if(h=nh(h,"k",nb)||0,null!=f&&(f-=o),g){if(f=null!=f?f:c,(m=m||0)<0)if(p){if(null==(p=nh(p,"t",nw))||f>=p)break;m=Math.ceil((p-f)/g)-1}else{if(e==1/0||f/a>=e)break;m=Math.ceil((e*a-f)/g)-1}for(l.length>0&&f!=c&&(l[l.length-1].end=f/a),p=0;p<=m;++p)c=f+g,l.push({start:f/a,end:c/a,Bi:f,Hc:h,nm:l.length+u}),f=c}}a=l}return{timescale:i,ug:n,pb:r,Me:s,Qb:o/i||0,xd:o,timeline:a}}function pm(e,t){return[t(e.N),t(e.va),t(e.Aa)].filter(ik)}function pv(e,t,n){t=pm(e,t),e=null,t=E(t);for(var i=t.next();!i.done&&!(e=i.value.attributes[n]);i=t.next());return e}function py(e,t,n){t=pm(e,t),e=null,t=E(t);for(var i=t.next();!i.done&&!(e=nc(i.value,n));i=t.next());return e}function pb(e,t,n,i,r,a){if(a=void 0===a?0:a,np(e,"http://www.w3.org/1999/xlink","href")){var o=function(e,t,n,i,r,a){for(var o=np(e,"http://www.w3.org/1999/xlink","href"),s=np(e,"http://www.w3.org/1999/xlink","actuate")||"onRequest",u=E(Object.keys(e.attributes)),l=u.next();!l.done;l=u.next()){var c=(l=l.value).split(":"),d=ni("http://www.w3.org/1999/xlink");c[0]==d&&delete e.attributes[l]}if(a>=5)return rs(new eU(2,4,4028));if("onLoad"!=s)return rs(new eU(2,4,4027));
1var h=e8([i],[o]);return r.request(0,rv(h,t)).cb(function(i){if(!(i=nt(i.data,e.tagName)))return rs(new eU(2,4,4001,o));for(e.children=[];i.children.length;){var s=i.children.shift();e.children.push(s)}s=E(Object.keys(i.attributes));for(var u=s.next();!u.done;u=s.next())u=u.value,e.attributes[u]=i.attributes[u];return pb(e,t,n,h[0],r,a+1)})}(e,t,n,i,r,a);return n&&(o=o.cb(void 0,function(){return pb(e,t,n,i,r,a)})),o}o=[];for(var s=E(na(e)),u=s.next(),l={};!u.done;l={ke:void 0},u=s.next())l.ke=u.value,"urn:mpeg:dash:resolve-to-zero:2013"==np(l.ke,"http://www.w3.org/1999/xlink","href")?e.children=e.children.filter(function(e){return function(t){return t!==e.ke}}(l)):"SegmentTimeline"!=l.ke.tagName&&o.push(pb(l.ke,t,n,i,r,a));return rd(o).cb(function(){return e})}function pT(e){this.h=eO(e),this.g=new rC(this.h,0)}function pw(e){var t=pS(e);if(t.length>7)throw new eU(2,3,3002);var n=0;t=E(t);for(var i=t.next();!i.done;i=t.next())n=256*n+i.value;t=pS(e);e:{i=E(pA);for(var r=i.next();!r.done;r=i.next())if(eR(t,new Uint8Array(r.value))){i=!0;break e}i=!1}if(i)t=e.h.byteLength-e.g.Wa();else{if(8==t.length&&224&t[1])throw new eU(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.Wa()+t<=e.h.byteLength?t:e.h.byteLength-e.g.Wa(),i=eO(e.h,e.g.Wa(),t),e.g.skip(t),new pE(n,i)}function pS(e){var t=e.g.Wa(),n=e.g.ba();if(0==n)throw new eU(2,3,3002);return n=8-Math.floor(Math.log2(n)),e.g.skip(n-1),eD(e.h,t,n)}pT.prototype.Qa=function(){return this.g.Qa()};var pA=[[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 pE(e,t){this.id=e,this.g=t}function px(e){if(e.g.byteLength>8)throw new eU(2,3,3002);if(8==e.g.byteLength&&224&e.g.getUint8(0))throw new eU(2,3,3001);for(var t=0,n=0;n<e.g.byteLength;n++)t=256*t+e.g.getUint8(n);return t}function pk(e,t,n){if(!(t=py(e,t,"Initialization")))return null;var i=e.N.mb(),r=t.attributes.sourceURL;r&&(i=e8(i,[eJ(r)],e.Sb())),r=0;var a=null;return(t=nh(t,"range",ny))&&(r=t.start,a=t.end),(n=new aX(function(){return i},r,a,pR(e),null,null,n,e.va.encrypted)).codecs=e.N.codecs,n.mimeType=e.N.mimeType,e.ra&&!e.ra.Gf&&(n.g=e.ra.start+e.ra.duration),n}function pI(e,t,n,i,r,a,o){var s,u,l,c,d,h,p,f,g,m,v,y,b,T,w,S,A,x;return F(function(k){if(1==k.g)return s=e.presentationTimeline,u=!e.Kb||!e.ra.Gf,l=e.ra.start,c=e.ra.duration,d=e.N.mimeType.split("/")[1],p=null,f=[(h=t)(i,r,a,!1),"webm"==d?h(n.S(),n.startByte,n.endByte,!0):null],h=null,M(k,Promise.all(f),2);if(m=(g=k.h)[0],v=g[1]||null,y=null,b=l-o,T=l,w=c?l+c:1/0,"mp4"==d)var I=function(e,t,n,i,r,a,o){var s,u=(new rR).X("sidx",function(e){s=function(e,t,n,i,r,a,o){var s=[];o.reader.skip(4);var u=o.reader.$();if(0==u)throw new eU(2,3,3005);if(0==o.version)var l=o.reader.$(),c=o.reader.$();else l=o.reader.Ud(),c=o.reader.Ud();o.reader.skip(2);var d=o.reader.Ia();for(e=e+o.size+c,c=0;c<d;c++){var h=o.reader.$(),p=(0x80000000&h)>>>31;h&=0x7fffffff;var f=o.reader.$();if(o.reader.skip(4),1==p)throw new eU(2,3,3006);s.push(new aZ(l/u+n,(l+f)/u+n,function(){return a},e,e+h-1,t,n,i,r)),l+=f,e+=h}return o.parser.stop(),s}(t,i,r,a,o,n,e)});if(e&&u.parse(e),s)return s;throw new eU(2,3,3004)}(m,r,i,n,b,T,w);else{I=m;var C=new pT(v);if(0x1a45dfa3!=pw(C).id)throw new eU(2,3,3008);var L=pw(C);if(0x18538067!=L.id)throw new eU(2,3,3009);C=L.g.byteOffset,L=new pT(L.g);for(var R=null;L.Qa();){var P=pw(L);if(0x1549a966==P.id){R=P;break}}if(!R)throw new eU(2,3,3010);for(R=new pT(R.g),P=1e6,L=null;R.Qa();){var D=pw(R);if(2807729==D.id)P=px(D);else if(17545==D.id)if(4==D.g.byteLength)L=D.g.getFloat32(0);else if(8==D.g.byteLength)L=D.g.getFloat64(0);else throw new eU(2,3,3003)}if(null==L)throw new eU(2,3,3011);if(L*=R=P/1e9,0x1c53bb6b!=(I=pw(new pT(I))).id)throw new eU(2,3,3007);I=function(e,t,n,i,r,a,o,s,u){function l(){return r}var c=[];e=new pT(e.g);for(var d=null,h=null;e.Qa();){var p=pw(e);if(187==p.id){var f=function(e){var t=new pT(e.g);if(179!=(e=pw(t)).id)throw new eU(2,3,3013);if(e=px(e),183!=(t=pw(t)).id)throw new eU(2,3,3012);t=new pT(t.g);for(var n=0;t.Qa();){var i=pw(t);
1if(241==i.id){n=px(i);break}}return{Bm:e,am:n}}(p);f&&(p=n*f.Bm,f=t+f.am,null!=d&&c.push(new aZ(d+o,p+o,l,h,f-1,a,o,s,u)),d=p,h=f)}}return null!=d&&c.push(new aZ(d+o,i+o,l,h,null,a,o,s,u)),c}(I,C,R,L,i,n,b,T,w)}for(A=(S=E(y=I)).next();!A.done;A=S.next())(x=A.value).codecs=e.N.codecs,x.mimeType=e.N.mimeType,x.bandwidth=e.bandwidth;return s.Ee(y),p=new sw(y),u&&p.Hd(T,w,!0),k.return(p)})}function pC(e){return e.Yd}function pM(e){var t=py(e,pC,"RepresentationIndex");return e=ny((e=pv(e,pC,"indexRange"))||""),t&&(e=nh(t,"range",ny,e)),e}function pL(e,t){var n=e.N.mimeType.split("/")[1];if(e.N.contentType!=tn&&"mp4"!=n&&"webm"!=n)throw new eU(2,4,4006);if("webm"==n&&!t)throw new eU(2,4,4005)}function pR(e){var t=e.N;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.Uf,pixelAspectRatio:t.pixelAspectRatio||null,width:t.width||null,label:e.va.label||null,roles:e.roles||null,language:e.va.language||null}}function pP(e){return e.Lc}function pD(t,n,i,r,a,o,s,u,l,c){l||t.N.Df||(t.N.Df=pv(t,pN,"initialization"));var d,h,p,f,g,m,v=t.N.Df?function(e,t){var n=e.N.Df;if(n||(n=pv(e,pN,"initialization")),!n)return null;n=eJ(n);var i=e.N.originalId,r=e.bandwidth||null,a=e.N.mb,o=e.Sb;return(t=new aX(function(){var e=pf(n,i,null,null,r,null);return e8(a(),[e],o())},0,null,pR(e),null,null,t,e.va.encrypted)).codecs=e.N.codecs,t.mimeType=e.N.mimeType,e.ra&&!e.ra.Gf&&(t.g=e.ra.start+e.ra.duration),t}(t,s):null,y=(h=pg(d=t,pN),p=pv(d,pN,"media"),f=pv(d,pN,"index"),g=pv(d,pN,"k"),m=0,g&&(m=parseInt(g,10)),{ug:h.ug,pb:h.pb,timescale:h.timescale,Me:h.Me,Qb:h.Qb,xd:h.xd,timeline:h.timeline,kc:p&&eJ(p),xe:f,mimeType:d.N.mimeType,codecs:d.N.codecs,bandwidth:d.bandwidth,Rl:m}),b=y,T=+!!b.xe;if(0==(T+=+!!b.timeline+ +!!b.pb)||(1!=T&&(b.xe&&(b.timeline=null),b.ug=null,b.pb=null),!b.xe&&!b.kc))throw new eU(2,4,4002);var w=t9(t);if(y.xe)return pL(t,v),{endTime:-1,timeline:-1,hd:function(){var e=pf(y.xe,w.N.originalId,null,null,w.bandwidth||null,null);return e=e8(w.N.mb(),[e]),pI(w,n,v,e,0,null,y.Qb)},timescale:y.timescale};if(y.pb)return r||"image"===t.va.contentType||"text"===t.va.contentType||(r=t.ra.start,c=t.Aa.id,i=t.ra.duration,c=(c=null!=c&&o.get(c)||i)?r+c:1/0,t.presentationTimeline.Oh(y.pb),t.presentationTimeline.wj(r,c)),{endTime:-1,timeline:-1,hd:function(){return function(t,n,i,r,a,o,s,u){function l(i){var a=i-v,s=a*m,l=n.ug,c=a*l;"BigInt"in e&&c>Number.MAX_SAFE_INTEGER&&(c=BigInt(a)*BigInt(l)),s+=p,l=Math.min(a=s+m,d());var h=[],f=n.Rl;if(f)for(var g=(l-s)/f,E={},x=0;x<f;E={Wj:void 0},x++){var k=s+g*x,I=k+g;E.Wj=x,(E=new aZ(k,I,function(e){return function(){var t=pf(y,T,i,e.Wj,b,c);return e8(w(),[t],S())}}(E),0,null,r,A,p,d(),[],"",null,null,aQ,o)).codecs=t.N.codecs,E.mimeType=t.N.mimeType,0==u?x>0&&E.Od():x%u!=0&&E.Od(),h.push(E)}return(s=new aZ(s,l,function(){if(f)return[];var e=pf(y,T,i,null,b,c);return e8(w(),[e],S())},0,null,r,A,p,d(),h,"",null,null,aQ,o,h.length>0)).codecs=t.N.codecs,s.mimeType=t.N.mimeType,s.bandwidth=t.bandwidth,s.j=a,s}function c(){var e=[Math.max(h.Nb(),p),Math.min(h.Tc(),d())].map(function(e){return e-p});return e=[Math.ceil(e[0]/m),Math.ceil(e[1]/m)-1],t.N.zb&&e[1]++,e.map(function(e){return e+v})}function d(){var e=null!=f&&a.get(f)||g;return e?p+e:1/0}var h=t.presentationTimeline,p=t.ra.start,f=t.Aa.id,g=t.ra.duration,m=n.pb,v=n.Me,y=n.kc,b=t.bandwidth||null,T=t.N.originalId,w=t.N.mb,S=t.Sb,A=p-n.Qb,x=c();i=t.Kb?Math.max(x[0],x[1]-i+1):x[0],s=s||x[1],x=[];for(var k=i;k<=s;++k){var I=l(k);x.push(I)}var C=new sw(x);if(x=h.Tc()<d(),k=h.U(),x||k){var M=Math.max(i,s+1);i=m,t.N.zb&&(i=.1),C.vg(i,function(){var e=h.Nb();C.eb(e);var t=E(c());t.next(),t=t.next().value;for(var n=[];M<=t;){var i=l(M);n.push(i),M++}return e>d()&&!n.length?null:n})}return Promise.resolve(C)}(w,y,a,v,o,s,u,t.N.ig)},timescale:y.timescale};var S=null;r=r=null,t.Aa.id&&t.N.id&&(r=t.Aa.id+","+t.N.id,r=i.get(r))&&(S=r.segmentIndex);var A=t.ra.start,x=t.ra.duration?A+t.ra.duration:1/0;if(S)p_(c=S,y,A,x,v,t.Kb),c.eb(t.presentationTimeline.Nb());else{if(i=0,l=-1,null!=t.Aa.id&&null!=t.N.id){var k=c.get(t.Aa.id);if(k)l=k.timeline;
1else for(k=(c=E(c.values())).next();!k.done;k=c.next())if(k=k.value,Math.abs(y.Qb-k.endTime)<=tr&&k.Xh.includes(t.N.id)){l=k.timeline;break}else k.timeline>=i&&(i=k.timeline+1)}-1==l&&(l=i),S=new pO(t.Kb,y,t.N.originalId,t.bandwidth,t.N.mb,t.Sb,A,x,v,s,t.N.ig,l)}return y.timeline&&"image"!==t.va.contentType&&"text"!==t.va.contentType&&t.presentationTimeline.xj(S.h?S.h.timeline:[],A),r&&t.Kb&&(r.segmentIndex=S),r=(r=(r=y.timeline)&&r[r.length-1])?r.end+y.Qb:-1,c=-1,S instanceof pO&&(c=S.qf()),{endTime:r,timeline:c,hd:function(){return S instanceof pO&&0==S.getNumReferences()&&p_(S,y,A,x,v,t.Kb),Promise.resolve(S)},timescale:y.timescale}}function pN(e){return e.bd}function pO(e,t,n,i,r,a,o,s,u,l,c,d){sw.call(this,[]),this.F=e,this.h=t,this.H=n,this.D=i,this.G=r,this.J=a,this.j=o,this.l=s,this.A=u,this.C=l,this.I=c,this.K=d,pU(this)}function p_(e,t,n,i,r,a){if(function(e,t){if(e.A!==t){e.A=t,e=E(e.g);for(var n=e.next();!n.done;n=e.next())(n=n.value)&&function e(t,n){t.ia=n,t=E(t.g);for(var i=t.next();!i.done;i=t.next())e(i.value,n)}(n,t)}}(e,r),e.F=a,e.h){if(e.h.xd!==t.xd&&(e.h.timeline=t.timeline,e.h.xd=t.xd,e.h.Qb=t.Qb),e.h.kc!==t.kc&&(e.h.kc=t.kc),(n=e.h.timeline).length){var o=n[n.length-1];t=t.timeline.filter(function(e){return e.end>o.end})}else t=t.timeline.slice();t.length>0&&e.h.timeline.push.apply(e.h.timeline,x(t)),e.l!==i&&(e.l=i)}else e.h=t,e.j=n,e.l=i;pU(e)}function pU(e){if(e.h&&!e.u){for(var t=[],n=E(e.h.timeline),i=n.next();!i.done;i=n.next())(i=i.value).start>=e.l||i.end<=0||t.push(i);e.h.timeline=t,e.eb(e.j)}}function pq(e,t,n,i,r,a,o,s){return e=pf(e,t,n,a,i||null,r),e8(o(),[e],s()).map(function(e){return e.toString()})}function pj(e){this.u=null,this.C=e,this.H=new rh,this.i=[],this.h=null,this.m=[],this.D=null,this.G=[],this.F=300,this.l=new Map,this.j=new Map,this.g=null,this.A="UNKNOWN"}function pB(e,t){var n,i,r,a,o;return F(function(s){var u,l,c,d;return 1==s.g?(n=rv(e8(e.i,[function(e,t){if(!e.m.length)return t;t=new eg(t);var n,i=e.D||e.m[0],r=Math.round(e.C.getBandwidthEstimate()),a=t.g;return"DASH"==e.A?(a.add("_DASH_pathway",i),a.add("_DASH_throughput",String(r))):"HLS"==e.A&&(a.add("_HLS_pathway",i),a.add("_HLS_throughput",String(r))),eM(n=a),n.me&&eb(t,a),t.toString()}(e,t)]),e.u.retryParameters),i=e.C.networkingEngine.request(8,n),rp(e.H,i),R(s,2),M(s,i.promise,4)):2!=s.g?(1==(a=JSON.parse(ez((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 iA(function(){pB(u,d)}),(c=l.TTL)&&(u.F=c),u.g.Y(u.F),u.m=l["PATHWAY-PRIORITY"]||[],u.G=l["PATHWAY-CLONES"]||[]),D(s,0)):(o=N(s))&&7001==o.code?s.return():void(null!=e.g&&(e.g.stop(),e.g=null),e.g=new iA(function(){pB(e,t)}),e.g.Y(e.F),L(s))})}function pF(e,t,n,i){var r=e.l.get(t);r||(r=new Map),r.set(n,i),e.l.set(t,r)}function pV(e,t,n){n=void 0!==n&&n,t=e.l.get(t)||new Map;for(var i=[],r=E(e.m),a=r.next(),o={};!a.done;o={Sd:void 0},a=r.next())if(o.Sd=a.value,a=t.get(o.Sd))i.push({Th:o.Sd,location:a});else if(a=e.G.find(function(e){return function(t){return t.Ym==e.Sd}}(o))){var s=t.get(a["BASE-ID"]);s&&(a["URI-REPLACEMENT"].lk?(ev(s=new eg(s),a["URI-REPLACEMENT"].lk),i.push({Th:o.Sd,location:s.toString()})):i.push({Th:o.Sd,location:s}))}for(r=Date.now(),a=(o=E(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=E(e.j.keys()),i=n.next();!i.done;i=n.next())if(i.value.includes(new eg(t.location).Jb))return!1;return!0})).length&&(e.D=i[0].Th),!(i=i.map(function(e){return e.location})).length&&e.h)for(o=(r=E(e.h.split(","))).next();!o.done;o=r.next())(o=t.get(o.value))&&(e.D=e.h,i.push(o));
1if(!i.length)for(r=(t=E(t.values())).next();!r.done;r=t.next())i.push(r.value);return n?i:e8(e.i,i)}function pG(){this.l=[],this.h=[],this.g=[],this.j=[],this.i=[],this.u=!1,this.m=new Set}function pH(e,t){var n=[],i=[],r=[],a=[];e=E(e);for(var o=e.next();!o.done;o=e.next()){var s=o.value;o=new Map(s.audioStreams.map(function(e){return[fa(e),e]}));var u=new Map(s.videoStreams.map(function(e){return[fr(e),e]})),l=new Map(s.textStreams.map(function(e){return[fo(e),e]}));if(s=new Map(s.imageStreams.map(function(e){return[fs(e),e]})),t){var c=p9(tn);l.set(fo(c),c),c=p9("image"),s.set(fs(c),c)}n.push(o),i.push(u),r.push(l),a.push(s)}return{Ki:n,ik:i,ck:r,ij:a}}function pz(e){var t,n,i,r,a,o,s,u,l,c,d,h,p,f,g,m,v,y,b,T,w,S,A,x,k,I,C,L;return F(function(R){switch(R.g){case 1:if(t=ti,1==e.length)return R.return(e[0]);for(n=e.map(function(e){return new Map(e.filter(function(e){return e.type===t.na}).map(function(e){return[fa(e),e]}))}),i=e.map(function(e){return new Map(e.filter(function(e){return e.type===t.Ga}).map(function(e){return[fr(e),e]}))}),r=e.map(function(e){return new Map(e.filter(function(e){return e.type===t.Va}).map(function(e){return[fo(e),e]}))}),a=e.map(function(e){return new Map(e.filter(function(e){return e.type===t.Cg}).map(function(e){return[fs(e),e]}))}),s=(o=E(r)).next();!s.done;s=o.next())u=s.value,l=p7(t.Va),u.set(fo(l),l);for(d=(c=E(a)).next();!d.done;d=c.next())h=d.value,p=p7(t.Cg),h.set(fs(p),p);return M(R,pK(f=new pG,[],n,0,pZ,pQ,0),2);case 2:return g=R.h,M(R,pK(f,[],i,0,pZ,pQ,0),3);case 3:return m=R.h,M(R,pK(f,[],r,0,pZ,pQ,0),4);case 4:return v=R.h,M(R,pK(f,[],a,0,pZ,pQ,0),5);case 5:if(y=R.h,b=0,m.length&&g.length)for(A=(S=E(g)).next();!A.done;A=S.next())for(x=A.value,I=(k=E(m)).next();!I.done;I=k.next())C=I.value,L=b++,C.variantIds.push(L),x.variantIds.push(L);else for(w=(T=E(m.concat(g))).next();!w.done;w=T.next())w.value.variantIds=[b++];return R.return(m.concat(g).concat(v).concat(y))}})}function pK(e,t,n,i,r,a,o){var s,u,l,c,d,h,p,f,g,m,v,y,b,T;return F(function(w){switch(w.g){case 1:for(u=0,s=[];u<n.length;u++)u>=i?s.push(new Set(n[u].values())):s.push(new Set);c=(l=E(t)).next();case 2:var S,A,x,k,I,C,L;if(c.done){w.B(4);break}return M(w,(S=e,A=c.value,x=n,k=i,I=a,C=s,L=o,F(function(e){return 1==e.g?(p$(S,x,A,L>0),A.matchedStreams?A.segmentIndex?M(e,pW(A,k+L),2):e.B(2):e.return(!1)):(pX(A,k,I,C,L),e.return(!0))})),5);case 5:if(!w.h)throw new eU(2,4,4037);c=l.next(),w.B(2);break;case 4:for(h=(d=E(s)).next();!h.done;h=d.next())for(f=(p=E(h.value)).next();!f.done;f=p.next())(g=function(e,t,n,i,r,a,o){if(fi(n))return null;var s=r(n);return(p$(e,i,s),s.createSegmentIndex&&(s.createSegmentIndex=function(){return F(function(e){return s.segmentIndex?e.B(0):(s.segmentIndex=new sx,M(e,pW(s,0),0))})},s.closeSegmentIndex=function(){if(s.segmentIndex&&(s.segmentIndex.release(),s.segmentIndex=null),s.matchedStreams)for(var e=E(s.matchedStreams),n=e.next();!n.done;n=e.next()){if(i=(n=n.value).segmentIndex){e:{i=E(t);for(var i,r=i.next();!r.done;r=i.next())if((r=r.value)!==s&&r.segmentIndex&&r.matchedStreams&&r.matchedStreams.includes(n)){i=!0;break e}i=!1}i=!i}i&&(n.segmentIndex.release(),n.segmentIndex=null)}}),s.matchedStreams&&s.matchedStreams.length)?(pX(s,0,a,o,0),s):null}(e,t,f.value,n,r,a,s))&&t.push(g);for(v=(m=E(s)).next();!v.done;v=m.next())for(b=(y=E(v.value)).next(),T={};!b.done;T={oi:void 0},b=y.next())if(T.oi=b.value,!fi(T.oi)&&t.some(function(e){return function(t){return p1(e.oi,t)}}(T)))throw new eU(2,4,4037);return w.return(t)}})}function pW(e,t){var n,i,r,a,o,s;return F(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()),a.dependencyStream&&!a.dependencyStream.segmentIndex&&n.push(a.dependencyStream.createSegmentIndex());return M(u,Promise.all(n),2)}if(e.segmentIndex instanceof sx)for(o=t;o<i.length;o++)(s=i[o]).segmentIndex&&e.segmentIndex.h.push(s.segmentIndex);L(u)})}function pX(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==th(e.language,o.language)&&(s=!1),s&&((s=i[t-r])&&s.delete(o),o.fullMimeTypes))for(s=(o=E(o.fullMimeTypes.values())
1).next();!s.done;s=o.next())e.fullMimeTypes.add(s.value)}}function pY(e){var t=Object.assign({},e);return t.originalId=null,t.createSegmentIndex=function(){return Promise.resolve()},t.closeSegmentIndex=function(){},t.roles=t.roles.slice(),t.segmentIndex=null,t.emsgSchemeIdUris=[],t.keyIds=new Set(e.keyIds),t.closedCaptions=e.closedCaptions?new Map(e.closedCaptions):null,t.trickModeVideo=null,t.dependencyStream=null,t}function pZ(e){var t=Object.assign({},e);return t.roles=t.roles.slice(),t.keyIds=new Set(e.keyIds),t.segments=[],t.variantIds=[],t.closedCaptions=e.closedCaptions?new Map(e.closedCaptions):null,t}function pJ(e,t){function n(e,t){e||(e=[]),t=E(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=E(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=i8(e.drmInfos,t.drmInfos),t.drmInfos.length&&e.drmInfos.length&&!i.length)throw new eU(2,4,4038);if(e.drmInfos=i,e.encrypted=e.encrypted||t.encrypted,t.closedCaptions)for(e.closedCaptions||(e.closedCaptions=new Map),r=(i=E(t.closedCaptions)).next();!r.done;r=i.next()){var a=E(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=pY(t.trickModeVideo),e.trickModeVideo.matchedStreams=[],e.trickModeVideo.createSegmentIndex=function(){if(e.trickModeVideo.segmentIndex)return Promise.resolve();for(var t=new sx,n=E(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),pJ(e.trickModeVideo,t.trickModeVideo)):e.trickModeVideo&&(e.trickModeVideo.matchedStreams.push(t),pJ(e.trickModeVideo,t)),t.dependencyStream?(e.dependencyStream||(e.dependencyStream=pY(t.dependencyStream),e.dependencyStream.matchedStreams=[],e.dependencyStream.createSegmentIndex=function(){if(e.dependencyStream.segmentIndex)return Promise.resolve();for(var t=new sx,n=E(e.dependencyStream.matchedStreams),i=n.next();!i.done;i=n.next())t.h.push(i.value.segmentIndex);return e.dependencyStream.segmentIndex=t,Promise.resolve()}),e.dependencyStream.matchedStreams.push(t.dependencyStream),pJ(e.depen
1dencyStream,t.dependencyStream)):e.dependencyStream&&(e.dependencyStream.matchedStreams.push(t),pJ(e.dependencyStream,t))}function pQ(e,t){var n=e.roles;n||(n=[]);for(var i=E(t.roles),r=i.next();!r.done;r=i.next())r=r.value,n.includes(r)||n.push(r);for(e.roles=n,i=(n=E(t.keyIds)).next();!i.done;i=n.next())e.keyIds.add(i.value);if(e.encrypted=e.encrypted&&t.encrypted,e.segments.push.apply(e.segments,x(t.segments)),t.closedCaptions)for(e.closedCaptions||(e.closedCaptions=new Map),n=(t=E(t.closedCaptions)).next();!n.done;n=t.next())n=(i=E(n.value)).next().value,i=i.next().value,e.closedCaptions.set(n,i)}function p$(e,t,n,i){i=(void 0===i?0:i)?n.matchedStreams:[],t=E(t);for(var r=t.next();!r.done;r=t.next()){if(!(r=function(e,t,n){var i={audio:fa,video:fr,text:fo,image:fs}[n.type],r=null,a=i(n);if(t.has(a))r=t.get(a);else{a=({audio:function(e,t){return p1(e,t)},video:function(e,t){return p1(e,t)},text:p2,image:p5})[n.type];for(var o={audio:p3,video:p4,text:p8,image:p6}[n.type],s=E(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&&!fi(r)&&t.delete(i(r)),r}(e,r.value,n)))return;i.push(r)}n.matchedStreams=i}function p0(e,t){return e.mimeType==t.mimeType&&fl(e.codecs)===fl(t.codecs)}function p1(e,t){return!e.drmInfos||!!i4(e.drmInfos,t.drmInfos)}function p2(e,t){return!t.language||e.forced===t.forced&&0!=th(e.language,t.language)&&t.kind==e.kind}function p5(){return!0}function p3(e,t,n){var i=ft(e,t,n);if(i===fc)return!0;if(i===fh)return!1;i=th(e.language,t.language);var r=th(e.language,n.language);if(r>i)return!0;if(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=fe(e.channelsCount,t.channelsCount,n.channelsCount))==fc||i!=fh&&((i=fe(e.audioSamplingRate,t.audioSamplingRate,n.audioSamplingRate))==fc||i!=fh&&!!e.bandwidth&&fn(e.bandwidth,t.bandwidth,n.bandwidth)==fc))}function p4(e,t,n){var i=ft(e,t,n);if(i===fc)return!0;if(i===fh)return!1;if((i=fe(e.width*e.height,t.width*t.height,n.width*n.height))==fc)return!0;if(i==fh)return!1;if(e.frameRate){if((i=fe(e.frameRate,t.frameRate,n.frameRate))==fc)return!0;if(i==fh)return!1}return!!e.bandwidth&&fn(e.bandwidth,t.bandwidth,n.bandwidth)==fc}function p8(e,t,n){var i=th(e.language,t.language),r=th(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 p6(e,t,n){return fe(e.width*e.height,t.width*t.height,n.width*n.height)==fc}function p7(e){return{id:0,originalId:"",groupId:null,primary:!1,type:e,mimeType:"",codecs:"",language:"",originalLanguage:null,label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1,baseOriginalId:null}}function p9(e){return{id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new sw([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",originalLanguage:null,label:null,type:e,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null}}function fe(e,t,n){if(t==e&&e!=n)return fh;if(n==e&&e!=t)return fc;if(t>e){if(n<=e||n-e<t-e)return fc;if(n-e>t-e)return fh}else{if(n>e)return fh;if(e-n<e-t)return fc;if(e-n>e-t)return fh}return fd}function ft(e,t,n){var i=e.mimeType===t.mimeType&&e.codecs===t.codecs,r=e.mimeType===n.mimeType&&e.codecs===n.codecs;return i&&!r?fh:!i&&r?fc:(t=p0(e,t),e=p0(e,n),t&&!e?fh:!t&&e?fc:fd)}function fn(e,t,n){return t=Math.abs(e-t),(e=Math.abs(e-n))<t?fc:t<e?fh:fd}function fi(e){switch(e.type){case tn:return!e.language;case"image":return!e.tilesLayout;default:return!1}}function fr(e){return fu([e.fastSwitching,e.width,e.frameRate,e.codecs,e.mimeType,e.label,e.roles,e.closedCaptions?Array.from(e.closedCaptions.entries()):null,e.bandwidth,e.dependencyStream?e.dependencyStream.baseOriginalId:null,Array.from(e.keyIds)])}function fa(e){return fu([e.fastSwitching,e.channelsCount,e.language,e.bandwidth,e.label,e.codecs,e.mimeType,e.roles,e.audioSamplingRate,e.primary,e.dependencyStream?e.dependencyStream.baseOriginalId:null,Array.from(e.keyIds)])}function fo(e){return fu([e.language,e.label,e.codecs,e.mimeType,e.bandwidth,e.roles])}function fs(e){return fu([e.width,e.codecs,e.mimeType])}function fu(e){return JSON.stringify(e)}function fl(e){if(!fp.has(e)){var t=is(e);fp.set(e,t)}return fp.get(e)}S(pO,sw),(p=pO.prototype).getNumReferences=function(){return this.h?this.h.timeline.length:0},p.release=function(){sw.prototype.release.call(this),this.h=null},p.eb=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;t>0&&(this.h.timeline=n.slice(t),this.g.length>=t&&(this.g=this.g.slice(t)),this.i+=t,0===this.getNumReferences()&&this.release()
1)}},p.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:this.l===1/0?r.end+this.j:this.l,e>=a&&e<r)return i+this.i}return null},p.get=function(e){var t=this;if((e-=this.i)<0||e>=this.getNumReferences()||!this.h)return null;var n=this.g[e];if(!n){var i=(n=this.h.timeline[e]).nm,r=n.Bi+this.h.xd,a=this.j-this.h.Qb,o=this.j+n.end,s=o;e===this.getNumReferences()-1&&this.l!==1/0&&(s=this.F&&Math.abs(s-this.l)>.1?Math.min(s,this.l):this.l);var u=this.h.codecs,l=this.h.mimeType,c=this.h.bandwidth,d=[],h=!1;if(n.Hc&&this.h&&this.h.kc&&(h=this.h.kc.includes("$SubNumber$")),h){h=(n.end-n.start)/n.Hc;for(var p={},f=0;f<n.Hc;p={xg:void 0,Xj:void 0},f++){var g=n.start+h*f,m=g+h;p.Xj=f,p.xg=null,(p=new aZ(this.j+g,this.j+m,function(e){return function(){return t.h?(null==e.xg&&(e.xg=pq(t.h.kc,t.H,i,t.D,r,e.Xj,t.G,t.J)),e.xg):[]}}(p),0,null,this.A,a,this.j,this.l,[],"",null,null,aQ,this.C)).codecs=u,p.mimeType=l,p.bandwidth=c,0==this.I?f>0&&p.Od():f%this.I!=0&&p.Od(),d.push(p)}}(n=new aZ(this.j+n.start,s,function(){return d.length>0||!t.h?[]:pq(t.h.kc,t.H,i,t.D,r,null,t.G,t.J)},0,null,this.A,a,this.j,this.l,d,"",null,null,aQ,this.C,d.length>0)).codecs=u,n.mimeType=l,n.j=o,n.bandwidth=c,this.g[e]=n}return n},p.Lb=function(e){pU(this);for(var t=0;t<this.getNumReferences();t++){var n=this.get(t+this.i);n&&e(n)}},p.qf=function(){return this.K},pj.prototype.configure=function(e){this.u=e},pj.prototype.destroy=function(){return this.C=this.u=null,this.i=[],this.h=null,this.m=[],this.G=[],this.l.clear(),null!=this.g&&(this.g.stop(),this.g=null),this.H.destroy()},pj.prototype.setManifestType=function(e){this.A=e},pj.prototype.banLocation=function(e){this.j.set(e,Date.now()+6e4)},(p=pG.prototype).release=function(){for(var e=E(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=!1,this.m.clear()},p.wl=function(){return this.l},p.Ah=function(){return this.j.slice()},p.Qk=function(){return this.i},p.Ui=function(e,t){if(e){if("audio"==e.type)for(var n=E(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=E(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})),i.dependencyStream&&(i.dependencyStream.matchedStreams=i.dependencyStream.matchedStreams.filter(function(t){return t!==e}));else if(e.type==tn)for(i=(n=E(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=E(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)}},p.Sg=function(e,t,n){n=void 0!==n&&n;var i,r,a,o,s,u,l,c,d,h,p,f,g,m,v,y,b,T,w,S,A,x,k,I,C,R,P,D,N,O,_,U=this;return F(function(q){if(1==q.g){if(i=ti,!t&&1==e.length)return a=(r=pH(e,!1)).Ki,o=r.ik,s=r.ck,u=r.ij,U.h=Array.from(a[0].values()),U.g=Array.from(o[0].values()),U.j=Array.from(s[0].values()),U.i=Array.from(u[0].values()),q.B(2);for(l=n?U.m.size:0,c=-1,d=0;d<e.length;d++)h=e[d],U.m.has(h.id)||(U.m.add(h.id),-1==c&&(c=d));return -1==c?q.return():(f=(p=pH(e,!0)).Ki,g=p.ik,m=p.ck,v=p.ij,M(q,Promise.all([pK(U,U.h,f,c,pY,pJ,l),pK(U,U.g,g,c,pY,pJ,l),pK(U,U.j,m,c,pY,pJ,l),pK(U,U.i,v,c,pY,pJ,l)]),2))}if(y=0,b=[],U.g.length&&U.h.length)for(I=(k=E(U.h)).next();!I.done;I=k.next())for(C=I.value,P=(R=E(U.g)).next();!P.done;P=R.next())D=P.value,N=i8(C.drmInfos,D.drmInfos),C.drmInfos.length&&D.drmInfos.length&&!N.length||(O=(C.bandwidth||0)+(D.bandwidth||0),C.dependencyStream&&(O+=C.dependencyStream.bandwidth||0),D.dependencyStream&&(O+=D.dependencyStream.bandwidth||0),_=y++,b.push({id:_,language:C.language,disabledUntilTime:0,primary:C.primary,audio:C,video:D,bandwidth:O,drmInfos:N,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(w=(T=E(U.g.length?U.g:U.h)).next();!w.done;w=T.next())S=w.value,A=y++,x=S.bandwidth||0,S.dependencyStream&&(x+=S.dependencyStream.bandwidth||0),b.pu
1sh({id:A,language:S.language,disabledUntilTime:0,primary:S.primary,audio:S.type==i.na?S:null,video:S.type==i.Ga?S:null,bandwidth:x,drmInfos:S.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});U.l=b,L(q)})},p.Rj=function(e){this.u=e},$("shaka.util.PeriodCombiner",pG),pG.prototype.setUseStreamOnce=pG.prototype.Rj,pG.prototype.combinePeriods=pG.prototype.Sg,pG.prototype.deleteStream=pG.prototype.Ui,pG.prototype.getImageStreams=pG.prototype.Qk,pG.prototype.getTextStreams=pG.prototype.Ah,pG.prototype.getVariants=pG.prototype.wl;var fc=1,fd=0,fh=-1,fp=new Map;function ff(e,t){try{var n=eW(e),i=t,r=new DOMParser,a=fg.value()(n);n=null;try{n=r.parseFromString(a,"text/xml")}catch(e){return null}if(!(r=n.documentElement)||r.getElementsByTagName("parsererror").length||r.tagName!=i)return null;if(!("createNodeIterator"in document))return r;for(i=document.createNodeIterator(n,NodeFilter.SHOW_ALL);n=i.nextNode();)if(n instanceof HTMLElement||n instanceof SVGElement)return null;return r}catch(e){return null}}var fg=new ej(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 fm(){var e=this;this.j=this.g=null,this.C=[],this.h=null,this.Fa=1,this.H=[],this.l={Rf:"",type:"",profiles:[],Fc:null,zb:0,mb:null,He:0},this.A=new Map,this.D=new Map,this.u=new Map,this.F=new Map,this.ua=new Map,this.m=new pG,this.K=0,this.ya=new tT(5),this.L=new iA(function(){e.J&&!e.g.continueLoadingWhenPaused&&(e.I.Ea(e.J,"timeupdate"),e.J.paused)?e.I.qa(e.J,"timeupdate",function(){return fk(e)}):fk(e)}),this.P=new rh,this.O=null,this.G=[],this.Z=1/0,this.oa=!1,this.i=null,this.M=0,this.R=!1,this.I=new tI,this.J=null,this.T=!1,this.W="",this.ea=function(){return!1},this.V=[],this.aa=new Set,this.sa=new pc}function fv(e){var t,n,i,r,a,o,s,u,l;return F(function(c){if(1==c.g)return t=4,n="MPD",i=function(e){var t=e.l.He;if(!e.l.Rf||!t||!e.H.length)return[];var n=Date.now()/1e3,i=e.H.filter(function(e){return!(e=nw(e.attributes.ttl))||t+e>n}).map(nu).filter(ik);return i.length?e8(e.C,i):[]}(e),r=e.C,i.length?(r=i,n="Patch",t=6):e.C.length>1&&e.i&&(a=pV(e.i,"Location",!0)).length&&(r=a),o=rv(r,e.g.retryParameters),s=Date.now(),M(c,fP(e,o,0,{type:t}),2);if(3!=c.g){var d,h,p,f,g,m,v,y,b,T,w,S;return(u=c.h,e.j)?(u.uri&&u.uri!=u.originalUri&&!e.C.includes(u.uri)&&e.C.unshift(u.uri),e.W=new eg(u.uri).g.toString(),M(c,(d=e,h=u.data,p=u.uri,f=n,F(function(e){if(1==e.g){var t,n,i,r,a,o,s,u,l,c,A,k,I,C,R,P,D,N,O,_,U,q,j,B,V;if(g=h,(m=d.g.dash.manifestPreprocessor)!=uR){if(tR("manifest.dash.manifestPreprocessor configuration","Please Use manifest.dash.manifestPreprocessorTXml instead."),!(v=ff(g,f)))throw new eU(2,4,4001,p);m(v),g=eX(v.outerHTML)}if(!(y=nt(g,f)))throw new eU(2,4,4001,p);return((b=d.g.dash.manifestPreprocessorTXml)!=uP&&b(y),"Patch"===f)?e.return((t=d,n=y,F(function(e){if(1==e.g){if(i=n.attributes.mpdId,r=nh(n,"originalPublishTime",nm),!i||i!==t.l.Rf||r!==t.l.He)throw t.H=[],new eU(1,4,4052);for(a=[],o=[],s=new Set,l=(u=E(na(n))).next();!l.done;l=u.next())if(k=(A=nx((c=l.value).attributes.sel||""))[A.length-1],I=nu(c)||"","MPD"===k.name)if("mediaPresentationDuration"===k.Oc){var d,h,p=nv(nu(c)||"");if(null!=p){t.l.Fc=p;for(var f=E(t.A.values()),g=f.next();!g.done;g=f.next())g.value.Fc=p}}else if("type"===k.Oc){for(t.h.presentationTimeline.td("static"==I),t.l.type=I,f=(p=E(t.A.values())).next();!f.done;f=p.next())f.value.Kb="dynamic"==I;"static"==I&&(t.K=-1)}else"publishTime"===k.Oc?t.l.He=nm(I)||0:null===k.Oc&&"add"===c.tagName&&o.push(c);else if("PatchLocation"===k.name)nk(t.H,c);else if("Period"===k.name)"add"===c.tagName?o.push(c):"remove"===c.tagName&&k.id&&function(e,t){e.h.periodCount--;for(var n=E(e.A.keys()),i=n.next();!i.done;i=n.next())(i=i.value).startsWith(t)&&(py(e.A.get(i),pN,"SegmentTimeline").children=[],fw(e,i),e.A.delete(i));e.G=e.G.filter(function(e){return e!==t})}(t,k.id);else if("SegmentTemplate"===k.name){if((p=(f=nx(c.attributes.sel||""))[f.length-1]).Oc){f=fT(t,f),g=nu(c)||"";for(var m=E(f),v=m.next();!v.done;v=m.next())nC((v=t.A.get(v.value)).N.bd,c.tagName,p.Oc,g);p=f}else p=[];for(R=(C=E(p)).next();!R.done;R=C.next())P=R.value,s.add(P)}else if("SegmentTimeline"===k.name||"S"===k.name){for(g=(f=E(p=fT(t,p=nx(c.attributes.sel||"")))).next();!g.done;g=f.next())nk(m=no(g=py(g=t.A.get(g.value),pN,"SegmentTimeline"),"S"),c),g.children=m;for(N=(D=E(p)).next();!N.done;N=D.next())O=N.value,s.add(O)}for(U=(_=E(s)).next();!U.done;U=_.next())fw(t,U.value);for(j=(q=E(o)).next();!j.done;j=q.next()){B=j.value,a.push.apply(a,x((d=t,h=B,fS(d,{Kb:"dynamic"==d.l.type,presentationTimeline:d.h.presentationTimeline,Aa:null,ra:null,va:null,N:null,bandwidth:0,Fh:!1,zb:d.l.zb,profiles:d.l.profiles,Fc:d.l.Fc,roles:null,Sb:function(){return""}},d.l.mb,h,!0).periods)))}return a.length?(t.h.periodCount+=a.length,t.h.gapCount=t.M,M(e,fb(t,a,!0),2)):e.B(2)}"static"==t.l.type&&(V=t.l.Fc,t.h.presentationTimeline.Fb(V||1/0)),L(e)}))):d.g.dash.disableXlinkProcessing?e.return(fy(d,y,p)):(T=d.g.dash.xlinkFailGracefully,w=pb(y,d.g.retryParameters,T,p,d.j.networkingEngine),rp(d.P,w),M(e,w.promise,2))}return S=e.h,e.return(fy(d,S,p))})),3)):c.return(0)}return l=(Date.now()-s)/1e3,e.ya.sample(1,l),e.aa.clear(),c.return(l)})}function fy(e,t,n){var i,r,a,o,s,u,l,c,d,h,p,f,g,m,v,y,b,T,w,S,A,k,I,C,P,O,_,U,q,j,B,V,G,H,z,K,W,X,Y,Z,J,Q,$,ee,et,en,ei,er,eo,es,eu,el;return F(function(ec){switch(ec.g){case 1:for(e.i&&e.i.l.clear(),i=[n],r=[],a=new Map,s=(o=E(no(t,"Location"))).next();!s.done;s=o.next())l=(u=s.value).attributes.serviceLocation,(c=nu(u))&&(d=e8(i,[c])[0],l&&(e.i?pF(e.i,"Location",l,d):a.set(l,d)),r.push(d));if(e.i?(h=pV(e.i,"Location",!0)).length>0&&(i=e.C=h):r.length&&(i=e.C=r),e.l.Rf=t.attributes.id||"",e.l.He=nh(t,"publishTime",nm)||0,e.H=no(t,"PatchLocation"),p=Promise.resolve(),(f=nc(t,"ContentSteering"))&&e.j)for(g=f.attributes.defaultServiceLocation,e.i?(e.i.i=i,e.i.h=g):(e.i=new pj(e.j),e.i.configure(e.g),e.i.setManifestType("DASH"),e.i.i=i,e.i.h=g,(m=nu(f))&&(nh(f,"queryBeforeStart",nA,!1)?p=pB(e.i,m):pB(e.i,m))),y=(v=E(a.keys())).next();!y.done;y=v.next())b=y.value,T=a.get(b),pF(e.i,"Location",b,T);if(w=no(t,"BaseURL"),S=!1,e.i)for(k=(A=E(w)).next();!k.done;k=A.next())C=(I=k.value).attributes.serviceLocation,P=nu(I),C&&P&&(pF(e.i,"BaseURL",C,P),S=!0);if(e.V.splice(0),S&&e.i||(O=w.map(nu),e.V.push.apply(e.V,x(e8(i,O)))),_=e.i,U=e.V,q=function(){return _&&S?pV(_,"BaseURL"):U.slice()},e.l.mb=q,j=0,w&&w.length&&(j=nh(w[0],"availabilityTimeOffset",nS)||0),e.l.zb=j,e.K=nh(t,"minimumUpdatePeriod",nv,-1),B=nh(t,"availabilityStartTime",nm),V=nh(t,"timeShiftBufferDepth",nv),G=e.g.dash.ignoreSuggestedPresentationDelay,H=null,G||(H=nh(t,"
1suggestedPresentationDelay",nv)),z=e.g.dash.ignoreMaxSegmentDuration,K=null,z||(K=nh(t,"maxSegmentDuration",nv)),W=t.attributes.type||"static",e.h&&e.h.presentationTimeline&&(e.T=e.h.presentationTimeline.U()&&"static"==W),e.l.type=W,e.h)for(Y=(X=e.h.presentationTimeline).Nb(),J=(Z=E(e.u.values())).next();!J.done;J=Z.next())(Q=J.value).segmentIndex&&Q.segmentIndex.eb(Y);else $=e.g.dash.ignoreMinBufferTime,ee=0,$||(ee=nh(t,"minBufferTime",nv)||0),X=new o7(B,null!=H?Math.min(H,V||1/0):e.g.defaultPresentationDelay>0?e.g.defaultPresentationDelay:Math.min(1.5*ee,V||1/0),e.g.dash.autoCorrectDrift);return X.td("static"==W),X.U()&&!isNaN(e.g.availabilityWindowOverride)&&(V=e.g.availabilityWindowOverride),null==V&&(V=1/0),X.lg(V),et=t.attributes.profiles||"",e.l.profiles=et.split(","),en={Kb:"static"!=W,presentationTimeline:X,Aa:null,ra:null,va:null,N:null,bandwidth:0,Fh:!1,zb:j,Fc:null,profiles:et.split(","),roles:null,Sb:function(){return""}},M(ec,p,2);case 2:if(e.M=0,er=(ei=fS(e,en,q,t,!1)).duration,eo=ei.periods,("static"!=W||e.T)&&ei.Wi||X.Fb(er||1/0),e.R&&e.oa&&X.Mj(e.Z),X.Oh(K||1),e.R&&e.oa&&(es=null!=H?H:e.g.defaultPresentationDelay,X.gi(es)),!e.h)return M(ec,e.m.Sg(eo,en.Kb),6);return e.h.periodCount=eo.length,e.h.gapCount=e.M,M(ec,fb(e,eo,!1),4);case 6:var ed,eh,ep,ef,eg,em,ev,ey,eb,eT,ew;if(e.h={presentationTimeline:X,variants:e.m.l,textStreams:e.m.Ah(),imageStreams:e.m.i,offlineSessionIds:[],sequenceMode:e.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:function(e){var t=nc(e,"ServiceDescription");if(!t||(e=nc(t,"Latency"),t=nc(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=no(e,"SupplementalProperty")).length)return null;e=E(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:eo.length,gapCount:e.M,isLowLatency:e.R,startTime:null},!X.gk()){ec.B(7);break}return eu=no(t,"UTCTiming"),M(ec,(ed=e,eh=q,ep=eu,F(function(e){switch(e.g){case 1:ef=ep.map(function(e){return{scheme:e.attributes.schemeIdUri,value:e.attributes.value}}),eg=ed.g.dash.clockSyncUri,!ef.length&&eg&&ef.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:eg}),ev=(em=E(ef)).next();case 2:if(ev.done){e.B(4);break}switch(ey=ev.value,R(e,5),eb=ey.scheme,eT=ey.value,eb){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":return e.B(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.B(8);case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":return ew=Date.parse(eT),e.return(isNaN(ew)?0:ew-Date.now());case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":ea("NTP UTCTiming scheme is not supported");break;default:ea("Unrecognized scheme in UTCTiming element",eb)}e.B(9);break;case 7:return M(e,fM(ed,eh,eT,"HEAD"),10);case 10:case 11:return e.return(e.h);case 8:return M(e,fM(ed,eh,eT,"GET"),11);case 9:D(e,3);break;case 5:N(e);case 3:ev=em.next(),e.B(2);break;case 4:return ea("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(el=ec.h,!e.j)return ec.return();X.Nj(el);case 7:X.Nf(),e.m&&!e.h.presentationTimeline.U()&&e.m.release();case 4:e.j.makeTextStreamsForClosedCaptions(e.h),function(e){var t=Array.from(e.F.keys()).filter(function(t){return!e.G.includes(t)});t=E(t);for(var n=t.next();!n.done;n=t.next()){n=n.value;for(var i=!0,r=E(e.F.get(n)),a=r.next();!a.done;a=r.next()){a=a.value;var o=e.u.get(a);o&&(o.segmentIndex&&0!=o.segmentIndex.getNumReferences()?i=!1:(e.m&&e.m.Ui(o,n),e.u.delete(a)))}i&&e.F.delete(n)}}(e),function(e,t){t=new Set(t.map(function(e){return e.id}));for(var n=E(e.D.keys()),i=n.next();!i.done;i=n.next())i=i.value,t.has(i)||e.D.delete(i)}(e,eo),L(ec)}})}function fb(e,t,n){var i;return F(function(r){if(1==r.g)return M(r,e.m.Sg(t,!0,n),2);e.h.variants=e.m.l,(i=e.m.Ah()).length>0&&(e.h.textStreams=i),e.h.imageStreams=e.m.i,e.j.filter(e.h),L(r)})}function fT(e,t){var n="",i="",r=-1,a="";t=E(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);
1else if(i)for(e=(r=E(e.A.values())).next();!e.done;e=r.next())(e=e.value).Aa.id===n&&e.va.id===i&&e.N.id&&t.push(n+","+e.N.id);else if(r>-1)for(e=(i=E(e.A.values())).next();!e.done;e=i.next())(e=e.value).Aa.id===n&&e.va.position===r&&e.N.id&&t.push(n+","+e.N.id);return t}function fw(e,t){var n=e.A.get(t),i=e.u.get(t);i.segmentIndex&&i.segmentIndex.eb(e.h.presentationTimeline.Nb());try{var r=pD(n,function(t,n,i,r){return fL(e,t,n,i,r)},e.u,!0,e.g.dash.initialSegmentLimit,e.ua,n.N.aesKey,null,!0,e.D);i.createSegmentIndex=function(){return F(function(e){if(1==e.g)return i.segmentIndex?e.B(0):M(e,r.hd(),3);i.segmentIndex=e.h,L(e)})}}catch(e){if((t=n.N.contentType)!=tn&&"application"!=t&&"image"!=t||4002!=e.code)throw e}}function fS(e,t,n,i,r){var a=t.Fc;a||(a=nh(i,"mediaPresentationDuration",nv),e.l.Fc=a);var o=0;e.h&&e.h.presentationTimeline&&e.T&&(o=e.h.presentationTimeline.hc());var s=[],u=o;i=no(i,"Period");for(var l=0;l<i.length;l++){var c=i[l],d=i[l+1],h=nh(c,"start",nv,u),p=c.attributes.id,f=nh(c,"duration",nv);h=0==l&&0==h&&e.T?o:h;var g=null;if(d){var m=nh(d,"start",nv);null!=m&&(g=m-h+o)}else null!=a&&(g=a-h+o);if(m=tr,g&&f&&Math.abs(g-f)>m&&g>f&&e.M++,null==g&&(g=f),!(null!==e.O&&null!==p&&null!==h&&h<e.O)||e.G.includes(p)||l+1==i.length){if(null!==h&&(null===e.O||h>e.O)&&(e.O=h),u=function(e,t,n,i){t.Aa=fC(e,i.node,null,n),t.ra=i,t.Aa.zb=t.zb,t.Aa.id||(t.Aa.id="__shaka_period_"+i.start);var r=no(i.node,"EventStream");n=t.presentationTimeline.Nb(),r=E(r);for(var a=r.next();!a.done;a=r.next())!function(e,t,n,i,r){var a=i.attributes.schemeIdUri||"",o=i.attributes.value||"",s=nh(i,"timescale",nw)||1,u=nh(i,"presentationTimeOffset",nw)||0;i=E(no(i,"Event"));for(var l=i.next();!l.done;l=i.next()){var c=nh(l=l.value,"presentationTime",nw)||0,d=nh(l,"duration",nw)||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||"",timescale:s,eventElement:function e(t){var n="",i=t.tagName.split(":");for(var r in i.length>0&&(n=i[0],n=nR.has(n)?nR.get(n):""),n=document.createElementNS(n,t.tagName),t.attributes)n.setAttribute(r,t.attributes[r]);for(r=(t=E(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:nM(l)},e.j.onTimelineRegionAdded(l))}}(e,i.start,i.duration,a.value,n);for(r=(n=E(n=no(i.node,"SupplementalProperty"))).next();!r.done;r=n.next())"urn:mpeg:dash:urlparam:2014"==(r=r.value).attributes.schemeIdUri&&(r=fx(e,r))&&(t.Sb=r);if(n=no(i.node,"AdaptationSet").map(function(n,i){return fE(e,t,i,n)}).filter(ik),t.Kb){r=[],a=E(n);for(var o=a.next();!o.done;o=a.next()){o=E(o.value.gm);for(var s=o.next();!s.done;s=o.next())r.push(s.value)}if(r.length!=new Set(r).size)throw new eU(2,4,4018)}for(r=new Map,o=(a=E(n)).next();!o.done;o=a.next())for(s=(o=E(o.value.zk)).next();!s.done;s=o.next()){var u=E(s.value);s=u.next().value,u=u.next().value,r.set(s,u)}if(r.size)for(a=null,s=(o=E(n)).next();!s.done;s=o.next()){s=s.value,u=[];for(var l=E(s.streams),c=l.next(),d={};!c.done;d={pi:void 0},c=l.next())if(d.pi=c.value,r.has(d.pi.originalId)){a||(a=no(i.node,"AdaptationSet").map(function(n,i){return fE(e,t,i,n)}).filter(ik)),c=E(a);for(var h=c.next();!h.done;h=c.next())(h=h.value.streams.find(function(e){return function(t){return t.originalId==e.pi.originalId}}
1(d)))&&(h.dependencyStream=r.get(h.originalId),h.originalId+=h.dependencyStream.originalId,u.push(h))}u.length&&s.streams.push.apply(s.streams,x(u))}if(i=n.filter(function(e){return!e.Ai}),n=n.filter(function(e){return e.Ai}),!e.g.disableIFrames){for(r=(n=E(n)).next();!r.done;r=n.next())for(a=(r=r.value).Ai.split(" "),s=(o=E(i)).next();!s.done;s=o.next())if(s=s.value,a.includes(s.id))for(u=(s=E(s.streams)).next();!u.done;u=s.next())iW(u.value,r.streams)}if(n=fA(e.g.disableAudio,i,"audio"),r=fA(e.g.disableVideo,i,"video"),a=fA(e.g.disableText,i,tn),i=fA(e.g.disableThumbnails,i,"image"),0===r.length&&0===n.length)throw new eU(2,4,4004);return{id:t.Aa.id,audioStreams:n,videoStreams:r,textStreams:a,imageStreams:i}}(e,t,n,{start:h,duration:g,node:c,Gf:null==g||!d}),s.push(u),t.Aa.id&&g&&e.ua.set(t.Aa.id,g),null==g){u=null;break}u=h+g}}if(r)for(n=(t=E(s)).next();!n.done;n=t.next())n=n.value.id,e.G.includes(n)||e.G.push(n);else e.G=s.map(function(e){return e.id});return null!=a?{periods:s,duration:a+o,Wi:!1}:{periods:s,duration:u,Wi:!0}}function fA(e,t,n){return e||!t.length?[]:t.reduce(function(e,t){return t.contentType!=n||e.push.apply(e,x(t.streams)),e},[])}function fE(t,n,i,r){function a(e){var i=e.attributes["dvb:fontFamily"];e=e.attributes["dvb:url"],i&&e&&(e=e8(n.va.mb(),[e],n.Sb()),t.j.addFont(i,e[0]))}function o(e){switch(e){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function s(e){switch(e){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}n.va=fC(t,r,n.Aa,null),n.va.position=i;var u=!1,l=(i=no(r,"Role")).map(function(e){return e.attributes.value}).filter(ik),c=void 0,d=n.va.contentType==tn;d&&(c="subtitle"),i=E(i);for(var h=i.next();!h.done;h=i.next()){var p=(h=h.value).attributes.schemeIdUri;if(null==p||"urn:mpeg:dash:role:2011"==p)switch(h=h.attributes.value){case"main":u=!0;break;case"caption":case"subtitle":c=h}}var f=no(r,"EssentialProperty");i=null;var g=!1;h=null,p=!1,f=E(f);for(var m=f.next();!m.done;m=f.next()){var v=(m=m.value).attributes.schemeIdUri;if("http://dashif.org/guidelines/trickmode"==v)i=m.attributes.value;else if("urn:mpeg:mpegB:cicp:TransferCharacteristics"==v)var y=s(parseInt(m.attributes.value,10));else if("urn:mpeg:mpegB:cicp:ColourPrimaries"==v)var b=o(parseInt(m.attributes.value,10));else"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=v&&("urn:mpeg:dash:ssr:2023"==v&&t.g.dash.enableFastSwitching?g=!0:"urn:dvb:dash:fontdownload:2014"==v?a(m):"urn:mpeg:dash:urlparam:2014"==v&&(h=fx(t,m))||(p=!0))}if(p)return null;var T=null;for(f=(p=E(p=no(r,"SupplementalProperty"))).next();!f.done;f=p.next())"http://dashif.org/guidelines/last-segment-number"==(m=(f=f.value).attributes.schemeIdUri)?T=parseInt(f.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==m?y=s(parseInt(f.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==m?b=o(parseInt(f.attributes.value,10)):"urn:dvb:dash:fontdownload:2014"==m?a(f):"urn:mpeg:dash:urlparam:2014"==m&&(h=fx(t,f));h&&(n.Sb=h),h=no(r,"Accessibility");var w,S=new Map;for(p=(h=E(h)).next();!p.done;p=h.next())if(p=(f=p.value).attributes.schemeIdUri,f=f.attributes.value,"urn:scte:dash:cc:cea-608:2015"!=p||t.g.disableText)if("urn:scte:dash:cc:cea-708:2015"!=p||t.g.disableText)"urn:mpeg:dash:role:2011"==p?null!=f&&(l.push(f),"captions"==f&&(c="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==p&&("1"==f?w="visually impaired":"2"==f?w="hard of hearing":"9"==f&&(w="spoken subtitles"));else if(p=1,null!=f)for(m=(f=E(f.split(";"))).next();!m.done;m=f.next()){v=m.value;var A=m=void 0;
1v.includes("=")?(m="svc"+(v=v.split("="))[0],A=v[1].split(",")[0].split(":").pop()):(m="svc"+p,p++,A=v),S.set(m,tc(A))}else S.set("svc1","und");else if(p=1,null!=f)for(v=(m=E(f=f.split(";"))).next();!v.done;v=m.next()){A=v.value;var k=v=void 0;A.includes("=")?(v=(A=A.split("="))[0].startsWith("CC")?A[0]:"CC"+A[0],k=A[1]||"und"):(v="CC"+p,2==f.length?p+=2:p++,k=A),S.set(v,tc(k))}else S.set("CC1","und");h=no(r,"ContentProtection");var I=pd(t.sa,h,t.g.ignoreDrmInfo,t.g.dash.keySystemsByURI);n.va.encrypted=h.length>0;var C=tc(n.va.language||"und"),R=n.va.label,P=new Map;if(r=no(r,"Representation"),!t.g.ignoreSupplementalCodecs){for(h=[],f=(p=E(r)).next();!f.done;f=p.next())(f=np(m=f.value,"urn:scte:dash:scte214-extensions","supplementalCodecs"))&&((m=t7(m)).attributes.codecs=f.split(" ").join(","),m.attributes.id&&(m.attributes.supplementalId=m.attributes.id+"_supplementalCodecs"),h.push(m));r.push.apply(r,x(h))}if(0==(h=r.map(function(i){var r=function(t,n,i,r,a,o,s,u,l,c,d,h){n.N=fC(t,c,n.va,null);var p,f,g=n.N.id;if(t.Z=Math.min(t.Z,n.N.zb),t.R=t.Z>0,!(0==(I=+!!(k=n.N).Yd+(+!!k.Lc+ +!!k.bd))?k.contentType==tn||"application"==k.contentType:(1!=I&&(k.Yd&&(k.Lc=null),k.bd=null),!0)))return null;var m=n.ra.start;n.bandwidth=nh(c,"bandwidth",nT)||0,n.roles=u;var v=no(c,"SupplementalProperty"),y=no(c,"EssentialProperty"),b=no(c,"ContentProtection");c=null;var T=y.find(function(e){return"urn:mpeg:dash:urlparam:2014"==e.attributes.schemeIdUri});T?c=fx(t,T):(T=v.find(function(e){return"urn:mpeg:dash:urlparam:2014"==e.attributes.schemeIdUri}))&&(c=fx(t,T)),c&&(n.Sb=c),c=(T=n.N.contentType)==tn||"application"==T,T="image"==T,b.length&&(n.va.encrypted=!0);try{var w=void 0;if(i.Lg){var S=n.N.mb,A=n.Sb,E=e8(S(),[i.Lg.Jl],A()),x=rv(E,t.g.retryParameters);w={bitsKey:128,blockCipherMode:"CBC",iv:i.Lg.iv,firstMediaSequenceNumber:0,fetchKey:function(){var n,i,r;return F(function(a){if(1==a.g)return M(a,fP(t,x,6),2);if(3!=a.g){if(!(n=a.h).data||16!=n.data.byteLength)throw new eU(2,4,4049);return i={name:"AES-CBC"},r=w,M(a,e.crypto.subtle.importKey("raw",n.data,i,!0,["decrypt"]),3)}r.cryptoKey=a.h,w.fetchKey=void 0,L(a)})}}}if(n.N.aesKey=w,S=function(e,n,i,r){return fL(t,e,n,i,r)},n.N.Yd)var k,I,C,R,P,D,N,O,_,U,q,j=(C=n,R=S,P=w,D=Number(pv(C,pC,"presentationTimeOffset"))||0,N=pv(C,pC,"timescale"),O=1,N&&(O=nT(N)||1),_=D/O||0,U=pk(C,pC,P),function(e,t){if(pL(e,t),!pM(e))throw new eU(2,4,4002)}(C,U),q=t9(C),{endTime:-1,timeline:-1,hd:function(){var e=py(q,pC,"RepresentationIndex"),t=q.N.mb();return e&&(e=eJ(e.attributes.sourceURL))&&(t=e8(t,[e],q.Sb())),e=pM(q),pI(q,R,U,t,e.start,e.end,_)},timescale:O});else if(n.N.Lc)j=function(e,t,n){var i,r,a,o,s,u=pk(e,pP,n),l=(a=[(r=i=e).N.Lc,r.va.Lc,r.Aa.Lc].filter(ik).map(function(e){return no(e,"SegmentURL")}).reduce(function(e,t){return e.length>0?e:t}).map(function(e){e.attributes.indexRange&&!r.Fh&&(r.Fh=!0);var t=eJ(e.attributes.media);return{Ql:t,start:(e=nh(e,"mediaRange",ny,{start:0,end:null})).start,end:e.end}}),o=(i=pg(i,pP)).Me,0==o&&(o=1),s=0,i.pb?s=i.pb*(o-1):i.timeline&&i.timeline.length>0&&(s=i.timeline[0].start),{pb:i.pb,startTime:s,Me:o,Qb:i.Qb,timescale:i.timescale,timeline:i.timeline,Qd:a});if(!l.pb&&!l.timeline&&l.Qd.length>1||!l.pb&&!e.ra.duration&&!l.timeline&&1==l.Qd.length||l.timeline&&0==l.timeline.length)throw new eU(2,4,4002);var c=null,d=null;e.Aa.id&&e.N.id&&(d=t.get(e.Aa.id+","+e.N.id))&&(c=d.segmentIndex);var h=function(e,t,n,i,r,a,o,s,u,l){var c=i.Qd.length;i.timeline&&i.timeline.length!=i.Qd.length&&(c=Math.min(i.timeline.length,i.Qd.length));for(var d=e-i.Qb,h=t?e+t:1/0,p=[],f=i.startTime,g={},m=0;m<c;g={wg:void 0,hg:void 0},m++){g.hg=i.Qd[m];var v=f;f=void 0,f=null!=i.pb?v+i.pb:i.timeline?i.timeline[m].end:v+t,g.wg=null,(g=new aZ(e+v,e+f,function(e){return function(){return null==e.wg&&(e.wg=e8(n(),[e.hg.Ql],l())),e.wg}}(g),g.hg.start,g.hg.end,r,d,e,h,[],"",null,null,aQ,a)).codecs=s,g.mimeType=o,g.bandwidth=u,p.push(g)}return p}(e.ra.start,e.ra.duration,e.N.mb,l,u,n,e.N.mimeType,e.N.codecs,e.bandwidth,e.Sb);return t=!c,c?c.Ce(h,e.presentationTimeline.Nb()):c=new sw(h),e.presentationTimeline.Ee(h),e.Kb&&e.ra.Gf||c.Hd(e.ra.start,e.ra.duration?e.ra.start+e.ra.duration:1/0,t),d&&(d.segmentIndex=c),{endTime:-1,timeline:-1,hd:function(){return c&&0!=c.getNumReferences()||c.Pf(h),Promise.resolve(c)},timescale:l.timescale}}(n,t.u,w);else if(n.N.bd)j=pD(n,S,t.u,!!t.h,t.g.dash.initialSegmentLimit,t.ua,w,h,!1,t.D);else{var B=n.ra.duration||0,V=n.N.mb,G=n.N.mimeType,H=n.N.codecs;j={endTime:-1,timeline:-1,hd:function(){var e=sA(m,B,V());return e.Lb(function(e){e.mimeType=G,e.codecs=H}),Promise.resolve(e)},timescale:1}}}catch(e){if((c||T)&&4002==e.code)return null;throw e}if(h=new Set((h=function(e,t,n,i,r){var a=pd(e,t,i,r);if(n.Yi)e=1==n.drmInfos.length&&!n.drmInfos[0].keySystem,t=0==a.drmInfos.length,(0==n.drmInfos.length||e&&!t)&&(n.drmInfos=a.drmInfos),n.Yi=!1;else if(a.drmInfos.length>0&&(n.drmInfos=n.drmInfos.filter(function(e){return a.drmInfos.some(function(t){return t.keySystem==e.keySystem})}),0==n.drmInfos.length))throw new eU(2,4,4008);return a.Ti||n.Ti}(t.sa,b,i,t.g.ignoreDrmInfo,t.g.dash.keySystemsByURI))?[h]:[]),b=!1,v.some(function(e){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==e.attributes.schemeIdUri&&"JOC"==e.attributes.value}
1)&&(b=!0),v=!1,c&&(v=u.includes("forced_subtitle")||u.includes("forced-subtitle")),T&&((y=y.find(function(e){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(e.attributes.schemeIdUri)}))&&(p=y.attributes.value),!p))return null;c=n.N.codecs,n.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(c.includes("hvc1.2.4.L153.B0")||c.includes("hev1.2.4.L153.B0"))&&(f="PQ"),y=n.N.id?n.Aa.id+","+n.N.id:"",t.H.length&&g&&t.A.set(n.Aa.id+","+g,function(e){function t(e){return e?((e=t9(e)).Yd=null,e.Lc=null,e.bd=nM(e.bd),e.Zf=null,e):null}return(e=t9(e)).Aa=t(e.Aa),e.va=t(e.va),e.N=t(e.N),e.ra&&(e.ra=t9(e.ra),e.ra.node=null),e}(n)),n.N.Zf&&function(e,t,n,i){if(!e.aa.has(t)){e.aa.add(t);var r,a=nh(t,"presentationTime",nw)||0,o=nc(t,"UTCTiming");(r=o&&o.attributes.schemeIdUri)&&(r="urn:mpeg:dash:utc:http-ntp:2014"!==(o=o.attributes.schemeIdUri)&&"urn:mpeg:dash:utc:ntp:2014"!==o&&"urn:mpeg:dash:utc:sntp:2014"!==o),isNaN(a=(n=new Date((t=r?1e3*(nh(t,"wallClockTime",nm)||0):oh(t=nh(t,"wallClockTime",nw)||0))-a/n.timescale*1e3)).getTime()/1e3)||(i.u||i.ji(a),i=new ee("prft",i=(new Map).set("detail",{wallClockTime:t,programStartDate:n})),e.j.onEvent(i))}}(t,n.N.Zf,j,n.presentationTimeline),-1!=j.endTime&&null!=n.Aa.id&&null!=n.N.id&&((g=t.D.get(n.Aa.id))?(g.endTime=j.endTime,g.Xh.includes(n.N.id)||g.Xh.push(n.N.id),t.D.set(n.Aa.id,g)):t.D.set(n.Aa.id,{endTime:j.endTime,timeline:j.timeline,Xh:[n.N.id]}));var z=y&&t.u.has(y)?t.u.get(y):{id:t.Fa++,originalId:n.N.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){z.segmentIndex&&(z.segmentIndex.release(),z.segmentIndex=null)},segmentIndex:null,mimeType:n.N.mimeType,codecs:c,frameRate:n.N.frameRate,pixelAspectRatio:n.N.pixelAspectRatio,bandwidth:n.bandwidth,width:n.N.width,height:n.N.height,kind:r,encrypted:i.drmInfos.length>0,drmInfos:i.drmInfos,keyIds:h,language:a,originalLanguage:n.va.language,label:o,type:n.va.contentType,primary:s,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:n.N.emsgSchemeIdUris,roles:u,forced:v,channelsCount:n.N.Uf,audioSamplingRate:n.N.audioSamplingRate,spatialAudio:b,closedCaptions:l,hdr:f,colorGamut:void 0,videoLayout:void 0,tilesLayout:p,accessibilityPurpose:d,external:!1,fastSwitching:!1,fullMimeTypes:new Set([ii(n.N.mimeType,n.N.codecs)]),isAudioMuxedInVideo:!1,baseOriginalId:null};return z.createSegmentIndex=function(){var e;return F(function(t){if(1==t.g)return z.segmentIndex?t.B(0):(e=z,M(t,j.hd(),3));e.segmentIndex=t.h,L(t)})},y&&n.Kb&&!t.u.has(y)&&(n=n.Aa.id||"",t.F.has(n)||t.F.set(n,[]),t.u.set(y,z),t.F.get(n).push(y)),z}(t,n,I,c,C,R,u,l,S,i,w,T);return r&&(r.hdr=r.hdr||y,r.colorGamut=r.colorGamut||b,r.fastSwitching=g,i=i.attributes.dependencyId)?(r.baseOriginalId=i,P.set(i,r),null):r}).filter(function(e){return!!e})).length&&0==P.size){if(i="image"==n.va.contentType,t.g.dash.ignoreEmptyAdaptationSet||d||i)return null;throw new eU(2,4,4003)}if(!n.va.contentType||"application"==n.va.contentType)for(n.va.contentType=fR(h[0].mimeType,h[0].codecs),p=(d=E(h)).next();!p.done;p=d.next())p.value.type=n.va.contentType;for(d=n.va.id||"__fake__"+t.Fa++,f=(p=E(h)).next();!f.done;f=p.next()){for(f=f.value,v=(m=E(I.drmInfos)).next();!v.done;v=m.next())(v=v.value).keyIds=v.keyIds&&f.keyIds?new Set([].concat(x(v.keyIds),x(f.keyIds))):v.keyIds||f.keyIds;t.g.enableAudioGroups&&(f.groupId=d)}return r=r.map(function(e){return e.attributes.supplementalId||e.attributes.id}).filter(ik),{id:d,contentType:n.va.contentType,language:C,Qn:u,streams:h,drmInfos:I.drmInfos,Ai:i,gm:r,zk:P}}function fx(e,t){if((t=nd(t,"urn:mpeg:dash:schema:urlparam:2014","UrlQueryInfo"))&&nh(t,"useMPDUrlQuery",nA,!1)){var n=t.attributes.queryTemplate;if(n)return function(){return"$querypart$"==n?e.W:n.split("&").map(function(t){if("$querypart$"==t)return e.W;var n=/\$query:(.*?)\$/g.exec(t);if(n&&2==n.length){n=n[1];var i=new eC(e.W).get(n);if(i.length)return n+"="+i[0]}return t}).join("&")}}return null}function fk(e){var t,n;return F(function(i){switch(i.g){case 1:return t=0,R(i,2),M(i,fv(e),4);case 4:t=i.h,D(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(),fI(e,t),L(i)}})}function fI(e,t){if(!(e.K<0)){var n=e.K;e.g.updatePeriod>=0&&(n=e.g.updatePeriod),e.L.Y(Math.max(n-t,tw(e.ya)))}}function fC(e,t,n,i){n=n||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Uf:null,audioSamplingRate:null,zb:0,ig:1,encrypted:!1},i=i||n.mb;var r,a=t.attributes.id,o=t.attributes.supplementalId,s=no(t,"BaseURL"),u=!1;if(e.i)for(var l=E(s),c=l.next();!c.done;c=l.next()){var d=c.value;c=d.attributes.serviceLocation,d=nu(d),c&&d&&(pF(e.i,a,c,d),u=!0)}u&&e.i||(r=s.map(nu));var h=e.i;e=t.attributes.contentType||n.contentType,l=t.attributes.mimeType||n.mimeType,c=sK([t.attributes.codecs||n.c
1odecs]).join(","),d=nh(t,"frameRate",nE)||n.frameRate;var p=t.attributes.sar||n.pixelAspectRatio,f=function(e,t){t=t.slice(),e=E(e);for(var n=e.next();!n.done;n=e.next())n=n.value.attributes.schemeIdUri,t.includes(n)||t.push(n);return t}(no(t,"InbandEventStream"),n.emsgSchemeIdUris),g=no(t,"AudioChannelConfiguration");g=function(e){e=E(e);for(var t=e.next();!t.done;t=e.next()){var n=(t=t.value).attributes.schemeIdUri;if(n&&(t=t.attributes.value))switch(n){case"urn:mpeg:dash:outputChannelPositionList:2012":return t.trim().split(/ +/).length;case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(!(t=parseInt(t,10)))continue;return t;case"tag:dolby.com,2015:dash:audio_channel_configuration:2015":if(n=[2,1,2,2,2,2,1,2,2,1,1,1,1,2,1,1,2,2],!(t=parseInt(t,16)))continue;for(var i=0,r=0;r<n.length;r++)t&1<<r&&(i+=n[r]);if(i)return i;continue;case"tag:dolby.com,2014:dash:audio_channel_configuration:2011":case"urn:dolby:dash:audio_channel_configuration:2011":if(n=[1,1,1,1,1,2,2,1,1,2,2,2,1,2,1,1].reverse(),!(t=parseInt(t,16)))continue;for(r=i=0;r<n.length;r++)t&1<<r&&(i+=n[r]);if(i)return i;continue;case"urn:mpeg:mpegB:cicp:ChannelConfiguration":if(n=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(t=parseInt(t,10))&&t>0&&t<n.length)return n[t]}}return null}(g)||n.Uf;var m=nh(t,"audioSamplingRate",nw)||n.audioSamplingRate;e||(e=fR(l,c));var v=nc(t,"SegmentBase"),y=nc(t,"SegmentTemplate"),b=v&&nh(v,"availabilityTimeOffset",nS)||0,T=y&&nh(y,"availabilityTimeOffset",nS)||0,w=s&&s.length&&nh(s[0],"availabilityTimeOffset",nS)||0;b=n.zb+w+b+T,T=null,(w=nc(t,"SegmentSequenceProperties"))&&(w=nh(w,"cadence",nT))&&(T=w),w=t.attributes.label;var S=no(t,"Label");return S&&S.length&&ns(S=S[0])&&(w=ns(S)),{mb:function(){return e8(i(),s.length?h&&u?pV(h,a):r||[]:[])},Yd:v||n.Yd,Lc:nc(t,"SegmentList")||n.Lc,bd:y||n.bd,Zf:nc(t,"ProducerReferenceTime")||n.Zf,width:nh(t,"width",nw)||n.width,height:nh(t,"height",nw)||n.height,contentType:e,mimeType:l,codecs:c,frameRate:d,pixelAspectRatio:p,emsgSchemeIdUris:f,id:o||a,originalId:a,language:t.attributes.lang,Uf:g,audioSamplingRate:m,zb:b,Df:null,ig:T||n.ig,label:w||null,encrypted:!1}}function fM(e,t,n,i){var r,a,o,s,u,l;return F(function(c){if(1==c.g)return r=[eJ(n)],(a=rv(e8(t(),r),e.g.retryParameters)).method=i,o=e.j.networkingEngine.request(4,a,{isPreload:e.ea()}),rp(e.P,o),M(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=ez(s.data);return isNaN(l=Date.parse(u))?c.return(0):c.return(l-Date.now())})}function fL(e,t,n,i,r){var a,o,s,u;return F(function(l){return 1==l.g?(a=rw,o=+!r,s=sZ(t,n,i,e.g.retryParameters),M(l,fP(e,s,a,{type:o}),2)):(u=l.h,l.return(u.data))})}function fR(e,t){return iy(t=ii(e,t))?tn:e.split("/")[0]}function fP(e,t,n,i){return i||(i={}),i.isPreload=e.ea(),t=e.j.networkingEngine.request(n,t,i),rp(e.P,t),t.promise}function fD(){}(p=fm.prototype).configure=function(e,t){var n=this.j&&e.updatePeriod!=this.g.updatePeriod&&e.updatePeriod>=0;this.g=e,t&&(this.ea=t),n&&this.h&&this.h.presentationTimeline.U()&&this.L.Ka(),this.i&&this.i.configure(this.g),this.m&&this.m.Rj(this.g.dash.useStreamOnceInPeriodFlattening)},p.start=function(e,t){var n,i=this;return F(function(r){if(1==r.g)return i.oa=t.isLowLatencyMode(),i.C=[e],i.j=t,M(r,fv(i),2);if(n=r.h,i.j&&fI(i,n),!i.j)throw new eU(2,7,7001);return r.return(i.h)})},p.stop=function(){for(var e=E(this.u.values()),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.C=[],this.h=null,this.u.clear(),this.F.clear(),this.A.clear(),this.D.clear(),this.l={Rf:"",type:"",profiles:[],Fc:null,zb:0,mb:null,He:0},this.m=null,null!=this.L&&(this.L.stop(),this.L=null),this.i&&this.i.destroy(),this.I&&(this.I.release(),this.I=null),this.aa.clear(),this.sa.release(),this.P.destroy()},p.update=function(){var e,t=this;return F(function(n){return 1==n.g?(R(n,2),M(n,fv(t),4)):2!=n.g?D(n,0):(e=N(n),t.j&&e)?void(t.j.onError(e),L(n)):n.return()})},p.onExpirationUpdated=function(){},p.onInitialVariantChosen=function(e){if(this.h&&this.h.presentationTimeline.U()){var t=e.video||e.audio;if(t&&t.segmentIndex){e=this.h.presentationTimeline.Tc();var n=t.segmentIndex.find(e);
1null!=n&&(t=t.segmentIndex.get(n))&&(this.K=t.endTime-e,fI(this,0))}}},p.banLocation=function(e){this.i&&this.i.banLocation(e)},p.setMediaElement=function(e){this.J=e},$("shaka.dash.DashParser",fm),tB("application/dash+xml",function(){return new fm}),tB("video/vnd.mpeg.dash.mpd",function(){return new fm}),$("shaka.dependencies",fD),fD.has=function(e){return f_.has(e)},fD.add=function(e,t){if(!fO[e])throw Error(e+" is not supported");e==fN?tR("mux.js","mux.js is no longer used in Shaka Player."):f_.set(e,function(){return t})};var fN="muxjs",fO={Rn:fN,ISOBoxer:"ISOBoxer"};fD.Allowed=fO;var f_=new Map([["ISOBoxer",function(){return e.ISOBoxer}]]);function fU(){this.j=new ej(function(){return["Oculus","Quest"].some(function(e){return navigator.userAgent.includes(e.toLowerCase())})?"VR":navigator.userAgent.match(/Smart( ?|_)TV/i)||navigator.userAgent.match(/Android ?TV/i)?"TV":navigator.userAgentData?navigator.userAgentData.mobile?"MOBILE":"DESKTOP":/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)?"MOBILE":navigator.userAgentData&&navigator.userAgentData.platform?"android"==navigator.userAgentData.platform.toLowerCase()?"MOBILE":"DESKTOP":navigator.userAgent.includes("Android")?"MOBILE":"DESKTOP"}),this.l=new ej(function(){return navigator.vendor.includes("Apple")&&(navigator.userAgent.includes("Version/")||navigator.userAgent.includes("OS/"))?"WEBKIT":navigator.userAgent.includes("Edge/")?"EDGE":navigator.userAgent.includes("Chrome/")?"CHROMIUM":navigator.userAgent.includes("Firefox/")?"GECKO":"UNKNOWN"})}function fq(){var t=e.ManagedMediaSource||e.MediaSource;return!!t&&!!t.isTypeSupported}function fj(){fU.call(this),this.g=new ej(function(){var e=navigator.userAgent.match(/Version\/(\d+)/);return e||(e=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(e[1],10):null}),this.h=new ej(function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||navigator.maxTouchPoints>1?"xr"in navigator?"APPLE_VR":"MOBILE":"xr"in navigator?"APPLE_VR":"DESKTOP"})}function fB(){if(!fF())throw Error("Not a Chromecast device!");fU.call(this),this.h=new ej(function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/);return e?parseInt(e[1],10):null}),this.g=new ej(function(){var e=navigator.userAgentData&&navigator.userAgentData.platform||navigator.userAgent;return(e=e.toLowerCase()).includes("android")?fV:e.includes("fuchsia")?fG:fH})}function fF(){return navigator.userAgent.includes("CrKey")&&!navigator.userAgent.includes("VIZIO SmartCast")}(p=fU.prototype).qc=function(){return!!navigator.mediaCapabilities},p.Oa=function(){return this.j.value()},p.Ja=function(){return this.l.value()},p.Vd=function(){return!1},p.Zh=function(){return!1},p.Ef=function(){return!1},p.Dj=function(){return!1},p.Je=function(){return!1},p.wd=function(){return!0},p.Gb=function(){var t=e.ManagedSourceBuffer||e.SourceBuffer;return!!t&&!!t.prototype&&!!t.prototype.changeType},p.Ne=function(){return!0},p.Ij=function(){return 0},p.yc=function(){return Promise.resolve({width:1/0,height:1/0})},p.Tj=function(){return!1},p.ni=function(){return!1},p.bb=function(e){var t=this.Oa();return("TV"===t||"CONSOLE"===t||"CAST"===t)&&(e.ads.customPlayheadTracker=!0,e.ads.skipPlayDetection=!0,e.ads.supportsMultipleMediaElements=!1),e},p.si=function(){return!!e.indexedDB},p.Bj=function(){return[]},p.Jd=function(t){return void 0!==e.matchMedia&&e.matchMedia("(color-gamut: p3)").matches?t?"HLG":"PQ":"SDR"},p.og=function(){return!1},p.rj=function(){return!1},p.fg=function(){return!1},p.qg=function(){return!0},p.sj=function(){return!1},p.bk=function(){return!0},p.vd=function(){return!1},p.Nh=function(e){return"com.apple.fps"===e},p.pg=function(){return!0},p.toString=function(){return"Device: "+this.Wb()+" v"+this.Ha()+"; Type: "+this.Oa()},S(fj,fU),(p=fj.prototype).Ha=function(){return this.g.value()},p.Wb=function(){return"Apple Browser"},p.Oa=function(){return this.h.value()},p.Ja=function(){return"WEBKIT"},p.qc=function(){return!1},p.Vd=function(e,t){return"audio"===t},p.Ef=function(){return!0},p.Dj=function(e){return"audio"===e},p.bb=function(e){return fU.prototype.bb.call(this,e),e.abr.minTimeToSwitch=.5,e},p.og=function(){return!0},p.pg=function(){return!1},(navigator.vendor||"").includes("Apple")&&(/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||navigator.maxTouchPoints>1||navigator.userAgentData&&navigator.userAgentData.platform&&"macos"==navigator.userAgentData.platform.toLowerCase()||navigator.platform&&navigator.platform.toLowerCase().includes("mac"))&&(eF=function(){return new fj}),S(fB,fU),(p=fB.prototype).Ha=function(){return this.h.value()},p.Wb=function(){return"Chromecast with "+this.g.value()},p.Oa=function(){return"CAST"},p.Ja=function(){return"CHROMIUM"},p.qc=function(){return fU.prototype.qc.call(this)&&this.g.value()!==fH},p.Gb=function(){return fU.prototype.Gb.call(this)&&this.g.value()!==fH},p.Ij=function(){switch(this.g.value()){case fV:return 0;case fG:return 3;default:return 1}},p.yc=function(){var t,n,i,r,a;return F(function(o){switch(o.g){case 1:if(t=e.cast&&cast.__platform__&&cast.__platform__.canDisplayType,n={width:1280,height:720},R(o,2),!(i=t)){o.B(4);break}return M(o,cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160'),5);case 5:i=o.h;case 4:if(i){n.width=3840,n.height=2160,o.B(6);break}if(!(r=t)){o.B(7);break}return M(o,cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=1920; height=1080'),8);case 8:r=o.h;case 7:r&&(n.width=1920,n.height=1080);case 6:D(o,3);break;case 2:a=N(o),er("Failed to check canDisplayType:",a);case 3:return o.return(n)}})},p.bb=function(e){return fU.prototype.bb.call(this,e),e.streaming.stallSkip=0,e},p.si=function(){return!1},p.vd=function(){return!0};var fV="Android",fG="Fuchsia",fH="Linux";function fz(){fU.call(this);var e=this;this.i=new ej(function(){var e=navigator.userAgent.match(/(Chrome|Firefox)\/(\d+)/);return e?parseInt(e[2],10):null}),this.g=new ej(function(){return navigator.userAgent.match(/Edge?\//)?"Edge":navigator.userAgent.includes("Chrome")?"Chrome":navigator.userAgent.includes("Firefox")?"Firefox":"Unknown"}),this.h=new ej(function(){return navigator.userAgentData&&navigator.userAgentData.platform?"windows"==navigator.userAgentData.platform.toLowerCase():!!navigator.platform&&navigator.platform.toLowerCase().includes("win32")}),this.A=new ej(function(){return!!fU.prototype.Gb.call(e)&&(!navigator.userAgent.match(/Edge?\//)||!e.h.value())}),this.u=new ej(function(){return navigator.userAgent.includes("sony.hbbtv.tv")}),this.m=new ej(function(){return navigator.userAgentData&&navigator.userAgentData.platform?"android"==navigator.userAgentData.platform.toLowerCase():!!navigator.userAgent.includes("Android")})}function fK(){fU.apply(this,arguments)}function fW(){fU.call(this),this.g=new ej(function(){var e=navigator.userAgent.match(/PlayStation (\d+)/);return e?parseInt(e[1],10):null})}function fX(){fU.call(this);var e=navigator.userAgent.match(/Tizen (\d+).(\d+)/);this.g=e?parseInt(e[1],10):null,this.h=e?parseInt(e[2],10):null}function fY(){fU.apply(this,arguments)}function fZ(){fU.call(this),this.i=new ej(function(){return navigator.userAgent.includes("DT_STB_BCM")||navigator.userAgent.includes("Sky_STB")}),this.h=new ej(function(){return navigator.userAgent.includes("SOPOpenBrowser")}),this.g=new ej(function(){if(navigator.userAgent.includes("DT_STB_BCM"))return 11;var e=navigator.userAgent.match(/Version\/(\d+)/);return e||(e=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(e[1],10):null})}function fJ(){fU.call(this);var e=this;this.h=function(){var e=null,t=navigator.userAgent.match(/Chrome\/(\d+)/);switch(t&&(e=parseInt(t[1],10)),e){case 38:return 3;case 53:return 4;case 68:return 5;case 79:return 6;case 87:return 22;case 94:return 23;case 108:return 24;case 120:return 25;default:return null}}(),this.g=null;try{var t=new PalmServiceBridge;
1t.onservicecallback=function(t){e.g=(t=JSON.parse(t)).configs["tv.model.supportHDR"]||t.configs["tv.config.supportDolbyHDRContents"]||!1},t.call("luna://com.webos.service.config/getConfigs",JSON.stringify({configNames:["tv.model.supportHDR","tv.config.supportDolbyHDRContents"]}))}catch(e){ea("WebOS: getConfigs call failed",e)}}if(fF()&&(eF=function(){return new fB}),S(fz,fU),(p=fz.prototype).Ha=function(){return this.i.value()},p.Wb=function(){return this.g.value()},p.Vd=function(e){return!!i6(e)&&"Edge"===this.g.value()&&this.h.value()},p.Zh=function(){return"Edge"===this.g.value()&&this.h.value()},p.Ef=function(){return"Edge"===this.g.value()&&this.h.value()},p.Gb=function(){return this.A.value()},p.bb=function(e){if(fU.prototype.bb.call(this,e),this.h.value())switch(this.g.value()){case"Firefox":e.drm.keySystemsMapping={"com.microsoft.playready":"com.microsoft.playready.recommendation"};break;case"Chrome":e.drm.keySystemsMapping={"com.microsoft.playready":"com.microsoft.playready.recommendation.3000","com.microsoft.playready.recommendation":"com.microsoft.playready.recommendation.3000"}}return this.m.value()&&(e.drm.defaultAudioRobustnessForWidevine="",e.drm.defaultVideoRobustnessForWidevine=""),e},p.fg=function(){return"Edge"===this.g.value()||this.u.value()},p.vd=function(){if("GECKO"===this.Ja()){var e=this.Ha();return null!==e?e>=100:fU.prototype.vd.call(this)}return fU.prototype.vd.call(this)},p.Nh=function(e){return"GECKO"===this.Ja()?e.startsWith("com.microsoft.playready.recommendation"):fU.prototype.Nh.call(this,e)},eV=function(){return new fz},S(fK,fU),(p=fK.prototype).Ha=function(){return null},p.Wb=function(){return"Hisense"},p.Oa=function(){return"TV"},p.qc=function(){return!1},p.yc=function(){var t={width:1920,height:1080},n=null;if(e.Hisense_Get4KSupportState)try{n=e.Hisense_Get4KSupportState()}catch(e){}return null==n&&(n=navigator.userAgent.includes("UHD")),n&&(t.width=3840,t.height=2160),Promise.resolve(t)},p.bb=function(e){return fU.prototype.bb.call(this,e),e.streaming.stallSkip=0,e},(navigator.userAgent.includes("Hisense")||navigator.userAgent.includes("VIDAA"))&&(eF=function(){return new fK}),S(fW,fU),(p=fW.prototype).Wb=function(){return"PlayStation"},p.Oa=function(){return"CONSOLE"},p.Ja=function(){return"WEBKIT"},p.Ha=function(){return this.g.value()},p.qc=function(){return!1},p.wd=function(){return!1},p.Gb=function(){return!1},p.ni=function(){return 4===this.Ha()},p.yc=function(){var t,n,i;return F(function(r){switch(r.g){case 1:return t={width:1920,height:1080},n=!1,R(r,2),M(r,e.msdk.device.getDisplayInfo(),4);case 4:case 7:n="4K"===r.h.resolution,D(r,3);break;case 2:return N(r),R(r,5),M(r,e.msdk.device.getDisplayInfoImmediate(),7);case 5:i=N(r),ea("PlayStation: Failed to get the display info:",i);case 3:return n&&(t.width=3840,t.height=2160),r.return(t)}})},p.bb=function(e){return fU.prototype.bb.call(this,e),4===this.Ha()&&e.drm.preferredKeySystems.push("com.microsoft.playready"),e.streaming.clearDecodingCache=!0,e},p.fg=function(){return 4===this.Ha()},p.qg=function(){return 4!==this.Ha()},navigator.userAgent.includes("PlayStation")&&(eF=function(){return new fW}),S(fX,fU),(p=fX.prototype).Ha=function(){return this.g},p.Wb=function(){return"Tizen"},p.Ja=function(){return"CHROMIUM"},p.Oa=function(){return"TV"},p.Vd=function(){return!0},p.Je=function(){return 3===this.Ha()},p.qc=function(){return!1},p.wd=function(){var e=this.Ha();return null!==e?e>=4:fU.prototype.wd.call(this)},p.Gb=function(){return!1},p.Ne=function(){return this.g&&this.h?5===this.g?this.h>=5:this.g>5:fU.prototype.Ne.call(this)},p.yc=function(){var t=e.devicePixelRatio;t={width:e.screen.width*t>1920?3840:1920,height:e.screen.height*t>1080?2160:1080};try{if(webapis.systeminfo&&webapis.systeminfo.getMaxVideoResolution){var n=webapis.systeminfo.getMaxVideoResolution();t.width=n.width,t.height=n.height}else 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){ea("Tizen: Error detecting screen size, default screen size 1920x1080.")}return Promise.resolve(t)},p.bb=function(e){return fU.prototype.bb.call(this,e),e.drm.ignoreDuplicateInitData=2!==this.Ha(),3===this.Ha()&&(e.streaming.crossBoundaryStrategy="reset_to_encrypted"),e.streaming.shouldFixTimestampOffset=!0,e.streaming.stallSkip=0,e.streaming.gapPadding=2,e},p.Bj=function(){var e=[];return null!==this.g&&this.g<5&&e.push("opus"),e},p.Jd=function(e){try{if(webapis.avinfo.isHdrTvSupport())return e?"HLG":"PQ"}catch(t){return fU.prototype.Jd.call(this,e)}return"SDR"},p.rj=function(){return!0},p.sj=function(){return 3===this.Ha()},navigator.userAgent.includes("Tizen")&&(eF=function(){return new fX}),S(fY,fU),fY.prototype.Ha=function(){return null},fY.prototype.Wb=function(){return"Vizio"},fY.prototype.Oa=function(){return"TV"},fY.prototype.qc=function(){return!1},navigator.userAgent.includes("VIZIO SmartCast")&&(eF=function(){return new fY}),S(fZ,fU),(p=fZ.prototype).Ha=function(){return this.g.value()},p.Wb=function(){return"WebKit STB"},p.Oa=function(){return"TV"},p.Ja=function(){return"WEBKIT"},p.qc=function(){return!1},p.wd=function(){var e=this.g.value();return null===e||e>=15},p.Vd=function(){return this.h.value()},p.yc=function(){return Promise.resolve({width:e.screen.width*e.devicePixelRatio,height:e.screen.height*e.devicePixelRatio})}
1,p.qg=function(){return!this.i.value()},p.pg=function(){return!1},(navigator.userAgent.includes("SOPOpenBrowser")||navigator.userAgent.includes("DT_STB_BCM")||navigator.userAgent.includes("Sky_STB")||!(!(navigator.vendor||"").includes("Apple")||/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||navigator.maxTouchPoints>1||navigator.userAgentData&&navigator.userAgentData.platform&&"macos"==navigator.userAgentData.platform.toLowerCase()||navigator.platform&&navigator.platform.toLowerCase().includes("mac")))&&(eF=function(){return new fZ}),S(fJ,fU),(p=fJ.prototype).Ha=function(){return this.h},p.Wb=function(){return"WebOS"},p.Oa=function(){return"TV"},p.Ja=function(){return"CHROMIUM"},p.qc=function(){return!1},p.wd=function(){var e=this.Ha();return null!==e?e>3:fU.prototype.wd.call(this)},p.Gb=function(){return!1},p.Ne=function(){var e=this.Ha();return null!==e?e>3:fU.prototype.Ne.call(this)},p.yc=function(){var t={width:1920,height:1080};try{var n=JSON.parse(e.PalmSystem.deviceInfo);t.width=Math.max(1920,n.screenWidth),t.height=Math.max(1080,n.screenHeight)}catch(e){ea("WebOS: Error detecting screen size, default screen size 1920x1080.")}return Promise.resolve(t)},p.bb=function(e){return fU.prototype.bb.call(this,e),3===this.Ha()&&(e.streaming.crossBoundaryStrategy="reset"),e.streaming.shouldFixTimestampOffset=!0,e.streaming.stallSkip=0,e},p.Jd=function(e){return null==this.g?(ea("WebOS: getConfigs call haven't finished"),fU.prototype.Jd.call(this,e)):this.g?e?"HLG":"PQ":"SDR"},p.bk=function(){return!1},p.vd=function(){var e=this.Ha();return null!==e?e>=6:fU.prototype.vd.call(this)},navigator.userAgent.includes("Web0S")){var fQ=new fJ;eF=function(){return fQ}}function f$(){fU.call(this),this.g=navigator.userAgent.includes("Edge/");var e=navigator.userAgent.match(/Edge?\/(\d+)/);this.h=e?parseInt(e[1],10):null}function f0(){var e=null;try{e="u">typeof Windows?Windows:chrome.webview.hostObjects.sync.Windows}catch(e){}return e}function f1(e,t,n){this.type=e,this.ka=t,this.segments=n||null}function f2(e,t,n,i){this.id=e,this.name=t,this.attributes=n,this.value=void 0===i?null:i}function f5(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 f3(e,t){return(e=e.attributes.filter(function(e){return e.name==t})).length?e[0]:null}function f4(e,t,n){return(e=f3(e,t))?e.value:n||null}function f8(e,t){if(!(e=f3(e,t)))throw new eU(2,4,4023,t);return e.value}function f6(e,t,n){n=void 0===n?[]:n,this.ka=t,this.g=e,this.Hc=n}function f7(e,t){this.name=e,this.value=t}function f9(e,t){return e.filter(function(e){return e.name==t})}function ge(e,t){return e.filter(function(e){return f8(e,"TYPE")==t})}function gt(e,t){e=E(e);for(var n=e.next();!n.done;n=e.next())if((n=n.value).name===t)return n;return null}function gn(e,t,n){return n=void 0===n?0:n,(e=gt(e,t))?Number(e.value):n}function gi(e,t,n){return t?gr(e,[t],n):[]}function gr(e,t,n){if(!t.length)return[];var i=t;return n&&n.size&&(i=t.map(function(e){return ga(e,n)})),e8(e,i)}function ga(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=E(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 eU(2,4,4039,r)}}return e}function go(){this.g=0}function gs(e,t){var n=(t=(t=ez(t)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim()).split(/\n+/m);if(!gc.test(n[0]))throw new eU(2,4,4015);t=0;for(var i=!1,r=[],a=!0,o=0;o<n.length;o++){var s=n[o],u=n[o+1];if(s.startsWith("#")&&!s.startsWith("#EXT")||a)a=!1;else{if(s=gu(e,s),i||(gp.has(s.name)?(t=1,i=!0):"EXT-X-STREAM-INF"==s.name||"EXT-X-MEDIA"==s.name?i=!0:gf.has(s.name)&&(t=1,i=!0)),gf.has(s.name)){if(1!=t)throw new eU(2,4,4017);a=e,e=Array(Math.max(100,Math.floor((n.length-o)/2))),i=0,s=[];var l=[];for(u=null;o<n.length;o++){var c=n[o];c.startsWith("#EXT")?(c=gu(a,c),gp.has(c.name)?r.push(c):"EXT-X-MAP"==c.name?u=c:"EXT-X-PART"==c.name?l.push(c):"EXT-X-PRELOAD-HINT"==c.name?"PART"==f4(c,"TYPE")?l.push(c):"MAP"==f4(c,"TYPE")&&(c.name="EXT-X-MAP",u=c):s.push(c)):(!c.startsWith("#")||c.startsWith("#EXT"))&&(c=c.trim(),u&&s.push(u),s=new f6(c,s,l),i<e.length?e[i++]=s:(e.push(s),i++),s=[],l=[])}return l.length&&(u&&s.push(u),n=new f6("",s,l),i<e.length?e[i++]=n:(e.push(n),i++)),new f1(t,r,i<e.length?e.slice(0,i):e)}r.push(s),"EXT-X-STREAM-INF"==s.name&&(s.attributes.push(new f7("URI",u)),a=!0)}}return new f1(t,r)}function gu(e,t){e=e.g++;var n,i,r=t.match(gl);if(!r)throw new eU(2,4,4016,t);t=r[1];var a=r[2];if(r=[],a)for(a=new t0(a),gd.lastIndex=0,(i=t2(a,gd))&&(n=i[1]),gh.lastIndex=0,i=t2(a,gh);i;)r.push(new f7(i[1],i[2]||i[3])),t1(a),i=t2(a,gh);return new f2(e,t,r,n)}S(f$,fU),(p=f$.prototype).Ha=function(){return this.h},p.Wb=function(){return"Xbox"},p.Oa=function(){return"CONSOLE"},p.Ja=function(){return this.g?"EDGE":"CHROMIUM"},p.Vd=function(){return!0},p.Zh=function(){return!0},p.Ef=function(){return!0},p.Tj=function(){return this.g}
1,p.yc=function(){var e={width:1920,height:1080},t=f0();if(t)try{var n=new t.Media.Protection.ProtectionCapabilities,i=t.Media.Protection.ProtectionCapabilityResult;t=null;do t=n.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(t===i.maybe);t===i.probably&&(e.width=3840,e.height=2160)}catch(e){ea("Xbox: Error detecting screen size, default screen size 1920x1080.")}return Promise.resolve(e)},p.bb=function(e){return fU.prototype.bb.call(this,e),e.drm.parseInbandPsshEnabled=this.g,e.drm.preferredKeySystems.push("com.microsoft.playready"),this.g&&(e.streaming.gapPadding=.01),e},p.fg=function(){return!0},p.si=function(){return!1},(navigator.userAgent.includes("Xbox One")||null!==f0())&&(eF=function(){return new f$}),f2.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),n.length>0&&(t+=":"+n.join(",")),t};var gl=/^#(EXT[^:]*)(?::(.*))?$/,gc=/^#EXTM3U($|[ \t\n])/m,gd=/^([^,=]+)(?:,|$)/g,gh=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g,gp=new Set("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(" ")),gf=new Set("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 gg(){}function gm(e,t){try{var n=gv(e);return rl({uri:e,originalUri:e,data:n.data,headers:{"content-type":n.contentType},originalRequest:t})}catch(e){return rs(e)}}function gv(t){var n=t.split(":");if(n.length<2||"data"!=n[0]||(n=n.slice(1).join(":").split(",")).length<2)throw new eU(2,1,1004,t);var i=n[0];t=e.decodeURIComponent(n.slice(1).join(",")),i=(n=i.split(";"))[0];var r=!1;return n.length>1&&"base64"==n[n.length-1]&&(r=!0,n.pop()),{data:r?e2(t):eX(t),contentType:i}}function gy(){var t=this;this.g=this.h=null,this.G=1,this.C=new Map,this.L=new Map,this.D=new Map,this.D.set("video",new Map),this.D.set("audio",new Map),this.D.set(tn,new Map),this.D.set("image",new Map),this.mc=(new Map).set("com.apple.streamingkeydelivery",function(n,i,r){var a,o,s,u,l,c,d,h,p;return a=t,o=n,s=i,u=r,F(function(t){if(1==t.g){if("video/mp2t"==s)throw new eU(2,4,4040);if("apple"===e.shakaMediaKeysPolyfill)throw new eU(2,4,4041);if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(l=f8(o,"METHOD")))return t.return(null);c="cenc","SAMPLE-AES"==l&&(c="cbcs"),d=f8(o,"URI"),h=e6("com.apple.fps",c,[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}],d);var n=new eg(d).Jb.replace(/-/g,"").toLowerCase();return(p=32===n.length&&/^[0-9a-f]+$/.test(n)?n:null)||!u?t.B(2):M(t,g5(a,u),3)}
1return 2!=t.g&&(p=t.h),p&&h.keyIds.add(p),t.return(h)})}).set("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",function(e){var n=f8(e,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(n)){var i="cenc";"SAMPLE-AES"==n&&(i="cbcs");var r=f8(e,"URI");n=gv(r.split("?")[0]),r=r.split("?")[0],t.I.has(r)||(n=eD(n.data),t.I.set(r,n)),i=e6("com.widevine.alpha",i,[{initDataType:"cenc",initData:t.I.get(r)}]),(e=f4(e,"KEYID"))&&i.keyIds.add(e.toLowerCase().substr(2)),e=Promise.resolve(i)}else e=Promise.resolve(null);return e}).set("com.microsoft.playready",function(e){var t=f8(e,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)){var n="cenc";"SAMPLE-AES"==t&&(n="cbcs"),e=eD((e=gv((e=f8(e,"URI")).split("?")[0])).data),n=e6("com.microsoft.playready",n,[{initDataType:"cenc",initData:t=rG(e,t=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]),new Set,0)}]),(e=nn(["<PLAYREADY>",e1(e),"</PLAYREADY>"].join("\n")))&&(n.licenseServerUri=pu(e)),n=Promise.resolve(n)}else n=Promise.resolve(null);return n}).set("urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c",function(e){var n=f8(e,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(n)){var i="cenc";"SAMPLE-AES"==n&&(i="cbcs");var r=f8(e,"URI");n=gv(r.split("?")[0]),r=r.split("?")[0],t.I.has(r)||(n=eD(n.data),t.I.set(r,n)),i=e6("com.huawei.wiseplay",i,[{initDataType:"cenc",initData:t.I.get(r)}]),(e=f4(e,"KEYID"))&&i.keyIds.add(e.toLowerCase().substr(2)),e=Promise.resolve(i)}else e=Promise.resolve(null);return e}),this.jb=new Set,this.i=new Map,this.l=null,this.H="",this.hb=new go,this.M=-1,this.aa=1/0,this.Z=this.Kc=this.ib=!1,this.F=new iA(function(){t.V&&!t.g.continueLoadingWhenPaused&&(t.T.Ea(t.V,"timeupdate"),t.V.paused)?t.T.qa(t.V,"timeupdate",function(){return gJ(t)}):gJ(t)}),this.Fa=mt,this.m=null,this.$a=0,this.u=1/0,this.Na=this.La=this.R=0,this.W=new rh,this.J=new Map,this.K=new Map,this.ya=new Map,this.oa=new Map,this.O=new Map,this.sa=new Map,this.ua=new Map,this.Jc=this.ea=!1,this.Pb=new tT(5),this.j=null,this.P=!0,this.T=new tI,this.A=this.V=null,this.lc=function(){return!1},this.I=new Map}function gb(e,t){return gQ(e)?e.D.get(t.type):t.Of}function gT(e,t,n){n=void 0!==n&&n;for(var i=-1==e.M,r=E(t),a=r.next();!a.done;a=r.next()){var o=(a=a.value).stream.segmentIndex,s=gb(e,a);if(o=sS(o)){s=E(s);for(var u=s.next();!u.done;u=s.next()){var l=(u=E(u.value)).next().value;if(u.next().value==o.startTime){i&&(e.M=Math.max(e.M,l)),a.Zg=l;break}}}}if(!(e.M<0))for(i=(t=E(t)).next();!i.done;i=t.next())(gD(e,(i=i.value).type)||n)&&(r=i.stream.segmentIndex)&&(a=e.M-i.Zg)>0&&(r.g.splice(0,a),r=sS(r))&&(r=-r.startTime,i.stream.segmentIndex.offset(r),gw(e,i,r))}function gw(e,t,n){if(!(.001>Math.abs(n))){t.nd+=n,t.Zc+=n,e=gb(e,t);for(var i=E(e),r=i.next();!r.done;r=i.next()){var a=E(r.value);r=a.next().value,a=a.next().value,e.set(r,a+n)}t.S()}}function gS(e,t,n){var i,r,a,o,s;return F(function(u){switch(u.g){case 1:if(!t)return u.return({mimeType:null,data:null});return i=rw,r=sZ(t.S(),t.Uc(),t.Sc(),e.g.retryParameters),M(u,g0(e,r,i,{type:+(t instanceof aZ)}).promise,2);case 2:if(o=(a=u.h).data,!t.aesKey){u.B(3);break}return M(u,sW(o,t.aesKey,n),4);case 4:o=u.h;case 3:return t instanceof aZ?t.Le(o,!0):t.Le(o),(s=a.headers["content-type"])&&(s=s.split(";")[0].toLowerCase()),u.return({mimeType:s,data:o})}})}function gA(e){if(gQ(e)){if(e.Fa==mi){for(var t=1/0,n=1/0,i=E(e.i.values()),r=i.next();!r.done;r=i.next())(r=r.value).stream.segmentIndex&&"text"!=r.stream.type&&!r.stream.isAudioMuxedInVideo&&(t=Math.min(t,r.Zc),n=Math.min(n,r.nd));t=t-n||0,isNaN(e.g.availabilityWindowOverride)||(t=e.g.availabilityWindowOverride),e.l.lg(t)}}else e.l.Fb(gL(e));if(!e.l.u)for(n=(t=E(e.i.values())).next();!n.done;n=t.next())!(n=n.value).stream.segmentIndex||"audio"!=n.type&&"video"!=n.type||(n=sS(n.stream.segmentIndex))&&n.h&&e.l.ji(n.h);e.l.Nf()}function gE(e,t,n){n=new eg(n).g;var i=new Map;t=E(t);for(var r=t.next();!r.done;r=t.next()){var a=r.value,o=f4(a,"NAME"),s=f4(a,"VALUE");r=f4(a,"QUERYPARAM"),a=f4(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.C.get(a))&&i.set(a,r)}return i}function gx(e){var t=new Set([ii(e.mimeType,e.codecs)]);e.segmentIndex&&e.segmentIndex.Lb(function(n){n.mimeType&&t.add(ii(n.mimeType,e.codecs))}),e.fullMimeTypes=t}function gk(e,t){return e.Z=(t=f4(t,"CODECS")||"").length>0,e.Z||e.g.hls.disableCodecGuessing||(t=[],e.g.disableVideo||t.push(e.g.hls.defaultVideoCodec),e.g.disableAudio||t.push(e.g.hls.defaultAudioCodec),t=t.join(",")),sK(t.split(/\s*,\s*/))}function gI(e,t,n,i){i=void 0===i||i;for(var r,a,o,s,u=[],l=[],c=new Map,d=E(t),h=d.next(),p={};!h.done;p={hj:void 0},h=d.next())h=h.value,p.hj=++e.G,p=function(e){return function(){return"shaka://hls-muxed"+e.hj}}(p),p=i?f8(h,"URI"):f4(h,"URI")||p(),h=f8(h,"GROUP-ID"),u.push(p),l.push(h),c.set(h,p);if(i=l.sort().join(","),h=t[0],t="","subtitles"==(r=f8(r=h,"TYPE").toLowerCase())&&(r=tn),(d=r)==tn)t=f4(h,"CODECS")||"";else for(p=(l=E(l)).next();!p.done;p=l.next())if(p=p.value,e.K.has(p)){t=e.K.get(p);break}if(l=u.sort().join(","),"audio"==d&&i&&(l+=i),e.i.has(l))return e.i.get(l);if(p=e.G++,e.j){c=E(c);for(var f=c.next();!f.done;f=c.next()){var g=E(f.value);f=g.next().value,g=g.next().value,(f=n.get(f))&&pF(e.j,p,f,g)}}n=f4(h,"LANGUAGE"),c=f4(h,"NAME"),f="YES"==f4(h,"DEFAULT"),g="audio"==d&&(a=f4(a=h,"CHANNELS"))?parseInt(a.split("/")[0],10):null;var m="audio"==d&&!!(o=f4(o=h,"CHANNELS"))&&2==(o=o.split("/")).length&&("JOC"===o[1]||o[1].includes("ATMOS")),v=f4(h,"CHARACTERISTICS"),y="YES"==f4(h,"FORCED");return h="audio"==d&&(s=f4(s=h,"SAMPLE-RATE"))?parseInt(s,10):null,(u=gM(e,p,u,t,d,n,f,c,g,null,v,y,h,m)).stream&&e.g.enableAudioGroups&&(u.stream.groupId=i),e.L.has(i)?e.L.get(i).push(u):e.L.set(i,[u]),e.i.set(l,u),u}function gC(e,t){var n="video",i=f8(t,"URI"),r=f4(t,"CODECS")||"";if("mjpg"==r&&(n="image"),e.i.has(i))return e.i.get(i);var a=f4(t,"LANGUAGE"),o=f4(t,"NAME"),s=f4(t,"CHARACTERISTICS");
1return n=gM(e,e.G++,[i],r,n,a,!1,o,null,null,s,!1,null,!1),r=(a=E((r=f4(t,"RESOLUTION"))?r.split("x"):[null,null])).next().value,a=a.next().value,n.stream.width=Number(r)||void 0,n.stream.height=Number(a)||void 0,(t=f4(t,"BANDWIDTH"))&&(n.stream.bandwidth=Number(t)),e.i.set(i,n),n}function gM(e,t,n,i,r,a,o,s,u,l,c,d,h,p){function f(){return e.j&&n.length>1?pV(e.j,t):v.cg.concat(gr([e.H],n,e.C))}var g=g_(e,i,r,a,o,s,u,l,c,d,h,p);n.some(function(e){return e.startsWith("shaka://hls-muxed")})&&(g.isAudioMuxedInVideo=!0,g.mimeType="video/mp2t",gx(g));var m,v={stream:g,type:r,cg:[],nd:0,Zc:0,Of:new Map,pf:!1,nf:!1,ue:!1,Zg:-1,ac:-1,bc:-1,S:f},y=null;return g.createSegmentIndex=function(){return y||(g.isAudioMuxedInVideo?(g.segmentIndex=new sw([]),Promise.resolve()):(m=gZ(e,v.S(),!0),y=new Promise(function(t){var n,y,b,T,w,S,A,x,k,I,C,P,O,_,U,q,j;t((n=m,F(function(t){switch(t.g){case 1:return y=ti,R(t,2),M(t,n.promise,4);case 4:if(b=t.h,n.aborted)return t.return();if((T=b.uri)!=b.originalUri&&(v.S().includes(T)||v.cg.push(T)),1!=(w=gs(e.hb,b.data)).type)throw new eU(2,4,4017);return S=gE(e,f9(w.ka,"EXT-X-DEFINE"),T),A=!1,(!e.Z&&e.g.hls.disableCodecGuessing||e.P&&r==y.Ga&&!e.g.hls.disableClosedCaptionsDetection)&&w.segments.length>0&&(e.P=!1,A=!0),x=!e.Z&&e.g.hls.disableCodecGuessing,k=gQ(e),M(t,gN(e,0,S,w,f,i,r,a,o,s,u,l,c,d,h,p,void 0,A,x),5);case 5:if(I=t.h,n.aborted)return t.return();C=I.stream,gj(e,w),gQ(e)&&!k&&gF(e,w),v.nd=I.nd,v.Zc=I.Zc,v.pf=I.pf,v.nf=I.nf,v.ue=I.ue,v.Of=I.Of,v.ac=I.ac,v.bc=I.bc,g.segmentIndex=C.segmentIndex,g.encrypted=C.encrypted,g.drmInfos=C.drmInfos,g.keyIds=C.keyIds,g.mimeType=C.mimeType,g.bandwidth=g.bandwidth||C.bandwidth,g.codecs=g.codecs||C.codecs,g.closedCaptions=g.closedCaptions||C.closedCaptions,g.width=g.width||C.width,g.height=g.height||C.height,g.hdr=g.hdr||C.hdr,g.colorGamut=g.colorGamut||C.colorGamut,g.frameRate=g.frameRate||C.frameRate,"und"==g.language&&"und"!=C.language&&(g.language=C.language),g.language=g.language||C.language,g.channelsCount=g.channelsCount||C.channelsCount,g.audioSamplingRate=g.audioSamplingRate||C.audioSamplingRate,gx(g),g.drmInfos.length&&e.h.newDrmInfo(g),P=!1,(!l&&g.closedCaptions||l&&g.closedCaptions&&l.size!=g.closedCaptions.size)&&(P=!0),e.m&&P&&e.h.makeTextStreamsForClosedCaptions(e.m),r==y.Va&&(O=sS(C.segmentIndex))&&O.ia&&(g.mimeType="application/mp4",gx(g)),_=sP(g),g.segmentIndex.Lb(function(e){e.ia&&(e.ia.Pd=_)}),function(e){if(!e.m)return!1;var t=[],n=[];e=E(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(!(t.length>0)||!!t.some(function(e){return e.segmentIndex}))&&(!(n.length>0)||!!n.some(function(e){return e.segmentIndex}))}(e)&&(e.Kc?gP(e,[v]):(e.Kc=!0,U=Array.from(e.i.values()).filter(function(e){return e.stream.segmentIndex}),gP(e,U),gA(e),(q=e.u)>0&&e.F.Y(q))),gH(e,w.ka,g.type,S,f),e.m&&(e.m.startTime=e.A),D(t,0);break;case 2:if(j=N(t),g.closeSegmentIndex(),7001===j.code)return t.return();if(!e.h.disableStream(g))throw j;L(t)}})))})))},g.closeSegmentIndex=function(){y&&!g.segmentIndex&&m.abort(),g.segmentIndex&&(g.segmentIndex.release(),g.segmentIndex=null),y=null},v}function gL(e){var t=1/0;e=E(e.i.values());for(var n=e.next();!n.done;n=e.next())(n=n.value).stream.segmentIndex&&"text"!=n.stream.type&&!n.stream.isAudioMuxedInVideo&&(t=Math.min(t,n.Zc));return t}function gR(e,t){var n=[];t=E(t);for(var i=t.next();!i.done;i=t.next())(i=i.value).segmentIndex&&i.segmentIndex.Lb(function(e){n.push(e)});e.l.Ee(n)}function gP(e,t){if(!gQ(e))for(var n=gL(e),i=E(t),r=i.next();!r.done;r=i.next())r.value.stream.segmentIndex.Hd(0,n);gR(e,t.map(function(e){return e.stream})),n=(i=Array.from(e.i.values()).filter(function(e){return e.stream.segmentIndex})).some(function(e){return"audio"==e.stream.type}),r=i.some(function(e){return"video"==e.stream.type}),i=gQ(e)&&!e.ib,n=!gQ(e)&&e.ib&&!(n&&r),e.g.hls.ignoreManifestProgramDateTime||i||n?gT(e,t,i):(function(e,t){if(e.aa==1/0){t=E(t);for(var n=t.next();!n.done;n=t.next())null!=(n=sS(n.value.stream.segmentIndex))&&null!=n.h&&(e.aa=Math.min(e.aa,n.h))}if((t=e.aa)!=1/0){n=E(e.i.values());for(var i=n.next();!i.done;i=n.next())if(!gD(e,(i=i.value).type)){var r=i.stream.segmentIndex;if(null!=r){var a=sS(r);if(a)if(null==a.h)er("Missing EXT-X-PROGRAM-DATE-TIME for stream",i.S(),"Expect AV sync issues!");else for(gw(e,i,a.h-t-a.startTime),r=(i=E(r)).next();!r.done;r=i.next())r.value.ti(t)}}}}(e,t),e.g.hls.ignoreManifestProgramDateTimeForTypes.length>0&&gT(e,t))}function gD(e,t){return!!e.g.hls.ignoreManifestProgramDateTime||e.g.hls.ignoreManifestProgramDateTimeForTypes.includes(t)}function gN(e,t,n,i,r,a,o,s,u,l,c,d,h,p,f,g,m,v,y){var b,T,w,S,A,x,k,I,C,L,P,O,_,U,q,j,B,V,G,H,z,K,W,X,Y,Z;return v=void 0===v||v,y=void 0===y||y,F(function(t){var J,Q,$,ee,et,en,ei,er,ea,eo,es,eu,el,ec,ed,eh,ep,ef,eg,em,ev,ey,eb,eT,ew,eS,eA,eE,ex,ek,eI,eC,eM,eL,eR;switch(t.g){case 1:if(T=(b=i.segments||[]).every(function(e){return!!gt(e.ka,"EXT-X-GAP")}),!b.length||T)throw new eU(2,4,4053);if(ef=e,em=gt((eg=i).ka,"EXT-X-PLAYLIST-TYPE"),eg=gt(eg.ka,"EXT-X-ENDLIST"),eg=em&&"VOD"==em.value||eg,em=em&&"EVENT"==em.value&&!eg,em=!eg&&!em,eg?g$(ef,mt):em?g$(ef,mi):g$(ef,mn),gQ(e)&&gB(e,i),w=gQ(e)?e.D.get(o):new Map,A=(S=gz(e,i,w,n,r,o)).segments,x=S.bandwidth,P=L=C=I=k=null,!(A.length>0&&v)){t.B(2);break}return M(t,(J=e,Q=A,F(function(e){if(1==e.g)return($=sz(J.g.hls.mediaPlaylistFullMimeType),Q.length)?(et=(ee=gX(J,Q)).segment,en=ee.segmentIndex,(ei=sY(et.
1S()[0]))&&(er=g3.get(ei)))?e.return(sz(er)):M(e,Promise.all([gS(J,et.ia,0),gS(J,et,en)]),2):e.return($);if(eo=(ea=e.h)[1].mimeType,es=ea[0].data,eu=ea[1].data,el="mp4 mp4a m4s m4i m4a m4f cmfa mp4v m4v cmfv fmp4".split(" "),ec=["audio/mp4","video/mp4","video/iso.segment"],!(ed=et.ia||ec.includes(eo))&&oC(eD(eu))){var t=eu,n=J.g.disableAudio,i=J.g.disableVideo,r=J.g.disableText,a=eD(t),o=(new oE).parse(a),s=o.qe();a=o.Bh();var u=[],l=!1,c=!1;if(!n)switch(s.audio){case"aac":case"aac-loas":o.Bb().length&&(u.push("mp4a.40.2"),l=!0);break;case"mp3":o.Bb().length&&(u.push("mp4a.40.34"),l=!0);break;case"ac3":o.Bb().length&&(u.push("ac-3"),l=!0);break;case"ec3":o.Bb().length&&(u.push("ec-3"),l=!0);break;case"opus":o.Bb().length&&(u.push("opus"),l=!0)}if(!i)switch(s.video){case"avc":a.codec?u.push(a.codec):u.push("avc1.42E01E"),c=!0;break;case"hvc":a.codec?u.push(a.codec):u.push("hvc1.1.6.L93.90"),c=!0;break;case"av1":u.push("av01.0.01M.08"),c=!0}if(u.length){if(n=l&&!c,i=new Map,c&&!r){for((r=new tK("video/mp2t")).Xf(t),c=(t=E(r.Dg())).next();!c.done;c=t.next())c=c.value,i.set(c,c);r.ge()}a={type:n?"audio":"video",mimeType:"video/mp2t",codecs:u.join(", "),language:null,height:a.height,width:a.width,channelCount:null,sampleRate:null,closedCaptions:i,Qe:null,colorGamut:null,frameRate:a.frameRate}}else a=null;if(eh=a)return e.return(eh)}
1else if((ed||el.includes(ei))&&(ep=function(e,t,n){function i(e){o=e.name;var t=e.reader;t.skip(24);var n=t.Ia(),i=t.Ia();t.skip(50),p=String(n),h=String(i),e.reader.Qa()&&rP(e)}function r(e){var t=ab(e.reader);f=t.channelCount,g=t.sampleRate,a(e.name)}function a(e){switch(e=e.toLowerCase()){case"avc1":case"avc3":u.push(e+".42E01E"),c=!0;break;case"hev1":case"hvc1":u.push(e+".1.6.L93.90"),c=!0;break;case"dvh1":case"dvhe":u.push(e+".05.04"),c=!0;break;case"vp09":u.push(e+".00.10.08"),c=!0;break;case"av01":u.push(e+".0.01M.08"),c=!0;break;case"mp4a":s.push("mp4a.40.2"),l=!0;break;case"ac-3":case"ec-3":case"ac-4":case"opus":case"flac":s.push(e),l=!0;break;case"apac":s.push("apac.31.00"),l=!0}}var o,s=[],u=[],l=!1,c=!1,d=null,h=null,p=null,f=null,g=null,m=null,v=null;if((new rR).box("moov",rP).box("trak",rP).box("mdia",rP).X("mdhd",function(e){d=av(e.reader,e.version).language}).box("minf",rP).box("stbl",rP).X("stsd",rD).box("mp4a",function(e){var t=ab(e.reader);f=t.channelCount,g=t.sampleRate,e.reader.Qa()?rP(e):a(e.name)}).box("esds",function(e){e=e.reader;for(var t,n,i="mp4a";e.Qa();){t=e.ba();for(var r=e.ba();128&r;)r=e.ba();if(3==t)e.Ia(),128&(r=e.ba())&&e.Ia(),64&r&&e.skip(e.ba()),32&r&&e.Ia();else if(4==t)n=e.ba(),e.skip(12);else if(5==t)break}n&&(i+="."+aw(n),5==t&&e.Qa()&&(31==(n=(248&(t=e.ba()))>>3)&&e.Qa()&&(n=32+((7&t)<<3)+((224&e.ba())>>5)),i+="."+n)),s.push(i),l=!0}).box("ac-3",r).box("ec-3",r).box("ac-4",r).box("Opus",r).box("fLaC",r).box("apac",r).box("avc1",i).box("avc3",i).box("hev1",i).box("hvc1",i).box("dva1",i).box("dvav",i).box("dvh1",i).box("dvhe",i).box("vp09",i).box("av01",i).box("avcC",function(e){var t=o||"";switch(o){case"dvav":t="avc3";break;case"dva1":t="avc1"}(e=e.reader).skip(1),e=t+"."+aw(e.ba())+aw(e.ba())+aw(e.ba()),u.push(e),c=!0}).box("hvcC",function(e){var t=o||"";switch(o){case"dvh1":t="hvc1";break;case"dvhe":t="hev1"}var n=e.reader;n.skip(1);var i=["","A","B","C"][(e=n.ba())>>6],r=31&e,a=n.$(),s=(32&e)>>5?"H":"L";e=[n.ba(),n.ba(),n.ba(),n.ba(),n.ba(),n.ba()],n=n.ba();for(var l=0,d=0;d<32&&(l|=1&a,31!=d);d++)l<<=1,a>>=1;for(t=t+"."+i+r+"."+aw(l,!0)+("."+s)+n,i="",r=e.length;r--;)((s=e[r])||i)&&(i="."+s.toString(16).toUpperCase()+i);t+=i,u.push(t),c=!0}).box("dvcC",function(e){var t=o||"";switch(o){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.ba(),n=n.ba(),u.push(t+"."+aS(e>>1&127)+"."+aS(e<<5&32|n>>3&31)),c=!0}).box("dvvC",function(e){var t=o||"";switch(o){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.ba(),n=n.ba(),u.push(t+"."+aS(e>>1&127)+"."+aS(e<<5&32|n>>3&31)),c=!0}).X("vpcC",function(e){var t=o||"",n=e.reader;e=n.ba();var i=n.ba();n=n.ba()>>4&15,u.push(t+"."+aS(e)+"."+aS(i)+"."+aS(n)),c=!0}).box("av1C",function(e){var t=o||"";"dav1"===o&&(t="av01");var n=e.reader;n.skip(1),e=n.ba(),n=n.ba();var i=e>>>5,r=(64&n)>>6;u.push(t+"."+i+"."+aS(31&e)+(n>>>7?"H":"M")+"."+aS(2===i&&r?(32&n)>>5?12:10:r?10:8)+"."+((16&n)>>4)+"."+((8&n)>>3)+((4&n)>>2)+(3&n)+"."+aS(1)+"."+aS(1)+"."+aS(1)+".0"),c=!0}).box("enca",rO).box("encv",rN).box("sinf",rP).box("frma",function(e){a(e=aT(e.reader).codec)}).box("colr",function(e){u=u.map(function(t){if(t.startsWith("av01.")){var n=e.reader,i=n.Wa(),r=n.cc(4,!1),a=String.fromCharCode(r[0]);if(a+=String.fromCharCode(r[1]),a+=String.fromCharCode(r[2]),"nclx"===(a+=String.fromCharCode(r[3]))){r=n.Ia(),a=n.Ia();var o=n.Ia(),s=n.ba()>>7,u=t.split(".");10==u.length&&(u[6]=aS(r),u[7]=aS(a),u[8]=aS(o),u[9]=String(s),t=u.join("."))}n.seek(i)}return t});var t=function(e){var t=null,n=null,i=e.cc(4,!1),r=String.fromCharCode(i[0]);if(r+=String.fromCharCode(i[1]),r+=String.fromCharCode(i[2]),"nclx"===(r+=String.fromCharCode(i[3]))){switch(e.Ia()){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.Ia(),e.Ia(),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,Qe:n}
1}(e.reader),n=t.colorGamut;m=t.Qe,v=n}).parse(e||t,!0,!0),!s.length&&!u.length)return null;var y=l&&!c,b=new Map;if(c&&!n){n=new tK("video/mp4"),e&&n.init(e);try{n.Xf(t);for(var T=E(n.Dg()),w=T.next();!w.done;w=T.next()){var S=w.value;b.set(S,S)}}catch(e){}n.ge()}return{type:y?"audio":"video",mimeType:y?"audio/mp4":"video/mp4",codecs:sK(s.concat(u)).join(", "),language:d,height:h,width:p,channelCount:f,sampleRate:g,closedCaptions:b,Qe:m,colorGamut:v,frameRate:null}}(es,eu,J.g.disableText)))return e.return(ep);return eo?e.return(sz(eo)):e.return($)})),3);case 3:O=t.h,o!=O.type&&gQ(e)&&(e.D.set(O.type,e.D.get(o)),e.D.set(o,new Map)),o=O.type,s=O.language,c=O.channelCount,f=O.sampleRate,e.g.disableText||(d=O.closedCaptions),I=O.height,k=O.width,C=O.Qe,L=O.colorGamut,P=O.frameRate,y&&(m=O.mimeType,a=O.codecs);case 2:if(m){t.B(4);break}return M(t,(ev=e,ey=o,eb=a,eT=A,F(function(e){switch(e.g){case 1:if(ew=rw,2==(eS=gX(ev,eT).segment).status)return e.return(gW(ey));if((ex=sY((eE=eS.S())[0]))&&((ek=g9.get(ey).get(ex))||(ek=g3.get(ex))))return e.return(ek);if(eA=gK(ey,eb))return e.return(eA);return eC=1,eM=rv(eE,ev.g.retryParameters),R(e,2),eM.method="HEAD",M(e,g0(ev,eM,ew,{type:eC}).promise,4);case 4:eI=(eL=e.h).headers["content-type"],D(e,3);break;case 2:if(!(eR=N(e))||1002!=eR.code&&1001!=eR.code){e.B(3);break}return eM.method="GET",ev.g.hls.allowRangeRequestsToGuessMimeType&&(eM.headers.Range="bytes=0-0"),M(e,g0(ev,eM,ew,{type:eC}).promise,6);case 6:eI=(eL=e.h).headers["content-type"];case 3:if(!eI){e.B(7);break}if("application/octet-stream"!=(eA=eI.toLowerCase().split(";")[0])){e.B(8);break}if(eL.data.byteLength){e.B(9);break}return eM.method="GET",M(e,g0(ev,eM,ew,{type:eC}).promise,10);case 10:eL=e.h;case 9:oC(eD(eL.data))&&(eA="video/mp2t");case 8:if("application/octet-stream"!=eA)return e.return(eA);case 7:return e.return(gW(ey))}})),5);case 5:m=t.h,o!=tn||a||"application/mp4"!=m||!A[0]||A[0].ia||(m="text/vtt");case 4:return M(t,gU(e,i,m,r,n),6);case 6:if(U=(_=t.h).drmInfos,q=_.keyIds,j=_.encrypted,B=_.Ii,j&&!U.length&&!B)throw new eU(2,4,4026);return(V=g_(e,a,o,s,u,l,c,d,h,p,f,g)).encrypted=j&&!B,V.drmInfos=U,V.keyIds=q,V.mimeType=m,x&&(V.bandwidth=x),gx(V),"video"==o&&(k||I||C||L)&&gY(V,k,I,P,C,null,L),gQ(e)&&gB(e,i),G=A[0].startTime,H=A[A.length-1].endTime,V.segmentIndex=new sw(A),K=!!(z=gt(i.ka,"EXT-X-SERVER-CONTROL"))&&null!=f3(z,"CAN-SKIP-UNTIL"),W=!!z&&null!=f3(z,"CAN-BLOCK-RELOAD"),Y=(X=gO(gn(i.ka,"EXT-X-MEDIA-SEQUENCE",0),A)).ac,Z=X.bc,t.return({stream:V,type:o,cg:[],S:r,nd:G,Zc:H,pf:K,nf:W,ue:!1,Zg:-1,ac:Y,bc:Z,Of:w})}})}function gO(e,t){e=e+t.length-1;var n=-1;if(!t.length)return{ac:++e,bc:n};var i=(t=t[t.length-1]).g;return t.g.length?(n=i.length-1,i[i.length-1].isPreload()||(e++,n=0)):(e++,t.u&&(n=0)),{ac:e,bc:n}}function g_(e,t,n,i,r,a,o,s,u,l,c,d){var h=gK(n,t)||gW(n),p=[];if(u){u=E(u.split(","));for(var f=u.next();!f.done;f=u.next())p.push(f.value)}return f=void 0,u=null,n==tn?f=p.includes("public.accessibility.transcribes-spoken-dialog")&&p.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":p.includes("public.accessibility.describes-video")&&(u="visually impaired"),p.length||"subtitle"!==f||p.push("subtitle"),f=null,"video"!=n&&(f=a),gx(e={id:e.G++,originalId:a,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:h,codecs:t,kind:n==tn?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:tc(i||"und"),originalLanguage:i,label:f,type:n,primary:r,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:p,forced:l,channelsCount:o,audioSamplingRate:c,spatialAudio:d,closedCaptions:s,hdr:void 0,colorGamut:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:u,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null}),e}function gU(e,t,n,i,r){var a,o,s,u,l,c,d,h,p,f,g,m,v,y,b,T,w,S,A,x,k,I,C,L,R,P,D,N;return F(function(O){switch(O.g){case 1:if(a=new Map,!e.g.ignoreDrmInfo&&t.segments){for(s=(o=E(t.segments)).next();!s.done;s=o.next())if(l=f9((u=s.value).ka,"EXT-X-KEY"),c=null,l.length)for(c=gV(e,t,u.ka,i,r),h=(d=E(l)).next();!h.done;h=d.next())p=h.value,a.set(p,c)}g=f=!1,m=[],v=new Set,b=(y=E(a)).next();case 2:if(b.done){O.B(4);break}if(w=(T=E(b.value)).next().value,S=T.next().value,A=w,x=S,"NONE"==(k=f8(A,"METHOD"))){O.B(3);break}if(f=!0,I=f4(A,"KEYFORMAT")||"identity",C=null,g1(k)){g=!0,O.B(3);break}if("identity"==I)return M(O,g2(e,A,n,i,x,r),11);if(!(L=e.mc.get(I))){R=null,O.B(9);break}return M(O,L(A,n,x),10);case 10:R=O.h;case 9:C=R,O.B(6);break;case 11:C=O.h;case 6:if(C){if(C.keyIds)for(D=(P=E(C.keyIds)).next();!D.done;D=P.next())N=D.value,v.add(N);m.push(C)}case 3:b=y.next(),O.B(2);break;case 4:return O.return({drmInfos:m,keyIds:v,encrypted:f,Ii:g})}})}function gq(t,n,i,r,a){if(!e.crypto||!e.crypto.subtle)throw ea("Web Crypto API is not available to decrypt AES. (Web Crypto only exists in secure origins like https)"),new eU(2,4,4042);var o=0,s=f4(n,"IV","");if(s){var u=e5(s.substr(2));if(16!=u.byteLength)throw new eU(2,4,4048)}else o=gn(i.ka,"EXT-X-MEDIA-SEQUENCE",0);var l=gi(r(),f8(n,"URI"),a),c=l.sort().join("");if(i=n.toString()+"-"+o+"-"+c,!t.oa.has(i)){var d={bitsKey:128,blockCipherMode:"CBC",iv:u,f
1irstMediaSequenceNumber:o};switch(f8(n,"METHOD")){case"AES-256":d.bitsKey=256;break;case"AES-256-CTR":d.bitsKey=256,d.blockCipherMode="CTR"}d.fetchKey=function(){var n,i,r,a;return F(function(o){if(1==o.g)return t.O.has(c)||(n=rv(l,t.g.retryParameters),i=g0(t,n,6).promise,t.O.set(c,i)),M(o,t.O.get(c),2);if(3!=o.g){if(!(r=o.h).data||r.data.byteLength!=d.bitsKey/8)throw new eU(2,4,4049);return a={name:"CTR"==d.blockCipherMode?"AES-CTR":"AES-CBC",length:d.bitsKey},M(o,e.crypto.subtle.importKey("raw",r.data,a,!0,["decrypt"]),3)}d.cryptoKey=o.h,d.fetchKey=void 0,L(o)})},t.oa.set(i,d)}return t.oa.get(i)}function gj(e,t){null==e.A&&(t=gt(t.ka,"EXT-X-START"))&&(e.A=Number(f8(t,"TIME-OFFSET")))}function gB(e,t){var n=1/0,i=t.segments;if(i.length)for(var r=i.length-1;r>=0;){var a=gt(i[r].ka,"EXTINF");if(a){n=Number(a.value.split(",")[0]);break}r--}if(!(i=gt(t.ka,"EXT-X-TARGETDURATION")))throw new eU(2,4,4024,"EXT-X-TARGETDURATION");i=Number(i.value),(r=gt(t.ka,"EXT-X-PART-INF"))&&(e.R=Number(f8(r,"PART-TARGET"))),t=gt(t.ka,"EXT-X-SERVER-CONTROL"),e.ea&&e.R?(e.u=e.Jc?5*e.R<=n?Math.min(e.R,e.u):Math.min(n,e.u):Math.min(e.R,e.u),e.Na=t?Number(f8(t,"PART-HOLD-BACK")):0):(e.u=Math.min(n,e.u),e.La=(n=t?f3(t,"HOLD-BACK"):null)?Number(n.value):0),e.$a=Math.max(i,e.$a)}function gF(e,t){var n=0;if(e.g.defaultPresentationDelay)n=e.g.defaultPresentationDelay;else if(e.Na)n=e.Na;else if(e.La)n=e.La;else for(var i=t.segments.length,r=i-Math.min(i,e.g.hls.liveSegmentsDelay);r<i;r++){var a=gt(t.segments[r].ka,"EXTINF");n=a?n+Number(a.value.split(",")[0]):n+e.$a}e.A&&e.A<0&&(n=Math.min(-e.A,n),e.A+=n),e.l.Qj(0),e.l.gi(n),e.l.td(!1)}function gV(e,t,n,i,r){var a=gt(n,"EXT-X-MAP");if(!a)return null;var o=f8(a,"URI"),s=gi(i(),o,r);if(o=[s.toString(),f4(a,"BYTERANGE","")].join("-"),!e.ya.has(o)){var u,l,c,d,h,p,f,g=void 0,m=null,v=!1;n=E(n);for(var y=n.next();!y.done;y=n.next())"EXT-X-KEY"==(y=y.value).name?g1(v=f8(y,"METHOD"))&&y.id<a.id?(v=!1,g=gq(e,y,t,i,r)):v="NONE"!=v:"EXT-X-BYTERANGE"==y.name&&y.id<a.id&&(m=y);u=s,l=a,c=m,d=g,h=v,p=0,f=null,(l=f4(l,"BYTERANGE"))||!c||(l=c.value),l&&(f=Number((p=l.split("@"))[0]),f=(p=Number(p[1]))+f-1,d&&(c=f+1-p)%16&&(f+=16-c%16)),t=new aX(function(){return u},p,f,null,null,null,d,h),e.ya.set(o,t)}return e.ya.get(o)}function gG(e,t){var n=0,i=null;return t&&(t=Number((n=t.split("@"))[0]),i=(n=n[1]?Number(n[1]):e.endByte+1)+t-1),[n,i]}function gH(e,t,n,i,r){if("video"==n||"audio"==n){var a=e.l.m;if(a&&!gD(e,n))for(t=(t=f9(t,"EXT-X-DATERANGE")).filter(function(e){return null!=f3(e,"START-DATE")}).sort(function(e,t){return(e=f8(e,"START-DATE"))<(t=f8(t,"START-DATE"))?-1:+(e>t)}),n=0;n<t.length;n++){var o=t[n];try{var s=f8(o,"START-DATE"),u=nm(s);if(!isNaN(u)){var l=Math.max(0,u-a),c=null,d=f4(o,"END-DATE");if(d){var h=nm(d);if(!isNaN(h)&&(c=h-a)<0)continue}if(null==c){var p=f4(o,"DURATION")||f4(o,"PLANNED-DURATION");if(p){var f=parseFloat(p);if(isNaN(f)||(c=l+f),u-a+f<0)continue}}var g=f4(o,"CLASS")||"com.apple.quicktime.HLS",m="YES"==f4(o,"END-ON-NEXT");if(null==c&&m){for(var v=n+1;v<t.length;v++){var y=f4(t[v],"CLASS")||"com.apple.quicktime.HLS";if(g==y){var b=f8(t[v],"START-DATE"),T=nm(b);if(!isNaN(T)&&T&&T>u){c=Math.max(0,T-a);break}}}if(null==c)continue}v=["CLASS","START-DATE","END-DATE","DURATION","END-ON-NEXT"];for(var w=[],S=E(o.attributes),A=S.next();!A.done;A=S.next()){var x=A.value;if(!v.includes(x.name)){var k=ga(x.value,i);("X-ASSET-URI"==x.name||"X-ASSET-LIST"==x.name)&&(k=gi(r(),x.value,i)[0]),w.push({key:x.name,description:"",data:k,mimeType:null,pictureType:null})}}w.length>1&&e.h.onMetadata(g,l,c,w)}}catch(e){}}}}function gz(t,n,i,r,a,o){var s=n.segments,u=null,l=null,c=null,d=null,h=void 0,p=gn(n.ka,"EXT-X-DISCONTINUITY-SEQUENCE",-1),f=gn(n.ka,"EXT-X-MEDIA-SEQUENCE",0),g=gt(n.ka,"EXT-X-SKIP"),m=g?Number(f4(g,"SKIPPED-SEGMENTS")):0,v=f+m,y=0;gQ(t)&&i.has(v)&&(y=i.get(v)),0===y&&t.Fa==mi&&i.size>0&&!i.has(v)&&null!=t.l.i&&(y=t.l.Nb());var b=[],T=null;g=[];for(var w=0;w<s.length;w++){var S=s[w];(v=gt(S.ka,"EXT-X-MAP"))&&v.id!==l&&(u=gV(t,n,S.ka,a,r),l=v.id);var A="";(v=S.g)&&(A=sY(v)),A!==d&&(c=function(e){if(!(e=sY(e)))return null;var t=g9.get(o).get(e);return t||(t=g3.get(e)),t}(v),d=A),A=0==w?y:T.endTime,v=f+m+w,gt(S.ka,"EXT-X-DISCONTINUITY")&&(p++,T&&T.ia&&(T.ia.g=A));for(var x=E(S.ka),k=x.next();!k.done;k=x.next())"EXT-X-KEY"==(k=k.value).name&&(h=g1(f8(k,"METHOD"))?gq(t,k,n,a,r):void 0);if(i.set(v,A),A=function(t,n,i,r,a,o,s,u,l,c){var d=r.ka,h=gt(d,"EXTINF"),p=0,f=0,g=null;r.Hc.length&&(t.m.isLowLatency=!0);var m=null;if(i&&i.h)m=i.h+i.endTime-i.startTime;else if(!t.g.hls.ignoreManifestProgramDateTime){var v=gt(d,"EXT-X-PROGRAM-DATE-TIME");v&&v.value&&(m=nm(v.value),t.ib=!0)}var y=aQ;if(gt(d,"EXT-X-GAP")&&(t.m.gapCount++,y=2),!h){if(0==r.Hc.length)throw new eU(2,4,4024,"EXTINF");if(!t.ea)return null}var b=[];v=!1;var T=null,w=!1,S=!1;if(t.ea&&r.Hc.length){p=n&&e.ReadableStream&&t.g.hls.allowLowLatencyByteRangeOptimization;for(var A=m,x={},k=0;k<r.Hc.length;x={yg:void 0,Ge:void 0},k++){var I=r.Hc[k],C=0==k?i:b[b.length-1],M=0==k?a:C.endTime,L=Number(f4(I,"DURATION"))||t.R;if(L){var R=M+L,P=0,D=null;
1if("EXT-X-PRELOAD-HINT"==I.name?(P=(P=f4(I,"BYTERANGE-START"))?Number(P):0,(C=f4(I,"BYTERANGE-LENGTH"))?D=P+Number(C)-1:P&&(D=Number.MAX_SAFE_INTEGER)):(P=(D=E(gG(C,P=f4(I,"BYTERANGE")))).next().value,D=D.next().value),x.Ge=f4(I,"URI"),x.Ge){C=aQ,"YES"==f4(I,"GAP")&&(t.m.gapCount++,C=2,w=!0),x.yg=null;var N=function(e){return function(){return null==e.yg&&(e.yg=gi(u(),e.Ge,o)),e.yg}}(x);p&&P>=0&&null!=D&&(T=N,v=!0),M=new aZ(M,R,N,P,D,n,0,0,1/0,[],"",null,A,C,c),"EXT-X-PRELOAD-HINT"==I.name&&(M.Mh(),S=!0),"YES"!=f4(I,"INDEPENDENT")&&k>0&&M.Od(),(I=l)||(b.length&&b[0].mimeType?I=b[0].mimeType:x.Ge&&(x=sY(x.Ge),I=g9.get(s).get(x)||null)),I&&(M.mimeType=I,me.has(I)&&(M.ia=null)),b.push(M),A&&(A+=L)}}}}if(h){if(0==(h=Number(h.value.split(",")[0])))return null;p=a+h}else{if(!b.length)return null;p=b[b.length-1].endTime}v&&(w||0!=b[0].startByte?(v=!1,T=null):b=[]),(h=gt(d,"EXT-X-BYTERANGE"))?(f=(g=E(gG(i,h.value))).next().value,g=g.next().value):b.length&&(f=b[0].startByte,g=b[b.length-1].endByte),i="",h=null,"image"==s&&(i="1x1",s=gt(d,"EXT-X-TILES"))&&(i=f8(s,"LAYOUT"),(s=f4(s,"DURATION"))&&(h=Number(s)));var O=null;return n=new aZ(a,p,function(){return T?T():(null==O&&(O=gi(u(),r.g,o)),O||[])},f,g,n,0,0,1/0,b,i,h,m,y,c,b.length>0&&!!r.g),l&&(n.mimeType=l,me.has(l)&&(n.ia=null)),v&&(t.Jc=!0,n.oj(),S&&n.Mh()),n}(t,u,T,S,A,r,o,a,c,h)){if((T=gn(S.ka,"EXT-X-BITRATE"))?(g.push({bitrate:T,duration:A.endTime-A.startTime}),A.bandwidth=T):A.endByte?(S=aJ(A))&&(S=8*S/(T=A.endTime-A.startTime)/1e3,g.push({bitrate:S,duration:T}),A.bandwidth=S):g.length&&(T=g.pop(),T.duration+=A.endTime-A.startTime,g.push(T),A.bandwidth=T.bitrate),A.bandwidth)for(S=(T=E(A.g)).next();!S.done;S=T.next())S.value.bandwidth=A.bandwidth;T=A,A.i=p,gD(t,o)&&null!=t.M&&v<t.M||b.push(A)}}if(n=void 0,g.length&&(n=g.reduce(function(e,t){return e+t.duration},0),n=Math.round(g.reduce(function(e,t){return e+t.bitrate*t.duration},0)/n*1e3)),g=b.some(function(e){return null!=e.h})){for(i={},r=0;r<b.length;i={uf:void 0,tf:void 0,kf:void 0,qd:void 0,jf:void 0},r++)if(i.qd=b[r],null==i.qd.h)for(i.tf=0,i.uf=r,a=function(e){return function(){var t=b[e.uf];if(t){if(null!=t.h)return t.h+e.tf;e.tf-=t.endTime-t.startTime,e.uf+=1}return null}}(i),i.jf=0,i.kf=r,s=function(e){return function(){var t=b[e.kf];if(t){if(t!=e.qd&&(e.jf+=t.endTime-t.startTime),null!=t.h)return t.h+e.jf;--e.kf}return null}}(i);null==i.qd.h;)i.qd.h=s(),null==i.qd.h&&(i.qd.h=a())}if(g)for(r=(i=E(b)).next();!r.done;r=i.next())for(r=(a=r.value).h,s=(a=E(a.g)).next();!s.done;s=a.next())(s=s.value).h=r,r+=s.endTime-s.startTime;if(i=t.aa,g&&i!=1/0&&!gD(t,o))for(g=(t=E(b)).next();!g.done;g=t.next())g.value.ti(i);return{segments:b,bandwidth:n}}function gK(e,t){if(e==tn){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 gW(e){return e==tn?"text/vtt":g9.get(e).get("mp4")}function gX(e,t){e=gQ(e)?Math.trunc((t.length-1)/2):0;for(var n=t[e];2==n.Vc()&&e+1<t.length;)n=t[++e];return{segment:n,segmentIndex:e}}function gY(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 gZ(e,t,n){return g0(e,rv(t,e.g.retryParameters),0,{type:n?2:3})}function gJ(e){var t,n,i,r,a;return F(function(o){switch(o.g){case 1:if(!e.h)return o.return();return R(o,2),t=Date.now(),M(o,e.update(),4);case 4:n=Date.now(),gQ(e)&&(i=(n-t)/1e3,e.Pb.sample(1,i),r=Math.max(0,(e.g.updatePeriod>0?e.g.updatePeriod:e.u)-tw(e.Pb)),e.F.Y(r)),D(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.F.Y(.1);case 3:if(!e.h)return o.return();e.h.onManifestUpdated(),L(o)}})}function gQ(e){return e.Fa!=mt}function g$(e,t){e.Fa=t,e.l&&e.l.td(!gQ(e)),gQ(e)||e.F.stop()}function g0(e,t,n,i){if(!e.W)throw new eU(2,7,7001);return i||(i={}),i.isPreload=e.lc(),t=e.h.networkingEngine.request(n,t,i),rp(e.W,t),t}function g1(e){return"AES-128"==e||"AES-256"==e||"AES-256-CTR"==e}function g2(t,n,i,r,a,o){var s,u,l,c,d,h,p,f,g,m;return F(function(v){switch(v.g){case 1:if("video/mp2t"==i)throw new eU(2,4,4040);if("apple"===e.shakaMediaKeysPolyfill)throw new eU(2,4,4041);if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(s=f8(n,"METHOD")))return v.return(null);if((u=gi(r(),f8(n,"URI"),o))[0].startsWith("data:text/plain;base64,")){l=e3(e2(u[0].split("data:text/plain;base64,").pop())),v.B(2);break}
1return c=u.sort().join(""),t.sa.has(c)||(d=rv(u,t.g.retryParameters),h=g0(t,d,6).promise,t.sa.set(c,h)),M(v,t.sa.get(c),3);case 3:l=e3(v.h.data);case 2:if(p="00000000000000000000000000000000",!a){v.B(4);break}return M(v,g5(t,a),5);case 5:(f=v.h)&&(p=f);case 4:return(g=new Map).set(p,l),m="cenc","SAMPLE-AES"==s&&(m="cbcs"),v.return(e7(g,m))}})}function g5(e,t){var n,i,r;return F(function(a){var o,s;return 1==a.g?(n=null,e.ua.has(t))?(n=e.ua.get(t),a.B(2)):(i=sZ(t.S(),t.Uc(),t.Sc(),e.g.retryParameters),M(a,g0(e,i,rw,{type:0}).promise,3)):(2!=a.g&&(r=a.h,t.Le(r.data),o=r.data,s=null,(new rR).box("moov",rP).box("trak",rP).box("mdia",rP).box("minf",rP).box("stbl",rP).X("stsd",rD).box("encv",rN).box("enca",rO).box("sinf",rP).box("schi",rP).X("tenc",function(e){(e=e.reader).ba(),e.ba(),e.ba(),e.ba(),s=e3(e=e.cc(16,!1))}).parse(o,!0),n=s,e.ua.set(t,n)),a.return(n))})}$("shaka.net.DataUriPlugin",gg),gg.parse=gm,rg("data",gm),(p=gy.prototype).configure=function(e,t){var n=this.h&&e.updatePeriod!=this.g.updatePeriod&&e.updatePeriod>=0;this.g=e,t&&(this.lc=t),this.j&&this.j.configure(this.g),n&&this.m&&this.m.presentationTimeline.U()&&this.F.Ka()},p.start=function(e,t){var n,i=this;return F(function(r){var a,o,s,u,l,c,d,h,p,f,g,m,v,y,b,T,w,S,A,k,I,C,P,D,O,_,U,q,j,B,V,G,H,z,K,W,X,Y,Z,J,Q,$,et,en;return 1==r.g?(i.h=t,i.ea=t.isLowLatencyMode(),M(r,gZ(i,[e]).promise,2)):3!=r.g?(i.H=(n=r.h).uri,M(r,(a=i,o=n.data,F(function(e){var t,n,i,r,ei,er,ea,eo,es,eu,el,ec,ed,eh,ep,ef,em,ev,ey,eb,eT,ew,eS,eA,eE,ex,ek,eI,eC,eM,eL,eR,eP,eD,eN,eO,e_,eq,ej,eB,eF,eV,eG,eH,ez,eK,eW,eX,eY,eZ,eJ,eQ,e$,e0,e1,e2,e5;switch(e.g){case 1:if(s=ti,l=f9((u=gs(a.hb,o)).ka,"EXT-X-DEFINE"),c=[],d=[],h=[],a.l=new o7(null,0),a.l.td(!0),p=function(){return[a.H]},f=null,g=new Map,1==u.type)return a.P=!1,g=gE(a,f9(u.ka,"EXT-X-DEFINE"),a.H),f=s.Ga,z="",K=new Map,M(e,gN(a,a.G++,g,u,p,"",f,z,!0,"Media Playlist",null,K,null,!1,null,!1),7);return function(e,t){var n=new eg(e.H).g;t=E(t);for(var i=t.next();!i.done;i=t.next()){var r=i.value;i=f4(r,"NAME");var a=f4(r,"VALUE");r=f4(r,"QUERYPARAM"),i&&a&&(e.C.has(i)||e.C.set(i,a)),r&&(i=n.get(r)[0])&&!e.C.has(i)&&e.C.set(r,i)}}(a,l),m=f9(u.ka,"EXT-X-MEDIA"),v=f9(u.ka,"EXT-X-STREAM-INF"),y=f9(u.ka,"EXT-X-IMAGE-STREAM-INF"),b=f9(u.ka,"EXT-X-I-FRAME-STREAM-INF"),T=f9(u.ka,"EXT-X-SESSION-KEY"),w=f9(u.ka,"EXT-X-SESSION-DATA"),S=f9(u.ka,"EXT-X-CONTENT-STEERING"),function(e,t){t=E(t);for(var n=t.next();!n.done;n=t.next()){var i=n.value,r=f4(i,"DATA-ID");n=f4(i,"URI");var a=f4(i,"LANGUAGE");i=f4(i,"VALUE"),r=(new Map).set("id",r),n&&r.set("uri",gi([e.H],n,e.C)[0]),a&&r.set("language",a),i&&r.set("value",i),n=new ee("sessiondata",r),e.h&&e.h.onEvent(n)}}(a,w),M(e,(t=a,n=S,F(function(e){if(!t.h||!t.g)return e.return();for(ei=(r=E(n)).next();!ei.done;ei=r.next())if(ea=f4(er=ei.value,"PATHWAY-ID"),eo=f4(er,"SERVER-URI"),ea&&eo){t.j=new pj(t.h),t.j.configure(t.g),t.j.i=[t.H],t.j.setManifestType("HLS"),t.j.h=ea,i=pB(t.j,eo);break}return M(e,i,0)})),4);case 4:if(!a.g.ignoreSupplementalCodecs){for(A=[],I=(k=E(v)).next(),C={};!I.done;C={Zj:void 0},I=k.next())(D=f4(P=I.value,"SUPPLEMENTAL-CODECS"))&&(C.Zj=D.split(/\s*,\s*/).map(function(e){return e.split("/")[0]}),O=P.attributes.map(function(e){return function(t){var n=t.name,i=t.value;return"CODECS"==n&&(i=e.Zj.join(","),(t=t.value.split(",")).length>1&&(t=te("audio",t))&&(i+=","+t)),new f7(n,i)}}(C)),A.push(new f2(P.id,P.name,O,null)));for(v.push.apply(v,x(A)),_=[],q=(U=E(b)).next(),j={};!q.done;j={$j:void 0},q=U.next())(V=f4(B=q.value,"SUPPLEMENTAL-CODECS"))&&(j.$j=V.split(/\s*,\s*/).map(function(e){return e.split("/")[0]}),G=B.attributes.map(function(e){return function(t){var n=t.name;return t=t.value,"CODECS"==n&&(t=e.$j.join(",")),new f7(n,t)}}(j)),_.push(new f2(B.id,B.name,G,null)));b.push.apply(b,x(_))}return function(e,t){t=E(t);for(var n=t.next();!n.done;n=t.next()){var i=n.value,r=f4(i,"AUDIO");n=f4(i,"VIDEO");var a=f4(i,"SUBTITLES");if(i=gk(e,i),a){var o=te(tn,i);e.K.set(a,o),tE(i,o)}r&&((a=te("audio",i))||(a=e.g.hls.defaultAudioCodec),e.K.set(r,a)),n&&((r=te("video",i))||(r=e.g.hls.defaultVideoCodec),e.K.set(n,r))}}(a,v),function(e,t){e.P=0==(t=ge(t,"CLOSED-CAPTIONS")).length,t=E(t);for(var n=t.next();!n.done;n=t.next()){var i=n.value,r=f4(i,"LANGUAGE");n=tc(r||"und"),r||(r=f4(i,"NAME"))&&(n=r),r=f8(i,"GROUP-ID"),i=f8(i,"INSTREAM-ID").replace("SERVICE","svc"),e.J.get(r)||e.J.set(r,new Map),e.J.get(r).set(i,n)}}(a,m),es=a,H=(eu=b).map(function(e){return"video"!==(e=gC(es,e)).stream.type?null:e.stream}).filter(function(e){return e}),M(e,(el=a,ec=v,ed=T,eh=m,ep=p,ef=a.C,em=H,F(function(e){switch(e.g){case 1:if(ev=[],ey=new Set,el.g.ignoreDrmInfo||!(ed.length>0)){e.B(2);break}eT=(eb=E(ed)).next();case 3:if(eT.done){e.B(2);break}if(eS=f8(ew=eT.value,"METHOD"),eA=f4(ew,"KEYFORMAT")||"identity",eE=null,"NONE"==eS){e.B(4);break}if(g1(eS)){ek=(ex=gi(ep(),f8(ew,"URI"),ef)).sort().join(""),el.O.has(ek)||
1(eI=rv(ex,el.g.retryParameters),eC=g0(el,eI,6).promise,el.O.set(ek,eC)),e.B(4);break}if("identity"==eA)return M(e,g2(el,ew,"",ep,null,ef),12);if(!(eM=el.mc.get(eA))){eL=null,e.B(10);break}return M(e,eM(ew,"",null),11);case 11:eL=e.h;case 10:eE=eL,e.B(6);break;case 12:eE=e.h;case 6:if(eE){if(eE.keyIds)for(eP=(eR=E(eE.keyIds)).next();!eP.done;eP=eR.next())eD=eP.value,ey.add(eD);ev.push(eE)}case 4:eT=eb.next(),e.B(3);break;case 2:for(eN={},e_=(eO=E(ec)).next();!e_.done;e_=eO.next())eN[ej=f5(eq=e_.value,!el.j)]?eN[ej].push(eq):eN[ej]=[eq];for(eF in eB=[],eN)eH=f4(eG=(eV=eN[eF])[0],"FRAME-RATE"),ez=Number(f8(eG,"BANDWIDTH"))||Number(f4(eG,"AVERAGE-BANDWIDTH")),eX=(eW=E((eK=f4(eG,"RESOLUTION"))?eK.split("x"):[null,null])).next().value,eY=eW.next().value,eZ=f4(eG,"VIDEO-RANGE"),(eJ=f4(eG,"REQ-VIDEO-LAYOUT"))&&eJ.includes(",")&&(eJ=eJ.split(",").filter(function(e){return"CH-STEREO"==e||"CH-MONO"==e})[0]),eJ=eJ||"CH-MONO",eQ=function(e,t,n){for(var i={audio:[],video:[]},r=new Map,a=[],o=!1,s=!1,u=E(t),l=u.next();!l.done;l=u.next()){var c=l.value;l=f4(c,"AUDIO");var d=f4(c,"VIDEO"),h=l||d;h&&(a.includes(h)||a.push(h),(c=f4(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=f4(e,"URI")||"";return"SUBTITLES"!=(e=f4(e,"TYPE"))&&(""!=t||"AUDIO"==e)});var i={};t=E(t);for(var r=t.next();!r.done;r=t.next()){var a=f5(r=r.value,!e.j);i[a]?i[a].push(r):i[a]=[r]}for(var o in i)gI(e,i[o],n,!1)}(e,n=n.filter(function(e){return a.includes(f8(e,"GROUP-ID"))}),r),n=(r=a.sort().join(","))&&e.L.has(r)?e.L.get(r):[],o?i.audio.push.apply(i.audio,x(n)):s&&i.video.push.apply(i.video,x(n)),s=!1;var p=t.map(function(e){return f8(e,"URI")});return o=i.audio.find(function(e){return e&&e.S().find(function(e){return p.includes(e)})}),u=te("video",n=gk(e,t[0])),(l=te("audio",n))&&!u?(o="audio",s=i.audio.length>0&&!i.audio.some(function(e){return e.stream.isAudioMuxedInVideo})):!i.audio.length&&!i.video.length&&l&&u?(o="video",n=[[u,l].join()]):i.audio.length&&o?(o="audio",s=!0):o=i.video.length&&!i.audio.length?"audio":"video",s||(t=function(e,t,n,i){for(var r=e.G++,a=[],o=E(t),s=o.next();!s.done;s=o.next()){var u=s.value;s=f8(u,"URI"),u=f4(u,"PATHWAY-ID"),e.j&&u&&pF(e.j,r,u,s),a.push(s)}if(o=a.sort().join(",")+n.sort().join(","),e.i.has(o))return e.i.get(o);s=a.join(",");e:{if(t=f4(t[0],"CLOSED-CAPTIONS"),"video"==i){if(e.g.disableText){e.P=!1,t=null;break e}if(t){if("NONE"!=t){t=e.J.get(t);break e}e.P=!1}else if(!t&&e.J.size)for(t=(t=E(e.J.keys())).next();!t.done;t=t.next()){t=e.J.get(t.value);break e}}t=null}return i=gM(e,r,a,n=e9(i,n),i,null,!1,s,null,t,null,!1,null,!1),e.i.set(o,i),i}(e,t,n,o),r&&e.g.enableAudioGroups&&(t.stream.groupId=r),"audio"==t.stream.type&&"audio"===o&&i.audio.some(function(e){return e.stream.isAudioMuxedInVideo})&&(e=i.audio[0].stream,t.stream.language=e.language,t.stream.channelsCount=e.channelsCount,t.stream.label=e.label,t.stream.audioSamplingRate=e.audioSamplingRate,t.stream.originalId=e.originalId,t.stream.originalLanguage=e.originalLanguage),i[t.stream.type]=[t]),i}(el,eV,eh),eB.push.apply(eB,x(function(e,t,n,i,r,a,o,s,u,l,c,d){for(var h=E(n),p=h.next();!p.done;p=h.next())gY(p.value.stream,r,a,o,s,u,null);for(r=e.g.disableVideo,(!n.length||r)&&(n=[null]),r&&(t=t.filter(function(e){return!e.stream.isAudioMuxedInVideo})),r=e.g.disableAudio,(!t.length||r)&&(t=[null]),r=[],a=(t=E(t)).next();!a.done;a=t.next())for(a=a.value,s=(o=E(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,e.g.disableIFrames||iW(u,d)),u&&!s&&(u.bandwidth=i),!u&&s&&(s.bandwidth=i),h=a?a.stream.drmInfos:null,p=f?f.stream.drmInfos:null,f=f?f.S().sort().join(","):"";var g=a?a.S().sort().join(","):"",m=[];s&&s.codecs&&m.push(s.codecs),u&&u.codecs&&m.push(u.codecs),f=[f,g,m.sort()].join("-"),s&&u&&!i4(h,p)||e.jb.has(f)||(s={id:e.G++,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.jb.add(f))}return r}(el,eQ.audio,eQ.video,ez,eX,eY,eH,eZ,eJ,ev,ey,em)));return e.return(eB.filter(function(e){return null!=e}))}})),5);case 5:return c=e.h,d=function(e,t){var n=ge(t,"SUBTITLES");t=n.map(function(t){if(e.g.disableText)return null;try{return gI(e,[t],new Map).stream}catch(t){if(e.g.hls.ignoreTextStreamFailures)return null;throw t}}),n=E(n);for(var i=n.next();!i.done;i=n.next()){var r=f8(i.value,"GROUP-ID");if((i=e.K.get(r))&&(r=e.L.get(r))){r=E(r);for(var a=r.next();!a.done;a=r.next())(a=a.value).stream.codecs=i,a.stream.mimeType=gK(tn,i)||gW(tn),gx(a.stream)}}return t.filter(function(e){return e})}(a,m),M(e,(e$=a,e0=y,e1=b,F(function(e){return 1==e.g?(e2=e0.map(function(e){var t,n;return F(function(i){if(1==i.g){var r,a,o,s,u,l,c,d,h,p,f;return e$.g.disableThumbnails?i.return(null):(R(i,2),M(i,(r=e$,a=e,F(function(e){return 1==e.g?(o=f8(a,"U
1RI"),s=f4(a,"CODECS","jpeg")||"",r.i.has(o))?e.return(r.i.get(o)):(u=f4(a,"LANGUAGE"),l=f4(a,"NAME"),c=f4(a,"CHARACTERISTICS"),d=gM(r,r.G++,[o],s,"image",u,!1,l,null,null,c,!1,null,!1),(h=f4(a,"RESOLUTION"))?M(e,d.stream.createSegmentIndex(),3):e.B(2)):(2!=e.g&&((p=sS(d.stream.segmentIndex).tilesLayout)&&(d.stream.width=Number(h.split("x")[0])*Number(p.split("x")[0]),d.stream.height=Number(h.split("x")[1])*Number(p.split("x")[1])),d.stream.closeSegmentIndex()),(f=f4(a,"BANDWIDTH"))&&(d.stream.bandwidth=Number(f)),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),e$.g.hls.ignoreImageStreamFailures)return i.return(null);throw n})}).concat(e1.map(function(e){if(e$.g.disableThumbnails)return null;try{var t=gC(e$,e);return"image"!==t.stream.type?null:t.stream}catch(e){if(e$.g.hls.ignoreImageStreamFailures)return null;throw e}})),M(e,Promise.all(e2),2)):(e5=e.h,e.return(e5.filter(function(e){return e})))})),6);case 6:h=e.h,e.B(3);break;case 7:W=e.h,a.i.set(a.H,W),W.stream&&(X=sP(W.stream),W.stream.segmentIndex.Lb(function(e){e.ia&&(e.ia.Pd=X)})),f=W.stream.type,Y=!0,a.g.disableAudio&&"audio"==W.type?Y=!1:a.g.disableVideo&&"video"==W.type&&!W.stream.codecs.includes(",")&&(Y=!1),Y&&c.push({id:0,language:tc(z||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==W.type?W.stream:null,video:"video"==W.type?W.stream:null,bandwidth:W.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.h)throw new eU(2,7,7001);if(gj(a,u),1==u.type&&(gQ(a)&&(gF(a,u),Z=a.u,a.F.Y(Z)),J=Array.from(a.i.values()),gP(a,J),gA(a),gH(a,u.ka,f,g,p)),a.m={presentationTimeline:a.l,variants:c,textStreams:d,imageStreams:h,offlineSessionIds:[],sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,type:"HLS",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:a.A},a.Z||!a.g.hls.disableCodecGuessing){e.B(8);break}for(Q=[],et=($=E(a.m.variants)).next();!et.done;et=$.next())(en=et.value).audio&&""===en.audio.codecs&&Q.push(en.audio.createSegmentIndex()),en.video&&""===en.video.codecs&&Q.push(en.video.createSegmentIndex());return M(e,Promise.all(Q),8);case 8:a.h.makeTextStreamsForClosedCaptions(a.m),L(e)}})),3)):r.return(i.m)})},p.stop=function(){this.F&&(this.F.stop(),this.F=null);var e=[];return this.W&&(e.push(this.W.destroy()),this.W=null),this.g=this.h=null,this.jb.clear(),this.m=null,this.i.clear(),this.L.clear(),this.K.clear(),this.C.clear(),this.ya.clear(),this.oa.clear(),this.O.clear(),this.sa.clear(),this.ua.clear(),this.I.clear(),this.j&&this.j.destroy(),this.T&&(this.T.release(),this.T=null),Promise.all(e)},p.update=function(){var e,t,n,i,r,a,o,s,u,l,c=this;return F(function(d){if(1==d.g){if(!gQ(c))return d.return();for(e=[],t=Array.from(c.i.values()),c.u=1/0,c.m.gapCount=0,r=(i=E(n=t.filter(function(e){return!e.stream.isAudioMuxedInVideo&&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,p,f,g,m,v,y,b,T,w,S,A,k,I,C,P,O,_,U,q,j,B;return F(function(F){var V,G,H;switch(F.g){case 1:if(t.stream.isAudioMuxedInVideo)return F.return();for(n=[],r=(i=E(t.S())).next();!r.done;r=i.next())o=(a=new eg(r.value)).g,t.nf&&(t.ac>=0&&o.add("_HLS_msn",String(t.ac)),t.bc>=0&&o.add("_HLS_part",String(t.bc))),t.pf&&o.add("_HLS_skip","YES"),eM(V=o),V.me&&eb(a,eT(o.toString())),n.push(a.toString());return R(F,2),M(F,gZ(e,n,!0).promise,4);case 4:s=F.h,D(F,3);break;case 2:throw u=N(F),e.h&&e.h.disableStream(t.stream),u;case 3:if(!t.stream.segmentIndex)return F.return();if(1!=(l=gs(e.hb,s.data)).type)throw new eU(2,4,4017);return(c=s.uri)==s.originalUri||t.S().includes(c)||t.cg.push(c),d=gE(e,f9(l.ka,"EXT-X-DEFINE"),c),h=t.stream,p=gb(e,t),M(F,gU(e,l,h.mimeType,t.S,d),5);case 5:for(g=(f=F.h).keyIds,m=f.drmInfos,v=f.encrypted,y=f.Ii,h.encrypted||!v||y||(h.encrypted=!0),G=h.keyIds,H=g,G.size===H.size&&[].concat(x(G)).every(function(e){return H.has(e)})||(h.keyIds=g,h.drmInfos=m,e.h.newDrmInfo(h)),T=(b=gz(e,l,p,d,t.S,t.type)).segments,(w=b.bandwidth)&&(h.bandwidth=w),S=sP(h),k=(A=E(T)).next();!k.done;k=A.next())(I=k.value).ia&&(I.ia.Pd=S);h.segmentIndex.Ce(T,e.l.Nb()),T.length&&(C=gn(l.ka,"EXT-X-MEDIA-SEQUENCE",0),O=(P=gt(l.ka,"EXT-X-SKIP"))?Number(f4(P,"SKIPPED-SEGMENTS")):0,U=(_=gO(C,T)).ac,q=_.bc,t.ac=U+O,t.bc=q,j=p.get(C),h.segmentIndex.eb(j)),(B=sS(h.segmentIndex))&&(t.nd=B.startTime,t.Zc=T[T.length-1].endTime),gt(l.ka,"EXT-X-ENDLIST")&&(t.ue=!0),gB(e,l),gH(e,l.ka,h.type,d,t.S),L(F)}})}(c,a));return M(d,Promise.all(e),2)}for(gR(c,n.map(function(e){return e.stream})),o=n.some(function(e){return 0==e.ue}),n.length&&!o&&(g$(c,mt),gA(c)),o&&gA(c),u=(s=E(n)).next();!u.done;u=s.next())(l=u.value).stream.isAudioMuxedInVideo||!l.stream.segmentIndex||sS(l.stream.segmentIndex)||c.h.disableStream(l.stream);L(d)})},p.onExpirationUpdated=function(){},p.onInitialVariantChosen=function(){},p.banLocation=function(e){this.j&&this.j.banLocation(e)},p.setMediaElement=function(e){this.V=e}
1,$("shaka.hls.HlsParser",gy);var g3=(new Map).set("aac","audio/aac").set("ac3","audio/ac3").set("ec3","audio/ec3").set("mp3","audio/mpeg"),g4=(new Map).set("mp4","audio/mp4").set("mp4a","audio/mp4").set("m4s","audio/mp4").set("m4i","audio/mp4").set("m4a","audio/mp4").set("m4f","audio/mp4").set("cmfa","audio/mp4").set("ts","video/mp2t").set("tsa","video/mp2t"),g8=(new Map).set("mp4","video/mp4").set("mp4v","video/mp4").set("m4s","video/mp4").set("m4i","video/mp4").set("m4v","video/mp4").set("m4f","video/mp4").set("cmfv","video/mp4").set("ts","video/mp2t").set("tsv","video/mp2t"),g6=(new Map).set("mp4","application/mp4").set("m4s","application/mp4").set("m4i","application/mp4").set("m4f","application/mp4").set("cmft","application/mp4").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml"),g7=(new Map).set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif"),g9=(new Map).set("audio",g4).set("video",g8).set("text",g6).set("image",g7),me=new Set(["video/mp2t"].concat(x(ip))),mt="VOD",mn="EVENT",mi="LIVE";function mr(e){return pu(e)}tB("application/x-mpegurl",function(){return new gy}),tB("application/vnd.apple.mpegurl",function(){return new gy});var ma=(new Map).set("com.microsoft.playready",mr).set("com.microsoft.playready.recommendation",mr).set("com.microsoft.playready.software",mr).set("com.microsoft.playready.hardware",mr);function mo(){var e=this;this.h=this.g=null,this.l=[],this.j=null,this.A=1,this.i=null,this.F=new tT(5),this.u=new iA(function(){var t,n;t=e,F(function(e){switch(e.g){case 1:return R(e,2),M(e,ms(t),4);case 4:D(e,3);break;case 2:n=N(e),t.h&&(n.severity=1,t.h.onError(n));case 3:if(!t.h)return e.return();L(e)}})}),this.D=new rh,this.m=new Map,this.C=function(){return!1}}function ms(e){var t,n,i,r,a,o;return F(function(s){if(1==s.g)return t=rv(e.l,e.g.retryParameters),n=e.h.networkingEngine,i=Date.now(),r=n.request(0,t,{type:5,isPreload:e.C()}),rp(e.D,r),M(s,r.promise,2);if(a=s.h,!e.h)return s.return();a.uri&&!e.l.includes(a.uri)&&e.l.unshift(a.uri);var u=a.uri,l=a.data,c=e.g.mss.manifestPreprocessor;if(c!=uR){if(tR("manifest.mss.manifestPreprocessor configuration","Please Use manifest.mss.manifestPreprocessorTXml instead."),!(l=ff(l,"SmoothStreamingMedia")))throw new eU(2,4,4046,u);c(l),l=eX(l.outerHTML)}var d=nt(l,"SmoothStreamingMedia");if(!d)throw new eU(2,4,4046,u);if((u=e.g.mss.manifestPreprocessorTXml)!=uP&&u(d),e.i||(e.i=new o7(null,0)),u=nh(d,"IsLive",nA,!1))throw new eU(2,4,4047);e.i.td(!u),c=nh(d,"TimeScale",nw,1e7),l=nh(d,"DVRWindowLength",nw),u&&(0===l||isNaN(l))&&(l=1/0);var h=nh(d,"CanSeek",nA,!1);for(0===l&&h&&(l=1/0),h=null,l&&l>0&&(h=l/c),u&&!isNaN(e.g.availabilityWindowOverride)&&(h=e.g.availabilityWindowOverride),null==h&&(h=1/0),e.i.lg(h),l=nh(d,"Duration",nw,1/0),u||e.i.Fb(l/c),u={variants:[],textStreams:[],timescale:c,duration:l/c},h=no(d,"Protection"),c=e.g.mss.keySystemsBySystemId,l=[],p=(h=E(h)).next();!p.done;p=h.next())l=l.concat(no(p.value,"ProtectionHeader"));if(l.length){for(p=0,h=[];p<l.length;p++){var p,f,g=l[p],m=g.attributes.SystemID.toLowerCase(),v=c[m];if(v){e:{if(f=ps(g)){f=E(nl(f,"DATA"));for(var y=f.next();!y.done;y=f.next())if(y=nc(y.value,"KID")){f=e3(f=new Uint8Array([(f=e2(ns(y)))[3],f[2],f[1],f[0],f[5],f[4],f[7],f[6]].concat(x(f.slice(8)))));break e}}f=null}y=e2(ns(g)),m=e6(v,"cenc",m=[{initData:rG(y,m=e5(m.replace(/-/g,"")),new Set,0),initDataType:"cenc",keyId:f}]),f&&m.keyIds.add(f),(v=ma.get(v))&&(m.licenseServerUri=v(g)),h.push(m)}}c=h}else c=[];for(p=c,h=[],c=[],l=[],g=(d=E(d=no(d,"StreamIndex"))).next();!g.done;g=d.next()){v=no(g=g.value,"QualityLevel"),m=u.timescale,f=u.duration,y=no(g,"c");for(var b=[],T=0,w=0;w<y.length;++w){var S=y[w],A=y[w+1],k=nh(S,"t",nw),I=nh(S,"d",nw);if(S=nh(S,"r",nb),!I)break;if(k=null!=k?k:T,(S=S||0)&&S--,S<0)if(A){if(null==(A=nh(A,"t",nw))||k>=A)break;S=Math.ceil((A-k)/I)-1}else{if(f==1/0||k/m>=f)break;S=Math.ceil((f*m-k)/I)-1}for(A=0;A<=S;++A)T=k+I,b.push({start:k/m,end:T/m,Bi:k}),k=T}for(m=b,f=(v=E(v)).next();!f.done;f=v.next())(f=function(e,t,n,i,r,a){var o=t.attributes.Type;if("audio"!==o&&"video"!==o&&"text"!==o)return ea("Ignoring unrecognized type:",o),null;var s=t.attributes.Language,u=e.A++,l=nh(n,"Bitrate",nT),c=nh(n,"MaxWidth",nT),d=nh(n,"MaxHeight",nT),h=nh(n,"Channels",nT),p=nh(n,"SamplingRate",nT),f=a.duration;i.length&&(f=i[i.length-1].end-i[0].start);var g=e.i.getDuration();e.i.Fb(Math.min(f,g)),(g=t.attributes.Name)&&(g+=n.attributes.Index),g||(g=String(u));var m={id:u,originalId:g,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:"",codecs:"",frameRate:void 0,pixelAspectRatio:void 0,bandwidth:l||0,width:c||void 0,height:d||void 0,kind:"",encrypted:r.length>0,drmInfos:r,keyIds:new Set,language:tc(s||"und"),originalLanguage:s,label:"",type:"",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:[],roles:[],forced:!1,channelsCount:h,audioSamplingRate:p,spatialAudio:!1,closedCaptions:null,hdr:void 0,colorGamut:void 0,videoLayout:void 0,tilesLayout:void 0,matchedStreams:[],mssPrivateData:{duration:f,timescale:a.timescale,codecPrivateData:null},accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null};if((r=t.attributes.Subtype)&&((r=ml.get(r))&&m.roles.push(r),"main"===r&&(m.primary=!0)),(null===(r=n.attributes.FourCC)||""===r)&&(r=t.attributes.FourCC),!r){if("audio"===o)r="AAC";else if("video"===o)return ea('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),null}if(!mu.includes(r.toUpperCase()))return ea("Codec not supported:",r),null;
1switch(n=function(e,t,n,i){if(e=e.attributes.CodecPrivateData)return e;if("audio"!==t)return null;t=i.channelsCount||2;var r={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12};return(i=r[e=i.audioSamplingRate||44100],"AACH"===n)?(n=new Uint8Array(4),e=r[2*e],n[0]=40|i>>1,n[1]=i<<7|t<<3|e>>1,n[2]=e<<7|8,n[3]=0,(t=new Uint16Array(2))[0]=(n[0]<<8)+n[1],t[1]=(n[2]<<8)+n[3],t[0].toString(16)+t[1].toString(16)):((n=new Uint8Array(2))[0]=16|i>>1,n[1]=i<<7|t<<3,(t=new Uint16Array(1))[0]=(n[0]<<8)+n[1],t[0].toString(16))}(n,o,r,m),m.mssPrivateData.codecPrivateData=n,o){case"audio":if(!n)return ea("Quality unsupported without CodecPrivateData",o),null;m.type="audio",m.mimeType="mss/audio/mp4",m.codecs=function(e,t){var n=0;return"AACH"===e&&(n=5),t?0===n&&(n=(248&parseInt(t.substr(0,2),16))>>3):(n=2,"AACH"===e&&(n=5)),"mp4a.40."+n}(r,n);break;case"video":if(!n)return ea("Quality unsupported without CodecPrivateData",o),null;m.type="video",m.mimeType="mss/video/mp4",m.codecs=function(e){var t=/00000001[0-9]7/.exec(e);return t.length&&e?"avc1."+e.substr(e.indexOf(t[0])+10,6):""}(n);break;case"text":m.type=tn,m.mimeType="application/mp4",("TTML"===r||"DFXP"===r)&&(m.codecs="stpp")}return m.fullMimeTypes.add(ii(m.mimeType,m.codecs)),m.createSegmentIndex=function(){if(m.segmentIndex)return Promise.resolve();if(e.m.has(m.id))var n=e.m.get(m.id);else n=[],"video"==m.type&&(n=m.mssPrivateData.codecPrivateData.split("00000001").slice(1)),n=aE(new aA([n={id:m.id,type:m.type,codecs:m.codecs,encrypted:m.encrypted,timescale:m.mssPrivateData.timescale,duration:m.mssPrivateData.duration,Hb:n,Ma:new Uint8Array([]),Ya:new Uint8Array([]),fb:0,gb:0,data:null,stream:m}])),e.m.set(m.id,n);return n=function(e,t,n,i,r){var a=i.attributes.Url.replace("{bitrate}",String(n.bandwidth));i=[],r=E(r);for(var o=r.next(),s={};!o.done;s={rg:void 0},o=r.next())s.rg=o.value,i.push(new aZ(s.rg.start,s.rg.end,function(t){return function(){return e8(e.l,[a.replace("{start time}",String(t.rg.Bi))])}}(s),0,null,t,0,0,n.mssPrivateData.duration));return i}(e,new aX(function(){return[]},0,null,sP(m),m.mssPrivateData.timescale,n,null,m.encrypted),m,t,i),m.segmentIndex=new sw(n),Promise.resolve()},m.closeSegmentIndex=function(){m.segmentIndex&&(m.segmentIndex.release(),m.segmentIndex=null)},m}(e,g,f.value,m,p,u))&&("audio"!=f.type||e.g.disableAudio?"video"!=f.type||e.g.disableVideo?f.type!=tn||e.g.disableText||l.push(f):c.push(f):h.push(f))}for(d=[],p=(h=E(h.length>0?h:[null])).next();!p.done;p=h.next())for(p=p.value,b=(g=E(c.length>0?c:[null])).next();!b.done;b=g.next())m=(v=d).push,f=e,y=p,b=b.value,w=0,y&&y.bandwidth&&y.bandwidth>0&&(w+=y.bandwidth),b&&b.bandwidth&&b.bandwidth>0&&(w+=b.bandwidth),f={id:f.A++,language:y?y.language:"und",disabledUntilTime:0,primary:!!y&&y.primary||!!b&&b.primary,audio:y,video:b,bandwidth:w,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},m.call(v,f);u.variants=d,u.textStreams=l,e.j?(e.j.variants=u.variants,e.j.textStreams=u.textStreams,e.h.filter(e.j)):(e.j={presentationTimeline:e.i,variants:u.variants,textStreams:u.textStreams,imageStreams:[],offlineSessionIds:[],sequenceMode:e.g.mss.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"MSS",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:null},e.i.Nf()),Promise.resolve(),o=(Date.now()-i)/1e3,e.F.sample(1,o),L(s)})}(p=mo.prototype).configure=function(e,t){this.g=e,t&&(this.C=t)},p.start=function(e,t){var n=this;return F(function(i){if(1==i.g)return n.l=[e],n.h=t,M(i,ms(n),2);if(!n.h)throw new eU(2,7,7001);return i.return(n.j)})},p.stop=function(){return this.g=this.h=null,this.l=[],this.j=null,null!=this.u&&(this.u.stop(),this.u=null),this.m.clear(),this.D.destroy()},p.update=function(){var e,t=this;return F(function(n){return 1==n.g?(R(n,2),M(n,ms(t),4)):2!=n.g?D(n,0):(e=N(n),t.h&&e)?void(t.h.onError(e),L(n)):n.return()})},p.onExpirationUpdated=function(){},p.onInitialVariantChosen=function(){},p.banLocation=function(){},p.setMediaElement=function(){},$("shaka.mss.MssParser",mo);var mu="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),ml=(new Map).set("CAPT","main").set("SUBT","alternate").set("DESC","main");function mc(e,t,n,i,r,a,o){if(n>=200&&n<=299&&202!=n||304==n)return{uri:r||i,originalUri:i,data:t,status:n,headers:e,fromCache:!!e["x-shaka-from-cache"],originalRequest:a};a=null;try{a=eW(t)}catch(e){}throw new eU(401==n||403==n?2:1,1,1001,i,n,a,e,o,r||i)}function md(){}function mh(e,t,n,i,r,a){var o,s,u,l,c,d,h,p,f,g,m,v,y,b,T,w,S,A,E,x,k,I,C=new mv;
1try{rk(t.headers).forEach(function(e,t){C.append(t,e)})}catch(t){return rs(new eU(1,1,1002,e,t,n))}var P=new mg,O={Ni:!1,ek:!1};if(e=new ro((o=e,s=t,u=n,l={body:t.body||void 0,headers:C,method:t.method,signal:P.signal,credentials:t.allowCrossSiteCredentials?"include":void 0},c=O,d=i,h=r,p=t.streamDataCallback,f=a.minBytesForProgressEvents||0,e=F(function(e){switch(e.g){case 1:return g=mf,m=mm,y=new ArrayBuffer(0),T=b=0,w={},S=Date.now(),R(e,2),M(e,g(o,l),4);case 4:var t,n;if(h((t=(v=e.h).headers,n={},t.forEach(function(e,t){n[t.trim()]=e}),w=n)),"HEAD"==l.method){e.B(5);break}if(E=(A=v.headers.get("Content-Length"))?parseInt(A,10):0,!v.body)return M(e,v.arrayBuffer(),9);return x=v.clone().body.getReader(),new m({start:function(e){!function t(){var n,i,r,a;return F(function(o){switch(o.g){case 1:return R(o,2),M(o,x.read(),4);case 4:n=o.h,D(o,3);break;case 2:return N(o),o.return();case 3:if(n.done||(b+=n.value.byteLength,!p)){o.B(5);break}return M(o,p(n.value),5);case 5:i=Date.now(),r=b-T,(i-S>100&&r>=f||n.done)&&(a=n.done?0:E-b,d(i-S,r,a),T=b,S=i),n.done?e.close():(e.enqueue(n.value),t()),L(o)}})}()}}),M(e,v.arrayBuffer(),8);case 8:y=e.h,e.B(5);break;case 9:y=e.h,d(Date.now()-S,y.byteLength,0);case 5:s.headers.Range&&2==(k=s.headers.Range.replace("bytes=","").split("-").filter(function(e){return e}).map(function(e){return parseInt(e,10)})).length&&y.byteLength!=k[1]-k[0]+1&&ea("Payload length does not match range requested bytes",s,v),D(e,3);break;case 2:if(I=N(e),c.Ni)throw new eU(1,1,7001,o,u);if(c.ek)throw new eU(1,1,1003,o,u);throw new eU(1,1,1002,o,I,u);case 3:return e.return(mc(w,y,v.status,o,v.url,s,u))}})),function(){return O.Ni=!0,P.abort(),Promise.resolve()}),t=t.retryParameters.timeout){var _=new iA(function(){O.ek=!0,P.abort()});_.Y(t/1e3),e.finally(function(){_.stop()})}return e}function mp(){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)}tB("application/vnd.ms-sstr+xml",function(){return new mo}),$("shaka.net.HttpFetchPlugin",md),md.isSupported=mp,md.parse=mh;var mf=e.fetch,mg=e.AbortController,mm=e.ReadableStream,mv=e.Headers;function my(){}function mb(e,t,n,i,r,a){var o=new mT,s=Date.now(),u=0;return new ro(new Promise(function(l,c){o.open(t.method,e,!0),o.responseType="arraybuffer",o.timeout=t.retryParameters.timeout,o.withCredentials=t.allowCrossSiteCredentials;var d={};for(var h in o.onabort=function(){c(new eU(1,1,7001,e,n))},o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.HEADERS_RECEIVED){var e=o.getAllResponseHeaders().trim().split("\r\n"),t={};e=E(e);for(var n=e.next();!n.done;n=e.next())t[(n=n.value.split(": "))[0].toLowerCase()]=n.slice(1).join(": ");r(d=t)}},o.onload=function(r){var a=o.response;try{i(Date.now()-s,r.loaded-u,0);var h=mc(d,a,o.status,e,o.responseURL,t,n);l(h)}catch(e){c(e)}},o.onerror=function(t){c(new eU(1,1,1002,e,t,n))},o.ontimeout=function(){c(new eU(1,1,1003,e,n))},o.onprogress=function(e){var t=Date.now(),n=a.minBytesForProgressEvents||0,r=e.loaded-u;(t-s>100&&r>=n||e.lengthComputable&&e.loaded==e.total)&&(i(t-s,r,4==o.readyState?0:e.total-e.loaded),u=e.loaded,s=t)},t.headers)try{o.setRequestHeader(h.toLowerCase(),t.headers[h])}catch(t){throw new eU(1,1,1002,e,t,n)}o.send(t.body)}),function(){return o.abort(),Promise.resolve()})}mp()&&(rg("http",mh,2,!0),rg("https",mh,2,!0),rg("blob",mh,2,!0)),$("shaka.net.HttpXHRPlugin",my),my.parse=mb;var mT=e.XMLHttpRequest;function mw(e,t,n,i,r){this.g=e,this.i=t,this.groupId=n,this.h=i,this.j=r}function mS(e){var t=e.jc(!1);return t?e1(t):e.S().map(function(e){return"{"+encodeURI(e.split("#xywh=")[0])+"}"}).join("")+":"+e.startByte+":"+e.endByte}function mA(){this.g=this.j=this.i=0,this.h=new Map,this.l=0}function mE(e,t){e.i+=t;var n=e.l;return e.l++,e.h.set(n,t),n}function mx(e){return 0==e.i?0:e.j/e.i}function mk(e){var t=this;this.A=e,this.i=new Map,this.h=new rE(function(){return mI(t).catch(function(){})}),this.j=[],this.u=function(){},this.m=function(){},this.g=new mA,this.l=!1}function mI(e){e.l=!0;var t=e.j.map(function(e){return e()});return e.j=[],Promise.all(t)}function mC(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new ra,e.onabort=function(e){e.preventDefault(),n.g.reject()},e.onerror=function(e){e.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}function mM(e,t){return new Promise(function(n,i){var r=e.h.openCursor();r.onerror=i,r.onsuccess=function(){var e;return F(function(i){if(1==i.g)return null==r.result?(n(),i.return()):M(i,t((e=r.result).key,e.value,e),2);e.continue(),L(i)})}})}function mL(e){this.h=e,this.g=[]}function mR(e,t){return mP(e,t,"readwrite")}function mP(e,t,n){var i=new mC(n=e.h.transaction([t],n),t);return e.g.push(i),i.promise().then(function(){tE(e.g,i)},function(){tE(e.g,i)}),i}function mD(e,t,n){this.h=new mL(e),this.i=t,this.g=n}function mN(e){return Promise.reject(new eU(2,9,9011,"Cannot add new value to "+e))}function mO(e,t,n,i){t=(e=mR(e.h,t)).store(),n=E(n);for(var r=n.next(),a={};!r.done;a={Lh:void 0},r=n.next())a.Lh=r.value,t.delete(a.Lh).onsuccess=function(e){return function(){return i(e.Lh)}}(a);return e.promise()}function m_(e,t,n){var i,r,a,o,s,u,l;return F(function(c){if(1==c.g){for(r=(i=mP(e.h,t,"readonly")).store(),a={},o=[],u=(s=E(n)).next(),l={};!u.done;l={eg:void 0,Jf:void 0},u=s.next())l.Jf=u.value,l.eg=r.get(l.Jf),l.eg.onsuccess=function(e){return function(){void 0==e.eg.result&&o.push(e.Jf),a[e.Jf]=e.eg.result}}(l);return M(c,i.promise(),2)}if(o.length)throw new eU(2,9,9012,"Could not find values for "+o);return c.return(n.map(function(e){return a[e]}))})}function mU(e){this.g=new mL(e)}function mq(){this.g=new Map}function mj(e){var t=null;
1if(e.g.forEach(function(e,n){e.getCells().forEach(function(e,i){e.hasFixedKeySpace()||t||(t={path:{$b:n,kb:i},kb:e})})}),t)return t;throw new eU(2,9,9013,"Could not find a cell that supports add-operations")}function mB(e,t,n){if(!(e=e.g.get(t)))throw new eU(2,9,9013,"Could not find mechanism with name "+t);if(!(t=e.getCells().get(n)))throw new eU(2,9,9013,"Could not find cell with name "+n);return t}function mF(e,t){mV.set(e,t)}rg("http",mb,1,!0),rg("https",mb,1,!0),rg("blob",mb,1,!0),mA.prototype.close=function(e,t){if(this.h.has(e)){var n=this.h.get(e);this.h.delete(e),this.j+=n,this.g+=t}},mk.prototype.destroy=function(){return this.h.destroy()},mk.prototype.queue=function(e,t,n,i,r){var a=this;rx(this.h);var o=(this.i.get(e)||Promise.resolve()).then(function(){var e,o,s,u,l,c;return F(function(d){if(1==d.g){var h,p,f,g,m,v;return M(d,(h=a,p=t,F(function(e){return 1==e.g?(f=rw,g=h.A.request(f,p),m=function(){return g.abort()},h.j.push(m),M(e,g.promise,2)):(v=e.h,tE(h.j,m),e.return(v.data))})),2)}if(e=d.h,a.h.g)throw new eU(2,9,7001);if(i)for(s in(o=new rV(eD(e))).data)u=Number(s),l=o.data[u],c=o.g[u],a.m(l,c);return a.g.close(n,e.byteLength),a.u(mx(a.g),a.g.g),d.return(r(e))})});return this.i.set(e,o),o},mC.prototype.abort=function(){var e=this;return F(function(t){if(1==t.g){try{e.i.abort()}catch(e){}return R(t,2),M(t,e.g,4)}if(2!=t.g)return D(t,0);N(t),L(t)})},mC.prototype.store=function(){return this.h},mC.prototype.promise=function(){return this.g},mL.prototype.destroy=function(){return Promise.all(this.g.map(function(e){return e.abort()}))},(p=mD.prototype).destroy=function(){return this.h.destroy()},p.hasFixedKeySpace=function(){return!0},p.addSegments=function(){return mN(this.i)},p.removeSegments=function(e,t){return mO(this,this.i,e,t)}
1,p.getSegments=function(e){var t,n=this;return F(function(i){return 1==i.g?M(i,m_(n,n.i,e),2):(t=i.h,i.return(t.map(function(e){return n.Si(e)})))})},p.addManifests=function(){return mN(this.g)},p.updateManifest=function(){return Promise.reject(new eU(2,9,9016,"Cannot modify values in "+this.g))},p.updateManifestExpiration=function(e,t){var n=mR(this.h,this.g),i=n.store();return i.get(e).onsuccess=function(n){(n=n.target.result)&&(n.expiration=t,i.put(n,e))},n.promise()},p.removeManifests=function(e,t){return mO(this,this.g,e,t)},p.getManifests=function(e){var t,n=this;return F(function(i){return 1==i.g?M(i,m_(n,n.g,e),2):(t=i.h,i.return(Promise.all(t.map(function(e){return n.le(e)}))))})},p.getAllManifests=function(){var e,t,n=this;return F(function(i){return 1==i.g?(e=mP(n.h,n.g,"readonly"),t=new Map,M(i,mM(e,function(e,i){var r;return F(function(a){if(1==a.g)return M(a,n.le(i),2);r=a.h,t.set(e,r),L(a)})}),2)):3!=i.g?M(i,e.promise(),3):i.return(t)})},p.Si=function(e){return e},p.le=function(e){return Promise.resolve(e)},p.add=function(e,t){var n,i,r,a,o,s,u,l=this;return F(function(c){if(1==c.g){for(i=(n=mR(l.h,e)).store(),r=[],o=(a=E(t)).next(),s={};!o.done;s={Yh:void 0},o=a.next())u=o.value,s.Yh=i.add(u),s.Yh.onsuccess=function(e){return function(){r.push(e.Yh.result)}}(s);return M(c,n.promise(),2)}return c.return(r)})},mU.prototype.destroy=function(){return this.g.destroy()},mU.prototype.getAll=function(){var e,t,n=this;return F(function(i){return 1==i.g?(e=mP(n.g,"session-ids","readonly"),t=[],M(i,mM(e,function(e,n){t.push(n)}),2)):3!=i.g?M(i,e.promise(),3):i.return(t)})},mU.prototype.add=function(e){var t=mR(this.g,"session-ids"),n=t.store();e=E(e);for(var i=e.next();!i.done;i=e.next())n.add(i.value);return t.promise()},mU.prototype.remove=function(e){var t,n=this;return F(function(i){return 1==i.g?M(i,mM(t=mR(n.g,"session-ids"),function(t,n,i){e.includes(n.sessionId)&&i.delete()}),2):M(i,t.promise(),0)})},mq.prototype.destroy=function(){for(var e=[],t=E(this.g.values()),n=t.next();!n.done;n=t.next())e.push(n.value.destroy());return this.g.clear(),Promise.all(e)},mq.prototype.init=function(){var e=this;mV.forEach(function(t,n){(t=t())&&e.g.set(n,t)});for(var t=[],n=E(this.g.values()),i=n.next();!i.done;i=n.next())t.push(i.value.init());return Promise.all(t)},$("shaka.offline.StorageMuxer",mq),mq.unregister=function(e){mV.delete(e)},mq.register=mF,mq.prototype.destroy=mq.prototype.destroy;var mV=new Map;function mG(){mD.apply(this,arguments)}function mH(e){var t;if((t=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(e))||(t=/^offline:segment\/([0-9]+)$/.exec(e)))return Number(t[1]);throw new eU(2,9,9004,"Could not parse uri "+e)}function mz(){mD.apply(this,arguments)}function mK(){mD.apply(this,arguments)}function mW(){this.m=this.j=this.i=this.h=this.g=this.l=null}S(mG,mD),mG.prototype.updateManifestExpiration=function(e,t){var n,i,r,a=this;return F(function(o){return i=(n=mR(a.h,a.g)).store(),r=new ra,i.get(e).onsuccess=function(n){(n=n.target.result)?(n.expiration=t,i.put(n),r.resolve()):r.reject(new eU(2,9,9012,"Could not find values for "+e))},M(o,Promise.all([n.promise(),r]),0)})},mG.prototype.le=function(e){var t,n,i,r,a;return F(function(o){if(1==o.g){for(n=0,t=[];n<e.periods.length;++n)i=(n==e.periods.length-1?e.duration:e.periods[n+1].startTime)-e.periods[n].startTime,r=function(e,t){!function(e){var t=e.streams.filter(function(e){return"audio"==e.contentType});if(e=e.streams.filter(function(e){return"video"==e.contentType}),!t.every(function(e){return e.variantIds})||!e.every(function(e){return e.variantIds})){for(var n=E(t),i=n.next();!i.done;i=n.next())i.value.variantIds=[];for(i=(n=E(e)).next();!i.done;i=n.next())i.value.variantIds=[];if(n=0,e.length&&!t.length){i=n++;for(var r=E(e),a=r.next();!a.done;a=r.next())a.value.variantIds.push(i)}if(!e.length&&t.length)for(i=n++,a=(r=E(t)).next();!a.done;a=r.next())a.value.variantIds.push(i);if(e.length&&t.length)for(i=(t=E(t)).next();!i.done;i=t.next())for(i=i.value,a=(r=E(e)).next();!a.done;a=r.next()){a=a.value;var o=n++;i.variantIds.push(o),a.variantIds.push(o)}}}(e);for(var n=E(e.streams),i=n.next();!i.done;i=n.next());return e.streams.map(function(n){return function(e,t,n){var i=e.initSegmentUri?mH(e.initSegmentUri):null,r=t+e.presentationTimeOffset,a=t+n;return{id:e.id,originalId:null,groupId:null,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:void 0,hdr:void 0,colorGamut:void 0,videoLayout:void 0,kind:e.kind,language:e.language,originalLanguage:e.language||null,label:e.label,width:e.width,height:e.height,initSegmentKey:i,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map(function(e){var n=mH(e.ur
1i);return{startTime:t+e.startTime,endTime:t+e.endTime,dataKey:n,initSegmentKey:i,appendWindowStart:t,appendWindowEnd:a,timestampOffset:r,tilesLayout:"",mimeType:null,codecs:null,thumbnailSprite:null}}),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1}}(n,e.startTime,t)})}(e.periods[n],i),t.push(r);return M(o,pz(t),2)}return a=o.h,o.return({creationTime:0,originalManifestUri:e.originalManifestUri,duration:e.duration,size:e.size,expiration:null==e.expiration?1/0:e.expiration,streams:a,sessionIds:e.sessionIds,drmInfo:e.drmInfo,appMetadata:e.appMetadata,sequenceMode:!1})})},mG.prototype.Si=function(e){return{data:e.data}},S(mz,mD),mz.prototype.le=function(e){var t,n,i,r,a;return F(function(o){if(1==o.g){for(n=0,t=[];n<e.periods.length;++n){i=(n==e.periods.length-1?e.duration:e.periods[n+1].startTime)-e.periods[n].startTime;for(var s=e.periods[n],u=[],l=E(s.streams),c=l.next();!c.done;c=l.next())0!=(c=c.value).variantIds.length&&u.push(function(e,t,n){return{id:e.id,originalId:e.originalId,groupId:null,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:e.pixelAspectRatio,hdr:void 0,colorGamut:void 0,videoLayout:void 0,kind:e.kind,language:e.language,originalLanguage:e.language||null,label:e.label,width:e.width,height:e.height,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map(function(i){return{startTime:t+i.startTime,endTime:t+i.endTime,initSegmentKey:e.initSegmentKey,appendWindowStart:t,appendWindowEnd:n,timestampOffset:t-e.presentationTimeOffset,dataKey:i.dataKey,tilesLayout:"",mimeType:null,codecs:null,thumbnailSprite:null}}),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1}}(c,s.startTime,s.startTime+i));r=u,t.push(r)}return M(o,pz(t),2)}return a=o.h,o.return({appMetadata:e.appMetadata,creationTime:0,drmInfo:e.drmInfo,duration:e.duration,expiration:null==e.expiration?1/0:e.expiration,originalManifestUri:e.originalManifestUri,sessionIds:e.sessionIds,size:e.size,streams:a,sequenceMode:!1})})},S(mK,mD),(p=mK.prototype).hasFixedKeySpace=function(){return!1},p.addSegments=function(e){return this.add(this.i,e)},p.addManifests=function(e){return this.add(this.g,e)},p.updateManifest=function(e,t){var n,i,r,a;return n=this,i=e,r=t,(a=(n=mR(n.h,n.g)).store()).get(i).onsuccess=function(){a.put(r,i)},n.promise()},p.le=function(e){return null==e.expiration&&(e.expiration=1/0),Promise.resolve(e)},(p=mW.prototype).init=function(){var t=this,n=new ra,i=!1,r=new iA(function(){i=!0,n.reject(new eU(2,9,9017))});"number"==typeof mX&&mX>0&&r.Y(mX);var a=e.indexedDB.open("shaka_offline_db",5);return a.onsuccess=function(){if(!i){r.stop();var e=a.result;t.l=e;var o=e.objectStoreNames;t.g=o=o.contains("manifest")&&o.contains("segment")?new mG(e,"segment","manifest"):null,t.h=o=(o=e.objectStoreNames).contains("manifest-v2")&&o.contains("segment-v2")?new mz(e,"segment-v2","manifest-v2"):null,t.i=o=(o=e.objectStoreNames).contains("manifest-v3")&&o.contains("segment-v3")?new mz(e,"segment-v3","manifest-v3"):null,t.j=o=(o=e.objectStoreNames).contains("manifest-v5")&&o.contains("segment-v5")?new mK(e,"segment-v5","manifest-v5"):null,t.m=e=e.objectStoreNames.contains("session-ids")?new mU(e):null,n.resolve()}},a.onupgradeneeded=function(){for(var e=a.result,t=E(["segment-v5","manifest-v5","session-ids"]),n=t.next();!n.done;n=t.next())n=n.value,e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},a.onerror=function(e){i||(r.stop(),n.reject(new eU(2,9,9001,a.error)),e.preventDefault())},n},p.destroy=function(){var e=this;return F(function(t){switch(t.g){case 1:if(!e.g){t.B(2);break}return M(t,e.g.destroy(),2);case 2:if(!e.h){t.B(4);break}return M(t,e.h.destroy(),4);case 4:if(!e.i){t.B(6);break}return M(t,e.i.destroy(),6);case 6:if(!e.j){t.B(8);break}return M(t,e.j.destroy(),8);case 8:if(!e.m){t.B(10);break}
1return M(t,e.m.destroy(),10);case 10:e.l&&e.l.close(),L(t)}})},p.getCells=function(){var e=new Map;return this.g&&e.set("v1",this.g),this.h&&e.set("v2",this.h),this.i&&e.set("v3",this.i),this.j&&e.set("v5",this.j),e},p.getEmeSessionCell=function(){return this.m},p.erase=function(){var t=this;return F(function(n){switch(n.g){case 1:if(!t.g){n.B(2);break}return M(n,t.g.destroy(),2);case 2:if(!t.h){n.B(4);break}return M(n,t.h.destroy(),4);case 4:if(!t.i){n.B(6);break}return M(n,t.i.destroy(),6);case 6:if(!t.j){n.B(8);break}return M(n,t.j.destroy(),8);case 8:var i,r;return t.l&&t.l.close(),M(n,(i=new ra,(r=e.indexedDB.deleteDatabase("shaka_offline_db")).onblocked=function(){},r.onsuccess=function(){i.resolve()},r.onerror=function(e){i.reject(new eU(2,9,9001,r.error)),e.preventDefault()},i),10);case 10:return t.l=null,t.g=null,t.h=null,t.i=null,t.j=null,M(n,t.init(),0)}})};var mX=5;function mY(e,t,n,i){this.g=e,this.i=t,this.h=n,this.l=i,this.j=["offline:",e,"/",t,"/",n,"/",i].join("")}function mZ(e){if(null==(e=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(e)))return null;var t=e[1];if("manifest"!=t&&"segment"!=t)return null;var n=e[2];if(!n)return null;var i=e[3];return i&&null!=t?new mY(t,n,i,Number(e[4])):null}function mJ(e,t){this.h=e,this.g=t}function mQ(e,t){var n=new o7(null,0);n.Fb(t.duration);var i=t.streams.filter(function(e){return"audio"==e.type}),r=t.streams.filter(function(e){return"video"==e.type});i=function(e,t,n,i){for(var r=new Set,a=E(t),o=a.next();!o.done;o=a.next()){o=E(o.value.variantIds);for(var s=o.next();!s.done;s=o.next())r.add(s.value)}for(o=(a=E(n)).next();!o.done;o=a.next())for(s=(o=E(o.value.variantIds)).next();!s.done;s=o.next())r.add(s.value);for(a=new Map,o=(r=E(r)).next();!o.done;o=r.next())o=o.value,a.set(o,{id:o,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});for(r=(t=E(t)).next();!r.done;r=t.next())for(r=m$(e,o=r.value,i),s=(o=E(o.variantIds)).next();!s.done;s=o.next())(s=a.get(s.value)).language=r.language,s.primary=s.primary||r.primary,s.audio=r;for(t=(n=E(n)).next();!t.done;t=n.next())for(t=m$(e,r=t.value,i),o=(r=E(r.variantIds)).next();!o.done;o=r.next())(o=a.get(o.value)).primary=o.primary||t.primary,o.video=t;return a}(e,i,r,n),r=t.streams.filter(function(e){return e.type==tn}).map(function(t){return m$(e,t,n)});var a=t.streams.filter(function(e){return"image"==e.type}).map(function(t){return m$(e,t,n)}),o=t.drmInfo?[t.drmInfo]:[];if(t.drmInfo)for(var s=E(i.values()),u=s.next();!u.done;u=s.next())(u=u.value).audio&&u.audio.encrypted&&(u.audio.drmInfos=o),u.video&&u.video.encrypted&&(u.video.drmInfos=o);return{presentationTimeline:n,offlineSessionIds:t.sessionIds,variants:Array.from(i.values()),textStreams:r,imageStreams:a,sequenceMode:t.sequenceMode||!1,ignoreManifestTimestampsInSegmentsMode:!1,type:t.type||"UNKNOWN",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:null}}function m$(e,t,n){var i=t.segments.map(function(n){var i,r,a,o,s,u,l;return i=e,r=n,a=t,o=new mY("segment",i.h,i.g,r.dataKey),(i=new aZ(r.startTime,r.endTime,function(){return[o.toString()]},0,null,null!=r.initSegmentKey?(s=i,u=r.initSegmentKey,l=new mY("segment",s.h,s.g,u),new aX(function(){return[l.toString()]},0,null)):null,r.timestampOffset,r.appendWindowStart,r.appendWindowEnd,[],r.tilesLayout||"")).mimeType=r.mimeType||a.mimeType||"",i.codecs=r.codecs||a.codecs||"",r.thumbnailSprite&&i.ng(r.thumbnailSprite),i});return n.Ee(i),{id:t.id,originalId:t.originalId,groupId:t.groupId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new sw(i),mimeType:t.mimeType,codecs:t.codecs,width:t.width||void 0,height:t.height||void 0,frameRate:t.frameRate,pixelAspectRatio:t.pixelAspectRatio,hdr:t.hdr,colorGamut:t.colorGamut,videoLayout:t.videoLayout,kind:t.kind,encrypted:t.encrypted,drmInfos:[],keyIds:t.keyIds,language:t.language,originalLanguage:t.originalLanguage||null,label:t.label,type:t.type,primary:t.primary,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:t.roles,forced:t.forced,channelsCount:t.channelsCount,audioSamplingRate:t.audioSamplingRate,spatialAudio:t.spatialAudio,closedCaptions:t.closedCaptions,tilesLayout:t.tilesLayout,mssPrivateData:t.mssPrivateData,accessibilityPurpose:null,external:t.external,fastSwitching:t.fastSwitching,fullMimeTypes:new Set([ii(t.mimeType,t.codecs)]),isAudioMuxedInVideo:t.isAudioMuxedInVideo||!1,baseOriginalId:null}}function m0(){this.g=null}function m1(){}function m2(e,t){var n,i,r,a,o=mZ(e);return e=o&&"manifest"==o.g?rl(e={uri:e,originalUri:e,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"},originalRequest:t}):o&&"segment"==o.g?(n=o.key(),i=o,r=t,a=new mq,rl(void 0).cb(function(){return a.init()}).cb(function(){return mB(a,i.$b(),i.kb())}).cb(function(e){return e.getSegments([i.key()])}).cb(function(e){return{uri:i,data:e[0].data,headers:{},originalRequest:r}}).finally(function(){return a.destroy()})):rs(new eU(2,1,9004,e))}function m5(e,t,n){var i,r,a,o;return F(function(s){switch(s.g){case 1:i=[];for(var u,l,c,d,h,p=[],f=E(n),g=f.next();!g.done;g=f.next()){g=g.value;for(var m=!1,v=E(p),y=v.next();!y.done;y=v.next())if(function(e,t){function n(e,t){return e.robustness==t.robustness&&e.contentType==t.contentType}return e.keySystem==t.keySystem&&e.licenseUri==t.licenseUri&&tx(e.audioCapabilities,t.audioCapabilities,n)&&tx(e.videoCapabilities,t.videoCapabilities,n)}((y=y.value).info,g)){y.sessionIds.push(g.sessionId),m=!0;break}m||p.push({info:g,sessionIds:[g.sessionId]})}a=(r=E(p)).next();case 2:if(a.done){s.B(4);break}return M(s,(u=e,l=t,c=a.value,F(function(e){switch(e.g){case 1:var t,n,i,r,a,o,s,p,f,g,m;return d=new rH({Gc:l,onError:function(){},Vf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),R(e,2),d.configure(u),M(e,(t=d,n=c.info.keySystem,i=c.info.licenseUri,r=c.info.serverCertificate,a=c.info.audioCapabilities,o=c.info.videoCapabilities,F(function(e){return 1==e.g?(s=[],o.length&&s.push(o[0].contentType),a.length&&s.push(a[0].contentType),p=function(e){return(e=e6(n,e,null)).licenseServerUri=i,e.serverCertificate=r,e.persistentStateRequired=!0,e.sessionType="persistent-license",e},(f=iZ(s)).video&&(g=p(o[0].encryptionScheme||""),f.video.drmInfos.push(g)),f.audio&&(m=p(a[0].encryptionScheme||""),f.audio.drmInfos.push(m)),M(e,iD([f],!0,t.O,[]),2)):(rx(t.l),e.return(rJ(t,[f])))})),4);case 4:D(e,3);break;case 2:return N(e),M(e,d.destroy(),5);case 5:return e.return([]);case 3:return h=[],M(e,Promise.all(c.sessionIds.map(function(e){return F(function(t){if(1==t.g){var n,i,r,a,o;return R(t,2),M(t,(n=d,i=e,F(function(e){return 1==e.g?M(e,r0(n,i,{initData:null,initDataType:null}),2):3!=e.g?(r=e.h)?(a=[],(o=n.i.get(r))&&(o.Rb=new ra,a.push(o.Rb)),a.push(r.remove()),M(e,Promise.all(a),3)):e.return():void(n.i.delete(r),L(e))})),4)}if(2!=t.g)return h.push(e),D(t,0);N(t),L(t)})}
1)),6);case 6:return M(e,d.destroy(),7);case 7:return e.return(h)}})),5);case 5:o=s.h,i=i.concat(o),a=r.next(),s.B(2);break;case 4:return s.return(i)}})}function m3(e,t){var n=mQ(new mJ(e.$b(),e.kb()),t),i=t.appMetadata||{};return n=m4(n),{offlineUri:e.toString(),originalManifestUri:t.originalManifestUri,duration:t.duration,size:t.size,expiration:t.expiration,tracks:n,appMetadata:i,isIncomplete:t.isIncomplete||!1}}function m4(e){var t=[],n=iH(e.variants);n=E(n);for(var i=n.next();!i.done;i=n.next())t.push(iU(i.value));for(n=(e=E(e.textStreams)).next();!n.done;n=e.next())t.push(iq(n.value));return t}function m8(){this.g=new Map}function m6(e,t){return null==(e=e.g.get(t))&&(e=0),e}function m7(e){var t=this;if(e&&e.constructor!=l8)throw new eU(2,9,9008);this.g=this.h=null,e?(this.h=e.g,this.g=e.Xb()):(this.h=uC(),this.g=new rf,this.g.configure(this.h.networking)),this.i=[],this.l=[];var n=!e;this.j=new rE(function(){var e,i,r,a,o;return F(function(s){switch(s.g){case 1:return M(s,Promise.all(t.l.map(function(e){return mI(e)})),2);case 2:for(e=function(){},i=[],a=(r=E(t.i)).next();!a.done;a=r.next())o=a.value,i.push(o.then(e,e));return M(s,Promise.all(i),3);case 3:if(!n){s.B(4);break}return M(s,t.g.destroy(),4);case 4:t.h=null,t.g=null,L(s)}})}),this.m=1e9}function m9(){if(fq(eB()))e:{for(var e=E(mV.values()),t=e.next();!t.done;t=e.next())if(t=(t=t.value)()){t.destroy(),e=!0;break e}e=!1}else e=!1;return e}function ve(e){var t,n,i;return F(function(r){switch(r.g){case 1:return M(r,(t=new mq).init(),2);case 2:return M(r,mj(t),3);case 3:return i=new mY("manifest",(n=r.h).path.$b,n.path.kb,e),M(r,t.destroy(),4);case 4:return M(r,(new m7).remove(i.toString()),0)}})}function vt(e,t,n,i,r,a){var o,s,u,l,c,d,h,p,f,g;return F(function(m){switch(m.g){case 1:for(o=!1,R(m,2),s=!0,l=(u=E(n.streams)).next();!l.done;l=u.next())for(d=(c=E(l.value.segments)).next();!d.done;d=c.next())null!=(p=(h=d.value).pendingSegmentRefId?i[h.pendingSegmentRefId]:null)&&(h.dataKey=p,h.pendingSegmentRefId=void 0),null!=(p=h.pendingInitSegmentRefId?i[h.pendingInitSegmentRefId]:null)&&(h.initSegmentKey=p,h.pendingInitSegmentRefId=void 0),h.pendingSegmentRefId&&(s=!1),h.pendingInitSegmentRefId&&(s=!1);return n.size+=r,s&&(n.isIncomplete=!1),M(m,e.updateManifest(t,n),4);case 4:o=!0,a(),D(m,0);break;case 2:return f=N(m),M(m,ve(t),5);case 5:if(o){m.B(6);break}return g=Object.values(i),M(m,e.removeSegments(g,function(){}),6);case 6:throw f}})}function vn(e){return e.variants.some(function(e){var t=e.audio&&e.audio.encrypted;return e.video&&e.video.encrypted||t})}function vi(e){return e.variants.some(function(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]).some(function(e){return e.initData&&e.initData.length})})}function vr(e,t,n,i){if(t.expiration=n.re(),n=rZ(n),t.sessionIds=i?n:[],vn(e)&&i&&!n.length)throw new eU(2,9,9007)}function va(e,t){for(var n=[],i=E(e.streams),r=i.next();!r.done;r=i.next())r=r.value,t&&"video"==r.type?n.push({contentType:ii(r.mimeType,r.codecs),robustness:e.drmInfo.videoRobustness}):t||"audio"!=r.type||n.push({contentType:ii(r.mimeType,r.codecs),robustness:e.drmInfo.audioRobustness});return n}function vo(e,t){var n;return F(function(i){switch(i.g){case 1:return R(i,2),M(i,sX(t,e.g,e.h.streaming.retryParameters),4);case 4:n=i.h,D(i,3);break;case 2:N(i);case 3:if(n)return i.return(n);throw new eU(1,2,2011,t)}})}function vs(e){if(e.j.g)throw new eU(2,9,7001)}function vu(){if(!m9())throw new eU(2,9,9e3)}function vl(e,t){return F(function(n){return 1==n.g?(e.i.push(t),P(n,2),M(n,t,4)):2!=n.g?n.return(n.h):(O(n),tE(e.i,t),_(n,0))})}function vc(e){for(var t=new Set,n=E(e.variants),i=n.next();!i.done;i=n.next())(i=i.value).audio&&t.add(i.audio),i.video&&t.add(i.video);for(i=(n=E(e.textStreams)).next();!i.done;i=n.next())t.add(i.value);for(n=(e=E(e.imageStreams)).next();!n.done;n=e.next())t.add(n.value);return t}$("shaka.offline.indexeddb.StorageMechanismOpenTimeout",5),mF("idb",function(){return eB().si()?new mW:null}),mY.prototype.$b=function(){return this.i},mY.prototype.kb=function(){return this.h},mY.prototype.key=function(){return this.l},mY.prototype.toString=function(){return this.j},(p=m0.prototype).configure=function(){},p.start=function(e,t){var n,i,r,a,o,s=this;return F(function(u){switch(u.g){case 1:if(s.g=n=mZ(e),null==n||"manifest"!=n.g)throw new eU(2,1,9004,e);return i=new mq,P(u,2),M(u,i.init(),4);case 4:return M(u,mB(i,n.$b(),n.kb()),5);case 5:return r=u.h,M(u,r.getManifests([n.key()]),6);case 6:return a=u.h[0],o=mQ(new mJ(n.$b(),n.kb()),a),t.makeTextStreamsForClosedCaptions(o),u.return(o);case 2:return O(u),M(u,i.destroy(),7);case 7:_(u,0)}})},p.stop=function(){return Promise.resolve()},p.update=function(){},p.onExpirationUpdated=function(e,t){var n,i,r,a,o,s,u=this;return F(function(l){switch(l.g){case 1:return n=u.g,i=new mq,R(l,2,3),M(l,i.init(),5);case 5:return M(l,mB(i,n.$b(),n.kb()),6);case 6:return r=l.h,M(l,r.getManifests([n.key()]),7);case 7:if(o=(a=l.h[0]).sessionIds.includes(e),s=void 0==a.expiration||a.expiration>t,!o||!s){l.B(3);break}return M(l,r.updateManifestExpiration(n.key(),t),3);case 3:return O(l),M(l,i.destroy(),10);case 10:_(l,0);break;case 2:N(l),l.B(3)}})},p.onInitialVariantChosen=function(){},p.banLocation=function(){},p.setMediaElement=function(){},tB("application/x-offline-manifest",function(){return new m0}),$("shaka.offline.OfflineScheme",m1),m1.plugin=m2,rg("offline",m2),
1(p=m7.prototype).destroy=function(){return this.j.destroy()},p.configure=function(e,t){return 2==arguments.length&&"string"==typeof e&&(e=uv(e,t)),uL(this.h,e)},p.getConfiguration=function(){var e=uC();return uL(e,this.h,uC()),e},p.Xb=function(){return this.g},p.store=function(e,t,n,i,r){var a,o,s,u,l,c,d,h,p,f,g,m,v,y,b,T,w,S,A,x,k,I,C,P,U,q,j,B,V,G,H,z,K,W=this,X=this.getConfiguration(),Y=new mk(this.g);return this.l.push(Y),(t=new ro((a=this,o=e,s=t||{},u=i||[],l=r||[],c=function(){var t;return F(function(i){return 1==i.g?n?i.B(2):M(i,sX(e,W.g,X.manifest.retryParameters),3):(2!=i.g&&(n=i.h),t=tF(e,n||null),i.return(t()))})},d=X,h=Y,t=F(function(e){var t,n,i,r,H,z,K,W,X,Y,Z,J,Q,$,ee,et,en,ei,er,ea,eo,es,eu,el,ec,eh,ep,ef,eg,em,ev,ey,eb,eT,ew,eS,eA,eE,ex,ek,eI,eC,eM,eL,eR,eP,eN,eO,e_,eq,ej,eB,eF,eV,eG,eH,ez,eK,eW,eX,eY,eZ,eJ,eQ,e$,e0,e1,e2,e5,e3,e4,e6,e7,e9,te,tt,ti,tr,ta,to,ts,tu,tl,tc,td;switch(e.g){case 1:return vu(),f=p=null,g=new mq,y=v=m=null,R(e,2,3),M(e,c(),5);case 5:return p=e.h,M(e,(t=a,n=o,i=p,r=d,F(function(e){if(1==e.g)return H=null,z={networkingEngine:t.g,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(e){H=e},isLowLatencyMode:function(){return!1},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return r.abr.defaultBandwidthEstimate},onMetadata:function(){},disableStream:function(){},addFont:function(){}},i.configure(r.manifest),vs(t),M(e,i.start(n,z),2);if(3!=e.g)return K=e.h,vs(t),M(e,Promise.all(ed(vc(K),function(e){return e.createSegmentIndex()})),3);if(vs(t),H)throw H;return e.return(K)})),6);case 6:if(b=e.h,vs(a),!(!b.presentationTimeline.U()&&!b.presentationTimeline.md()))throw new eU(2,9,9005,o);w=(T=E(u)).next();case 7:if(w.done){e.B(9);break}return M(e,(W=a,X=w.value,Y=b,F(function(e){switch(e.g){case 1:return M(e,vo(W,X),2);case 2:var t,n,i,r,a,o;if("text/vtt"!=(Z=e.h))throw new eU(1,2,2017,X);return M(e,(t=X,n=W.g,i=W.h.streaming.retryParameters,F(function(e){return 1==e.g?(r=rw,(a=rv([t],i)).method="GET",M(e,n.request(r,a).promise,2)):(o=e.h,e.return(o.data))})),3);case 3:if(J=e.h,!(Q=iv(Z)))throw new eU(2,2,2014,Z);for($=Q(),ee={periodStart:0,segmentStart:0,segmentEnd:Y.presentationTimeline.getDuration(),vttOffset:0},et=eD(J),en=$.parseMedia(et,ee,X,[]),ei=[],ea=(er=E(en)).next(),eo={};!ea.done;eo={zg:void 0,Gd:void 0},ea=er.next())eo.Gd=ea.value,eo.zg=null,es=function(e){return function(){return null==e.zg&&(e.zg=e8([X],[e.Gd.payload])),e.zg||[]}}(eo),eu=new aZ(eo.Gd.startTime,eo.Gd.endTime,es,0,null,null,0,0,1/0),eo.Gd.payload.includes("#xywh")&&4===(el=eo.Gd.payload.split("#xywh=")[1].split(",")).length&&eu.ng({height:parseInt(el[3],10),positionX:parseInt(el[0],10),positionY:parseInt(el[1],10),width:parseInt(el[2],10)}),ei.push(eu);if(ec=Z,!ei.length){e.B(4);break}return M(e,sX(ei[0].S()[0],W.g,W.h.manifest.retryParameters),5);case 5:ec=e.h;case 4:return e.return({id:W.m++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new sw(ei),mimeType:ec||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:"image",primary:!1,trickModeVideo:null,dependencyStream: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([ii(ec||"","")]),isAudioMuxedInVideo:!1,baseOriginalId:null})}})),10);case 10:S=e.h,b.imageStreams.push(S),vs(a),w=T.next(),e.B(7);break;case 9:x=(A=E(l)).next();case 11:if(x.done)return r6(d.drm.clearKeys,b.variants),C=b.variants.some(function(e){if(e.audio){for(var t=E(e.audio.drmInfos),n=t.next();!n.done;n=t.next())if(n.value.licenseServerUri.startsWith("data:"))return!0}if(e.video){for(t=(e=E(e.video.drmInfos)).next();!t.done;t=e.next())if(t.value.licenseServerUri.startsWith("data:"))return!0}return!1}),P=d.offline.usePersistentLicense,C&&(P=!1),M(e,a.Ed(b,function(e){y=y||e},d,P),15);return k=x.value,M(e,(eh=a,ep=b,ef=k.uri,eg=k.language,em=k.kind,ev=k.mime,ey=k.codecs,F(function(e){if(1==e.g)return ev?e.B(2):M(e,vo(eh,ef),3);if(2!=e.g&&(ev=e.h),eb={id:eh.m++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:sA(0,ep.presentationTimeline.getDuration(),[ef]),mimeType:ev||"",codecs:ey||"",kind:em,encrypted:!1,drmInfos:[],keyIds:new Set,language:eg,originalLanguage:eg,label:null,type:tn,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([ii(ev||"",ey||"")]),isAudioMuxedInVideo:!1,baseOriginalId:null},!iy(ii(eb.mimeType,eb.codecs)))throw new eU(2,2,2014,ev);return e.return(eb)})),14);case 14:I=e.h,b.textStreams.push(I),vs(a),x=A.next(),e.B(11);break;case 15:if(f=e.h,vs(a),y)throw y;return M(e,(eT=b,ew=f,eS=d,eA=P,F(function(e){switch(e.g){case 1:var t,n,i;return eE={width:1/0,height:1/0},t=eT,n=eS.restrictions,i=eE,t.variants=t.variants.filter(function(e){return iL(e,n,i)}),M(e,iR(ew,eT,eA,eS.drm.preferredKeySystems,eS.drm.keySystemsMapping),2);case 2:for(ex=[],ek=eS.preferredDecodingAttributes,eI=eS.preferredVideoCodecs,e
1C=eS.preferredAudioCodecs,iM(eT,eI,eC,ek,eS.preferredTextFormats),eL=(eM=E(eT.variants)).next();!eL.done;eL=eM.next())eR=eL.value,ex.push(iU(eR));for(eN=(eP=E(eT.textStreams)).next();!eN.done;eN=eP.next())eO=eN.value,ex.push(iq(eO));for(eq=(e_=E(eT.imageStreams)).next();!eq.done;eq=e_.next())ej=eq.value,ex.push(ij(ej));return M(e,eS.offline.trackSelectionCallback(ex),3);case 3:for(eB=e.h,eF=eT.presentationTimeline.getDuration(),eV=0,eH=(eG=E(eB)).next();!eH.done;eH=eG.next())ez=eH.value.bandwidth*eF/8,eV+=ez;return R(e,4),M(e,eS.offline.downloadSizeCallback(eV),6);case 6:if(!e.h)throw new eU(2,9,9014);D(e,5);break;case 4:if((eK=N(e))instanceof eU)throw eK;throw new eU(2,9,9015);case 5:for(eW=new Set,eX=new Set,eY=new Set,eJ=(eZ=E(eB)).next();!eJ.done;eJ=eZ.next())"variant"==(eQ=eJ.value).type&&eW.add(eQ.id),"text"==eQ.type&&eX.add(eQ.id),"image"==eQ.type&&eY.add(eQ.id);eT.variants=eT.variants.filter(function(e){return eW.has(e.id)}),eT.textStreams=eT.textStreams.filter(function(e){return eX.has(e.id)}),eT.imageStreams=eT.imageStreams.filter(function(e){return eY.has(e.id)}),function(e){e.variants.map(function(e){return e.video});var t=new Set(e.variants.map(function(e){return e.audio}));e=e.textStreams;for(var n=E(t),i=n.next();!i.done;i=n.next()){i=E(t);for(var r=i.next();!r.done;r=i.next());}for(n=(t=E(e)).next();!n.done;n=t.next())for(i=(n=E(e)).next();!i.done;i=n.next());}(eT),L(e)}})),16);case 16:return M(e,g.init(),17);case 17:return vs(a),M(e,mj(g),18);case 18:return m=e.h,vs(a),q=(U=function(e,t,n,i,r,a,o){var s,u,l,c,d,h,p,f,g=(s=n,u=t,l=i,{offlineUri:null,originalManifestUri:s,duration:u.presentationTimeline.getDuration(),size:0,expiration:1/0,tracks:u=m4(u),appMetadata:l,isIncomplete:!1}),m=r.offline.progressCallback;c=a,d=function(e,t){g.size=t,m(g,e)},h=function(t,n){v&&o&&y==n&&rY(e,"cenc",t)},c.u=d,c.m=h;var v=vn(t)&&!vi(t),y=null;v&&(y=vd.get(e.g.keySystem));for(var b=new m8,T=E(t.textStreams),w=T.next();!w.done;w=T.next())b.g.set(w.value.id,52);for(w=(T=E(t.imageStreams)).next();!w.done;w=T.next())p=b,f=w.value,p.g.set(f.id,f.bandwidth||2048);for(w=(T=E(t.variants)).next();!w.done;w=T.next())!function(e,t){var n=t.audio,i=t.video;
1if(n&&!i&&e.g.set(n.id,n.bandwidth||t.bandwidth),!n&&i&&e.g.set(i.id,i.bandwidth||t.bandwidth),n&&i){var r=n.bandwidth||393216,a=i.bandwidth||t.bandwidth-r;a<=0&&(a=t.bandwidth),e.g.set(n.id,r),e.g.set(i.id,a)}}(b,w.value);return r=(a=function(e,t,n,i){var r=new Map,a=vc(n),o=new Map;a=E(a);for(var s=a.next();!s.done;s=a.next()){var u=function(e,t,n,i,r,a){var o={id:i.id,originalId:i.originalId,groupId:i.groupId,primary:i.primary,type:i.type,mimeType:i.mimeType,codecs:i.codecs,frameRate:i.frameRate,pixelAspectRatio:i.pixelAspectRatio,hdr:i.hdr,colorGamut:i.colorGamut,videoLayout:i.videoLayout,kind:i.kind,language:i.language,originalLanguage:i.originalLanguage,label:i.label,width:i.width||null,height:i.height||null,encrypted:i.encrypted,keyIds:i.keyIds,segments:[],variantIds:[],roles:i.roles,forced:i.forced,channelsCount:i.channelsCount,audioSamplingRate:i.audioSamplingRate,spatialAudio:i.spatialAudio,closedCaptions:i.closedCaptions,tilesLayout:i.tilesLayout,mssPrivateData:i.mssPrivateData,external:i.external,fastSwitching:i.fastSwitching,isAudioMuxedInVideo:i.isAudioMuxedInVideo},s=r.offline.numberOfParallelDownloads,u=0===s?i.id:0;return function(e,t,n){if(null!=(t=e.segmentIndex.find(t)))for(var i=e.segmentIndex.get(t);i;)n(i,t),i=e.segmentIndex.get(++t)}(i,n.presentationTimeline.Nb(),function(n,r){var l=mS(n),c=void 0;if(!a.has(l)){var d=n.endTime-n.startTime;d=m6(t,i.id)*d,d=mE(e.g,d),a.set(l,new mw(n,d,u,!1,r))}n.ia&&(c=mS(n.ia),a.has(c)||(d=.5*m6(t,i.id),d=mE(e.g,d),a.set(c,new mw(n.ia,d,u,!0,r)))),o.segments.push({pendingInitSegmentRefId:c,initSegmentKey:c?0:null,startTime:n.startTime,endTime:n.endTime,appendWindowStart:n.appendWindowStart,appendWindowEnd:n.appendWindowEnd,timestampOffset:n.timestampOffset,tilesLayout:n.tilesLayout,pendingSegmentRefId:l,dataKey:0,mimeType:n.mimeType,codecs:n.codecs,thumbnailSprite:n.thumbnailSprite}),0!==s&&(u=(u+1)%s)}),o}(e,t,n,s=s.value,i,r);o.set(s.id,u)}for(t=(e=E(n.variants)).next();!t.done;t=e.next())(t=t.value).audio&&o.get(t.audio.id).variantIds.push(t.id),t.video&&o.get(t.video.id).variantIds.push(t.id);return{streams:Array.from(o.values()),zi:Array.from(r.values())}}(a,b,t,r)).streams,a=a.zi,(b=e.g)&&o&&(b.initData=[]),{Ll:{creationTime:Date.now(),originalManifestUri:n,duration:t.presentationTimeline.getDuration(),size:0,expiration:e.re(),streams:r,sessionIds:o?rZ(e):[],drmInfo:b,appMetadata:i,isIncomplete:!0,sequenceMode:t.sequenceMode,type:t.type},zi:a}}(f,b,o,s,d,h,P)).Ll,j=U.zi,M(e,m.kb.addManifests([q]),19);case 19:if(B=e.h,vs(a),v=B[0],vs(a),y)throw y;return M(e,(e$=a,e0=j,e1=v,e2=q,e5=h,e3=d,e4=m.kb,e6=b,e7=f,e9=P,F(function(e){switch(e.g){case 1:if(te={},tt=0,ti=function(){if(e$.j.g||e5.l)throw new eU(2,9,7001)},tr=function(e,t){var n,i,r,a,o,s,u,l;return F(function(c){if(1==c.g){var d,h,p;for(i=(n=E(e)).next(),r={};!i.done;r={zc:void 0},i=n.next())r.zc=i.value,ti(),d=r.zc,h=e3,a=sZ(d.g.S(),d.g.startByte,d.g.endByte,h.streaming.retryParameters),o=r.zc.i,s=r.zc.h,u=function(e){return function(t){var n,i,r,a;return F(function(o){switch(o.g){case 1:if(i=(n=e.zc.g).jc(!1),!n.aesKey||i){o.B(2);break}return M(o,sW(t,n.aesKey,e.zc.j),3);case 3:t=o.h;case 2:return r=mS(n),M(o,e4.addSegments([{data:t}]),4);case 4:a=o.h,ti(),te[r]=a[0],tt+=t.byteLength,L(o)}})}}(r),(l=r.zc.g.jc(!1))?function(e,t,n,i,r,a){rx(e.h);var o=(e.i.get(t)||Promise.resolve()).then(function(){if(e.h.g)throw new eU(2,9,7001);if(r){var t=eD(n);for(var o in(t=new rV(t)).data){var s=Number(o);e.m(t.data[s],t.g[s])}}return e.g.close(i,n.byteLength),e.u(mx(e.g),e.g.g),a(n)});e.i.set(t,o)}(e5,r.zc.groupId,l,o,s,u):e5.queue(r.zc.groupId,a,o,s,u);return M(c,(p=e5,F(function(e){return 1==e.g?M(e,Promise.all(p.i.values()),2):e.return(p.g.g)})),2)}return(ti(),!t||e5.l)?c.B(0):(vr(e6,e2,e7,e9),M(c,e4.updateManifest(e1,e2),0))})},ta=!1,R(e,2),!vn(e6)||!ta||vi(e6)){e.B(4);break}return M(e,tr(e0.filter(function(e){return e.h}),!0),5);case 5:return ti(),e0=e0.filter(function(e){return!e.h}),to=te,ts=tt,te={},tt=0,M(e,vt(e4,e1,e2,to,ts,function(){return vs(e$)}),6);case 6:ti();case 4:if(ta){e.B(7);break}return M(e,tr(e0,!1),8);case 8:return ti(),tu=te,tl=tt,te={},tt=0,M(e,vt(e4,e1,e2,tu,tl,function(){return ti()}),9);case 9:ti();case 7:D(e,0);break;case 2:return tc=N(e),td=Object.values(te),M(e,e4.removeSegments(td,function(){}),10);case 10:throw tc}})),20);case 20:return vs(a),vr(b,q,f,P),M(e,m.kb.updateManifest(v,q),21);case 21:return vs(a),V=new mY("manifest",m.path.$b,m.path.kb,v),e.return(m3(V,q));case 3:return O(e),M(e,g.destroy(),22);case 22:if(!p){e.B(23);break}return M(e,p.stop(),23);case 23:if(!f){e.B(25);break}return M(e,f.destroy(),25);case 25:_(e,0);break;case 2:if(G=N(e),null==v){e.B(27);break}return M(e,ve(v),27);case 27:throw y||G}})),function(){return mI(Y)})).finally(function(){tE(W.l,Y)}),H=this,K=(z=t).promise,H.i.push(K),z.finally(function(){tE(H.i,K)})},p.remove=function(e){var t,n,i,r,a,o,s;return vl(this,(t=this,n=e,F(function(e){switch(e.g){case 1:if(vu(),null==(i=mZ(n))||"manifest"!=i.g)throw new eU(2,9,9004,n);return r=i,a=new mq,P(e,2),M(e,a.init(),4);case 4:return M(e,mB(a,r.$b(),r.kb()),5);
1case 5:return o=e.h,M(e,o.getManifests([r.key()]),6);case 6:var u,l,c;return s=e.h[0],M(e,Promise.all([(u=t,l=s,c=a,F(function(e){var t,n,i,r,a,o,s;return M(e,(t=u.g,n=u.h.drm,i=c,r=l,F(function(e){return 1==e.g?r.drmInfo?(a=function(e){var t=Array.from(e.g.keys());if(!t.length)throw new eU(2,9,9e3,"No supported storage mechanisms found");return e.g.get(t[0]).getEmeSessionCell()}(i),M(e,m5(n,t,o=r.sessionIds.map(function(e){return{sessionId:e,keySystem:r.drmInfo.keySystem,licenseUri:r.drmInfo.licenseServerUri,serverCertificate:r.drmInfo.serverCertificate,audioCapabilities:va(r,!1),videoCapabilities:va(r,!0)}})),2)):e.return():3!=e.g?(s=e.h,M(e,a.remove(s),3)):M(e,a.add(o.filter(function(e){return!s.includes(e.sessionId)})),0)})),0)})),function(e,t,n){function i(){}var r=function(e){var t=new Set;e=E(e.streams);for(var n=e.next();!n.done;n=e.next()){n=E(n.value.segments);for(var i=n.next();!i.done;i=n.next())null!=(i=i.value).initSegmentKey&&t.add(i.initSegmentKey),t.add(i.dataKey)}return Array.from(t)}(n);return m3(t,n),Promise.all([e.removeSegments(r,i),e.removeManifests([t.key()],i)])}(o,r,s)]),2);case 2:return O(e),M(e,a.destroy(),8);case 8:_(e,0)}})))},p.fm=function(){var e,t,n,i,r,a,o,s,u,l,c;return vl(this,(e=this,F(function(d){switch(d.g){case 1:return vu(),t=e.g,n=e.h.drm,i=new mq,r=!1,P(d,2),M(d,i.init(),4);case 4:var h,p;a=[],h=i,p=function(e){return a.push(e)},h.g.forEach(function(e){p(e.getEmeSessionCell())}),s=(o=E(a)).next();case 5:if(s.done){d.B(2);break}return M(d,(u=s.value).getAll(),8);case 8:return l=d.h,M(d,m5(n,t,l),9);case 9:return c=d.h,M(d,u.remove(c),10);case 10:c.length!=l.length&&(r=!0),s=o.next(),d.B(5);break;case 2:return O(d),M(d,i.destroy(),11);case 11:_(d,3);break;case 3:return d.return(!r)}})))},p.list=function(){var e,t,n;return vl(this,F(function(i){switch(i.g){case 1:return vu(),e=[],t=new mq,P(i,2),M(i,t.init(),4);case 4:var r,a;return n=Promise.resolve(),r=t,a=function(t,i){n=n.then(function(){return F(function(n){if(1==n.g)return M(n,i.getAllManifests(),2);n.h.forEach(function(n,i){n=m3(new mY("manifest",t.$b,t.kb,i),n),e.push(n)}),L(n)})})}
1,r.g.forEach(function(e,t){e.getCells().forEach(function(e,n){a({$b:t,kb:n},e)})}),M(i,n,2);case 2:return O(i),M(i,t.destroy(),6);case 6:_(i,3);break;case 3:return i.return(e)}}))},p.Ed=function(e,t,n,i){var r,a=this;return F(function(o){var s,u,l;return 1==o.g?((r=new rH({Gc:a.g,onError:t,Vf:function(){},onExpirationUpdated:function(){},onEvent:function(){}})).configure(n.drm),M(o,(s=r,u=e.variants,l=i,s.ea=!0,s.D=new Map,s.P=l,rK(s,u,!1)),2)):3!=o.g?M(o,rX(r),3):o.return(r)})},$("shaka.offline.Storage",m7),m7.deleteAll=function(){var e;return F(function(t){var n,i,r;return 1==t.g?(e=new mq,P(t,2),M(t,(n=e,F(function(e){return 1==e.g?((r=(i=Array.from(n.g.values())).length>0)||mV.forEach(function(e){(e=e())&&i.push(e)}),M(e,Promise.all(i.map(function(e){return e.erase()})),2)):r?e.B(0):M(e,Promise.all(i.map(function(e){return e.destroy()})),0)})),2)):5!=t.g?(O(t),M(t,e.destroy(),5)):_(t,0)})},m7.prototype.list=m7.prototype.list,m7.prototype.removeEmeSessions=m7.prototype.fm,m7.prototype.remove=m7.prototype.remove,m7.prototype.store=m7.prototype.store,m7.prototype.getNetworkingEngine=m7.prototype.Xb,m7.prototype.getConfiguration=m7.prototype.getConfiguration,m7.prototype.configure=m7.prototype.configure,m7.prototype.destroy=m7.prototype.destroy,m7.support=m9;var vd=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.huawei.wiseplay","3d5e6d359b9a41e8b843dd3c6e72c42c");function vh(){}function vp(){for(var e=E(vg),t=e.next();!t.done;t=e.next()){t=t.value;try{t.callback()}catch(e){ea("Error installing polyfill!",e)}}}function vf(e,t){for(e={priority:t||0,callback:e},t=0;t<vg.length;t++)if(vg[t].priority<e.priority)return void vg.splice(t,0,e);vg.push(e)}l9("offline",m9),$("shaka.polyfill",vh),vh.register=vf,vh.installAll=vp;var vg=[];function vm(){}function vv(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var e=E(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),t=e.next();!t.done;t=e.next())!function(e){var t="aria-"+e.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,e,{get:function(){return this.getAttribute(t)},set:function(e){null==e||void 0==e?this.removeAttribute(t):this.setAttribute(t,e)}})}(t.value)}function vy(e,t,n){this.g=e,this.i=t||null,this.h=n||null,this.keySystem=e.keySystem}function vb(e){return e.startsWith("com.apple")?"cbcs":e.startsWith("com.widevine")||e.startsWith("com.microsoft")||e.startsWith("com.chromecast")||e.startsWith("org.w3")||e.startsWith("com.huawei")?"cenc":(ea("EmeEncryptionSchemePolyfill: Unknown key system:",e,"Please contribute!"),null)}function vT(e){if(!e)return!1;var t=(e=e.getConfiguration()).audioCapabilities&&e.audioCapabilities[0];return!!(e=e.videoCapabilities&&e.videoCapabilities[0]||t)&&void 0!==e.encryptionScheme}function vw(e,t){return!!(!e||e==t||("cbcs"==e||"cbcs-1-9"==e)&&eB().vd())}function vS(){}function vA(){eB().qg()&&!a&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(a=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=vE,navigator.emeEncryptionSchemePolyfilled=!0)}function vE(e,t){var n,i=this;return F(function(r){return 1==r.g?M(r,a.call(i,e,t),2):vT(n=r.h)?(navigator.requestMediaKeySystemAccess=a,r.return(n)):(navigator.requestMediaKeySystemAccess=vx,r.return(vx.call(i,e,t)))})}function vx(e,t){var n,i,r,o,s,u,l,c,d,h,p,f,g=this;return F(function(m){if(1==m.g){for(n=vb(e),i=[],o=(r=E(t)).next();!o.done;o=r.next())u=vk((s=o.value).videoCapabilities,n),l=vk(s.audioCapabilities,n),s.videoCapabilities&&s.videoCapabilities.length&&!u.length||s.audioCapabilities&&s.audioCapabilities.length&&!l.length||((c=Object.assign({},s)).videoCapabilities=u,c.audioCapabilities=l,i.push(c));if(!i.length)throw(d=Error("Unsupported keySystem or supportedConfigurations.")).name="NotSupportedError",d.code=DOMException.NOT_SUPPORTED_ERR,d;return M(m,a.call(g,e,i),2)}
1return h=m.h,f=p=null,i[0]&&(i[0].videoCapabilities&&(p=i[0].videoCapabilities[0].encryptionScheme),i[0].audioCapabilities&&(f=i[0].audioCapabilities[0].encryptionScheme)),m.return(new vy(h,p,f))})}function vk(e,t){return e?e.filter(function(e){return vw(e.encryptionScheme,t)}):e}function vI(){}function vC(){if(e.Document){var t=Element.prototype;t.requestFullscreen=t.requestFullscreen||t.mozRequestFullScreen||t.webkitRequestFullscreen,(t=Document.prototype).exitFullscreen=t.exitFullscreen||t.mozCancelFullScreen||t.webkitCancelFullScreen,"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.webkitFullscreenEnabled}})),document.addEventListener("webkitfullscreenchange",vM),document.addEventListener("webkitfullscreenerror",vM),document.addEventListener("mozfullscreenchange",vM),document.addEventListener("mozfullscreenerror",vM)}}function vM(e){var t=e.type.replace(/^(webkit|moz)/,"").toLowerCase(),n=document.createEvent("Event");n.initEvent(t,e.bubbles,e.cancelable),e.target.dispatchEvent(n)}function vL(){}function vR(){eB().qg()&&!o&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&(o=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=vP,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}function vP(e){var t,n,i=this;return F(function(r){switch(r.g){case 1:return M(r,o.call(i,e),2);case 2:if(!(t=r.h).supported||!e.keySystemConfiguration)return r.return(t);if(vT(n=t.keySystemAccess))return navigator.mediaCapabilities.decodingInfo=o,r.return(t);if(navigator.mediaCapabilities.decodingInfo=vD,n){r.B(3);break}return M(r,vN(e),4);case 4:return t.keySystemAccess=r.h,r.return(t);case 3:return r.return(vD.call(i,e))}})}function vD(e){var t,n,i,r,a,s,u,l=this;return F(function(c){switch(c.g){case 1:return n=t=null,!e.keySystemConfiguration||(r=(i=e.keySystemConfiguration).keySystem,
1n=i.audio&&i.audio.encryptionScheme,t=i.video&&i.video.encryptionScheme,a=vb(r),s={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:e},vw(n,a)&&vw(t,a))?M(c,o.call(l,e),2):c.return(s);case 2:if((u=c.h).keySystemAccess){u.keySystemAccess=new vy(u.keySystemAccess,t,n),c.B(3);break}if(!e.keySystemConfiguration){c.B(3);break}return M(c,vN(e),5);case 5:u.keySystemAccess=c.h;case 3:return c.return(u)}})}function vN(e){var t,n;return F(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,M(i,navigator.requestMediaKeySystemAccess(e.keySystemConfiguration.keySystem,[t]),2)}return n=i.h,i.return(n)})}function vO(){}function v_(){eB().qc()||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),vO.originalMcap=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=vU)}function vU(t){var n,i,r,a,o,s,u;return F(function(l){switch(l.g){case 1:if(n={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:t},eB(),i=t.video,r=t.audio,"media-source"!=t.type){if("file"!=t.type||i&&(a=i.contentType,""==oi().canPlayType(a))||r&&(o=r.contentType,""==oi().canPlayType(o)))return l.return(n);l.B(2);break}if(!fq())return l.return(n);if(!i){l.B(3);break}return M(l,(c=i,F(function(t){var n,i,r,a,o;return 1==t.g?"CAST"!==eB().Oa()?t.B(2):M(t,(n=c,F(function(t){if(1==t.g){if(!(e.cast&&cast.__platform__&&cast.__platform__.canDisplayType))return t.return(ah(n.contentType));switch(i=n.contentType,n.width&&n.height&&n.width>1280&&n.height>720&&(i+="; width="+n.width+"; height="+n.height),n.framerate&&((r=Math.round(n.framerate))<24||r>30)&&(i+="; framerate="+n.framerate),n.transferFunction||""){case"":case"srgb":break;case"pq":i+="; eotf=smpte2084";break;case"hlg":i+="; eotf=arib-std-b67";break;default:return t.return(!1)}return a=!1,(o=vq).has(i)?(a=o.get(i),t.B(2)):M(t,cast.__platform__.canDisplayType(i),3)}return 2!=t.g&&(a=t.h,o.set(i,a)),t.return(a)})),3):2!=t.g?(d=t.h,t.return(d)):t.return(ah(c.contentType))})),4);case 4:if(!l.h)return l.return(n);case 3:if(r){var c,d,h,p,f,g,m,v,y,b,T,w,S,A,E,x,k=eB().Oa(),I=r.contentType;if("CAST"===k&&r.spatialRendering&&(I+="; spatialRendering=true"),!ah(I))return l.return(n)}case 2:if(!t.keySystemConfiguration)return n.supported=!0,l.return(n);return s=t.keySystemConfiguration,M(l,(h=i,p=r,f=s,F(function(e){switch(e.g){case 1:if(g=[],m=[],f.audio&&(v={robustness:f.audio.robustness||"",contentType:p.contentType},eB().rj()&&p.contentType.includes('codecs="ac-3"')&&(v.contentType='audio/mp4; codecs="ec-3"'),f.audio.encryptionScheme&&(v.encryptionScheme=f.audio.encryptionScheme),g.push(v)),f.video&&(y={robustness:f.video.robustness||"",contentType:h.contentType},f.video.encryptionScheme&&(y.encryptionScheme=f.video.encryptionScheme),m.push(y)),b={initDataTypes:[f.initDataType],distinctiveIdentifier:f.distinctiveIdentifier,persistentState:f.persistentState,sessionTypes:f.sessionTypes},g.length&&(b.audioCapabilities=g),m.length&&(b.videoCapabilities=m),T=h?h.contentType:"",w=p?p.contentType:"",S=il(T)+";"+iu(T),A=il(w)+";"+iu(w),E=f.keySystem,x=null,R(e,2),rt.has(S+"#"+A+"#"+E)){x=rt.get(S+"#"+A+"#"+E)||null,e.B(4);break}return M(e,navigator.requestMediaKeySystemAccess(f.keySystem,[b]),5);case 5:x=e.h,rt.set(S+"#"+A+"#"+E,x);case 4:D(e,3);break;case 2:N(e);case 3:return e.return(x)}})),6);case 6:(u=l.h)&&(n.supported=!0,n.keySystemAccess=u);case 5:return l.return(n)}})}vh.Aria=vm,vm.install=vv,vf(vv),vy.prototype.getConfiguration=function(){var e=this.g.getConfiguration();if(e.videoCapabilities)for(var t=E(e.videoCapabilities),n=t.next();!n.done;n=t.next())n.value.encryptionScheme=this.i;if(e.audioCapabilities)for(n=(t=E(e.audioCapabilities)).next();!n.done;n=t.next())n.value.encryptionScheme=this.h;return e},vy.prototype.createMediaKeys=function(){return this.g.createMediaKeys()},vh.EmeEncryptionScheme=vS,vS.install=vA,vf(vA),vh.Fullscreen=vI,vI.install=vC,vf(vC),vh.MCapEncryptionScheme=vL,vL.install=vR,vf(vR,-2),vh.MediaCapabilities=vO,vO.install=v_,vO.originalMcap=null;var vq=new Map;function vj(){}function vB(){var t,n,i=eB(),r="WEBKIT"===i.Ja()?i.Ha():null;for((e.MediaSource||e.ManagedMediaSource)&&r&&e.MediaSource&&(r<=12?(vF(),t=SourceBuffer.prototype.remove,SourceBuffer.prototype.remove=function(e,n){return t.call(this,e,n-.001)}):r<=15&&vF()),r=(i=E(i.Bj())).next();!r.done;
1r=i.next())!function(t){var n=MediaSource.isTypeSupported.bind(MediaSource);if(MediaSource.isTypeSupported=function(e){return iu(e)!=t&&n(e)},e.ManagedMediaSource){var i=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);e.ManagedMediaSource.isTypeSupported=function(e){return iu(e)!=t&&i(e)}}}(r.value);(e.MediaSource||e.ManagedMediaSource)&&function(){if(e.MediaSource){var t=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(e){return"mp2t"!=io(e)&&t(e)}}if(e.ManagedMediaSource){var n=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);e.ManagedMediaSource.isTypeSupported=function(e){return"mp2t"!=io(e)&&n(e)}}}(),e.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&(n=MediaSource.isTypeSupported,eB().bk()&&(MediaSource.isTypeSupported=function(e){var t=e.split(/ *; */),i=t.findIndex(function(e){return e.startsWith("codecs=")});if(i<0)return n(e);var r=t[i].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),a=r.findIndex(function(e){return e.startsWith("vp09")});return a>=0&&(r[a]="vp9",t[i]='codecs="'+r.join(",")+'"',e=t.join("; ")),n(e)}))}function vF(){var e=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var t=e.apply(this,V.apply(0,arguments));return t.abort=function(){},t}}function vV(){}function vG(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?(void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()}),void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})):void 0!=e.orientation&&function(){function t(){switch(e.orientation){case -90:n.type="landscape-secondary",n.angle=270;break;case 0:n.type="portrait-primary",n.angle=0;break;case 90:n.type="landscape-primary",n.angle=90;break;case 180:n.type="portrait-secondary",n.angle=180}}var n=new vH;screen.orientation=n,t(),e.addEventListener("orientationchange",function(){t();var e=new ee("change");n.dispatchEvent(e)})}())}function vH(){ec.call(this),this.type="",this.angle=0}function vz(){}function vK(t){e.HTMLVideoElement&&e.WebKitMediaKeys&&e.shakaMediaKeysPolyfill!=v2&&((void 0===t?0:t)&&(s=!0,u=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),l=HTMLMediaElement.prototype.setMediaKeys,c=e.MediaKeys,d=e.MediaKeySystemAccess,h=navigator.requestMediaKeySystemAccess),delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=vX,e.MediaKeys=vJ,e.MediaKeySystemAccess=vZ,navigator.requestMediaKeySystemAccess=vW,e.shakaMediaKeysPolyfill=v2,iJ.clear(),rt.clear())}function vW(e,t){try{var n=new vZ(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function vX(e){var t=this.mediaKeys;return t&&t!=e&&vQ(t,null),delete this.mediaKeys,(this.mediaKeys=e)?vQ(e,this):Promise.resolve()}function vY(e){if(eO(e=eD(e.initData)).getUint32(0,!0)+4!=e.byteLength)throw RangeError("Malformed FairPlay init data");e=eX(e=eK(e.subarray(4),!0));var t=new Event("encrypted");t.initDataType="skd",t.initData=eP(e),this.dispatchEvent(t)}function vZ(e,t){if(this.keySystem=e,e.startsWith("com.apple.fps"))for(t=(e=E(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=E(n.audioCapabilities),o=a.next();!o.done;o=a.next())(o=o.value).contentType&&(i=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,o.contentType.split(";")[0])&&(t.audioCapabilities.push(o),r=!0));if(n.videoCapabilities)for(a=(n=E(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 vJ(e){this.h=new WebKitMediaKeys(e),this.g=new tI}function vQ(e,t){if(e.g.Sa(),!t)return Promise.resolve();e.g.o(t,"webkitneedkey",vY);try{return sr(t,HTMLMediaElement.HAVE_METADATA,e.g,function(){t.webkitSetMediaKeys(e.h)}),Promise.resolve()}catch(e){return Promise.reject(e)}}function v$(e){ec.call(this),this.i=null,this.l=e,this.g=this.h=null,this.j=new tI,this.sessionId="",this.expiration=NaN,this.closed=new ra,this.keyStatuses=new v1,this.onkeystatuseschange=null}function v0(e,t){var n=e.keyStatuses;n.size=+(void 0!=t),n.g=t,t=new ee("keystatuseschange"),e.dispatchEvent(t),e.onkeystatuseschange&&e.onkeystatuseschange(t)}
1function v1(){this.size=0,this.g=void 0}vf(v_,-1),vh.MediaSource=vj,vj.install=vB,vf(vB),vh.Orientation=vV,vV.install=vG,S(vH,ec),vH.prototype.lock=function(e){function t(e){return screen.lockOrientation?screen.lockOrientation(e):!!screen.mozLockOrientation&&screen.mozLockOrientation(e)}var n=!1;switch(e){case"natural":n=t("default");break;case"any":n=!0,this.unlock();break;default:n=t(e)}return n?Promise.resolve():((e=Error("screen.orientation.lock() is not available on this device")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,Promise.reject(e))},vH.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation&&screen.mozUnlockOrientation()},vf(vG),vh.PatchedMediaKeysApple=vz,vz.uninstall=function(){e.shakaMediaKeysPolyfill==v2&&s&&(s=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",u),HTMLMediaElement.prototype.setMediaKeys=l,e.MediaKeys=c,e.MediaKeySystemAccess=d,navigator.requestMediaKeySystemAccess=h,u=h=l=d=c=null,e.shakaMediaKeysPolyfill="",iJ.clear(),rt.clear())},vz.install=vK,vZ.prototype.createMediaKeys=function(){return Promise.resolve(new vJ(this.keySystem))},vZ.prototype.getConfiguration=function(){return this.g},vJ.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw TypeError("Session type "+e+" is unsupported on this platform.");return new v$(this.h,e)},vJ.prototype.setServerCertificate=function(){return Promise.resolve(!1)},vJ.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")},S(v$,ec),(p=v$.prototype).generateRequest=function(e,t){var n=this;this.h=new ra;try{var i=this.l.createSession("video/mp4",eD(t));this.i=i,this.sessionId=i.sessionId||"",this.j.o(this.i,"webkitkeymessage",function(e){n.h&&(n.h.resolve(),n.h=null),e=(new Map).set("messageType",void 0==n.keyStatuses.Vc()?"license-request":"license-renewal").set("message",eP(e.message)),e=new ee("message",e),n.dispatchEvent(e)}),this.j.o(i,"webkitkeyadded",function(){n.g&&(v0(n,"usable"),n.g.resolve(),n.g=null)}),this.j.o(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:v0(n,"output-not-allowed");break;default:v0(n,"internal-error")}}),v0(this,"status-pending")}catch(e){this.h.reject(e)}return this.h},p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},p.update=function(e){this.g=new ra;try{this.i.update(eD(e))}catch(e){this.g.reject(e)}return this.g},p.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Sa()}catch(e){this.closed.reject(e)}return this.closed},p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(p=v1.prototype).Vc=function(){return this.g},p.forEach=function(e){this.g&&e(this.g,re.value())},p.get=function(e){if(this.has(e))return this.g},p.has=function(e){var t=re.value();return!!(this.g&&eR(e,t))},p.entries=function(){},p.keys=function(){},p.values=function(){};var v2="apple";function v5(){}function v3(){if(e.MediaKeys){var t=eB();MediaKeys.prototype.setServerCertificate&&t.Ne()||(MediaKeys.prototype.setServerCertificate=v4)}}function v4(){return Promise.resolve(!1)}function v8(){}function v6(){if(!(!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)yl="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=v9,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=ye,e.MediaKeys=yn,e.MediaKeySystemAccess=yt,e.shakaMediaKeysPolyfill=yc}}function v7(e){var t=yl;return t?t+e.charAt(0).toUpperCase()+e.slice(1):e}function v9(e,t){try{var n=new yt(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function ye(e){var t=this.mediaKeys;return t&&t!=e&&yi(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&yi(e,this),Promise.resolve()}function yt(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=E(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=E(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=E(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 yn(e){this.l=e,this.h=null,this.g=new tI,this.i=[],this.j=new Map}function yi(e,t){e.h=t,e.g.Sa();var n=yl;t&&(e.g.o(t,n+"needkey",function(t){var n=new CustomEvent("encrypted");n.initDataType="cenc",n.initData=eP(t.initData),e.h.dispatchEvent(n)}),e.g.o(t,n+"keymessage",function(t){var n=yr(e,t.sessionId);n&&(t=new ee("message",t=(new Map).set("messageType",void 0==n.keyStatuses.Vc()?"licenserequest":"licenserenewal").set("message",t.message)),n.h&&(n.h.resolve(),n.h=null),n.dispatchEvent(t))}
1),e.g.o(t,n+"keyadded",function(t){(t=yr(e,t.sessionId))&&t.ready()}),e.g.o(t,n+"keyerror",function(t){var n=yr(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?ys(n,"output-restricted"):1==i?ys(n,"expired"):ys(n,"internal-error"))}}))}function yr(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 ya(e,t,n){ec.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 ra,this.keyStatuses=new yu,this.onkeystatuseschange=null}function yo(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=eD(eX("LOAD_SESSION|"+n));else{var r=eX("PERSISTENT|");i=e4(r,t)}else i=eD(t)}catch(e){return Promise.reject(e)}e.h=new ra;var a=v7("generateKeyRequest");try{e.j[a](e.i,i)}catch(t){if("InvalidStateError"!=t.name)return e.h=null,Promise.reject(t);new iA(function(){try{e.j[a](e.i,i)}catch(t){e.h.reject(t),e.h=null}}).Y(.01)}return e.h}function ys(e,t){var n=e.keyStatuses;n.size=+(void 0!=t),n.g=t,t=new ee("keystatuseschange"),e.dispatchEvent(t),e.onkeystatuseschange&&e.onkeystatuseschange(t)}function yu(){this.size=0,this.g=void 0}vf(function(){e.HTMLVideoElement&&e.WebKitMediaKeys&&(navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||vK())}),vh.PatchedMediaKeysCert=v5,v5.install=v3,vf(v3),vh.PatchedMediaKeysWebkit=v8,v8.install=v6,yt.prototype.createMediaKeys=function(){return Promise.resolve(new yn(this.g))},yt.prototype.getConfiguration=function(){return this.h},yn.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 ya(t,this.l,e),this.i.push(e),e},yn.prototype.setServerCertificate=function(){return Promise.resolve(!1)},yn.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")},S(ya,ec),(p=ya.prototype).ready=function(){ys(this,"usable"),this.g&&this.g.resolve(),this.g=null},p.generateRequest=function(e,t){return yo(this,t,null)},p.load=function(e){return"persistent-license"==this.l?yo(this,null,e):Promise.reject(Error("Not a persistent session."))},p.update=function(e){var t=new ra;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=ez(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=e2(a.keys[0].k),a=e2(a.keys[0].kid)}else r=eD(i),a=null;var o=v7("addKey");try{t.j[o](t.i,r,a,t.sessionId)}catch(e){t.g.reject(e),t.g=null}}}(this,t,e),t},p.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=v7("cancelKeyRequest");try{this.j[e](this.i,this.sessionId)}catch(e){}}return this.closed.resolve(),this.closed},p.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()},(p=yu.prototype).Vc=function(){return this.g},p.forEach=function(e){this.g&&e(this.g,re.value())},p.get=function(e){if(this.has(e))return this.g},p.has=function(e){var t=re.value();return!!(this.g&&eR(e,t))},p.entries=function(){},p.keys=function(){},p.values=function(){};var yl="",yc="webkit";function yd(){}function yh(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;t.requestPictureInPicture&&document.exitPictureInPicture||!t.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,t.requestPictureInPicture=yf,Object.defineProperty(t,"disablePictureInPicture",{get:ym,set:yv,enumerable:!0,configurable:!0}),document.exitPictureInPicture=yg,document.addEventListener("webkitpresentationmodechanged",yp,!0))}}function yp(e){if("picture-in-picture"==(e=e.target).webkitPresentationMode){document.pictureInPictureElement=e;var t=new Event("enterpictureinpicture");e.dispatchEvent(t)}else document.pictureInPictureElement==e&&(document.pictureInPictureElement=null),t=new Event("leavepictureinpicture"),e.dispatchEvent(t)}function yf(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function yg(){var e=document.pictureInPictureElement;return e?(e.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}function ym(){return!!this.hasAttribute("disablePictureInPicture")||!this.webkitSupportsPresentationMode("picture-in-picture")}function yv(e){e?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}function yy(){}function yb(){e.crypto&&("randomUUID"in e.crypto||(e.crypto.randomUUID=yT))}function yT(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)}function yw(){}function yS(){var e=Symbol.prototype;"description"in e||Object.defineProperty(e,"description",{get:yA})}function yA(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}function yE(){}function yx(){for(var e=E([Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array
1]),t=e.next();!t.done;t=e.next())(t=t.value).prototype.indexOf||(t.prototype.indexOf=yk),t.prototype.lastIndexOf||(t.prototype.lastIndexOf=yI),t.prototype.includes||(t.prototype.includes=yC)}function yk(e,t){return Array.prototype.indexOf.call(this,e,t)}function yI(e,t){return Array.prototype.lastIndexOf.call(this,e,t)}function yC(e,t){return -1!==this.indexOf(e,t)}function yM(){}function yL(){if(e.HTMLMediaElement){var t=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var e=t.apply(this);return e&&e.catch(function(){}),e}}}function yR(){}function yP(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in t||"number"==typeof oi().webkitDroppedFrameCount)&&(t.getVideoPlaybackQuality=yD)}}function yD(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function yN(){}function yO(){if(!e.VTTCue&&e.TextTrackCue){var t=null,n=TextTrackCue.length;if(3==n)t=y_;else if(6==n)t=yU;else{try{var i=!!y_(1,2,"")}catch(e){i=!1}i&&(t=y_)}t&&(e.VTTCue=function(e,n,i){return t(e,n,i)})}}function y_(t,n,i){return new e.TextTrackCue(t,n,i)}function yU(t,n,i){return new e.TextTrackCue(t+"-"+n+"-"+i,t,n,i)}function yq(e){ec.call(this),this.g=e,this.m=null,this.h=[],this.j=-1,this.i=this.l=null,this.u=new tI}function yj(){}vf(v6),vh.PiPWebkit=yd,yd.install=yh,vf(yh),vh.RandomUUID=yy,yy.install=yb,vf(yb),vh.Symbol=yw,yw.install=yS,vf(yS),vh.TypedArray=yE,yE.install=yx,vf(yx),vh.VideoPlayPromise=yM,yM.install=yL,vf(yL),vh.VideoPlaybackQuality=yR,yR.install=yP,vf(yP),vh.VTTCue=yN,yN.install=yO,vf(yO),S(yq,ec),(p=yq.prototype).destroy=function(){var e=this;return F(function(t){if(1==t.g)return M(t,e.removeAllItems(),2);e.g=null,e.u&&(e.u.release(),e.u=null),ec.prototype.release.call(e),L(t)})},p.configure=function(e){this.m=e},p.getConfiguration=function(){return this.m},p.getCurrentItem=function(){return this.h.length&&this.j>=0&&this.j<this.h.length?this.h[this.j]:null},p.getCurrentItemIndex=function(){return this.j},p.getItems=function(){return this.h.slice()},p.insertItems=function(e){this.h.push.apply(this.h,x(e)),this.dispatchEvent(new ee("itemsinserted"))},p.removeAllItems=function(){var e,t,n,i,r=this;return F(function(a){if(1==a.g)return r.u.Sa(),r.h.length&&r.j>=0?M(a,r.g.vc(),2):a.B(2);if(4!=a.g){for(e=[],r.i&&(r.i.preloadManager.l||e.push(r.i.preloadManager.destroy()),r.i=null),r.l&&(r.l.preloadManager.l||e.push(r.l.preloadManager.destroy()),r.l=null),n=(t=E(r.h)).next();!n.done;n=t.next())(i=n.value).preloadManager&&!i.preloadManager.l&&e.push(i.preloadManager.destroy());return e.length?M(a,Promise.all(e),4):a.B(4)}r.h=[],r.j=-1,r.dispatchEvent(new ee("itemsremoved")),L(a)})},p.playItem=function(e){var t,n,i,r,a,o,s,u,l,c,d,h,p,f,g,m,v,y=this;return F(function(b){switch(b.g){case 1:if(y.u.Sa(),!y.h.length||e>=y.h.length)throw new eU(2,7,7007);if(t=y.getCurrentItem(),n=y.h[e],y.j!=e&&(y.j=e,y.dispatchEvent(new ee("currentitemchanged"))),i=y.g.xf(),(r=y.m?y.m.preloadNextUrlWindow:0)>0&&(a=!1,y.u.o(i,"timeupdate",function(){var e,t,n,o;return F(function(s){switch(s.g){case 1:if(y.l||y.h.length<=1||a||y.g.U()||!i.duration)return s.return();if(isNaN(e=y.g.wa().end-i.currentTime)||!(e<=r)||(t=y.m&&y.m.repeatMode,n=null,y.j+1<y.h.length?n=y.h[y.j+1]:1==t&&(n=y.h[0]),!n||n.preloadManager&&!n.preloadManager.l)){s.B(0);break}return a=!0,o=null,R(s,5),M(s,y.g.preload(n.manifestUri,n.startTime,n.mimeType,n.config),7);case 7:o=s.h,D(s,6);break;case 5:N(s),o=null;
1case 6:y.l={item:n,preloadManager:o},a=!1,L(s)}})})),y.u.o(y.g,"complete",function(){var e=y.m&&y.m.repeatMode,t=!1;if(2==e)t=!0;else{var n=y.j+1;n<y.h.length?y.playItem(n):1==e&&(1==y.h.length?t=!0:y.playItem(0))}t&&(i.paused?(i.currentTime=y.g.wa().start,i.play()):y.u.o(i,"paused",function(){i.currentTime=y.g.wa().start,i.play()}))}),o=n.manifestUri,n.preloadManager&&!n.preloadManager.l&&(o=n.preloadManager),s=!1,y.l&&y.l.item==n&&y.l.preloadManager?o=y.l.preloadManager:y.i&&y.i.item==n&&y.i.preloadManager&&(o=y.i.preloadManager,s=!0),!y.i){b.B(2);break}if(s||y.i.preloadManager.l){b.B(3);break}return M(b,y.i.preloadManager.destroy(),3);case 3:y.i=null;case 2:if(!(y.m&&y.m.preloadPrevItem&&t&&y.g.Ac()===c5)){b.B(5);break}return u=null,R(b,6),M(b,y.g.fk(),8);case 8:u=b.h,D(b,7);break;case 6:N(b),u=null;case 7:y.i={item:t,preloadManager:u};case 5:return n.config&&(y.g.Ej(),y.g.configure(n.config)),M(b,y.g.load(o,n.startTime,n.mimeType),9);case 9:if(y.l=null,n.extraText)for(c=(l=E(n.extraText)).next();!c.done;c=l.next())(d=c.value).mime?y.g.je(d.uri,d.language,d.kind,d.mime,d.codecs):y.g.je(d.uri,d.language,d.kind);if(n.extraThumbnail)for(p=(h=E(n.extraThumbnail)).next();!p.done;p=h.next())f=p.value,y.g.hf(f);if(n.extraChapter)for(m=(g=E(n.extraChapter)).next();!m.done;m=g.next())v=m.value,y.g.gf(v.uri,v.language,v.mime);L(b)}})},$("shaka.queue.QueueManager",yq),yq.prototype.playItem=yq.prototype.playItem,yq.prototype.removeAllItems=yq.prototype.removeAllItems,yq.prototype.insertItems=yq.prototype.insertItems,yq.prototype.getItems=yq.prototype.getItems,yq.prototype.getCurrentItemIndex=yq.prototype.getCurrentItemIndex,yq.prototype.getCurrentItem=yq.prototype.getCurrentItem,yq.prototype.getConfiguration=yq.prototype.getConfiguration,yq.prototype.configure=yq.prototype.configure,yq.prototype.destroy=yq.prototype.destroy,c6=function(e){return new yq(e)},yj.prototype.parseInit=function(){},yj.prototype.setSequenceMode=function(){},yj.prototype.setManifestType=function(){},yj.prototype.parseMedia=function(e,t){var n=null,i=[];e=E(e=ez(e).split(/\r?\n/));for(var r=e.next();!r.done;r=e.next())if((r=r.value)&&!/^\s+$/.test(r)&&(r=yB.exec(r))){var a=yF.exec(r[1]);r=new nP(a=60*parseInt(a[1],10)+parseFloat(a[2].replace(",",".")),t.segmentEnd?t.segmentEnd:a+2,r[2]),n&&(n.endTime=a,i.push(n)),n=r}return n&&i.push(n),i},$("shaka.text.LrcTextParser",yj),yj.prototype.parseMedia=yj.prototype.parseMedia,yj.prototype.setManifestType=yj.prototype.setManifestType,yj.prototype.setSequenceMode=yj.prototype.setSequenceMode,yj.prototype.parseInit=yj.prototype.parseInit;var yB=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,yF=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;function yV(){this.g="UNKNOWN"}function yG(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 yH(e,t){t=E(t.split(" "));for(var n=t.next();!n.done;n=t.next())switch(n.value){case"underline":e.textDecoration.includes(n1)||e.textDecoration.push(n1);break;case"noUnderline":e.textDecoration.includes(n1)&&tE(e.textDecoration,n1);break;case"lineThrough":e.textDecoration.includes("lineThrough")||e.textDecoration.push("lineThrough");break;case"noLineThrough":e.textDecoration.includes("lineThrough")&&tE(e.textDecoration,"lineThrough");break;case"overline":e.textDecoration.includes("overline")||e.textDecoration.push("overline");break;case"noOverline":e.textDecoration.includes("overline")&&tE(e.textDecoration,"overline")}}function yz(e,t,n,i,r,a){return a=void 0===a||a,(t=yW(e,t,i,r))?t:a?yK(e,n,i,r):null}function yK(e,t,n,i){if(!t)return null;var r=ng(t,bi,i);return r||yX(e,t,n,i)}function yW(e,t,n,i){var r=ng(t,bi,i);return r||yX(e,t,n,i)}function yX(e,t,n,i){t=yY(t,"style",n,"");for(var r=null,a=0;a<t.length;a++){var o=np(t[a],"urn:ebu:tt:style",i);o||(o=ng(t[a],bi,i)),o||(o=yW(e,t[a],n,i)),o&&(r=o)}return r}function yY(e,t,n,i,r){var a=[];if(!e||n.length<1)return a;var o=e;for(e=null;!e&&!(e=r?np(o,r,t):o.attributes[t])&&(o=o.parent););if(t=e){for(r=(t=E(t.split(" "))).next();!r.done;r=t.next())for(r=r.value,o=(e=E(n)).next();!o.done;o=e.next())if(i+(o=o.value).attributes["xml:id"]==r){a.push(o);break}}return a}function yZ(e,t){var n=yJ(e.attributes.begin,t),i=yJ(e.attributes.end,t);return e=yJ(e.attributes.dur,t),null==i&&null!=e&&(i=n+e),{start:n,end:i}}function yJ(e,t){var n=null;if(y3.test(e)){n=Number((e=y3.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(y4.test(e))n=yQ(y4,e);else if(y8.test(e))n=yQ(y8,e);else if(y6.test(e))n=Number((e=y6.exec(e))[1])/t.frameRate;else if(y7.test(e))n=Number((e=y7.exec(e))[1])/t.g;else if(y9.test(e))n=yQ(y9,e);else if(e)throw new eU(2,2,2001,"Could not parse cue time range in TTML");return n}function yQ(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 y$(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]))}im("application/x-subtitle-lrc",function(){return new yj}),yV.prototype.parseInit=function(){},yV.prototype.setSequenceMode=function(){},yV.prototype.setManifestType=function(e){this.g=e},yV.prototype.parseMedia=function(e,t,n,i){var r,a=ez(e);if(e=[],""==a)return e;var o=nn(a,"tt",!0);if(!o)throw new eU(2,2,2005,"Failed to parse TTML.");if(!(a=nl(o,"body")[0]))return[];var s=ng(o,bn,"frameRate"),u=ng(o,bn,"subFrameRate"),l=ng(o,bn,"frameRateMultiplier"),c=ng(o,bn,"tickRate"),d=ng(o,bn,"cellResolution"),h=o.attributes["xml:space"]||"default",p=ng(o,bi,"extent");
1if("default"!=h&&"preserve"!=h)throw new eU(2,2,2005,"Invalid xml:space value: "+h);h="default"==h,s=new y$(s,u,l,c),d=(r=d)&&(r=/^(\d+) (\d+)$/.exec(r))?{columns:parseInt(r[1],10),rows:parseInt(r[2],10)}:null,u=((u=nl(o,"metadata")[0])?u.children:[]).filter(function(e){return"\n"!=e}),l=nl(o,"style"),o=nl(o,"region"),c=[];for(var f=E(o),g=f.next();!g.done;g=f.next())(g=function(e,t,n,i){var r=new tJ,a=t.attributes["xml:id"];if(!a)return null;r.id=a,a=null,i&&(a=y0.exec(i)||y5.exec(i)),i=a?Number(a[1]):null,a=a?Number(a[2]):null;var o,s=yK(e,t,n,"extent");if(s){var u=(o=y0.exec(s))||y5.exec(s);null!=u&&(r.width=Number(u[1]),r.height=Number(u[2]),o||(null!=i&&(r.width=100*r.width/i),null!=a&&(r.height=100*r.height/a)),r.widthUnits=o||null!=i?tQ:0,r.heightUnits=o||null!=a?tQ:0)}return(e=yK(e,t,n,"origin"))&&null!=(u=(o=y0.exec(e))||y5.exec(e))&&(r.viewportAnchorX=Number(u[1]),r.viewportAnchorY=Number(u[2]),o?s||(r.width=100-r.viewportAnchorX,r.widthUnits=tQ,r.height=100-r.viewportAnchorY,r.heightUnits=tQ):(null!=a&&(r.viewportAnchorY=100*r.viewportAnchorY/a),null!=i&&(r.viewportAnchorX=100*r.viewportAnchorX/i)),r.viewportAnchorUnits=o||null!=i?tQ:0),r}(this,g.value,l,p))&&c.push(g);if(no(a,"p").length)throw new eU(2,2,2001,"<p> can only be inside <div> in TTML");for(f=(p=E(no(a,"div"))).next();!f.done;f=p.next())if(no(f.value,"span").length)throw new eU(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,p,f){var g,m,v,y,b=d;if(nr(n)){if(!h)return null;var T={tagName:"span",children:[ns(n)],attributes:{},parent:null}}else T=n;for(var w=null,S=E(br),A=S.next();!A.done&&!(w=yY(T,"backgroundImage",a,"#",A.value)[0]);A=S.next());S=null;var x=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if((A=ng(T,br,"backgroundImage"))&&x.test(A)){if((S=parseInt(A.split(":").pop(),10)-1)>=f.length)return null;S=f[S]}else p&&A&&!A.startsWith("#")&&(x=new eg(p),A=new eg(A),(A=x.resolve(A).toString())&&(S=A));if(("p"==n.tagName||w||S)&&(h=!0),n=h,A="default"==(T.attributes["xml:space"]||(l?"default":"preserve")),x=T.children.every(nr),l=[],!x)for(var k=E(T.children),I=k.next();!I.done;I=k.next())(I=e(t,I.value,i,r,a,o,s,u,A,c,T,h,p,f))&&l.push(I);if(a=null!=d,p=ns(T),p=T.children.length&&p&&/\S/.test(p),!((k=T.attributes.begin||T.attributes.end||T.attributes.dur)||p||"br"==T.tagName||0!=l.length||a&&!A))return null;for(p=(f=yZ(T,r)).start,f=f.end;b&&b.tagName&&"tt"!=b.tagName;){p=(g=b,m=r,v=p,y=f,g=yZ(g,m),null==v?v=g.start:null!=g.start&&(v+=g.start),null==y?y=g.end:null!=g.start&&(y+=g.start),f={start:v,end:y}).start,f=f.end,b=b.parent}if(null==p&&(p=0),p+=i.periodStart,f=null==f?1/0:f+i.periodStart,"HLS"!==t.g&&(p=Math.max(p,i.segmentStart),f=Math.min(f,i.segmentEnd)),!k&&l.length>0)for(p=1/0,f=0,r=(i=E(l)).next();!r.done;r=i.next())p=Math.min(p,(r=r.value).startTime),f=Math.max(f,r.endTime);if("br"==T.tagName)return(t=new nP(p,f,"")).lineBreak=!0,t;if(i="",x&&(i=eJ(ns(T)||""),A&&(i=i.replace(/\s+/g," "))),(i=new nP(p,f,i)).nestedCues=l,h||(i.isContainer=!0),c&&(i.cellResolution=c),c=yY(T,"region",s,"")[0],T.attributes.region&&c&&c.attributes["xml:id"]){var C=c.attributes["xml:id"];i.region=u.filter(function(e){return e.id==C})[0]}return u=c,d&&a&&!T.attributes.region&&!T.attributes.style&&(u=yY(d,"region",s,"")[0]),function(e,t,n,i,r,a,o,s,u){if("rtl"==yz(e,n,i,o,"direction",s=s||u)&&(t.direction="rtl"),"tb"==(u=yz(e,n,i,o,"writingMode",s))||"tblr"==u?t.writingMode="vertical-lr":"tbrl"==u?t.writingMode="vertical-rl":"rltb"==u||"rl"==u?t.direction="rtl":u&&(t.direction=nG),(u=yz(e,n,i,o,"textAlign",!0))?(t.positionAlign=bt.get(u),t.lineAlign=be.get(u),t.textAlign=nB[u.toUpperCase()]):t.textAlign=nj,(u=yz(e,n,i,o,"displayAlign",!0))&&(t.displayAlign=nV[u.toUpperCase()]),(u=yz(e,n,i,o,"color",s))&&(t.color=yG(u)),(u=yz(e,n,i,o,"backgroundColor",s))&&(t.backgroundColor=yG(u)),(u=yz(e,n,i,o,"border",s))&&(t.border=u),u=yz(e,n,i,o,"fontFamily",s))switch(u){case"monospaceSerif":t.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case"proportionalSansSerif":t.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case"sansSerif":t.fontFamily="sans-serif";break;case"monospaceSansSerif":t.fontFamily="Consolas,monospace";break;case"proportionalSerif":t.fontFamily="serif";break;default:t.fontFamily=u.split(",").filter(function(e){return"default"!=e}).join(",")}switch((u=yz(e,n,i,o,"fontWeight",s))&&"bold"==u&&(t.fontWeight=nJ),t.wrapLine=!(u=yz(e,n,i,o,"wrapOption",s))||"noWrap"!=u,(u=yz(e,n,i,o,"lineHeight",s))&&u.match(y2)&&(t.lineHeight=u),(u=yz(e,n,i,o,"fontSize",s))&&(u.match(y2)||u.match(y1))&&(t.fontSize=u),(u=yz(e,n,i,o,"fontStyle",s))&&(t.fontStyle=n0[u.toUpperCase()]),r?
1(a=r.attributes.imageType||r.attributes.imagetype,u=r.attributes.encoding,r=ns(r).trim(),"PNG"==a&&"Base64"==u&&r&&(t.backgroundImage="data:image/png;base64,"+r)):a&&(t.backgroundImage=a),(r=yz(e,n,i,o,"textOutline",s))&&((r=r.split(" "))[0].match(y2)?t.textStrokeColor=t.color:(t.textStrokeColor=yG(r[0]),r.shift()),r[0]&&r[0].match(y2)?t.textStrokeWidth=r[0]:t.textStrokeColor=""),(r=yz(e,n,i,o,"letterSpacing",s))&&r.match(y2)&&(t.letterSpacing=r),(r=yz(e,n,i,o,"linePadding",s))&&r.match(y2)&&(t.linePadding=r),(r=yz(e,n,i,o,"opacity",s))&&(t.opacity=parseFloat(r)),(r=yK(e,i,o,"textDecoration"))&&yH(t,r),(r=yW(e,n,o,"textDecoration"))&&yH(t,r),(r=yz(e,n,i,o,"textCombine",s))&&(t.textCombineUpright=r),yz(e,n,i,o,"ruby",s)){case"container":t.rubyTag="ruby";break;case"text":t.rubyTag="rt"}}(t,i,T,u,w,S,o,n,0==l.length),i}(this,a,t,s,u,l,o,c,h,d,null,!1,n,i))&&(t.backgroundColor||(t.backgroundColor="transparent"),e.push(t)),e},$("shaka.text.TtmlTextParser",yV),yV.prototype.parseMedia=yV.prototype.parseMedia,yV.prototype.setManifestType=yV.prototype.setManifestType,yV.prototype.setSequenceMode=yV.prototype.setSequenceMode,yV.prototype.parseInit=yV.prototype.parseInit;var y0=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,y1=/^(\d{1,4}(?:\.\d+)?|100)%$/,y2=/^(\d+px|\d+em|\d*\.?\d+c)$/,y5=/^(\d+)px (\d+)px$/,y3=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,y4=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,y8=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,y6=/^(\d*(?:\.\d*)?)f$/,y7=/^(\d*(?:\.\d*)?)t$/,y9=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),be=(new Map).set("left",nK).set("center","center").set("right","end").set("start",nK).set("end","end"),bt=(new Map).set("left","line-left").set("center","center").set("right","line-right"),bn=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],bi=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],br=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];function ba(){this.g=new yV}function bo(){this.g="UNKNOWN"}function bs(e,t,n){var i,r,a;(i=/^align:(start|middle|center|end|left|right)$/.exec(t))?"middle"==(t=i[1])?e.textAlign=nj:e.textAlign=nB[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":nq)):(i=/^regi
1on:(.*)$/.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=nW[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=nz,e.line=Number(n[1]),n[2]&&(e.lineAlign=nW[n[2].toUpperCase()]))}function bu(){this.g=null}function bl(){}function bc(){this.g=new bo}function bd(){}function bh(e){return(e=parseInt(e.replace("&H",""),16))>=0?"rgba("+(255&e)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>24&255^255)/255+")":null}function bp(e){return((e=bv.exec(e))[1]?parseInt(e[1].replace(":",""),10):0)*3600+60*parseInt(e[2],10)+parseFloat(e[3])}im("application/ttml+xml",function(){return new yV}),ba.prototype.parseInit=function(e){var t=!1;if((new rR).box("moov",rP).box("trak",rP).box("mdia",rP).box("minf",rP).box("stbl",rP).X("stsd",rD).box("stpp",function(e){t=!0,e.parser.stop()}).parse(e),!t)throw new eU(2,2,2007)},ba.prototype.setSequenceMode=function(e){this.g.setSequenceMode(e)},ba.prototype.setManifestType=function(e){this.g.setManifestType(e)},ba.prototype.parseMedia=function(e,t,n){var i=[],r=null,a=[],o=new Map,s=[];if((new rR).box("moof",rP).box("traf",rP).X("tfhd",function(e){r=ag(e.reader,e.flags).pe}).X("trun",function(e){e=E((e=ay(e.reader,e.version,e.flags)).bi);for(var t=e.next();!t.done;t=e.next())s.push(t.value.sampleSize||r||0)}).X("subs",function(e){for(var t=e.reader,n=t.$(),i=-1,r=0;r<n;r++){var a=t.$();i+=a,a=t.Ia();for(var s=[],u=0;u<a;u++)1==e.version?s.push(t.$()):s.push(t.Ia()),t.ba(),t.ba(),t.$();o.set(i,s)}}).box("mdat",r_(function(e){a.push(e)},!1)).parse(e,!1),0==a.length)throw new eU(2,2,2007);for(var u=e4.apply(e$,x(a)),l=0,c=0;c<s.length;c++){var d=eD(u,l,s[c]);l+=s[c];var h=o.get(c);if(h&&h.length){d=eD(d,0,h[0]);for(var p=[],f=h[0],g=1;g<h.length;g++){var m=eD(e,f,h[g]);m=e0(m),p.push("data:image/png;base64,"+m),f+=h[g]}i=i.concat(this.g.parseMedia(d,t,n,p))}else i=i.concat(this.g.parseMedia(d,t,n,[]))}return i},$("shaka.text.Mp4TtmlParser",ba),ba.prototype.parseMedia=ba.prototype.parseMedia,ba.prototype.setManifestType=ba.prototype.setManifestType,ba.prototype.setSequenceMode=ba.prototype.setSequenceMode,ba.prototype.parseInit=ba.prototype.parseInit,im('application/mp4; codecs="stpp"',function(){return new ba}),im('application/mp4; codecs="stpp.ttml"',function(){return new ba}),im('application/mp4; codecs="stpp.ttml.im1i"',function(){return new ba}),im('application/mp4; codecs="stpp.ttml.im1t"',function(){return new ba}),im('application/mp4; codecs="stpp.ttml.im2i"',function(){return new ba}),im('application/mp4; codecs="stpp.ttml.im2t"',function(){return new ba}),im('application/mp4; codecs="stpp.ttml.etd1"',function(){return new ba}),im('application/mp4; codecs="stpp.ttml.etd1|im1t"',function(){return new ba}),im('application/mp4; codecs="stpp.ttml.im1t|etd1"',function(){return new ba}),im('application/mp4; codecs="stpp.TTML.im1t"',function(){return new ba}),bo.prototype.parseInit=function(){},bo.prototype.setSequenceMode=function(){},bo.prototype.setManifestType=function(e){this.g=e},bo.prototype.parseMedia=function(e,t){var n=(e=(e=ez(e)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")).split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(n[0]))throw new eU(2,2,2e3);if(e=t.vttOffset,"HLS"==this.g&&n[0].includes("X-TIMESTAMP-MAP")){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=t4(e[1])))throw new eU(2,2,2e3);i=Number(i[1]);for(var r=t.segmentStart-t.periodStart;r>=95443.7176888889;)r-=95443.7176888889,i+=0x200000000;e=t.periodStart+i/9e4-e}for(t=[],r=(i=E(n[0].split("\n"))).next();!r.done;r=i.next())if(r=r.value,/^Region:/.test(r)){r=new t0(r);var a=new tJ;t5(r),t1(r);for(var o=t5(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"),t1(r),o=t5(r)}t.push(a)}for(n_(i=new Map),r=[],a=(n=E(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=E(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 nP(0,0,""));for(var c=!1,d=0;d<u.length;d++){var h=/^\s*([^:]+):\s*(.*)/.exec(u[d]);if(h){var p=h[2].trim().replace(";","");switch(h[1].trim()){case"background-color":case"background":c=!0,l.backgroundColor=p;break;case"color":c=!0,l.color=p;break;case"font-family":c=!0,l.fontFamily=p;break;case"font-size":c=!0,l.fontSize=p;break;case"font-weight":(parseInt(p,10)>=700||"bold"==p)&&(c=!0,l.fontWeight=nJ);break;case"font-style":switch(p){case"normal":c=!0,l.fontStyle=nQ;break;case"italic":c=!0,l.fontStyle=n$;break;case"oblique":c=!0,l.fontStyle="oblique"}break;case"opacity":c=!0,l.opacity=parseFloat(p);break;case"text-combine-upright":c=!0,l.textCombineUpright=p;break;case"text-shadow":c=!0,l.textShadow=p;break;case"white-space":c=!0,l.wrapLine="noWrap"!=p}}}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=t3(s=new t0(l[0])),d=t2(s,/[ \t]+--\x3e[ \t]+/g),u=t3(s),null==o||null==d||null==u)ea("Failed to parse VTT time code. Cue skipped:",a,l),a=null;else{for(o+=c,u+=c,o<0&&(o=0),c=l.slice(1).join("\n").trim(),i.has("global")?((l=i.get("global").clone()).startTime=o,l.endTime=u,l.payload=c):l=new nP(o,u,c),t1(s),o=t5(s);o;)bs(l,o,t),t1(s),o=t5(s);nO(l,i),null!=a&&(l.id=a),a=l}a&&r.push(a)}return r},$("shaka.text.VttTextParser",bo),bo.prototype.parseMedia=bo.prototype.parseMedia,bo.prototype.setManifestType=bo.prototype.setManifestType,bo.prototype.setSequenceMode=bo.prototype.setSequenceMode,bo.prototype.parseInit=bo.prototype.parseInit,im("text/vtt",function(){return new bo}),im('text/vtt; codecs="vtt"',function(){return new bo}),im('text/vtt; codecs="wvtt"',function(){return new bo}),bu.prototype.parseInit=function(e){var t=this,n=!1;if((new rR).box("moov",rP).box("trak",rP).box("mdia",rP).X("mdhd",function(e){t.g=(e=av(e.reader,e.version)).timescale}).box("minf",rP).box("stbl",rP).X("stsd",rD).box("wvtt",function(){n=!0}).parse(e),!this.g||!n)throw new eU(2,2,2008)},bu.prototype.setSequenceMode=function(){},bu.prototype.setManifestType=function(){},bu.prototype.parseMedia=function(e,t){if(!e.length)return[];if(!this.g)throw new eU(2,2,2008);var n,i=0,r=[],a=[],o=!1,s=!1,u=!1,l=null;if((new rR).box("moof",rP).box("traf",rP).X("tfdt",function(e){o=!0,i=am(e.reader,e.version).baseMediaDecodeTime}).X("tfhd",function(e){l=ag(e.reader,e.flags).oe}).X("trun",function(e){s=!0,r=ay(e.reader,e.version,e.flags).bi}).box("mdat",r_(function(e){u=!0,n=e}
1,!1)).parse(e,!1),!u&&!o&&!s)throw new eU(2,2,2008);e=i;for(var c=new rC(n,0),d=E(r),h=d.next();!h.done;h=d.next()){var p=(h=h.value).ci||l,f=h.gg?i+h.gg:e;e=f+(p||0);var g=0;do{var m=c.$();g+=m;var v=c.$(),y=null;"vttc"==rq(v)?m>8&&(y=c.cc(m-8,!1)):c.skip(m-8),p&&y&&(m=function(e,t,n){var i,r,a;return(new rR).box("payl",r_(function(e){i=ez(e)},!1)).box("iden",r_(function(e){r=ez(e)},!1)).box("sttg",r_(function(e){a=ez(e)},!1)).parse(e),i?function(e,t,n,i,r){if(nO(e=new nP(i,r,e)),t&&(e.id=t),n)for(n=t5(t=new t0(n));n;)bs(e,n,[]),t1(t),n=t5(t);return e}(i,r,a,t,n):null}(y,t.periodStart+f/this.g,t.periodStart+e/this.g),a.push(m))}while(h.sampleSize&&g<h.sampleSize)}return a.filter(ik)},$("shaka.text.Mp4VttParser",bu),bu.prototype.parseMedia=bu.prototype.parseMedia,bu.prototype.setManifestType=bu.prototype.setManifestType,bu.prototype.setSequenceMode=bu.prototype.setSequenceMode,bu.prototype.parseInit=bu.prototype.parseInit,im('application/mp4; codecs="wvtt"',function(){return new bu}),bl.prototype.parseInit=function(){},bl.prototype.setSequenceMode=function(){},bl.prototype.setManifestType=function(){},bl.prototype.parseMedia=function(e){var t=ez(e).replace(/\r+/g,"");if(t=t.trim(),e=[],""==t)return e;t=E(t.split("\n\n"));for(var n=t.next();!n.done;n=t.next()){var i=new t0((n=n.value.split("\n"))[0]),r=t3(i),a=t2(i,/,/g);if(i=t3(i),null==r||null==a||null==i)throw new eU(2,2,2001,"Could not parse cue time range in SubViewer");e.push(new nP(r,i,n.slice(1).join("\n").trim()))}return e},$("shaka.text.SbvTextParser",bl),bl.prototype.parseMedia=bl.prototype.parseMedia,bl.prototype.setManifestType=bl.prototype.setManifestType,bl.prototype.setSequenceMode=bl.prototype.setSequenceMode,bl.prototype.parseInit=bl.prototype.parseInit,im("text/x-subviewer",function(){return new bl}),bc.prototype.parseInit=function(){},bc.prototype.setSequenceMode=function(){},bc.prototype.setManifestType=function(){},bc.prototype.parseMedia=function(e,t,n){var i=ez(e);if(e="WEBVTT\n\n",""!=i){i=E((i=(i=i.replace(/\r+/g,"")).trim()).split("\n\n"));for(var r=i.next();!r.done;r=i.next())(r=r.value.split(/\n/))[0].match(/\d+/)&&r.shift(),r[0]=r[0].replace(/,/g,"."),e+=r.join("\n").replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+"\n\n"}return e=eD(eX(e)),this.g.parseMedia(e,t,n,[])},$("shaka.text.SrtTextParser",bc),bc.prototype.parseMedia=bc.prototype.parseMedia,bc.prototype.setManifestType=bc.prototype.setManifestType,bc.prototype.setSequenceMode=bc.prototype.setSequenceMode,bc.prototype.parseInit=bc.prototype.parseInit,im("text/srt",function(){return new bc}),bd.prototype.parseInit=function(){},bd.prototype.setSequenceMode=function(){},bd.prototype.setManifestType=function(){},bd.prototype.parseMedia=function(e){var t="",n="",i=null,r=null;for(r=(e=E(r=ez(e).split(/\r?\n\s*\r?\n/))).next();!r.done;r=e.next()){var a=r.value;r=a,(a=bf.exec(a))&&(i=a[1],r=a[2]),"V4 Styles"==i||"V4+ Styles"==i?(t=r,t=n?t+"\n"+r:r):"Events"==i&&(n=n?n+"\n"+r:r)}for(i=[],r=null,e=(t=E(t.split(/\r?\n/))).next();!e.done;e=t.next())if(e=e.value,!/^\s*;/.test(e)&&(a=bg.exec(e))){if(e=a[1].trim(),a=a[2].trim(),"Format"==e)r=a.split(bm);else if("Style"==e){e=a.split(bm),a={};for(var o=0;o<r.length&&o<e.length;o++)a[r[o]]=e[o];i.push(a)}}for(r=[],t=null,a=(n=E(n.split(/\r?\n/))).next(),e={};!a.done;e={Vj:void 0},a=n.next())if(a=a.value,!/^\s*;/.test(a)&&(o=bg.exec(a))){if(a=o[1].trim(),o=o[2].trim(),"Format"==a)t=o.split(bm);else if("Dialogue"==a){o=o.split(bm),a={};for(var s=0;s<t.length&&s<o.length;s++)a[t[s]]=o[s];o=new nP(s=bp(a.Start),bp(a.End),o.slice(t.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,"")),e.Vj=a.Style,(e=i.find(function(e){return function(t){return t.Name==e.Vj}}(e)))&&function(e,t){var n=t.Fontname;if(n&&(e.fontFamily=n),(n=t.Fontsize)&&(e.fontSize=n+"px"),(n=t.PrimaryColour)&&(n=bh(n))&&(e.color=n),(n=t.BackColour)&&(n=bh(n))&&(e.backgroundColor=n),t.Bold&&(e.fontWeight=nJ),t.Italic&&(e.fontStyle=n$),t.Underline&&e.textDecoration.push(n1),(n=t.Spacing)&&(e.letterSpacing=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.displayAlign=nF,e.textAlign="start";break;
1case 2:e.displayAlign=nF,e.textAlign=nj;break;case 3:e.displayAlign=nF,e.textAlign="end";break;case 5:e.displayAlign="before",e.textAlign="start";break;case 6:e.displayAlign="before",e.textAlign=nj;break;case 7:e.displayAlign="before",e.textAlign="end";break;case 9:e.displayAlign="center",e.textAlign="start";break;case 10:e.displayAlign="center",e.textAlign=nj;break;case 11:e.displayAlign="center",e.textAlign="end"}(t=t.AlphaLevel)&&(e.opacity=parseFloat(t))}(o,e),r.push(o)}}return r},$("shaka.text.SsaTextParser",bd),bd.prototype.parseMedia=bd.prototype.parseMedia,bd.prototype.setManifestType=bd.prototype.setManifestType,bd.prototype.setSequenceMode=bd.prototype.setSequenceMode,bd.prototype.parseInit=bd.prototype.parseInit;var bf=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,bg=/^\s*([^:]+):\s*(.*)/,bm=/\s*,\s*/,bv=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;function by(e,t){var n=1&e[t+1]?7:9;return t+n<=e.length&&(e=((3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5)-n)>0?{we:n,za:e}:null}function bb(e,t){var n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=(60&e[t+2])>>>2;if(i>n.length-1)return null;var r=((192&e[t+2])>>>6)+1,a=(1&e[t+2])<<2;return{sampleRate:n[i],channelCount:a|=(192&e[t+3])>>>6,codec:"mp4a.40."+r}}function bT(e,t){if(t+1<e.length&&255===e[t]&&(246&e[t+1])==240){var n=1&e[t+1]?7:9;if(t+n>=e.length)return!1;var i=(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5;return!(i<=n)&&((t+=i)===e.length||t+1<e.length&&255===e[t]&&(246&e[t+1])==240)}return!1}function bw(e){this.j=e,this.h=0,this.g=new Map,this.i=null}function bS(e,t){if(t+8>e.length||11!==e[t]||119!==e[t+1])return null;var n=e[t+4]>>6;if(n>=3)return null;var i=63&e[t+4],r=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*i+n];if(t+r>e.length)return null;var a=e[t+6]>>5,o=0;2===a?o+=2:(1&a&&1!==a&&(o+=2),4&a&&(o+=2)),o=(e[t+6]<<8|e[t+7])>>12-o&1;var s=7&e[t+5];return e=new Uint8Array([n<<6|e[t+5]>>3<<1|s>>2,(3&s)<<6|a<<3|o<<2|i>>4,i<<4&224]),{sampleRate:[48e3,44100,32e3][n],channelCount:[2,1,2,3,3,4,4,5][a]+o,Ma:e,za:r}}function bA(e){this.j=e,this.h=0,this.g=new Map,this.i=null}function bE(e,t){if(t+8>e.length||(e[t]<<8|e[t+1])!=2935)return null;var n=new op(e.subarray(t+2));og(n,2),og(n,3);var i=om(n,11)+1<<1,r=om(n,2);if(3==r){r=[24e3,22060,16e3][r=om(n,2)];var a=3}else r=[48e3,44100,32e3][r],a=om(n,2);var o=om(n,3),s=om(n,1);return(n=om(n,5),t+i>e.byteLength)?null:(e=new Uint8Array([(8160&(e=Math.floor(i*r/(16*[1,2,3,6][a]))))>>5,(31&e)<<3,r<<6|n<<1,s|o<<1,0]),{sampleRate:r,channelCount:[2,1,2,3,3,4,4,5][o]+s,Ma:e,za:i})}function bx(e){this.j=e,this.h=0,this.g=new Map,this.i=null}im("text/x-ssa",function(){return new bd}),(p=bw.prototype).destroy=function(){this.g.clear()},p.isSupported=function(e){return"audio/aac"==e.toLowerCase().split(";")[0]&&ah(this.convertCodecs("audio",e))},p.convertCodecs=function(e,t){return"audio/aac"==t.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(ic(t)||"mp4a.40.2")+'"':t},p.getOriginalMimeType=function(){return this.j},p.transmux=function(e,t,n,i){for(var r=eD(e),a=od(r),o=a.length;o<r.length&&!bT(r,o);o++);if(e=1e3*n.endTime,(a=oc(a)).length&&n&&(a=a.find(function(e){return"com.apple.streaming.transportStreamTimestamp"===e.description}))&&(e=a.data),!(a=bb(r,o)))return Promise.reject(new eU(2,3,3018,n?n.S()[0]:null));t.audioSamplingRate=a.sampleRate,t.channelsCount=a.channelCount;for(var s=[];o<r.length;){var u=by(r,o);if(!u)return Promise.reject(new eU(2,3,3018,n?n.S()[0]:null));var l=u.we+u.za;o+l<=r.length&&s.push({data:r.subarray(o+u.we,o+l),size:u.za,duration:1024,Ab:0,flags:{Cb:0,ub:0,sb:0,qb:0,rb:2,Db:0}}),o+=l}return e=Math.floor(e*(r=a.sampleRate)/1e3),i=new aA([i={id:t.id,type:"audio",codecs:a.codec,encrypted:t.encrypted&&t.drmInfos.length>0,timescale:r,duration:i,Hb:[],Ma:new Uint8Array([]),Ya:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:e,Eb:s},stream:t}]),n=t.id+"_"+n.i,this.g.has(n)?t=this.g.get(n):(t=aE(i),this.g.set(n,t)),n=this.i!==t,i=aM(i),this.i=t,this.h++,Promise.resolve({data:i,init:n?t:null})},$("shaka.transmuxer.AacTransmuxer",bw),bw.prototype.transmux=bw.prototype.transmux,bw.prototype.getOriginalMimeType=bw.prototype.getOriginalMimeType,bw.prototype.convertCodecs=bw.prototype.convertCodecs,bw.prototype.isSupported=bw.prototype.isSupported,bw.prototype.destroy=bw.prototype.destroy,n3("audio/aac",function(){return new bw("audio/aac")},n6),(p=bA.prototype).destroy=function(){this.g.clear()},p.isSupported=function(e){return"audio/ac3"==e.toLowerCase().split(";")[0]&&ah(this.convertCodecs("audio",e))},p.convertCodecs=function(e,t){return"audio/ac3"==t.toLowerCase().split(";")[0]?eB().Je()?'audio/mp4; codecs="ec-3"':'audio/mp4; codecs="ac-3"':t},p.getOriginalMimeType=function(){return this.j},p.transmux=function(e,t,n,i){e=eD(e);for(var r=od(e),a=r.length;a<e.length&&!function(e,t){if(11===e[t]&&119===e[t+1]){var n,i,r=0,a=5;for(t+=5;a>0;){i=e[t];var o=Math.min(a,8),s=8-o;n=(i&(n=0xff000000>>>24+s<<s))>>s,r=r?r<<o|n:n,t+=1,a-=o}if(r<16)return!0}return!1}(e,a);a++);var o=1e3*n.endTime;(r=oc(r)).length&&n&&(r=r.find(function(e){return"com.apple.streaming.transportStreamTimestamp"===e.description}))&&(o=r.data),r=0;for(var s=new Uint8Array([]),u=[];a<e.length;){var l=bS(e,a);if(!l)return Promise.reject(new eU(2,3,3018,n?n.S()[0]:null));
1t.audioSamplingRate=l.sampleRate,t.channelsCount=l.channelCount,r=l.sampleRate,s=l.Ma,u.push({data:e.subarray(a,a+l.za),size:l.za,duration:1536,Ab:0,flags:{Cb:0,ub:0,sb:0,qb:0,rb:2,Db:0}}),a+=l.za}return e=Math.floor(o*r/1e3),i=new aA([i={id:t.id,type:"audio",codecs:"ac-3",encrypted:t.encrypted&&t.drmInfos.length>0,timescale:r,duration:i,Hb:[],Ma:s,Ya:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:e,Eb:u},stream:t}]),n=t.id+"_"+n.i,this.g.has(n)?t=this.g.get(n):(t=aE(i),this.g.set(n,t)),n=this.i!==t,i=aM(i),this.i=t,this.h++,Promise.resolve({data:i,init:n?t:null})},$("shaka.transmuxer.Ac3Transmuxer",bA),bA.prototype.transmux=bA.prototype.transmux,bA.prototype.getOriginalMimeType=bA.prototype.getOriginalMimeType,bA.prototype.convertCodecs=bA.prototype.convertCodecs,bA.prototype.isSupported=bA.prototype.isSupported,bA.prototype.destroy=bA.prototype.destroy,n3("audio/ac3",function(){return new bA("audio/ac3")},n6),(p=bx.prototype).destroy=function(){this.g.clear()},p.isSupported=function(e){return"audio/ec3"==e.toLowerCase().split(";")[0]&&ah(this.convertCodecs("audio",e))},p.convertCodecs=function(e,t){return"audio/ec3"==t.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':t},p.getOriginalMimeType=function(){return this.j},p.transmux=function(e,t,n,i){e=eD(e);for(var r=od(e),a=r.length;a<e.length&&(e[a]<<8|e[a+1])!=2935;a++);var o=1e3*n.endTime;(r=oc(r)).length&&n&&(r=r.find(function(e){return"com.apple.streaming.transportStreamTimestamp"===e.description}))&&(o=r.data),r=0;for(var s=new Uint8Array([]),u=[];a<e.length;){var l=bE(e,a);if(!l)return Promise.reject(new eU(2,3,3018,n?n.S()[0]:null));t.audioSamplingRate=l.sampleRate,t.channelsCount=l.channelCount,r=l.sampleRate,s=l.Ma,u.push({data:e.subarray(a,a+l.za),size:l.za,duration:1536,Ab:0,flags:{Cb:0,ub:0,sb:0,qb:0,rb:2,Db:0}}),a+=l.za}return e=Math.floor(o*r/1e3),i=new aA([i={id:t.id,type:"audio",codecs:"ec-3",encrypted:t.encrypted&&t.drmInfos.length>0,timescale:r,duration:i,Hb:[],Ma:s,Ya:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:e,Eb:u},stream:t}]),n=t.id+"_"+n.i,this.g.has(n)?t=this.g.get(n):(t=aE(i),this.g.set(n,t)),n=this.i!==t,i=aM(i),this.i=t,this.h++,Promise.resolve({data:i,init:n?t:null})},$("shaka.transmuxer.Ec3Transmuxer",bx),bx.prototype.transmux=bx.prototype.transmux,bx.prototype.getOriginalMimeType=bx.prototype.getOriginalMimeType,bx.prototype.convertCodecs=bx.prototype.convertCodecs,bx.prototype.isSupported=bx.prototype.isSupported,bx.prototype.destroy=bx.prototype.destroy,n3("audio/ec3",function(){return new bx("audio/ec3")},n6);var bk=[100,110,122,244,44,83,86,118,128,138,139,134];function bI(e,t){var n=e[t+1]>>3&3,i=e[t+1]>>1&3,r=e[t+2]>>4&15,a=e[t+2]>>2&3;if(1!==n&&0!==r&&15!==r&&3!==a){var o=e[t+3]>>6;r=1e3*bL[(3===n?3-i:3===i?3:4)*14+r-1],a=bR[(3===n?0:2===n?1:2)*3+a],n=bP[n][i];var s=bD[i],u=Math.floor(n*r/a+(e[t+2]>>1&1))*s,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);return(l=l?parseInt(l[1],10):0)&&l<=87&&2===i&&r>=224e3&&0===o&&(e[t+3]|=128),{sampleRate:a,channelCount:3===o?1:2,za:u,im:8*n*s}}return null}function bC(e,t){return 255===e[t]&&(224&e[t+1])==224&&(6&e[t+1])!=0}function bM(e,t){if(t+1<e.length&&bC(e,t)){var n=bI(e,t),i=4;return n&&n.za&&(i=n.za),(t+=i)===e.length||t+1<e.length&&bC(e,t)}return!1}var bL=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],bR=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],bP=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],bD=[0,1,1,4];function bN(e){this.j=e,this.h=0,this.g=new Map,this.i=null}function bO(e){this.h=e,this.g=null}function b_(e){this.h=e,(this.g=f_.get("ISOBoxer")())&&function(e){function t(){this._procFullBox(),1&this.flags&&(this._procField("AlgorithmID","uint",24),this._procField("IV_size","uint",8),this._procFieldArray("KID",16,"uint",8)),this._procField("sample_count","uint",32),this._procEntries("entry",this.sample_count,function(e){this._procEntryField(e,"InitializationVector","data",8),2&this.flags&&(this._procEntryField(e,"NumberOfEntries","uint",16),this._procSubEntries(e,"clearAndCryptedData",e.NumberOfEntries,function(e){this._procEntryField(e,"BytesOfClearData","uint",16),this._procEntryField(e,"BytesOfEncryptedData","uint",32)}))})}e.g.addBoxProcessor("saio",function(){this._procFullBox(),1&this.flags&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("entry_count","uint",32),this._procFieldArray("offset",this.entry_count,"uint",1===this.version?64:32)}),e.g.addBoxProcessor("saiz",function(){this._procFullBox(),1&this.flags&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32)),this._procField("default_sample_info_size","uint",8),this._procField("sample_count","uint",32),0===this.default_sample_info_size&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)}),e.g.addBoxProcessor("senc",t),e.g.addBoxProcessor("uuid",function(){for(var e=!0,n=0;n<16;n++)this.usertype[n]!==bq[n]&&(e=!1);
1e&&(this._parsing&&(this.type="sepiff"),t.call(this))})}(this)}function bU(e,t){for(var n=8,i=0;i<e.boxes.length&&e.boxes[i].type!==t;i++)n+=e.boxes[i].size;return n}(p=bN.prototype).destroy=function(){this.g.clear()},p.isSupported=function(e){return"audio/mpeg"==e.toLowerCase().split(";")[0]&&ah(this.convertCodecs("audio",e))},p.convertCodecs=function(e,t){return"audio/mpeg"==t.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':t},p.getOriginalMimeType=function(){return this.j},p.transmux=function(e,t,n,i){for(var r,a=eD(e),o=od(a).length;o<a.length&&!bM(a,o);o++);for(e=[];o<a.length;){var s=bI(a,o);if(!s)return Promise.reject(new eU(2,3,3018,n?n.S()[0]:null));r||(r=s),o+s.za<=a.length&&e.push({data:a.subarray(o,o+s.za),size:s.za,duration:1152,Ab:0,flags:{Cb:0,ub:0,sb:0,qb:0,rb:2,Db:0}}),o+=s.za}return r?(a=9e4*r.im/r.sampleRate*this.h,i=new aA([i={id:t.id,type:"audio",codecs:"mp3",encrypted:t.encrypted&&t.drmInfos.length>0,timescale:r.sampleRate,duration:i,Hb:[],Ma:new Uint8Array([]),Ya:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:a,Eb:e},stream:t}]),n=t.id+"_"+n.i,this.g.has(n)?t=this.g.get(n):(t=aE(i),this.g.set(n,t)),n=this.i!==t,i=aM(i),this.i=t,this.h++,Promise.resolve({data:i,init:n?t:null})):Promise.reject(new eU(2,3,3018,n?n.S()[0]:null))},$("shaka.transmuxer.Mp3Transmuxer",bN),bN.prototype.transmux=bN.prototype.transmux,bN.prototype.getOriginalMimeType=bN.prototype.getOriginalMimeType,bN.prototype.convertCodecs=bN.prototype.convertCodecs,bN.prototype.isSupported=bN.prototype.isSupported,bN.prototype.destroy=bN.prototype.destroy,n3("audio/mpeg",function(){return new bN("audio/mpeg")},n6),(p=bO.prototype).destroy=function(){},p.isSupported=function(e){if("video/mp2t"!=e.toLowerCase().split(";")[0])return!1;var t=ic(e).split(","),n=te("audio",t);return t=te("video",t),!!n&&!t&&"mp3"==is(n)&&ah(this.convertCodecs("audio",e))},p.convertCodecs=function(e,t){return"video/mp2t"==t.toLowerCase().split(";")[0]?"audio/mpeg":t},p.getOriginalMimeType=function(){return this.h},p.transmux=function(e,t,n,i,r){if(this.g?this.g.clearData():this.g=new oE,this.g.kg(n.i),e=eD(e),"mp3"!=(e=this.g.parse(e)).qe().audio||"audio"!=r)return Promise.reject(new eU(2,3,3018,n?n.S()[0]:null));for(n=new Uint8Array([]),e=(r=E(e.Bb())).next();!e.done;e=r.next())if(e=e.value.data)for(t=0;t<e.length;)(i=bI(e,t))?(t+i.za<=e.length&&(n=e4(n,e.subarray(t,t+i.za))),t+=i.za):t++;return Promise.resolve(n)},$("shaka.transmuxer.MpegTsTransmuxer",bO),bO.prototype.transmux=bO.prototype.transmux,bO.prototype.getOriginalMimeType=bO.prototype.getOriginalMimeType,bO.prototype.convertCodecs=bO.prototype.convertCodecs,bO.prototype.isSupported=bO.prototype.isSupported,bO.prototype.destroy=bO.prototype.destroy,n3("video/mp2t",function(){return new bO("video/mp2t")},n7),(p=b_.prototype).destroy=function(){},p.isSupported=function(e,t){var n=e.startsWith("mss/");return!!this.g&&!!n&&(t?ah(this.convertCodecs(t,e)):(t=this.convertCodecs("audio",e),e=this.convertCodecs("video",e),ah(t)||ah(e)))},p.convertCodecs=function(e,t){return t.replace("mss/","")},p.getOriginalMimeType=function(){return this.h},p.transmux=function(e,t,n){if(!n)return Promise.resolve(eD(e));if(!t.mssPrivateData)return Promise.reject(new eU(2,3,3020,n?n.S()[0]:null));try{var i,r=this.g.parseBuffer(e),a=r.fetch("tfhd");a.track_ID=t.id+1;var o=r.fetch("tfdt"),s=r.fetch("traf");null===o&&((o=this.g.createFullBox("tfdt",s,a)).version=1,o.flags=0,o.baseMediaDecodeTime=Math.floor(n.startTime*t.mssPrivateData.timescale));var u=r.fetch("trun"),l=r.fetch("tfxd");l&&l._parent.boxes.splice(l._parent.boxes.indexOf(l),1);var c=r.fetch("tfrf");c&&c._parent.boxes.splice(c._parent.boxes.indexOf(c),1);var d=r.fetch("sepiff");if(null!==d){d.type="senc",d.usertype=void 0;var h=r.fetch("saio");if(null===h){(h=this.g.createFullBox("saio",s)).version=0,h.flags=0,h.entry_count=1,h.offset=[0];var p=this.g.createFullBox("saiz",s);if(p.version=0,p.flags=0,p.sample_count=d.sample_count,p.default_sample_info_size=0,p.sample_info_size=[],2&d.flags)for(i=0;i<d.sample_count;i+=1)p.sample_info_size[i]=10+6*d.entry[i].NumberOfEntries;else p.default_sample_info_size=8}}a.flags&=0xfffffe,a.flags|=131072,u.flags|=1;var f=r.fetch("moof");u.data_offset=f.getLength()+8;var g=r.fetch("saio");null!==g&&(g.offset[0]=bU(f,"traf")+bU(s,"senc")+16);var m=eD(r.write());return Promise.resolve(m)}catch(e){return e instanceof eU?Promise.reject(e):Promise.reject(new eU(2,3,3022,n?n.S()[0]:null))}},$("shaka.transmuxer.MssTransmuxer",b_),b_.prototype.transmux=b_.prototype.transmux,b_.prototype.getOriginalMimeType=b_.prototype.getOriginalMimeType,b_.prototype.convertCodecs=b_.prototype.convertCodecs,b_.prototype.isSupported=b_.prototype.isSupported,b_.prototype.destroy=b_.prototype.destroy;var bq=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);function bj(e){this.m=e,this.g=0,this.j=new Map,this.l=this.i=this.h=null}n3("mss/audio/mp4",function(){return new b_("mss/audio/mp4")},n6),n3("mss/video/mp4",function(){return new b_("mss/video/mp4")},n6),(p=bj.prototype).destroy=function(){this.j.clear(),this.i&&this.i.destroy()},p.isSupported=function(e,t){if("video/mp2t"!=e.toLowerCase().split(";")[0])return!1;var n=e;t&&(n=this.convertCodecs(t,e));var i=ic(n).split(",");return n=te("audio",i),i=te("video",i),(!n||!!bB.includes(n=is(n)))&&(!i||!!bF.includes(n=is(i)))&&(t?ah(this.convertCodecs(t,e)):(t=this.convertCodecs("audio",e),e=this.convertCodecs("video",e),ah(t)||ah(e)))},p.convertCodecs=function(e,t){return"video/mp2t"==t.toLowerCase().split(";")[0]?(t=ic(t).replace("mp4a.40.34","mp3").split(",").map(function(e){return iO(e,"audio/mp4")}).map(i_).join(","),"audio"==e?'audio/mp4; codecs="'+t+'"':'video/mp4; codecs="'+t+'"'):t},p.getOriginalMimeType=function(){return this.m},p.transmux=function(e,t,n,i,r){var a=eD(e);if("audio"==r&&!oC(a)){for(var o=od(a),s=o.length;s<a.length;s++)if(bM(a,s))return Promise.reject(new eU(2,3,3018,n?n.S()[0]:null));for(s=o.length;s<a.length;s++)if(bT(a,s))return this.i||(this.i=new bw("audio/aac")),this.i.transmux(e,t,n,i,r);return Promise.reject(new eU(2,3,3018,n?n.S()[0]:null))}this.h?this.h.clearData():this.h=new oE,this.h.kg(n.i);var u=this.h.parse(a),l=[],c=u.qe();try{var d=null;
1if("video"==r){switch(c.video){case"avc":var h=[],p=null,f=u.Kd(),g=function(e){function t(e){r={data:new Uint8Array([]),frame:!1,isKeyframe:!1,pts:e.pts,dts:e.dts,nalus:[]}}function n(){if(r&&r.nalus.length&&r.frame){for(var e=[],t=E(r.nalus),n=t.next();!n.done;n=t.next()){var a=(n=n.value).fullData.byteLength,o=new Uint8Array(4);o[0]=a>>24&255,o[1]=a>>16&255,o[2]=a>>8&255,o[3]=255&a,e.push(o),e.push(n.fullData)}r.data=e4.apply(e$,x(e)),i.push(r)}}for(var i=[],r=null,a=!1,o=0;o<e.length;o++){var s=e[o],u=s.nalus,l=!1;r&&u.length&&!a&&(n(),t(s)),u=E(s.nalus);for(var c=u.next();!c.done;c=u.next()){c=c.value;var d=!1;switch(c.type){case 1:var h,p=!1;d=!0;var f=c.data;l&&f.length>4&&(oS(h=new op(f)),ob(h),2===(f=ob(h))||4===f||7===f||9===f)&&(p=!0),p&&r&&r.frame&&!r.isKeyframe&&(n(),r=null),r||t(s),r.frame=!0,r.isKeyframe=p;break;case 5:d=!0,r&&r.frame&&!r.isKeyframe&&(n(),r=null),r||t(s),r.frame=!0,r.isKeyframe=!0;break;case 6:case 8:case 12:d=!0;break;case 7:l=d=!0;break;case 9:a=d=!0,r&&r.frame&&(n(),r=null),r||t(s);break;default:d=!1}r&&d&&r.nalus.push(c)}}return n(),i}(f);if(!g.length)throw new eU(2,3,3023,n?n.S()[0]:null);for(var m=0;m<g.length;m++){var v=g[m];null==p&&(p=v.dts);var y=void 0;y=m+1<g.length?(g[m+1].dts||0)-(v.dts||0):g.length>1?(v.dts||0)-(g[m-1].dts||0):(n.endTime-n.startTime)*9e4,h.push({data:v.data,size:v.data.byteLength,duration:y,Ab:Math.round((v.pts||0)-(v.dts||0)),flags:{Cb:0,ub:0,sb:0,qb:0,rb:v.isKeyframe?2:1,Db:+!v.isKeyframe}})}for(var b=[],T=E(f),w=T.next();!w.done;w=T.next())b.push.apply(b,x(w.value.nalus));var S=function(e){if(!e.length)return null;var t=e.find(function(e){return 7==e.type});if(e=e.find(function(e){return 8==e.type}),!t||!e)return null;var n=new op(t.data),i=oS(n);if(oS(n),oS(n),oy(n),bk.includes(i)&&(3===(i=ob(n))&&og(n,1),oy(n),oy(n),og(n,1),ow(n))){i=3!==i?8:12;for(var r=0;r<i;r++)ow(n)&&(r<6?oA(n,16):oA(n,64))}if(oy(n),0===(i=ob(n)))ob(n);else if(1===i)for(og(n,1),oy(n),oy(n),i=ob(n),r=0;r<i;r++)oy(n);oy(n),og(n,1);var a=ob(n),o=ob(n),s=om(n,1);0===s&&og(n,1),og(n,1);var u=0,l=0,c=0,d=0;if(ow(n)&&(u=ob(n),l=ob(n),c=ob(n),d=ob(n)),r=i=1,ow(n)&&ow(n)){var h=oS(n);h>0&&h<=16?(i=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][h-1],r=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][h-1]):255===h&&(i=om(n,16),r=om(n,16))}return n=(2-s)*(o+1)*16-2*c-2*d,a=(a+1)*16-2*u-2*l,u=[],t=t.fullData,u.push(t.byteLength>>>8&255),u.push(255&t.byteLength),u=u.concat.apply(u,x(t)),t=[],e=e.fullData,t.push(e.byteLength>>>8&255),t.push(255&e.byteLength),t=t.concat.apply(t,x(e)),{height:n,width:a,Ya:e=new Uint8Array([1,u[3],u[4],u[5],255,225].concat(u,[1],t)),fb:i,gb:r}}(b);if(!S||null==p)throw new eU(2,3,3018,n?n.S()[0]:null);t.height=S.height,t.width=S.width,d={id:t.id,type:"video",codecs:"avc1",encrypted:t.encrypted&&t.drmInfos.length>0,timescale:9e4,duration:i,Hb:[],Ma:new Uint8Array([]),Ya:S.Ya,fb:S.fb,gb:S.gb,data:{sequenceNumber:this.g,baseMediaDecodeTime:p,Eb:h},stream:t};break;case"hvc":var A=[],k=null,I=[],C=u.Kd();if(!C.length)throw new eU(2,3,3023,n?n.S()[0]:null);for(var M=0;M<C.length;M++){var L=C[M],R=L.nalus;I.push.apply(I,x(R));for(var P=!1,D=[],N=!1,O=E(R),_=O.next();!_.done;_=O.next()){var U=_.value;switch(U.type){case 1:case 0:var q=N=!0;break;case 19:case 20:case 21:P=q=N=!0;break;case 32:case 33:case 34:case 39:case 40:q=!0;break;case 35:N=q=!0;break;default:q=!1}if(N&&q){var j=U.fullData.byteLength,B=new Uint8Array(4);B[0]=j>>24&255,B[1]=j>>16&255,B[2]=j>>8&255,B[3]=255&j,D.push(B),D.push(U.fullData)}}var F=D.length?{data:e4.apply(e$,x(D)),isKeyframe:P}:null;if(F){null==k&&null!=L.dts&&(k=L.dts);var V=void 0;V=M+1<C.length?(C[M+1].dts||0)-(L.dts||0):C.length>1?(L.dts||0)-(C[M-1].dts||0):(n.endTime-n.startTime)*9e4,A.push({data:F.data,size:F.data.byteLength,duration:V,Ab:Math.round((L.pts||0)-(L.dts||0)),flags:{Cb:0,ub:0,sb:0,qb:0,rb:F.isKeyframe?2:1,Db:+!F.isKeyframe}})}}var G=function(e){if(!e.length)return null;var t,n,i,r,a,o=e.find(function(e){return 32==e.type}),s=e.find(function(e){return 33==e.type}),u=e.find(function(e){return 34==e.type});if(!o||!s||!u)return null;var l=(t=o.fullData,n=new op(t,!0),oS(n),oS(n),om(n,4),om(n,2),om(n,6),{Ph:(t=om(n,3))+1,wi:n=ow(n)});e=function(e){oS(e=new op(e,!0)),oS(e);var t=0,n=0,i=0,r=0;om(e,4);var a=om(e,3);ow(e);for(var o=om(e,2),s=om(e,1),u=om(e,5),l=oS(e),c=oS(e),d=oS(e),h=oS(e),p=oS(e),f=oS(e),g=oS(e),m=oS(e),v=oS(e),y=oS(e),b=oS(e),T=[],w=[],S=0;S<a;S++)T.push(ow(e)),w.push(ow(e));if(a>0)for(S=a;
1S<8;S++)om(e,2);for(S=0;S<a;S++)T[S]&&om(e,88),w[S]&&oS(e);ob(e),3==(T=ob(e))&&om(e,1),w=ob(e),S=ob(e),ow(e)&&(t+=ob(e),n+=ob(e),i+=ob(e),r+=ob(e));var A=ob(e),E=ob(e),x=ob(e);if(ow(e))for(var k=0;k<=a;k++)ob(e),ob(e),ob(e);else ob(e),ob(e),ob(e);if(ob(e),ob(e),ob(e),ob(e),ob(e),ob(e),ow(e)&&ow(e))for(k=0;k<4;k++)for(var I=0;I<(3===k?2:6);I++)if(ow(e)){var C=Math.min(64,1<<4+(k<<1));k>1&&oT(e);for(var M=0;M<C;M++)oT(e)}else ob(e);for(ow(e),ow(e),ow(e)&&(oS(e),ob(e),ob(e),ow(e)),k=ob(e),C=I=0;C<k;C++)if(M=!1,0!==C&&(M=ow(e)),M){C===k&&ob(e),ow(e),ob(e);for(var L=M=0;L<=I;L++){var R=ow(e),P=!1;R||(P=ow(e)),(R||P)&&M++}I=M}else{for(I=(L=ob(e))+(M=ob(e)),R=0;R<L;R++)ob(e),ow(e);for(L=0;L<M;L++)ob(e),ow(e)}if(ow(e))for(k=ob(e),I=0;I<k;I++){for(C=0;C<x+4;C++)om(e,1);om(e,1)}if(k=x=1,I=!0,C=1,L=M=0,ow(e),ow(e),ow(e)){if(ow(e)){R=oS(e),P=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2];var D=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];R>0&&R<=16?(x=P[R-1],k=D[R-1]):255===R&&(x=om(e,16),k=om(e,16))}if(ow(e)&&ow(e),ow(e)&&(om(e,3),ow(e),ow(e)&&(oS(e),oS(e),oS(e))),ow(e)&&(ob(e),ob(e)),ow(e),ow(e),ow(e),(R=ow(e))&&(oy(e),oy(e),oy(e),oy(e)),ow(e)&&(C=om(e,32),M=om(e,32),ow(e)&&ob(e),ow(e))){D=!1,R=ow(e),P=ow(e),(R||P)&&((D=ow(e))&&(oS(e),om(e,5),ow(e),om(e,5)),om(e,4),om(e,4),D&&om(e,4),om(e,5),om(e,5),om(e,5));for(var N=0;N<=a;N++){I=ow(e);var O=!0,_=1;I||(O=ow(e));var U=!1;if(O?ob(e):U=ow(e),U||(_=ob(e)+1),R){for(O=0;O<_;O++)ob(e),ob(e),D&&(ob(e),ob(e));ow(e)}if(P){for(O=0;O<_;O++)ob(e),ob(e),D&&(ob(e),ob(e));ow(e)}}}ow(e)&&(ow(e),ow(e),ow(e),L=ob(e),ob(e),ob(e),ob(e),ob(e))}return{ih:b,ph:o,qh:s,oh:u,jh:l,kh:c,mh:d,nh:h,bh:p,dh:f,eh:g,fh:m,gh:v,hh:y,Qf:L,Rg:T,Ng:A,Mg:E,width:w-(t+n)*(1===T||2===T?2:1),height:S-(i+r)*(1===T?2:1),lm:x,jm:k,ah:M/C,$g:I}}(s.fullData);var c=(i=u.fullData,r=new op(i,!0),oS(r),oS(r),ob(r),ob(r),ow(r),ow(r),om(r,3),ow(r),ow(r),ob(r),ob(r),oT(r),ow(r),ow(r),ow(r)&&ob(r),oT(r),oT(r),ow(r),ow(r),ow(r),ow(r),i=ow(r),r=ow(r),a=1,r&&i?a=0:r?a=3:i&&(a=2),{Rh:a});return o=function(e,t,n,i){var r=new Uint8Array(23+(5+e.byteLength)+(5+t.byteLength)+(5+n.byteLength));for(r[0]=1,r[1]=(3&i.ph)<<6|!!i.qh<<5|31&i.oh,r[2]=i.jh,r[3]=i.kh,r[4]=i.mh,r[5]=i.nh,r[6]=i.bh,r[7]=i.dh,r[8]=i.eh,r[9]=i.fh,r[10]=i.gh,r[11]=i.hh,r[12]=i.ih,r[13]=240|(3840&i.Qf)>>8,r[14]=255&i.Qf,r[15]=252|3&i.Rh,r[16]=252|3&i.Rg,r[17]=248|7&i.Ng,r[18]=248|7&i.Mg,r[19]=0,r[20]=parseInt(i.ah,10),r[21]=(3&!!i.$g)<<6|(7&i.Ph)<<3|!!i.wi<<2|3,r[22]=3,e=[e,t,n],t=23,n=e.length-1,i=0;i<e.length;i+=1)r.set(new Uint8Array([32+i|128*(i===n),0,1]),t),t+=3,r.set(new Uint8Array([e[i].byteLength>>8,255&e[i].byteLength]),t),t+=2,r.set(e[i],t),t+=e[i].byteLength;return r}(o.fullData,s.fullData,u.fullData,{Ph:l.Ph,wi:l.wi,ph:e.ph,qh:e.qh,ih:e.ih,oh:e.oh,jh:e.jh,kh:e.kh,mh:e.mh,nh:e.nh,bh:e.bh,dh:e.dh,eh:e.eh,fh:e.fh,gh:e.gh,hh:e.hh,Qf:e.Qf,Rg:e.Rg,Ng:e.Ng,Mg:e.Mg,Rh:c.Rh,ah:e.ah,$g:e.$g}),{height:e.height,width:e.width,Ya:o,fb:e.lm,gb:e.jm}}(I);if(!G||null==k)throw new eU(2,3,3018,n?n.S()[0]:null);t.height=G.height,t.width=G.width,d={id:t.id,type:"video",codecs:"hvc1",encrypted:t.encrypted&&t.drmInfos.length>0,timescale:9e4,duration:i,Hb:[],Ma:new Uint8Array([]),Ya:G.Ya,fb:G.fb,gb:G.gb,data:{sequenceNumber:this.g,baseMediaDecodeTime:k,Eb:A},stream:t}}d&&(l.push(d),d=null)}if("audio"==r){switch(c.audio){case"aac":for(var H,z=[],K=null,W=null,X=null,Y=E(u.Bb()),Z=Y.next();!Z.done;Z=Y.next()){var J=Z.value,Q=J.data;if(Q){var $=0;if(-1==W&&X)Q=e4(X,J.data),W=null;else if(null!=W&&X){$=Math.max(0,W);var ee=e4(X,Q.subarray(0,$));z.push({data:ee,size:ee.byteLength,duration:1024,Ab:0,flags:{Cb:0,ub:0,sb:0,qb:0,rb:2,Db:0}}),W=X=null}if(!(H=bb(Q,$)))throw new eU(2,3,3018,n?n.S()[0]:null);for(t.audioSamplingRate=H.sampleRate,t.channelsCount=H.channelCount,null==K&&null!==J.pts&&(K=J.pts);$<Q.length;){var et=by(Q,$);if(!et){X=Q.subarray($,Q.length),W=-1;break}var en=et.we+et.za;W=Math.max(0,$+en-Q.length),0!=W?X=Q.subarray($+et.we,$+en):$+en<=Q.length&&z.push({data:Q.subarray($+et.we,$+en),size:et.za,duration:1024,Ab:0,flags:{Cb:0,ub:0,sb:0,qb:0,rb:2,Db:0}}),$+=en}}}if(!H||null==K){K=9e4*n.startTime;var ei=te("audio",t.codecs.split(","));if(!ei||!t.channelsCount||!t.audioSamplingRate)throw new eU(2,3,3018,n?n.S()[0]:null);H={sampleRate:t.audioSamplingRate,channelCount:t.channelsCount,codec:ei};var er=function(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t||3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}(ei,t.channelsCount);if(!er)throw new eU(2,3,3018,n?n.S()[0]:null);for(var ea=K+(n.endTime-n.startTime)*9e4,eo=K;eo<ea;)z.push({data:er,size:er.byteLength,duration:1024,Ab:0,flags:{Cb:0,ub:0,sb:0,qb:0,rb:2,Db:0}}),eo+=1024/H.sampleRate*9e4}var es=H.sampleRate,eu=K/9e4*es;d={id:t.id,type:"audio",codecs:H.codec,encrypted:t.encrypted&&t.drmInfos.length>0,timescale:es,duration:i,Hb:[],Ma:new Uint8Array([]),Ya:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:eu,Eb:z},stream:t};break;case"ac3":for(var el=[],ec=0,ed=new Uint8Array([]),eh=null,ep=E(u.Bb()),ef=ep.next();!ef.done;ef=ep.next()){var eg=ef.value,em=eg.data;null==eh&&null!==eg.pts&&(eh=eg.pts);for(var ev=0;ev<em.length;){var ey=bS(em,ev);ey?(t.audioSamplingRate=ey.sampleRate,t.channelsCount=ey.channelCount,ec=ey.sampleRate,ed=ey.Ma,el.push({data:em.subarray(ev,ev+ey.za),size:ey.za,duration:1536,Ab:0,flags:{Cb:0,ub:0,sb:0,qb:0,rb:2,Db:0}}),ev+=ey.za):ev++}}if(0==ec||0==ed.byteLength||null==eh)throw new eU(2,3,3018,n?n.S()[0]:null);var eb=eh/9e4*ec;d={id:t.id,type:"audio",codecs:"ac-3",encrypted:t.encrypted&&t.drmInfos.length>0,timescale:ec,duration:i,Hb:[],Ma:ed,Ya:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:eb,Eb:el},stream:t};break;case"ec3":for(var eT=[],ew=0,eS=new Uint8Array([]),eA=null,eE=E(u.Bb()),ex=eE.next();!ex.done;ex=eE.next()){var ek=ex.value,eI=ek.data;null==eA&&null!==ek.pts&&(eA=ek.pts);for(var eC=0;eC<eI.length;){var eM=bE(eI,eC);eM?(t.audioSamplingRate=eM.sampleRate,t.channelsCount=eM.channelCount,ew=eM.sampleRate,eS=eM.Ma,eT.push({data:eI.subarray(eC,eC+eM.za),size:eM.za,duration:1536,Ab:0,flags:{Cb:0,ub:0,sb:0,qb:0,rb:2,Db:0}}),eC+=eM.za):eC++}}if(0==ew||0==eS.byteLength||null==eA)throw new eU(2,3,3018,n?n.S()[0]:null);var eL=eA/9e4*ew;d={id:t.id,type:"audio",codecs:"ec-3",encrypted:t.encrypted&&t.drmInfos.length>0,timescale:ew,duration:i,Hb:[],Ma:eS,Ya:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:eL,Eb:eT},stream:t};break;case"mp3":for(var eR,eP=[],eN=null,eO=E(u.Bb()),e_=eO.next();!e_.done;e_=eO.next()){var eq=e_.value,ej=eq.data;
1if(ej){null==eN&&null!==eq.pts&&(eN=eq.pts);for(var eB=0;eB<ej.length;){var eF=bI(ej,eB);eF?(eR||(eR=eF),eB+eF.za<=ej.length&&eP.push({data:ej.subarray(eB,eB+eF.za),size:eF.za,duration:1152,Ab:0,flags:{Cb:0,ub:0,sb:0,qb:0,rb:2,Db:0}}),eB+=eF.za):eB++}}}if(!eR||null==eN)throw new eU(2,3,3018,n?n.S()[0]:null);var eV=eR.sampleRate,eG=eN/9e4*eV;d={id:t.id,type:"audio",codecs:"mp3",encrypted:t.encrypted&&t.drmInfos.length>0,timescale:eV,duration:i,Hb:[],Ma:new Uint8Array([]),Ya:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:eG,Eb:eP},stream:t};break;case"opus":var eH=[],ez=null,eK=u.H;if(!eK)throw new eU(2,3,3018,n?n.S()[0]:null);var eW=[];switch(eK.rk){case 1:case 2:eW=[0];break;case 0:eW=[255,1,1,0,1];break;case 128:eW=[255,2,0,0,1];break;case 3:eW=[1,2,1,0,2,1];break;case 4:eW=[1,2,2,0,1,2,3];break;case 5:eW=[1,3,2,0,4,1,2,3];break;case 6:eW=[1,4,2,0,4,1,2,3,5];break;case 7:eW=[1,4,2,0,4,1,2,3,5,6];break;case 8:eW=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:eW=[1,1,2,0,1];break;case 131:eW=[1,1,3,0,1,2];break;case 132:eW=[1,1,4,0,1,2,3];break;case 133:eW=[1,1,5,0,1,2,3,4];break;case 134:eW=[1,1,6,0,1,2,3,4,5];break;case 135:eW=[1,1,7,0,1,2,3,4,5,6];break;case 136:eW=[1,1,8,0,1,2,3,4,5,6,7]}for(var eX=new Uint8Array([0,eK.channelCount,0,0,eK.sampleRate>>>24&255,eK.sampleRate>>>17&255,eK.sampleRate>>>8&255,eK.sampleRate>>>0&255,0,0].concat(x(eW))),eY=eK.sampleRate,eZ=E(u.Bb()),eJ=eZ.next();!eJ.done;eJ=eZ.next()){var eQ=eJ.value,e0=eQ.data;null==ez&&null!==eQ.pts&&(ez=eQ.pts);for(var e1=0;e1<e0.length;){for(var e2=(16&e0[e1+1])!=0,e5=(8&e0[e1+1])!=0,e3=e1+2,e8=0;255===e0[e3];)e8+=255,e3+=1;e8+=e0[e3],e3+=1,e3+=2*!!e2,e3+=2*!!e5;var e6=e0.slice(e3,e3+e8);eH.push({data:e6,size:e6.byteLength,duration:960,Ab:0,flags:{Cb:0,ub:0,sb:0,qb:0,rb:2,Db:0}}),e1=e3+e8}}if(0==eX.byteLength||null==ez)throw new eU(2,3,3018,n?n.S()[0]:null);t.audioSamplingRate=eK.sampleRate,t.channelsCount=eK.channelCount;var e7=ez/9e4*eY;d={id:t.id,type:"audio",codecs:"opus",encrypted:t.encrypted&&t.drmInfos.length>0,timescale:eY,duration:i,Hb:[],Ma:eX,Ya:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:e7,Eb:eH},stream:t}}d&&(l.push(d),d=null)}}catch(e){return e&&3023==e.code?Promise.resolve(new Uint8Array([])):Promise.reject(e)}if(!l.length)return Promise.reject(new eU(2,3,3018,n?n.S()[0]:null));var e9=new aA(l),tt=t.id+"_"+n.i;if(this.j.has(tt))var tn=this.j.get(tt);else tn=aE(e9),this.j.set(tt,tn);var ti=this.l!==tn,tr=aM(e9);return this.l=tn,this.g++,Promise.resolve({data:tr,init:ti?tn:null})},$("shaka.transmuxer.TsTransmuxer",bj),bj.prototype.transmux=bj.prototype.transmux,bj.prototype.getOriginalMimeType=bj.prototype.getOriginalMimeType,bj.prototype.convertCodecs=bj.prototype.convertCodecs,bj.prototype.isSupported=bj.prototype.isSupported,bj.prototype.destroy=bj.prototype.destroy;var bB=["aac","ac-3","ec-3","mp3","opus"],bF=["avc","hevc"];function bV(){}function bG(e,t){var n=this;this.parent=e,this.controls=t,this.eventManager=new tI,this.localization=this.controls.ya,this.player=this.controls.Yb(),this.video=this.controls.Wc(),this.adManager=this.player.vf(),this.ad=t.getAd(),this.eventManager.o(this.adManager,"ad-started",function(e){n.ad=e.ad}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.ad=null})}function bH(e,t){this.parent=e,this.g=a7("svg"),this.h=a7("path"),this.g.classList.add("material-svg-icon"),this.g.setAttribute("viewBox","0 -960 960 960"),t&&this.use(t),this.g.appendChild(this.h),this.parent&&e.appendChild(this.g)}function bz(e){return bK(e,"shaka-back-to-overflow-button")}function bK(e,t){return(e=e.getElementsByClassName(t)).length?e[0]:null}function bW(e){e&&(e=bK(e,"shaka-chosen-item"))&&e.parentElement.focus()}function bX(){var e=new bH(null,"m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z").g;return e.classList.add("shaka-chosen-item"),e.ariaHidden="true",e}function bY(e,t){e&&(t?e.classList.remove("shaka-hidden"):e.classList.add("shaka-hidden"))}function bZ(e,t){var n=Math.floor(e/86400),i=Math.floor(e%86400/3600),r=M
1ath.floor(e/60%60);return(e=Math.floor(e%60))<10&&(e="0"+e),e=r+":"+e,t&&(r<10&&(e="0"+e),e=i+":"+e,n>0&&(i<10&&(e="0"+e),e=n+":"+e)),e}function bJ(e,t){bG.call(this,e,t);var n=this;this.g=a9(),this.g.classList.add("shaka-ad-info"),this.g.disabled=!0,this.parent.appendChild(this.g),this.h=new iA(function(){if(n.ad.isLinear()){var e="",t=n.ad.getSequenceLength();t>1&&(e=n.ad.getPositionInSequence(),e=n.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(e)).replace("[NUM_ADS]",String(t)));var i=Math.round(n.ad.getRemainingTime()),r=n.ad.getDuration();-1!=i&&-1!=r&&isFinite(i)&&isFinite(r)?i>0?(i=bZ(r-i,!1)+" / "+bZ(r,!1),e=t>1?e+"\xa0\xa0"+i:n.localization.resolve("AD_TIME").replace("[AD_TIME]",i),n.g.textContent=e,bY(n.g,""!=e)):(n.h.stop(),n.g.textContent=""):(n.g.textContent=e,bY(n.g,""!=e))}}),this.eventManager.o(this.localization,"locale-updated",function(){}),this.eventManager.o(this.localization,"locale-changed",function(){}),this.eventManager.o(this.adManager,"ad-started",function(){n.h.Ka(),n.h.xa(.5)}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.h.stop(),n.g.textContent=""}),this.ad&&(this.h.Ka(),this.h.xa(.5))}function bQ(t,n){bG.call(this,t,n);var i=this;this.j=this.controls.g,this.h=this.controls.i,this.i=[],this.g=a6("div"),this.g.classList.add("shaka-no-propagation"),this.g.classList.add("shaka-context-menu"),this.g.classList.add("shaka-hidden"),this.h.appendChild(this.g),this.eventManager.o(this.h,"contextmenu",function(e){if(i.g.classList.contains("shaka-hidden")){e.preventDefault();var t=i.h.getBoundingClientRect();i.g.style.left=e.clientX-t.left+"px",i.g.style.top=e.clientY-t.top+"px",bY(i.g,!0)}else bY(i.g,!1)}),this.eventManager.o(e,"click",function(){bY(i.g,!1)}),this.eventManager.o(this.g,"click",function(){bY(i.g,!1)}),function(e){for(var t=E(e.j.contextMenuElements),n=t.next();!n.done;n=t.next()){n=n.value;var i=b0.get(n);i?e.i.push(i.create(e.g,e.controls)):ea("Unrecognized context menu element:",n)}}(this)}function b$(e,t){b0.set(e,t)}n3("video/mp2t",function(){return new bj("video/mp2t")},n9),S(bV,ub),$("shaka.util.FairPlayUtils",bV),bG.prototype.release=function(){this.eventManager.release(),this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null},$("shaka.ui.Element",bG),bG.prototype.release=bG.prototype.release,bH.prototype.use=function(e){e&&"string"==typeof e&&this.h.setAttribute("d",e)},bH.prototype.jl=function(){return this.g},$("shaka.ui.MaterialSVGIcon",bH),bH.prototype.getSvgElement=bH.prototype.jl,bH.prototype.use=bH.prototype.use,S(bJ,bG),bJ.prototype.release=function(){this.h.stop(),this.h=null,bG.prototype.release.call(this)},$("shaka.ui.AdInfo",bJ),S(bQ,bG),bQ.prototype.release=function(){this.h=null;for(var e=E(this.i),t=e.next();!t.done;t=e.next())t.value.release();this.i=[],bG.prototype.release.call(this)},bQ.prototype.Ri=function(){bY(this.g,!1)},$("shaka.ui.ContextMenu",bQ),bQ.registerElement=b$,bQ.prototype.closeMenu=bQ.prototype.Ri;var b0=new Map;function b1(e,t){bG.call(this,e,t);var n=this;this.button=a9(),this.parent.appendChild(this.button),this.h=new bH(this.button),this.eventManager.o(this.localization,"locale-updated",function(){b2(n)}),this.eventManager.o(this.localization,"locale-changed",function(){b2(n)}),this.eventManager.o(this.video,"play",function(){b2(n),n.g()}),this.eventManager.o(this.video,"pause",function(){b2(n),n.g()}),this.eventManager.o(this.video,"seeking",function(){b2(n),n.g()}),this.eventManager.o(this.player,"loaded",function(){b2(n),n.g()}),this.eventManager.o(this.adManager,"ad-paused",function(){b2(n),n.g()}),this.eventManager.o(this.adManager,"ad-resumed",function(){b2(n),n.g()}),this.eventManager.o(this.adManager,"ad-started",function(){b2(n),n.g()}),this.eventManager.o(this.adManager,"ad-stopped",function(){b2(n),n.g()}),this.eventManager.o(this.button,"click",function(){n.controls.Ca()&&TF(n.controls)}),b2(this),this.g()}function b2(e){if(e.isEnded()&&e.video.duration)e.button.ariaLabel=e.localization.resolve("REPLAY");else{var t=e.isPaused()?"PLAY":"PAUSE";e.button.ariaLabel=e.localization.resolve(t)}}function b5(e,t){b1.call(this,e,t),this.button.classList.add("shaka-play-button"),this.button.classList.add("shaka-no-propagation")}function b3(e,t){bG.call(this,e,t);var n=this;this.m=null,this.i=this.D=!1,this.C=this.A=null,this.j=new iA(function(){0===parseInt(n.h.textContent,10)&&Tz(n.controls,!0);var e=parseInt(n.h.textContent,10);0!==e&&(n.video.currentTime=n.controls.uh()+e),n.g.style.opacity="0",n.D=!1,n.h.textContent="0s"}),this.g=a6("div"),this.g.classList.add("shaka-no-propagation"),this.parent.appendChild(this.g),this.h=a6("span"),this.h.textContent="0s",this.g.appendChild(this.h),this.u=new bH(this.g),this.u.g.classList.add("shaka-forward-rewind-container-icon"),this.l=!1,this.eventManager.o(this.g,"touchstart",function(e){e.touches.length>0&&(n.A=e.touches[0].clientX,n.C=e.touches[0].clientY),n.i=!1}),this.eventManager.o(this.g,"touchmove",function(e){if(e.touches.length>0&&null!=n.A&&null!=n.C){var t=e.touches[0].clientX-n.A;Math.sqrt(t*t+(e=e.touches[0].clientY-n.C)*e)>10&&(n.i=!0)}}),this.eventManager.o(this.g,"touchend",function(e){if(!n.i){if(n.controls.Nc())e.preventDefault(),n.controls.Xc();else if(n.controls.g.tapSeekDistance>0&&(!n.ad||!n.ad.isLinear()))if(e.preventDefault(),e=n.controls.g.tapSeekDistance,n.D){if(n.m+500>Date.now()){n.j.stop(),n.m=Date.now();var t=parseInt(n.h.textContent,10);t=n.l?t-e:t+e,n.h.textContent=t.toString()+"s",n.g.style.opacity="1",n.j.Y(.5)}}else n.D=!0,n.m=Date.now(),n.j.Y(.5)}})}function b4(e,t){b3.call(this,e,t),this.g.classList.add("shaka-fast-forward-container"),this.u.use("M100-315v-330q0-18 12-29t28-11q5 0 11 1t11 5l248 166q9 6 13.5 14.5T428-480q0 10-4.5 18.5T410-447L162-281q-5 4-11 5t-11 1q-16 0-28-11t-12-29Zm400 0v-330q0-18 12-29t28-11q5 0 11 1t11 5l248 166q9 6 13.5 14.5T828-480q0 10-4.5 18.5T810-447L562-281q-5 4-11 5t-11 1q-16 0-28-11t-12-29Z"),this.l=!1}function b8(e,t){b3.call(this,e,t),this.g.classList.add("shaka-rewind-container"),this.u.use("M798-281 550-447q-9-6-13.5-14.5T532-480q0-10 4.5-18.5T550-513l248-166q5-4 11-5t11-1q16 0 28 11t12 29v330q0 18-12 29t-28 11q-5 0-11-1t-11-5Zm-400 0L150-447q-9-6-13.5-14.5T132-480q0-10 4.5-18.5T150-513l248-166q5-4 11-5t11-1q16 0 28 11t12 29v330q0 18-12 29t-28 11q-5 0-11-1t-11-5Z"),this.l=!0}function b6(e,t,n,i){bG.call(this,e,t);var r=this;this.container=a6("div"),this.container.classList.add("shaka-range-container"),this.container.classList.add.apply(this.container.classList,x(n)),this.i=!1,this.bar=document.createElement("input"),this.G=new iA(function(){r.onChangeEnd(),r.i=!1}),this.bar.classList.add("shaka-range-element"),this.bar.classList.add.apply(this.bar.classList,x(i)),this.bar.type="range",this.bar.step="any",this.bar.min="0",this.bar.max="1",this.bar.value="0",this.bar.disabled=!this.controls.Ca(),this.container.appendChild(this.bar),this.parent.appendChild(this.container),this.L=new iA(function(){r.bar.disabled=!1}),this.eventManager.o(this.controls,"showingui",function(){r.L.Y(0)}),this.eventManager.o(this.controls,"hidingui",function(){r.L.stop(),r.bar.disabled=!0}),this.eventManager.o(this.bar,"mousedown",function(e){r.bar.disabled||(r.i=!0,r.onCh
1angeStart(),e.stopPropagation())}),this.eventManager.o(this.bar,"touchstart",function(e){r.bar.disabled||(r.i=!0,b9(r,e),r.onChangeStart(),e.stopPropagation())}),this.eventManager.o(this.bar,"input",function(){r.onChange()}),this.eventManager.o(this.bar,"touchmove",function(e){r.i&&(b9(r,e),r.onChange(),e.stopPropagation())}),this.eventManager.o(this.bar,"touchend",function(e){r.i&&(r.i=!1,b9(r,e),r.onChangeEnd(),e.stopPropagation())}),this.eventManager.o(this.bar,"touchcancel",function(e){r.i&&(r.i=!1,b9(r,e),r.onChangeEnd(),e.stopPropagation())}),this.eventManager.o(this.bar,"mouseup",function(e){r.i&&(r.i=!1,r.onChangeEnd(),e.stopPropagation())}),this.eventManager.o(this.bar,"blur",function(){r.i&&(r.i=!1,r.onChangeEnd())}),this.eventManager.o(this.bar,"contextmenu",function(e){e.preventDefault(),e.stopPropagation()})}function b7(e,t){var n=e.bar.getBoundingClientRect(),i=parseFloat(e.bar.min),r=parseFloat(e.bar.max);e=parseFloat(e.bar.step)||1;var a=n.left+6;return t=Math.round(((t=i+(Math.max(a,Math.min(n=n.right-6,t))-a)/(n-a)*(r-i))-i)/e)*e+i,Math.min(r,Math.max(i,t))}function b9(e,t){t.preventDefault(),e.bar.value=b7(e,t.changedTouches[0].clientX)}function Te(e,t){b6.call(this,e,t,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var n=this;this.F=a6("div"),this.F.classList.add("shaka-ad-markers"),this.container.insertBefore(this.F,this.container.childNodes[0]),this.I=this.controls.g,this.C=new iA(function(){var e=n.getValue();n.player.U()||e==n.video.duration&&(e-=.001),n.video.currentTime=e}),this.D=new iA(function(){Tt(n)}),this.M=!1,this.h=a6("div"),this.h.id="shaka-player-ui-thumbnail-container",this.g=a6("img"),this.g.id="shaka-player-ui-thumbnail-image",this.g.draggable=!1,this.K=a6("div"),this.K.id="shaka-player-ui-thumbnail-time-container",this.H=a6("div"),this.H.id="shaka-player-ui-thumbnail-time",this.K.appendChild(this.H),this.h.appendChild(this.g),this.h.appendChild(this.K),this.container.appendChild(this.h),this.j=a6("div"),this.j.id="shaka-player-ui-time-container",this.container.appendChild(this.j),this.l=this.u=null,this.J=!1,this.A=new iA(function(){Ts(n)}),this.m=[],this.eventManager.o(this.bar,"input",function(){n.controls.Xc()}),this.eventManager.o(this.localization,"locale-updated",function(){return Tr(n)}),this.eventManager.o(this.localization,"locale-changed",function(){return Tr(n)}),this.eventManager.o(this.adManager,"ad-started",function(){Ti(n)||bY(n.container,!1)}),this.eventManager.o(this.adManager,"ad-stopped",function(){Ti(n)&&bY(n.container,!0)}),this.eventManager.o(this.adManager,"ad-cue-points-changed",function(e){n.m=e.cuepoints,Tn(n)}),this.eventManager.o(this.player,"unloading",function(){n.m=[],Tn(n),n.l&&(n.l.abort(),n.l=null),n.u=null,Ts(n),Tu(n)}),this.eventManager.o(this.bar,"mousemove",function(e){if(n.controls.Nc())Tu(n),Ts(n);else{var t=b7(n,e.clientX),i=n.bar.getBoundingClientRect();e=Math.max(0,e.clientX-i.left),n.player.wh().length?(Tu(n),To(n,e,t)):(Ts(n),Ta(n,e,t))}}),this.eventManager.o(this.container,"mouseleave",function(){Tu(n),n.A.stop(),n.A.Y(.25)}),this.setValue(this.video.currentTime),this.update(),Tr(this),this.ad&&bY(this.container,!1)}function Tt(e){if(e.m.length){for(var t=e.player.wa(),n=t.end-t.start,i=["to right"],r=[],a=e.I.seekBarColors.adBreaks,o=!1,s=E(e.m),u=s.next();!u.done;u=s.next())if(-1!=(u=u.value).start||u.end){if(!u.end&&u.start>=t.start||"number"==typeof u.end&&u.end>t.start){var l=(Math.max(u.start,t.start)-t.start)/n||0,c=l+.01;u.end&&(c=(u.end-t.start)/n||0),r.push({start:l,end:c})}}else o=!0;for(n=(t=E(r=r.sort(function(e,t){return e.start-t.start}))).next();!n.done;n=t.next())i.push("transparent "+100*(n=n.value).start+"%"),i.push(a+" "+100*n.start+"%"),i.push(a+" "+100*n.end+"%"),i.push("transparent "+100*n.end+"%");o&&(i.push("transparent 99%"),i.push(a+" 99%")),e.F.style.background="linear-gradient("+i.join(",")+")"}else e.F.style.background="transparent",e.D.stop()}function Tn(e){function t(){Tt(e);var t=e.player.wa();t=t.end-t.start,e.player.U()&&t>5&&e.D.xa(.25)}t(),e.player.Ih()||e.eventManager.qa(e.player,"loaded",t)}function Ti(e){var t=e.player.wa();return t=t.end-t.start,(!e.player.U()||!(t<5)&&!!isFinite(t))&&(null==e.ad||!e.ad.isLinear())}function Tr(e){e.bar.ariaLabel=e.localization.resolve("SEEK")}function Ta(e,t,n){var i=e.j.clientWidth;e.j.style.width="auto",e.j.style.height="20px",e.j.style.top="-30px",e.j.style.left=Math.min(e.bar.offsetWidth-i,Math.max(0,t-i/2))+"px",e.j.style.right="",e.j.style.visibility="visible",t=e.player.wa(),e.player.U()?(n=t.end-n)<1?(e.j.textContent=e.localization.resolve("LIVE"),e.j.style.left="",e.j.style.right="0px"):e.j.textContent="-"+bZ(n,n>=3600):(n-=t.start,e.j.textContent=bZ(n,n>=3600))}function To(e,t,n){var i,r,a,o,s,u,l,c,d,h,p,f,g,m,v,y,b;F(function(T){switch(T.g){case 1:if(n<0&&(n=0),i=!1,e.m.length&&(i=e.m.some(function(e){return!!e.end&&n>=e.start&&n<=e.end})),i)return Ts(e),Ta(e,t,n),T.return();return a=Math.max(Math.ceil((r=e.player.wa()).start),Math.min(Math.floor(r.end),n)),e.player.U()?(o=r.end-n,e.H.textContent=o<1?e.localization.resolve("LIVE"):"-"+bZ(o,o>=3600)):e.H.textContent=bZ(n,n>=3600),s=-10,l=Math.floor(9*(u=e.h.clientWidth)/16),e.h.style.height=l+"px",e.h.style.top=-(l-s)+"px",c=Math.min(e.bar.offsetWidth-u,Math.max(0,t-u/2)),e.h.style.left=c+"px",M(T,e.player.dj(null,a),2);case 2:if(!(d=T.h)||!d.uris||!d.uris.length)return Ts(e),Ta(e,t,n),T.return();if(d.width<d.height?e.h.classList.add("portrait-thumbnail"):e.h.classList.remove("portrait-thumbnail"),e.h.style.visibility="visible",h=d.uris[0].split("#xywh=")[0],e.u&&h===e.u.uris[0].split("#xywh=")[0]&&d.startByte==e.u.startByte&&d.endByte==e.u.endByte){T.B(3);break}if(e.u=d,e.l&&(e.l.abort(),e.l=null),"mjpg"!=d.codecs&&!h.startsWith("offline:")){T.B(4);break}return e.g.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>',R(T,5),p=rw,f=sZ(d.uris,d.startByte,d.endByte,e.player.getConfiguration().streaming.retryParameters),e.l=e.player.Xb().request(p,f,{type:1}),M(T,e.l.promise,7);case 7:g=T.h,e.l=null,"mjpg"==d.codecs?(new rR).box("mdat",r_(function(e){h=URL.createObjectURL(new Blob([e],{type:"image/jpeg"}))},!0)).parse(g.data,!1):(m=d.mimeType||"image/jpeg",v=new Blob([g.data],{type:m}),h=URL.createObjectURL(v)),D(T,4);break;case 5:if(7001==(y=N(T)).code)return T.return();throw y;case 4:try{e.h.removeChild(e.g)}catch(e){}
1e.g=a6("img"),e.g.id="shaka-player-ui-thumbnail-image",e.g.draggable=!1,e.g.src=h,e.g.onload=function(){h.startsWith("blob:")&&URL.revokeObjectURL(h)},e.h.insertBefore(e.g,e.h.firstChild);case 3:b=u/d.width,d.imageHeight?e.g.height=d.imageHeight:d.sprite||(e.g.style.height="100%",e.g.style.objectFit="contain"),d.imageWidth?e.g.width=d.imageWidth:d.sprite||(e.g.style.width="100%",e.g.style.objectFit="contain"),e.g.style.left="-"+b*d.positionX+"px",e.g.style.top="-"+b*d.positionY+"px",e.g.style.transform="scale("+b+")",e.g.style.transformOrigin="left top",l=Math.floor(u*d.height/d.width),e.h.style.height=l+"px",e.h.style.top=-(l-s)+"px",L(T)}})}function Ts(e){e.h.style.visibility="hidden"}function Tu(e){e.j.style.visibility="hidden"}function Tl(){}function Tc(e,t){bG.call(this,e,t);var n=this;this.j=a6("div"),this.j.classList.add("shaka-skip-ad-container"),this.parent.appendChild(this.j),this.h=a6("div"),this.h.classList.add("shaka-skip-ad-counter"),bY(this.h,!1),this.j.appendChild(this.h),this.g=a9(),this.g.classList.add("shaka-skip-ad-button"),this.g.disabled=!0,bY(this.g,!1),this.g.classList.add("shaka-no-propagation"),this.j.appendChild(this.g),Td(this),this.i=new iA(function(){if(n.ad.isSkippable()){var e=Math.round(n.ad.getTimeUntilSkippable());e>0?n.h.textContent=e:(n.i.stop(),bY(n.h,!1))}else Tp(n)}),this.eventManager.o(this.localization,"locale-updated",function(){Td(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Td(n)}),this.eventManager.o(this.adManager,"ad-started",function(){Th(n)}),this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){n.ad.isSkippable()?n.ad.canSkipNow()&&(n.g.disabled=!1,n.i.stop(),bY(n.h,!1)):Tp(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){Tp(n)}),this.eventManager.o(this.g,"click",function(){n.ad.skip()}),this.ad&&Th(this)}function Td(e){e.g.textContent=e.localization.resolve("SKIP_AD")}function Th(e){e.ad.isSkippable()&&e.ad.needsSkipUI()&&(bY(e.g,!0),bY(e.h,!0),e.h.textContent="",e.i.Ka(),e.i.xa(.5))}function Tp(e){e.i.stop(),e.g.disabled=!0,bY(e.g,!1),bY(e.h,!1)}function Tf(){var e=new Float32Array(16);return e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function Tg(e,t,n){t=1/Math.tan(t/2),e[0]=t/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,n=-1/99.9,e[10]=100.1*n,e[14]=20*n}function Tm(e,t,n){var i=t[0],r=t[1],a=t[2],o=t[3],s=t[4],u=t[5],l=t[6],c=t[7],d=t[8],h=t[9],p=t[10],f=t[11],g=t[12],m=t[13],v=t[14];t=t[15];var y=n[0],b=n[1],T=n[2],w=n[3];e[0]=y*i+b*s+T*d+w*g,e[1]=y*r+b*u+T*h+w*m,e[2]=y*a+b*l+T*p+w*v,e[3]=y*o+b*c+T*f+w*t,y=n[4],b=n[5],T=n[6],w=n[7],e[4]=y*i+b*s+T*d+w*g,e[5]=y*r+b*u+T*h+w*m,e[6]=y*a+b*l+T*p+w*v,e[7]=y*o+b*c+T*f+w*t,y=n[8],b=n[9],T=n[10],w=n[11],e[8]=y*i+b*s+T*d+w*g,e[9]=y*r+b*u+T*h+w*m,e[10]=y*a+b*l+T*p+w*v,e[11]=y*o+b*c+T*f+w*t,y=n[12],b=n[13],T=n[14],w=n[15],e[12]=y*i+b*s+T*d+w*g,e[13]=y*r+b*u+T*h+w*m,e[14]=y*a+b*l+T*p+w*v,e[15]=y*o+b*c+T*f+w*t}function Tv(e,t){var n=new Float32Array(3),i=t[0],r=t[1],a=t[2],o=t[4],s=t[5],u=t[6],l=t[8],c=t[9],d=t[10];n[0]=Math.sqrt(i*i+r*r+a*a),n[1]=Math.sqrt(o*o+s*s+u*u),n[2]=Math.sqrt(l*l+c*c+d*d),u=1/n[0],l=1/n[1],c=1/n[2],o=t[0]*u,n=t[1]*l,i=t[2]*c,r=t[4]*u,s=t[5]*l,a=t[6]*c,u*=t[8],l*=t[9],(c=o+s+(t=t[10]*c))>0?(t=2*Math.sqrt(c+1),e[3]=.25*t,e[0]=(a-l)/t,e[1]=(u-i)/t,e[2]=(n-r)/t):o>s&&o>t?(t=2*Math.sqrt(1+o-s-t),e[3]=(a-l)/t,e[0]=.25*t,e[1]=(n+r)/t,e[2]=(u+i)/t):s>t?(t=2*Math.sqrt(1+s-o-t),e[3]=(u-i)/t,e[0]=(n+r)/t,e[1]=.25*t,e[2]=(a+l)/t):(t=2*Math.sqrt(1+t-o-s),e[3]=(n-r)/t,e[0]=(u+i)/t,e[1]=(a+l)/t,e[2]=.25*t)}function Ty(e,t){var n=t[0],i=t[1],r=t[2];t=t[3];var a=n+n,o=i+i,s=r+r;n*=a;var u=i*a;i*=o;var l=r*a,c=r*o;r*=s,a*=t,o*=t,t*=s,e[0]=1-i-r,e[1]=u+t,e[2]=l-o,e[3]=0,e[4]=u-t,e[5]=1-n-r,e[6]=c+a,e[7]=0,e[8]=l+o,e[9]=c-a,e[10]=1-n-i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1}function Tb(){var e=new Float32Array(4);return e[3]=1,e}function TT(e){var t=[],n=[],i=[],r=Math.PI;e=(void 0===e?0:e)?r/2:r;for(var a=0;a<=100;a++){var o=a*r/100,s=Math.sin(o);o=Math.cos(o);for(var u=0;u<=100;u++){var l=2*u*e/100;t.push(Math.sin(l)*s,o,Math.cos(l)*s),n.push(u/100,a/100)}}for(r=0;r<100;r++)for(e=0;e<100;e++)s=(a=101*r+e)+100+1,i.push(a,s,a+1),i.push(s,s+1,a+1);return{hk:t,dk:n,indices:i}}function Tw(e,t,n,i,r){var a,o,s,u,l,c,d;this.i=e,this.sa=t,this.u=n,this.g=i,this.A=new tI,this.M=Tb(),this.h=Tb(),this.ea=this.oa=this.aa=this.l=null,this.F=Tf(),this.J=Tf(),this.O=Tf(),this.W=Tf(),this.D=null,this.P=!1,this.K=this.C=null,this.ua=this.ya=0,this.Z=this.R=this.T=this.L=null,this.I=this.H=0,this.j=75,this.V=0,this.m=r,this.G=-1,a=this,function(e){var t=e.F,n=[0,0,0],i=[1,0,0],r=[0,1,0],a=n[0],o=n[1];n=n[2];var s=r[0],u=r[1],l=r[2],c=i[0];r=i[1];var d=i[2];if(1e-6>Math.abs(a-c)&&1e-6>Math.abs(o-r)&&1e-6>Math.abs(n-d))for(a=0;a<16;a++)t[a]=+(a%5==0);else{var h=1/Math.sqrt((i=a-c)*i+(r=o-r)*r+(c=n-d)*c);i*=h,r*=h,c*=h,(h=Math.sqrt((d=u*c-l*r)*d+(l=l*i-s*c)*l+(s=s*r-u*i)*s))?(d*=h=1/h,l*=h,s*=h):s=l=d=0,u=r*s-c*l;var p=c*d-i*s,f=i*l-r*d;(h=Math.sqrt(u*u+p*p+f*f))?(u*=h=1/h,p*=h,f*=h):f=p=u=0,t[0]=d,t[1]=u,t[2]=i,t[3]=0,t[4]=l,t[5]=p,t[6]=r,t[7]=0,t[8]=s,t[9]=f,t[10]=c,t[11]=0,t[12]=-(d*a+l*o+s*n),t[13]=-(u*a+p*o+f*n),t[14]=-(i*a+r*o+c*n),t[15]=1}Tv(e.M,e.F),e=t=e.W,a=(n=[4,4,4])[0],o=n[1],n=n[2],t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t[3]=e[3]*a,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]}(a),TE(o=a),o.g.viewport(0,0,o.g.drawingBufferWidth,o.g.drawingBufferHeight),o.g.clearColor(0,0,0,1),o.g.enable(o.g.CULL_FACE),o.g.cullFace(o.g.FRONT),o.g.clear(o.g.COLOR_BUFFER_BIT),u=TS(s=a,s.g.VERTEX_SHADER),l=TS(s,s.g.FRAGMENT_SHADER),s.l=s.g.createProgram(),s.g.attachShader(s.l,u),s.g.attachShader(s.l,l),s.g.linkProgram(s.l),"cubemap"==s.m?(s.T=s.g.getAttribLocation(s.l,"aVertexPosition"),s.R=s.g.getAttribLocation(s.l,"aTextureCoord")):(s.T=s.g.getAttribLocation(s.l,"a_vPosition"),s.g.enableVertexAttribArray(s.T),s.R=s.g.getAttribLocation(s.l,"a_TexCoordinate"),s.g.enableVertexAttribArray(s.R)),(c=a).L="cubemap"==c.m?{hk:[-1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,-1,1,1,1,1,1,1,1,-1,-1,-1,1,1,-1,1,1,1,1,-1,1,1,1,-1,-1,1,1,-1,1,1,1,1,-1,1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1],dk:[2/3,.5,1/3,.5,1/3,0,2/3,0,2/3,.5,2/3,0,1,0,1,.5,1,1,2/3,1,2/3,.5,1,.5,0,.5,0,0,1/3,0,1/3,.5,0,.5,1/3,.5,1/3,1,0,1,1/3,1,1/3,.5,2/3,.5,2/3,1],indices:[0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23]}:"halfequirectangular"==c.m?TT(!0):TT(),c.aa=c.g.createBuffer(),c.g.bindBuffer(c.g.ARRAY_BUFFER,c.aa),c.g.bufferData(c.g.ARRAY_BUFFER,new Float32Array(c.L.hk),c.g.STATIC_DRAW),c.oa=c.g.createBuffer(),c.g.bindBuffer(c.g.ARRAY_BUFFER,c.oa),c.g.bufferData(c.g.ARRAY_BUFFER,new Float32Array(c.L.dk),c.g.STATIC_DRAW),c.ea=c.g.createBuffer(),c.g.bindBuffer(c.g.ELEMENT_ARRAY_BUFFER,c.ea),c.g.bufferData(c.g.ELEMENT_ARRAY_BUFFER,new Uint16Array(c.L.indices),c.g.STATIC_DRAW),(d=a).Z=d.g.createTexture(),d.g.bindTexture(d.g.TEXTURE_2D,d.Z),d.g.texParameteri(d.g.TEXTURE_2D,d.g.TEXTURE_WRAP_S,d.g.CLAMP_TO_EDGE),d.g.texParameteri(d.g.TEXTURE_2D,d.g.TEXTURE_WRAP_T,d.g.CLAMP_TO_EDGE),d.g.texParameteri(d.g.TEXTURE_2D,d.g.TEXTURE_MIN_FILTER,d.g.NEAREST),d.g.texParameteri(d.g.TEXTURE_2D,d.g.TEXTURE_MAG_FILTER,d.g.NEAREST),sr(a.i,HTMLMediaElement.HAVE_CURRENT_DATA,a.A,function(){if(a.i.readyState>=HTMLMediaElement.HAVE_ENOUGH_DATA&&TA(a),"requestVideoFrameCallback"in a.i){var e,t=function(){-1!=a.G&&(TA(a),-1!=a.G&&(a.G=a.i.requestVideoFrameCallback(t)))};a.G=a.i.requestVideoFrameCallback(t)}else a.A.o(a.i,"canplaythrough",function(){TA(a)}),a.A.o(a.i,"playing",function(){if(a.C&&a.C.stop(),!e){var t=a.sa.Ob();t=E(t);for(var n=t.next();!n.done;n=t.next())(n=n.value.frameRate)&&(!e||e<n)&&(e=n)}e||(e=60),TA(a),a.C=new iA(function(){TA(a)}).Ka().xa(1/e)}),a.A.o(a.i,"pause",function(){a.C&&a.C.stop(),a.C=null,TA(a)}),a.A.o(a.i,"seeked",function(){TA(a)}),a.A.o(document,"visibilitychange",function(){TA(a)})})}function TS(e,t){switch(t){case e.g.VERTEX_SHADER:var n="cubemap"==e.m?"attribute vec4 aVertexPosition;\nattribute vec2 aTextureCoord;\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nvarying highp vec2 vTextureCoord;\nvarying highp vec3 vLighting;\nvoid main(void) {\n  gl_Position = uProjectionMatrix * uModelViewMatrix * aVertexPosition;\n  vTextureCoord = aTextureCoord;\n}":"attribute vec4 a_vPosition;\n// Per-vertex texture coordinate info\nattribute vec2 a_TexCoordinate;\nuniform mat4 u_VPMatrix;\n// Passed into the fragment shader.\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nvoid main()\n{\n gl_Position = u_VPMatrix * a_vPosition;\n // Pass through texture coord\n v_TexCoordinate = a_TexCoordinate;\n pass_position = a_vPosition.xyz;\n}";break;case e.g.FRAGMENT_SHADER:n="cubemap"==e.m?"varying highp vec2 vTextureCoord;\nuniform sampler2D uSampler;
1\nvoid main(void) {\n  highp vec4 texelColor = texture2D(uSampler, vTextureCoord);\n  gl_FragColor = vec4(texelColor.rgb , texelColor.a);\n}":"precision highp float;\n#define PI 3.141592653589793238462643383279\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nuniform sampler2D uSampler;\nvoid main(void) {\nhighp float xValue =\n      (PI + atan(pass_position.z, pass_position.x)) / (2.0 * PI);\n vec2 tc = vec2(xValue, v_TexCoordinate.t);\n tc = vec2(tc.x , tc.y);\nhighp vec4 texelColor =\n      texture2D(uSampler, tc);\n  gl_FragColor = vec4(texelColor.rgb, texelColor.a);\n}";break;default:return null}return t=e.g.createShader(t),e.g.shaderSource(t,n),e.g.compileShader(t),t}function TA(e,t){t=void 0===t||t;var n=e.sa.Ac()==c5;!(!e.i||e.i.readyState<2||!n&&0==e.i.playbackRate)&&(Tg(e.J,e.j*Math.PI/180,1.5625),"cubemap"==e.m?Tg(e.J,e.j*Math.PI/180,2.5):Tg(e.J,e.j*Math.PI/180,1.5625),e.g.useProgram(e.l),e.g.clear(e.g.COLOR_BUFFER_BIT),TE(e),t&&(e.g.activeTexture(e.g.TEXTURE0),e.g.bindTexture(e.g.TEXTURE_2D,e.Z),e.g.pixelStorei(e.g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),e.g.texImage2D(e.g.TEXTURE_2D,0,e.g.RGBA,e.g.RGBA,e.g.UNSIGNED_BYTE,e.i)),("equirectangular"==e.m||"halfequirectangular"==e.m)&&(Tm(e.O,e.F,e.W),Tm(e.O,e.J,e.O)),e.g.bindBuffer(e.g.ARRAY_BUFFER,e.aa),e.g.vertexAttribPointer(e.T,3,e.g.FLOAT,!1,0,0),e.g.enableVertexAttribArray(e.T),e.g.bindBuffer(e.g.ARRAY_BUFFER,e.oa),e.g.vertexAttribPointer(e.R,2,e.g.FLOAT,!1,0,0),e.g.enableVertexAttribArray(e.R),e.g.bindBuffer(e.g.ELEMENT_ARRAY_BUFFER,e.ea),"cubemap"==e.m?(e.g.uniformMatrix4fv(e.g.getUniformLocation(e.l,"uProjectionMatrix"),!1,e.J),e.g.uniformMatrix4fv(e.g.getUniformLocation(e.l,"uModelViewMatrix"),!1,e.O)):e.g.uniformMatrix4fv(e.g.getUniformLocation(e.l,"u_VPMatrix"),!1,e.O),e.g.uniform1i(e.g.getUniformLocation(e.l,"uSampler"),0),e.P&&e.g.viewport(0,0,e.u.width/2,e.u.height),e.g.drawElements(e.g.TRIANGLES,e.L.indices.length,e.g.UNSIGNED_SHORT,0),e.P&&(e.g.viewport(e.u.width/2,0,e.u.width/2,e.u.height),e.g.drawElements(e.g.TRIANGLES,e.L.indices.length,e.g.UNSIGNED_SHORT,0)))}function TE(e){var t=e.i.videoWidth;t||(t=e.u.scrollWidth);var n=e.i.videoHeight;if(n||(n=e.u.scrollHeight),e.ya!==t||e.ua!==n){e.u.width=t,e.u.height=n,e.ya=t,e.ua=n;var i=t/n,r=e.J,a=-i,o=1/(i-a);r[0]=0*o,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=0,r[6]=0,r[7]=0,r[8]=(i+a)*o,r[9]=0,r[10]=-1,r[11]=-1,r[12]=0,r[13]=0,r[14]=-0,r[15]=0,e.J=r,e.g.viewport(0,0,t,n)}}function Tx(e,t,n,i){var r=1/0,a=90*Math.PI/180;"halfequirectangular"==e.m&&(r=90*Math.PI/180,a/=2);var o="cubemap"==e.m?e.O:e.F;if(e.H+=t,e.I+=n,e.H<r&&e.H>-r){r=Math.sin(t),t=Math.cos(t);var s=o[0],u=o[1],l=o[2],c=o[3],d=o[8],h=o[9],p=o[10],f=o[11];o!=o&&(o[4]=o[4],o[5]=o[5],o[6]=o[6],o[7]=o[7],o[12]=o[12],o[13]=o[13],o[14]=o[14],o[15]=o[15]),o[0]=s*t-d*r,o[1]=u*t-h*r,o[2]=l*t-p*r,o[3]=c*t-f*r,o[8]=s*r+d*t,o[9]=u*r+h*t,o[10]=l*r+p*t,o[11]=c*r+f*t}else e.H-=t;e.I<a&&e.I>-a?(a=Tf(),r=Tf(),n=Math.sin(t=-1*n),t=Math.cos(t),s=r[4],u=r[5],l=r[6],c=r[7],d=r[8],h=r[9],p=r[10],f=r[11],r!==a&&(a[0]=r[0],a[1]=r[1],a[2]=r[2],a[3]=r[3],a[12]=r[12],a[13]=r[13],a[14]=r[14],a[15]=r[15]),a[4]=s*t+d*n,a[5]=u*t+h*n,a[6]=l*t+p*n,a[7]=c*t+f*n,a[8]=d*t-s*n,a[9]=h*t-u*n,a[10]=p*t-l*n,a[11]=f*t-c*n,Tm(o,a,o)):e.I-=n,n=Tf(),a=Tf(),r=Math.sin(i),i=Math.cos(i),t=a[0],s=a[1],u=a[2],l=a[3],c=a[4],d=a[5],h=a[6],p=a[7],a!==n&&(n[8]=a[8],n[9]=a[9],n[10]=a[10],n[11]=a[11],n[12]=a[12],n[13]=a[13],n[14]=a[14],n[15]=a[15]),n[0]=t*i+c*r,n[1]=s*i+d*r,n[2]=u*i+h*r,n[3]=l*i+p*r,n[4]=c*i-t*r,n[5]=d*i-s*r,n[6]=h*i-u*r,n[7]=p*i-l*r,Tm(o,n,o),TA(e,!1)}function Tk(e,t){var n,i,r,a,o,s;(void 0===t||t)&&(Tv(e.h,e.F),e.V=0,e.D=Tb(),e.D[0]=(e.h[0]-e.M[0])/20,e.D[1]=(e.h[1]-e.M[1])/20,e.D[2]=(e.h[2]-e.M[2])/20,e.D[3]=(e.h[3]-e.M[3])/20),e.h[0]-=e.D[0],e.h[1]-=e.D[1],e.h[2]-=e.D[2],e.h[3]-=e.D[3],t=Tf(),n=e.h,r=(i=e.h)[0],a=i[1],(s=r*r+a*a+(o=i[2])*o+(i=i[3])*i)>0&&(s=1/Math.sqrt(s)),n[0]=r*s,n[1]=a*s,n[2]=o*s,n[3]=i*s,Ty(t,e.h),e.F=t,e.K&&(e.K.stop(),e.K=null),e.V<20?e.K=new iA(function(){Tk(e,!1),e.H=0,e.I=0,e.V++,TA(e,!1)}).Y(.025):(Ty(t,e.M),e.F=t)}
1function TI(e,t,n,i,r,a){ec.call(this);var o=this;this.i=e,this.j=t,this.G=n,this.L=i,this.F=r,this.H=a,this.u=new tI,this.h=new tI,this.A=TL(this.j),this.g=null,this.m=!1,this.K=this.J=this.I=this.D=this.C=0,this.l=null,this.u.o(i,"loading",function(){o.g&&Tk(o.g),TC(o)}),this.u.o(i,"spatialvideoinfo",function(e){switch((e=e.detail).projection){case"rect":default:o.l=null;break;case"equi":o.l="equirectangular";break;case"hequ":switch(e.hfov){case 360:o.l="equirectangular";break;case 180:o.l="halfequirectangular";break;default:null==e.hfov?o.l="halfequirectangular":o.l=null}break;case"fish":o.l="halfequirectangular"}TC(o)}),this.u.o(i,"nospatialvideoinfo",function(){o.l=null,TC(o)}),this.u.o(i,"unloading",function(){o.l=null,TC(o)}),this.u.o(this.H,"caststatuschanged",function(){TC(o)}),TC(this)}function TC(e){var t=e.H.F.Pa();(e.F.displayInVrMode||e.l)&&!t?(e.j||(e.j=document.createElement("canvas"),e.j.classList.add("shaka-vr-canvas-container"),e.G.parentElement.insertBefore(e.j,e.G.nextElementSibling),e.A=TL(e.j)),t=e.l||e.F.defaultVrProjectionMode,e.g)?e.g.m!=t&&(e.h.Sa(),e.g.release(),TM(e,t)):(e.j.style.display="",TM(e,t),e.dispatchEvent(new ee("vrstatuschanged",(new Map).set("newStatus",e.Zb())))):e.j&&e.g&&(e.j.style.display="none",e.h.Sa(),e.g.release(),e.g=null,e.dispatchEvent(new ee("vrstatuschanged",(new Map).set("newStatus",e.Zb()))))}function TM(t,n){t.A&&t.j&&(t.g=new Tw(t.G,t.L,t.j,t.A,n),function(t){t.h.o(t.i,"mousedown",function(e){if(!t.m){var n=e.clientX;e=e.clientY,t.m=!0,t.C=n,t.D=e}}),navigator.maxTouchPoints>0&&t.h.o(t.i,"touchstart",function(e){if(!t.m){var n=e.touches[0].clientX;e=e.touches[0].clientY,t.m=!0,t.C=n,t.D=e}}),t.h.o(t.i,"wheel",function(e){if(!t.m){var n=t.g,i=e.deltaY;i/=50,n.j>=20&&n.j<=100&&(n.j+=i),n.j<20?n.j=20:n.j>100&&(n.j=100),TA(n,!1),e.preventDefault(),e.stopPropagation()}}),t.h.o(t.i,"mousemove",function(e){t.m&&TP(t,e.clientX,e.clientY)}),navigator.maxTouchPoints>0&&t.h.o(t.i,"touchmove",function(e){t.m&&TP(t,e.touches[0].clientX,e.touches[0].clientY),e.preventDefault()}),t.h.o(t.i,"mouseleave",function(){t.m=!1}),t.h.o(t.i,"mouseup",function(){t.m=!1}),navigator.maxTouchPoints>0&&t.h.o(t.i,"touchend",function(){t.m=!1});var n=!1;if(e.DeviceOrientationEvent)if("function"==typeof DeviceMotionEvent.requestPermission){var i=function(){DeviceMotionEvent.requestPermission().then(function(e){"granted"!==e||n||(n=!0,TR(t))})};DeviceMotionEvent.requestPermission().then(function(e){t.h.Ea(t.i,"click",i),t.h.Ea(t.i,"mouseup",i),navigator.maxTouchPoints>0&&t.h.Ea(t.i,"touchend",i),"granted"!==e?(t.h.qa(t.i,"click",i),t.h.qa(t.i,"mouseup",i),navigator.maxTouchPoints>0&&t.h.qa(t.i,"touchend",i)):(n=!0,TR(t))}).catch(function(){t.h.Ea(t.i,"click",i),t.h.Ea(t.i,"mouseup",i),navigator.maxTouchPoints>0&&t.h.Ea(t.i,"touchend",i),t.h.qa(t.i,"click",i),t.h.qa(t.i,"mouseup",i),navigator.maxTouchPoints>0&&t.h.qa(t.i,"touchend",i)})}else n=!0,TR(t)}(t))}function TL(t){if(!t||!e.WebGLRenderingContext)return null;for(var n=E(["webgl2","webgl"]),i=n.next();!i.done;i=n.next())if(i=t.getContext(i.value))return i;return null}function TR(t){t.h.o(e,"deviceorientation",function(e){if(t.g){var n=(e.alpha||0)-t.I,i=(e.beta||0)-t.J,r=(e.gamma||0)-t.K;(Math.abs(n)>10||Math.abs(i)>10||Math.abs(r)>5)&&(i=r=n=0),t.I=e.alpha||0,t.J=e.beta||0,t.K=e.gamma||0,90==(e=screen.orientation.angle)||-90==e?Tx(t.g,-(n*TD*1),-(r*TD*1),0):Tx(t.g,-(n*TD*1),i*TD,0)}})}function TP(e,t,n){var i=-.6*Math.PI/180;Tx(e.g,(t-e.C)*i,-((n-e.D)*1)*i,0),e.C=t,e.D=n}S(b1,bG),b1.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var e=this.ad.isPaused();else e=(e=this.controls).C.paused&&!e.V;return e},b1.prototype.isEnded=function(){return!(this.ad&&this.ad.isLinear())&&(!this.player||this.player.isEnded())},b1.prototype.g=function(){this.isEnded()&&this.video.duration?this.h.use("M480-80q-75 0-140.5-28.5t-114-77q-48.5-48.5-77-114T120-440q0-17 11.5-28.5T160-480q17 0 28.5 11.5T200-440q0 117 81.5 198.5T480-160q117 0 198.5-81.5T760-440q0-117-81.5-198.5T480-720h-6l34 34q12 12 11.5 28T508-630q-12 12-28.5 12.5T451-629L348-732q-12-12-12-28t12-28l103-103q12-12 28.5-11.5T508-890q11 12 11.5 28T508-834l-34 34h6q75 0 140.5 28.5t114 77q48.5 48.5 77 114T840-440q0 75-28.5 140.5t-77 114q-48.5 48.5-114 77T480-80Z"):this.h.use(this.isPaused()?"M320-273v-414q0-17 12-28.5t28-11.5q5 0 10.5 1.5T381-721l326 207q9 6 13.5 15t4.5 19q0 10-4.5 19T707-446L381-239q-5 3-10.5 4.5T360-233q-16 0-28-11.5T320-273Z":"M640-200q-33 0-56.5-23.5T560-280v-400q0-33 23.5-56.5T640-760q33 0 56.5 23.5T720-680v400q0 33-23.5 56.5T640-200Zm-320 0q-33 0-56.5-23.5T240-280v
1-400q0-33 23.5-56.5T320-760q33 0 56.5 23.5T400-680v400q0 33-23.5 56.5T320-200Z")},$("shaka.ui.PlayButton",b1),S(b5,b1),b5.prototype.g=function(){this.isEnded()&&this.video.duration?this.button.setAttribute("icon","replay"):this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")},$("shaka.ui.BigPlayButton",b5),S(b3,bG),$("shaka.ui.HiddenSeekButton",b3),S(b4,b3),$("shaka.ui.HiddenFastForwardButton",b4),S(b8,b3),$("shaka.ui.HiddenRewindButton",b8),S(b6,bG),(p=b6.prototype).release=function(){this.G&&(this.G.stop(),this.G=null),bG.prototype.release.call(this)},p.setRange=function(e,t){this.bar.min=e,this.bar.max=t},p.onChangeStart=function(){},p.onChange=function(){},p.onChangeEnd=function(){},p.changeTo=function(e){this.i||(this.i=!0,this.onChangeStart());var t=parseFloat(this.bar.min),n=parseFloat(this.bar.max);this.bar.value=e>n?n:e<t?t:e,this.onChange(),this.G.Y(.5)},p.getValue=function(){return parseFloat(this.bar.value)},p.setValue=function(e){this.i||(this.bar.value=e)},$("shaka.ui.RangeElement",b6),b6.prototype.setValue=b6.prototype.setValue,b6.prototype.getValue=b6.prototype.getValue,b6.prototype.changeTo=b6.prototype.changeTo,b6.prototype.onChangeEnd=b6.prototype.onChangeEnd,b6.prototype.onChange=b6.prototype.onChange,b6.prototype.onChangeStart=b6.prototype.onChangeStart,b6.prototype.setRange=b6.prototype.setRange,S(Te,b6),(p=Te.prototype).release=function(){this.C&&(this.C.stop(),this.C=null,this.D.stop(),this.D=null),b6.prototype.release.call(this)},p.onChangeStart=function(){this.M=!this.video.paused,this.controls.li(!0),this.video.pause(),this.A.stop(),this.J=!0},p.onChange=function(){if(this.video.duration)if(this.update(),this.C.Y(.125),this.player.wh().length&&!this.controls.Nc()){var e=parseFloat(this.bar.min),t=parseFloat(this.bar.max),n=this.bar.getBoundingClientRect(),i=Math.round(this.getValue());To(this,(i-e)/((t-e)/n.width),i)}else Ts(this)},p.onChangeEnd=function(){this.C.Ka(),this.controls.li(!1),this.M&&this.video.play(),this.J&&(this.J=!1,this.A.stop(),this.A.Y(.25))},p.isShowing=function(){return!this.container.classList.contains("shaka-hidden")},p.update=function(){var e=this.I.seekBarColors,t=this.getValue(),n=this.video.buffered.length,i=n?this.video.buffered.start(0):0,r=n?this.video.buffered.end(n-1):0,a=(n=this.player.wa()).end-n.start;this.setRange(n.start,n.end),Ti(this)?(bY(this.container,!0),i=(Math.max(i,n.start)-n.start)/a||0,r=(Math.min(r,n.end)-n.start)/a||0,t=(Math.min(Math.max(t,n.start),n.end)-n.start)/a||0,this.container.style.background="linear-gradient("+["to right",(this.I.showUnbufferedStart?e.base:e.played)+" "+100*i+"%",e.played+" "+100*i+"%",e.played+" "+100*t+"%",e.buffered+" "+100*t+"%",e.buffered+" "+100*r+"%",e.base+" "+100*r+"%"].join()+")"):bY(this.container,!1)},$("shaka.ui.SeekBar",Te),Tl.prototype.create=function(e,t){return new Te(e,t)},Te.Factory=Tl,S(Tc,bG),Tc.prototype.release=function(){this.i.stop(),this.i=null,bG.prototype.release.call(this)},$("shaka.ui.SkipAdButton",Tc),Tw.prototype.release=function(){-1!=this.G&&(this.i.cancelVideoFrameCallback(this.G),this.G=-1),this.A&&(this.A.release(),this.A=null),this.C&&(this.C.stop(),this.C=null),this.K&&(this.K.stop(),this.K=null)},Tw.prototype.ae=function(){(this.P=!this.P)||this.g.viewport(0,0,this.u.width,this.u.height),TA(this,!1)},S(TI,ec),(p=TI.prototype).release=function(){this.u&&(this.u.release(),this.u=null),this.h&&(this.h.release(),this.h=null),this.g&&(this.g.release(),this.g=null),ec.prototype.release.call(this)},p.configure=function(e){this.F=e,TC(this)},p.Pg=function(){return this.j?!!this.A:!!TL(document.createElement("canvas"))},p.Zb=function(){return!!this.g},p.ae=function(){this.g?this.g.ae():ea("Not playing VR content")},p.Eh=function(e){this.g?Tx(this.g,e*TD,0,0):ea("Not playing VR content")},p.Ch=function(e){this.g?Tx(this.g,0,e*TD,0):ea("Not playing VR content")},p.Dh=function(e){this.g?Tx(this.g,0,0,e*TD):ea("Not playing VR content")};var TD=Math.PI/180;function TN(t,n,i,r,a){ec.call(this);var o,s,u=this;this.aa=!0,this.g=a,this.F=new d9(i,t,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible),this.ua=!0,this.C=this.F.Wc(),this.u=i,this.m=this.F.Yb(),this.ea=t,this.l=n,this.Pb=r,this.sa=this.m.vf(),this.A=this.j=null,this.V=!1,this.K=[],this.$a=[],this.Na=!1,this.L=new iA(function(){u.l.classList.add("no-cursor"),u.Na=!1,TH(u)}),this.oa=new iA(function(){u.i.removeAttribute("shown"),TY(u),TG(u),u.Z&&u.Z.Ri(),u.P.Y(u.g.closeMenusDelay)}),this.P=new iA(function(){for(var e=E(u.K),t=e.next();!t.done;t=e.next())bY(t.value,!1);u.g.enableTooltips&&u.H.classList.add("shaka-tooltips-on")}),this.Fa=new iA(function(){u.Ca()&&TJ(u)}),this.R=null,this.J=[],this.ya=((o=new tv("en")).Xa("ar",new Map([["AD_DURATION","مدة الإعلان"],["AD_PROGRESS","الإعلان [AD_ON] من [NUM_ADS]"],["AD_STATISTICS","إحصاءات الإعلانات"],["AD_TIME","الإعلان: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","تلقائي"],["BACK","رجوع"],["CAPTIONS","الترجمة والشرح"],["CAST","إرØ
1³Ø§Ù„..."],["CHAPTERS","الفصول"],["DOWNLOAD_VIDEO_FRAME","حفظ إطار الفيديو"],["ENTER_LOOP_MODE","تكرار الفيديو الحالي"],["ENTER_PICTURE_IN_PICTURE",'الدخول في وضع "نافذة ضمن نافذة"'],["EXIT_FULL_SCREEN","إنهاء وضع ملء الشاشة"],["EXIT_LOOP_MODE","إيقاف تكرار الفيديو الحالي"],["EXIT_PICTURE_IN_PICTURE",'الخروج من وضع "نافذة ضمن نافذة"'],["FAST_FORWARD","تقديم سريع"],["FULL_SCREEN","ملء الشاشة"],["LANGUAGE","اللغة"],["LIVE","مباشر"],["LOOP","تكرار"],["MORE_SETTINGS","مزيد من الإعدادات"],["MULTIPLE_LANGUAGES","لغات متعددة"],["MUTE","كتم الصوت"],["NOT_APPLICABLE","غير سارٍ"],["OFF","إيقاف"],["ON","تشغيل"],["PAUSE","إيقاف مؤقت"],["PICTURE_IN_PICTURE","نافذة ضمن النافذة"],["PLAY","التشغيل"],["PLAYBACK_RATE","سرعة التشغيل"],["QUALITY","الجودة"],["RECENTER_VR","إعادة التوسيط"],["REPLAY","إعادة التشغيل"],["RESOLUTION","درجة الدقة"],["REWIND","ترجيع"],["SEEK","البحث بالتمرير"],["SKIP_AD","تخطّي الإعلان"],["SKIP_TO_LIVE","الانتقال إلى بث مباشر"],["STATISTICS","الإحصاءات"],["SUBTITLE_FORCED","عرض إجباري"],["SURROUND","صوت محيطي"],["TOGGLE_STEREOSCOPIC","إيقاف العرض المجسّم أو تفعيله"],["UNDETERMINED_LANGUAGE","غير محدد"],["UNMUTE","إعادة الصوت"],["UNRECOGNIZED_LANGUAGE","غير معروف"],["VOLUME","مستوى الصوت"]])),o.Xa("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\xa0[AD_ON] von\xa0[NUM_ADS]"],["AD_STATISTICS","Anzeigenstatistiken"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\xfcck"],["CAPTIONS","Untertitel"],["CAST","Streamen..."],["CHAPTERS","Kapitel"],["DOWNLOAD_VIDEO_FRAME","Videoframe speichern"],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild im Bild aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild im Bild beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Sc
1hleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],["MUTE","Stummschalten"],["NOT_APPLICABLE","Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["QUALITY","Qualit\xe4t"],["RECENTER_VR","Zentrieren"],["REPLAY","Noch einmal wiedergeben"],["RESOLUTION","Aufl\xf6sung"],["REWIND","Zur\xfcckspulen"],["SEEK","Suche"],["SKIP_AD","\xdcberspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["STATISTICS","Statistiken"],["SUBTITLE_FORCED","Erzwungen"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Einstellung „stereoskopisch“ ein‑/ausschalten"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautst\xe4rke"]])),o.Xa("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_STATISTICS","Ad statistics"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["CHAPTERS","Chapters"],["DOWNLOAD_VIDEO_FRAME","Save video frame"],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["RECENTER_VR","Recenter"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_NEXT","Next"],["SKIP_PREVIOUS","Previous"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]])),o.Xa("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_STATISTICS","Ad statistics"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["CHAPTERS","Chapters"],["DOWNLOAD_VIDEO_FRAME","Save video frame"],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["RECENTER_VR","Recentre"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]])),o.Xa("es",new Map([["AD_DURATION","Duraci\xf3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\xedsticas del anuncio"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\xe1tico"],["BACK","Atr\xe1s"],["CAPTIONS","Subt\xedtulos"],["CAST","Enviar..."],["CHAPTERS","Cap\xedtulos"],["DOWNLOAD_VIDEO_FRAME","Guardar fotograma"],["ENTER_LOOP_MODE","Reproducir en bucle el v\xeddeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el v\xeddeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar r\xe1pidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS","M\xe1s ajustes"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\xf3n"],["QUALITY","Calidad"],["RECENTER_VR","Volver a centrar"],["REPLAY","Volver a reproducir"],["RESOLUTION","Resoluci\xf3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_NEXT","Siguiente"],["SKIP_PREVIOUS","Anterior"],["SKIP_TO_LIVE","Ir al v\xeddeo en directo"],["STATISTICS","Estad\xedsticas"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["TOGGLE_STEREOSCOPIC","Activar/Desactivar estereosc\xf3pica"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]])),o.Xa("es-419",new Map([["AD_DURATION","Duraci\xf3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\xedsticas de anuncios"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\xe1tico"],["BACK","Atr\xe1s"],["CAPTIONS","Subt\xedtulos"],["CAST","Transmitir..."],["CHAPTERS","Cap\xedtulos"],["DOWNLOAD_VIDEO_FRAME","Guardar fotograma"],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],["EXIT_LOOP_MODE","Detener la repetici\xf3n indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS","M\xe1s opciones de configuraci\xf3n"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Detener"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\xf3n"],["QUALITY","Calidad"],["RECENTER_VR","Volver a centrar"],["REPLAY","Volver a reproducir"],["RESOLUTION","Resoluci\xf3n"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\xf3n en vivo"],["STATISTICS","Estad\xedsticas"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Sonido envolvente"],["TOGGLE_STEREOSCOPIC","Activar o desactivar el modo estereosc\xf3pico"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]])),o.Xa("fr",new Map([["AD_DURATION","Dur\xe9e de l'annonce"],["AD_PROGRESS","Annonce\xa0[AD_ON] sur\xa0[NUM_ADS]"],["AD_STATISTICS","Statistiques sur les annonces"],["AD_TIME","Annonce\xa0: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster…"],["CHAPTERS","Chapitres"],["DOWNLOAD_VIDEO_FRAME","T\xe9l\xe9charger l'image de la vid\xe9o"],["ENTER_LOOP_MODE","Lire en boucle la vid\xe9o en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein \xe9cran"],["EXIT_LOOP_MODE","Arr\xeater la lecture en boucle de la vid\xe9o en cours"],["EXIT_PICTURE_IN_PICTURE","Quitter le mode\xa0PIP (Picture-in-picture)"],["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein \xe9cran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","R\xe9p\xe9ter"],["MORE_SETTINGS","Plus de param\xe8tres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","D\xe9sactiv\xe9e"],["ON","Activ\xe9e"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE","Vitesse de lecture"],["QUALITY","Qualit\xe9"],["RECENTER_VR","Recentrer"],["REPLAY","Revoir"],["RESOLUTION","R\xe9solution"],["REWIND","Retour arri\xe8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_NEXT","Suivante"],["SKIP_PREVIOUS","Pr\xe9c\xe9dente"],["SKIP_TO_LIVE","Acc\xe9der \xe0 la partie la plus r\xe9cente du direct"],["STATISTICS","Statistiques"],["SUBTITLE_FORCED","Forc\xe9"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Activer/D\xe9sactiver le mode st\xe9r\xe9oscopique"],["UNDETERMINED_LANGUAGE","Langue ind\xe9termin\xe9e"],["UNMUTE","R\xe9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]])),o.Xa("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_STATISTICS","Statistiche sugli annunci"],["AD_TIME","Annuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS","Sottotitoli"],["CAST","Trasmetti..."],["CHAPTERS","Capitoli"],["DOWNLOAD_VIDEO_FRAME","Salva fotogramma"],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],["MULTIPLE_LANGUAGES","Pi\xf9 lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocit\xe0 di riproduzione"],["QUALITY","Qualit\xe0"],["RECENTER_VR","Ricentra"],["REPLAY","Riproduci di nuovo"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["STATISTICS","Statistiche"],["SUBTITLE_FORCED","Forzata"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Pulsante di attivazione/disattivazione stereoscopico"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]])),o.Xa("ja",new Map([["AD_DURATION","広告再生時間"],["AD_PROGRESS","[AD_ON] 番目の広告(全 [NUM_ADS] 個)"],["AD_STATISTICS","広告の統計情報"],["AD_TIME","広告: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","自動"],["BACK","戻る"],["CAPTIONS","字幕"],["CAST","キャスト..."],["CHAPTERS","ç« "],["DOWNLOAD_VIDEO_FRAME","動画フレームを保存"],["ENTER_LOOP_MODE","現在の動画をループ再生"],["ENTER_PICTURE_IN_PICTURE","ピクチャー イン ピクチャーを開始"],["EXIT_FULL_SCREEN","全画面表示を終了"],["EXIT_LOOP_MODE","現在の動画のループ再生を停止"],["EXIT_PICTURE_IN_PICTURE","ピクチャー イン ピクチャーを終了"],["FAST_FORWARD","早送り"],["FULL_SCREEN","全画面表示"],["LANGUAGE","言語"],["LIVE","ライブ"],["LOOP","ループ"],["MORE_SETTINGS","詳細設定"],["MULTIPLE_LANGUAGES","多言語"],["MUTE","ミュート"],["NOT_APPLICABLE","該当なし"],["OFF","オフ"],["ON","オン"],["PAUSE","一時停止"],["PICTURE_IN_PICTURE","ピクチャー イン ピクチャー"],["PLAY","再生"],["PLAYBACK_RATE","再生速度"],["QUALITY","品質"],["RECENTER_VR","中心を再設定"],["REPLAY","もう一度再生"],["RESOLUTION","解像度"],["REWIND","巻き戻し"],["SEEK","シーク再生"],["SKIP_AD","広告をスキップ"],["SKIP_TO_LIVE","ライブ配信までスキップ"],["STATISTICS","統計情報"],["SUBTITLE_FORCED","強制"],["SURROUND","サラウンド"],["TOGGLE_STEREOSCOPIC","立体画像を切り替える"],["UNDETERMINED_LANGUAGE","不明"],["UNMUTE","ミュートを解除"],["UNRECOGNIZED_LANGUAGE","不明"],["VOLUME","音量"]])),o.Xa("ko",new Map([["AD_DURATION","광고 기간"],["AD_PROGRESS","광고 [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","광고 통계"],["AD_TIME","광고: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","자동"],["BACK","뒤로"],["CAPTIONS","자막"],["CAST","전송..."],["CHAPTERS","장"],["DOWNLOAD_VIDEO_FRAME","동영상 프레임 저장"],["ENTER_LOOP_MODE","현재 동영상 반복 재생"],["ENTER_PICTURE_IN_PICTURE","PIP 모드 시작"],["EXIT_FULL_SCREEN","전체화면 닫기"],["EXIT_LOOP_MODE","현재 동영상 반복 재생 중지"],["EXIT_PICTURE_IN_PICTURE","PIP 모드 종료"],["FAST_FORWARD","빨리 감기"],["FULL_SCREEN","전체화면"],["LANGUAGE","언어"],["LIVE","실시간"],["LOOP","반복 재생"],["MORE_SETTINGS","설정 더보기"],["MULTIPLE_LANGUAGES","여러 언어"],["MUTE","음소거"],["NOT_APPLICABLE","해당 사항 없음"],["OFF","사용 안함"],["ON","사용"],["PAUSE","일시중지"],["PICTURE_IN_PICTURE","PIP 모드"],["PLAY","재생"],["PLAYBACK_RATE","재생 속ë
1„"],["QUALITY","품질"],["RECENTER_VR","중심 재설정"],["REPLAY","다시보기"],["RESOLUTION","해상도"],["REWIND","되감기"],["SEEK","찾기"],["SKIP_AD","광고 건너뛰기"],["SKIP_TO_LIVE","라이브 동영상으로 건너뛰기"],["STATISTICS","통계"],["SUBTITLE_FORCED","강제"],["SURROUND","서라운드"],["TOGGLE_STEREOSCOPIC","입체 보기 전환"],["UNDETERMINED_LANGUAGE","미정"],["UNMUTE","음소거 해제"],["UNRECOGNIZED_LANGUAGE","알 수 없음"],["VOLUME","볼륨"]])),o.Xa("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_STATISTICS","Advertentiestatistieken"],["AD_TIME","Advertentie: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["CHAPTERS","Hoofdstukken"],["DOWNLOAD_VIDEO_FRAME","Videoframe opslaan"],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN","Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Geluid uitzetten"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["QUALITY","Kwaliteit"],["RECENTER_VR","Opnieuw centreren"],["REPLAY","Opnieuw afspelen"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],["STATISTICS","Statistieken"],["SUBTITLE_FORCED","Afgedwongen"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Stereoscopisch aan-/uitzetten"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Geluid aanzetten"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]])),o.Xa("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\xa0[AD_ON] z\xa0[NUM_ADS]"],["AD_STATISTICS","Statystyki reklam"],["AD_TIME","Reklama: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesyłaj..."],["CHAPTERS","Rozdziały"],["DOWNLOAD_VIDEO_FRAME","Zapisz klatkę filmu"],["ENTER_LOOP_MODE","Odtwarzaj bieżący film w\xa0pętli"],["ENTER_PICTURE_IN_PICTURE","Włącz tryb obrazu w\xa0obrazie"],["EXIT_FULL_SCREEN","Zamknij pełny ekran"],["EXIT_LOOP_MODE","Wyłącz odtwarzanie bieżącego filmu w\xa0pętli"],["EXIT_PICTURE_IN_PICTURE","Wyłącz tryb obrazu w\xa0obrazie"],["FAST_FORWARD","Przewiń do przodu"],["FULL_SCREEN","Pełny ekran"],["LANGUAGE","Język"],["LIVE","Na żywo"],["LOOP","Odtwarzaj w\xa0pętli"],["MORE_SETTINGS","Więcej ustawień"],["MULTIPLE_LANGUAGES","Wiele język\xf3w"],["MUTE","Wycisz"],["NOT_APPLICABLE","Nie dotyczy"],["OFF","Wyłączone"],["ON","Włączone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w\xa0obrazie"],["PLAY","Odtw\xf3rz"],["PLAYBACK_RATE","Szybkość odtwarzania"],["QUALITY","Jakość"],["RECENTER_VR","Wyśrodkuj"],["REPLAY","Odtw\xf3rz ponownie"],["RESOLUTION","Rozdzielczość"],["REWIND","Przewiń do tyłu"],["SEEK","Szukaj"],["SKIP_AD","Pomiń reklamę"],["SKIP_NEXT","Dalej"],["SKIP_PREVIOUS","Poprzedni"],["SKIP_TO_LIVE","Przejdź do transmisji na żywo"],["STATISTICS","Statystyki"],["SUBTITLE_FORCED","Wymuszone"],["SURROUND","Przestrzenny"],["TOGGLE_STEREOSCOPIC","Przełącz tryb stereoskopowy"],["UNDETERMINED_LANGUAGE","Nie określono"],["UNMUTE","Wyłącz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","Głośność"]])),o.Xa("pt-BR",new Map([["AD_DURATION","Dura\xe7\xe3o do an\xfancio"],["AD_PROGRESS","An\xfancio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estat\xedsticas de an\xfancios"],["AD_TIME","An\xfancio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\xe1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["CHAPTERS","Cap\xedtulos"],["DOWNLOAD_VIDEO_FRAME","Salvar frame do v\xeddeo"],["ENTER_LOOP_MODE","Repetir o v\xeddeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE","Parar repeti\xe7\xe3o do v\xeddeo atual"],["EXIT_PICTURE_IN_PICTURE","Sair de picture-in-picture"],["FAST_FORWARD","Avan\xe7ar"],["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais defini\xe7\xf5es"],["MULTIPLE_LANGUAGES","V\xe1rios idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","N\xe3o relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodu\xe7\xe3o"],["QUALITY","Qualidade"],["RECENTER_VR","Centralizar"],["REPLAY","Repetir"],["RESOLUTION","Resolu\xe7\xe3o"],["REWIND","Voltar"],["SEEK","Procurar"],["SKIP_AD","Pular an\xfancio"],["SKIP_TO_LIVE","Pular para transmiss\xe3o ao vivo"],["STATISTICS","Estat\xedsticas"],["SUBTITLE_FORCED","Exibi\xe7\xe3o for\xe7ada"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Alternar imagem estereosc\xf3pica"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\xe3o reconhecido"],["VOLUME","Volume"]])),o.Xa("ru",new Map([["AD_DURATION","Продолжительность рекламы"],["AD_PROGRESS","Реклама [AD_ON] из [NUM_ADS]"],["AD_STATISTICS","Статистика объявлений"],["AD_TIME","Реклама: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Авто"],["BACK","Назад"],["CAPTIONS","Субтитры"],["CAST","Транслировать..."],["CHAPTERS","Эпизоды"],["DOWNLOAD_VIDEO_FRAME","Сохранить кадр видео"],["ENTER_LOOP_MODE","Зациклить текущее видео"],["ENTER_PICTURE_IN_PICTURE",'Перейти в режим "Картинка в картинке"'],["EXIT_FULL_SCREEN","Обычный режим"],["EXIT_LOOP_MODE","Отменить зацикливание текущего видео"],["EXIT_PICTURE_IN_PICTURE",'Выйти из режима "Картинка в картинке"'],["FAST_FORWARD","Перемотка вперед"],["FULL_SCREEN","Полноэкранный режим"],["LANGUAGE","Язык"],["LIVE","Прямой эфир"],["LOOP","Зациклить"],["MORE_SETTINGS","Дополнительные настройки"],["MULTIPLE_LANGUAGES","Несколько языков"],["MUTE","Отключить звук"],["NOT_APPLICABLE","Неприменимо"],["OFF","Выкл."],["ON","Вкл."],["PAUSE","Пауза"],["PICTURE_IN_PICTURE","Картинка в картинке"],["PLAY","Воспроизвести"],["PLAYBACK_RATE","Скорость воспроизведения"],["QUALITY","Качество"],["RECENTER_VR","Центрировать заново"],["REPLAY","Повторить"],["RESOLUTION","Разрешение"],["REWIND","Перемотать назад"],["SEEK","Перемотка"],["SKIP_AD","Пропустить"],["SKIP_TO_LIVE","Пропустить и перейти Ð
1º прямой трансляции"],["STATISTICS","Статистика"],["SUBTITLE_FORCED","Субтитры принудительно"],["SURROUND","Объемный звук"],["TOGGLE_STEREOSCOPIC","Включить или отключить стереоскопический режим"],["UNDETERMINED_LANGUAGE","Не указано"],["UNMUTE","Включить звук"],["UNRECOGNIZED_LANGUAGE","Не распознано"],["VOLUME","Громкость"]])),o.Xa("th",new Map([["AD_DURATION","ระยะเวลาโฆษณา"],["AD_PROGRESS","โฆษณา [AD_ON] จาก [NUM_ADS] รายการ"],["AD_STATISTICS","สถิติโฆษณา"],["AD_TIME","โฆษณา: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","อัตโนมัติ"],["BACK","กลับ"],["CAPTIONS","คำบรรยายแทนเสียง"],["CAST","แคสต์..."],["CHAPTERS","บท"],["DOWNLOAD_VIDEO_FRAME","บันทึกเฟรมวิดีโอ"],["ENTER_LOOP_MODE","วนซ้ำวิดีโอปัจจุบัน"],["ENTER_PICTURE_IN_PICTURE","เข้าสู่การแสดงภาพซ้อนภาพ"],["EXIT_FULL_SCREEN","ออกจากการแสดงแบบเต็มหน้าจอ"],["EXIT_LOOP_MODE","หยุดวนซ้ำวิดีโอปัจจุบัน"],["EXIT_PICTURE_IN_PICTURE","ออกจากการแสดงภาพซ้อนภาพ"],["FAST_FORWARD","กรอไปข้างหน้า"],["FULL_SCREEN","เต็มหน้าจอ"],["LANGUAGE","ภาษา"],["LIVE","สด"],["LOOP","ลูป"],["MORE_SETTINGS","การตั้งค่าเพิ่มเติม"],["MULTIPLE_LANGUAGES","หลายภาษา"],["MUTE","ปิดเสียง"],["NOT_APPLICABLE","ไม่เกี่ยวข้อง"],["OFF","ปิด"],["ON","เปิด"],["PAUSE","หยุดชั่วคราว"],["PICTURE_IN_PICTURE","การแสดงภาพซ้อนภาพ"],["PLAY","เล่น"],["PLAYBACK_RATE","ความเร็วในการเล่น"],["QUALITY","คุณภาพ"],["RECENTER_VR","จัดกึ่งกลางใหม่"],["REPLAY","เล่นซ้ำ"],["RESOLUTION","ความละเอียด"],["REWIND","กรอกลับ"],["SEEK","ค้นหา"],["SKIP_AD","ข้ามโฆษณา"],["SKIP_TO_LIVE","ข้ามไปที่การถ่ายทอดสด"],["STATISTICS","สถิติ"],["SUBTITLE_FORCED","บังคับ"],["SURROUND","เซอร์ราวด์"],["TOGGLE_STEREOSCOPIC","เปิด/ปิดฟีเจอร์สามมิติ"],["UNDETERMINED_LANGUAGE","ไม่กำหนด"],["UNMUTE","เปิดเสียง"],["UNRECOGNIZED_LANGUAGE","ที่ไม่รู้จัก"],["VOLUME","ระดับเสียง"]])),o.Xa("tr",new Map([["AD_DURATION","Reklam s\xfcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_STATISTICS","Reklam istatistikleri"],["AD_TIME","Reklam: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyazılar"],["CAST","Yayınla..."],["CHAPTERS","B\xf6l\xfcmler"],["DOWNLOAD_VIDEO_FRAME","Video karesini kaydet"],["ENTER_LOOP_MODE","Mevcut videoyu d\xf6ng\xfcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\xe7inde Pencere moduna gir"],["EXIT_FULL_SCREEN","Tam ekrandan \xe7ık"],["EXIT_LOOP_MODE","Mevcut videonun d\xf6ng\xfcs\xfcn\xfc durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere İ\xe7inde Pencereden \xc7ık"],["FAST_FORWARD","İleri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canlı"],["LOOP","D\xf6ng\xfc"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden \xe7ok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Ge\xe7erli değil"],["OFF","Kapalı"],["ON","A\xe7ık"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere İ\xe7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\xc7alma hızı"],["QUALITY","Kalite"],["RECENTER_VR","Ortala"],["REPLAY","Tekrar Oynat"],["RESOLUTION","\xc7\xf6z\xfcn\xfcrl\xfck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklamı Atla"],["SKIP_TO_LIVE","Canlı yayına atla"],["STATISTICS","İstatistikler"],["SUBTITLE_FORCED","Zorunlu"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Stereoskopik modu a\xe7/kapat"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\xe7"],["UNRECOGNIZED_LANGUAGE","Tanınmayan"],["VOLUME","Ses"]])),o.Xa("zh",new Map([["AD_DURATION","广告持续时间"],["AD_PROGRESS","广告 [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","广告统计信息"],["AD_TIME","广告:[AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","自动"],["BACK","返回"],["CAPTIONS","字幕"],["CAST","投放…"],["CHAPTERS","章节"],["DOWNLOAD_VIDEO_FRAME","保存视频帧"],["ENTER_LOOP_MODE","循环播放当前视频"],["ENTER_PICTURE_IN_PICTURE","进入“画中画”模式"],["EXIT_FULL_SCREEN","退出全屏模式"],["EXIT_LOOP_MODE","停止循环播放当前视频"],["EXIT_PICTURE_IN_PICTURE","退出“画中画”模式"],["FAST_FORWARD","快进"],["FULL_SCREEN","全屏"],["LANGUAGE","语言"],["LIVE","直播"],["LOOP","循环播放"],["MORE_SETTINGS","更多设置"],["MULTIPLE_LANGUAGES","多种语言"],["MUTE","静音"],["NOT_APPLICABLE","不适用"],["OFF","关闭"],["ON","开启"],["PAUSE","暂
1停"],["PICTURE_IN_PICTURE","画中画"],["PLAY","播放"],["PLAYBACK_RATE","播放速度"],["QUALITY","画质"],["RECENTER_VR","重新置中"],["REPLAY","重放"],["RESOLUTION","分辨率"],["REWIND","快退"],["SEEK","进度"],["SKIP_AD","跳过广告"],["SKIP_TO_LIVE","跳至当前直播"],["STATISTICS","统计信息"],["SUBTITLE_FORCED","已强制显示"],["SURROUND","环绕声"],["TOGGLE_STEREOSCOPIC","切换立体声"],["UNDETERMINED_LANGUAGE","未确定"],["UNMUTE","取消静音"],["UNRECOGNIZED_LANGUAGE","无法识别"],["VOLUME","音量"]])),o.Xa("zh-TW",new Map([["AD_DURATION","廣告長度"],["AD_PROGRESS","廣告 [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","廣告統計資料"],["AD_TIME","廣告:[AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","自動"],["BACK","返回"],["CAPTIONS","字幕"],["CAST","投放..."],["CHAPTERS","章節"],["DOWNLOAD_VIDEO_FRAME","儲存影片影格"],["ENTER_LOOP_MODE","循環播放目前的影片"],["ENTER_PICTURE_IN_PICTURE","進入子母畫面"],["EXIT_FULL_SCREEN","退出全螢幕模式"],["EXIT_LOOP_MODE","停止循環播放目前的影片"],["EXIT_PICTURE_IN_PICTURE","離開子母畫面"],["FAST_FORWARD","快轉"],["FULL_SCREEN","全螢幕"],["LANGUAGE","語言"],["LIVE","直播"],["LOOP","循環播放"],["MORE_SETTINGS","顯示更多設定"],["MULTIPLE_LANGUAGES","多種語言"],["MUTE","靜音"],["NOT_APPLICABLE","不適用"],["OFF","關閉"],["ON","開啟"],["PAUSE","暫停"],["PICTURE_IN_PICTURE","子母畫面"],["PLAY","播放"],["PLAYBACK_RATE","播放速度"],["QUALITY","音質"],["RECENTER_VR","重新置中"],["REPLAY","重播"],["RESOLUTION","解析度"],["REWIND","倒轉"],["SEEK","搜尋"],["SKIP_AD","略過廣告"],["SKIP_TO_LIVE","跳至当前直播"],["STATISTICS","統計資料"],["SUBTITLE_FORCED","強制顯示"],["SURROUND","環場音效"],["TOGGLE_STEREOSCOPIC","切換立體影像"],["UNDETERMINED_LANGUAGE","不明"],["UNMUTE","取消靜音"],["UNRECOGNIZED_LANGUAGE","無法辨識"],["VOLUME","音量"]])),o.Oi(navigator.languages||[]),o),this.h=new tI,this.D=null,this.configure(this.g),s=this,s.h.o(s.m,"buffering",function(){TX(s)}),TX(s),s.h.o(e,"keydown",function(t){var n,i,r;n=s,i=t,n.W.add(i.key),r=n.Nc(),"Tab"==i.key&&(n.i.classList.add("shaka-keyboard-navigation"),TH(n),n.h.o(e,"mousedown",function(){n.h.Ea(e,"mousedown")})),"Escape"==i.key&&n.P.Ka(),r&&n.W.has("Tab")&&function(e,t){var n=e.K.filter(function(e){return!e.classList.contains("shaka-hidden")});if(n.length){var i=n[0];if(i.childNodes.length){for(n=i.firstElementChild;n&&n.classList.contains("shaka-hidden");)n=n.nextElementSibling;for(i=i.lastElementChild;i&&i.classList.contains("shaka-hidden");)i=i.previousElementSibling;var r=document.activeElement;e.W.has("Shift")?r==n&&(t.preventDefault(),i.focus()):r==i&&(t.preventDefault(),n.focus())}}}(n,i)}),s.h.o(e,"click",function(){return s.Xc()}),s.h.o(s,"submenuopen",function(){s.Xc()}),s.h.o(s.C,"play",function(){TH(s)}),s.h.o(s.C,"pause",function(){TH(s)}),s.h.o(s.l,"mousemove",function(e){TV(s,e)}),s.h.o(s.l,"touchmove",function(e){TV(s,e)},{passive:!0}),s.h.o(s.l,"touchend",function(e){TV(s,e)},{passive:!0}),s.h.o(s.l,"mouseleave",function(){s.R||s.L.Ka()}),s.h.o(s.l,"wheel",function(e){TV(s,e)},{passive:!0}),s.h.o(s.F,"caststatuschanged",function(){TK(s)}),s.h.o(s.D,"vrstatuschanged",function(){s.dispatchEvent(new ee("vrstatuschanged"))}),s.h.o(s.l,"keydown",function(e){s.g.enableKeyboardPlaybackControlsInWindow||s.wb()||TW(s,e)}),s.h.o(s.l,"keyup",function(e){s.g.enableKeyboardPlaybackControlsInWindow||s.wb()||s.W.delete(e.key)}),s.h.o(e,"keydown",function(e){(s.g.enableKeyboardPlaybackControlsInWindow||s.wb())&&TW(s,e)}),s.h.o(e,"keyup",function(e){(s.g.enableKeyboardPlaybackControlsInWindow||s.wb())&&s.W.delete(e.key)}),s.h.o(s.sa,"ad-started",function(e){s.j=e.ad,s.Uj(),TX(s)}),s.h.o(s.sa,"ad-stopped",function(){s.j=null,s.ej(),TX(s)}),screen.orientation&&s.h.o(screen.orientation,"change",function(){return F(function(e){var t;return M(e,(t=s,F(function(e){return t.C&&0!=t.C.readyState&&!t.F.Pa()&&t.g.enableFullscreenOnRotation&&t.ye()?screen.orientation.type.includes("landscape")&&!t.wb()?M(e,Tj(t),0):screen.orientation.type.includes("portrait")&&t.wb()?M(e,TB(t),0):e.B(0):e.return()})),0)})}),function(t){if(t.g.setupMediaSession&&navigator.mediaSession){var n=function(e,t){try{navigator.mediaSession.setActionHandler(e,function(e){t(e)})}catch(e){}},i=function(){if(t.j&&t.j.isLinear())r();else{var e=t.m.wa(),n=e.end-e.start;e=parseFloat((t.C.currentTime-e.start).toFixed(2)),t.m.U()&&1>Math.abs(n-e)&&(n=1/0);try{navigator.mediaSession.setPositionState({duration:Math.max(0,n),playbackRate:t.C.playbackRate,position:Math.max(0,e)})}catch(e){}}},r=function(){try{navigator.mediaSession.setPositionState()}catch(e){}},a=function(e){var n=t.g.keyboardSeekDistance;switch(e.action){case"pause":case"play":TF(t);break;case"seekbackward":if(e.seekOffset&&!isFinite(e.seekOffset))break;t.j&&t.j.isLinear()||TZ(t,t.A.getValue()-(e.seekOffset||n));break;case"seekforward":if(e.seekOffset&&!isFinite(e.seekOffset))break;t.j&&t.j.isLinear()||TZ(t,t.A.getValue()+(e.seekOffset||n));break;case"seekto":if(e.seekTime&&!isFinite(e.seekTime))break;t.j&&t.j.isLinear()||TZ(t,t.m.wa().start+e.seekTime);break;case"stop":t.m.vc();break;case"enterpictureinpicture":t.j&&t.j.isLinear()||t.dd()}};n("pause",a),n("play",a),n("seekbackward",a),n("seekforward",a),n("seekto",a),n("stop",a),("documentPictureInPicture"in e||document.pictureInPictureEnabled)&&n("enterpictureinpicture",a),n=function(){t.m.U()||0!=t.m.wa().start?(i(),t.h.o(t.C,"timeupdate",i)):r()},t.m.Ih()&&n(),t.h.o(t.m,"loaded",n),t.h.o(t.m,"unloading",function(){t.h.Ea(t.C,"timeupdate",i)}),t.h.o(t.m,"metadata",function(e){if(e=e.payload){var n,i;"TIT2"==e.key&&e.data&&(n=e.data),"APIC"==e.key&&"--\x3e"==e.mimeType&&(i=e.data),n&&(e={title:n,artwork:[]},navigator.mediaSession.metadata&&((e=navigator.mediaSession.metadata).title=n),navigator.mediaSession.metadata=new Media
1Metadata(e)),i&&(i!=(n=t.u).poster&&(n.poster=i),n={title:"",artwork:[{src:i}]},navigator.mediaSession.metadata&&((n=navigator.mediaSession.metadata).artwork=[{src:i}]),navigator.mediaSession.metadata=new MediaMetadata(n))}})}}(this),this.W=new Set,TK(this),this.Fa.xa(this.g.refreshTickInSeconds),this.h.o(this.ya,"locale-changed",function(e){e=e.locales[0],u.sa.setLocale(e),u.l.setAttribute("lang",e)}),this.sa.initInterstitial(this.G,this.ea,this.u),this.h.o(this.m,"texttrackvisibility",function(){TG(u)}),this.h.o(this.m,"unloading",function(){u.j||(u.wb()&&TB(u),u.Nd()&&u.dd())})}function TO(e){for(var t=E(e.J),n=t.next();!n.done;n=t.next())n.value.release();e.J=[]}function T_(e,t){TQ.set(e,t)}function TU(e){return!!document.fullscreenEnabled&&(!e.u.webkitSupportsFullscreen||!e.g.preferVideoFullScreenInVisionOS||"APPLE_VR"!=eB().Oa())}function Tq(t){return"documentPictureInPicture"in e&&t.g.preferDocumentPictureInPicture}function Tj(e){var t,n;return F(function(i){switch(i.g){case 1:if(R(i,2),!TU(e)){(t=e.u).webkitSupportsFullscreen&&t.webkitEnterFullscreen(),i.B(4);break}if(!e.Nd()){i.B(5);break}return M(i,e.dd(),6);case 6:if(!Tq(e)){i.B(5);break}return M(i,new Promise(function(e){new iA(e).Y(.05)}),5);case 5:return M(i,e.g.fullScreenElement.requestFullscreen({navigationUI:"hide"}),9);case 9:if(!e.g.forceLandscapeOnFullscreen||!screen.orientation){i.B(4);break}return R(i,11),M(i,screen.orientation.lock("landscape"),13);case 13:D(i,4,2);break;case 11:N(i,2);case 4:D(i,0);break;case 2:n=N(i),e.dispatchEvent(new ee("error",(new Map).set("detail",n))),L(i)}})}function TB(e){var t;return F(function(n){return TU(e)?(screen.orientation&&screen.orientation.unlock(),M(n,document.exitFullscreen(),0)):((t=e.u).webkitSupportsFullscreen&&t.webkitExitFullscreen(),n.B(0))})}function TF(e){e.aa&&!(e.j&&(e.j&&e.j.isPaused()?e.j.play():e.j&&e.j.pause(),e.j.isLinear()))&&e.C.duration&&(e.C.paused&&!e.V?(e.m.isEnded()&&(e.C.currentTime=e.m.wa().start),e.C.play()):e.C.pause())}function TV(e,t){"mousemove"==t.type&&(e.i.classList.remove("shaka-keyboard-navigation"),TH(e)),"touchstart"==t.type||"touchmove"==t.type||"touchend"==t.type||"keyup"==t.type?e.R=Date.now():e.R+1e3<Date.now()&&(e.R=null),e.R&&"mousemove"==t.type||(e.l.classList.remove("no-cursor"),e.Na=!0,e.P.stop(),e.Ca()||(TJ(e),TH(e)),e.L.stop(),"touchend"!=t.type&&"wheel"!=t.type&&"keyup"!=t.type&&e.R||e.L.Y(3))}function TG(e){var t=e.l.getElementsByClassName("shaka-text-container")[0];t&&(e.Ca()?t.style.bottom=e.O.clientHeight+"px":t.style.bottom="0px")}function TH(t){var n,i=!!t.j&&t.j.isPaused(),r=t.C.paused&&!t.V,a=t.i.classList.contains("shaka-keyboard-navigation");i||(!t.j||!t.j.isLinear())&&r||t.Na||a||(n=t,e.matchMedia("hover: hover").matches&&n.$a.some(function(e){return e.matches(":hover")}))?(TJ(t),null==t.i.getAttribute("shown")&&(t.i.setAttribute("shown","true"),TY(t)),TG(t),t.oa.stop()):t.oa.Y(t.g.fadeDelay),t.Nc()&&t.H.classList.remove("shaka-tooltips-on")}function Tz(e,t){t=void 0!==t&&t,e.aa&&!e.Zb()&&(e.Nc()?e.P.Ka():e.g.singleClickForPlayAndPause?TF(e):t&&e.Ca()&&e.fj())}function TK(e){var t=e.F.Pa();e.dispatchEvent(new ee("caststatuschanged",(new Map).set("newStatus",t))),t?null==e.i.getAttribute("casting")&&(e.i.setAttribute("casting","true"),TY(e)):null!=e.i.getAttribute("casting")&&(e.i.removeAttribute("casting"),TY(e))}function TW(e,t){var n=document.activeElement,i=!!n&&!!n.classList&&n.classList.contains("shaka-volume-bar"),r=n&&n.classList&&n.classList.contains("shaka-seek-bar"),a=e.wb();if(n=e.i.contains(n),a=a||e.g.enableKeyboardPlaybackControlsInWindow,n&&TV(e,t),e.g.enableKeyboardPlaybackControls&&e.m.jd()){var o=e.g.keyboardSeekDistance,s=e.g.keyboardLargeSeekDistance;switch(t.key){case"ArrowLeft":e.A&&o>0&&(r||a)&&!i&&(t.preventDefault(),TZ(e,e.A.getValue()-o));break;case"ArrowRight":e.A&&o>0&&(r||a)&&!i&&(t.preventDefault(),TZ(e,e.A.getValue()+o));break;case"PageDown":e.A&&s>0&&(r||a)&&(t.preventDefault(),TZ(e,e.A.getValue()-s));break;case"PageUp":e.A&&s>0&&(r||a)&&(t.preventDefault(),TZ(e,e.A.getValue()+s));break;case"Home":e.A&&TZ(e,e.m.wa().start);break;case"End":e.A&&TZ(e,e.m.wa().end);break;case"c":e.m.$d(!e.m.Yc());break;case"f":e.ye()&&e.sg();break;case"m":e.j&&e.j.isLinear()?e.j.setMuted(!e.j.isMuted()):e.u.muted=!e.u.muted;break;case"p":e.Hf()&&e.dd();break;case">":(t=e.g.playbackRates.indexOf(e.m.Za()))>-1&&t+1<e.g.playbackRates.length&&e.m.uc(e.g.playbackRates[t+1],!1);break;case"<":(t=e.g.playbackRates.indexOf(e.m.Za()))>-1&&t-1>=0&&e.m.uc(e.g.playbackRates[t-1],!1);break;case" ":(r||a&&!n)&&TF(e)}}}function TX(e){e.aa&&(e.j&&e.j.isClientRendering()&&e.j.isLinear()?bY(e.M,!1):bY(e.M,e.m.Ff()))}function TY(e){e.Ca()?e.dispatchEvent(new ee("showingui")):e.dispatchEvent(new ee("hidingui"))}function TZ(e,t){e.C.currentTime=t,TJ(e)}
1function TJ(e){if(e.A)if(e.A.setValue(e.C.currentTime),e.A.update(),e.A.isShowing()){for(var t=E(e.K),n=t.next();!n.done;n=t.next())n.value.classList.remove("shaka-low-position");(t=e.H).classList.contains("shaka-tooltips-on")&&t.classList.remove("shaka-tooltips-low-position")}else{for(n=(t=E(e.K)).next();!n.done;n=t.next())n.value.classList.add("shaka-low-position");(t=e.H).classList.contains("shaka-tooltips-on")&&t.classList.add("shaka-tooltips-low-position")}e.dispatchEvent(new ee("timeandseekrangeupdated"))}S(TN,ec),(p=TN.prototype).destroy=function(e){e=void 0!==e&&e;var t=this;return F(function(n){switch(n.g){case 1:if(document.pictureInPictureElement!=t.u){n.B(2);break}return M(n,document.exitPictureInPicture(),2);case 2:if(t.h&&(t.h.release(),t.h=null),t.L&&(t.L.stop(),t.L=null),t.oa&&(t.oa.stop(),t.oa=null),t.P&&(t.P.stop(),t.P=null),t.Fa&&(t.Fa.stop(),t.Fa=null),t.D&&(t.D.release(),t.D=null),TO(t),t.i&&(t.l.removeChild(t.i),t.i=null),!t.F){n.B(4);break}return M(n,t.F.destroy(e),5);case 5:t.F=null;case 4:if(t.M&&(t.l.removeChild(t.M),t.M=null),t.G&&(t.l.removeChild(t.G),t.G=null),t.I&&(t.l.removeChild(t.I),t.I=null),!t.ea){n.B(6);break}return M(n,t.ea.destroy(),7);case 7:t.ea=null;case 6:t.m=null,t.u=null,t.C=null,t.ya=null,t.W.clear(),function(e){if(e.g.setupMediaSession&&navigator.mediaSession){try{navigator.mediaSession.setPositionState()}catch(e){}(e=function(e){try{navigator.mediaSession.setActionHandler(e,null)}catch(e){}})("pause"),e("play"),e("seekbackward"),e("seekforward"),e("seekto"),e("stop"),e("enterpictureinpicture")}}(t),ec.prototype.release.call(t),L(n)}})},p.nk=function(e){this.ua=e,TK(this)},p.Kl=function(){TH(this)},p.configure=function(e){var t,n,i,r,a,o,s,u,l,c,d,h,p=this;this.g=e,this.F.Pi(e.castReceiverAppId,e.castAndroidReceiverCompatible),this.A&&(this.A=null),this.La&&(this.La=null),this.Z&&(this.Z=null),this.D&&this.D.configure(e),this.i?(on(this.i),TO(this)):(t=this,t.i=a6("div"),t.i.classList.add("shaka-controls-container"),t.l.appendChild(t.i),t.l.setAttribute("shaka-controls","true"),t.h.o(t.i,"touchend",function(e){t.C.duration&&(t.Ca()?(t.R=Date.now(),Tz(t,!0)):TV(t,e),e.cancelable&&e.preventDefault())}),t.h.o(t.i,"click",function(){Tz(t)}),t.h.o(t.i,"dblclick",function(){t.g.doubleClickForFullscreen&&t.ye()&&t.sg()}),n=this,n.G=a6("div"),n.G.classList.add("shaka-client-side-ad-container"),bY(n.G,!1),n.h.o(n.G,"click",function(){Tz(n)}),n.l.appendChild(n.G),n.I=a6("div"),n.I.classList.add("shaka-server-side-ad-container"),bY(n.I,!1),n.h.o(n.I,"click",function(){Tz(n)}),n.l.appendChild(n.I),this.D=new TI(this.i,this.Pb,this.u,this.m,this.g,this)),this.l.classList.add("shaka-video-container"),this.u.classList.add("shaka-video"),i=this,(r=a6("div")).classList.add("shaka-scrim-container"),i.i.appendChild(r),this.g.addBigPlayButton&&(a=this,(o=a6("div")).classList.add("shaka-play-button-container"),a.i.appendChild(o),a.La=new b5(o,a),a.J.push(a.La)),this.g.customContextMenu&&(this.Z=new bQ(this.H,this),this.J.push(this.Z)),this.M||(s=this,s.M=a6("div"),s.M.classList.add("shaka-spinner-container"),s.l.appendChild(s.M),(u=a6("div")).classList.add("shaka-spinner"),s.M.appendChild(u),u.insertAdjacentHTML("beforeend",'<svg focusable="false" stroke="currentColor"\n         viewB
1ox="0 0 38 38" xmlns="http://www.w3.org/2000/svg"\n         width="50px" height="50px" class="q-spinner text-grey-9">\n      <g transform="translate(1 1)" stroke-width="6" fill="none"\n        fill-rule="evenodd">\n        <circle stroke-opacity=".5" cx="18" cy="18" r="16"></circle>\n        <path d="M34 18c0-9.94-8.06-16-16-16">\n          <animateTransform attributeName="transform" type="rotate"\n            from="0 18 18" to="360 18 18" dur="1s" repeatCount="indefinite">\n          </animateTransform>\n        </path>\n      </g>\n    </svg>')),this.g.seekOnTaps&&(l=this,(c=a6("div")).classList.add("shaka-hidden-fast-forward-container"),l.i.appendChild(c),l.ib=new b4(c,l),l.J.push(l.ib),d=this,(h=a6("div")).classList.add("shaka-hidden-rewind-container"),d.i.appendChild(h),d.jb=new b8(h,d),d.J.push(d.jb)),function(e){e.O=a6("div"),e.O.classList.add("shaka-bottom-controls"),e.O.classList.add("shaka-no-propagation"),e.i.appendChild(e.O),e.h.o(e.O,"click",function(t){t.target.closest(".shaka-overflow-button")||e.Xc()}),(t=e).T=a6("div"),t.T.classList.add("shaka-ad-controls"),n=null!=t.j&&t.j.isLinear(),bY(t.T,n),t.O.appendChild(t.T),n=new Tc(t.T,t),t.J.push(n),function(e){if(e.g.addSeekBar)e.A=T$.create(e.O,e),e.J.push(e.A);else{for(var t=E(e.K),n=t.next();!n.done;n=t.next())n.value.classList.add("shaka-low-position");(e=e.H).classList.contains("shaka-tooltips-on")&&e.classList.add("shaka-tooltips-low-position")}}(e),e.H=a6("div"),e.H.classList.add("shaka-controls-button-panel"),e.H.classList.add("shaka-show-controls-on-mouse-over"),e.g.enableTooltips&&e.H.classList.add("shaka-tooltips-on"),e.O.appendChild(e.H);for(var t,n,i=E(e.g.controlPanelElements),r=i.next();!r.done;r=i.next())if(r=r.value,TQ.get(r)){var a=TQ.get(r).create(e.H,e);e.J.push(a),"time_and_duration"==r&&(r=new bJ(e.H,e),e.J.push(r))}else ea("Unrecognized control panel element requested:",r)}(this),this.K=Array.from(this.l.getElementsByClassName("shaka-settings-menu")),this.K.push.apply(this.K,x(Array.from(this.l.getElementsByClassName("shaka-overflow-menu")))),this.$a=Array.from(this.l.getElementsByClassName("shaka-show-controls-on-mouse-over")),TH(this),e=E(this.l.getElementsByClassName("shaka-no-propagation"));for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=function(e){return e.stopPropagation()};this.h.o(f,"click",g),this.h.o(f,"dblclick",g),navigator.maxTouchPoints>0&&this.h.o(f,"touchend",function(e){p.Ca()&&e.stopPropagation()})}},p.ii=function(e){(this.aa=e)?(this.l.setAttribute("shaka-controls","true"),this.u.tabIndex=-1,this.u.controls=!1):this.l.removeAttribute("shaka-controls"),TH(this)},p.Oj=function(e){this.u.controls=e,this.u.tabIndex=e?0:-1,e&&this.ii(!1)},p.getAd=function(){return this.j},p.Ek=function(){return this.F},p.Vk=function(){return this.ya},p.xl=function(){return this.l},p.Wc=function(){return this.C},p.Uk=function(){return this.u},p.Yb=function(){return this.m},p.Tk=function(){return this.ea},p.Lk=function(){return this.i},p.il=function(){return this.I},p.Hk=function(){return this.G},p.Ik=function(){return this.g},p.Hl=function(){return this.V},p.li=function(e){(this.V=e)?this.L.stop():this.L.Y(3)},p.Cl=function(){return this.ua},p.uh=function(){return this.A?this.A.getValue():this.C.currentTime},p.Pj=function(e){this.R=e},p.Nc=function(){return this.K.some(function(e){return!e.classList.contains("shaka-hidden")})},p.Xc=function(){this.P.Ka()},p.ye=function(){return!this.F.Pa()&&!(!TU(this)&&(this.j&&this.j.isUsingAnotherMediaElement()||!this.u.webkitSupportsFullscreen))},p.wb=function(){if(TU(this))return!!document.fullscreenElement;var e=this.u;return!!e.webkitSupportsFullscreen&&e.webkitDisplayingFullscreen},p.sg=function(){var e=this;return F(function(t){return e.wb()?M(t,TB(e),0):M(t,Tj(e),0)})},p.Hf=function(){return!this.F.Pa()&&!!(document.pictureInPictureEnabled||Tq(this))&&!this.u.disablePictureInPicture},p.Nd=function(){return!!(e.documentPictureInPicture&&e.documentPictureInPicture.window||document.pictureInPictureElement)},p.dd=function(){var t,n=this;
1return F(function(i){switch(i.g){case 1:if(R(i,2),Tq(n)){if(!n.wb()){i.B(10);break}return M(i,TB(n),10)}return document.pictureInPictureElement?M(i,document.exitPictureInPicture(),5):(n.wb()&&TB(n),M(i,n.u.requestPictureInPicture(),5));case 10:var r,a,o,s,u,l,c;return M(i,(r=n,F(function(t){var n,i,d;if(1==t.g)return e.documentPictureInPicture.window?(e.documentPictureInPicture.window.close(),t.return()):(o=(a=r.l).getBoundingClientRect(),M(t,e.documentPictureInPicture.requestWindow({width:o.width,height:o.height}),2));n=s=t.h,i=[].concat(x(document.styleSheets)).map(function(e){try{return[].concat(x(e.cssRules)).map(function(e){return e.cssText}).join("")}catch(i){var t=document.createElement("link");t.rel="stylesheet",t.type=e.type,t.media=e.media,t.href=e.href,n.document.head.appendChild(t)}return""}).filter(Boolean).join("\n"),(d=document.createElement("style")).textContent=i,n.document.head.appendChild(d),u=a.parentNode||document.body,(l=r.l.cloneNode(!0)).style.visibility="hidden",l.style.height=getComputedStyle(a).height,u.appendChild(l),(c=document.createElement("style")).append("[data-shaka-player-container] {\n      width: 100% !important; max-height: 100%}"),s.document.head.append(c),s.document.body.append(a),r.h.qa(s,"pagehide",function(){l.replaceWith(a)}),L(t)})),5);case 5:D(i,0);break;case 2:t=N(i),n.dispatchEvent(new ee("error",(new Map).set("detail",t))),L(i)}})},p.Uj=function(){bY(this.T,!0),this.G&&this.G.hasChildNodes()&&bY(this.G,!0),this.I&&this.I.hasChildNodes()&&bY(this.I,!0),this.j.hasCustomClick()?this.i.setAttribute("ad-active","true"):this.i.removeAttribute("ad-active")},p.ej=function(){bY(this.T,!1),bY(this.G,!1),bY(this.I,!1),this.i.removeAttribute("ad-active")},p.Ca=function(){return!!this.aa&&(null!=this.i.getAttribute("shown")||null!=this.i.getAttribute("casting"))},p.xm=function(){TV(this,new Event("mousemove",{bubbles:!1,cancelable:!1}))},p.fj=function(){this.L.Ka()},p.Pg=function(){return this.D.Pg()},p.Zb=function(){return this.D.Zb()},p.vl=function(){var e=this.D;if(e.g){Tv((e=e.g).h,e.F);var t=e.h;e=t[0];var n=t[1],i=t[2];t=t[3];var r=i*i,a=t*t,o=e*e+n*n+r+a,s=e*t-n*i;s>.499995*o?(o=Math.PI/2,e=2*Math.atan2(n,e)):s<-.499995*o?(o=-Math.PI/2,e=2*Math.atan2(n,e)):(o=Math.asin(2*(e*i-t*n)),e=Math.atan2(2*(e*t+n*i),1-2*(r+a))),e=180*Math.acos(Math.cos(e)*Math.cos(o))/Math.PI}else ea("Not playing VR content"),e=null;return e},p.ul=function(){var e=this.D;return e.g?e=e.g.j:(ea("Not playing VR content"),e=null),e},p.vm=function(e){var t=this.D;t.g?(e<0?(ea("Field of view should be greater than 0"),e=0):e>100&&(ea("Field of view should be less than 100"),e=100),(t=t.g).j=e,TA(t,!1)):ea("Not playing VR content")},p.ae=function(){this.D.ae()},p.Eh=function(e){this.D.Eh(e)},p.Ch=function(e){this.D.Ch(e)},p.Dh=function(e){this.D.Dh(e)},$("shaka.ui.Controls",TN),TN.prototype.incrementRoll=TN.prototype.Dh,TN.prototype.incrementPitch=TN.prototype.Ch,TN.prototype.incrementYaw=TN.prototype.Eh,TN.prototype.toggleStereoscopicMode=TN.prototype.ae,TN.prototype.setVRFieldOfView=TN.prototype.vm,TN.prototype.getVRFieldOfView=TN.prototype.ul,TN.prototype.getVRNorth=TN.prototype.vl,TN.prototype.isPlayingVR=TN.prototype.Zb,TN.prototype.canPlayVR=TN.prototype.Pg,TN.prototype.hideUI=TN.prototype.fj,TN.prototype.showUI=TN.prototype.xm,TN.prototype.isOpaque=TN.prototype.Ca,TN.prototype.hideAdUI=TN.prototype.ej,TN.prototype.showAdUI=TN.prototype.Uj,TN.prototype.togglePiP=TN.prototype.dd,TN.prototype.isPiPEnabled=TN.prototype.Nd,TN.prototype.isPiPAllowed=TN.prototype.Hf,TN.prototype.toggleFullScreen=TN.prototype.sg,TN.prototype.isFullScreenEnabled=TN.prototype.wb,TN.prototype.isFullScreenSupported=TN.prototype.ye,TN.prototype.hideSettingsMenus=TN.prototype.Xc,TN.prototype.anySettingsMenusAreOpen=TN.prototype.Nc,TN.prototype.setLastTouchEventTime=TN.prototype.Pj,TN.prototype.getDisplayTime=TN.prototype.uh,TN.prototype.isCastAllowed=TN.prototype.Cl,TN.prototype.setSeeking=TN.prototype.li,TN.prototype.isSeeking=TN.prototype.Hl,TN.prototype.getConfig=TN.prototype.Ik,TN.prototype.getClientSideAdContainer=TN.prototype.Hk,TN.prototype.getServerSideAdContainer=TN.prototype.il,TN.prototype.getControlsContainer=TN.prototype.Lk,TN.prototype.getLocalPlayer=TN.prototype.Tk,TN.prototype.getPlayer=TN.prototype.Yb,TN.prototype.getLocalVideo=TN.prototype.Uk,TN.prototype.getVideo=TN.prototype.Wc,TN.prototype.getVideoContainer=TN.prototype.xl,TN.prototype.getLocalization=TN.prototype.Vk,TN.prototype.getCastProxy=TN.prototype.Ek,TN.prototype.getAd=TN.prototype.getAd,TN.prototype.setEnabledNativeControls=TN.prototype.Oj,TN.prototype.setEnabledShakaControl
1s=TN.prototype.ii,TN.prototype.configure=TN.prototype.configure,TN.prototype.loadComplete=TN.prototype.Kl,TN.prototype.allowCast=TN.prototype.nk,TN.registerSeekBar=function(e){T$=e},TN.registerElement=T_,TN.prototype.destroy=TN.prototype.destroy;var TQ=new Map,T$=new Tl;function T0(t,n){function i(){return T5(o)}bG.call(this,t,n);var r,a,o=this;this.m=this.controls.g,this.l=this.controls.i,this.u=this.controls.l,this.j=[],r=this,r.h=a9(),r.h.classList.add("shaka-overflow-menu-button"),r.h.classList.add("shaka-no-propagation"),r.h.classList.add("shaka-tooltip"),new bH(r.h).use("M433-80q-27 0-46.5-18T363-142l-9-66q-13-5-24.5-12T307-235l-62 26q-25 11-50 2t-39-32l-47-82q-14-23-8-49t27-43l53-40q-1-7-1-13.5v-27q0-6.5 1-13.5l-53-40q-21-17-27-43t8-49l47-82q14-23 39-32t50 2l62 26q11-8 23-15t24-12l9-66q4-26 23.5-44t46.5-18h94q27 0 46.5 18t23.5 44l9 66q13 5 24.5 12t22.5 15l62-26q25-11 50-2t39 32l47 82q14 23 8 49t-27 43l-53 40q1 7 1 13.5v27q0 6.5-2 13.5l53 40q21 17 27 43t-8 49l-48 82q-14 23-39 32t-50-2l-60-26q-11 8-23 15t-24 12l-9 66q-4 26-23.5 44T527-80h-94Zm49-260q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Z"),(a=a6("span")).classList.add("shaka-overflow-quality-mark"),a.style.display="none",r.h.appendChild(a),r.parent.appendChild(r.h),this.g=a6("div"),this.g.classList.add("shaka-overflow-menu"),this.g.classList.add("shaka-no-propagation"),this.g.classList.add("shaka-show-controls-on-mouse-over"),this.g.classList.add("shaka-hidden"),this.l.appendChild(this.g),function(e){for(var t=E(e.m.overflowMenuButtons),n=t.next();!n.done;n=t.next())n=n.value,T4.get(n)?(n=T4.get(n),e.j.push(n.create(e.g,e.controls))):ea("Unrecognized overflow menu element requested:",n)}(this),this.eventManager.o(this.localization,"locale-updated",function(){T2(o)}),this.eventManager.o(this.localization,"locale-changed",function(){T2(o)}),this.eventManager.o(this.adManager,"ad-started",function(){o.ad&&o.ad.isLinear()&&bY(o.h,!1)}),this.eventManager.o(this.adManager,"ad-stopped",function(){bY(o.h,!0)}),this.eventManager.o(this.controls,"submenuopen",function(){bY(o.g,!1)}),this.eventManager.o(this.g,"touchstart",function(e){o.controls.Pj(Date.now()),e.stopPropagation()}),this.eventManager.o(this.h,"click",function(){o.controls.Ca()&&function(e){if(e.controls.Nc())e.controls.Xc();else{bY(e.g,!0),TH(e.controls);var t=function(e){return 0==e.classList.contains("shaka-hidden")};eh(e.g.childNodes,t)&&ep(e.g.childNodes,t)[0].focus(),T5(e)}}(o)}),T2(this),this.ad&&this.ad.isLinear()&&bY(this.h,!1),this.i=null,e.ResizeObserver?(this.i=new ResizeObserver(i),this.i.observe(this.controls.l)):this.eventManager.o(e,"resize",i)}function T1(e,t){T4.set(e,t)}function T2(e){e.h.ariaLabel=e.localization.resolve("MORE_SETTINGS")}function T5(t){var n=t.g.getBoundingClientRect(),i=e.getComputedStyle(t.g),r=parseFloat(i.paddingTop);i=parseFloat(i.paddingBottom);var a=t.u.getBoundingClientRect();t.g.style.maxHeight=n.bottom-a.top-r-i+"px"}function T3(){}S(T0,bG),T0.prototype.release=function(){this.l=null;for(var e=E(this.j),t=e.next();!t.done;t=e.next())t.value.release();this.j=[],this.i&&(this.i.disconnect(),this.i=null),bG.prototype.release.call(this)},$("shaka.ui.OverflowMenu",T0),T0.registerElement=T1,T3.prototype.create=function(e,t){return new T0(e,t)},T_("overflow_menu",new T3);var T4=new Map;function T8(e,t){function n(e){return i.i[e]}bG.call(this,e,t);var i=this;this.h=a9(),this.h.classList.add("shaka-ad-statistics-button"),this.u=new bH(this.h,"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Zm120 200q-17 0-28.5 11.5T280-520v200q0 17 11.5 28.5T320-280q17 0 28.5-11.5T360-320v-200q0-17-11.5-28.5T320-560Zm160-120q-17 0-28.5 11.5T440-640v320q0 17 11.5 28.5T480-280q17 0 28.5-11.5T520-320v-320q0-17-11.5-28.5T480-680Zm160 240q-17 0-28.5 11.5T600-400v80q0 17 11.5 28.5T640-280q17 0 28.5-11.5T680-320v-80q0-17-11.5-28.5T640-440Z"),(e=a6("label")).classList.add("shaka-overflow-button-label"),e.classList.add("shaka-simple-overflow-button-label-inline"),this.A=a6("span"),e.appendChild(this.A),this.l=a6("span"),this.l.classList.add("shaka-current-selection-span"),e.appendChild(this.l),this.h.appendChild(e),this.parent.appendChild(this.h),this.g=a6("div"),this.g.classList.add("shaka-no-propagation"),this.g.classList.add("shaka-show-controls-on-mouse-over"),this.g.classList.add("shaka-ad-statistics-container"),this.g.classList.add("shaka-hidden"),this.controls.i.appendChild(this.g),this.D=[],this.i=this.adManager.getStats(),bY(this.h,this.i.started>0),this.m=new Map,this.C=(new Map).set("loadTimes",function(e){var t=0;e=E(i.i[e]);for(var n=e.next();!n.done;n=e.next())t+=parseFloat(n.value);return t}).set("averageLoadTime",n).set("started",n).set("overlayAds",n).set("playedCompletely",n).set("skipped",n).set("errors",n),this.j=new iA(function(){i.i=i.adManager.getStats();for(var e=E(i.D),t=e.next();!t.done;t=e.next())t=t.value,i.m.get(t).textContent=i.C.get(t)(t)}),T7(this),function(e){var t=a6("div");t.classList.add("shaka-no-propagation"),t.classList.add("shaka-statistics-close");var n=new bH(t,"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q
111-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z").g;for(n.classList.add("material-icons","notranslate"),e.g.appendChild(t),e.eventManager.o(n,"click",function(){T6(e)}),n=(t=E(e.controls.g.adStatisticsList)).next();!n.done;n=t.next())(n=n.value)in e.i?(e.g.appendChild(function(e,t){var n=a6("div"),i=a6("label");return i.textContent=t+":",n.appendChild(i),(i=a6("span")).textContent=e.C.get(t)(t),n.appendChild(i),e.m.set(t,i),n}(e,n)),e.D.push(n)):ea("Unrecognized ad statistic element:",n)}(this),this.eventManager.o(this.localization,"locale-updated",function(){T7(i)}),this.eventManager.o(this.localization,"locale-changed",function(){T7(i)}),this.eventManager.o(this.h,"click",function(){i.controls.Ca()&&(T6(i),T7(i))}),this.eventManager.o(this.player,"loading",function(){bY(i.h,!1)}),this.eventManager.o(this.adManager,"ad-started",function(){bY(i.h,!0)})}function T6(e){e.g.classList.contains("shaka-hidden")?(e.u.use("M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm120-440q-17 0-28.5 11.5T280-520v200q0 17 11.5 28.5T320-280q17 0 28.5-11.5T360-320v-200q0-17-11.5-28.5T320-560Zm160-120q-17 0-28.5 11.5T440-640v320q0 17 11.5 28.5T480-280q17 0 28.5-11.5T520-320v-320q0-17-11.5-28.5T480-680Zm160 240q-17 0-28.5 11.5T600-400v80q0 17 11.5 28.5T640-280q17 0 28.5-11.5T680-320v-80q0-17-11.5-28.5T640-440Z"),e.j.xa(.1),bY(e.g,!0)):(e.u.use("M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Zm120 200q-17 0-28.5 11.5T280-520v200q0 17 11.5 28.5T320-280q17 0 28.5-11.5T360-320v-200q0-17-11.5-28.5T320-560Zm160-120q-17 0-28.5 11.5T440-640v320q0 17 11.5 28.5T480-280q17 0 28.5-11.5T520-320v-320q0-17-11.5-28.5T480-680Zm160 240q-17 0-28.5 11.5T600-400v80q0 17 11.5 28.5T640-280q17 0 28.5-11.5T680-320v-80q0-17-11.5-28.5T640-440Z"),e.j.stop(),bY(e.g,!1))}function T7(e){e.A.textContent=e.localization.resolve("AD_STATISTICS"),e.h.ariaLabel=e.localization.resolve("AD_STATISTICS"),e.l.textContent=e.localization.resolve(e.g.classList.contains("shaka-hidden")?"OFF":"ON")}function T9(){}function we(t,n){bG.call(this,t,n);var i=this;this.g=a9(),this.g.classList.add("shaka-airplay-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",new bH(this.g).use("M80-280v-480q0-33 23.5-56.5T160-840h640q33 0 56.5 23.5T880-760v480q0 33-23.5 56.5T800-200h-80q-17 0-28.5-11.5T680-240q0-17 11.5-28.5T720-280h80v-480H160v480h80q17 0 28.5 11.5T280-240q0 17-11.5 28.5T240-200h-80q-33 0-56.5-23.5T80-280Zm232 160q-14 0-22-9.5t-8-20.5q0-5 2-10.5t7-10.5l161-161q6-6 13-9t15-3q8 0 15 3t13 9l161 161q5 5 7 10.5t2 10.5q0 11-8 20.5t-22 9.5H312Zm168-360Z"),e.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden"),(t=a6("label")).classList.add("shaka-overflow-button-label"),t.classList.add("shaka-overflow-menu-only"),this.i=a6("span"),t.appendChild(this.i),this.h=a6("span"),this.h.classList.add("shaka-current-selection-span"),t.appendChild(this.h),this.g.appendChild(t),this.parent.appendChild(this.g),wn(this),wt(this),this.eventManager.o(this.localization,"locale-updated",function(){wn(i)}),this.eventManager.o(this.localization,"locale-changed",function(){wn(i)}),this.eventManager.o(this.g,"click",function(){i.controls.Ca()&&i.controls.Wc().webkitShowPlaybackTargetPicker()}),t=this.controls.Wc(),this.eventManager.o(t,"webkitplaybacktargetavailabilitychanged",function(e){var t=i.player.Ac()==c3;bY(i.g,"available"==e.availability&&t)}),this.eventManager.o(t,"webkitcurrentplaybacktargetiswirelesschanged",function(){wt(i)})}function wt(e){var t=e.controls.Wc();e.g.ariaPressed=t&&t.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function wn(e){e.g.ariaLabel=e.localization.resolve("AIRPLAY"),e.i.textContent=e.localization.resolve("AIRPLAY")}function wi(){}function wr(t,n){bG.call(this,t,n);var i=this;this.g=document.createElement("canvas"),this.g.style.position="absolute",this.g.style.top="0",this.g.style.left="0",this.g.style.pointerEvents="none",this.parent.appendChild(this.g),wo(this),this.i=this.h=null,e.ResizeObserver?(this.i=new ResizeObserver(function(){return wo(i)}),this.i.observe(this.parent)):e.addEventListener("resize",function(){return wo(i)})}function wa(e){return(e=e.g.getContext("2d"))?e:null}function wo(e){e.g.width=e.parent.offsetWidth,e.g.height=e.parent.offsetHeight}function ws(e,t,n,i){i=void 0===i?null:i,this.j=e,this.l=t,this.h=wu(this);var r="",a=!1;t.dataset&&t.dataset.shakaPlayerCastReceiverId?(r=(a=t.dataset).shakaPlayerCastReceiverId,a="true"===a.shakaPlayerCastAndroidReceiverCompatible):n.dataset&&n.dataset.shakaPlayerCastReceiverId&&(r=(a=n.dataset).shakaPlayerCastReceiverId,a="true"===a.shakaPlayerCastAndroidReceiverCompatible),r.length&&(this.h.castReceiverAppId=r,this.h.castAndroidReceiverCompatible=a),t.dataset.shakaPlayerContainer="",t.ui=this,this.Jh()&&t.classList.add("shaka-mobile"),this.g=new TN(e,t,n,i,this.h),n.controls||e.mi(t),t.ui=this,n.ui=this,this.i=null}function wu(t){var n="play_pause skip_previous skip_next mute volume time_and_duration spacer overflow_menu".split(" ");if(e.chrome&&n.push("cast"),"remote"in HTMLMediaElement.prototype?n.push("remote"):e.WebKitPlaybackTargetAvailabilityEvent&&n.push("airplay"),n.push("fullscreen"),n={controlPanelElements:n,overflowMenuButtons:"captions quality language chapter picture_in_picture playback_rate recenter_vr toggle_stereoscopic".split(" "),statisticsList:"width height currentCodecs corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent manifestSizeBytes bytesDownloaded nonFatalErrorCount manifestPeriodCount manifestGapCount".split(" "),adStatisticsList:"loadTimes averageLoadTime started overlayAds playedCompletely skipped errors".split(" "),contextMenuElements:["loop","picture_in_picture","save_video_frame","statistics","ad_statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",castAndroidReceiverCompatible:!1,clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},qualityMarks:{720:"",1080:"HD",1440:"2K",2160:"4K",4320:"8K"},trackLabelFormat:wp,textTrackLabelFormat:wp,fadeDelay:0,closeMenusDelay:2,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!1,forceLandscapeOnFullscreen:!1,enableTooltips:!0,keyboardSeekDistance:5,keyboardLargeSeekDistance:60,fullScreenElement:t.l,preferDocumentPictureInPicture:!0,showAudioChannelCountVariants:!0,seekOnTaps:!1,tapSeekDistance:10,refreshTickInSeconds:.125,displayInVrMode:!1,defaultVrProjectionMode:"equirectangular",setupMediaSession:!0,preferVideoFullScreenInVisionOS:!0,showAudioCodec:!0,showVideoCodec:!0,castSenderUrl:"https://www.gstatic.
1com/cv/js/sender/v1/cast_sender.js",enableKeyboardPlaybackControlsInWindow:!1,alwaysShowVolumeBar:!1},t.Jh()){n.addBigPlayButton=!0,n.singleClickForPlayAndPause=!1,n.seekOnTaps=!0,n.enableTooltips=!1,n.doubleClickForFullscreen=!1,t=eB(),n.enableFullscreenOnRotation="WEBKIT"!==t.Ja(),n.forceLandscapeOnFullscreen=!0;var i=["play_pause","skip_previous","skip_next","volume"];n.controlPanelElements=n.controlPanelElements.filter(function(e){return!i.includes(e)}),n.overflowMenuButtons=n.overflowMenuButtons.filter(function(e){return!i.includes(e)}),n.contextMenuElements=n.contextMenuElements.filter(function(e){return!i.includes(e)})}else if(t.Kh()){n.addBigPlayButton=!0,n.singleClickForPlayAndPause=!1,n.enableTooltips=!1,n.doubleClickForFullscreen=!1;var r="play_pause cast remote airplay volume save_video_frame".split(" ");n.controlPanelElements=n.controlPanelElements.filter(function(e){return!r.includes(e)}),n.overflowMenuButtons=n.overflowMenuButtons.filter(function(e){return!r.includes(e)}),n.contextMenuElements=n.contextMenuElements.filter(function(e){return!r.includes(e)})}return n}function wl(){var e,t,n,i,r,a,o,s,u,l,c,d,h,p,f,g,m,v,y,b,T;return F(function(w){switch(w.g){case 1:if(vp(),!ce())return wc("shaka-ui-load-failed",wf),w.return();if(e=document.querySelectorAll("[data-shaka-player-container]"),t=document.querySelectorAll("[data-shaka-player]"),n=document.querySelectorAll("[data-shaka-player-canvas]"),i=document.querySelectorAll("[data-shaka-player-vr-canvas]"),!t.length&&!e.length){w.B(2);break}if(t.length&&!e.length){w.B(3);break}a=(r=E(e)).next();case 5:if(a.done){w.B(2);break}if((o=a.value).ui){w.B(6);break}for(s=null,l=(u=E(t)).next();!l.done;l=u.next())if((c=l.value).parentElement==o){s=c;break}return s||((s=document.createElement("video")).setAttribute("playsinline",""),o.appendChild(s)),h=(d=wh(o,n,i)).mj,p=d.jk,R(w,8),M(w,wd(o,s,h,p),10);case 10:D(w,6);break;case 8:return N(w),wc("shaka-ui-load-failed",wg),w.return();case 6:a=r.next(),w.B(5);break;case 3:g=(f=E(t)).next();case 11:if(g.done){w.B(2);break}if((m=g.value).ui){w.B(12);break}return v=document.createElement("div"),m.parentElement.replaceChild(v,m),v.appendChild(m),b=(y=wh(v,n,i)).mj,T=y.jk,R(w,14),M(w,wd(v,m,b,T),16);case 16:D(w,12);break;case 14:return N(w),wc("shaka-ui-load-failed",wg),w.return();case 12:g=f.next(),w.B(11);break;case 2:wc("shaka-ui-loaded"),L(w)}})}function wc(e,t){var n=null;void 0!=t&&(n={reasonCode:t}),e=new CustomEvent(e,{detail:n}),document.dispatchEvent(e)}function wd(e,t,n,i){var r,a,o,s,u,l,c,d,h,p;return F(function(f){switch(f.g){case 1:for(r=new l8,a=[],(o=t.getAttribute("src"))&&(a.push(o),t.removeAttribute("src")),u=(s=E(t.getElementsByTagName("source"))).next();!u.done;u=s.next())l=u.value,a.push(l.src),t.removeChild(l);return M(f,r.Vb(t),2);case 2:r.Ji(n),c=new ws(r,e,t,i||null),t.controls&&c.g.Oj(!0),h=(d=E(a)).next();case 3:if(h.done){f.B(0);break}return p=h.value,R(f,6),M(f,c.g.Yb().load(p),8);case 8:f.B(0);break;case 6:N(f);case 4:h=d.next(),f.B(3)}})}function wh(e,t,n){var i=null;t=E(t);for(var r=t.next();!r.done;r=t.next())if((r=r.value).parentElement==e){i=r;break}for(i||((i=document.createElement("canvas")).classList.add("shaka-canvas-container"),e.appendChild(i)),t=null,r=(n=E(n)).next();!r.done;r=n.next())if((r=r.value).parentElement==e){t=r;break}return{mj:i,jk:t}}S(T8,bG),T8.prototype.release=function(){this.j.stop(),this.j=null,bG.prototype.release.call(this)},$("shaka.ui.AdStatisticsButton",T8),T9.prototype.create=function(e,t){return new T8(e,t)},T1("ad_statistics",new T9),b$("ad_statistics",new T9),S(we,bG),$("shaka.ui.AirPlayButton",we),wi.prototype.create=function(e,t){return new we(e,t)},T1("airplay",new wi),T_("airplay",new wi),S(wr,bG),wr.prototype.mg=function(e,t){if("static"===(t=Object.assign({},e={type:"static",text:e,position:"top-right",color:"rgba(255, 255, 255, 0.7)",size:20,alpha:.7,interval:2e3,skip:500,displayDuration:2e3,transitionDuration:.5},t||e)).type){if(e=wa(this)){e.clearRect(0,0,this.g.width,this.g.height),e.globalAlpha=t.alpha,e.fillStyle=t.color,e.font=t.size+"px Arial";var n=e.measureText(t.text);switch(t.position){case"top-left":n=20;var i=t.size+20;break;case"top-right":n=this.g.width-n.width-20,i=t.size+20;break;case"bottom-left":n=20,i=this.g.height-20;break;case"bottom-right":n=this.g.width-n.width-20,i=this.g.height-20;break;default:n=(this.g.width-n.width)/2,i=(this.g.height+t.size)/2}e.fillText(t.text,n,i)}}else"dynamic"===t.type&&function(e,t){function n(){i.font=t.size+"px Arial";var n=i.measureText(t.text).width,r=t.size;return r=(n=[{left:20,top:r+20},{left:e.g.width-n-20,top:r+20}
1,{left:20,top:e.g.height-20},{left:e.g.width-n-20,top:e.g.height-20},{left:(e.g.width-n)/2,top:(e.g.height+r)/2}])[l],l=(l+1)%n.length,r}var i=e.g.getContext("2d"),r={left:0,top:0},a=0,o="fadeIn",s=Math.round(60*t.displayDuration),u=1/(Math.round(60*t.transitionDuration)/2),l=0;r=n(),e.h=requestAnimationFrame(function l(){if(e.h){switch(i.clearRect(0,0,e.g.width,e.g.height),o){case"fadeIn":(a=Math.min(t.alpha,a+u))>=t.alpha&&(o="display");break;case"display":--s<=0&&(o="fadeOut");break;case"fadeOut":(a=Math.max(0,a-u))<=0&&(o="transition",r=n(),s=Math.round(60*t.displayDuration),o="fadeIn")}a>0&&(i.globalAlpha=a,i.fillStyle=t.color,i.font=t.size+"px Arial",i.fillText(t.text,r.left,r.top)),e.h&&(e.h=requestAnimationFrame(l))}})}(this,t)},wr.prototype.dg=function(){this.h&&(cancelAnimationFrame(this.h),this.h=null);var e=wa(this);e&&e.clearRect(0,0,this.g.width,this.g.height)},wr.prototype.release=function(){var t=this;this.g&&this.g.parentNode&&this.g.parentNode.removeChild(this.g),this.i?(this.i.disconnect(),this.i=null):e.removeEventListener("resize",function(){return wo(t)}),bG.prototype.release.call(this)},$("shaka.ui.Watermark",wr),wr.prototype.removeWatermark=wr.prototype.dg,wr.prototype.setTextWatermark=wr.prototype.mg,(p=ws.prototype).destroy=function(e){e=void 0!==e&&e;var t=this;return F(function(n){return 1==n.g?t.g?M(n,t.g.destroy(e),2):n.B(2):4!=n.g?(t.g=null,t.j?M(n,t.j.destroy(),4):n.B(4)):void(t.j=null,t.i=null,L(n))})},p.Jh=function(){return"MOBILE"==eB().Oa()},p.Kh=function(){return"TV"==eB().Oa()},p.getConfiguration=function(){var e=wu(this);return um(e,this.h,wu(this),{},""),e},p.configure=function(t,n){2==arguments.length&&"string"==typeof t&&(t=uv(t,n));var i=Object.assign({},this.h);um(i,t,wu(this),{},"");var r=uy(i,this.h);if(Object.keys(r).length&&(this.h=i,this.g.configure(this.h),this.g.dispatchEvent(new ee("uiupdated")),(i=this.h.castSenderUrl)&&this.h.castReceiverAppId&&e.chrome&&!chrome.cast&&!this.Kh())){r=!1;for(var a=E(document.getElementsByTagName("script")),o=a.next();!o.done;o=a.next())if(o.value.src===i){r=!0;break}r||((r=document.createElement("script")).src=i,r.defer=!0,document.head.appendChild(r))}},p.Kk=function(){return this.g},p.tm=function(e){this.g.ii(e)},p.mg=function(e,t){e&&!this.i&&this.l&&this.g&&(this.i=new wr(this.l,this.g)),this.i&&this.i.mg(e,t)},p.dg=function(){this.i&&this.i.dg()},$("shaka.ui.Overlay",ws),ws.prototype.removeWatermark=ws.prototype.dg,ws.prototype.setTextWatermark=ws.prototype.mg,ws.prototype.setEnabled=ws.prototype.tm,ws.prototype.getControls=ws.prototype.Kk,ws.prototype.configure=ws.prototype.configure,ws.prototype.getConfiguration=ws.prototype.getConfiguration,ws.prototype.isSmartTV=ws.prototype.Kh,ws.prototype.isMobile=ws.prototype.Jh,ws.prototype.destroy=ws.prototype.destroy;var wp=0;ws.TrackLabelFormat={LANGUAGE:0,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var wf=0,wg=1;function wm(e,t){if(!e&&!t)return"";switch(e){case"mul":return t.resolve("MULTIPLE_LANGUAGES");case"und":return t.resolve("UNDETERMINED_LANGUAGE");case"zxx":return t.resolve("NOT_APPLICABLE")}var n=tp(e);return e in u0?u0[e]:n in u0?u0[n]+" ("+e+")":t.resolve("UNRECOGNIZED_LANGUAGE")+" ("+e+")"}function wv(t,n,i){function r(){return wy(l)}bG.call(this,t,n);var a,o,s,u,l=this;this.m=this.controls.l,a=this,o=i,a.button=a9(),a.button.classList.add("shaka-overflow-button"),a.icon=new bH(a.button,o),(o=a6("label")).classList.add("shaka-overflow-button-label"),o.classList.add("shaka-overflow-menu-only"),o.classList.add("shaka-overflow-button-label-inline"),a.nameSpan=a6("span"),o.appendChild(a.nameSpan),a.currentSelection=a6("span"),a.currentSelection.classList.add("shaka-current-selection-span"),o.appendChild(a.currentSelection),a.button.appendChild(o),a.parent.appendChild(a.button),s=this,s.menu=a6("div"),s.menu.classList.add("shaka-no-propagation"),s.menu.classList.add("shaka-show-controls-on-mouse-over"),s.menu.classList.add("shaka-settings-menu"),s.menu.classList.add("shaka-hidden"),s.backButton=a9(),s.backButton.classList.add("shaka-back-to-overflow-button"),s.menu.appendChild(s.backButton),s.eventManager.o(s.backButton,"click",function(){s.controls.Xc()}),s.u=new bH(s.backButton,"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q
111-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z"),s.backSpan=a6("span"),s.backButton.appendChild(s.backSpan),s.controls.i.appendChild(s.menu),u=this,u.parent.classList.contains("shaka-overflow-menu")&&(u.u.use("m432-480 156 156q11 11 11 28t-11 28q-11 11-28 11t-28-11L348-452q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l184-184q11-11 28-11t28 11q11 11 11 28t-11 28L432-480Z"),u.eventManager.o(u.menu,"click",function(){function e(e){return 0==e.classList.contains("shaka-hidden")}bY(u.menu,!1),bY(u.parent,!0),eh(u.parent.childNodes,e)&&ep(u.parent.childNodes,e)[0].focus(),TH(u.controls),wy(u)})),this.eventManager.o(this.button,"click",function(){l.controls.Ca()&&(l.menu.classList.contains("shaka-hidden")?(l.controls.dispatchEvent(new ee("submenuopen")),bY(l.menu,!0),bW(l.menu),wy(l)):bY(l.menu,!1))}),this.j=null,e.ResizeObserver?(this.j=new ResizeObserver(r),this.j.observe(this.controls.l)):this.eventManager.o(e,"resize",r)}function wy(t){var n=t.menu.getBoundingClientRect(),i=e.getComputedStyle(t.menu),r=parseFloat(i.paddingTop);i=parseFloat(i.paddingBottom);var a=t.m.getBoundingClientRect();t.menu.style.maxHeight=n.bottom-a.top-r-i+"px"}function wb(e,t){wv.call(this,e,t,"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T480-880q83 0 155.5 31.5t127 86q54.5 54.5 86 127T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 86T480-80Zm0-82q26-36 45-75t31-83H404q12 44 31 83t45 75Zm-104-16q-18-33-31.5-68.5T322-320H204q29 50 72.5 87t99.5 55Zm208 0q56-18 99.5-55t72.5-87H638q-9 38-22.5 73.5T584-178ZM170-400h136q-3-20-4.5-39.5T300-480q0-21 1.5-40.5T306-560H170q-5 20-7.5 39.5T160-480q0 21 2.5 40.5T170-400Zm216 0h188q3-20 4.5-39.5T580-480q0-21-1.5-40.5T574-560H386q-3 20-4.5 39.5T380-480q0 21 1.5 40.5T386-400Zm268 0h136q5-20 7.5-39.5T800-480q0-21-2.5-40.5T790-560H654q3 20 4.5 39.5T660-480q0 21-1.5 40.5T654-400Zm-16-240h118q-29-50-72.5-87T584-782q18 33 31.5 68.5T638-640Zm-234 0h152q-12-44-31-83t-45-75q-26 36-45 75t-31 83Zm-200 0h118q9-38 22.5-73.5T376-782q-56 18-99.5 55T204-640Z");var n=this;this.button.classList.add("shaka-language-button"),this.button.classList.add("shaka-tooltip-status"),this.menu.classList.add("shaka-audio-languages"),this.eventManager.o(this.localization,"locale-updated",function(){ww(n)}),this.eventManager.o(this.localization,"locale-changed",function(){ww(n)}),this.eventManager.o(this.player,"loading",function(){wT(n)}),this.eventManager.o(this.player,"loaded",function(){wT(n)}),this.eventManager.o(this.player,"unloading",function(){wT(n)}),this.eventManager.o(this.player,"audiotrackschanged",function(){wT(n)}),ww(this),wT(this)}function wT(e){!function(e,t,n,i,r,a,o,s){function u(e,t,n,i,r,u){return t=[e,t,u],o&&null!=i&&t.push(i),s&&l(e)&&r&&t.push(r),n&&3==a&&t.push(n),t.join(": ")}function l(e){return d.has(e)&&d.get(e).size>1}var c=e.find(function(e){return 1==e.active});e.length>1&&e[0].label&&3!=a&&function(e){function t(e){return{codecs:e.codecs,channelCount:e.channelCount,language:e.language,roles:e.roles,spatialAudio:e.spatialAudio}}var n=t(e[0]);return e.every(function(e){return JSON.stringify(t(e))===JSON.stringify(n)})}(e)&&(a=3);for(var d=new Map,h=E(e),p=h.next();!p.done;p=h.next())(p=p.value).codecs&&(d.has(p.language)||d.set(p.language,new Set),d.get(p.language).add(is(p.codecs)));h=bz(t),on(t),t.appendChild(h),h=new Set,c=c?u(c.language,c.roles.join(", "),c.label,c.channelsCount,c.codecs&&is(c.codecs),c.spatialAudio):"";var f=(e=E(e)).next();for(p={};!f.done;p={dc:void 0},f=e.next()){p.dc=f.value,f=p.dc.language;var g=p.dc.roles.join(", "),m=p.dc.label,v=p.dc.channelsCount,y=p.dc.codecs&&is(p.dc.codecs),b=p.dc.spatialAudio,T=u(f,g,m,v,y,b);if(!h.has(T)){h.add(T);var w=a9();w.addEventListener("click",function(e){return function(){n(e.dc)}}(p));var S=a6("span");w.appendChild(S),S.textContent=wm(f,r);var A="";switch(s&&o&&b&&("ec-3"==y||"ac-4"==y)?A+=" Dolby Atmos":(s&&l(f)&&(A+=function(e){var t="";return"aac"==e?t="AAC":"ac-3"===e?t="Dolby":"ec-3"===e?t="DD+":"ac-4"===e?t="Dolby AC-4":"opus"===e?t="Opus":"flac"===e&&(t="fLaC"),t?" "+t:t}(y)),o&&(A+=function(e){var t="";return e>=5&&(t=" "+r.resolve("SURROUND")),t}(v))),a){case wp:S.textContent+=A;break;case 1:S.textContent+=A,g?S.textContent=g:(ea("Track #"+JSON.stringify(p.dc)+" does not have a role, but the UI is configured to only show role."),S.textContent="?");break;case 2:S.textContent+=A,g&&(S.textContent+=": "+g);break;case 3:m?S.textContent=m:(ea("Track #"+JSON.stringify(p.dc)+" does not have a label, but the UI is configured to only show labels."),S.textContent="?")}T==c&&(w.appendChild(bX()),S.classList.add("shaka-chosen-item"),w.ariaSelected="true",i.textContent=S.textContent),t.appendChild(w)}}}(e.player.getAudioTracks()||[],e.menu,function(t){e.player.Kj(t);var n={preferredAudioLanguage:t.language,preferSpatialAudio:t.spatialAudio};t.label&&(n.preferredAudioLabel=t.label),t.channelsCount&&(n.preferredAudioChannelCount=t.channelsCount),e.player.configure(n)},e.currentSelection,e.localization,e.controls.g.trackLabelFormat,e.controls.g.showAudioChannelCountVariants,e.controls.g.showAudioCodec),bW(e.menu),e.controls.dispatchEvent(new ee("languageselectionupdated")),e.button.setAttribute("shaka-status",e.currentSelection.innerText),bY(e.button,e.menu.getElementsByTagName("button").length>2)}function ww(e){e.backButton.ariaLabel=e.localization.resolve("BACK"),e.button.ariaLabel=e.localization.resolve("LANGUAGE"),e.nameSpan.textContent=e.localization.resolve("LANGUAGE"),e.backSpan.textContent=e.localization.resolve("LANGUAGE")}function wS(){}function wA(e,t){bG.call(this,e,t);var n=this;this.h=this.controls.F,this.g=a9(),this.g.classList.add("shaka-cast-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",this.l=new bH(this.g,"M480-480Zm320 320H600q0-20-1.5-40t-4.5-40h206v-480H160v46q-20-3-40-4.5T80-680v-40q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160Zm-720 0v-120q50 0 85 35t35 85H80Zm200 0q0-83-58.5-141.5T80-360v-80q117 0 198.5 81.5T360-160h-80Zm160 0q0-75-28.5-140.5t-77-114q-48.5-48.5-114-77T80-52
10v-80q91 0 171 34.5T391-471q60 60 94.5 140T520-160h-80Z"),(e=a6("label")).classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),e.classList.add("shaka-simple-overflow-button-label-inline"),this.j=a6("span"),e.appendChild(this.j),this.i=a6("span"),this.i.classList.add("shaka-current-selection-span"),e.appendChild(this.i),this.g.appendChild(e),this.parent.appendChild(this.g),wk(this),wE(this),this.eventManager.o(this.localization,"locale-updated",function(){wk(n)}),this.eventManager.o(this.localization,"locale-changed",function(){wk(n)}),this.eventManager.o(this.g,"click",function(){var e,t;n.controls.Ca()&&(e=n,F(function(n){return 1==n.g?e.h.Pa()?(e.h.Yj(),n.B(0)):(R(n,3),e.g.disabled=!0,M(n,e.h.cast(),5)):3!=n.g?(e.g.disabled=!1,D(n,0)):void(t=N(n),e.g.disabled=!1,8004!=t.code&&e.controls.dispatchEvent(new ee("error",(new Map).set("detail",t))),L(n))}))}),this.eventManager.o(this.controls,"caststatuschanged",function(){wE(n)})}function wE(e){var t=e.h.Og()&&e.controls.ua,n=e.h.Pa();bY(e.g,t),e.l.use(n?"M720-600v240q0 17-11.5 28.5T680-320h-87q-8 0-14.5-4.5T569-337q-29-81-81.5-147T364-596q-16-10-11.5-27t21.5-17h306q17 0 28.5 11.5T720-600ZM320-160q-16 0-28-9.5T277-195q-11-63-56.5-107T112-357q-15-2-23.5-14.5T80-400q0-17 11-28.5t26-9.5q94 12 160.5 79T357-198q2 16-9 27t-28 11Zm160 0q-17 0-28.5-11T438-199q-14-128-104.5-217T115-518q-16-2-25.5-14T80-560q0-17 10.5-29t25.5-10q161 13 274 125.5T518-201q2 17-9.5 29T480-160Zm-340 0q-25 0-42.5-17.5T80-220q0-25 17.5-42.5T140-280q25 0 42.5 17.5T200-220q0 25-17.5 42.5T140-160Zm740-560v480q0 33-23.5 56.5T800-160H638q-17 0-28.5-11.5T598-200q0-17 11.5-28.5T638-240h162v-480H160v6q0 17-11.5 28.5T120-674q-17 0-28.5-11.5T80-714v-6q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720Z":"M480-480Zm320 320H600q0-20-1.5-40t-4.5-40h206v-480H160v46q-20-3-40-4.5T80-680v-40q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160Zm-720 0v-120q50 0 85 35t35 85H80Zm200 0q0-83-58.5-141.5T80-360v-80q117 0 198.5 81.5T360-160h-80Zm160 0q0-75-28.5-140.5t-77-114q-48.5-48.5-114-77T80-520v-80q91 0 171 34.5T391-471q60 60 94.5 140T520-160h-80Z"),t&&(e.g.ariaPressed=n?"true":"false"),wx(e)}function wx(e){e.i.textContent=e.h.Pa()?e.h.ag():e.localization.resolve("OFF")}function wk(e){e.g.ariaLabel=e.localization.resolve("CAST"),e.j.textContent=e.localization.resolve("CAST"),wx(e)}function wI(){}function wC(e,t){wv.call(this,e,t,"m400-200-182 91q-20 10-39-1.5T160-145v-495q0-33 23.5-56.5T240-720h320q33 0 56.5 23.5T640-640v495q0 23-19 34.5t-39 1.5l-182-91Zm360-40q-17 0-28.5-11.5T720-280v-520H320q-17 0-28.5-11.5T280-840q0-17 11.5-28.5T320-880h400q33 0 56.5 23.5T800-800v520q0 17-11.5 28.5T760-240Z");var n=this;this.button.classList.add("shaka-chapter-button"),this.menu.classList.add("shaka-chapters"),this.button.classList.add("shaka-tooltip-status"),this.g=[],this.h="und",this.eventManager.o(this.localization,"locale-updated",function(){wM(n),wR(n)}),this.eventManager.o(this.localization,"locale-changed",function(){wM(n),wR(n)}),this.eventManager.o(this.player,"unloading",function(){wL(n),n.h="und",n.g=[]}),this.eventManager.o(this.player,"trackschanged",function(){wR(n)}),wM(this),wR(this)}function wM(e){e.backButton.ariaLabel=e.localization.resolve("BACK"),e.button.ariaLabel=e.localization.resolve("CHAPTERS"),e.nameSpan.textContent=e.localization.resolve("CHAPTERS"),e.backSpan.textContent=e.localization.resolve("CHAPTERS")}function wL(e){var t=bz(e.menu);on(e.menu),e.menu.appendChild(t),bY(e.button,!1)}function wR(e){var t,n,i,r,a,o,s,u,l,c,d,h;F(function(p){switch(p.g){case 1:t=function(e,t){return!e&&!t||e.id===t.id&&e.title===t.title&&e.startTime===t.startTime&&e.endTime===t.endTime},n="und",i=[],a=(r=E(Array.from(e.localization.g))).next();case 2:if(a.done){p.B(4);break}if(n=a.value,!e.player){p.B(5);break}return M(p,e.player.sh(n),6);case 6:i=p.h||[];case 5:if(i.length){p.B(4);break}a=r.next(),p.B(2);break;case 4:if(i.length||(n="und",!e.player)){p.B(7);break}return M(p,e.player.sh(n),9);case 9:i=p.h||[];case 7:if(o=n!==e.h,s=e.g.length!==i.length||!e.g.some(function(e,n){return n=i.at(n),t(e,n)||i.some(function(n){return t(e,n)})}),e.h=n,e.g=i,i.length){if(o||s){for(l=(u=E(e.g)).next(),c={};!l.done;c={Qg:void 0},l=u.next())c.Qg=l.value,d=a9(),(h=a6("span")).classList.add("shaka-chapter"),h.textContent=c.Qg.t
1itle,d.appendChild(h),e.eventManager.o(d,"click",function(t){return function(){e.controls.Ca()&&(e.video.currentTime=t.Qg.startTime)}}(c)),e.menu.appendChild(d);bY(e.button,!0),bW(e.menu)}}else wL(e);L(p)}})}function wP(){}function wD(e,t){bG.call(this,e,t);var n=this;this.g=a9(),this.g.classList.add("shaka-fast-forward-button"),this.g.classList.add("shaka-tooltip-status"),this.g.setAttribute("shaka-status","1x"),new bH(this.g).use("M100-315v-330q0-18 12-29t28-11q5 0 11 1t11 5l248 166q9 6 13.5 14.5T428-480q0 10-4.5 18.5T410-447L162-281q-5 4-11 5t-11 1q-16 0-28-11t-12-29Zm400 0v-330q0-18 12-29t28-11q5 0 11 1t11 5l248 166q9 6 13.5 14.5T828-480q0 10-4.5 18.5T810-447L562-281q-5 4-11 5t-11 1q-16 0-28-11t-12-29Z"),this.parent.appendChild(this.g),wN(this),this.h=this.controls.g.fastForwardRates,this.eventManager.o(this.localization,"locale-updated",function(){wN(n)}),this.eventManager.o(this.localization,"locale-changed",function(){wN(n)}),this.eventManager.o(this.g,"click",function(){if(n.controls.Ca()&&n.video.duration){var e=n.h.indexOf(n.player.Za())+1;e=e!=n.h.length?n.h[e]:n.h[0],n.video.paused&&n.video.play(),n.player.uc(e),n.g.setAttribute("shaka-status",e+"x")}}),this.eventManager.o(this.player,"ratechange",function(){n.g.setAttribute("shaka-status",n.player.Za()+"x")})}function wN(e){e.g.ariaLabel=e.localization.resolve("FAST_FORWARD")}function wO(){}function w_(e,t){bG.call(this,e,t);var n=this;this.h=this.controls.u,this.g=a9(),this.g.classList.add("shaka-fullscreen-button"),this.g.classList.add("shaka-tooltip"),this.i=new bH(this.g,"M200-200h80q17 0 28.5 11.5T320-160q0 17-11.5 28.5T280-120H160q-17 0-28.5-11.5T120-160v-120q0-17 11.5-28.5T160-320q17 0 28.5 11.5T200-280v80Zm560 0v-80q0-17 11.5-28.5T800-320q17 0 28.5 11.5T840-280v120q0 17-11.5 28.5T800-120H680q-17 0-28.5-11.5T640-160q0-17 11.5-28.5T680-200h80ZM200-760v80q0 17-11.5 28.5T160-640q-17 0-28.5-11.5T120-680v-120q0-17 11.5-28.5T160-840h120q17 0 28.5 11.5T320-800q0 17-11.5 28.5T280-760h-80Zm560 0h-80q-17 0-28.5-11.5T640-800q0-17 11.5-28.5T680-840h120q17 0 28.5 11.5T840-800v120q0 17-11.5 28.5T800-640q-17 0-28.5-11.5T760-680v-80Z"),wU(this),this.parent.appendChild(this.g),wq(this),this.eventManager.o(this.localization,"locale-updated",function(){wq(n)}),this.eventManager.o(this.localization,"locale-changed",function(){wq(n)}),this.eventManager.o(this.g,"click",function(){return F(function(e){return n.controls.Ca()?M(e,n.controls.sg(),0):e.return()})}),this.eventManager.o(document,"fullscreenchange",function(){n.i.use(n.controls.wb()?"M240-240h-80q-17 0-28.5-11.5T120-280q0-17 11.5-28.5T160-320h120q17 0 28.5 11.5T320-280v120q0 17-11.5 28.5T280-120q-17 0-28.5-11.5T240-160v-80Zm480 0v80q0 17-11.5 28.5T680-120q-17 0-28.5-11.5T640-160v-120q0-17 11.5-28.5T680-320h120q17 0 28.5 11.5T840-280q0 17-11.5 28.5T800-240h-80ZM240-720v-80q0-17 11.5-28.5T280-840q17 0 28.5 11.5T320-800v120q0 17-11.5 28.5T280-640H160q-17 0-28.5-11.5T120-680q0-17 11.5-28.5T160-720h80Zm480 0h80q17 0 28.5 11.5T840-680q0 17-11.5 28.5T800-640H680q-17 0-28.5-11.5T640-680v-120q0-17 11.5-28.5T680-840q17 0 28.5 11.5T720-800v80Z":"M200-200h80q17 0 28.5 11.5T320-160q0 17-11.5 28.5T280-120H160q-17 0-28.5-11.5T120-160v-120q0-17 11.5-28.5T160-320q17 0 28.5 11.5T200-280v80Zm560 0v-80q0-17 11.5-28.5T800-320q17 0 28.5 11.5T840-280v120q0 17-11.5 28.5T800-120H680q-17 0-28.5-11.5T640-160q0-17 11.5-28.5T680-200h80ZM200-760v80q0 17-11.5 28.5T160-640q-17 0-28.5-11.5T120-680v-120q0-17 11.5-28.5T160-840h120q17 0 28.5 11.5T320-800q0 17-11.5 28.5T280-760h-80Zm560 0h-80q-17 0-28.5-11.5T640-800q0-17 11.5-28.5T680-840h120q17 0 28.5 11.5T840-800v120q0 17-11.5 28.5T800-640q-17 0-28.5-11.5T760-680v-80Z"),wq(n)}),this.eventManager.o(this.h,"loadedmetadata",function(){wU(n)}),this.eventManager.o(this.h,"loadeddata",function(){wU(n)}),this.eventManager.o(this.adManager,"ad-started",function(){wU(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){wU(n)})}function wU(e){e.controls.ye()?e.g.classList.remove("shaka-hidden"):e.g.classList.add("shaka-hidden")}function wq(e){var t=e.controls.wb()?"EXIT_FULL_SCREEN":"FULL_SCREEN";e.g.ariaLabel=e.localization.resolve(t)}function wj(){}function wB(e,t){bG.call(this,e,t);var n=this;this.g=a9(),this.g.classList.add("shaka-loop-button"),this.g.classList.add("shaka-tooltip"),this.m=new bH(this.g,"m274-200 34 34q12 12 11.5 28T308-110q-12 12-28.5 12.5T251-109L148-212q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l103-103q12-12 28.5-11.5T308-370q11 12 11.5 28T308-314l-34 34h406v-120q0-17 11.5-28.5T720-440q17 0 28.5 11.5T760-400v120q0 33-23.5 56.5T680-200H274Zm412-480H280v120q0 17-11.5 28.5T240-520q-17 0-28.5-11.5T200-560v-120q0-33 23.5-56.5T280-760h406l-34-34q-12-12-11.5-28t11.5-28q12-12 28.5-12.5T709-851l103 103q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L709-589q-12 12-28.5 11.5T652-590q-11-12-11.5-28t11.5-28l34-34Z"),(e=a6("label")).classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),e.classList.add("shaka-simple-overflow-button-label-inline"),this.j=a6("span"),this.j.textContent=this.localization.resolve("LOOP"),e.appendChild(this.j),this.i=a6("span"),this.i.classList.add("shaka-current-selection-span"),e.appendChild(this.i),this.g.appendChild(e),wF(this),this.parent.appendChild(this.g),this.eventManager.o(this.localization,"locale-updated",function(){wF(n)}),this.eventManager.o(this.localization,"locale-changed",function(){wF(n)}),this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&(n.video.loop=!n.video.loop,n.h.Ka(),n.h.xa(1))}),this.l=this.video.loop,this.h=new iA(function(){n.l!=n.video.loop&&(wF(n),n.l=n.video.loop)}),this.h.xa(1),this.eventManager.o(this.player,"unloading",function(){wV(n)}),this.eventManager.o(this.player,"loaded",function(){wV(n)}),this.eventManager.o(this.player,"manifestupdated",function(){wV(n)}),this.eventManager.o(this.video,"durationchange",function(){wV(n)})}function wF(e){e.j.textContent=e.localization.resolve("LOOP"),e.i.textContent=e.localization.resolve(e.video.loop?"ON":"OFF"),e.m.use(e.video.loop?"M120-40q-33 0-56.5-23.5T40-120v-720q0-33 23.5-56.5T120-920h720q33 0 56.5 23.5T920-840v720q0 33-23.5 56.5T840-40H120Zm154-160h406q33 0 56.5-23.5T760-280v-120q0-17-11.5-28.5T720-440q-17 0-28.5 11.5T680-400v120H274l34-34q12-12 11.5-28T308-370q-12-12-28.5-12.5T251-371L148-268q-6 6-8.5 13t-2.5 15q0 8 2.5 15t8.5 13l103 103q12 12 28.5 11.5T308-110q11-12 11.5-28T308-166l-34-34Zm412-480-34 34q-12 12-11.5 28t11.5 28q12 12 28.5 12.5T709-589l103-103q6-6 8.5-13t2.5-15q0-8-2.5-15t-8.5-13L709-851q-12-12-28.5-11.5T652-850q-11 12-11.5 28t11.5 28l34 34H280q-33 0-56.5 23.5T200-680v120q0 17 11.5 28.5T240-520q17 0 28.5-11.5T280-560v-120h406Z":"m274-200 34 34q12 12 11.5 28T308-110q-12 12-28.5 12.5T251-109L148-212q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l103-103q12-12 28.5-11.5T308-370q11 12 11.5 28T308-314l-34 34h406v-120q0-17 11.5-28.5T720-440q17 0 28.5 11.5T760-400v120q0 33-23.5 56.5T680-200H274Zm412-480H280v120q0 17-11.5 28.5T240-520q-17 0-28.5-11.5T200-560v-120q0-33 23.5-56.5T280-760h406l-34-34q-12-12-11.5-28t11.5-28q12-12 28.5-12.5T709-851l103 103q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L709-589q-12 12-28.5 11.5T652-590q-11-12-11.5-28t11.5-28l34-34Z"),e.g.ariaLabel=e.localization.resolve(e.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}function wV(e){bY(e.g,!e.player.U())}function wG(){}function wH(e,t){bG.call(this,e,t);var n=this;this.g=a9(),this.g.classList.add("shaka-mute-button"),this.g.classList.add("shaka-tooltip"),this.j=new bH(this.g,"M760-481q0-83-44-151.5T598-735q-15-7-22-21.5t-2-29.5q6-16 21.5-23t31.5 0q97 43 155 131.5T840-481q0 108-58 196.5T627-153q-16 7-31.5 0T574-176q-5-15 2-29.5t22-21.5q74-34 118-102.5T760-481ZM280-360H160q-17 0-28.5-11.5T120-400v-160q0-17 11.5-28.5T160-600h120l132-132q19-19 43.5-8.5T480-703v446q0 27-24.5 37.5T412-228L280-360Zm380-120q0 42-19 79.5T591-339q-10 6-20.5.5T560-356v-250q0-12 10.5-17.5t20.5.5q31 25 50 63t19 80Z"),(e=a6("label")).classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),this.h=a6("span"),this.h.textContent=this.localization.resolve("MUTE"),e.appendChild(this.h),this.i=a6("span"),this.i.classList.add("shaka-current-selection-span"),e.appendChild(this.i),this.g.appendChild(e),this.parent.appendChild(this.g),wz(this),wK(this),this.eventManager.o(this.localization,"locale-updated",function(){wz(n)}),this.eventManager.o(this.localization,"locale-changed",function(){wz(n)}),this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&(n.ad&&n.ad.isLinear()?n.ad.setMuted(!n.ad.isMuted()):n.video.muted||0!=n.video.volume?n.video.muted=!n.video.muted:n.video.volume=1)}),this.eventManager.o(this.video,"volumechange",function(){wz(n),wK(n)}),this.eventManager.o(this.player,"loading",function(){wz(n),wK(n)}),this.eventManager.o(this.player,"loaded",function(){wW(n)}),this.eventManager.o(this.player,"unloading",function(){wW(n)}),this.eventManager.o(this.player,"trackschanged",function(){wW(n)}),this.eventManager.o(this.controls,"caststatuschanged",function(){wz(n),wK(n)}),this.eventManager.o(this.adManager,"ad-volume-changed",function(){wz(n),wK(n)}),this.eventManager.o(this.adManager,"ad-muted",function(){wz(n),wK(n)}),this.eventManager.o(this.adManager,"ad-started",function(){wW(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.ad=null,wz(n),wK(n),wW(n)}),wW(this)}
1function wz(e){var t=e.ad?e.ad.isMuted()?"UNMUTE":"MUTE":e.video.muted||0==e.video.volume?"UNMUTE":"MUTE";e.g.ariaLabel=e.localization.resolve(t),e.h.textContent=e.localization.resolve(t)}function wK(e){var t=e.ad?e.ad.isMuted()?"M671-177q-11 7-22 13t-23 11q-15 7-30.5 0T574-176q-6-15 1.5-29.5T598-227q4-2 7.5-4t7.5-4L480-368v111q0 27-24.5 37.5T412-228L280-360H160q-17 0-28.5-11.5T120-400v-160q0-17 11.5-28.5T160-600h88L84-764q-11-11-11-28t11-28q11-11 28-11t28 11l680 680q11 11 11 28t-11 28q-11 11-28 11t-28-11l-93-93Zm89-304q0-83-44-151.5T598-735q-15-7-22-21.5t-2-29.5q6-16 21.5-23t31.5 0q97 43 155 131t58 197q0 33-6 65.5T817-353q-8 22-24.5 27.5t-30.5.5q-14-5-22.5-18t-.5-30q11-26 16-52.5t5-55.5ZM591-623q33 21 51 63t18 80v10q0 5-1 10-2 13-14 17t-22-6l-51-51q-6-6-9-13.5t-3-15.5v-77q0-12 10.5-17.5t20.5.5Zm-201-59q-6-6-6-14t6-14l22-22q19-19 43.5-8.5T480-703v63q0 14-12 19t-22-5l-56-56Z":"M760-481q0-83-44-151.5T598-735q-15-7-22-21.5t-2-29.5q6-16 21.5-23t31.5 0q97 43 155 131.5T840-481q0 108-58 196.5T627-153q-16 7-31.5 0T574-176q-5-15 2-29.5t22-21.5q74-34 118-102.5T760-481ZM280-360H160q-17 0-28.5-11.5T120-400v-160q0-17 11.5-28.5T160-600h120l132-132q19-19 43.5-8.5T480-703v446q0 27-24.5 37.5T412-228L280-360Zm380-120q0 42-19 79.5T591-339q-10 6-20.5.5T560-356v-250q0-12 10.5-17.5t20.5.5q31 25 50 63t19 80Z":e.video.muted||0==e.video.volume?"M671-177q-11 7-22 13t-23 11q-15 7-30.5 0T574-176q-6-15 1.5-29.5T598-227q4-2 7.5-4t7.5-4L480-368v111q0 27-24.5 37.5T412-228L280-360H160q-17 0-28.5-11.5T120-400v-160q0-17 11.5-28.5T160-600h88L84-764q-11-11-11-28t11-28q11-11 28-11t28 11l680 680q11 11 11 28t-11 28q-11 11-28 11t-28-11l-93-93Zm89-304q0-83-44-151.5T598-735q-15-7-22-21.5t-2-29.5q6-16 21.5-23t31.5 0q97 43 155 131t58 197q0 33-6 65.5T817-353q-8 22-24.5 27.5t-30.5.5q-14-5-22.5-18t-.5-30q11-26 16-52.5t5-55.5ZM591-623q33 21 51 63t18 80v10q0 5-1 10-2 13-14 17t-22-6l-51-51q-6-6-9-13.5t-3-15.5v-77q0-12 10.5-17.5t20.5.5Zm-201-59q-6-6-6-14t6-14l22-22q19-19 43.5-8.5T480-703v63q0 14-12 19t-22-5l-56-56Z":"M760-481q0-83-44-151.5T598-735q-15-7-22-21.5t-2-29.5q6-16 21.5-23t31.5 0q97 43 155 131.5T840-481q0 108-58 196.5T627-153q-16 7-31.5 0T574-176q-5-15 2-29.5t22-21.5q74-34 118-102.5T760-481ZM280-360H160q-17 0-28.5-11.5T120-400v-160q0-17 11.5-28.5T160-600h120l132-132q19-19 43.5-8.5T480-703v446q0 27-24.5 37.5T412-228L280-360Zm380-120q0 42-19 79.5T591-339q-10 6-20.5.5T560-356v-250q0-12 10.5-17.5t20.5.5q31 25 50 63t19 80Z";e.j.use(t)}function wW(e){var t=!0;e.ad&&e.ad.isLinear()?t=!0:e.player.If()&&(t=!1),bY(e.g,t)}function wX(){}function wY(t,n){bG.call(this,t,n);var i=this;this.j=this.controls.u,this.g=a9(),this.g.classList.add("shaka-pip-button"),this.g.classList.add("shaka-tooltip"),this.l=new bH(this.g,"M120-520q-17 0-28.5-11.5T80-560q0-17 11.5-28.5T120-600h104L80-743q-12-12-12-28.5T80-800q12-12 28.5-12t28.5 12l143 144v-104q0-17 11.5-28.5T320-800q17 0 28.5 11.5T360-760v200q0 17-11.5 28.5T320-520H120Zm40 360q-33 0-56.5-23.5T80-240v-160q0-17 11.5-28.5T120-440q17 0 28.5 11.5T160-400v160h280q17 0 28.5 11.5T480-200q0 17-11.5 28.5T440-160H160Zm680-280q-17 0-28.5-11.5T800-480v-240H480q-17 0-28.5-11.5T440-760q0-17 11.5-28.5T480-800h320q33 0 56.5 23.5T880-720v240q0 17-11.5 28.5T840-440ZM600-160q-17 0-28.5-11.5T560-200v-120q0-17 11.5-28.5T600-360h240q17 0 28.5 11.5T880-320v120q0 17-11.5 28.5T840-160H600Z"),(t=a6("label")).classList.add("shaka-overflow-button-label"),t.classList.add("shaka-overflow-menu-only"),t.classList.add("shaka-simple-overflow-button-label-inline"),this.i=a6("span"),this.i.textContent=this.localization.resolve("PICTURE_IN_PICTURE"),t.appendChild(this.i),this.h=a6("span"),this.h.classList.add("shaka-current-selection-span"),t.appendChild(this.h),this.g.appendChild(t),wQ(this),this.parent.appendChild(this.g),this.controls.Hf()||bY(this.g,!1),this.eventManager.o(this.localization,"locale-updated",function(){wQ(i)}),this.eventManager.o(this.localization,"locale-changed",function(){wQ(i)}),this.eventManager.o(this.g,"click",function(){i.controls.Ca()&&i.controls.dd()}),this.eventManager.o(this.j,"enterpictureinpicture",function(){wZ(i)}),this.eventManager.o(this.j,"leavepictureinpicture",function(){wJ(i)}),this.eventManager.o(this.controls,"caststatuschanged",function(){w$(i)}),this.eventManager.o(this.player,"trackschanged",function(){w$(i)}),"documentPictureInPicture"in e&&this.eventManager.o(e.documentPictureInPicture,"enter",function(e){wZ(i),i.eventManager.qa(e.window,"pagehide",function(){wJ(i)})})}function wZ(e){e.l.use("M160-160q-33 0-56.5-23.5T80-240v-240q0-17 11.5-28.5T120-520q17 0 28.5 11.5T160-480v240h640v-480H480q-17 0-28.5-11.5T440-760q0-17 11.5-28.5T480-800h320q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm400-263 95 95q12 12 28 12t28-12q12-12 12-28.5T711-385l-95-95h64q17 0 28.5-11.5T720-520q0-17-11.5-28.5T680-560H520q-17 0-28.5 11.5T480-520v160q0 17 11.5 28.5T520-320q17 0 28.5-11.5T560-360v-63ZM120-600q-17 0-28.5-11.5T80-640v-120q0-17 11.5-28.5T120-800h200q17 0 28.5 11.5T360-760v120q0 17-11.5 28.5T320-600H120Zm360 120Z"),e.g.ariaLabel=e.localization.resolve("EXIT_PICTURE_IN_PICTURE"),e.h.textContent=e.localization.resolve("ON")}function wJ(e){e.l.use("M120-520q-17 0-28.5-11.5T80-560q0-17 11.5-28.5T120-600h104L80-743q-12-12-12-28.5T80-800q12-12 28.5-12t28.5 12l143 144v-104q0-17 11.5-28.5T320-800q17 0 28.5 11.5T360-760v200q0 17-11.5 28.5T320-520H120Zm40 360q-33 0-56.5-23.5T80-240v-160q0-17 11.5-28.5T120-440q17 0 28.5 11.5T160-400v160h280q17 0 28.5 11.5T480-200q0 17-11.5 28.5T440-160H160Zm680-280q-17 0-28.5-11.5T800-480v-240H480q-17 0-28.5-11.5T440-760q0-17 11.5-28.5T480-800h320q33 0 56.5 23.5T880-720v240q0 17-11.5 28.5T840-440ZM600-160q-17 0-28.5-11.5T560-200v-120q0-17 11.5-28.5T600-360h240q17 0 28.5 11.5T880-320v120q0 17-11.5 28.5T840-160H600Z"),e.g.ariaLabel=e.localization.resolve("ENTER_PICTURE_IN_PICTURE"),e.h.textContent=e.localization.resolve("OFF")}function wQ(e){e.i.textContent=e.localization.resolve("PICTURE_IN_PICTURE");var t=e.controls.Nd();e.g.ariaLabel=e.localization.resolve(t?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE"),e.h.textContent=e.localization.resolve(t?"ON":"OFF")}function w$(e){F(function(t){return e.controls.Hf()?e.player&&e.player.Md()?(bY(e.g,!1),e.controls.Nd()?M(t,e.controls.dd(),0):t.B(0)):(bY(e.g,!0),t.B(0)):(bY(e.g,!1),e.controls.Nd()?M(t,e.controls.dd(),0):t.B(0))})}function w0(){}function w1(e,t){wv.call(this,e,t,"m426-330 195-125q14-9 14-25t-14-25L426-630q-15-10-30.5-1.5T380-605v250q0 18 15.5 26.5T426-330ZM121-440q17 0 3
10.5 11t18.5 28q6 23 14.5 43.5T204-317q9 15 7.5 32T198-256q-11 11-27 10t-25-14q-22-31-37-66.5T86-400q-3-16 7.5-28t27.5-12Zm77-264q12 12 13 29t-7 31q-11 20-19.5 41T170-559q-5 17-18.5 28T121-520q-17 0-27.5-12.5T87-561q8-38 23-73.5t36-66.5q9-13 25-13.5t27 10.5Zm56 505q12-13 29.5-14t32.5 8q20 11 40.5 20t42.5 15q17 5 28 18t11 30q0 17-12.5 27T397-88q-38-8-71.5-23T260-146q-14-9-15.5-25t9.5-28Zm186-639q0 17-10.5 30T402-790q-23 6-44 14.5T317-755q-15 9-32.5 7.5T255-761q-12-12-10.5-28.5T260-815q32-20 66.5-34.5T399-872q16-3 28.5 7t12.5 27Zm360 358q0-113-69.5-199.5T553-792q-15-4-24-17t-9-29q0-16 11-26.5t25-7.5q140 28 232 137t92 255q0 146-92 255T556-88q-14 3-25-7.5T520-122q0-16 9-29t24-17q108-26 177.5-112.5T800-480Z");var n=this;this.button.classList.add("shaka-playbackrate-button"),this.menu.classList.add("shaka-playback-rates"),this.button.classList.add("shaka-tooltip-status"),Array.from(e.classList).includes("shaka-overflow-menu")||(this.g=a6("span"),this.g.classList.add("shaka-overflow-playback-rate-mark"),this.button.appendChild(this.g)),this.eventManager.o(this.localization,"locale-updated",function(){w2(n)}),this.eventManager.o(this.localization,"locale-changed",function(){w2(n)}),this.eventManager.o(this.player,"loaded",function(){w5(n)}),this.eventManager.o(this.player,"ratechange",function(){w5(n)}),w2(this),function(e){for(var t=E(e.controls.g.playbackRates),n=t.next(),i={};!n.done;i={$f:void 0},n=t.next()){i.$f=n.value,n=a9();var r=a6("span");r.textContent=i.$f+"x",n.appendChild(r),e.eventManager.o(n,"click",function(t){return function(){t.$f==e.video.defaultPlaybackRate?e.player.Cd():e.player.uc(t.$f,!1)}}(i)),e.menu.appendChild(n)}bW(e.menu)}(this),w5(this)}function w2(e){e.backButton.ariaLabel=e.localization.resolve("BACK"),e.button.ariaLabel=e.localization.resolve("PLAYBACK_RATE"),e.nameSpan.textContent=e.localization.resolve("PLAYBACK_RATE"),e.backSpan.textContent=e.localization.resolve("PLAYBACK_RATE")}function w5(e){var t=e.player.Za(),n=bK(e.menu,"material-svg-icon shaka-chosen-item");if(n){var i=n.parentElement;i.removeAttribute("aria-selected");var r=i.getElementsByTagName("span")[0];r&&r.classList.remove("shaka-chosen-item"),i.removeChild(n)}(n=Array.from(e.menu.querySelectorAll("span")).find(function(e){return e.textContent==t+"x"}))&&((i=n.parentElement).appendChild(bX()),i.ariaSelected="true",n.classList.add("shaka-chosen-item")),e.currentSelection.textContent=t+"x",e.button.setAttribute("shaka-status",t+"x"),e.g&&(e.g.textContent=t+"x")}function w3(){}function w4(e,t){bG.call(this,e,t);var n=this;this.g=a9(),this.g.classList.add("shaka-current-time"),w8(this,"0:00"),this.parent.appendChild(this.g),this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&n.player.U()&&(n.video.currentTime=n.player.wa().end)}),this.eventManager.o(this.player,"loading",function(){bY(n.g,!0)}),this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var e=n.controls.V,t=n.controls.uh(),i=n.player.wa(),r=i.end-i.start;isFinite(r)?n.player.U()?(t=Math.max(0,Math.floor(i.end-t)),r=r>=3600,t>=1||e?(w8(n,"- "+bZ(t,r)),n.g.disabled=!1):(w8(n,n.localization.resolve("LIVE")),n.g.disabled=!0)):(e=r>=3600,t=bZ(Math.max(0,t-i.start),e),r&&(t+=" / "+bZ(r,e)),w8(n,t),n.g.disabled=!0):(w8(n,n.localization.resolve("LIVE")),n.g.disabled=!0)}),this.eventManager.o(this.player,"trackschanged",function(){n.player.U()&&(n.g.ariaLabel=n.localization.resolve("SKIP_TO_LIVE"))}),this.eventManager.o(this.adManager,"ad-started",function(){bY(n.g,!n.ad.isLinear())}),this.eventManager.o(this.adManager,"ad-stopped",function(){bY(n.g,!0)})}function w8(e,t){t!=e.g.textContent&&(e.g.textContent=t)}function w6(){}function w7(e,t){bG.call(this,e,t);var n=this;this.g=a9(),this.g.classList.add("shaka-recenter-vr-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",new bH(this.g,"M479-359q-50 0-85-35t-35-85q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35Zm-57 222-85-85q-12-12-11.5-28.5T338-279q12-12 28.5-12t28.5 12l85 86 85-85q11-11 28-11t28 11q11 11 11 28t-11 28l-85 85q-12 12-27 18t-30 6q-15 0-30-6t-27-18ZM221-337l-85-85q-12-12-18-27t-6-30q0-15 6-30t18-27l85-85q12-12 28.5-12t28.5 12q12 12 12 28.5T278-564l-86 86 85 85q11 11 11 28t-11 28q-11 11-28 11t-28-11Zm116-401 85-85q12-12 27-18t30-6q15 0 30 6t27 18l85 85q12 12 12 28t-12 28q-12 12-28.5 12T564-682l-86-85-85 85q-11 11-28 11t-28-11q-11-11-11-28t11-28Zm344 343 85-85-85-85q-11-11-11-28t11-28q
111-11 28-11t28 11l85 85q12 12 18 27t6 30q0 15-6 30t-18 27l-85 85q-12 12-28 11.5T681-338q-12-12-12-28.5t12-28.5Z"),(e=a6("label")).classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),this.i=a6("span"),e.appendChild(this.i),this.h=a6("span"),this.h.classList.add("shaka-current-selection-span"),e.appendChild(this.h),this.g.appendChild(e),this.parent.appendChild(this.g),w9(this),this.eventManager.o(this.localization,"locale-updated",function(){w9(n)}),this.eventManager.o(this.localization,"locale-changed",function(){w9(n)});var i=this.controls.D;this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&(i.g?Tk(i.g):ea("Not playing VR content"))}),this.eventManager.o(i,"vrstatuschanged",function(){bY(n.g,n.controls.Zb())}),bY(this.g,this.controls.Zb())}function w9(e){e.g.ariaLabel=e.localization.resolve("RECENTER_VR"),e.i.textContent=e.localization.resolve("RECENTER_VR")}function Se(){}function St(e,t){bG.call(this,e,t);var n=this;this.i=eB().og(),this.g=a9(),this.g.classList.add("shaka-remote-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",this.l=new bH(this.g,this.i?"M80-280v-480q0-33 23.5-56.5T160-840h640q33 0 56.5 23.5T880-760v480q0 33-23.5 56.5T800-200h-80q-17 0-28.5-11.5T680-240q0-17 11.5-28.5T720-280h80v-480H160v480h80q17 0 28.5 11.5T280-240q0 17-11.5 28.5T240-200h-80q-33 0-56.5-23.5T80-280Zm232 160q-14 0-22-9.5t-8-20.5q0-5 2-10.5t7-10.5l161-161q6-6 13-9t15-3q8 0 15 3t13 9l161 161q5 5 7 10.5t2 10.5q0 11-8 20.5t-22 9.5H312Zm168-360Z":"M480-480Zm320 320H600q0-20-1.5-40t-4.5-40h206v-480H160v46q-20-3-40-4.5T80-680v-40q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160Zm-720 0v-120q50 0 85 35t35 85H80Zm200 0q0-83-58.5-141.5T80-360v-80q117 0 198.5 81.5T360-160h-80Zm160 0q0-75-28.5-140.5t-77-114q-48.5-48.5-114-77T80-520v-80q91 0 171 34.5T391-471q60 60 94.5 140T520-160h-80Z"),(e=a6("label")).classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),this.m=a6("span"),e.appendChild(this.m),this.j=a6("span"),this.j.classList.add("shaka-current-selection-span"),e.appendChild(this.j),this.g.appendChild(e),this.parent.appendChild(this.g),this.h=-1,Si(this),bY(this.g,!1),this.video.remote?(this.eventManager.o(this.localization,"locale-updated",function(){Si(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Si(n)}),this.eventManager.o(this.controls,"caststatuschanged",function(){Sn(n)}),this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&n.video.remote.prompt().catch(function(){})}),this.eventManager.o(this.video.remote,"connect",function(){Sn(n),Sr(n)}),this.eventManager.o(this.video.remote,"connecting",function(){Sn(n),Sr(n)}),this.eventManager.o(this.video.remote,"disconnect",function(){Sn(n),Sr(n)}),this.eventManager.o(this.player,"loaded",function(){Sn(n)}),Sn(this,!0),Sr(this)):this.g.classList.add("shaka-hidden")}function Sn(e,t){var n;t=void 0!==t&&t,F(function(i){switch(i.g){case 1:if(e.controls.F.Og()&&e.controls.ua||!e.video.remote){bY(e.g,!1),-1!=e.h&&(e.video.remote.cancelWatchAvailability(e.h),e.h=-1),i.B(0);break}if("disconnected"==e.video.remote.state||t){if(n=function(t){if(e.player){var n=e.video.disableRemotePlayback,i=!0;eB().og()&&e.player.Ac()==c5&&"HLS"!=e.player.yh()&&(i=!1),bY(e.g,i&&t&&!n)}else bY(e.g,!1)},R(i,7),-1==e.h){i.B(9);break}return M(i,e.video.remote.cancelWatchAvailability(e.h),10)}if(bY(e.g,!0),-1==e.h){i.B(0);break}return M(i,e.video.remote.cancelWatchAvailability(e.h),6);case 6:e.h=-1,i.B(0);break;case 10:e.h=-1;case 9:D(i,8);break;case 7:N(i);case 8:return R(i,11),M(i,e.video.remote.watchAvailability(n),13);case 13:e.h=i.h,D(i,0);break;case 11:N(i),n(!0),L(i)}})}function Si(e){var t=e.i?e.localization.resolve("AIRPLAY"):e.localization.resolve("CAST");e.g.ariaLabel=t,e.m.textContent=t}function Sr(e){e.i||("disconnected"==e.video.remote.state?e.l.use("M480-480Zm320 320H600q0-20-1.5-40t-4.5-40h206v-480H160v46q-20-3-40-4.5T80-680v-40q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160Zm-720 0v-120q50 0 85 35t35 85H80Zm200 0q0-83-58.5-141.5T80-360v-80q117 0 198.5 81.5T360-160h-80Zm160 0q0-75-28.5-140.5t-77-114q-48.5-48.5-114-77T80-52
10v-80q91 0 171 34.5T391-471q60 60 94.5 140T520-160h-80Z"):e.l.use("M720-600v240q0 17-11.5 28.5T680-320h-87q-8 0-14.5-4.5T569-337q-29-81-81.5-147T364-596q-16-10-11.5-27t21.5-17h306q17 0 28.5 11.5T720-600ZM320-160q-16 0-28-9.5T277-195q-11-63-56.5-107T112-357q-15-2-23.5-14.5T80-400q0-17 11-28.5t26-9.5q94 12 160.5 79T357-198q2 16-9 27t-28 11Zm160 0q-17 0-28.5-11T438-199q-14-128-104.5-217T115-518q-16-2-25.5-14T80-560q0-17 10.5-29t25.5-10q161 13 274 125.5T518-201q2 17-9.5 29T480-160Zm-340 0q-25 0-42.5-17.5T80-220q0-25 17.5-42.5T140-280q25 0 42.5 17.5T200-220q0 25-17.5 42.5T140-160Zm740-560v480q0 33-23.5 56.5T800-160H638q-17 0-28.5-11.5T598-200q0-17 11.5-28.5T638-240h162v-480H160v6q0 17-11.5 28.5T120-674q-17 0-28.5-11.5T80-714v-6q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720Z"))}function Sa(){}function So(e,t){wv.call(this,e,t,"M480-120q-17 0-28.5-11.5T440-160v-160q0-17 11.5-28.5T480-360q17 0 28.5 11.5T520-320v40h280q17 0 28.5 11.5T840-240q0 17-11.5 28.5T800-200H520v40q0 17-11.5 28.5T480-120Zm-320-80q-17 0-28.5-11.5T120-240q0-17 11.5-28.5T160-280h160q17 0 28.5 11.5T360-240q0 17-11.5 28.5T320-200H160Zm160-160q-17 0-28.5-11.5T280-400v-40H160q-17 0-28.5-11.5T120-480q0-17 11.5-28.5T160-520h120v-40q0-17 11.5-28.5T320-600q17 0 28.5 11.5T360-560v160q0 17-11.5 28.5T320-360Zm160-80q-17 0-28.5-11.5T440-480q0-17 11.5-28.5T480-520h320q17 0 28.5 11.5T840-480q0 17-11.5 28.5T800-440H480Zm160-160q-17 0-28.5-11.5T600-640v-160q0-17 11.5-28.5T640-840q17 0 28.5 11.5T680-800v40h120q17 0 28.5 11.5T840-720q0 17-11.5 28.5T800-680H680v40q0 17-11.5 28.5T640-600Zm-480-80q-17 0-28.5-11.5T120-720q0-17 11.5-28.5T160-760h320q17 0 28.5 11.5T520-720q0 17-11.5 28.5T480-680H160Z");var n,i=this;this.button.classList.add("shaka-resolution-button"),this.button.classList.add("shaka-tooltip-status"),this.menu.classList.add("shaka-resolutions"),this.h=a6("span"),this.h.classList.add("shaka-current-auto-quality"),this.h.style.display="none",this.i=a6("sup"),this.i.classList.add("shaka-current-quality-mark"),this.i.style.display="none",Array.from(e.classList).includes("shaka-overflow-menu")?this.parent.parentElement&&(this.g=(n=(n=this.parent.parentElement).getElementsByClassName("shaka-overflow-quality-mark")).length?n[0]:null):(this.g=a6("span"),this.g.classList.add("shaka-overflow-playback-rate-mark"),this.button.appendChild(this.g)),e=a6("span"),this.button.childNodes[1].appendChild(e),e.appendChild(this.currentSelection),e.appendChild(this.h),e.appendChild(this.i),this.eventManager.o(this.localization,"locale-updated",function(){Sp(i)}),this.eventManager.o(this.localization,"locale-changed",function(){Sp(i)}),this.eventManager.o(this.player,"loading",function(){Sl(i),Ss(i)}),this.eventManager.o(this.player,"loaded",function(){Sl(i),Ss(i)}),this.eventManager.o(this.player,"unloading",function(){Sl(i),Ss(i)}),this.eventManager.o(this.player,"variantchanged",function(){Sl(i),Ss(i)}),this.eventManager.o(this.player,"trackschanged",function(){Sl(i),Ss(i)}),this.eventManager.o(this.player,"abrstatuschanged",function(){Sl(i),Ss(i)}),this.eventManager.o(this.player,"adaptation",function(){Sl(i),Ss(i)}),Sl(this)}function Ss(e){var t=e.player.getConfiguration().abr.enabled;if(e.player.Md()){e.i.textContent="",e.i.style.display="none",e.g&&(e.g.textContent="",e.g.style.display="none");var n=e.player.Ob()||[],i=n.find(function(e){return e.active});i&&(t?(e.h.textContent=i.bandwidth?Sd(e,i,n):"Unknown",e.h.style.display=""):e.h.style.display="none")}else(i=(n=e.player.getVideoTracks()||[]).find(function(e){return e.active}))?(t?(e.h.textContent=i.height&&i.width?Sc(e,i,n):i.bandwidth?Sh(i.bandwidth):"Unknown",e.h.style.display=""):e.h.style.display="none",t=Su(e,i.width,i.height),e.i.textContent=t,e.i.style.display=""!==t?"":"none",e.g&&(e.g.textContent=t,e.g.style.display=""!==t?"":"none")):e.g&&(t=e.player.getStats(),t=Su(e,t.width,t.height),e.g.textContent=t,e.g.style.display=""!==t?"":"none")}function Su(e,t,n){return t&&n?(n>t&&(t=(n=E([n,t])).next().value,n=n.next().value),t/n>16/9&&(n=Math.round(9*t/16)),e=e.controls.g.qualityMarks,n>=8640?n+"p":n>=4320?e["4320"]:n>=2160?e["2160"]:n>=1440?e["1440"]:n>=1080?e["1080"]:n>=720?e["720"]:""):""}function Sl(e){var t=bz(e.menu);on(e.menu),e.menu.appendChild(t),t=0,t=e.player.Md()?function(e){var t=[];e.player.Ac()==c3||e.player.Da()||(t=e.player.Ob()||[]);var n=t.find(function(e){return e.active});n&&(t=t.filter(function(t){if(t.language!=n.language||e.controls.g.showAudioChannelCountVariants&&t.channelsCount&&n.channelsCount&&t.channelsCount!=n.channelsCount)return!1;var i=e.controls.g.trackLabelFormat;return(1!=i&&2!=i||JSON.stringify(t.audioRoles)==JSON.stringify(n.audioR
1oles))&&(3!=i||t.label==n.label)&&!!t.bandwidth})),(t=t.filter(function(e,n){return t.findIndex(function(t){return t.bandwidth==e.bandwidth})==n})).sort(function(e,t){return t.bandwidth-e.bandwidth});for(var i=e.player.getConfiguration().abr.enabled,r=E(t),a=r.next(),o={};!a.done;o={Oe:void 0},a=r.next()){o.Oe=a.value,(a=a9()).classList.add("explicit-resolution"),e.eventManager.o(a,"click",function(t){return function(){var n=t.Oe;e.player.configure({abr:{enabled:!1}}),e.player.Ke(n,e.controls.g.clearBufferOnQualityChange)}}(o));var s=a6("span");s.textContent=o.Oe.bandwidth?Sd(e,o.Oe,t):"Unknown",a.appendChild(s),i||o.Oe!=n||(a.ariaSelected="true",a.appendChild(bX()),s.classList.add("shaka-chosen-item"),e.currentSelection.textContent=s.textContent),e.menu.appendChild(a)}return t.length}(e):function(e){var t=e.player.getVideoTracks()||[],n=t.find(function(e){return e.active});(t=t.filter(function(n,i){return t.findIndex(function(t){var i=t.height==n.height&&t.bandwidth==n.bandwidth&&t.frameRate==n.frameRate&&t.hdr==n.hdr&&t.videoLayout==n.videoLayout&&tk(t.roles,n.roles);return i&&e.controls.g.showVideoCodec&&t.codecs&&n.codecs&&(i=is(t.codecs)==is(n.codecs)),i})==i})).sort(function(e,t){return t.height==e.height||null==e.height||null==t.height?t.bandwidth-e.bandwidth:t.height-e.height});for(var i=e.player.getConfiguration().abr.enabled,r=E(t),a=r.next(),o={};!a.done;o={sc:void 0},a=r.next()){o.sc=a.value,(a=a9()).classList.add("explicit-resolution"),e.eventManager.o(a,"click",function(t){return function(){var n=t.sc;e.player.configure({abr:{enabled:!1}}),e.player.Lj(n,e.controls.g.clearBufferOnQualityChange)}}(o));var s=a6("span");s.textContent=o.sc.height&&o.sc.width?Sc(e,o.sc,t):o.sc.bandwidth?Sh(o.sc.bandwidth):"Unknown",a.appendChild(s);var u=Su(e,o.sc.width,o.sc.height);if(""!==u){var l=a6("sup");l.classList.add("shaka-quality-mark"),l.textContent=u,a.appendChild(l)}i||o.sc!=n||(a.ariaSelected="true",a.appendChild(bX()),s.classList.add("shaka-chosen-item"),e.currentSelection.textContent=s.textContent),e.menu.appendChild(a)}return t.length}(e);var n=a9();n.classList.add("shaka-enable-abr-button"),e.eventManager.o(n,"click",function(){e.player.configure({abr:{enabled:!0}}),Sl(e)}),e.l=a6("span"),e.l.textContent=e.localization.resolve("AUTO_QUALITY"),n.appendChild(e.l),e.player.getConfiguration().abr.enabled&&(n.ariaSelected="true",n.appendChild(bX()),e.l.classList.add("shaka-chosen-item"),e.currentSelection.textContent=e.localization.resolve("AUTO_QUALITY")),e.button.setAttribute("shaka-status",e.currentSelection.textContent),e.menu.appendChild(n),bW(e.menu),e.controls.dispatchEvent(new ee("resolutionselectionupdated")),Sp(e),bY(e.button,t>0)}function Sc(e,t,n){function i(e,t){return e!=t&&e.height==t.height&&e.hdr==t.hdr&&a(e)==a(t)&&r(e)==r(t)&&Math.round(e.frameRate||0)==Math.round(t.frameRate||0)}function r(e){return!!e.codecs&&is(e.codecs).startsWith("lcevc")}function a(e){return!!e.codecs&&is(e.codecs).startsWith("dovi-")}var o=t.height||0,s=t.width||0,u=!0;if(t.pixelAspectRatio){var l=t.pixelAspectRatio.split(":").map(function(e){return Number(e)});2===l.length?u=l[0]===l[1]:1===l.length&&(u=1===l[0])}for(o>s&&u&&(s=(o=E([o,s])).next().value,o=o.next().value),u=o,s/o>16/9&&(u=Math.round(9*s/16)),s=u+"p",o=new Set,l=(u=E(n)).next();!l.done;l=u.next())(l=l.value).frameRate&&o.add(Math.round(l.frameRate));if(o.size>1&&(o=t.frameRate)&&(o>=50||o<=20)&&(s+=Math.round(t.frameRate)),("PQ"==t.hdr||"HLG"==t.hdr)&&(s=a(t)?s+" Dolby Vision":s+" HDR"),r(t)&&(s+=" LCEVC"),(t.videoLayout||"").includes("CH-STEREO")&&(s+=" 3D"),n.some(function(e){return i(t,e)})&&(n.some(function(e){return i(t,e)&&e.bandwidth==t.bandwidth})||(s+=" ("+Sh(t.bandwidth)+")"),e.controls.g.showVideoCodec)){var c=function(e){var t="";return e&&(t=is(e).toUpperCase()),t?" "+t:t};n.some(function(e){return i(t,e)&&c(e.codecs)!=c(t.codecs)})&&(s+=c(t.codecs))}return s}function Sd(e,t,n){var i=Sh(t.bandwidth);if(e.controls.g.showAudioCodec){var r=function(e){var t="";return e&&(t=is(e).toUpperCase()),t?" "+t:t};n.some(function(e){return r(e.codecs)!=r(t.codecs)})&&(i+=r(t.codecs))}return i}function Sh(e){return e>=1e6?(e/1e6).toFixed(1).replace(".0","")+" Mbps":Math.floor(e/1e3)+" Kbps"}function Sp(e){var t=e.player.Md()?"QUALITY":"RESOLUTION";e.button.ariaLabel=e.localization.resolve(t),e.backButton.ariaLabel=e.localization.resolve(t),e.backSpan.textContent=e.localization.resolve(t),e.nameSpan.textContent=e.localization.resolve(t),e.l.textContent=e.localization.resolve("AUTO_QUALITY"),e.player.getConfiguration().abr.enabled&&(e.currentSelection.textContent=e.localization.resolve("AUTO_QUALITY"))}function Sf(){}function Sg(e,t){bG.call(this,e,t);var n=this;this.g=a9(),this.g.classList.add("shaka-rewind-button"),this.g.classList.add("shaka-tooltip-status"),this.g.setAttribute("shaka-status",this.localization.resolve("OFF")),new bH(this.g).use("M798-281 550-447q-9-6-13.5-14.5T532-480q0-10 4.5-18.5T550-513l248-166q5-4 11-5t11-1q16 0 28 11t12 29v330q0 18-12 29t-28 11q-5 0-11-1t-11-5Zm-400 0L150-447q-9-6-13.5-14.5T132-480q0-10 4.5-18.5T150-513l248-166q5-4 11-5t11-1q16 0 28 11t12 29v330q0 18-12 29t-28 11q-5 0-11-1t-11-5Z"),this.parent.appendChild(this.g),Sm(this),this.h=this.controls.g.rewindRates,this.eventManager.o(this.localization,"locale-updated",function(){Sm(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Sm(n)}),this.eventManager.o(this.g,"click",function(){if(n.controls.Ca()&&n.video.duration){var e=n.h.indexOf(n.player.Za())+1;e=e!=n.h.length?n.h[e]:n.h[0],n.video.paused&&n.video.play(),n.player.uc(e),n.g.setAttribute("shaka-status",e+"x")}}),this.eventManager.o(this.player,"ratechange",function(){n.g.setAttribute("shaka-status",n.player.Za()+"x")})}function Sm(e){e.g.ariaLabel=e.localization.resolve("REWIND")}function Sv(){}function Sy(e,t){bG.call(this,e,t);var n=this;this.j=this.controls.F,this.g=a9(),this.g.classList.add("shaka-save.video-frame-button"),this.g.classList.add("shaka-tooltip"),new bH(this.g,"M480-337q-8 0-15-2.5t-13-8.5L308-492q-12-12-11.5-28t11.5-28q12-12 28.5-12.5T365-549l75 75v-286q0-17 11.5-28.5T480-800q17 0 28.5 11.5T520-760v286l75-75q12-12 28.5-11.5T652-548q11 12 11.5 28T652-492L508-348q-6 6-13 8.5t-15 2.5ZM240-160q-33 0-56.5-23.5T160-240v-80q0-17 11.5-28.5T200-360q17 0 28.5 11.5T240-320v80h480v-80q0-17 11.5-28.5T760-360q17 0 28.5 11.5T800-320v80q0 33-23.5 56.5T720-160H240Z"),(e=a6("label")).classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),this.h=a6("span"),this.h.textContent=this.localization.resolve("DOW
1NLOAD_VIDEO_FRAME"),e.appendChild(this.h),this.i=a6("span"),this.i.classList.add("shaka-current-selection-span"),e.appendChild(this.i),this.g.appendChild(e),ST(this),this.parent.appendChild(this.g),this.eventManager.o(this.localization,"locale-updated",function(){ST(n)}),this.eventManager.o(this.localization,"locale-changed",function(){ST(n)}),this.eventManager.o(this.g,"click",function(){var e=document.createElement("canvas"),t=e.getContext("2d"),i=n.controls.u;e.width=i.videoWidth,e.height=i.videoHeight,t.drawImage(i,0,0,e.width,e.height),e=e.toDataURL("image/png"),(t=document.createElement("a")).href=e,t.download="videoframe_"+i.currentTime.toFixed(3)+".png",t.click()}),this.eventManager.o(this.controls.D,"vrstatuschanged",function(){Sb(n)}),this.eventManager.o(this.adManager,"ad-started",function(){Sb(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){Sb(n)}),this.eventManager.o(this.player,"unloading",function(){Sb(n)}),this.eventManager.o(this.player,"loaded",function(){Sb(n)}),this.eventManager.o(this.video,"play",function(){Sb(n)}),this.eventManager.o(this.video,"pause",function(){Sb(n)}),this.eventManager.o(this.video,"seeking",function(){Sb(n)}),this.eventManager.o(this.controls,"caststatuschanged",function(){Sb(n)}),Sb(this)}function Sb(e){var t=!0;e.controls.Zb()&&(t=!1),t&&e.j.Pa()&&(t=!1),t&&(e.player.drmInfo()||e.player.Md())&&(t=!1),t&&e.ad&&(t=!1),t&&e.video.remote&&"disconnected"!=e.video.remote.state&&(t=!1),bY(e.g,t)}
1function ST(e){e.g.ariaLabel=e.localization.resolve("DOWNLOAD_VIDEO_FRAME"),e.h.textContent=e.localization.resolve("DOWNLOAD_VIDEO_FRAME")}function Sw(){}function SS(e,t){bG.call(this,e,t);var n=this;(this.g=this.player.yf())&&(this.h=a9(),this.h.classList.add("shaka-skip-next-button"),this.h.classList.add("shaka-tooltip"),new bH(this.h).use("M660-280v-400q0-17 11.5-28.5T700-720q17 0 28.5 11.5T740-680v400q0 17-11.5 28.5T700-240q-17 0-28.5-11.5T660-280Zm-440-35v-330q0-18 12-29t28-11q5 0 11 1t11 5l248 166q9 6 13.5 14.5T548-480q0 10-4.5 18.5T530-447L282-281q-5 4-11 5t-11 1q-16 0-28-11t-12-29Z"),this.parent.appendChild(this.h),SA(this),SE(this),this.eventManager.o(this.localization,"locale-updated",function(){SA(n)}),this.eventManager.o(this.localization,"locale-changed",function(){SA(n)}),this.eventManager.o(this.h,"click",function(){n.controls.Ca()&&n.g.playItem(n.g.getCurrentItemIndex()+1)}),this.eventManager.o(this.g,"currentitemchanged",function(){SE(n)}),this.eventManager.o(this.g,"itemsinserted",function(){SE(n)}),this.eventManager.o(this.g,"itemsremoved",function(){SE(n)}),this.eventManager.o(this.player,"loading",function(){SE(n)}))}function SA(e){e.h.ariaLabel=e.localization.resolve("SKIP_NEXT")}function SE(e){var t=e.g.getItems().length;t=t>1&&e.g.getCurrentItemIndex()+1<t,bY(e.h,t)}function Sx(){}function Sk(e,t){bG.call(this,e,t);var n=this;(this.g=this.player.yf())&&(this.h=a9(),this.h.classList.add("shaka-skip-previous-button"),this.h.classList.add("shaka-tooltip"),new bH(this.h).use("M220-280v-400q0-17 11.5-28.5T260-720q17 0 28.5 11.5T300-680v400q0 17-11.5 28.5T260-240q-17 0-28.5-11.5T220-280Zm458-1L430-447q-9-6-13.5-14.5T412-480q0-10 4.5-18.5T430-513l248-166q5-4 11-5t11-1q16 0 28 11t12 29v330q0 18-12 29t-28 11q-5 0-11-1t-11-5Z"),this.parent.appendChild(this.h),SI(this),SC(this),this.eventManager.o(this.localization,"locale-updated",function(){SI(n)}),this.eventManager.o(this.localization,"locale-changed",function(){SI(n)}),this.eventManager.o(this.h,"click",function(){n.controls.Ca()&&n.g.playItem(n.g.getCurrentItemIndex()-1)}),this.eventManager.o(this.g,"currentitemchanged",function(){SC(n)}),this.eventManager.o(this.g,"itemsinserted",function(){SC(n)}),this.eventManager.o(this.g,"itemsremoved",function(){SC(n)}),this.eventManager.o(this.player,"loading",function(){SC(n)}))}function SI(e){e.h.ariaLabel=e.localization.resolve("SKIP_PREVIOUS")}function SC(e){var t=e.g.getItems().length>1&&e.g.getCurrentItemIndex()>0;bY(e.h,t)}function SM(){}function SL(e,t){b1.call(this,e,t),this.button.classList.add("shaka-small-play-button"),this.button.classList.add("shaka-tooltip")}function SR(){}function SP(e,t){bG.call(this,e,t),(e=a6("div")).classList.add("shaka-spacer"),e.ariaHidden="true",this.parent.appendChild(e)}function SD(){}function SN(e,t){function n(e){return(e=parseInt(l.g[e],10))>2e9?(e/1e9).toFixed(2)+"GB":e>1e6?(e/1e6).toFixed(2)+"MB":e>1e3?(e/1e3).toFixed(2)+"KB":e+"B"}function i(e){return l.g[e]+" (gaps)"}function r(e){return bZ(l.g[e],!1)+" (m)"}function a(e){return Math.round(l.g[e]/1e3)+" (kbits/s)"}function o(e){return l.g[e].toFixed(2)+" (s)"}function s(e){return l.g[e]+" (frames)"}function u(e){return l.g[e]+" (px)"}bG.call(this,e,t);var l=this;this.i=a9(),this.i.classList.add("shaka-statistics-button"),this.u=new bH(this.i,"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Zm120 200q-17 0-28.5 11.5T280-520v200q0 17 11.5 28.5T320-280q17 0 28.5-11.5T360-320v-200q0-17-11.5-28.5T320-560Zm160-120q-17 0-28.5 11.5T440-640v320q0 17 11.5 28.5T480-280q17 0 28.5-11.5T520-320v-320q0-17-11.5-28.5T480-680Zm160 240q-17 0-28.5 11.5T600-400v80q0 17 11.5 28.5T640-280q17 0 28.5-11.5T680-320v-80q0-17-11.5-28.5T640-440Z"),(e=a6("label")).classList.add("shaka-overflow-button-label"),e.classList.add("shaka-simple-overflow-button-label-inline"),this.A=a6("span"),e.appendChild(this.A),this.l=a6("span"),this.l.classList.add("shaka-current-selection-span"),e.appendChild(this.l),this.i.appendChild(e),this.parent.appendChild(this.i),this.h=a6("div"),this.h.classList.add("shaka-no-propagation"),this.h.classList.add("shaka-show-controls-on-mouse-over"),this.h.classList.add("shaka-statistics-container"),this.h.classList.add("shaka-hidden"),this.controls.i.appendChild(this.h),this.D=[],this.F=["stateHistory","switchHistory"],this.g=this.player.getStats(),this.m=new Map,this.C=(new Map).set("width",u).set("height",u).set("currentCodecs",function(e){return l.g[e]}).set("completionPercent",function(e){return l.g[e]+" (%)"}).set("bufferingTime",o).set("drmTimeSeconds",o).set("licenseTime",o).set("liveLatency",o).set("loadLatency",o).set("manifestTimeSeconds",o).set("estimatedBandwidth",a).set("streamBandwidth",a).set("maxSegmentDuration",o).set("pauseTime",r).set("playTime",r).set("corruptedFrames",s).set("decodedFrames",s).set("droppedFrames",s).set("stallsDetected",function(e){return l.g[e]+" (stalls)"}).set("gapsJumped",i).set("manifestSizeBytes",n).set("bytesDownloaded",n).set("nonFatalErrorCount",function(e){return l.g[e]+" (errors)"}).set("manifestPeriodCount",function(e){return l.g[e]+" (periods)"}).set("manifestGapCount",i),this.j=new iA(function(){l.g=l.player.getStats();for(var e=E(l.D),t=e.next();!t.done;t=e.next()){var n=t.value;(t=l.m.get(n)).textContent=l.C.get(n)(n),t&&t.parentElement&&("string"==typeof(n=l.g[n])?bY(t.parentElement,""!=n):bY(t.parentElement,!isNaN(n)))}}),S_(this),function(e){var t=a6("div");t.classList.add("shaka-no-propagation"),t.classList.add("shaka-statistics-close");var n=new bH(t,"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q
111-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z").g;for(n.classList.add("material-icons","notranslate"),e.h.appendChild(t),e.eventManager.o(n,"click",function(){SO(e)}),n=(t=E(e.controls.g.statisticsList)).next();!n.done;n=t.next())if((n=n.value)in e.g&&!e.F.includes(n)){var i=function(e,t){var n=a6("div"),i=a6("label");return i.textContent=t+":",n.appendChild(i),(i=a6("span")).textContent=e.C.get(t)(t),n.appendChild(i),e.m.set(t,i),n}(e,n);e.h.appendChild(i),e.D.push(n)}else ea("Unrecognized statistic element:",n)}(this),this.eventManager.o(this.localization,"locale-updated",function(){S_(l)}),this.eventManager.o(this.localization,"locale-changed",function(){S_(l)}),this.eventManager.o(this.i,"click",function(){SO(l),S_(l)})}function SO(e){e.h.classList.contains("shaka-hidden")?(e.u.use("M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm120-440q-17 0-28.5 11.5T280-520v200q0 17 11.5 28.5T320-280q17 0 28.5-11.5T360-320v-200q0-17-11.5-28.5T320-560Zm160-120q-17 0-28.5 11.5T440-640v320q0 17 11.5 28.5T480-280q17 0 28.5-11.5T520-320v-320q0-17-11.5-28.5T480-680Zm160 240q-17 0-28.5 11.5T600-400v80q0 17 11.5 28.5T640-280q17 0 28.5-11.5T680-320v-80q0-17-11.5-28.5T640-440Z"),e.j.xa(.1),bY(e.h,!0)):(e.u.use("M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Zm120 200q-17 0-28.5 11.5T280-520v200q0 17 11.5 28.5T320-280q17 0 28.5-11.5T360-320v-200q0-17-11.5-28.5T320-560Zm160-120q-17 0-28.5 11.5T440-640v320q0 17 11.5 28.5T480-280q17 0 28.5-11.5T520-320v-320q0-17-11.5-28.5T480-680Zm160 240q-17 0-28.5 11.5T600-400v80q0 17 11.5 28.5T640-280q17 0 28.5-11.5T680-320v-80q0-17-11.5-28.5T640-440Z"),e.j.stop(),bY(e.h,!1))}function S_(e){e.A.textContent=e.localization.resolve("STATISTICS"),e.i.ariaLabel=e.localization.resolve("STATISTICS"),e.l.textContent=e.localization.resolve(e.h.classList.contains("shaka-hidden")?"OFF":"ON")}function SU(){}function Sq(e,t){wv.call(this,e,t,"M200-160q-33 0-56.5-23.5T120-240v-480q0-33 23.5-56.5T200-800h560q33 0 56.5 23.5T840-720v480q0 33-23.5 56.5T760-160H200Zm80-200h120q17 0 28.5-11.5T440-400v-20q0-9-6-15t-15-6h-18q-9 0-15 6t-6 15h-80v-120h80q0 9 6 15t15 6h18q9 0 15-6t6-15v-20q0-17-11.5-28.5T400-600H280q-17 0-28.5 11.5T240-560v160q0 17 11.5 28.5T280-360Zm400-240H560q-17 0-28.5 11.5T520-560v160q0 17 11.5 28.5T560-360h120q17 0 28.5-11.5T720-400v-20q0-9-6-15t-15-6h-18q-9 0-15 6t-6 15h-80v-120h80q0 9 6 15t15 6h18q9 0 15-6t6-15v-20q0-17-11.5-28.5T680-600Z");var n,i,r=this;this.button.classList.add("shaka-caption-button"),this.button.classList.add("shaka-tooltip-status"),this.menu.classList.add("shaka-text-languages"),this.player&&this.player.Yc()?this.button.ariaPressed="true":this.button.ariaPressed="false",n=this,(i=a9()).ariaSelected="true",n.menu.appendChild(i),i.appendChild(bX()),n.g=a6("span"),i.appendChild(n.g),this.eventManager.o(this.localization,"locale-updated",function(){SF(r),SB(r)}),this.eventManager.o(this.localization,"locale-changed",function(){SF(r),SB(r)}),this.eventManager.o(this.player,"loading",function(){Sj(r),SB(r)}),this.eventManager.o(this.player,"loaded",function(){Sj(r),SB(r)}),this.eventManager.o(this.player,"unloading",function(){Sj(r),SB(r)}),this.eventManager.o(this.player,"texttrackvisibility",function(){Sj(r),SB(r)}),this.eventManager.o(this.player,"textchanged",function(){SB(r)}),this.eventManager.o(this.player,"trackschanged",function(){SB(r)}),Sj(this),SF(this),SB(this)}function Sj(e){e.player.Yc()?(e.icon.use("M200-160q-33 0-56.5-23.5T120-240v-480q0-33 23.5-56.5T200-800h560q33 0 56.5 23.5T840-720v480q0 33-23.5 56.5T760-160H200Zm80-200h120q17 0 28.5-11.5T440-400v-20q0-9-6-15t-15-6h-18q-9 0-15 6t-6 15h-80v-120h80q0 9 6 15t15 6h18q9 0 15-6t6-15v-20q0-17-11.5-28.5T400-600H280q-17 0-28.5 11.5T240-560v160q0 17 11.5 28.5T280-360Zm400-240H560q-17 0-28.5 11.5T520-560v160q0 17 11.5 28.5T560-360h120q17 0 28.5-11.5T720-400v-20q0-9-6-15t-15-6h-18q-9 0-15 6t-6 15h-80v-120h80q0 9 6 15t15 6h18q9 0 15-6t6-15v-20q0-17-11.5-28.5T680-600Z"),e.button.ariaPressed="true"):(e.icon.use("M791-57 687-160H200q-33 0-56.5-23.5T120-240v-487l-65-65q-12-12-12-28.5T55-849q12-12 28.5-12t28.5 12l736 736q12 12 12 28t-12 28q-12 12-28.5 12T791-57ZM280-360h120q17 0 28.5-11.5T440-400v-25q0-8-6-14t-14-6h-20q-8 0-14 6t-6 14v5h-80v-127l-45-45v1q-7 5-11 13t-4 18v160q0 17 11.5 28.5T280-360Zm560-360v388q0 27-24.5 37.5T772-303l-66-66q7-5 10.5-13.5T720-400v-20q0-8-6-14t-14-6h-20q-8 0-14 6t-6 14h-5l
1-75-75v-45h80v5q0 8 6 14t14 6h20q8 0 14-6t6-14v-25q0-17-11.5-28.5T680-600H560q-17 0-28.5 11.5T520-560v5L343-732q-19-19-8.5-43.5T372-800h388q33 0 56.5 23.5T840-720Z"),e.button.ariaPressed="false"),e.controls.dispatchEvent(new ee("captionselectionupdated"))}function SB(e){var t=e.player.Cc()||[];!function(e,t,n,i,r,a,o){function s(e,t,n){return e=[e,t],n&&3==o&&e.push(n),e.join(": ")}var u=e.find(function(e){return 1==e.active}),l=bz(t);on(t),t.appendChild(l),l=new Set,u=u?s(u.language,u.roles.join(", "),u.label):"",e=E(e);for(var c=e.next(),d={};!c.done;d={ed:void 0},c=e.next()){d.ed=c.value,c=d.ed.language;var h=d.ed.forced,p=a.resolve("SUBTITLE_FORCED"),f=d.ed.roles.join(", "),g=d.ed.label,m=s(c,f,g);if(!l.has(m)){l.add(m);var v=a9();v.addEventListener("click",function(e){return function(){n(e.ed)}}(d));var y=a6("span");switch(v.appendChild(y),y.textContent=wm(c,a),o){case wp:h&&(y.textContent+=" ("+p+")");break;case 1:f?y.textContent=f:(ea("Track #"+d.ed.id+" does not have a role, but the UI is configured to only show role."),y.textContent="?"),h&&(y.textContent+=" ("+p+")");break;case 2:f&&(y.textContent+=": "+f),h&&(y.textContent+=" ("+p+")");break;case 3:g?y.textContent=g:(ea("Track #"+d.ed.id+" does not have a label, but the UI is configured to only show labels."),y.textContent="?")}i&&m==u&&(v.appendChild(bX()),y.classList.add("shaka-chosen-item"),v.ariaSelected="true",r.textContent=y.textContent),t.appendChild(v)}}}(t,e.menu,function(t){var n,i;return n=e,i=t,F(function(e){if(1==e.g)return n.player.jg(i),M(e,n.player.$d(!0),2);n.player.configure({preferredTextLanguage:i.language,preferForcedSubs:i.forced}),L(e)})},e.player.Yc(),e.currentSelection,e.localization,e.controls.g.textTrackLabelFormat);var n=a9();n.classList.add("shaka-turn-captions-off-button"),e.eventManager.o(n,"click",function(){e.player.$d(!1),SB(e)}),n.appendChild(e.g),e.menu.appendChild(n),e.player.Yc()?e.g.classList.remove("shaka-chosen-item"):(n.ariaSelected="true",n.appendChild(bX()),e.g.classList.add("shaka-chosen-item"),e.currentSelection.textContent=e.localization.resolve("OFF")),e.button.setAttribute("shaka-status",e.currentSelection.textContent),bW(e.menu),e.controls.dispatchEvent(new ee("captionselectionupdated")),bY(e.button,t.length>0)}function SF(e){e.button.ariaLabel=e.localization.resolve("CAPTIONS"),e.backButton.ariaLabel=e.localization.resolve("BACK"),e.nameSpan.textContent=e.localization.resolve("CAPTIONS"),e.backSpan.textContent=e.localization.resolve("CAPTIONS"),e.g.textContent=e.localization.resolve("OFF")}function SV(){}function SG(e,t){bG.call(this,e,t);var n=this;this.g=a9(),this.g.classList.add("shaka-toggle-stereoscopic-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",new bH(this.g,"M620-360H520q-8 0-14-6t-6-14v-200q0-8 6-14t14-6h100q17 0 28.5 11.5T660-560v160q0 17-11.5 28.5T620-360Zm-200 0h-90q-13 0-21.5-8.5T300-390q0-13 8.5-21.5T330-420h70v-40h-40q-8 0-14-6t-6-14q0-8 6-14t14-6h40v-40h-70q-13 0-21.5-8.5T300-570q0-13 8.5-21.5T330-600h90q17 0 28.5 11.5T460-560v160q0 17-11.5 28.5T420-360Zm140-60h40v-120h-40v120Zm280-20q-17 0-28.5-11.5T800-480q0-115-72.5-203T542-794l30 30q11 11 11 28t-11 28q-11 11-28 11t-28-11L387-837q-8-8-4.5-20t14.5-15q20-5 41-6.5t42-1.5q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 17-11.5 28.5T840-440ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-17 11.5-28.5T120-520q17 0 28.5 11.5T160-480q0 115 72.5 203T418-166l-30-30q-11-11-11-28t11-28q11-11 28-11t28 11l129 129q8 8 4.5 20T563-88q-20 5-41 6.5T480-80Z"),(e=a6("label")).classList.add("shaka-overflow-button-label"),e.classList.add("shaka-overflow-menu-only"),this.i=a6("span"),e.appendChild(this.i),this.h=a6("span"),this.h.classList.add("shaka-current-selection-span"),e.appendChild(this.h),this.g.appendChild(e),this.parent.appendChild(this.g),SH(this),this.eventManager.o(this.localization,"locale-updated",function(){SH(n)}),this.eventManager.o(this.localization,"locale-changed",function(){SH(n)});var i=this.controls.D;this.eventManager.o(this.g,"click",function(){n.controls.Ca()&&i.ae()}),this.eventManager.o(i,"vrstatuschanged",function(){bY(n.g,n.controls.Zb())}),bY(this.g,this.controls.Zb())}function SH(e){e.g.ariaLabel=e.localization.resolve("TOGGLE_STEREOSCOPIC"),e.i.textContent=e.localization.resolve("TOGGLE_STEREOSCOPIC")}function Sz(){}function SK(e,t){b6.call(this,e,t,["shaka-volume-bar-container"],["shaka-volume-bar"]);var n=this;this.g=this.controls.g,this.g.alwaysShowVolumeBar||this.container.classList.add("shaka-volume-bar-container-allow-hiding"),this.setRange(0,100),this.eventManager.o(this.video,"volumechange",function(){return SW
1(n)}),this.eventManager.o(this.player,"loading",function(){return SW(n)}),this.eventManager.o(this.player,"loaded",function(){return SJ(n)}),this.eventManager.o(this.player,"unloading",function(){return SJ(n)}),this.eventManager.o(this.player,"trackschanged",function(){return SJ(n)}),this.eventManager.o(this.controls,"caststatuschanged",function(){return SW(n)}),this.eventManager.o(this.adManager,"ad-volume-changed",function(){return SX(n)}),this.eventManager.o(this.adManager,"ad-muted",function(){return SX(n)}),this.eventManager.o(this.adManager,"ad-started",function(){return SJ(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){SJ(n),SW(n)}),this.eventManager.o(this.localization,"locale-updated",function(){return SZ(n)}),this.eventManager.o(this.localization,"locale-changed",function(){return SZ(n)}),SW(this),SZ(this),this.ad&&this.onChange(),SJ(this)}function SW(e){e.video.muted?e.setValue(0):e.setValue(100*e.video.volume),SY(e)}function SX(e){var t=e.ad.getVolume();e.setValue(100*t),SY(e)}function SY(e){var t=e.g.volumeBarColors,n=["to right"];n.push(t.level+e.getValue()+"%"),n.push(t.base+e.getValue()+"%"),n.push(t.base+"100%"),e.container.style.background="linear-gradient("+n.join(",")+")"}function SZ(e){e.bar.ariaLabel=e.localization.resolve("VOLUME")}function SJ(e){var t=!0;e.ad&&e.ad.isLinear()?t=!0:e.player.If()&&(t=!1),bY(e.container,t)}function SQ(){}ws.FailReasonCode={NO_BROWSER_SUPPORT:0,PLAYER_FAILED_TO_LOAD:1},"complete"==document.readyState?F(function(e){if(1==e.g)return M(e,Promise.resolve(),2);wl(),L(e)}):e.addEventListener("load",wl),S(wv,bG),wv.prototype.release=function(){this.j&&(this.j.disconnect(),this.j=null),bG.prototype.release.call(this)},$("shaka.ui.SettingsMenu",wv),S(wb,wv),$("shaka.ui.AudioLanguageSelection",wb),wS.prototype.create=function(e,t){return new wb(e,t)},T1("language",new wS),T_("language",new wS),S(wA,bG),$("shaka.ui.CastButton",wA),wI.prototype.create=function(e,t){return new wA(e,t)},T1("cast",new wI),T_("cast",new wI),S(wC,wv),$("shaka.ui.ChapterSelection",wC),wP.prototype.create=function(e,t){return new wC(e,t)},T1("chapter",new wP),T_("chapter",new wP),S(wD,bG),$("shaka.ui.FastForwardButton",wD),wO.prototype.create=function(e,t){return new wD(e,t)},T_("fast_forward",new wO),S(w_,bG),$("shaka.ui.FullscreenButton",w_),wj.prototype.create=function(e,t){return new w_(e,t)},T_("fullscreen",new wj),S(wB,bG),wB.prototype.release=function(){this.h.stop(),this.h=null,bG.prototype.release.call(this)},$("shaka.ui.LoopButton",wB),wG.prototype.create=function(e,t){return new wB(e,t)},T1("loop",new wG),T_("loop",new wG),b$("loop",new wG),S(wH,bG),$("shaka.ui.MuteButton",wH),wX.prototype.create=function(e,t){return new wH(e,t)},T1("mute",new wX),T_("mute",new wX),b$("mute",new wX),S(wY,bG),$("shaka.ui.PipButton",wY),w0.prototype.create=function(e,t){return new wY(e,t)},T1("picture_in_picture",new w0),T_("picture_in_picture",new w0),b$("picture_in_picture",new w0),S(w1,wv),$("shaka.ui.PlaybackRateSelection",w1),w3.prototype.create=function(e,t){return new w1(e,t)},T1("playback_rate",new w3),T_("playback_rate",new w3),S(w4,bG),$("shaka.ui.PresentationTimeTracker",w4),w6.prototype.create=function(e,t){return new w4(e,t)},T_("time_and_duration",new w6),S(w7,bG),$("shaka.ui.RecenterVRButton",w7),Se.prototype.create=function(e,t){return new w7(e,t)},T1("recenter_vr",new Se),T_("recenter_vr",new Se),S(St,bG),St.prototype.release=function(){this.video.remote&&-1!=this.h&&this.video.remote.cancelWatchAvailability(this.h).catch(function(){}),bG.prototype.release.call(this)},$("shaka.ui.RemoteButton",St),Sa.prototype.create=function(e,t){return new St(e,t)},T1("remote",new Sa),T_("remote",new Sa),S(So,wv),$("shaka.ui.ResolutionSelection",So),Sf.prototype.create=function(e,t){return new So(e,t)},T1("quality",new Sf),T_("quality",new Sf),S(Sg,bG),$("shaka.ui.RewindButton",Sg),Sv.prototype.create=function(e,t){return new Sg(e,t)},T_("rewind",new Sv),S(Sy,bG),$("shaka.ui.SaveVideoFrameButton",Sy),Sw.prototype.create=function(e,t){return new Sy(e,t)},T1("save_video_frame",new Sw),b$("save_video_frame",new Sw),S(SS,bG),$("shaka.ui.SkipNextButton",SS),Sx.prototype.create=function(e,t){return new SS(e,t)}
1,T_("skip_next",new Sx),S(Sk,bG),$("shaka.ui.SkipPreviousButton",Sk),SM.prototype.create=function(e,t){return new Sk(e,t)},T_("skip_previous",new SM),S(SL,b1),$("shaka.ui.SmallPlayButton",SL),SR.prototype.create=function(e,t){return new SL(e,t)},T_("play_pause",new SR),S(SP,bG),$("shaka.ui.Spacer",SP),SD.prototype.create=function(e,t){return new SP(e,t)},T_("spacer",new SD),S(SN,bG),SN.prototype.release=function(){this.j.stop(),this.j=null,bG.prototype.release.call(this)},$("shaka.ui.StatisticsButton",SN),SU.prototype.create=function(e,t){return new SN(e,t)},T1("statistics",new SU),b$("statistics",new SU),S(Sq,wv),$("shaka.ui.TextSelection",Sq),SV.prototype.create=function(e,t){return new Sq(e,t)},T1("captions",new SV),T_("captions",new SV),S(SG,bG),$("shaka.ui.ToggleStereoscopicButton",SG),Sz.prototype.create=function(e,t){return new SG(e,t)},T1("toggle_stereoscopic",new Sz),T_("toggle_stereoscopic",new Sz),S(SK,b6),SK.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()/100):(this.video.volume=this.getValue()/100,this.video.volume>0&&(this.video.muted=!1))},$("shaka.ui.VolumeBar",SK),SQ.prototype.create=function(e,t){return new SK(e,t)},T_("volume",new SQ)}).call(r,i,i,void 0),r.shaka)t[a]=r.shaka[a]}}]);
2//# sourceMappingURL=ee16ce23.7055ef51b5591b62.js.map

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