shaka-player 4.8.3 → 4.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,20 +13,20 @@ var q;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:
13
13
  function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var da=ca(this);function ea(a,b){if(b)a:{var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b})}}
14
14
  ea("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.g=f;ba(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
15
15
  ea("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(aa(this))}})}return a});function fa(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
16
- function u(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function y(a){if(!(a instanceof Array)){a=u(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ha="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ia;
16
+ function u(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function w(a){if(!(a instanceof Array)){a=u(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ha="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ia;
17
17
  if("function"==typeof Object.setPrototypeOf)ia=Object.setPrototypeOf;else{var ja;a:{var ka={a:!0},la={};try{la.__proto__=ka;ja=la.a;break a}catch(a){}ja=!1}ia=ja?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ma=ia;
18
18
  function na(a,b){a.prototype=ha(b.prototype);a.prototype.constructor=a;if(ma)ma(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Bl=b.prototype}function oa(){this.o=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.A=this.i=null}function pa(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0}oa.prototype.u=function(a){this.h=a};
19
- function qa(a,b){a.i={jh:b,vh:!0};a.g=a.m||a.j}oa.prototype.return=function(a){this.i={return:a};this.g=this.j};function D(a,b,c){a.g=c;return{value:b}}oa.prototype.D=function(a){this.g=a};function G(a){a.g=0}function ra(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function sa(a,b){a.m=0;a.j=b||0}function ta(a,b,c){a.g=b;a.m=c||0}function ua(a,b){a.m=b||0;b=a.i.jh;a.i=null;return b}function va(a){a.A=[a.i];a.m=0;a.j=0}
20
- function wa(a,b){var c=a.A.splice(0)[0];(c=a.i=a.i||c)?c.vh?a.g=a.m||a.j:void 0!=c.D&&a.j<c.D?(a.g=c.D,a.i=null):a.g=a.j:a.g=b}function xa(a){this.g=new oa;this.h=a}function ya(a,b){pa(a.g);var c=a.g.l;if(c)return za(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ba(a)}
21
- function za(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.o=!1,e;var f=e.value}catch(g){return a.g.l=null,qa(a.g,g),Ba(a)}a.g.l=null;d.call(a.g,f);return Ba(a)}function Ba(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.o=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,qa(a.g,c)}a.g.o=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.vh)throw b.jh;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
19
+ function qa(a,b){a.i={lh:b,xh:!0};a.g=a.m||a.j}oa.prototype.return=function(a){this.i={return:a};this.g=this.j};function D(a,b,c){a.g=c;return{value:b}}oa.prototype.B=function(a){this.g=a};function G(a){a.g=0}function ra(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function sa(a,b){a.m=0;a.j=b||0}function ta(a,b,c){a.g=b;a.m=c||0}function ua(a,b){a.m=b||0;b=a.i.lh;a.i=null;return b}function va(a){a.A=[a.i];a.m=0;a.j=0}
20
+ function wa(a,b){var c=a.A.splice(0)[0];(c=a.i=a.i||c)?c.xh?a.g=a.m||a.j:void 0!=c.B&&a.j<c.B?(a.g=c.B,a.i=null):a.g=a.j:a.g=b}function xa(a){this.g=new oa;this.h=a}function ya(a,b){pa(a.g);var c=a.g.l;if(c)return za(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ba(a)}
21
+ function za(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.o=!1,e;var f=e.value}catch(g){return a.g.l=null,qa(a.g,g),Ba(a)}a.g.l=null;d.call(a.g,f);return Ba(a)}function Ba(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.o=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,qa(a.g,c)}a.g.o=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.xh)throw b.lh;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
22
22
  function Ca(a){this.next=function(b){pa(a.g);a.g.l?b=za(a,a.g.l.next,b,a.g.u):(a.g.u(b),b=Ba(a));return b};this.throw=function(b){pa(a.g);a.g.l?b=za(a,a.g.l["throw"],b,a.g.u):(qa(a.g,b),b=Ba(a));return b};this.return=function(b){return ya(a,b)};this[Symbol.iterator]=function(){return this}}function Ea(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}
23
23
  function L(a){return Ea(new Ca(new xa(a)))}function Fa(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
24
24
  ea("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.o=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=da.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
25
25
  g[h];g[h]=null;try{k()}catch(l){this.j(l)}}}this.g=null};c.prototype.j=function(g){this.i(function(){throw g;})};b.prototype.j=function(){function g(l){return function(m){k||(k=!0,l.call(h,m))}}var h=this,k=!1;return{resolve:g(this.H),reject:g(this.l)}};b.prototype.H=function(g){if(g===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.J(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;default:h=!1}h?this.G(g):this.m(g)}};
26
26
  b.prototype.G=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}"function"==typeof h?this.K(h,g):this.m(g)};b.prototype.l=function(g){this.u(2,g)};b.prototype.m=function(g){this.u(1,g)};b.prototype.u=function(g,h){if(0!=this.h)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.h);this.h=g;this.i=h;2===this.h&&this.I();this.A()};b.prototype.I=function(){var g=this;e(function(){if(g.F()){var h=da.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.F=
27
27
  function(){if(this.o)return!1;var g=da.CustomEvent,h=da.Event,k=da.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.i;return k(g)};b.prototype.A=function(){if(null!=this.g){for(var g=0;g<this.g.length;++g)f.h(this.g[g]);this.g=null}};var f=new c;
28
- b.prototype.J=function(g){var h=this.j();g.oe(h.resolve,h.reject)};b.prototype.K=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(r,p){return"function"==typeof r?function(t){try{l(r(t))}catch(x){m(x)}}:p}var l,m,n=new b(function(r,p){l=r;m=p});this.oe(k(g,l),k(h,m));return n};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.oe=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
29
- break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.o=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=u(g),m=l.next();!m.done;m=l.next())d(m.value).oe(h,k)})};b.all=function(g){var h=u(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(t){return function(x){r[t]=x;p--;0==p&&l(r)}}var r=[],p=0;do r.push(void 0),p++,d(k.value).oe(n(r.length-1),m),k=h.next();
28
+ b.prototype.J=function(g){var h=this.j();g.oe(h.resolve,h.reject)};b.prototype.K=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(r,p){return"function"==typeof r?function(t){try{l(r(t))}catch(y){m(y)}}:p}var l,m,n=new b(function(r,p){l=r;m=p});this.oe(k(g,l),k(h,m));return n};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.oe=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
29
+ break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.o=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=u(g),m=l.next();!m.done;m=l.next())d(m.value).oe(h,k)})};b.all=function(g){var h=u(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(t){return function(y){r[t]=y;p--;0==p&&l(r)}}var r=[],p=0;do r.push(void 0),p++,d(k.value).oe(n(r.length-1),m),k=h.next();
30
30
  while(!k.done)})};return b});function Ga(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
31
31
  ea("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=u(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!Ga(k,g)){var l=new c;ba(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
32
32
  m=new a([[k,2],[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m.delete(k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(n){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!Ga(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ga(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&Ga(k,
@@ -40,8 +40,8 @@ ea("Set",function(a){function b(c){this.g=new Map;if(c){c=u(c);for(var d;!(d=c.n
40
40
  f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
41
41
  b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});ea("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
42
42
  function Ja(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ja(this,b,"includes").indexOf(b,c||0)}});
43
- ea("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});function La(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{rh:e,v:f}}return{rh:-1,v:void 0}}
44
- ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return La(this,b,c).rh}});ea("Array.prototype.find",function(a){return a?a:function(b,c){return La(this,b,c).v}});ea("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ja(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});
43
+ ea("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});function La(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{uh:e,v:f}}return{uh:-1,v:void 0}}
44
+ ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return La(this,b,c).uh}});ea("Array.prototype.find",function(a){return a?a:function(b,c){return La(this,b,c).v}});ea("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ja(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});
45
45
  ea("WeakSet",function(a){function b(c){this.g=new WeakMap;if(c){c=u(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;b.prototype.add=function(c){this.g.set(c,!0);return this};b.prototype.has=function(c){return this.g.has(c)};b.prototype.delete=function(c){return this.g.delete(c)};return b});
46
46
  var Ma="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ga(d,e)&&(a[e]=d[e])}return a};ea("Object.assign",function(a){return a||Ma});ea("Array.prototype.values",function(a){return a?a:function(){return Ha(this,function(b,c){return c})}});
47
47
  ea("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});ea("Array.prototype.entries",function(a){return a?a:function(){return Ha(this,function(b,c){return[b,c]})}});
@@ -56,7 +56,7 @@ ea("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ga(
56
56
  function Oa(){}function Pa(){};function Q(a,b){if(b)if(b instanceof Map)for(var c=u(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
57
57
  function Qa(a){var b=new Q(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}Q.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};Q.prototype.stopImmediatePropagation=function(){this.g=!0};Q.prototype.stopPropagation=function(){};N("shaka.util.FakeEvent",Q);
58
58
  var Ra={tk:"abrstatuschanged",vk:"adaptation",wk:"buffering",xk:"complete",yk:"downloadfailed",zk:"downloadheadersreceived",Ak:"drmsessionupdate",Ck:"emsg",Tk:"prft",Error:"error",Dk:"expirationupdated",Ek:"firstquartile",Fk:"gapjumped",Ik:"keystatuschanged",Kk:"loaded",Lk:"loading",Nk:"manifestparsed",Ok:"manifestupdated",Pk:"mediaqualitychanged",Metadata:"metadata",Qk:"midpoint",Rk:"nospatialvideoinfo",Sk:"onstatechange",Vk:"ratechange",Wk:"segmentappended",Xk:"sessiondata",Yk:"spatialvideoinfo",
59
- Zk:"stalldetected",$k:"started",al:"statechanged",cl:"streaming",fl:"textchanged",hl:"texttrackvisibility",il:"thirdquartile",jl:"timelineregionadded",kl:"timelineregionenter",ll:"timelineregionexit",ol:"trackschanged",rl:"unloading",vl:"variantchanged"};function Sa(){}function Ta(){}function Ua(){}function Va(a){var b=Fa.apply(1,arguments);Wa.has(a)||(Wa.add(a),Ua.apply(Sa,y(b)))}function Xa(){}function Ya(){}function Za(){}var Wa=new Set;window.console&&(Ua=function(){return console.warn.apply(console,y(Fa.apply(0,arguments)))},Ta=function(){console.error.apply(console,y(Fa.apply(0,arguments)))});function $a(){this.g={}}q=$a.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};q.forEach=function(a){for(var b in this.g)a(b,this.g[b])};q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function bb(){this.sa=new $a;this.Ve=this}bb.prototype.addEventListener=function(a,b){this.sa&&this.sa.push(a,b)};bb.prototype.removeEventListener=function(a,b){this.sa&&this.sa.remove(a,b)};bb.prototype.dispatchEvent=function(a){if(!this.sa)return!0;var b=this.sa.get(a.type)||[],c=this.sa.get("All");c&&(b=b.concat(c));b=u(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Ve;a.currentTarget=this.Ve;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
59
+ Zk:"stalldetected",$k:"started",al:"statechanged",cl:"streaming",fl:"textchanged",hl:"texttrackvisibility",il:"thirdquartile",jl:"timelineregionadded",kl:"timelineregionenter",ll:"timelineregionexit",ol:"trackschanged",rl:"unloading",vl:"variantchanged"};function Sa(){}function Ta(){}function Ua(){}function Va(a){var b=Fa.apply(1,arguments);Wa.has(a)||(Wa.add(a),Ua.apply(Sa,w(b)))}function Xa(){}function Ya(){}function Za(){}var Wa=new Set;window.console&&(Ua=function(){return console.warn.apply(console,w(Fa.apply(0,arguments)))},Ta=function(){console.error.apply(console,w(Fa.apply(0,arguments)))});function $a(){this.g={}}q=$a.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};q.forEach=function(a){for(var b in this.g)a(b,this.g[b])};q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function bb(){this.sa=new $a;this.Ve=this}bb.prototype.addEventListener=function(a,b){this.sa&&this.sa.push(a,b)};bb.prototype.removeEventListener=function(a,b){this.sa&&this.sa.remove(a,b)};bb.prototype.dispatchEvent=function(a){if(!this.sa)return!0;var b=this.sa.get(a.type)||[],c=this.sa.get("All");c&&(b=b.concat(c));b=u(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Ve;a.currentTarget=this.Ve;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
60
60
  bb.prototype.release=function(){this.sa=null};function cb(a,b){var c=[];a=u(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function db(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function fb(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function gb(a,b){var c=[];a=u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
61
61
  @license
62
62
  Copyright 2008 The Closure Library Authors
@@ -89,11 +89,11 @@ CS_IMA_SDK_MISSING:1E4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10
89
89
  Ob.prototype.tickAfter=Ob.prototype.V;Ob.prototype.tickNow=Ob.prototype.Ia;function Pb(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}function Qb(a){return""!=Rb().canPlayType(a)}function Sb(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function Tb(){return Ub("Xbox One")}function Vb(){return Ub("Tizen")}function Wb(){return Ub("Tizen 3")}function Xb(){return Ub("Tizen 2")}function Yb(){return Ub("Web0S")}function Zb(){return Ub("CrKey")}
90
90
  function $b(){if(!Ub("Chrome")||navigator.userAgent.match(/Edge\//))return null;var a=navigator.userAgent.match(/Chrome\/(\d+)/);return a?parseInt(a[1],10):null}function bc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Vb()&&!Ub("PC=EOS")&&!Ub("PC=APL")&&!Ub("VirginMedia")&&!cc()&&!dc()&&!Ub("AFT")&&!Ub("WPE")}function ec(){return Ub("PlayStation 5")}function dc(){return Ub("PlayStation 4")}function fc(){return Ub("Hisense")||Ub("VIDAA")}
91
91
  function cc(){return Ub("SOPOpenBrowser")}function gc(){if(!bc())return null;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null}function Ub(a){return(navigator.userAgent||"").includes(a)}function Rb(){if(hc)return hc;ic||(ic=new Ob(function(){hc=null}));(hc=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(hc=document.createElement("video"));ic.V(1);return hc}
92
- function jc(){var a,b,c,d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:a={width:Infinity,height:Infinity};if(Zb()){window.cast&&cast.__platform__&&cast.__platform__.canDisplayType&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?(a.width=3840,a.height=2160):(a.width=1920,a.height=1080);m.D(2);break}if(Vb()){a.width=1920;a.height=1080;try{webapis.systeminfo&&webapis.systeminfo.getMaxVideoResolution?(b=webapis.systeminfo.getMaxVideoResolution(),a.width=
93
- b.width,a.height=b.height):webapis.productinfo.is8KPanelSupported&&webapis.productinfo.is8KPanelSupported()?(a.width=7680,a.height=4320):webapis.productinfo.isUdPanelSupported&&webapis.productinfo.isUdPanelSupported()&&(a.width=3840,a.height=2160)}catch(n){Ua("Tizen: Error detecting screen size, default screen size 1920x1080.")}m.D(2);break}if(Tb()){c=new Windows.Media.Protection.ProtectionCapabilities;d=Windows.Media.Protection.ProtectionCapabilityResult;e=null;try{do e=c.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"',
94
- "com.microsoft.playready.recommendation");while(e===d.maybe)}catch(n){e=d.notSupported}e===d.probably?(a.width=3840,a.height=2160):(a.width=1920,a.height=1080);m.D(2);break}if(Yb()){try{f=JSON.parse(window.PalmSystem.deviceInfo),a.width=Math.max(1920,f.screenWidth),a.height=Math.max(1080,f.screenHeight)}catch(n){Ua("WebOS: Error detecting screen size, default screen size 1920x1080."),a.width=1920,a.height=1080}m.D(2);break}if(fc()){window.Hisense_Get4KSupportState&&window.Hisense_Get4KSupportState()?
95
- (a.width=3840,a.height=2160):(a.width=1920,a.height=1080);m.D(2);break}if(!dc()&&!ec()){m.D(2);break}g=!1;ra(m,8);return D(m,window.msdk.device.getDisplayInfo(),10);case 10:h=m.h;g="4K"===h.resolution;ta(m,9);break;case 8:return ua(m),ra(m,11),D(m,window.msdk.device.getDisplayInfoImmediate(),13);case 13:k=m.h;g="4K"===k.resolution;ta(m,9);break;case 11:l=ua(m),Ua("PlayStation: Failed to get the display info:",l);case 9:g?(a.width=3840,a.height=2160):(a.width=1920,a.height=1080);case 2:return m.return(a)}})}
96
- var ic=null,hc=null;function kc(){}
92
+ function jc(){var a,b,c,d,e,f,g,h,k,l,m,n,r,p;return L(function(t){switch(t.g){case 1:a={width:Infinity,height:Infinity};if(Zb()){m=window.cast&&cast.__platform__&&cast.__platform__.canDisplayType;a.width=1280;a.height=720;ra(t,15);if(!(n=m)){t.B(17);break}return D(t,cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160'),18)}if(Vb()){a.width=1920;a.height=1080;try{webapis.systeminfo&&webapis.systeminfo.getMaxVideoResolution?(b=webapis.systeminfo.getMaxVideoResolution(),
93
+ a.width=b.width,a.height=b.height):webapis.productinfo.is8KPanelSupported&&webapis.productinfo.is8KPanelSupported()?(a.width=7680,a.height=4320):webapis.productinfo.isUdPanelSupported&&webapis.productinfo.isUdPanelSupported()&&(a.width=3840,a.height=2160)}catch(y){Ua("Tizen: Error detecting screen size, default screen size 1920x1080.")}t.B(3);break}if(Tb()){c=new Windows.Media.Protection.ProtectionCapabilities;d=Windows.Media.Protection.ProtectionCapabilityResult;e=null;try{do e=c.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"',
94
+ "com.microsoft.playready.recommendation");while(e===d.maybe)}catch(y){e=d.notSupported}e===d.probably?(a.width=3840,a.height=2160):(a.width=1920,a.height=1080);t.B(3);break}if(Yb()){try{f=JSON.parse(window.PalmSystem.deviceInfo),a.width=Math.max(1920,f.screenWidth),a.height=Math.max(1080,f.screenHeight)}catch(y){Ua("WebOS: Error detecting screen size, default screen size 1920x1080."),a.width=1920,a.height=1080}t.B(3);break}if(fc()){window.Hisense_Get4KSupportState&&window.Hisense_Get4KSupportState()?
95
+ (a.width=3840,a.height=2160):(a.width=1920,a.height=1080);t.B(3);break}if(!dc()&&!ec()){t.B(3);break}g=!1;ra(t,9);return D(t,window.msdk.device.getDisplayInfo(),11);case 11:h=t.h;g="4K"===h.resolution;ta(t,10);break;case 9:return ua(t),ra(t,12),D(t,window.msdk.device.getDisplayInfoImmediate(),14);case 14:k=t.h;g="4K"===k.resolution;ta(t,10);break;case 12:l=ua(t),Ua("PlayStation: Failed to get the display info:",l);case 10:g?(a.width=3840,a.height=2160):(a.width=1920,a.height=1080);t.B(3);break;case 18:n=
96
+ t.h;case 17:if(n){a.width=3840;a.height=2160;t.B(19);break}if(!(r=m)){t.B(20);break}return D(t,cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=1920; height=1080'),21);case 21:r=t.h;case 20:r&&(a.width=1920,a.height=1080);case 19:ta(t,3);break;case 15:p=ua(t),Ta("Failed to check canDisplayType:",p);case 3:return t.return(a)}})}var ic=null,hc=null;function kc(){}
97
97
  function lc(a){if(!a)return"";a=Fb(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!dc())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Ta('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),a;for(var b="",c=0;c<a.length;++c){var d=65533;0==(a[c]&128)?d=a[c]:a.length>=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&&128==
98
98
  (a[c+2]&192)?(d=(a[c]&15)<<12|(a[c+1]&63)<<6|a[c+2]&63,c+=2):a.length>=c+4&&240==(a[c]&241)&&128==(a[c+1]&192)&&128==(a[c+2]&192)&&128==(a[c+3]&192)&&(d=(a[c]&7)<<18|(a[c+1]&63)<<12|(a[c+2]&63)<<6|a[c+3]&63,c+=3);if(65535>=d)b+=String.fromCharCode(d);else{d-=65536;var e=d&1023;b+=String.fromCharCode(55296+(d>>10));b+=String.fromCharCode(56320+e)}}return b}
99
99
  function mc(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new R(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Kb(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return nc(d)}
@@ -116,19 +116,19 @@ var Pc=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"]
116
116
  "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",
117
117
  "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",
118
118
  "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Vc(a){bb.call(this);this.j=Mc(a);this.i=new Map;this.g=new Set;this.h=new Map}na(Vc,bb);q=Vc.prototype;q.release=function(){bb.prototype.release.call(this)};
119
- q.ah=function(a){var b=this;this.g.clear();a=u(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Mc(c.value));Wc(this);a=gb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new Q("unknown-locales",(new Map).set("locales",a)));a=gb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new Q("locale-changed",a))};
119
+ q.dh=function(a){var b=this;this.g.clear();a=u(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Mc(c.value));Wc(this);a=gb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new Q("unknown-locales",(new Map).set("locales",a)));a=gb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new Q("locale-changed",a))};
120
120
  q.Da=function(a,b,c){a=Mc(a);void 0===c&&(c=Xc);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Xc||d.set(f,e)});this.h.set(a,d);Wc(this);this.dispatchEvent(new Q("locale-updated"));return this};q.Sj=function(a){for(var b=u(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};q.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new Q("unknown-localization",a));return""};
121
121
  q.Ki=function(){return this.g};
122
122
  function Wc(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=u(d),h=g.next();!h.done;f={Oc:f.Oc},h=g.next()){f.Oc=h.value;e.add(f.Oc);e.add(Rc(f.Oc));h=gb(b.keys(),function(l){return function(m){return Qc(m,l.Oc)}}(f));h.sort();var k=u(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=gb(b.keys(),function(l){return function(m){return Rc(m)==l.Oc}}(f));h.sort();k=u(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=u(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
123
123
  c.reverse();a.i.clear();b=u(c);for(h=b.next();!h.done;h=b.next())h.value.forEach(function(l,m){a.i.set(m,l)});b=a.i.keys();e=new Set;c=u(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,Yc(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new Q("missing-localizations",d)))}function Yc(a,b,c){b=u(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}N("shaka.ui.Localization",Vc);Vc.prototype.getCurrentLocales=Vc.prototype.Ki;
124
- Vc.prototype.resolve=Vc.prototype.resolve;Vc.prototype.resolveDictionary=Vc.prototype.Sj;Vc.prototype.insert=Vc.prototype.Da;Vc.prototype.changeLocale=Vc.prototype.ah;Vc.prototype.release=Vc.prototype.release;var Xc=1;Vc.ConflictResolution={USE_OLD:0,USE_NEW:Xc};Vc.UNKNOWN_LOCALES="unknown-locales";Vc.UNKNOWN_LOCALIZATION="unknown-localization";Vc.MISSING_LOCALIZATIONS="missing-localizations";Vc.LOCALE_CHANGED="locale-changed";Vc.LOCALE_UPDATED="locale-updated";function $c(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}$c.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function ad(a){return a.h/(1-Math.pow(a.g,a.i))};function bd(){this.h=new $c(2);this.j=new $c(5);this.g=0;this.i=128E3;this.l=16E3}bd.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};bd.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};bd.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(ad(this.h),ad(this.j))};function cd(){this.g=new $a}q=cd.prototype;q.release=function(){this.mb();this.g=null};q.s=function(a,b,c,d){this.g&&(a=new dd(a,b,c,d),this.g.push(b,a))};q.na=function(a,b,c,d){function e(g){f.Ya(a,b,e);c(g)}var f=this;this.s(a,b,e,d)};q.Ya=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=u(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Ya(),this.g.remove(b,e))}};
125
- q.mb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,y(a.g[c]));a=u(b);for(b=a.next();!b.done;b=a.next())b.value.Ya();this.g.g={}}};N("shaka.util.EventManager",cd);cd.prototype.removeAll=cd.prototype.mb;cd.prototype.unlisten=cd.prototype.Ya;cd.prototype.listenOnce=cd.prototype.na;cd.prototype.listen=cd.prototype.s;cd.prototype.release=cd.prototype.release;function dd(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=ed(a,d);this.target.addEventListener(b,c,this.g)}
124
+ Vc.prototype.resolve=Vc.prototype.resolve;Vc.prototype.resolveDictionary=Vc.prototype.Sj;Vc.prototype.insert=Vc.prototype.Da;Vc.prototype.changeLocale=Vc.prototype.dh;Vc.prototype.release=Vc.prototype.release;var Xc=1;Vc.ConflictResolution={USE_OLD:0,USE_NEW:Xc};Vc.UNKNOWN_LOCALES="unknown-locales";Vc.UNKNOWN_LOCALIZATION="unknown-localization";Vc.MISSING_LOCALIZATIONS="missing-localizations";Vc.LOCALE_CHANGED="locale-changed";Vc.LOCALE_UPDATED="locale-updated";function $c(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}$c.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function ad(a){return a.h/(1-Math.pow(a.g,a.i))};function bd(){this.h=new $c(2);this.j=new $c(5);this.g=0;this.i=128E3;this.l=16E3}bd.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};bd.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};bd.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(ad(this.h),ad(this.j))};function cd(){this.g=new $a}q=cd.prototype;q.release=function(){this.mb();this.g=null};q.s=function(a,b,c,d){this.g&&(a=new dd(a,b,c,d),this.g.push(b,a))};q.na=function(a,b,c,d){function e(g){f.Ya(a,b,e);c(g)}var f=this;this.s(a,b,e,d)};q.Ya=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=u(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Ya(),this.g.remove(b,e))}};
125
+ q.mb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,w(a.g[c]));a=u(b);for(b=a.next();!b.done;b=a.next())b.value.Ya();this.g.g={}}};N("shaka.util.EventManager",cd);cd.prototype.removeAll=cd.prototype.mb;cd.prototype.unlisten=cd.prototype.Ya;cd.prototype.listenOnce=cd.prototype.na;cd.prototype.listen=cd.prototype.s;cd.prototype.release=cd.prototype.release;function dd(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=ed(a,d);this.target.addEventListener(b,c,this.g)}
126
126
  dd.prototype.Ya=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function ed(a,b){if(void 0==b)return!1;if("boolean"==typeof b)return b;var c=new Set(["passive","capture"]);Object.keys(b).filter(function(d){return!c.has(d)});return fd(a)?b:b.capture||!1}
127
- function fd(a){var b=gd;if(void 0==b){b=!1;try{var c={},d={get:function(){b=!0;return!1}};Object.defineProperty(c,"passive",d);Object.defineProperty(c,"capture",d);d=function(){};a.addEventListener("test",d,c);a.removeEventListener("test",d,c)}catch(e){b=!1}gd=b}return b||!1}var gd=void 0;function hd(a){if(id.has(a))return id.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);id.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),id.set(a,b),b):!1}function jd(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var id=new Map;function kd(a,b){this.g=a;this.h=b}kd.prototype.toString=function(){return"v"+this.g+"."+this.h};function ld(a,b){var c=new kd(5,0),d=md,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function nd(a,b,c,d){Ua([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function od(a,b,c,d){Ta([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var md=null;function pd(){}pd.prototype.extract=function(){};pd.prototype.decode=function(){return[]};pd.prototype.clear=function(){};pd.prototype.getStreams=function(){return[]};function qd(){}qd.prototype.init=function(){};qd.prototype.parse=function(){return[]};function rd(){}rd.prototype.init=function(){};rd.prototype.i=function(){};rd.prototype.h=function(){};rd.prototype.j=function(){};N("shaka.media.IClosedCaptionParser",rd);function sd(a){this.l=new qd;if(a=td[a.toLowerCase()])this.l=a();this.g=new pd;if(a=ud)this.g=a()}sd.prototype.init=function(a){this.l.init(a)};sd.prototype.i=function(a){a=this.l.parse(a);a=u(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=Fb(b.packet);0<c.length&&this.g.extract(c,b.pts)}return this.g.decode()};
128
- sd.prototype.h=function(){this.g.clear()};sd.prototype.j=function(){return this.g.getStreams()};N("shaka.media.ClosedCaptionParser",sd);sd.findDecoder=function(){return ud};sd.unregisterDecoder=function(){ud=null};sd.registerDecoder=function(a){ud=a};sd.findParser=function(a){return td[a]};sd.unregisterParser=function(a){delete td[a]};sd.registerParser=function(a,b){td[a]=b};var td={},ud=null;function vd(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function wd(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function xd(a,b,c){c||(c=vd);if(a.length!=b.length)return!1;b=b.slice();var d={};a=u(a);for(var e=a.next();!e.done;d={lf:d.lf},e=a.next()){d.lf=e.value;e=b.findIndex(function(f){return function(g){return c(f.lf,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
129
- function Ad(a,b,c){c||(c=vd);if(a.length!=b.length)return!1;for(var d=0;d<a.length;d++)if(!c(a[d],b[d]))return!1;return!0};function Bd(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new Cd;this.position=null;this.positionAlign=Dd;this.size=0;this.textAlign=Ed;this.direction=Fd;this.writingMode=Gd;this.lineInterpretation=Hd;this.line=null;this.lineHeight="";this.lineAlign=Id;this.displayAlign=Jd;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Kd;this.fontStyle=Ld;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright=
127
+ function fd(a){var b=gd;if(void 0==b){b=!1;try{var c={},d={get:function(){b=!0;return!1}};Object.defineProperty(c,"passive",d);Object.defineProperty(c,"capture",d);d=function(){};a.addEventListener("test",d,c);a.removeEventListener("test",d,c)}catch(e){b=!1}gd=b}return b||!1}var gd=void 0;function hd(a){if(id.has(a))return id.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);id.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),id.set(a,b),b):!1}function jd(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var id=new Map;function kd(a,b){this.g=a;this.h=b}kd.prototype.toString=function(){return"v"+this.g+"."+this.h};function ld(a,b){var c=new kd(5,0),d=md,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function nd(a,b,c,d){Ua([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function od(a,b,c,d){Ta([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var md=null;function pd(){}pd.prototype.extract=function(){};pd.prototype.decode=function(){return[]};pd.prototype.clear=function(){};pd.prototype.getStreams=function(){return[]};function qd(){}qd.prototype.init=function(){};qd.prototype.parse=function(){return[]};function rd(){}rd.prototype.init=function(){};rd.prototype.i=function(){};rd.prototype.g=function(){};rd.prototype.j=function(){};N("shaka.media.IClosedCaptionParser",rd);function sd(a){this.l=new qd;if(a=td[a.toLowerCase()])this.l=a();this.h=new pd;if(a=ud)this.h=a()}sd.prototype.init=function(a){this.g();this.l.init(a)};sd.prototype.i=function(a){a=this.l.parse(a);a=u(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=Fb(b.packet);0<c.length&&this.h.extract(c,b.pts)}return this.h.decode()};
128
+ sd.prototype.g=function(){this.h.clear()};sd.prototype.j=function(){return this.h.getStreams()};N("shaka.media.ClosedCaptionParser",sd);sd.findDecoder=function(){return ud};sd.unregisterDecoder=function(){ud=null};sd.registerDecoder=function(a){ud=a};sd.findParser=function(a){return td[a]};sd.unregisterParser=function(a){delete td[a]};sd.registerParser=function(a,b){td[a]=b};var td={},ud=null;function vd(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function wd(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function xd(a,b,c){c||(c=vd);if(a.length!=b.length)return!1;b=b.slice();var d={};a=u(a);for(var e=a.next();!e.done;d={lf:d.lf},e=a.next()){d.lf=e.value;e=b.findIndex(function(f){return function(g){return c(f.lf,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
129
+ function yd(a,b,c){c||(c=vd);if(a.length!=b.length)return!1;for(var d=0;d<a.length;d++)if(!c(a[d],b[d]))return!1;return!0};function Bd(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new Cd;this.position=null;this.positionAlign=Dd;this.size=0;this.textAlign=Ed;this.direction=Fd;this.writingMode=Gd;this.lineInterpretation=Hd;this.line=null;this.lineHeight="";this.lineAlign=Id;this.displayAlign=Jd;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Kd;this.fontStyle=Ld;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright=
130
130
  "";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={tc:32,rows:15}}function Md(a,b){a=new Bd(a,b,"");a.lineBreak=!0;return a}Bd.prototype.clone=function(){var a=new Bd(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
131
- function Pd(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!Ad(a.nestedCues,b.nestedCues,Pd))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!Ad(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}N("shaka.text.Cue",Bd);Bd.equal=Pd;Bd.prototype.clone=Bd.prototype.clone;var Dd="auto";
131
+ function Pd(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!yd(a.nestedCues,b.nestedCues,Pd))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!yd(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}N("shaka.text.Cue",Bd);Bd.equal=Pd;Bd.prototype.clone=Bd.prototype.clone;var Dd="auto";
132
132
  Bd.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Dd};var Ed="center",Qd={LEFT:"left",RIGHT:"right",CENTER:Ed,START:"start",END:"end"};Bd.textAlign=Qd;var Jd="after",Rd={BEFORE:"before",CENTER:"center",AFTER:Jd};Bd.displayAlign=Rd;var Fd="ltr";Bd.direction={HORIZONTAL_LEFT_TO_RIGHT:Fd,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Gd="horizontal-tb";Bd.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Gd,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Hd=0;
133
133
  Bd.lineInterpretation={LINE_NUMBER:Hd,PERCENTAGE:1};var Id="start",Sd={CENTER:"center",START:Id,END:"end"};Bd.lineAlign=Sd;var Vd={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Bd.defaultTextColor=Vd;var Wd={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Bd.defaultTextBackgroundColor=Wd;var Kd=400;Bd.fontWeight={NORMAL:Kd,BOLD:700};
134
134
  var Ld="normal",Xd={NORMAL:Ld,ITALIC:"italic",OBLIQUE:"oblique"};Bd.fontStyle=Xd;Bd.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function Cd(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Yd;this.scroll=Zd}N("shaka.text.CueRegion",Cd);var Yd=1;Cd.units={PX:0,PERCENTAGE:Yd,LINES:2};var Zd="";Cd.scrollMode={NONE:Zd,UP:"up"};function $d(){}$d.prototype.destroy=function(){};function ae(a,b,c){be[a.toLowerCase().split(";")[0]+"-"+c]={priority:c,Re:b}}function ce(a,b){for(var c=a.toLowerCase().split(";")[0],d=u([de,ee,fe,ge]),e=d.next();!e.done;e=d.next())if(e=be[c+"-"+e.value]){var f=e.Re(),g=f.isSupported(a,b);f.destroy();if(g)return e.Re}return null}N("shaka.transmuxer.TransmuxerEngine",$d);$d.findTransmuxer=ce;$d.unregisterTransmuxer=function(a,b){delete be[a.toLowerCase().split(";")[0]+"-"+b]};
@@ -143,10 +143,10 @@ Ae.prototype.remove=function(a,b){var c=this;return L(function(d){if(1==d.g)retu
143
143
  function Ge(a,b,c){b.startTime+=c;b.endTime+=c;b=u(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Ge(a,d.value,c)}
144
144
  function He(a,b,c,d,e){var f=c+" "+d,g=new Map;b=u(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);Ge(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.G&&a.j.append([k]))}e=u(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.o.has(f)||a.o.set(f,new Map),b=u(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.o.get(f).set(h,k);a.g=null==a.g?Math.max(c,
145
145
  a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}N("shaka.text.TextEngine",Ae);Ae.prototype.destroy=Ae.prototype.destroy;Ae.findParser=function(a){return Ce[a]};Ae.unregisterParser=function(a){delete Ce[a]};Ae.registerParser=function(a,b){Ce[a]=b};var Ce={};function Ie(a,b){return a.concat(b)}function Je(){}function Ke(a){return null!=a};function Le(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new WeakSet;return b(a)}function Me(a){var b={},c;for(c in a)b[c]=a[c];return b};function Ne(){}
146
- function Oe(a,b,c,d){var e=a.variants;if(b.length||c.length)e=Pe(e,b,c);if(d.length){b=new $a;c=u(e);for(e=c.next();!e.done;e=c.next())e=e.value,b.push(String(e.video.width||0),e);var f=[];b.forEach(function(t,x){t=0;var w=[],B={};x=u(x);for(var v=x.next();!v.done;B={zd:B.zd},v=x.next())B.zd=v.value,v=d.filter(function(A){return function(z){return A.zd.decodingInfos[0][z]}}(B)).length,v>t?(t=v,w=[B.zd]):v==t&&w.push(B.zd);f.push.apply(f,y(w))});e=f}c=new Set;b=new Set;var g=u(e);for(e=g.next();!e.done;e=
147
- g.next())e=e.value,e.audio&&c.add(e.audio),e.video&&b.add(e.video);c=Array.from(c).sort(function(t,x){return t.bandwidth-x.bandwidth});var h=[];e=new Map;c=u(c);for(g=c.next();!g.done;g=c.next()){g=g.value;var k=g.language+(g.channelsCount||0)+(g.audioSamplingRate||0)+g.roles.join(",")+g.label+g.groupId+g.fastSwitching,l=e.get(k)||[];if(l.length){var m=l[l.length-1],n=pe(m.codecs),r=pe(g.codecs);n==r&&g.bandwidth>m.bandwidth&&(l.push(g),h.push(g.id))}else l.push(g),h.push(g.id);e.set(k,l)}c=Array.from(b).sort(function(t,
148
- x){return t.bandwidth&&x.bandwidth?t.bandwidth-x.bandwidth:t.width-x.width});b=jd();var p=[];e=new Map;c=u(c);for(g=c.next();!g.done;g=c.next()){g=g.value;k=Math.round(g.frameRate||0)+(g.hdr||"")+g.fastSwitching;l=e.get(k)||[];if(l.length){m=l[l.length-1];if(!b&&(n=pe(m.codecs),r=pe(g.codecs),n!==r))continue;g.width>m.width||g.height>m.height?(l.push(g),p.push(g.id)):g.width==m.width&&g.height==m.height&&(n=pe(m.codecs),r=pe(g.codecs),n==r&&g.bandwidth>m.bandwidth&&(l.push(g),p.push(g.id)))}else l.push(g),
149
- p.push(g.id);e.set(k,l)}a.variants=a.variants.filter(function(t){var x=t.audio;t=t.video;return x&&!h.includes(x.id)||t&&!p.includes(t.id)?!1:!0})}
146
+ function Oe(a,b,c,d){var e=a.variants;if(b.length||c.length)e=Pe(e,b,c);if(d.length){b=new $a;c=u(e);for(e=c.next();!e.done;e=c.next())e=e.value,b.push(String(e.video.width||0),e);var f=[];b.forEach(function(t,y){t=0;var x=[],A={};y=u(y);for(var v=y.next();!v.done;A={zd:A.zd},v=y.next())A.zd=v.value,v=d.filter(function(B){return function(z){return B.zd.decodingInfos[0][z]}}(A)).length,v>t?(t=v,x=[A.zd]):v==t&&x.push(A.zd);f.push.apply(f,w(x))});e=f}c=new Set;b=new Set;var g=u(e);for(e=g.next();!e.done;e=
147
+ g.next())e=e.value,e.audio&&c.add(e.audio),e.video&&b.add(e.video);c=Array.from(c).sort(function(t,y){return t.bandwidth-y.bandwidth});var h=[];e=new Map;c=u(c);for(g=c.next();!g.done;g=c.next()){g=g.value;var k=g.language+(g.channelsCount||0)+(g.audioSamplingRate||0)+g.roles.join(",")+g.label+g.groupId+g.fastSwitching,l=e.get(k)||[];if(l.length){var m=l[l.length-1],n=pe(m.codecs),r=pe(g.codecs);n==r&&g.bandwidth>m.bandwidth&&(l.push(g),h.push(g.id))}else l.push(g),h.push(g.id);e.set(k,l)}c=Array.from(b).sort(function(t,
148
+ y){return t.bandwidth&&y.bandwidth?t.bandwidth-y.bandwidth:t.width-y.width});b=jd();var p=[];e=new Map;c=u(c);for(g=c.next();!g.done;g=c.next()){g=g.value;k=Math.round(g.frameRate||0)+(g.hdr||"")+g.fastSwitching;l=e.get(k)||[];if(l.length){m=l[l.length-1];if(!b&&(n=pe(m.codecs),r=pe(g.codecs),n!==r))continue;g.width>m.width||g.height>m.height?(l.push(g),p.push(g.id)):g.width==m.width&&g.height==m.height&&(n=pe(m.codecs),r=pe(g.codecs),n==r&&g.bandwidth>m.bandwidth&&(l.push(g),p.push(g.id)))}else l.push(g),
149
+ p.push(g.id);e.set(k,l)}a.variants=a.variants.filter(function(t){var y=t.audio;t=t.video;return y&&!h.includes(y.id)||t&&!p.includes(t.id)?!1:!0})}
150
150
  function Pe(a,b,c){var d={};b=u(b);for(var e=b.next();!e.done;d={uf:d.uf},e=b.next())if(d.uf=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.uf)}}(d)),e.length){a=e;break}d={};c=u(c);for(b=c.next();!b.done;d={jf:d.jf},b=c.next())if(d.jf=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.jf)}}(d)),b.length){a=b;break}return a}function Qe(a,b,c){a.variants=a.variants.filter(function(d){return Re(d,b,c)})}
151
151
  function Re(a,b,c){function d(h,k,l){return h>=k&&h<=l}var e=a.video;if(e&&e.width&&e.height){var f=e.width,g=e.height;g>f&&(g=u([g,f]),f=g.next().value,g=g.next().value);if(!d(f,b.minWidth,Math.min(b.maxWidth,c.width))||!d(g,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))return!1}return a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
152
152
  function Se(a,b,c){var d=!1;a=u(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=Re(e,b,c);f!=e.allowedByApplication&&(d=!0)}return d}function Te(a,b,c){c=void 0===c?[]:c;return L(function(d){if(1==d.g)return D(d,Ue(a,b,0<b.offlineSessionIds.length,c),2);Ve(b);return D(d,We(b),0)})}
@@ -157,15 +157,15 @@ function cf(a,b){var c,d,e,f,g,h,k;return L(function(l){if(1==l.g){c=function(m,
157
157
  null;n=u(n||[]);for(var p=n.next();!p.done;p=n.next())r=c(r,p.value);r&&(m.kd[m.ld]=r,d=c(d,r))}}(f)));return D(l,Promise.all(e),2)}d&&a.decodingInfos.push(d);G(l)})}
158
158
  function ef(a){var b=[""];a.video&&(b=xe(a.video.contentType).split(","));var c=[""];a.audio&&(c=xe(a.audio.contentType).split(","));var d=[];b=u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;for(var f={},g=u(c),h=g.next();!h.done;f={nc:f.nc},h=g.next())h=h.value,f.nc=Le(a),a.video&&(f.nc.video.contentType=ie(we(f.nc.video.contentType),e)),a.audio&&(f.nc.audio.contentType=ie(we(f.nc.audio.contentType),h)),d.push(new Promise(function(k){return function(l,m){navigator.mediaCapabilities.decodingInfo(k.nc).then(function(n){l(n)}).catch(m)}}(f)))}return Promise.all(d).catch(function(){JSON.stringify(a);
159
159
  return null})}
160
- function Xe(a,b,c,d){var e,f,g,h,k,l,m,n,r,p,t,x,w,B,v,A,z;return L(function(C){switch(C.g){case 1:if(e=a.some(function(E){return E.decodingInfos.length}))return C.return();f={};g=u(d);h=g.next();case 2:if(h.done){C.D(4);break}f.nf=h.value;k=!1;l=u(a);m=l.next();case 5:if(m.done){C.D(7);break}n=m.value;r=ff(n,b,c).filter(function(E){return function(H){H=H[0];return(H.keySystemConfiguration&&H.keySystemConfiguration.keySystem)===E.nf}}(f));p=u(r);t=p.next();case 8:if(t.done){C.D(10);break}x=t.value;
161
- return D(C,cf(n,x),9);case 9:t=p.next();C.D(8);break;case 10:n.decodingInfos.length&&(k=!0);m=l.next();C.D(5);break;case 7:if(k)return C.return();f={nf:f.nf};h=g.next();C.D(2);break;case 4:w=u(a),m=w.next();case 12:if(m.done){C.D(0);break}B=m.value;v=ff(B,b,c).filter(function(E){E=E[0];E=E.keySystemConfiguration&&E.keySystemConfiguration.keySystem;return!E||!d.includes(E)});A=u(v);t=A.next();case 15:if(t.done){m=w.next();C.D(12);break}z=t.value;return D(C,cf(B,z),16);case 16:t=A.next(),C.D(15)}})}
160
+ function Xe(a,b,c,d){var e,f,g,h,k,l,m,n,r,p,t,y,x,A,v,B,z;return L(function(C){switch(C.g){case 1:if(e=a.some(function(E){return E.decodingInfos.length}))return C.return();f={};g=u(d);h=g.next();case 2:if(h.done){C.B(4);break}f.nf=h.value;k=!1;l=u(a);m=l.next();case 5:if(m.done){C.B(7);break}n=m.value;r=ff(n,b,c).filter(function(E){return function(H){H=H[0];return(H.keySystemConfiguration&&H.keySystemConfiguration.keySystem)===E.nf}}(f));p=u(r);t=p.next();case 8:if(t.done){C.B(10);break}y=t.value;
161
+ return D(C,cf(n,y),9);case 9:t=p.next();C.B(8);break;case 10:n.decodingInfos.length&&(k=!0);m=l.next();C.B(5);break;case 7:if(k)return C.return();f={nf:f.nf};h=g.next();C.B(2);break;case 4:x=u(a),m=x.next();case 12:if(m.done){C.B(0);break}A=m.value;v=ff(A,b,c).filter(function(E){E=E[0];E=E.keySystemConfiguration&&E.keySystemConfiguration.keySystem;return!E||!d.includes(E)});B=u(v);t=B.next();case 15:if(t.done){m=x.next();C.B(12);break}z=t.value;return D(C,cf(A,z),16);case 16:t=B.next(),C.B(15)}})}
162
162
  function ff(a,b,c){var d=a.audio,e=a.video,f=[],g=[];if(e)for(var h=u(e.fullMimeTypes),k=h.next();!k.done;k=h.next()){k=k.value;var l=xe(k);if(l.includes(",")&&!d){var m=l.split(",");l=Dc("video",m);m=Dc("audio",m);m=af(m);m=le(we(k),m,"audio");g.push({contentType:m,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1})}l=$e(l);k={contentType:le(we(k),l,"video"),width:e.width||64,height:e.height||64,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":k.transferFunction=
163
163
  "srgb";break;case "PQ":k.transferFunction="pq";break;case "HLG":k.transferFunction="hlg"}f.push(k)}if(d)for(h=u(d.fullMimeTypes),k=h.next();!k.done;k=h.next())k=k.value,l=af(xe(k)),k=le(we(k),l,"audio"),g.push({contentType:k,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});h=[];0==f.length&&f.push(null);0==g.length&&g.push(null);f=u(f);for(k=f.next();!k.done;k=f.next())for(k=k.value,l=u(g),m=l.next();!m.done;m=l.next()){m=
164
164
  m.value;var n={type:c?"file":"media-source"};k&&(n.video=k);m&&(n.audio=m);h.push(n)}g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[h];a=[];c=new Map;g=u(g);for(var r=g.next();!r.done;r=g.next())f=r.value,c.get(f.keySystem)||c.set(f.keySystem,[]),c.get(f.keySystem).push(f);g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];f=u(c.keys());for(k=f.next();!k.done;k=f.next()){k=k.value;l=[];m=u(h);for(n=m.next();!n.done;n=m.next()){n=Object.assign({},
165
- n.value);var p=c.get(k),t={keySystem:k,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b};p=u(p);for(r=p.next();!r.done;r=p.next()){r=r.value;if(r.initData&&r.initData.length){for(var x=new Set,w=u(r.initData),B=w.next();!B.done;B=w.next())x.add(B.value.initDataType);t.initDataType=r.initData[0].initDataType}r.distinctiveIdentifierRequired&&(t.distinctiveIdentifier="required");r.persistentStateRequired&&(t.persistentState="required");r.sessionType&&(t.sessionTypes=
165
+ n.value);var p=c.get(k),t={keySystem:k,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b};p=u(p);for(r=p.next();!r.done;r=p.next()){r=r.value;if(r.initData&&r.initData.length){for(var y=new Set,x=u(r.initData),A=x.next();!A.done;A=x.next())y.add(A.value.initDataType);t.initDataType=r.initData[0].initDataType}r.distinctiveIdentifierRequired&&(t.distinctiveIdentifier="required");r.persistentStateRequired&&(t.persistentState="required");r.sessionType&&(t.sessionTypes=
166
166
  [r.sessionType]);d&&(""!=r.audioRobustness?t.audio?t.audio.robustness=t.audio.robustness||r.audioRobustness:t.audio={robustness:r.audioRobustness}:t.audio||(t.audio={}));e&&(""!=r.videoRobustness?t.video?t.video.robustness=t.video.robustness||r.videoRobustness:t.video={robustness:r.videoRobustness}:t.video||(t.video={}))}n.keySystemConfiguration=t;l.push(n)}a.push(l)}return a}function af(a){return"flac"==a.toLowerCase()?gc()?"fLaC":"flac":"Opus"===a?"opus":a}
167
167
  function $e(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}else if("vp9"==a)return"vp09.00.41.08";return a}function Ve(a){a.textStreams=a.textStreams.filter(function(b){b=ie(b.mimeType,b.codecs);return Be(b)})}
168
- function We(a){var b,c,d,e,f,g,h,k;return L(function(l){switch(l.g){case 1:b=[],c=u(a.imageStreams),d=c.next();case 2:if(d.done){l.D(4);break}e=d.value;f=e.mimeType;"application/mp4"==f&&"mjpg"==e.codecs&&(f="image/jpg");if(gf.has(f)){l.D(5);break}g=hf.get(f);if(!g){gf.set(f,!1);l.D(5);break}return D(l,jf(g),7);case 7:h=l.h,gf.set(f,h);case 5:(k=gf.get(f))&&b.push(e);d=c.next();l.D(2);break;case 4:a.imageStreams=b,G(l)}})}
168
+ function We(a){var b,c,d,e,f,g,h,k;return L(function(l){switch(l.g){case 1:b=[],c=u(a.imageStreams),d=c.next();case 2:if(d.done){l.B(4);break}e=d.value;f=e.mimeType;"application/mp4"==f&&"mjpg"==e.codecs&&(f="image/jpg");if(gf.has(f)){l.B(5);break}g=hf.get(f);if(!g){gf.set(f,!1);l.B(5);break}return D(l,jf(g),7);case 7:h=l.h,gf.set(f,h);case 5:(k=gf.get(f))&&b.push(e);d=c.next();l.B(2);break;case 4:a.imageStreams=b,G(l)}})}
169
169
  function jf(a){return new Promise(function(b){var c=new Image;c.src=a;"decode"in c?c.decode().then(function(){b(!0)}).catch(function(){b(!1)}):c.onload=c.onerror=function(){b(2===c.height)}})}
170
170
  function kf(a){var b=a.audio,c=a.video,d=b?b.mimeType:null,e=c?c.mimeType:null,f=b?b.codecs:null,g=c?c.codecs:null,h=[];g&&h.push(g);f&&h.push(f);var k=[];c&&k.push(c.mimeType);b&&k.push(b.mimeType);k=k[0]||null;var l=[];b&&l.push(b.kind);c&&l.push(c.kind);l=l[0]||null;var m=new Set;if(b)for(var n=u(b.roles),r=n.next();!r.done;r=n.next())m.add(r.value);if(c)for(n=u(c.roles),r=n.next();!r.done;r=n.next())m.add(r.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,
171
171
  kind:l,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,videoLayout:null,mimeType:k,audioMimeType:d,videoMimeType:e,codecs:h.join(", "),audioCodec:f,videoCodec:g,primary:a.primary,roles:Array.from(m),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null};
@@ -187,9 +187,9 @@ this.o);d=e;a&&e.length!=this.o.length&&(d=this.o.filter(function(l){return l.au
187
187
  a[d];for(var f=isNaN(this.F)?1:Math.abs(this.F),g=f*e.bandwidth/this.g.bandwidthDowngradeTarget,h={bandwidth:Infinity},k=d+1;k<a.length;k++)if(e.bandwidth!=a[k].bandwidth){h=a[k];break}f=f*h.bandwidth/this.g.bandwidthUpgradeTarget;b>=g&&b<=f&&c.bandwidth!=e.bandwidth&&(c=e)}this.A=Date.now();return c};q.enable=function(){this.l=!0};q.disable=function(){this.l=!1};q.segmentDownloaded=function(a,b,c){this.i.sample(a,b);c&&null!=this.A&&this.l&&Df(this)};
188
188
  q.trySuggestStreams=function(){null!=this.A&&this.l&&Df(this)};q.getBandwidthEstimate=function(){var a=this.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(a=1E6*navigator.connection.downlink);a=this.i.getBandwidthEstimate(a);return this.j?this.j.getBandwidthEstimate(a):a};q.setVariants=function(a){this.o=a};q.playbackRateChanged=function(a){this.F=a};
189
189
  q.setMediaElement=function(a){var b=this;this.m=a;this.h&&(this.h.disconnect(),this.h=null);this.m&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.G.V(Ef)}),this.h.observe(this.m))};q.setCmsdManager=function(a){this.j=a};q.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)};
190
- function Df(a){if(!a.I){var b=a.i;if(!(b.g>=b.i))return;a.I=!0}else if(Date.now()-a.A<1E3*a.g.switchInterval)return;b=a.chooseVariant();a.getBandwidthEstimate();b&&a.u(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}function xf(a,b,c,d,e){if(a.j){var f=a.j.oh();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return Re(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}
190
+ function Df(a){if(!a.I){var b=a.i;if(!(b.g>=b.i))return;a.I=!0}else if(Date.now()-a.A<1E3*a.g.switchInterval)return;b=a.chooseVariant();a.getBandwidthEstimate();b&&a.u(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}function xf(a,b,c,d,e){if(a.j){var f=a.j.qh();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return Re(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}
191
191
  function yf(a){var b=[];a=u(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}N("shaka.abr.SimpleAbrManager",wf);wf.prototype.configure=wf.prototype.configure;wf.prototype.setCmsdManager=wf.prototype.setCmsdManager;wf.prototype.setMediaElement=wf.prototype.setMediaElement;wf.prototype.playbackRateChanged=wf.prototype.playbackRateChanged;wf.prototype.setVariants=wf.prototype.setVariants;
192
- wf.prototype.getBandwidthEstimate=wf.prototype.getBandwidthEstimate;wf.prototype.trySuggestStreams=wf.prototype.trySuggestStreams;wf.prototype.segmentDownloaded=wf.prototype.segmentDownloaded;wf.prototype.disable=wf.prototype.disable;wf.prototype.enable=wf.prototype.enable;wf.prototype.chooseVariant=wf.prototype.chooseVariant;wf.prototype.init=wf.prototype.init;wf.prototype.release=wf.prototype.release;wf.prototype.stop=wf.prototype.stop;var Ef=1;N("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});N("shaka.config.CodecSwitchingStrategy",{Uk:"reload",ei:"smooth"});function Ff(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;this.h=a;this.g=new Set([a]);b=b||[];a=u(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c,d)}Ff.prototype.add=function(a,b,c){return Gf(this.h,a,void 0===b?!0:b,void 0===c?!1:c)?(this.g.add(a),!0):!1};
192
+ wf.prototype.getBandwidthEstimate=wf.prototype.getBandwidthEstimate;wf.prototype.trySuggestStreams=wf.prototype.trySuggestStreams;wf.prototype.segmentDownloaded=wf.prototype.segmentDownloaded;wf.prototype.disable=wf.prototype.disable;wf.prototype.enable=wf.prototype.enable;wf.prototype.chooseVariant=wf.prototype.chooseVariant;wf.prototype.init=wf.prototype.init;wf.prototype.release=wf.prototype.release;wf.prototype.stop=wf.prototype.stop;var Ef=1;N("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});N("shaka.config.CodecSwitchingStrategy",{Uk:"reload",gi:"smooth"});function Ff(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;this.h=a;this.g=new Set([a]);b=b||[];a=u(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c,d)}Ff.prototype.add=function(a,b,c){return Gf(this.h,a,void 0===b?!0:b,void 0===c?!1:c)?(this.g.add(a),!0):!1};
193
193
  function Gf(a,b,c,d){var e;if(!(e=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(e=a.audio&&b.audio)){e=a.audio;var f=b.audio;e=!!((!e.channelsCount||!f.channelsCount||2<e.channelsCount||2<f.channelsCount)&&e.channelsCount!=f.channelsCount||c&&!Hf(e,f)||!If(e.roles,f.roles)||d&&e.groupId!==f.groupId)}!(d=e)&&(d=a.video&&b.video)&&(a=a.video,b=b.video,d=!((!c||Hf(a,b))&&If(a.roles,b.roles)));return d?!1:!0}Ff.prototype.values=function(){return this.g.values()};
194
194
  function Hf(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(d){return ve(d)});b=b.codecs.split(",").map(function(d){return ve(d)});if(a.length!=b.length)return!1;a.sort();b.sort();for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}function If(a,b){a=new Set(a);b=new Set(b);a.delete("main");b.delete("main");if(a.size!=b.size)return!1;a=u(a);for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!1;return!0};function Jf(a,b,c){b=void 0===b?"reload":b;c=void 0===c?!1:c;this.i=a;this.h=b;this.g=c;this.j=new Kf(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"",!1,"","","",b,c)}Jf.prototype.create=function(a){var b=this,c="smooth"==this.h&&jd(),d=a.filter(function(e){return Gf(b.i,e,!c,b.g)});return d.length?new Ff(d[0],d,!c,this.g):this.j.create(a)};
195
195
  function Kf(a,b,c,d,e,f,g,h,k,l){this.u=a;this.A=b;this.h=c;this.i=d;this.F=e;this.l=f;this.g=void 0===g?"":g;this.j=void 0===h?"":h;this.m=void 0===k?"reload":k;this.o=void 0===l?!1:l}
@@ -199,20 +199,20 @@ function Tf(a,b){return a.filter(function(c){return c.audio&&c.audio.channelsCou
199
199
  function cg(a){var b,c;return L(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new R(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.o);return D(d,new Promise(function(e){(new Ob(e)).V(c/1E3)}),2)}a.h*=a.m;G(d)})}function bg(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function dg(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}dg.prototype.resolve=function(){};dg.prototype.reject=function(){};function eg(a,b){this.promise=a;this.i=b;this.g=!1}function fg(a){return new eg(Promise.reject(a),function(){return Promise.resolve()})}function gg(){var a=Promise.reject(new R(2,7,7001));a.catch(function(){});return new eg(a,function(){return Promise.resolve()})}function hg(a){return new eg(Promise.resolve(a),function(){return Promise.resolve()})}function ig(a){return new eg(a,function(){return a.catch(function(){})})}eg.prototype.abort=function(){this.g=!0;return this.i()};
200
200
  function jg(a){return new eg(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}eg.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
201
201
  eg.prototype.Ma=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=kg(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new dg,g=new R(2,7,7001);this.promise.then(c(!0),c(!1));return new eg(f,function(){return d()})};
202
- function kg(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}N("shaka.util.AbortableOperation",eg);eg.prototype.chain=eg.prototype.Ma;eg.prototype["finally"]=eg.prototype.finally;eg.all=jg;eg.prototype.abort=eg.prototype.abort;eg.notAbortable=ig;eg.completed=hg;eg.aborted=gg;eg.failed=fg;function lg(){this.g=[]}function mg(a,b){a.g.push(b.finally(function(){wd(a.g,b)}))}lg.prototype.destroy=function(){for(var a=[],b=u(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function ng(a,b,c,d,e,f){bb.call(this);this.i=!1;this.m=new lg;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.u=c||null;this.A=d||null;this.G=e||null;this.F=f||null;this.o=!1}na(ng,bb);q=ng.prototype;q.Fg=function(a){this.o=a};function og(a,b,c,d){c=c||pg;var e=qg[a];if(!e||c>=e.priority)qg[a]={priority:c,Re:b,Hj:void 0===d?!1:d}}q.Kj=function(a){this.g.add(a)};q.jk=function(a){this.g.delete(a)};q.ri=function(){this.g.clear()};q.Lj=function(a){this.h.add(a)};q.kk=function(a){this.h.delete(a)};
203
- q.si=function(){this.h.clear()};function rg(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}q.destroy=function(){this.i=!0;this.g.clear();this.h.clear();bb.prototype.release.call(this);return this.m.destroy()};
202
+ function kg(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}N("shaka.util.AbortableOperation",eg);eg.prototype.chain=eg.prototype.Ma;eg.prototype["finally"]=eg.prototype.finally;eg.all=jg;eg.prototype.abort=eg.prototype.abort;eg.notAbortable=ig;eg.completed=hg;eg.aborted=gg;eg.failed=fg;function lg(){this.g=[]}function mg(a,b){a.g.push(b.finally(function(){wd(a.g,b)}))}lg.prototype.destroy=function(){for(var a=[],b=u(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function ng(a,b,c,d,e,f){bb.call(this);this.i=!1;this.m=new lg;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.u=c||null;this.A=d||null;this.G=e||null;this.F=f||null;this.o=!1}na(ng,bb);q=ng.prototype;q.Fg=function(a){this.o=a};function og(a,b,c,d){c=c||pg;var e=qg[a];if(!e||c>=e.priority)qg[a]={priority:c,Re:b,Hj:void 0===d?!1:d}}q.Kj=function(a){this.g.add(a)};q.jk=function(a){this.g.delete(a)};q.si=function(){this.g.clear()};q.Lj=function(a){this.h.add(a)};q.kk=function(a){this.h.delete(a)};
203
+ q.ti=function(){this.h.clear()};function rg(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}q.destroy=function(){this.i=!0;this.g.clear();this.h.clear();bb.prototype.release.call(this);return this.m.destroy()};
204
204
  q.request=function(a,b,c){var d=this,e=new sg;if(this.i){var f=Promise.reject(new R(2,7,7001));f.catch(function(){});return new tg(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Le(b.retryParameters):bg();b.uris=Le(b.uris);f=ug(this,a,b,c);var g=f.Ma(function(){return vg(d,a,b,c,new ag(b.retryParameters,!1),0,null,e)}),h=g.Ma(function(r){return wg(d,a,r,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){});
205
205
  var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.Ma(function(r){var p=Date.now()-m,t=r.response;t.timeMs+=l;t.timeMs+=p;r.kj||!d.l||t.fromCache||"HEAD"==b.method||a!=xg||d.l(t.timeMs,t.data.byteLength,yg(c));d.F&&d.F(a,t,c);return t},function(r){r&&(r.severity=2);throw r;});f=new tg(n.promise,function(){return n.abort()},e);mg(this.m,f);return f};
206
206
  function ug(a,b,c,d){function e(h){f=f.Ma(function(){c.body&&(c.body=Gb(c.body));return h(b,c,d)})}var f=hg(void 0);a.A&&e(a.A);a=u(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.Ma(void 0,function(h){if(h instanceof R&&7001==h.code)throw h;throw new R(2,1,1006,h);})}
207
- function vg(a,b,c,d,e,f,g,h){a.o&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.G&&a.G(b,d,c.uris[f],c.uris[f-1]);var k=new ib(c.uris[f]),l=k.Fb,m=!1;l||(l=location.protocol,l=l.slice(0,-1),jb(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=qg[l])?l.Re:null;if(!n)return fg(new R(2,1,1E3,k));var r=l.Hj,p=null,t=null,x=!1,w=!1,B;return ig(cg(e)).Ma(function(){if(a.i)return gg();B=Date.now();var v=0;c.requestStartTime=Date.now();var A=n(c.uris[f],c,b,function(E,H,J){p&&p.stop();
208
- t&&t.V(C/1E3);a.l&&b==xg&&(v++,c.packetNumber=v,a.l(E,H,yg(d),c),m=!0,h.g=J)},function(E){a.j&&a.j(E,c,b);w=!0;c.timeToFirstByte=Date.now()-c.requestStartTime});if(!r)return A;var z=c.retryParameters.connectionTimeout;z&&(p=new Ob(function(){x=!0;A.abort()}),p.V(z/1E3));var C=c.retryParameters.stallTimeout;C&&(t=new Ob(function(){x=!0;A.abort()}));return A}).Ma(function(v){p&&p.stop();t&&t.stop();void 0==v.timeMs&&(v.timeMs=Date.now()-B);var A={response:v,kj:m};!w&&a.j&&a.j(v.headers,c,b);return A},
209
- function(v){p&&p.stop();t&&t.stop();if(a.u){var A=null,z=0;v instanceof R&&(A=v,1001==v.code&&(z=v.data[1]));a.u(c,A,z,x)}if(a.i)return gg();x&&(v=new R(1,1,1003,c.uris[f],b));if(v instanceof R){if(7001==v.code)throw v;if(1010==v.code)throw g;if(1==v.severity)return A=(new Map).set("error",v),A=new Q("retry",A),a.dispatchEvent(A),f=(f+1)%c.uris.length,vg(a,b,c,d,e,f,v,h)}throw v;})}
207
+ function vg(a,b,c,d,e,f,g,h){a.o&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.G&&a.G(b,d,c.uris[f],c.uris[f-1]);var k=new ib(c.uris[f]),l=k.Fb,m=!1;l||(l=location.protocol,l=l.slice(0,-1),jb(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=qg[l])?l.Re:null;if(!n)return fg(new R(2,1,1E3,k));var r=l.Hj,p=null,t=null,y=!1,x=!1,A;return ig(cg(e)).Ma(function(){if(a.i)return gg();A=Date.now();var v=0;c.requestStartTime=Date.now();var B=n(c.uris[f],c,b,function(E,H,J){p&&p.stop();
208
+ t&&t.V(C/1E3);a.l&&b==xg&&(v++,c.packetNumber=v,a.l(E,H,yg(d),c),m=!0,h.g=J)},function(E){a.j&&a.j(E,c,b);x=!0;c.timeToFirstByte=Date.now()-c.requestStartTime});if(!r)return B;var z=c.retryParameters.connectionTimeout;z&&(p=new Ob(function(){y=!0;B.abort()}),p.V(z/1E3));var C=c.retryParameters.stallTimeout;C&&(t=new Ob(function(){y=!0;B.abort()}));return B}).Ma(function(v){p&&p.stop();t&&t.stop();void 0==v.timeMs&&(v.timeMs=Date.now()-A);var B={response:v,kj:m};!x&&a.j&&a.j(v.headers,c,b);return B},
209
+ function(v){p&&p.stop();t&&t.stop();if(a.u){var B=null,z=0;v instanceof R&&(B=v,1001==v.code&&(z=v.data[1]));a.u(c,B,z,y)}if(a.i)return gg();y&&(v=new R(1,1,1003,c.uris[f],b));if(v instanceof R){if(7001==v.code)throw v;if(1010==v.code)throw g;if(1==v.severity)return B=(new Map).set("error",v),B=new Q("retry",B),a.dispatchEvent(B),f=(f+1)%c.uris.length,vg(a,b,c,d,e,f,v,h)}throw v;})}
210
210
  function wg(a,b,c,d){var e=hg(void 0),f={};a=u(a.h);for(var g=a.next();!g.done;f={qf:f.qf},g=a.next())f.qf=g.value,e=e.Ma(function(h){return function(){var k=c.response;k.data&&(k.data=Gb(k.data));return h.qf(b,k,d)}}(f));return e.Ma(function(){return c},function(h){var k=2;if(h instanceof R){if(7001==h.code)throw h;k=h.severity}throw new R(k,1,1007,h);})}function yg(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.Ud)return!1}return!0}N("shaka.net.NetworkingEngine",ng);
211
- ng.prototype.request=ng.prototype.request;ng.prototype.destroy=ng.prototype.destroy;ng.makeRequest=rg;ng.defaultRetryParameters=function(){return bg()};ng.prototype.clearAllResponseFilters=ng.prototype.si;ng.prototype.unregisterResponseFilter=ng.prototype.kk;ng.prototype.registerResponseFilter=ng.prototype.Lj;ng.prototype.clearAllRequestFilters=ng.prototype.ri;ng.prototype.unregisterRequestFilter=ng.prototype.jk;ng.prototype.registerRequestFilter=ng.prototype.Kj;ng.unregisterScheme=function(a){delete qg[a]};
211
+ ng.prototype.request=ng.prototype.request;ng.prototype.destroy=ng.prototype.destroy;ng.makeRequest=rg;ng.defaultRetryParameters=function(){return bg()};ng.prototype.clearAllResponseFilters=ng.prototype.ti;ng.prototype.unregisterResponseFilter=ng.prototype.kk;ng.prototype.registerResponseFilter=ng.prototype.Lj;ng.prototype.clearAllRequestFilters=ng.prototype.si;ng.prototype.unregisterRequestFilter=ng.prototype.jk;ng.prototype.registerRequestFilter=ng.prototype.Kj;ng.unregisterScheme=function(a){delete qg[a]};
212
212
  ng.registerScheme=og;ng.prototype.setForceHTTPS=ng.prototype.Fg;function sg(){this.g=0}ng.NumBytesRemainingClass=sg;function tg(a,b,c){eg.call(this,a,b);this.h=c}na(tg,eg);ng.PendingRequest=tg;var xg=1;ng.RequestType={MANIFEST:0,SEGMENT:xg,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};ng.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5};var pg=3;ng.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:pg};var qg={};function zg(a){this.g=!1;this.h=new dg;this.i=a}zg.prototype.destroy=function(){var a=this;if(this.g)return this.h;this.g=!0;return this.i().then(function(){a.h.resolve()},function(){a.h.resolve()})};function Ag(a,b){if(a.g){if(b instanceof R&&7003==b.code)throw b;throw new R(2,7,7003,b);}};function Bg(a){for(var b=new Map,c=u(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Cg(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function Dg(a,b){this.h=Kb(a);this.i=b==Eg;this.g=0}q=Dg.prototype;q.Aa=function(){return this.g<this.h.byteLength};q.Na=function(){return this.g};q.getLength=function(){return this.h.byteLength};q.W=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw Fg();}};q.Ha=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw Fg();}};q.R=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw Fg();}};
213
- q.Fh=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Fg();}};q.ed=function(){try{if(this.i){var a=this.h.getUint32(this.g,!0);var b=this.h.getUint32(this.g+4,!0)}else b=this.h.getUint32(this.g,!1),a=this.h.getUint32(this.g+4,!1)}catch(c){throw Fg();}if(2097151<b)throw new R(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Pb=function(a){if(this.g+a>this.h.byteLength)throw Fg();var b=Fb(this.h,this.g,a);this.g+=a;return b};
213
+ q.Hh=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Fg();}};q.ed=function(){try{if(this.i){var a=this.h.getUint32(this.g,!0);var b=this.h.getUint32(this.g+4,!0)}else b=this.h.getUint32(this.g,!1),a=this.h.getUint32(this.g+4,!1)}catch(c){throw Fg();}if(2097151<b)throw new R(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Pb=function(a){if(this.g+a>this.h.byteLength)throw Fg();var b=Fb(this.h,this.g,a);this.g+=a;return b};
214
214
  q.skip=function(a){if(this.g+a>this.h.byteLength)throw Fg();this.g+=a};q.Tj=function(a){if(this.g<a)throw Fg();this.g-=a};q.seek=function(a){if(0>a||a>this.h.byteLength)throw Fg();this.g=a};q.Ec=function(){for(var a=this.g;this.Aa()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Fb(this.h,a,this.g-a);this.g+=1;return lc(a)};function Fg(){return new R(2,3,3E3)}N("shaka.util.DataViewReader",Dg);Dg.prototype.readTerminatedString=Dg.prototype.Ec;Dg.prototype.seek=Dg.prototype.seek;Dg.prototype.rewind=Dg.prototype.Tj;
215
- Dg.prototype.skip=Dg.prototype.skip;Dg.prototype.readBytes=Dg.prototype.Pb;Dg.prototype.readUint64=Dg.prototype.ed;Dg.prototype.readInt32=Dg.prototype.Fh;Dg.prototype.readUint32=Dg.prototype.R;Dg.prototype.readUint16=Dg.prototype.Ha;Dg.prototype.readUint8=Dg.prototype.W;Dg.prototype.getLength=Dg.prototype.getLength;Dg.prototype.getPosition=Dg.prototype.Na;Dg.prototype.hasMoreData=Dg.prototype.Aa;var Eg=1;Dg.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Eg};function Gg(){this.i=[];this.h=[];this.g=!1}q=Gg.prototype;q.box=function(a,b){a=Hg(a);this.i[a]=Ig;this.h[a]=b;return this};q.T=function(a,b){a=Hg(a);this.i[a]=Jg;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Dg(a,0);for(this.g=!1;a.Aa()&&!this.g;)this.cd(0,a,b,c)};
215
+ Dg.prototype.skip=Dg.prototype.skip;Dg.prototype.readBytes=Dg.prototype.Pb;Dg.prototype.readUint64=Dg.prototype.ed;Dg.prototype.readInt32=Dg.prototype.Hh;Dg.prototype.readUint32=Dg.prototype.R;Dg.prototype.readUint16=Dg.prototype.Ha;Dg.prototype.readUint8=Dg.prototype.W;Dg.prototype.getLength=Dg.prototype.getLength;Dg.prototype.getPosition=Dg.prototype.Na;Dg.prototype.hasMoreData=Dg.prototype.Aa;var Eg=1;Dg.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Eg};function Gg(){this.i=[];this.h=[];this.g=!1}q=Gg.prototype;q.box=function(a,b){a=Hg(a);this.i[a]=Ig;this.h[a]=b;return this};q.T=function(a,b){a=Hg(a);this.i[a]=Jg;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Dg(a,0);for(this.g=!1;a.Aa()&&!this.g;)this.cd(0,a,b,c)};
216
216
  q.cd=function(a,b,c,d){var e=b.Na();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.R(),g=b.R(),h=Kg(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.Na()+8>b.getLength()){this.g=!0;return}f=b.ed();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==Jg){if(d&&b.Na()+4>b.getLength()){this.g=!0;return}n=b.R();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(d=g-b.Na(),b=0<d?b.Pb(d):new Uint8Array(0),b=new Dg(b,0),l({name:h,parser:this,
217
217
  partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.Na(),b.getLength()-b.Na()))}};function Lg(a){for(var b=Mg(a);a.reader.Aa()&&!a.parser.g;)a.parser.cd(a.start+b,a.reader,a.partialOkay)}function Ng(a){for(var b=Mg(a),c=a.reader.R(),d=0;d<c&&(a.parser.cd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Og(a){var b=Mg(a);for(a.reader.skip(78);a.reader.Aa()&&!a.parser.g;)a.parser.cd(a.start+b,a.reader,a.partialOkay)}
218
218
  function Pg(a){var b=Mg(a);a.reader.skip(8);var c=a.reader.Ha();a.reader.skip(6);2==c?a.reader.skip(48):a.reader.skip(12);for(1==c&&a.reader.skip(16);a.reader.Aa()&&!a.parser.g;)a.parser.cd(a.start+b,a.reader,a.partialOkay)}function Qg(a){return function(b){a(b.reader.Pb(b.reader.getLength()-b.reader.Na()))}}function Hg(a){var b=0;a=u(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Kg(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}
@@ -227,56 +227,56 @@ function Tg(a,b){a=oc(a);return Ug(a,b)}function Ug(a,b){a=Vg(a);return!b&&a.len
227
227
  function Vg(a){function b(e,f){f=void 0===f?!1:f;for(var g=[];a[d];)if(60==a.charCodeAt(d)){if(47===a.charCodeAt(d+1)){f=d+2;d=a.indexOf(">",d);f=a.substring(f,d);var h=f.indexOf(e);if(-1==h){var k=e.indexOf(".");0<k&&(h=f.indexOf(e.substring(0,k)))}if(-1==h)throw e=a.substring(0,d).split("\n"),Error("Unexpected close tag\nLine: "+(e.length-1)+"\nColumn: "+(e[e.length-1].length+1)+"\nChar: "+a[d]);d+1&&(d+=1);break}else if(33===a.charCodeAt(d+1)){if(45==a.charCodeAt(d+2)){for(;-1!==d&&(62!==a.charCodeAt(d)||
228
228
  45!=a.charCodeAt(d-1)||45!=a.charCodeAt(d-2)||-1==d);)d=a.indexOf(">",d+1);-1===d&&(d=a.length)}else if(91===a.charCodeAt(d+2)&&91===a.charCodeAt(d+8)&&"cdata"===a.substr(d+3,5).toLowerCase()){h=a.indexOf("]]\x3e",d);-1==h?(g.push(a.substr(d+9)),d=a.length):(g.push(a.substring(d+9,h)),d=h+3);continue}d++;continue}a:{k=f;d++;var l=c(),m={};for(h=[];62!==a.charCodeAt(d)&&a[d];){var n=a.charCodeAt(d);if(64<n&&91>n||96<n&&123>n){n=c();for(var r=a.charCodeAt(d);r&&39!==r&&34!==r&&!(64<r&&91>r||96<r&&123>
229
229
  r)&&62!==r;)d++,r=a.charCodeAt(d);var p=d+1;d=a.indexOf(a[d],p);p=a.slice(p,d);if(39===r||34===r){if(-1===d){k={tagName:l,attributes:m,children:h,parent:null};for(l=0;l<h.length;l++)"string"!==typeof h[l]&&(h[l].parent=k);h=k;break a}}else p=null,d--;n.startsWith("xmlns:")&&Xg.set(p,n.split(":")[1]);"tt"===l&&"xml:space"===n&&"preserve"===p&&(k=!0);m[n]=p}d++}47!==a.charCodeAt(d-1)?(d++,h=b(l,k)):d++;k={tagName:l,attributes:m,children:h,parent:null};l=h.length;for(m=0;m<l;m++)n=h[m],"string"!==typeof n?
230
- n.parent=k:m==l-1&&"\n"==n&&h.pop();h=k}g.push(h);if("string"===typeof h)break;"?"===h.tagName[0]&&h.children&&(g.push.apply(g,y(h.children)),h.children=[])}else h=d,d=a.indexOf("<",d)-1,-2===d&&(d=a.length),h=a.slice(h,d+1),f?0<h.length&&g.push(h):g.length&&1==h.length&&"\n"==h[0]?g.push(h):0<h.trim().length&&g.push(h),d++;return g}function c(){for(var e=d;-1==="\r\n\t>/= ".indexOf(a[d])&&a[d];)d++;return a.slice(e,d)}var d=0;return b("")}function Yg(a){return"string"===typeof a}
231
- function $g(a){var b=[];if(!a.children)return[];a=u(a.children);for(var c=a.next();!c.done;c=a.next())c=c.value,"string"!==typeof c&&b.push(c);return b}function ah(a,b){var c=[];if(!a.children)return[];a=u(a.children);for(var d=a.next();!d.done;d=a.next())d=d.value,d.tagName===b&&c.push(d);return c}function bh(a){if("string"===typeof a)return sc(a);a=a.children.reduce(function(b,c){return"string"===typeof c?b+c:b},"");return""===a?null:sc(a)}
230
+ n.parent=k:m==l-1&&"\n"==n&&h.pop();h=k}g.push(h);if("string"===typeof h)break;"?"===h.tagName[0]&&h.children&&(g.push.apply(g,w(h.children)),h.children=[])}else h=d,d=a.indexOf("<",d)-1,-2===d&&(d=a.length),h=a.slice(h,d+1),f?0<h.length&&g.push(h):g.length&&1==h.length&&"\n"==h[0]?g.push(h):0<h.trim().length&&g.push(h),d++;return g}function c(){for(var e=d;-1==="\r\n\t>/= ".indexOf(a[d])&&a[d];)d++;return a.slice(e,d)}var d=0;return b("")}function Yg(a){return"string"===typeof a}
231
+ function Zg(a){var b=[];if(!a.children)return[];a=u(a.children);for(var c=a.next();!c.done;c=a.next())c=c.value,"string"!==typeof c&&b.push(c);return b}function ah(a,b){var c=[];if(!a.children)return[];a=u(a.children);for(var d=a.next();!d.done;d=a.next())d=d.value,d.tagName===b&&c.push(d);return c}function bh(a){if("string"===typeof a)return sc(a);a=a.children.reduce(function(b,c){return"string"===typeof c?b+c:b},"");return""===a?null:sc(a)}
232
232
  function ch(a){if(!Array.from(a.children).every(function(b){return"string"===typeof b}))return null;(a=bh(a))&&(a=a.trim());return a}function dh(a,b,c){c=void 0===c?[]:c;a.tagName===b&&c.push(a);if(a.children){a=u(a.children);for(var d=a.next();!d.done;d=a.next())dh(d.value,b,c)}return c}function eh(a,b){a=ah(a,b);return 1!=a.length?null:a[0]}function fh(a,b,c){a=gh(a,b,c);return 1!=a.length?null:a[0]}
233
233
  function hh(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.attributes[b];null!=a&&(e=c(a));return null==e?d:e}function ih(a,b,c){b=Wg(b);return a.attributes[b+":"+c]||null}function gh(a,b,c){b=Wg(b);var d=[];if(a.children){a=u(a.children);for(var e=a.next();!e.done;e=a.next())(e=e.value)&&e.tagName===b+":"+c&&d.push(e)}return d}function jh(a,b,c){b=u(b);for(var d=b.next();!d.done;d=b.next())if(d=ih(a,d.value,c))return d;return null}
234
234
  function kh(a){if(!a)return null;/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(a)&&(a+="Z");a=Date.parse(a);return isNaN(a)?null:a/1E3}function lh(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(a);if(!a)return null;a=31536E3*Number(a[1]||null)+2592E3*Number(a[2]||null)+86400*Number(a[3]||null)+3600*Number(a[4]||null)+60*Number(a[5]||null)+Number(a[6]||null);return isFinite(a)?a:null}
235
- function oh(a){var b=/([0-9]+)-([0-9]+)/.exec(a);if(!b)return null;a=Number(b[1]);if(!isFinite(a))return null;b=Number(b[2]);return isFinite(b)?{start:a,end:b}:null}function ph(a){a=Number(a);return 0===a%1?a:null}function qh(a){a=Number(a);return 0===a%1&&0<a?a:null}function rh(a){a=Number(a);return 0===a%1&&0<=a?a:null}function sh(a){a=Number(a);return isNaN(a)?null:a}function th(a){return a?"true"===a.toLowerCase():!1}
235
+ function mh(a){var b=/([0-9]+)-([0-9]+)/.exec(a);if(!b)return null;a=Number(b[1]);if(!isFinite(a))return null;b=Number(b[2]);return isFinite(b)?{start:a,end:b}:null}function ph(a){a=Number(a);return 0===a%1?a:null}function qh(a){a=Number(a);return 0===a%1&&0<a?a:null}function rh(a){a=Number(a);return 0===a%1&&0<=a?a:null}function sh(a){a=Number(a);return isNaN(a)?null:a}function th(a){return a?"true"===a.toLowerCase():!1}
236
236
  function uh(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}function vh(a,b,c){b=void 0===b?!0:b;c=void 0===c?!0:c;var d=document.createElement(a.tagName),e;for(e in a.attributes)d.setAttribute(e,a.attributes[e]);b&&a.parent&&"?xml"!=a.parent.tagName&&vh(a.parent,!0,!1).appendChild(d);if(c)for(a=u(a.children),b=a.next();!b.done;b=a.next())b=b.value,c=void 0,"string"==typeof b?c=new Text(b):c=vh(b,!1,!0),d.appendChild(c);return d}var Xg=new Map([]);function wh(a){var b=this;this.G=a;this.J=new Set;this.m=this.u=null;this.sa=this.$=!1;this.K=0;this.g=null;this.F=new cd;this.i=new Map;this.A=new Map;this.l=new dg;this.h=null;this.o=function(c){2==c.severity&&b.l.reject(c);a.onError(c)};this.X=new Map;this.aa=new Map;this.M=new Ob(function(){return xh(b)});this.P=!1;this.O=[];this.S=!1;this.L=new Ob(function(){yh(b)});this.l.catch(function(){});this.j=new zg(function(){return zh(b)});this.Y=!1;this.H=this.I=null}q=wh.prototype;q.destroy=function(){return this.j.destroy()};
237
- function zh(a){return L(function(b){switch(b.g){case 1:return a.F.release(),a.F=null,a.l.reject(),a.L.stop(),a.L=null,a.M.stop(),a.M=null,D(b,Ah(a),2);case 2:if(!a.m){b.D(3);break}ra(b,4);return D(b,a.m.setMediaKeys(null),6);case 6:ta(b,5);break;case 4:ua(b);case 5:a.m=null;case 3:a.g=null,a.J.clear(),a.u=null,a.A=new Map,a.h=null,a.o=function(){},a.G=null,a.Y=!1,a.I=null,G(b)}})}q.configure=function(a){this.h=a;this.L&&this.L.ya(this.h.updateExpirationTime)};
237
+ function zh(a){return L(function(b){switch(b.g){case 1:return a.F.release(),a.F=null,a.l.reject(),a.L.stop(),a.L=null,a.M.stop(),a.M=null,D(b,Ah(a),2);case 2:if(!a.m){b.B(3);break}ra(b,4);return D(b,a.m.setMediaKeys(null),6);case 6:ta(b,5);break;case 4:ua(b);case 5:a.m=null;case 3:a.g=null,a.J.clear(),a.u=null,a.A=new Map,a.h=null,a.o=function(){},a.G=null,a.Y=!1,a.I=null,G(b)}})}q.configure=function(a){this.h=a;this.L&&this.L.ya(this.h.updateExpirationTime)};
238
238
  function Bh(a,b,c){a.sa=!0;a.A=new Map;a.P=c;return Ch(a,b)}function Dh(a,b,c){a.A=new Map;c=u(c);for(var d=c.next();!d.done;d=c.next())a.A.set(d.value,{initData:null,initDataType:null});c=u(a.h.persistentSessionsMetadata);for(d=c.next();!d.done;d=c.next())d=d.value,a.A.set(d.sessionId,{initData:d.initData,initDataType:d.initDataType});a.P=0<a.A.size;return Ch(a,b)}
239
239
  function Eh(a,b,c,d,e,f){var g=new Map;e={audioCapabilities:e,videoCapabilities:f,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:b};e.drmInfos=[{keySystem:b,licenseServerUri:c,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:d,serverCertificateUri:"",initData:null,keyIds:null}];g.set(b,e);return Fh(a,g,[])}
240
- function Ch(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,t,x,w,B,v;return L(function(A){if(1==A.g){if(c=Gh(a))for(d=u(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(z){return z.video&&z.video.drmInfos.length||z.audio&&z.audio.drmInfos.length?!0:!1});g||(h=Bg(a.h.servers),Hh(b,h));k=new Set;l=u(b);for(e=l.next();!e.done;e=l.next())for(m=e.value,n=Ih(m),r=u(n),p=r.next();!p.done;p=r.next())t=p.value,k.add(t);x=u(k);for(p=x.next();!p.done;p=
241
- x.next())w=p.value,Jh(w,Bg(a.h.servers),Bg(a.h.advanced||{}),a.h.keySystemsMapping);return D(A,Xe(b,a.P,a.Y,a.h.preferredKeySystems),2)}B=g||Object.keys(a.h.servers).length;if(!B)return a.$=!0,A.return(Promise.resolve());v=Fh(a,void 0,b);return A.return(g?v:v.catch(function(){}))})}
242
- function Kh(a){var b;return L(function(c){switch(c.g){case 1:if(a.m.mediaKeys)return c.return();if(!a.I){c.D(2);break}return D(c,a.I,3);case 3:return Ag(a.j),c.return();case 2:return ra(c,4),a.I=a.m.setMediaKeys(a.u),D(c,a.I,6);case 6:ta(c,5);break;case 4:b=ua(c),a.o(new R(2,6,6003,b.message));case 5:Ag(a.j),G(c)}})}function Lh(a,b){return L(function(c){if(1==c.g)return D(c,Kh(a),2);Mh(a,b.initDataType,Fb(b.initData));G(c)})}
240
+ function Ch(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,t,y,x,A,v;return L(function(B){if(1==B.g){if(c=Gh(a))for(d=u(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(z){return z.video&&z.video.drmInfos.length||z.audio&&z.audio.drmInfos.length?!0:!1});g||(h=Bg(a.h.servers),Hh(b,h));k=new Set;l=u(b);for(e=l.next();!e.done;e=l.next())for(m=e.value,n=Ih(m),r=u(n),p=r.next();!p.done;p=r.next())t=p.value,k.add(t);y=u(k);for(p=y.next();!p.done;p=
241
+ y.next())x=p.value,Jh(x,Bg(a.h.servers),Bg(a.h.advanced||{}),a.h.keySystemsMapping);return D(B,Xe(b,a.P,a.Y,a.h.preferredKeySystems),2)}A=g||Object.keys(a.h.servers).length;if(!A)return a.$=!0,B.return(Promise.resolve());v=Fh(a,void 0,b);return B.return(g?v:v.catch(function(){}))})}
242
+ function Kh(a){var b;return L(function(c){switch(c.g){case 1:if(a.m.mediaKeys)return c.return();if(!a.I){c.B(2);break}return D(c,a.I,3);case 3:return Ag(a.j),c.return();case 2:return ra(c,4),a.I=a.m.setMediaKeys(a.u),D(c,a.I,6);case 6:ta(c,5);break;case 4:b=ua(c),a.o(new R(2,6,6003,b.message));case 5:Ag(a.j),G(c)}})}function Lh(a,b){return L(function(c){if(1==c.g)return D(c,Kh(a),2);Mh(a,b.initDataType,Fb(b.initData));G(c)})}
243
243
  q.Pc=function(a){var b=this;return L(function(c){if(1==c.g){if(!b.u)return b.F.na(a,"encrypted",function(){b.o(new R(2,6,6010))}),c.return();b.m=a;b.F.na(b.m,"play",function(){for(var d=u(b.O),e=d.next();!e.done;e=d.next())Nh(b,e.value);b.S=!0;b.O=[]});"webkitCurrentPlaybackTargetIsWireless"in b.m&&b.F.s(b.m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Ah(b)});b.H=b.g?b.g.initData.find(function(d){return 0<d.initData.length})||null:null;return b.H||"com.apple.fps"!==b.g.keySystem||
244
- b.A.size?D(c,Kh(b),2):c.D(2)}Oh(b).catch(function(){});b.H||b.A.size||b.h.parseInbandPsshEnabled||b.F.s(b.m,"encrypted",function(d){return Lh(b,d)});G(c)})};
245
- function Ph(a){var b,c,d,e,f;return L(function(g){switch(g.g){case 1:if(!a.u||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=rg([a.g.serverCertificateUri],a.h.retryParameters);ra(g,3);c=a.G.Zb.request(5,b);return D(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Fb(d.data);ta(g,4);break;case 3:throw e=ua(g),new R(2,6,6017,e);case 4:if(a.j.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return();
244
+ b.A.size?D(c,Kh(b),2):c.B(2)}Oh(b).catch(function(){});b.H||b.A.size||b.h.parseInbandPsshEnabled||b.F.s(b.m,"encrypted",function(d){return Lh(b,d)});G(c)})};
245
+ function Ph(a){var b,c,d,e,f;return L(function(g){switch(g.g){case 1:if(!a.u||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.B(2);break}b=rg([a.g.serverCertificateUri],a.h.retryParameters);ra(g,3);c=a.G.Zb.request(5,b);return D(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Fb(d.data);ta(g,4);break;case 3:throw e=ua(g),new R(2,6,6017,e);case 4:if(a.j.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return();
246
246
  ra(g,6);return D(g,a.u.setServerCertificate(a.g.serverCertificate),8);case 8:ta(g,0);break;case 6:throw f=ua(g),new R(2,6,6004,f.message);}})}function Qh(a,b){var c,d,e;return L(function(f){if(1==f.g)return D(f,Rh(a,b,{initData:null,initDataType:null}),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.yb=new dg,d.push(e.yb);d.push(c.remove());return D(f,Promise.all(d),3)}a.i.delete(c);G(f)})}
247
- function Oh(a){var b,c,d,e,f;return L(function(g){if(1==g.g){if(!a.A.size)return g.D(2);a.A.forEach(function(h,k){Rh(a,k,h)});return D(g,a.l,3)}if(2!=g.g){b=a.g&&a.g.keyIds||new Set([]);if(0<b.size&&Sh(a))return g.return(a.l);a.l=new dg;a.l.catch(function(){})}c=(a.g?a.g.initData:[])||[];d=u(c);for(e=d.next();!e.done;e=d.next())f=e.value,Mh(a,f.initDataType,f.initData);Th(a)&&a.l.resolve();return g.return(a.l)})}
247
+ function Oh(a){var b,c,d,e,f;return L(function(g){if(1==g.g){if(!a.A.size)return g.B(2);a.A.forEach(function(h,k){Rh(a,k,h)});return D(g,a.l,3)}if(2!=g.g){b=a.g&&a.g.keyIds||new Set([]);if(0<b.size&&Sh(a))return g.return(a.l);a.l=new dg;a.l.catch(function(){})}c=(a.g?a.g.initData:[])||[];d=u(c);for(e=d.next();!e.done;e=d.next())f=e.value,Mh(a,f.initDataType,f.initData);Th(a)&&a.l.resolve();return g.return(a.l)})}
248
248
  function Mh(a,b,c){if(c.length){var d=a.i.values();d=u(d);for(var e=d.next();!e.done;e=d.next())if(Cb(c,e.value.initData)&&a.h.ignoreDuplicateInitData)return;0<a.i.size&&Th(a)&&(a.l.resolve(),a.l=new dg,a.l.catch(function(){}));Uh(a,b,c,a.g.sessionType)}}function Vh(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function Wh(a){a=a.i.keys();a=cb(a,function(b){return b.sessionId});return Array.from(a)}
249
249
  q.Vf=function(){var a=this,b=this.i.keys();b=cb(b,function(c){var d=a.i.get(c);return{sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType}});return Array.from(b)};q.Hd=function(){var a=Infinity,b=this.i.keys();b=u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};q.we=function(){return Cg(this.aa)};
250
- function Fh(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,x,w,B;return L(function(v){switch(v.g){case 1:d=new Map;if(c.length){e=Xh(a,c,d);v.D(2);break}return D(v,Yh(a,b),3);case 3:e=v.h;case 2:f=e;if(!f)throw new R(2,6,6001);Ag(a.j);ra(v,4);a.J.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=u(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.J.add(n.contentType.toLowerCase());r=u(k);for(m=r.next();!m.done;m=r.next())p=m.value,a.J.add(p.contentType.toLowerCase());if(c.length){var A=
251
- f.keySystem;var z=d.get(f.keySystem);var C=[],E=[],H=[],J=[],F=[],I=new Set;Zh(z,C,E,J,H,F,I);var K=a.P?"persistent-license":"temporary";A={keySystem:A,encryptionScheme:C[0],licenseServerUri:E[0],distinctiveIdentifierRequired:z[0].distinctiveIdentifierRequired,persistentStateRequired:z[0].persistentStateRequired,sessionType:z[0].sessionType||K,audioRobustness:z[0].audioRobustness||"",videoRobustness:z[0].videoRobustness||"",serverCertificate:J[0],serverCertificateUri:H[0],initData:F,keyIds:I};z=u(z);
252
- for(C=z.next();!C.done;C=z.next())C=C.value,C.distinctiveIdentifierRequired&&(A.distinctiveIdentifierRequired=C.distinctiveIdentifierRequired),C.persistentStateRequired&&(A.persistentStateRequired=C.persistentStateRequired);z=A}else z=f.keySystem,A=b.get(f.keySystem),C=[],E=[],H=[],J=[],F=[],I=new Set,Zh(A.drmInfos,C,E,J,H,F,I),z={keySystem:z,encryptionScheme:C[0],licenseServerUri:E[0],distinctiveIdentifierRequired:"required"==A.distinctiveIdentifier,persistentStateRequired:"required"==A.persistentState,
253
- sessionType:A.sessionTypes[0]||"temporary",audioRobustness:(A.audioCapabilities?A.audioCapabilities[0].robustness:"")||"",videoRobustness:(A.videoCapabilities?A.videoCapabilities[0].robustness:"")||"",serverCertificate:J[0],serverCertificateUri:H[0],initData:F,keyIds:I};a.g=z;if(!a.g.licenseServerUri)throw new R(2,6,6012,a.g.keySystem);return D(v,f.createMediaKeys(),6);case 6:t=v.h;Ag(a.j);a.u=t;if(!(""!=a.h.minHdcpVersion&&"getStatusForPolicy"in a.u)){v.D(7);break}ra(v,8);return D(v,a.u.getStatusForPolicy({minHdcpVersion:a.h.minHdcpVersion}),
254
- 10);case 10:x=v.h;if("usable"!=x)throw new R(2,6,6018);Ag(a.j);ta(v,7,4);break;case 8:w=ua(v,4);if(w instanceof R)throw w;throw new R(2,6,6019,w.message);case 7:return a.$=!0,D(v,Ph(a),11);case 11:Ag(a.j);ta(v,0);break;case 4:B=ua(v);Ag(a.j,B);a.g=null;a.J.clear();if(B instanceof R)throw B;throw new R(2,6,6002,B.message);}})}
250
+ function Fh(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,y,x,A;return L(function(v){switch(v.g){case 1:d=new Map;if(c.length){e=Xh(a,c,d);v.B(2);break}return D(v,Yh(a,b),3);case 3:e=v.h;case 2:f=e;if(!f)throw new R(2,6,6001);Ag(a.j);ra(v,4);a.J.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=u(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.J.add(n.contentType.toLowerCase());r=u(k);for(m=r.next();!m.done;m=r.next())p=m.value,a.J.add(p.contentType.toLowerCase());if(c.length){var B=
251
+ f.keySystem;var z=d.get(f.keySystem);var C=[],E=[],H=[],J=[],F=[],I=new Set;Zh(z,C,E,J,H,F,I);var K=a.P?"persistent-license":"temporary";B={keySystem:B,encryptionScheme:C[0],licenseServerUri:E[0],distinctiveIdentifierRequired:z[0].distinctiveIdentifierRequired,persistentStateRequired:z[0].persistentStateRequired,sessionType:z[0].sessionType||K,audioRobustness:z[0].audioRobustness||"",videoRobustness:z[0].videoRobustness||"",serverCertificate:J[0],serverCertificateUri:H[0],initData:F,keyIds:I};z=u(z);
252
+ for(C=z.next();!C.done;C=z.next())C=C.value,C.distinctiveIdentifierRequired&&(B.distinctiveIdentifierRequired=C.distinctiveIdentifierRequired),C.persistentStateRequired&&(B.persistentStateRequired=C.persistentStateRequired);z=B}else z=f.keySystem,B=b.get(f.keySystem),C=[],E=[],H=[],J=[],F=[],I=new Set,Zh(B.drmInfos,C,E,J,H,F,I),z={keySystem:z,encryptionScheme:C[0],licenseServerUri:E[0],distinctiveIdentifierRequired:"required"==B.distinctiveIdentifier,persistentStateRequired:"required"==B.persistentState,
253
+ sessionType:B.sessionTypes[0]||"temporary",audioRobustness:(B.audioCapabilities?B.audioCapabilities[0].robustness:"")||"",videoRobustness:(B.videoCapabilities?B.videoCapabilities[0].robustness:"")||"",serverCertificate:J[0],serverCertificateUri:H[0],initData:F,keyIds:I};a.g=z;if(!a.g.licenseServerUri)throw new R(2,6,6012,a.g.keySystem);return D(v,f.createMediaKeys(),6);case 6:t=v.h;Ag(a.j);a.u=t;if(!(""!=a.h.minHdcpVersion&&"getStatusForPolicy"in a.u)){v.B(7);break}ra(v,8);return D(v,a.u.getStatusForPolicy({minHdcpVersion:a.h.minHdcpVersion}),
254
+ 10);case 10:y=v.h;if("usable"!=y)throw new R(2,6,6018);Ag(a.j);ta(v,7,4);break;case 8:x=ua(v,4);if(x instanceof R)throw x;throw new R(2,6,6019,x.message);case 7:return a.$=!0,D(v,Ph(a),11);case 11:Ag(a.j);ta(v,0);break;case 4:A=ua(v);Ag(a.j,A);a.g=null;a.J.clear();if(A instanceof R)throw A;throw new R(2,6,6002,A.message);}})}
255
255
  function Xh(a,b,c){for(var d=u(b),e=d.next();!e.done;e=d.next()){var f=u(Ih(e.value));for(e=f.next();!e.done;e=f.next())e=e.value,c.has(e.keySystem)||c.set(e.keySystem,[]),c.get(e.keySystem).push(e)}if(1==c.size&&c.has(""))throw new R(2,6,6E3);d={};a=u(a.h.preferredKeySystems);for(e=a.next();!e.done;d={pf:d.pf},e=a.next())for(d.pf=e.value,f=u(b),e=f.next();!e.done;e=f.next())if(e=e.value.decodingInfos.find(function(l){return function(m){return m.supported&&null!=m.keySystemAccess&&m.keySystemAccess.keySystem==
256
256
  l.pf}}(d)))return e.keySystemAccess;a=u([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=u(b),e=f.next();!e.done;e=f.next()){var g=u(e.value.decodingInfos);for(e=g.next();!e.done;e=g.next()){var h=e.value;if(h.supported&&h.keySystemAccess){e=c.get(h.keySystemAccess.keySystem);var k=u(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
257
- function Yh(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,t,x,w;return L(function(B){switch(B.g){case 1:if(1==b.size&&b.has(""))throw new R(2,6,6E3);d=u(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=u(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){B.D(4);break}k=h.value;if(!b.has(k)){B.D(3);break}l=b.get(k);ra(B,6);return D(B,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
258
- B.h,B.return(c);case 6:ua(B);case 7:Ag(a.j);case 3:h=g.next();B.D(2);break;case 4:m=u([!0,!1]),n=m.next();case 9:if(n.done){B.D(11);break}r=n.value;p=u(b.keys());h=p.next();case 12:if(h.done){n=m.next();B.D(9);break}t=h.value;x=b.get(t);w=x.drmInfos.some(function(v){return!!v.licenseServerUri});if(w!=r){B.D(13);break}ra(B,15);return D(B,navigator.requestMediaKeySystemAccess(t,[x]),17);case 17:return c=B.h,B.return(c);case 15:ua(B);case 16:Ag(a.j);case 13:h=p.next();B.D(12);break;case 11:return B.return(c)}})}
257
+ function Yh(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,t,y,x;return L(function(A){switch(A.g){case 1:if(1==b.size&&b.has(""))throw new R(2,6,6E3);d=u(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=u(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){A.B(4);break}k=h.value;if(!b.has(k)){A.B(3);break}l=b.get(k);ra(A,6);return D(A,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
258
+ A.h,A.return(c);case 6:ua(A);case 7:Ag(a.j);case 3:h=g.next();A.B(2);break;case 4:m=u([!0,!1]),n=m.next();case 9:if(n.done){A.B(11);break}r=n.value;p=u(b.keys());h=p.next();case 12:if(h.done){n=m.next();A.B(9);break}t=h.value;y=b.get(t);x=y.drmInfos.some(function(v){return!!v.licenseServerUri});if(x!=r){A.B(13);break}ra(A,15);return D(A,navigator.requestMediaKeySystemAccess(t,[y]),17);case 17:return c=A.h,A.return(c);case 15:ua(A);case 16:Ag(a.j);case 13:h=p.next();A.B(12);break;case 11:return A.return(c)}})}
259
259
  function Gh(a){a=Bg(a.h.clearKeys);return 0==a.size?null:Cc(a)}function $h(a){Th(a)&&a.l.resolve()}function ai(a,b){(new Ob(function(){b.loaded=!0;$h(a)})).V(bi)}
260
260
  function Rh(a,b,c){var d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:try{d=a.u.createSession("persistent-license")}catch(n){return e=new R(2,6,6005,n.message),a.o(e),m.return(Promise.reject(e))}a.F.s(d,"message",function(n){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.S?a.O.push(n):Nh(a,n)});a.F.s(d,"keystatuseschange",function(n){return ci(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,qg:Infinity,yb:null,type:"persistent-license"};a.i.set(d,f);ra(m,2);return D(m,
261
261
  d.load(b),4);case 4:return g=m.h,Ag(a.j),g||(a.i.delete(d),h=a.h.persistentSessionOnlinePlayback?1:2,a.o(new R(h,6,6013)),f.loaded=!0),ai(a,f),$h(a),m.return(d);case 2:k=ua(m),Ag(a.j,k),a.i.delete(d),l=a.h.persistentSessionOnlinePlayback?1:2,a.o(new R(l,6,6005,k.message)),f.loaded=!0,$h(a);case 3:return m.return(Promise.resolve())}})}
262
262
  function Uh(a,b,c,d){try{var e=a.u.createSession(d)}catch(f){a.o(new R(2,6,6005,f.message));return}a.F.s(e,"message",function(f){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.S?a.O.push(f):Nh(a,f)});a.F.s(e,"keystatuseschange",function(f){return ci(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,qg:Infinity,yb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof R||(b=new R(2,6,6016,f));a.o(b);return}a.h.logLicenseExchange&&vc(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
263
263
  var g=f.errorCode;if(g&&g.systemCode){var h=g.systemCode;0>h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.o(new R(2,6,6006,f.message,f,h))}})}
264
- function Nh(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,t;L(function(x){switch(x.g){case 1:c=b.target;a.h.logLicenseExchange&&vc(b.message);d=a.i.get(c);e=a.g.licenseServerUri;f=a.h.advanced[a.g.keySystem];"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);g=rg([e],a.h.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.g;d&&(g.initData=d.initData,g.initDataType=d.initDataType);if(Vh(a.g.keySystem)){var w=
265
- mc(g.body,!0,!0);if(w.includes("PlayReadyKeyMessage")){w=Ug(w,"PlayReadyKeyMessage");var B=dh(w,"HttpHeader");B=u(B);for(var v=B.next();!v.done;v=B.next()){var A=v.value;v=dh(A,"name")[0];A=dh(A,"value")[0];g.headers[bh(v)]=bh(A)}w=dh(w,"Challenge")[0];g.body=wc(bh(w))}else g.headers["Content-Type"]="text/xml; charset=utf-8"}h=Date.now();ra(x,2);l=a.G.Zb.request(2,g);return D(x,l.promise,4);case 4:k=x.h;ta(x,3);break;case 2:m=ua(x);if(a.j.g)return x.return();n=new R(2,6,6007,m);1==a.i.size?(a.o(n),
266
- d&&d.yb&&d.yb.reject(n)):(d&&d.yb&&d.yb.reject(n),a.i.delete(c),Th(a)&&(a.l.resolve(),a.M.V(.1)));return x.return();case 3:if(a.j.g)return x.return();a.K+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&vc(k.data);ra(x,5);return D(x,c.update(k.data),7);case 7:ta(x,6);break;case 5:return r=ua(x),p=new R(2,6,6008,r.message),a.o(p),d&&d.yb&&d.yb.reject(p),x.return();case 6:if(a.j.g)return x.return();t=new Q("drmsessionupdate");a.G.onEvent(t);d&&(d.yb&&d.yb.resolve(),ai(a,d));G(x)}})}
264
+ function Nh(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,t;L(function(y){switch(y.g){case 1:c=b.target;a.h.logLicenseExchange&&vc(b.message);d=a.i.get(c);e=a.g.licenseServerUri;f=a.h.advanced[a.g.keySystem];"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);g=rg([e],a.h.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.g;d&&(g.initData=d.initData,g.initDataType=d.initDataType);if(Vh(a.g.keySystem)){var x=
265
+ mc(g.body,!0,!0);if(x.includes("PlayReadyKeyMessage")){x=Ug(x,"PlayReadyKeyMessage");var A=dh(x,"HttpHeader");A=u(A);for(var v=A.next();!v.done;v=A.next()){var B=v.value;v=dh(B,"name")[0];B=dh(B,"value")[0];g.headers[bh(v)]=bh(B)}x=dh(x,"Challenge")[0];g.body=wc(bh(x))}else g.headers["Content-Type"]="text/xml; charset=utf-8"}h=Date.now();ra(y,2);l=a.G.Zb.request(2,g);return D(y,l.promise,4);case 4:k=y.h;ta(y,3);break;case 2:m=ua(y);if(a.j.g)return y.return();n=new R(2,6,6007,m);1==a.i.size?(a.o(n),
266
+ d&&d.yb&&d.yb.reject(n)):(d&&d.yb&&d.yb.reject(n),a.i.delete(c),Th(a)&&(a.l.resolve(),a.M.V(.1)));return y.return();case 3:if(a.j.g)return y.return();a.K+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&vc(k.data);ra(y,5);return D(y,c.update(k.data),7);case 7:ta(y,6);break;case 5:return r=ua(y),p=new R(2,6,6008,r.message),a.o(p),d&&d.yb&&d.yb.reject(p),y.return();case 6:if(a.j.g)return y.return();t=new Q("drmsessionupdate");a.G.onEvent(t);d&&(d.yb&&d.yb.resolve(),ai(a,d));G(y)}})}
267
267
  function ci(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(Vh(a.g.keySystem)&&16==g.byteLength&&(Sb()||dc())){h=Kb(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=yc(g).slice(0,32);a.X.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.yb&&(a.i.delete(b),b.close().catch(function(){}));
268
268
  Th(a)&&(a.l.resolve(),a.M.V(di))}function xh(a){var b=a.X,c=a.aa;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.o(new R(2,6,6014));a.G.Pe(Cg(c))}
269
269
  function ei(){var a,b,c,d,e,f,g,h;return L(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,c],f=new Map,g=function(l){var m,n,r;return L(function(p){switch(p.g){case 1:ra(p,
270
270
  2);if("org.w3.clearkey"===l&&gc())throw Error("Unsupported keySystem");return D(p,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=p.h,r=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Wb()&&(r=!1),f.set(l,{persistentState:r}),D(p,m.createMediaKeys(),5);case 5:ta(p,0);break;case 2:ua(p),f.set(l,null),G(p)}})},h=a.map(function(l){return g(l)}),D(k,Promise.all(h),2)):k.return(Cg(f))})}
271
271
  function fi(a){var b;return L(function(c){if(1==c.g)return b=new Promise(function(d,e){(new Ob(e)).V(gi)}),ra(c,2),D(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return ta(c,0);ua(c);G(c)})}
272
272
  function Ah(a){var b;return L(function(c){b=Array.from(a.i.entries());a.i.clear();return D(c,Promise.all(b.map(function(d){d=u(d);var e=d.next().value,f=d.next().value;return L(function(g){if(1==g.g)return ra(g,2),a.sa||a.A.has(e.sessionId)||"persistent-license"!==f.type||a.h.persistentSessionOnlinePlayback?D(g,fi(e),5):D(g,e.remove(),5);if(2!=g.g)return ta(g,0);ua(g);G(g)})})),0)})}function hi(a,b){return a.length&&b.length&&a!==b?0<ii(a,b).length:!0}
273
- function ii(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=u(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=u(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=u((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(y(d.keyIds),y(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||
273
+ function ii(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=u(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=u(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=u((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(w(d.keyIds),w(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||
274
274
  f.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||f.persistentStateRequired,videoRobustness:d.videoRobustness||f.videoRobustness,audioRobustness:d.audioRobustness||f.audioRobustness,serverCertificate:d.serverCertificate||f.serverCertificate,serverCertificateUri:d.serverCertificateUri||f.serverCertificateUri,initData:e,keyIds:g});break}}return c}
275
275
  function Ih(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function yh(a){a.i.forEach(function(b,c){var d=b.qg,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.qg=e)})}function Th(a){a=a.i.values();return db(a,function(b){return b.loaded})}function Sh(a){for(var b=u(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.X.get(c.value))return!1;return!0}
276
276
  function Hh(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});a=u(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c)}
277
277
  function Zh(a,b,c,d,e,f,g){var h=[],k={};a=u(a);for(var l=a.next();!l.done;k={Ba:k.Ba},l=a.next()){k.Ba=l.value;b.includes(k.Ba.encryptionScheme)||b.push(k.Ba.encryptionScheme);"org.w3.clearkey"==k.Ba.keySystem&&k.Ba.licenseServerUri.startsWith("data:application/json;base64,")?h.includes(k.Ba.licenseServerUri)||h.push(k.Ba.licenseServerUri):c.includes(k.Ba.licenseServerUri)||c.push(k.Ba.licenseServerUri);e.includes(k.Ba.serverCertificateUri)||e.push(k.Ba.serverCertificateUri);k.Ba.serverCertificate&&
278
278
  (d.some(function(r){return function(p){return Cb(p,r.Ba.serverCertificate)}}(k))||d.push(k.Ba.serverCertificate));if(k.Ba.initData){l={};for(var m=u(k.Ba.initData),n=m.next();!n.done;l={ce:l.ce},n=m.next())l.ce=n.value,f.some(function(r){return function(p){var t=r.ce;return p.keyId&&p.keyId==t.keyId?!0:p.initDataType==t.initDataType&&Cb(p.initData,t.initData)}}(l))||f.push(l.ce)}if(k.Ba.keyIds)for(l=u(k.Ba.keyIds),m=l.next();!m.done;m=l.next())g.add(m.value)}if(1==h.length)c.push(h[0]);else if(0<
279
- h.length){b=[];h=u(h);for(d=h.next();!d.done;d=h.next())d=window.atob(d.value.split("data:application/json;base64,").pop()),d=JSON.parse(d),b.push.apply(b,y(d.keys));h=JSON.stringify({keys:b});c.push("data:application/json;base64,"+window.btoa(h))}}
279
+ h.length){b=[];h=u(h);for(d=h.next();!d.done;d=h.next())d=window.atob(d.value.split("data:application/json;base64,").pop()),d=JSON.parse(d),b.push.apply(b,w(d.keys));h=JSON.stringify({keys:b});c.push("data:application/json;base64,"+window.btoa(h))}}
280
280
  function Jh(a,b,c,d){var e=a.keySystem;if(e&&("org.w3.clearkey"!=e||!a.licenseServerUri)){b.size&&(b=b.get(e)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(e))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate||(a.serverCertificate=
281
281
  c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var gi=1,bi=5,di=.5,ji=new Mb(function(){return Gb(new Uint8Array([0]))});/*
282
282
  @license
@@ -291,13 +291,13 @@ missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new R(2,4,4012,a)
291
291
  function(l){g.push({box:l,vb:1701733238})}).T("avc1",function(l){g.push({box:l,vb:1701733238})}).T("avc3",function(l){g.push({box:l,vb:1701733238})}).T("ac-3",function(l){g.push({box:l,vb:1701733217})}).T("ec-3",function(l){g.push({box:l,vb:1701733217})}).T("ac-4",function(l){g.push({box:l,vb:1701733217})}).T("mp4a",function(l){g.push({box:l,vb:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw Za(yc(a)),new R(2,3,3019);g.reverse();for(var h=u(g),k=h.next();!k.done;k=h.next())k=k.value,
292
292
  a=vi(a,e,k.box,f,k.vb);return a}
293
293
  function vi(a,b,c,d,e){var f=wi.value(),g=a.subarray(c.start,c.start+c.size),h=Kb(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Kb(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);xi(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Tb()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=u(d);for(d=a.next();!d.done;d=a.next())d=d.value,xi(e,d.start,d.size+k.byteLength);k=Kb(e,b.start);b=Mg(b);a=k.getUint32(b);
294
- k.setUint32(b,a+1);return e}function xi(a,b,c){a=Kb(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var wi=new Mb(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function yi(a,b,c,d,e,f,g){this.ka=a;this.Ta=b;this.za=c;this.ng=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aesKey=void 0===g?null:g;this.mimeType=this.codecs=null}yi.prototype.Mb=function(){return this.Ta};yi.prototype.Jb=function(){return this.za};yi.prototype.Kd=function(){return this.g};function zi(a,b){return a===b?!0:a&&b?a.Mb()==b.Mb()&&a.Jb()==b.Jb()&&Ad(a.ka().sort(),b.ka().sort())&&Cb(a.Kd(),b.Kd()):a==b}N("shaka.media.InitSegmentReference",yi);
294
+ k.setUint32(b,a+1);return e}function xi(a,b,c){a=Kb(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var wi=new Mb(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function yi(a,b,c,d,e,f,g){this.ka=a;this.Ta=b;this.za=c;this.ng=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aesKey=void 0===g?null:g;this.mimeType=this.codecs=null}yi.prototype.Mb=function(){return this.Ta};yi.prototype.Jb=function(){return this.za};yi.prototype.Kd=function(){return this.g};function zi(a,b){return a===b?!0:a&&b?a.Mb()==b.Mb()&&a.Jb()==b.Jb()&&yd(a.ka().sort(),b.ka().sort())&&Cb(a.Kd(),b.Kd()):a==b}N("shaka.media.InitSegmentReference",yi);
295
295
  yi.prototype.getEndByte=yi.prototype.Jb;yi.prototype.getStartByte=yi.prototype.Mb;
296
- function Ai(a,b,c,d,e,f,g,h,k,l,m,n,r,p,t,x){l=void 0===l?[]:l;p=void 0===p?Bi:p;this.startTime=a;this.i=this.endTime=b;this.G=c;this.Ta=d;this.za=e;this.ua=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=void 0===m?"":m;this.A=void 0===n?null:n;this.h=void 0===r?null:r;this.status=p;this.preload=!1;this.l=!0;this.m=!1;this.aesKey=void 0===t?null:t;this.u=null;this.j=0;this.o=void 0===x?!1:x;this.Fe=this.Ud=!1;a=u(this.g);for(b=a.next();!b.done;b=
297
- a.next())b.value.Bh();this.o&&this.g.length&&this.g[this.g.length-1].Ah();this.F=this.mimeType=this.codecs=null}q=Ai.prototype;q.ka=function(){return this.G()};q.getStartTime=function(){return this.startTime};q.Mi=function(){return this.endTime};q.Mb=function(){return this.Ta};q.Jb=function(){return this.za};q.dj=function(){return this.tilesLayout};q.cj=function(){return this.A};q.xc=function(){return this.status};q.Aj=function(){this.status=Ci};q.mg=function(){this.preload=!0};q.sj=function(){return this.preload};
298
- q.He=function(){this.l=!1};q.pj=function(){return this.l};q.Bh=function(){this.Ud=!0};q.rj=function(){return this.Ud};q.Ah=function(){this.Fe=!0};q.qj=function(){return this.Fe};q.yh=function(){this.m=!0};q.lj=function(){return this.m};q.Qh=function(a){this.u=a};q.bj=function(){return this.u};q.offset=function(a){this.startTime+=a;this.endTime+=a;this.i+=a;for(var b=u(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.i+=a};
296
+ function Ai(a,b,c,d,e,f,g,h,k,l,m,n,r,p,t,y){l=void 0===l?[]:l;p=void 0===p?Bi:p;this.startTime=a;this.i=this.endTime=b;this.G=c;this.Ta=d;this.za=e;this.ua=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=void 0===m?"":m;this.A=void 0===n?null:n;this.h=void 0===r?null:r;this.status=p;this.preload=!1;this.l=!0;this.m=!1;this.aesKey=void 0===t?null:t;this.u=null;this.j=0;this.o=void 0===y?!1:y;this.Fe=this.Ud=!1;a=u(this.g);for(b=a.next();!b.done;b=
297
+ a.next())b.value.Dh();this.o&&this.g.length&&this.g[this.g.length-1].Ch();this.F=this.mimeType=this.codecs=null}q=Ai.prototype;q.ka=function(){return this.G()};q.getStartTime=function(){return this.startTime};q.Mi=function(){return this.endTime};q.Mb=function(){return this.Ta};q.Jb=function(){return this.za};q.dj=function(){return this.tilesLayout};q.cj=function(){return this.A};q.xc=function(){return this.status};q.Aj=function(){this.status=Ci};q.mg=function(){this.preload=!0};q.sj=function(){return this.preload};
298
+ q.He=function(){this.l=!1};q.pj=function(){return this.l};q.Dh=function(){this.Ud=!0};q.rj=function(){return this.Ud};q.Ch=function(){this.Fe=!0};q.qj=function(){return this.Fe};q.Bh=function(){this.m=!0};q.lj=function(){return this.m};q.Sh=function(a){this.u=a};q.bj=function(){return this.u};q.offset=function(a){this.startTime+=a;this.endTime+=a;this.i+=a;for(var b=u(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.i+=a};
299
299
  q.Kg=function(a){null==this.h?Ta("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};q.fk=function(a){this.F=a};q.Kd=function(){return this.F};function Di(a,b){a.ua=b;a=u(a.g);for(var c=a.next();!c.done;c=a.next())Di(c.value,b)}N("shaka.media.SegmentReference",Ai);Ai.prototype.getSegmentData=Ai.prototype.Kd;Ai.prototype.setSegmentData=Ai.prototype.fk;Ai.prototype.syncAgainst=Ai.prototype.Kg;Ai.prototype.offset=Ai.prototype.offset;
300
- Ai.prototype.getThumbnailSprite=Ai.prototype.bj;Ai.prototype.setThumbnailSprite=Ai.prototype.Qh;Ai.prototype.hasByterangeOptimization=Ai.prototype.lj;Ai.prototype.markAsByterangeOptimization=Ai.prototype.yh;Ai.prototype.isLastPartial=Ai.prototype.qj;Ai.prototype.markAsLastPartial=Ai.prototype.Ah;Ai.prototype.isPartial=Ai.prototype.rj;Ai.prototype.markAsPartial=Ai.prototype.Bh;Ai.prototype.isIndependent=Ai.prototype.pj;Ai.prototype.markAsNonIndependent=Ai.prototype.He;Ai.prototype.isPreload=Ai.prototype.sj;
300
+ Ai.prototype.getThumbnailSprite=Ai.prototype.bj;Ai.prototype.setThumbnailSprite=Ai.prototype.Sh;Ai.prototype.hasByterangeOptimization=Ai.prototype.lj;Ai.prototype.markAsByterangeOptimization=Ai.prototype.Bh;Ai.prototype.isLastPartial=Ai.prototype.qj;Ai.prototype.markAsLastPartial=Ai.prototype.Ch;Ai.prototype.isPartial=Ai.prototype.rj;Ai.prototype.markAsPartial=Ai.prototype.Dh;Ai.prototype.isIndependent=Ai.prototype.pj;Ai.prototype.markAsNonIndependent=Ai.prototype.He;Ai.prototype.isPreload=Ai.prototype.sj;
301
301
  Ai.prototype.markAsPreload=Ai.prototype.mg;Ai.prototype.markAsUnavailable=Ai.prototype.Aj;Ai.prototype.getStatus=Ai.prototype.xc;Ai.prototype.getTileDuration=Ai.prototype.cj;Ai.prototype.getTilesLayout=Ai.prototype.dj;Ai.prototype.getEndByte=Ai.prototype.Jb;Ai.prototype.getStartByte=Ai.prototype.Mb;Ai.prototype.getEndTime=Ai.prototype.Mi;Ai.prototype.getStartTime=Ai.prototype.getStartTime;Ai.prototype.getUris=Ai.prototype.ka;var Bi=0,Ci=1;Ai.Status={rk:Bi,ql:Ci,Mk:2};function Ei(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Fi(a,b){return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b>=a.start(0)}function Gi(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=u(Hi(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c}
302
302
  function Ii(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Hi(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function Hi(a){if(!a)return[];for(var b=[],c=0;c<a.length;c++)b.push({start:a.start(c),end:a.end(c)});return b};/*
303
303
  @license
@@ -310,8 +310,8 @@ function Ni(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureTyp
310
310
  d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=lc(Fb(a.data,1,d));a=lc(Fb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=lc(Fb(a.data,1,d));a=lc(Fb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("PRIV"===a.type){if(2>a.size)return null;c=a.data.indexOf(0);if(-1===c)return null;c=lc(Fb(a.data,0,c));b.description=c;"com.apple.streaming.transportStreamTimestamp"==
311
311
  c?(c=a.data.subarray(c.length+1),a=c[3]&1,c=(c[4]<<23)+(c[5]<<15)+(c[6]<<7)+c[7],c/=45,a&&(c+=4.772185884E7),b.data=c):(a=Gb(a.data.subarray(c.length+1)),b.data=a);return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=lc(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=lc(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Gb(a.data),b):null}
312
312
  function Oi(a){for(var b=0,c=[];Ki(a,b);){var d=Mi(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(d=b+d;b+10<d;){var e=a.subarray(b),f=Mi(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=Ni(e))&&c.push(f);b+=e.size+10}Li(a,b)&&(b+=10)}return c}function Pi(a,b){for(var c=b=void 0===b?0:b,d=0;Ki(a,b);)a[b+5]>>6&1&&(d+=10),d+=10,d+=Mi(a,b+6),Li(a,b+10)&&(d+=10),b+=d;return 0<d?a.subarray(c,c+d):new Uint8Array([])}N("shaka.util.Id3Utils",Ji);Ji.getID3Data=Pi;
313
- Ji.getID3Frames=Oi;function Qi(a,b){var c=null,d=null,e=null,f=a.R();b&1&&(e=a.ed());b&2&&a.skip(4);b&8&&(c=a.R());b&16&&(d=a.R());return{trackId:f,hh:c,zi:d,wl:e}}function Ri(a,b){return 1==b?(b=a.R(),a=a.R(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.R()}}function Si(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.R();a.skip(4);a=a.Ha();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
314
- function Ti(a,b,c){var d=a.R(),e=[],f=null;c&1&&(f=a.R());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={yg:null,sampleSize:null,We:null};c&256&&(h.yg=a.R());c&512&&(h.sampleSize=a.R());c&1024&&a.skip(4);c&2048&&(h.We=0==b?a.R():a.Fh());e.push(h)}return{Al:d,Ih:e,xi:f}}
313
+ Ji.getID3Frames=Oi;function Qi(a,b){var c=null,d=null,e=null,f=a.R();b&1&&(e=a.ed());b&2&&a.skip(4);b&8&&(c=a.R());b&16&&(d=a.R());return{trackId:f,jh:c,Ai:d,wl:e}}function Ri(a,b){return 1==b?(b=a.R(),a=a.R(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.R()}}function Si(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.R();a.skip(4);a=a.Ha();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
314
+ function Ti(a,b,c){var d=a.R(),e=[],f=null;c&1&&(f=a.R());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={yg:null,sampleSize:null,We:null};c&256&&(h.yg=a.R());c&512&&(h.sampleSize=a.R());c&1024&&a.skip(4);c&2048&&(h.We=0==b?a.R():a.Hh());e.push(h)}return{Al:d,Kh:e,zi:f}}
315
315
  function Ui(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));var c=a.R();1==b?a.skip(8):a.skip(4);a.skip(4);a.skip(8);a.skip(2);a.skip(2);a.skip(2);a.skip(2);a.skip(36);b=a.Ha()+a.Ha()/16;a=a.Ha()+a.Ha()/16;return{trackId:c,width:b,height:a}}function Vi(a){a=a.R();return{ab:Kg(a)}}function Wi(a,b){b=void 0===b?!1:b;a=a.toString(16).toUpperCase();return b?a:("0"+a).slice(-2)}function Xi(a){return(10>a?"0":"")+a};/*
316
316
 
317
317
  Copyright Brightcove, Inc.
@@ -333,131 +333,131 @@ function aj(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&
333
333
  function jj(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=dj(a),d=(c+d+256)%256),c=0===d?c:d}function kj(a){ij(a);S(a);return S(a)}N("shaka.util.ExpGolomb",Yi);function lj(){this.I=null;this.J=!1;this.m=this.K=null;this.j=[];this.g=[];this.A=this.F=null;this.i=[];this.h=[];this.G=null;this.l=[];this.H=this.o=this.u=null}q=lj.prototype;q.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]};
334
334
  q.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,mj(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71==a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.I=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.I:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Ce:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h<
335
335
  k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(0<m)for(var n=h+5,r=m;2<r;){var p=f[n+1]+2;switch(f[n]){case 5:var t=nc(f.subarray(n+2,n+p));-1==g.audio&&"Opus"===t?(g.audio=l,g.audioCodec="opus"):-1==g.video&&"AV01"===t&&(g.video=l,g.videoCodec="av1");break;case 106:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 122:-1==g.audio&&(g.audio=l,g.audioCodec="ec3");break;case 124:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 127:"opus"==g.audioCodec&&(t=
336
- null,128===f[n+2]&&(t=f[n+3]),null!=t&&(this.H={channelCount:0===(t&15)?2:t&15,pi:t,sampleRate:48E3}))}n+=p;r-=p}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 17:-1==g.audio&&(g.audio=l,g.audioCodec="aac-loas");break;case 21:-1==g.Ce&&(g.Ce=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec="hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");
336
+ null,128===f[n+2]&&(t=f[n+3]),null!=t&&(this.H={channelCount:0===(t&15)?2:t&15,ri:t,sampleRate:48E3}))}n+=p;r-=p}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 17:-1==g.audio&&(g.audio=l,g.audioCodec="aac-loas");break;case 21:-1==g.Ce&&(g.Ce=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec="hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");
337
337
  break;case 132:case 135:-1==g.audio&&(g.audio=l,g.audioCodec="ec3")}h+=m+5}f=g;-1!=f.video&&(this.K=f.video,this.m=f.videoCodec);-1!=f.audio&&(this.F=f.audio,this.A=f.audioCodec);-1!=f.Ce&&(this.G=f.Ce);d&&!this.J&&(d=!1,e=b-188);this.J=!0;break;case this.K:h=a.subarray(h,e+188);f?this.j.push([h]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(h);break;case this.F:h=a.subarray(h,e+188);f?this.i.push([h]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(h);
338
338
  break;case this.G:h=a.subarray(h,e+188);f?this.l.push([h]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(h);break;default:d=!0}}return this};
339
339
  function nj(a,b){if(1!==(b[0]<<16|b[1]<<8|b[2]))return null;var c={data:new Uint8Array(0),packetLength:b[4]<<8|b[5],pts:null,dts:null,nalus:[]};if(c.packetLength&&c.packetLength>b.byteLength-6)return null;var d=b[7];if(d&192){var e=536870912*(b[9]&14)+4194304*(b[10]&255)+16384*(b[11]&254)+128*(b[12]&255)+(b[13]&254)/2;null==a.u&&(a.u=e);c.pts=oj(e,a.u);a.u=c.pts;c.dts=c.pts;d&64&&(d=536870912*(b[14]&14)+4194304*(b[15]&255)+16384*(b[16]&254)+128*(b[17]&255)+(b[18]&254)/2,null==a.o&&(a.o=d),c.dts=oj(d,
340
340
  a.o));a.o=c.dts}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c}q.Gj=function(a){ld("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.ug(a)};
341
341
  q.ug=function(a,b,c){var d=a.pts?a.pts/9E4:null;a=a.data;var e=a.byteLength,f=1;"hvc"==this.m&&(f=2);for(var g=c||0,h=[],k=-1,l=0,m,n=0;n<e;++n){var r=a[n];if(r){if(2<=g&&1==r){b&&!h.length&&-1==k&&(r=n-(3<g?3:g),c&&0!=r&&(r=a.subarray(0,r),b.data=zc(b.data,r),b.fullData=zc(b.fullData,r)));0<=k?(g=n-((3<g?3:g)+1),h.push({data:a.subarray(k+f,g+1),fullData:a.subarray(k,g+1),type:l,time:d})):b&&!h.length&&(k=n-g,0<k&&(k=a.subarray(0,k),b.data=zc(b.data,k),b.fullData=zc(b.fullData,k)));if(n>=e-f)return h;
342
- n++;k=n;l="hvc"==this.m?a[n]>>1&63:a[n]&31}g=0}else g++;n>=e-1&&0<=k&&0<=g&&(m={data:a.subarray(k+f,e),fullData:a.subarray(k,e),type:l,time:d})}m&&h.push(m);!h.length&&b&&(b.data=zc(b.data,a),b.fullData=zc(b.fullData,a));return h};q.getMetadata=function(){for(var a=[],b=u(this.l),c=b.next();!c.done;c=b.next())c=zc.apply(tc,y(c.value)),(c=nj(this,c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:Oi(c.data),dts:c.dts,pts:c.pts});return a};
343
- q.ec=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=u(this.i),c=b.next();!c.done;c=b.next()){var d=zc.apply(tc,y(c.value)),e=nj(this,d);c=this.h.length?this.h[this.h.length-1]:null;e&&null!=e.pts&&null!=e.dts&&(!c||c.pts!=e.pts&&c.dts!=e.dts)?(this.h.length&&e.dts<(c.dts||0)&&(a=!0),this.h.push(e)):this.h.length&&(d=e?e.data:d)&&(c=this.h.pop(),c.data=zc(c.data,d),this.h.push(c))}a&&(this.h=this.h.sort(function(f,g){var h=(f.pts||0)-(g.pts||0);return(f.dts||0)-(g.dts||0)||h}))}return this.h};
344
- q.Xc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=u(this.j),d=c.next();!d.done;d=c.next()){var e=zc.apply(tc,y(d.value)),f=nj(this,e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=zc(d.data,e),this.g.push(d))}if(a){var g;c=u(this.g);for(d=c.next();!d.done;d=c.next())d=d.value,d.nalus=this.ug(d,
342
+ n++;k=n;l="hvc"==this.m?a[n]>>1&63:a[n]&31}g=0}else g++;n>=e-1&&0<=k&&0<=g&&(m={data:a.subarray(k+f,e),fullData:a.subarray(k,e),type:l,time:d})}m&&h.push(m);!h.length&&b&&(b.data=zc(b.data,a),b.fullData=zc(b.fullData,a));return h};q.getMetadata=function(){for(var a=[],b=u(this.l),c=b.next();!c.done;c=b.next())c=zc.apply(tc,w(c.value)),(c=nj(this,c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:Oi(c.data),dts:c.dts,pts:c.pts});return a};
343
+ q.ec=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=u(this.i),c=b.next();!c.done;c=b.next()){var d=zc.apply(tc,w(c.value)),e=nj(this,d);c=this.h.length?this.h[this.h.length-1]:null;e&&null!=e.pts&&null!=e.dts&&(!c||c.pts!=e.pts&&c.dts!=e.dts)?(this.h.length&&e.dts<(c.dts||0)&&(a=!0),this.h.push(e)):this.h.length&&(d=e?e.data:d)&&(c=this.h.pop(),c.data=zc(c.data,d),this.h.push(c))}a&&(this.h=this.h.sort(function(f,g){var h=(f.pts||0)-(g.pts||0);return(f.dts||0)-(g.dts||0)||h}))}return this.h};
344
+ q.Xc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=u(this.j),d=c.next();!d.done;d=c.next()){var e=zc.apply(tc,w(d.value)),f=nj(this,e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=zc(d.data,e),this.g.push(d))}if(a){var g;c=u(this.g);for(d=c.next();!d.done;d=c.next())d=d.value,d.nalus=this.ug(d,
345
345
  g,void 0),d.nalus.length&&(g=d.nalus[d.nalus.length-1]);this.g=this.g.filter(function(h){return h.nalus.length})}b&&(this.g=this.g.sort(function(h,k){var l=(h.pts||0)-(k.pts||0);return(h.dts||0)-(k.dts||0)||l}))}return a?this.g:(a=this.g,this.g=[],a)};q.getStartTime=function(a){if("audio"==a){a=null;var b=this.ec();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.Xc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};
346
- q.Gd=function(){return{audio:this.A,video:this.m}};q.Ae=function(){for(var a=[],b=u(this.Xc()),c=b.next();!c.done;c=b.next())a.push.apply(a,y(c.value.nalus));return a};q.ij=function(){ld("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.ag();return{height:a.height,width:a.width}};q.ag=function(){return"hvc"==this.m?pj(this):qj(this)};
346
+ q.Gd=function(){return{audio:this.A,video:this.m}};q.Ae=function(){for(var a=[],b=u(this.Xc()),c=b.next();!c.done;c=b.next())a.push.apply(a,w(c.value.nalus));return a};q.ij=function(){ld("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.ag();return{height:a.height,width:a.width}};q.ag=function(){return"hvc"==this.m?pj(this):qj(this)};
347
347
  function qj(a){var b={height:null,width:null,ab:null};a=a.Ae();if(!a.length)return b;a=a.find(function(r){return 7==r.type});if(!a)return b;a=new Yi(a.data);var c=ij(a),d=ij(a),e=ij(a);cj(a);if(rj.includes(c)){var f=S(a);3===f&&$i(a,1);cj(a);cj(a);$i(a,1);if(hj(a)){f=3!==f?8:12;for(var g=0;g<f;g++)hj(a)&&(6>g?jj(a,16):jj(a,64))}}cj(a);f=S(a);if(0===f)S(a);else if(1===f)for($i(a,1),cj(a),cj(a),f=S(a),g=0;g<f;g++)cj(a);cj(a);$i(a,1);f=S(a);g=S(a);var h=aj(a,1);0===h&&$i(a,1);$i(a,1);var k=0,l=0,m=0,
348
348
  n=0;hj(a)&&(k=S(a),l=S(a),m=S(a),n=S(a));b.height=String((2-h)*(g+1)*16-2*m-2*n);b.width=String(16*(f+1)-2*k-2*l);b.ab="avc1."+("0"+c.toString(16).toUpperCase()).slice(-2)+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2);return b}
349
- function pj(a){var b={height:null,width:null,ab:null};a=a.Ae();if(!a.length)return b;a=a.find(function(z){return 33==z.type});if(!a)return b;var c=new Yi(a.fullData,!0);ij(c);ij(c);aj(c,4);var d=aj(c,3);hj(c);var e=aj(c,2),f=aj(c,1),g=aj(c,5),h=aj(c,32);a=ij(c);for(var k=ij(c),l=ij(c),m=ij(c),n=ij(c),r=ij(c),p=ij(c),t=[],x=[],w=0;w<d;w++)t.push(hj(c)),x.push(hj(c));if(0<d)for(w=d;8>w;w++)aj(c,2);for(w=0;w<d;w++)t[w]&&aj(c,88),x[w]&&ij(c);S(c);d=S(c);3==d&&aj(c,1);t=S(c);x=S(c);var B=w=0,v=0,A=0;hj(c)&&
350
- (w+=S(c),B+=S(c),v+=S(c),A+=S(c));b.width=String(t-(w+B)*(1===d||2===d?2:1));b.height=String(x-(v+A)*(1===d?2:1));c=function(z){for(var C=0,E=0;32>E;E++)C|=(z>>E&1)<<31-E;return C>>>0}(h);f=1==f?"H":"L";e="hvc1"+("."+["","A","B","C"][e]+g);e+="."+c.toString(16).toUpperCase();e+="."+f+p;r&&(e+="."+r.toString(16).toUpperCase());n&&(e+="."+n.toString(16).toUpperCase());m&&(e+="."+m.toString(16).toUpperCase());l&&(e+="."+l.toString(16).toUpperCase());k&&(e+="."+k.toString(16).toUpperCase());a&&(e+="."+
349
+ function pj(a){var b={height:null,width:null,ab:null};a=a.Ae();if(!a.length)return b;a=a.find(function(z){return 33==z.type});if(!a)return b;var c=new Yi(a.fullData,!0);ij(c);ij(c);aj(c,4);var d=aj(c,3);hj(c);var e=aj(c,2),f=aj(c,1),g=aj(c,5),h=aj(c,32);a=ij(c);for(var k=ij(c),l=ij(c),m=ij(c),n=ij(c),r=ij(c),p=ij(c),t=[],y=[],x=0;x<d;x++)t.push(hj(c)),y.push(hj(c));if(0<d)for(x=d;8>x;x++)aj(c,2);for(x=0;x<d;x++)t[x]&&aj(c,88),y[x]&&ij(c);S(c);d=S(c);3==d&&aj(c,1);t=S(c);y=S(c);var A=x=0,v=0,B=0;hj(c)&&
350
+ (x+=S(c),A+=S(c),v+=S(c),B+=S(c));b.width=String(t-(x+A)*(1===d||2===d?2:1));b.height=String(y-(v+B)*(1===d?2:1));c=function(z){for(var C=0,E=0;32>E;E++)C|=(z>>E&1)<<31-E;return C>>>0}(h);f=1==f?"H":"L";e="hvc1"+("."+["","A","B","C"][e]+g);e+="."+c.toString(16).toUpperCase();e+="."+f+p;r&&(e+="."+r.toString(16).toUpperCase());n&&(e+="."+n.toString(16).toUpperCase());m&&(e+="."+m.toString(16).toUpperCase());l&&(e+="."+l.toString(16).toUpperCase());k&&(e+="."+k.toString(16).toUpperCase());a&&(e+="."+
351
351
  a.toString(16).toUpperCase());b.ab=e;return b}function oj(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function sj(a){return 0>mj(a)?!1:!0}function mj(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71==a[c]&&71==a[c+188]&&71==a[c+376])return c;c++}return-1}N("shaka.util.TsParser",lj);lj.syncOffset=mj;lj.probe=sj;lj.prototype.getVideoInfo=lj.prototype.ag;lj.prototype.getVideoResolution=lj.prototype.ij;lj.prototype.getVideoNalus=lj.prototype.Ae;
352
352
  lj.prototype.getCodecs=lj.prototype.Gd;lj.prototype.getStartTime=lj.prototype.getStartTime;lj.prototype.getVideoData=lj.prototype.Xc;lj.prototype.getAudioData=lj.prototype.ec;lj.prototype.getMetadata=lj.prototype.getMetadata;lj.prototype.parseNalus=lj.prototype.ug;lj.prototype.parseAvcNalus=lj.prototype.Gj;lj.prototype.parse=lj.prototype.parse;lj.prototype.clearData=lj.prototype.clearData;lj.Timescale=9E4;var rj=[100,110,122,244,44,83,86,118,128,138,139,134];function tj(a,b,c){this.g=null;this.o=-1;this.l=a;this.i=b;this.m=c;this.j=!1;a:{"undefined"===typeof libDPIModule&&Ua("Could not find LCEVC Library dependencies on this page");if("undefined"!==typeof LCEVCdec)this.h=LCEVCdec;else if("undefined"!==typeof LcevcDil)this.h=LcevcDil,this.j=!0,ld("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Ua("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Ua("Could not find LCEVC Library on this page"),
353
353
  a=!1):(this.h.SupportObject.SupportStatus||Ua(this.h.SupportObject.SupportError),a="undefined"!==typeof this.h&&"undefined"!==typeof libDPIModule&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}a&&!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 uj(a){a.g&&a.i.classList.add("shaka-hidden")}
354
354
  tj.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function vj(a,b,c){var d=wj,e=xj;switch(b.mimeType){case "video/webm":d=yj;break;case "video/mp4":d=zj}switch(c){case "DASH":e=Aj;break;case "HLS":e=Bj}a.g&&(a.o=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}N("shaka.lcevc.Dec",tj);tj.prototype.release=tj.prototype.release;var wj=0,yj=1,zj=2,Bj=0,Aj=1,xj=-1;function Cj(a,b,c,d){var e=this;this.i=a;this.A=null;this.H=b;this.h={};this.I={};this.oa={};this.g=null;this.Y=!1;this.ra=c||function(){};this.P=d||null;this.j={};this.o=new cd;this.m={};this.J=null;this.M=new dg;this.O="";this.$=!1;this.l=Dj(this,this.M);this.G=!1;this.K=new zg(function(){return Ej(e)});this.F=!1;this.X="UNKNOWN";this.ma=this.qa=!1;this.sa=new dg;this.u=!1;this.aa=!0;this.L=this.S=null}
355
355
  function Dj(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.o.s(c,"startstreaming",function(){a.aa=!0});a.o.s(c,"endstreaming",function(){a.aa=!1});a.o.na(c,"sourceopen",function(){URL.revokeObjectURL(a.O);b.resolve()});a.o.na(a.i,"playing",function(){a.$=!0});a.O=Fj(c);a.i.src=a.O;return c}c=new MediaSource;a.o.na(c,"sourceopen",function(){URL.revokeObjectURL(a.O);b.resolve()});a.o.na(a.i,"playing",function(){a.$=!0});a.O=Fj(c);a.i.src=a.O;return c}
356
- function Gj(a,b){var c,d,e,f,g,h,k,l,m,n,r;return L(function(p){if(1==p.g)return a.createSegmentIndex?D(p,a.createSegmentIndex(),2):p.D(2);if(!a.segmentIndex)return p.return(!1);if(0==a.segmentIndex.getNumReferences())return p.return(!0);c=Ic;d=new Set;e=u(a.segmentIndex);for(f=e.next();!f.done;f=e.next())if(g=f.value,h=g.mimeType||a.mimeType||"",k=g.codecs||a.codecs||"",l=h+":"+k,!d.has(l))if(d.add(l),b==c.Ca){if(m=ie(h,k),!Be(m))return p.return(!1)}else if(b==c.va?k=$e(k):b==c.Z&&(k=af(k)),n=me(a,
356
+ function Gj(a,b){var c,d,e,f,g,h,k,l,m,n,r;return L(function(p){if(1==p.g)return a.createSegmentIndex?D(p,a.createSegmentIndex(),2):p.B(2);if(!a.segmentIndex)return p.return(!1);if(0==a.segmentIndex.getNumReferences())return p.return(!0);c=Ic;d=new Set;e=u(a.segmentIndex);for(f=e.next();!f.done;f=e.next())if(g=f.value,h=g.mimeType||a.mimeType||"",k=g.codecs||a.codecs||"",l=h+":"+k,!d.has(l))if(d.add(l),b==c.Ca){if(m=ie(h,k),!Be(m))return p.return(!1)}else if(b==c.va?k=$e(k):b==c.Z&&(k=af(k)),n=me(a,
357
357
  h,k),r=ke(h,k),!hd(n)&&!ce(r))return p.return(!1);return p.return(!0)})}q=Cj.prototype;q.destroy=function(){return this.K.destroy()};
358
358
  function Ej(a){var b,c,d,e,f,g,h,k;return L(function(l){if(1==l.g){b=[];for(c in a.j)for(d=a.j[c],e=d[0],a.j[c]=d.slice(0,1),e&&b.push(e.p.catch(Je)),f=u(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new R(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.H&&b.push(a.H.destroy());for(k in a.m)b.push(a.m[k].destroy());return D(l,Promise.all(b),2)}a.o&&(a.o.release(),a.o=null);a.i&&(a.i.removeAttribute("src"),a.i.load(),a.i=null);a.A=null;a.l=null;a.g=null;a.H=null;a.h={};a.m={};a.J=null;
359
- a.j={};a.P=null;a.L=null;G(l)})}q.init=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?"UNKNOWN":c;d=void 0===d?!1:d;var e=this,f,g,h,k,l;return L(function(m){switch(m.g){case 1:return f=Ic,D(m,e.M,2);case 2:e.F=b,e.X=c,e.qa=d,e.ma=!e.F&&"HLS"==e.X&&!e.qa,e.L=null,g=u(a.keys()),h=g.next();case 3:if(h.done){m.D(0);break}k=h.value;l=a.get(k);return D(m,Hj(e,k,l,l.codecs),6);case 6:e.u?(e.j[f.Z]=[],e.j[f.va]=[]):e.j[k]=[],h=g.next(),m.D(3)}})};
360
- function Hj(a,b,c,d){var e,f,g,h,k,l,m,n,r,p,t,x;return L(function(w){switch(w.g){case 1:return e=Ic,f=Oa,g=Pa,D(w,Gj(c,b),2);case 2:g.call(f,w.h,"Type negotiation should happen before MediaSourceEngine.init!");h=ie(c.mimeType,d);if(b==e.Ca){Ij(a,h,a.F,c.external);w.D(0);break}k=a.A.forceTransmux;if(!hd(h)||!a.F&&je.includes(h))k=!0;l=ke(c.mimeType,d);if(!k){w.D(4);break}m=Ec(e.Z,(d||"").split(","));n=Ec(e.va,(d||"").split(","));if(!m||!n){w.D(5);break}a.u=!0;return D(w,Hj(a,e.Z,c,m),6);case 6:return D(w,
361
- Hj(a,e.va,c,n),7);case 7:return w.return();case 5:if(r=ce(l))p=r(),a.m[b]=p,h=p.convertCodecs(b,l);case 4:t=h+a.A.addExtraFeaturesToSourceBuffer(h);Ag(a.K);try{x=a.l.addSourceBuffer(t)}catch(B){throw new R(2,3,3015,B,"The mediaSource_ status was "+a.l.readyState+" expected 'open'");}a.F&&(x.mode=Jj);a.o.s(x,"error",function(){a.j[b][0].p.reject(new R(2,3,3014,a.i.error?a.i.error.code:0))});a.o.s(x,"updateend",function(){return Kj(a,b)});a.h[b]=x;a.I[b]=h;a.oa[b]=!!c.drmInfos.length;G(w)}})}
359
+ a.j={};a.P=null;a.L=null;G(l)})}q.init=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?"UNKNOWN":c;d=void 0===d?!1:d;var e=this,f,g,h,k,l;return L(function(m){switch(m.g){case 1:return f=Ic,D(m,e.M,2);case 2:e.F=b,e.X=c,e.qa=d,e.ma=!e.F&&"HLS"==e.X&&!e.qa,e.L=null,g=u(a.keys()),h=g.next();case 3:if(h.done){m.B(0);break}k=h.value;l=a.get(k);return D(m,Hj(e,k,l,l.codecs),6);case 6:e.u?(e.j[f.Z]=[],e.j[f.va]=[]):e.j[k]=[],h=g.next(),m.B(3)}})};
360
+ function Hj(a,b,c,d){var e,f,g,h,k,l,m,n,r,p,t,y;return L(function(x){switch(x.g){case 1:return e=Ic,f=Oa,g=Pa,D(x,Gj(c,b),2);case 2:g.call(f,x.h,"Type negotiation should happen before MediaSourceEngine.init!");h=ie(c.mimeType,d);if(b==e.Ca){Ij(a,h,a.F,c.external);x.B(0);break}k=a.A.forceTransmux;if(!hd(h)||!a.F&&je.includes(h))k=!0;l=ke(c.mimeType,d);if(!k){x.B(4);break}m=Ec(e.Z,(d||"").split(","));n=Ec(e.va,(d||"").split(","));if(!m||!n){x.B(5);break}a.u=!0;return D(x,Hj(a,e.Z,c,m),6);case 6:return D(x,
361
+ Hj(a,e.va,c,n),7);case 7:return x.return();case 5:if(r=ce(l))p=r(),a.m[b]=p,h=p.convertCodecs(b,l);case 4:t=h+a.A.addExtraFeaturesToSourceBuffer(h);Ag(a.K);try{y=a.l.addSourceBuffer(t)}catch(A){throw new R(2,3,3015,A,"The mediaSource_ status was "+a.l.readyState+" expected 'open'");}a.F&&(y.mode=Jj);a.o.s(y,"error",function(){a.j[b][0].p.reject(new R(2,3,3014,a.i.error?a.i.error.code:0))});a.o.s(y,"updateend",function(){return Kj(a,b)});a.h[b]=y;a.I[b]=h;a.oa[b]=!!c.drmInfos.length;G(x)}})}
362
362
  q.configure=function(a){this.A=a;this.g&&(this.g.A=a.modifyCueCallback)};
363
363
  function Ij(a,b,c,d){a.g||(a.g=new Ae(a.H),a.g&&(a.g.A=a.A.modifyCueCallback));var e=a.g;d=d||a.Y;a=a.X;"application/cea-608"==b||"application/cea-708"==b?e.i=null:(e.i=(0,Ce[b])(),e.i.setSequenceMode?e.i.setSequenceMode(c):ld("Text parsers w/ setSequenceMode",'Text parsers should have a "setSequenceMode" method!'),e.i.setManifestType?e.i.setManifestType(a):ld("Text parsers w/ setManifestType",'Text parsers should have a "setManifestType" method!'),e.F=d)}
364
364
  function Lj(a){return a.G?!1:a.l?"ended"==a.l.readyState:!0}function Mj(a,b){a.G||!Object.keys(a.h).length?a=null:b==Gc?a=a.g.g:(a=Nj(a,b),a=!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null);return a}function Oj(a,b){return a.G?null:b==Gc?a.g.h:Ei(Nj(a,b))}function Vj(a,b,c){if(a.G)return 0;if(b==Gc)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Nj(a,b);return Gi(a,c)}
365
365
  q.Ib=function(){var a={total:this.G?[]:Hi(this.i.buffered),audio:this.G?[]:Hi(Nj(this,"audio")),video:this.G?[]:Hi(Nj(this,"video")),text:[]};if(this.g){var b=this.g.g,c=this.g.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Nj(a,b){try{return a.h[b].buffered}catch(c){return null}}
366
366
  function Wj(a,b,c,d,e,f){var g=null,h=Fb(c);if(je.includes(e))f=Oi(h),f.length&&d&&((b=f.find(function(n){return"com.apple.streaming.transportStreamTimestamp"===n.description}))&&b.data&&(g=Math.round(b.data)/1E3),a.ra([{cueTime:d.startTime,data:h,frames:f,dts:d.startTime,pts:d.startTime}],0,d.endTime));else if(e.includes("/mp4")&&d&&0==d.timestampOffset&&d.ua&&d.ua.timescale){var k=d.ua.timescale;if(!isNaN(k)){var l=0,m=!1;(new Gg).box("moof",Lg).box("traf",Lg).T("tfdt",function(n){l=Ri(n.reader,
367
367
  n.version).baseMediaDecodeTime/k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else e.includes("/mp4")||e.includes("/webm")||!sj(h)||(a.L?a.L.clearData():a.L=new lj,h=a.L.parse(h),b=h.getStartTime(b),null!=b&&(g=b),h=h.getMetadata(),h.length&&a.ra(h,f,d?d.endTime:null));return g}
368
- function Xj(a,b,c,d,e,f,g,h,k,l){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var m,n,r,p,t,x,w,B,v,A,z;return L(function(C){switch(C.g){case 1:m=Ic;if(b!=m.Ca){C.D(2);break}if(!a.F){C.D(3);break}return D(C,a.sa,4);case 4:n=C.h,a.g.u=n;case 3:return D(C,De(a.g,c,d?d.startTime:null,d?d.endTime:null,d?d.ka()[0]:null),5);case 5:return C.return();case 2:if(l||!a.u){C.D(6);break}return D(C,Xj(a,m.Z,c,d,e,f,g,h,k,!0),7);case 7:return D(C,Xj(a,m.va,c,d,e,f,g,h,k,!0),8);case 8:return C.return();
369
- case 6:if(!a.h[b])return C.return();r=a.h[b].timestampOffset;p=a.I[b];a.m[b]&&(p=a.m[b].getOriginalMimeType());d&&(t=Wj(a,b,c,d,p,r),null!=t&&(x=d.startTime-t,w=Math.abs(r-x),(.001<=w||g||h)&&(!k||0<x||!r)&&(r=x,a.ma&&(Yj(a,b,function(){return Zj(a,b)}),Yj(a,b,function(){return ak(a,b,r)}))),B=b==m.va||!(m.va in a.h),a.F&&B&&a.sa.resolve(r)));f&&b==m.va&&(a.g||Ij(a,"application/cea-608",a.F,!1),a.J||(v=p.split(";",1)[0],a.J=new sd(v)),d?(A=a.J.i(c),A.length&&He(a.g,A,d.startTime,d.endTime,r)):a.J.init(c));
370
- if(!a.m[b]){C.D(9);break}return D(C,a.m[b].transmux(c,e,d,a.l.duration,b),10);case 10:c=C.h;case 9:return c=bk(a,c,d?d.startTime:null,b),d&&a.F&&b!=m.Ca&&(g||h)&&(z=d.startTime,Yj(a,b,function(){return Zj(a,b)}),Yj(a,b,function(){return ak(a,b,z)})),D(C,Yj(a,b,function(){var E=c;if("video"==b&&a.P){var H=a.P;H.g&&H.g.appendBuffer(E,"video",H.o,-r)}a.h[b].appendBuffer(E)}),11);case 11:G(C)}})}function ck(a,b){var c=Oj(a,"video")||0;Fe(a.g,b,c)}function dk(a){a.g&&Fe(a.g,"",0)}
371
- q.remove=function(a,b,c){var d=this,e;return L(function(f){return 1==f.g?(e=Ic,a==e.Ca?D(f,d.g.remove(b,c),0):D(f,Yj(d,a,function(){return ek(d,a,b,c)}),4)):d.u?D(f,Yj(d,e.Z,function(){return ek(d,e.Z,b,c)}),0):f.D(0)})};function fk(a,b){var c;return L(function(d){return 1==d.g?(c=Ic,b==c.Ca?a.g?D(d,a.g.remove(0,Infinity),0):d.return():D(d,Yj(a,b,function(){return ek(a,b,0,a.l.duration)}),4)):a.u?D(d,Yj(a,c.Z,function(){return ek(a,c.Z,0,a.l.duration)}),0):d.D(0)})}
372
- q.flush=function(a){var b=this,c;return L(function(d){return 1==d.g?(c=Ic,a==c.Ca?d.return():D(d,Yj(b,a,function(){b.i.currentTime-=.001;Kj(b,a)}),2)):b.u?D(d,Yj(b,c.Z,function(){var e=c.Z;b.i.currentTime-=.001;Kj(b,e)}),0):d.D(0)})};
368
+ function Xj(a,b,c,d,e,f,g,h,k,l){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var m,n,r,p,t,y,x,A,v,B,z;return L(function(C){switch(C.g){case 1:m=Ic;if(b!=m.Ca){C.B(2);break}if(!a.F){C.B(3);break}return D(C,a.sa,4);case 4:n=C.h,a.g.u=n;case 3:return D(C,De(a.g,c,d?d.startTime:null,d?d.endTime:null,d?d.ka()[0]:null),5);case 5:return C.return();case 2:if(l||!a.u){C.B(6);break}return D(C,Xj(a,m.Z,c,d,e,f,g,h,k,!0),7);case 7:return D(C,Xj(a,m.va,c,d,e,f,g,h,k,!0),8);case 8:return C.return();
369
+ case 6:if(!a.h[b])return C.return();r=a.h[b].timestampOffset;p=a.I[b];a.m[b]&&(p=a.m[b].getOriginalMimeType());d&&(t=Wj(a,b,c,d,p,r),null!=t&&(y=d.startTime-t,x=Math.abs(r-y),(.001<=x||g||h)&&(!k||0<y||!r)&&(r=y,a.ma&&(Yj(a,b,function(){return Zj(a,b)}),Yj(a,b,function(){return ak(a,b,r)}))),A=b==m.va||!(m.va in a.h),a.F&&A&&a.sa.resolve(r)));f&&b==m.va&&(a.g||Ij(a,"application/cea-608",a.F,!1),a.J||(v=p.split(";",1)[0],a.J=new sd(v)),d?(B=a.J.i(c),B.length&&He(a.g,B,d.startTime,d.endTime,r)):a.J.init(c));
370
+ if(!a.m[b]){C.B(9);break}return D(C,a.m[b].transmux(c,e,d,a.l.duration,b),10);case 10:c=C.h;case 9:return c=bk(a,c,d?d.startTime:null,b),d&&a.F&&b!=m.Ca&&(g||h)&&(z=d.startTime,Yj(a,b,function(){return Zj(a,b)}),Yj(a,b,function(){return ak(a,b,z)})),D(C,Yj(a,b,function(){var E=c;if("video"==b&&a.P){var H=a.P;H.g&&H.g.appendBuffer(E,"video",H.o,-r)}a.h[b].appendBuffer(E)}),11);case 11:G(C)}})}function ck(a,b){var c=Oj(a,"video")||0;Fe(a.g,b,c)}function dk(a){a.g&&Fe(a.g,"",0)}
371
+ q.remove=function(a,b,c){var d=this,e;return L(function(f){return 1==f.g?(e=Ic,a==e.Ca?D(f,d.g.remove(b,c),0):D(f,Yj(d,a,function(){return ek(d,a,b,c)}),4)):d.u?D(f,Yj(d,e.Z,function(){return ek(d,e.Z,b,c)}),0):f.B(0)})};function fk(a,b){var c;return L(function(d){return 1==d.g?(c=Ic,b==c.Ca?a.g?D(d,a.g.remove(0,Infinity),0):d.return():D(d,Yj(a,b,function(){return ek(a,b,0,a.l.duration)}),4)):a.u?D(d,Yj(a,c.Z,function(){return ek(a,c.Z,0,a.l.duration)}),0):d.B(0)})}
372
+ q.flush=function(a){var b=this,c;return L(function(d){return 1==d.g?(c=Ic,a==c.Ca?d.return():D(d,Yj(b,a,function(){b.i.currentTime-=.001;Kj(b,a)}),2)):b.u?D(d,Yj(b,c.Z,function(){var e=c.Z;b.i.currentTime-=.001;Kj(b,e)}),0):d.B(0)})};
373
373
  function gk(a,b,c,d,e,f,g,h,k){var l,m,n;return L(function(r){if(1==r.g){l=Ic;if(b==l.Ca)return f||(a.g.u=c),Ee(a.g,d,e),r.return();m=[];return D(r,hk(a,b,g,h,k),2)}n=r.h;n||(m.push(Yj(a,b,function(){return Zj(a,b)})),a.u&&m.push(Yj(a,l.Z,function(){return Zj(a,l.Z)})));f||(m.push(Yj(a,b,function(){return ak(a,b,c)})),a.u&&m.push(Yj(a,l.Z,function(){return ak(a,l.Z,c)})));m.push(Yj(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;Kj(a,b)}));a.u&&m.push(Yj(a,
374
- l.Z,function(){var p=l.Z;a.h[p].appendWindowStart=0;a.h[p].appendWindowEnd=e;a.h[p].appendWindowStart=d;Kj(a,p)}));return D(r,Promise.all(m),0)})}function ik(a,b,c){var d;return L(function(e){if(1==e.g){d=Ic;if(b==d.Ca)return e.return();b==d.va&&(a.sa=new dg);Yj(a,b,function(){return Zj(a,b)});a.u&&Yj(a,d.Z,function(){return Zj(a,d.Z)});return D(e,Yj(a,b,function(){return ak(a,b,c)}),2)}return a.u?D(e,Yj(a,d.Z,function(){return ak(a,d.Z,c)}),0):e.D(0)})}
374
+ l.Z,function(){var p=l.Z;a.h[p].appendWindowStart=0;a.h[p].appendWindowEnd=e;a.h[p].appendWindowStart=d;Kj(a,p)}));return D(r,Promise.all(m),0)})}function ik(a,b,c){var d;return L(function(e){if(1==e.g){d=Ic;if(b==d.Ca)return e.return();b==d.va&&(a.sa=new dg);Yj(a,b,function(){return Zj(a,b)});a.u&&Yj(a,d.Z,function(){return Zj(a,d.Z)});return D(e,Yj(a,b,function(){return ak(a,b,c)}),2)}return a.u?D(e,Yj(a,d.Z,function(){return ak(a,d.Z,c)}),0):e.B(0)})}
375
375
  q.endOfStream=function(a){var b=this;return L(function(c){return D(c,jk(b,function(){Lj(b)||"closed"===b.l.readyState||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};q.xb=function(a){var b=this;return L(function(c){return D(c,jk(b,function(){if(a<b.l.duration)for(var d in b.h){var e={start:function(){},p:new dg};b.j[d].unshift(e)}b.l.duration=a;b.S=a}),0)})};q.getDuration=function(){return this.l.duration};function ek(a,b,c,d){d<=c?Kj(a,b):a.h[b].remove(c,d)}
376
376
  function Zj(a,b){var c=a.h[b].appendWindowStart,d=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=c;a.h[b].appendWindowEnd=d;Kj(a,b)}function ak(a,b,c){0>c&&(c+=.001);a.h[b].timestampOffset=c;Kj(a,b)}function Kj(a,b){if(!a.G){var c=a.j[b][0];c&&(c.p.resolve(),kk(a,b))}}function Yj(a,b,c){Ag(a.K);c={start:c,p:new dg};a.j[b].push(c);1==a.j[b].length&&lk(a,b);return c.p}
377
377
  function jk(a,b){var c,d,e,f,g,h,k;return L(function(l){switch(l.g){case 1:Ag(a.K);c=[];d={};for(e in a.h)d.rd=new dg,f={start:function(m){return function(){return m.rd.resolve()}}(d),p:d.rd},a.j[e].push(f),c.push(d.rd),1==a.j[e].length&&f.start(),d={rd:d.rd};ra(l,2);return D(l,Promise.all(c),4);case 4:ta(l,3);break;case 2:throw g=ua(l),g;case 3:return ra(l,5,6),D(l,b(),6);case 6:va(l);for(h in a.h)kk(a,h);wa(l,0);break;case 5:throw k=ua(l),new R(2,3,3015,k,a.i.error||"No error in the media element");
378
378
  }})}function kk(a,b){a.j[b].shift();lk(a,b)}function lk(a,b){var c=a.j[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new R(2,3,3017,b)):c.p.reject(new R(2,3,3015,d,a.i.error||"No error in the media element")),kk(a,b)}}function bk(a,b,c,d){var e=a.oa[d];a.A.insertFakeEncryptionInInit&&null==c&&e&&(Vb()||Tb()||cc())&&"mp4"==oe(a.I[d])&&(b=ui(b));return b}
379
379
  function mk(a,b,c,d){return Yj(a,b,function(){b!==Gc&&(jd()&&(a.m[b]&&(a.m[b].destroy(),delete a.m[b]),d&&(a.m[b]=d),a.h[b].changeType(c+a.A.addExtraFeaturesToSourceBuffer(c)),a.I[b]=c),Kj(a,b))})}
380
- function nk(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,t,x,w,B,v,A,z,C,E,H,J,F;return L(function(I){switch(I.g){case 1:c=Ic;a.G=!0;a.u=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.$&&(a.i.autoplay=!1);sa(I,2);a.o.mb();g=[];for(h in a.m)g.push(a.m[h].destroy());for(k in a.j)for(l=a.j[k],m=l[0],a.j[k]=l.slice(0,1),m&&g.push(m.p.catch(Je)),n=u(l.slice(1)),r=n.next();!r.done;r=n.next())p=r.value,p.p.reject(new R(2,7,7003,void 0));for(t in a.h){x=a.h[t];try{a.l.removeSourceBuffer(x)}catch(K){}}return D(I,
381
- Promise.all(g),4);case 4:return a.m={},a.h={},w=a.l.duration,a.M=new dg,a.l=Dj(a,a.M),D(I,a.M,5);case 5:!isNaN(w)&&w?a.l.duration=w:!isNaN(a.S)&&a.S&&(a.l.duration=a.S),B=new dg,v=a.l.sourceBuffers,A=b.size,z=0,C=function(){z++;z===A&&(B.resolve(),a.o.Ya(v,"addsourcebuffer",C))},a.o.s(v,"addsourcebuffer",C),E=u(b.keys()),H=E.next();case 6:if(H.done)return a.i.currentTime=d,D(I,B,2);J=H.value;F=b.get(J);return D(I,Hj(a,J,F,F.codecs),9);case 9:a.u?(a.j[c.Z]=[],a.j[c.va]=[]):a.j[J]=[];H=E.next();I.D(6);
380
+ function nk(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,t,y,x,A,v,B,z,C,E,H,J,F;return L(function(I){switch(I.g){case 1:c=Ic;a.G=!0;a.u=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.$&&(a.i.autoplay=!1);sa(I,2);a.o.mb();g=[];for(h in a.m)g.push(a.m[h].destroy());for(k in a.j)for(l=a.j[k],m=l[0],a.j[k]=l.slice(0,1),m&&g.push(m.p.catch(Je)),n=u(l.slice(1)),r=n.next();!r.done;r=n.next())p=r.value,p.p.reject(new R(2,7,7003,void 0));for(t in a.h){y=a.h[t];try{a.l.removeSourceBuffer(y)}catch(K){}}return D(I,
381
+ Promise.all(g),4);case 4:return a.m={},a.h={},x=a.l.duration,a.M=new dg,a.l=Dj(a,a.M),D(I,a.M,5);case 5:!isNaN(x)&&x?a.l.duration=x:!isNaN(a.S)&&a.S&&(a.l.duration=a.S),A=new dg,v=a.l.sourceBuffers,B=b.size,z=0,C=function(){z++;z===B&&(A.resolve(),a.o.Ya(v,"addsourcebuffer",C))},a.o.s(v,"addsourcebuffer",C),E=u(b.keys()),H=E.next();case 6:if(H.done)return a.i.currentTime=d,D(I,A,2);J=H.value;F=b.get(J);return D(I,Hj(a,J,F,F.codecs),9);case 9:a.u?(a.j[c.Z]=[],a.j[c.va]=[]):a.j[J]=[];H=E.next();I.B(6);
382
382
  break;case 2:va(I),a.G=!1,Ag(a.K),a.o.na(a.i,"canplaythrough",function(){a.K.g||(a.i.autoplay=e,f||a.i.play())}),wa(I,0)}})}function ok(a,b){return jk(a,function(){return nk(a,b)})}
383
- function hk(a,b,c,d,e){var f,g,h,k,l,m,n,r,p,t,x,w,B,v,A;return L(function(z){if(1==z.g){f=Ic;if(b==f.Ca)return z.return(!1);g=ve(xe(a.I[b]));h=we(a.I[b]);l=!1;m=ie(c,d);n=a.A.forceTransmux;if(!hd(m)||!a.F&&je.includes(m))n=!0;n&&(r=ke(c,d),p=ce(r))&&(k=p(),t=Ec(f.Z,(d||"").split(",")),x=Ec(f.va,(d||"").split(",")),t&&x?(l=!0,w=x,b==f.Z&&(w=t),m=k.convertCodecs(b,ke(c,w))):m=k.convertCodecs(b,r));B=ve(xe(m));v=we(m);if(g===B&&h===v)return z.return(!1);A=!0;if(a.u||l&&k&&!a.m[b])A=!1;if(A&&"smooth"===
384
- a.A.codecSwitchingStrategy&&jd())return D(z,mk(a,b,m,k),3);k&&k.destroy();return D(z,ok(a,e),3)}return z.return(!0)})}function pk(a,b,c,d){if(b==Gc)var e=!1;else{e=ve(xe(a.I[b]));var f=we(a.I[b]),g=ie(c,d),h=a.A.forceTransmux;if(!hd(g)||!a.F&&je.includes(g))h=!0;c=ke(c,d);h&&(h=ce(c))&&(h=h(),g=h.convertCodecs(b,c),h.destroy());b=ve(xe(g));g=we(g);e=e!==b||f!==g}return e?"smooth"!==a.A.codecSwitchingStrategy||!jd()||a.u:!1}var Fj=window.URL.createObjectURL,Jj="sequence";function qk(a,b,c){this.i=a;this.u=b;this.m=this.j=Infinity;this.g=1;this.h=this.l=null;this.A=0;this.H=!0;this.I=0;this.G=void 0===c?!0:c;this.J=0;this.o=!1;this.F=null}q=qk.prototype;q.getDuration=function(){return this.j};q.Ti=function(){return this.g};q.Ph=function(a){this.i=a};q.xb=function(a){this.j=a};q.Wi=function(){return this.i};q.Lh=function(a){this.A=a};q.gd=function(a){this.H=a};q.$e=function(a){this.m=a};q.ze=function(){return this.m};q.Dg=function(a){this.u=a};q.Li=function(){return this.u};
385
- q.Eh=function(a,b){if(0!=a.length){var c=a[a.length-1].end+b;this.Me(a[0].start+b);this.g=a.reduce(function(d,e){return Math.max(d,e.end-e.start)},this.g);this.h=Math.max(this.h,c);null!=this.i&&this.G&&!this.o&&(this.i=(Date.now()+this.A)/1E3-this.h-this.g)}};
386
- q.Td=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.A)/1E3;a=u(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.Me(b);this.h=Math.max(this.h,c);null!=this.i&&this.G&&!this.o&&(this.i=d-this.h-this.g)}};q.Ge=function(){this.o=!0};q.uj=function(){return this.o};q.Nh=function(a){this.F=a};q.Oi=function(){return this.F};
387
- q.Me=function(a){this.l=null==this.l?a:Math.min(this.l,a)};q.og=function(a){this.g=Math.max(this.g,a)};q.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};q.U=function(){return Infinity==this.j&&!this.H};q.Ac=function(){return Infinity!=this.j&&!this.H};q.Lb=function(){return Math.max(this.I,this.hc()-this.m)};q.Sh=function(a){this.I=a};
388
- q.hc=function(){return this.U()||this.Ac()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.i)+this.J,this.j):this.h?Math.min(this.h,this.j):this.j};q.Jd=function(a){var b=Math.max(this.l,this.I);return Infinity==this.m?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.hc()-this.m+a,this.Kb()))};q.wc=function(){return this.Jd(0)};q.Kb=function(){return Math.max(0,this.hc()-(this.U()||this.Ac()?this.u:0))};q.Yh=function(){return null==this.i||null!=this.h&&this.G?!1:!0};
389
- q.Kh=function(a){this.J=a};N("shaka.media.PresentationTimeline",qk);qk.prototype.setAvailabilityTimeOffset=qk.prototype.Kh;qk.prototype.usingPresentationStartTime=qk.prototype.Yh;qk.prototype.getSeekRangeEnd=qk.prototype.Kb;qk.prototype.getSeekRangeStart=qk.prototype.wc;qk.prototype.getSafeSeekRangeStart=qk.prototype.Jd;qk.prototype.getSegmentAvailabilityEnd=qk.prototype.hc;qk.prototype.setUserSeekStart=qk.prototype.Sh;qk.prototype.getSegmentAvailabilityStart=qk.prototype.Lb;
390
- qk.prototype.isInProgress=qk.prototype.Ac;qk.prototype.isLive=qk.prototype.U;qk.prototype.offset=qk.prototype.offset;qk.prototype.notifyMaxSegmentDuration=qk.prototype.og;qk.prototype.notifyMinSegmentStartTime=qk.prototype.Me;qk.prototype.getInitialProgramDateTime=qk.prototype.Oi;qk.prototype.setInitialProgramDateTime=qk.prototype.Nh;qk.prototype.isStartTimeLocked=qk.prototype.uj;qk.prototype.lockStartTime=qk.prototype.Ge;qk.prototype.notifySegments=qk.prototype.Td;qk.prototype.notifyTimeRange=qk.prototype.Eh;
391
- qk.prototype.getDelay=qk.prototype.Li;qk.prototype.setDelay=qk.prototype.Dg;qk.prototype.getSegmentAvailabilityDuration=qk.prototype.ze;qk.prototype.setSegmentAvailabilityDuration=qk.prototype.$e;qk.prototype.setStatic=qk.prototype.gd;qk.prototype.setClockOffset=qk.prototype.Lh;qk.prototype.getPresentationStartTime=qk.prototype.Wi;qk.prototype.setDuration=qk.prototype.xb;qk.prototype.setPresentationStartTime=qk.prototype.Ph;qk.prototype.getMaxSegmentDuration=qk.prototype.Ti;
383
+ function hk(a,b,c,d,e){var f,g,h,k,l,m,n,r,p,t,y,x,A,v,B;return L(function(z){if(1==z.g){f=Ic;if(b==f.Ca)return z.return(!1);g=ve(xe(a.I[b]));h=we(a.I[b]);l=!1;m=ie(c,d);n=a.A.forceTransmux;if(!hd(m)||!a.F&&je.includes(m))n=!0;n&&(r=ke(c,d),p=ce(r))&&(k=p(),t=Ec(f.Z,(d||"").split(",")),y=Ec(f.va,(d||"").split(",")),t&&y?(l=!0,x=y,b==f.Z&&(x=t),m=k.convertCodecs(b,ke(c,x))):m=k.convertCodecs(b,r));A=ve(xe(m));v=we(m);if(g===A&&h===v)return z.return(!1);B=!0;if(a.u||l&&k&&!a.m[b])B=!1;if(B&&"smooth"===
384
+ a.A.codecSwitchingStrategy&&jd())return D(z,mk(a,b,m,k),3);k&&k.destroy();return D(z,ok(a,e),3)}return z.return(!0)})}function pk(a,b,c,d){if(b==Gc)var e=!1;else{e=ve(xe(a.I[b]));var f=we(a.I[b]),g=ie(c,d),h=a.A.forceTransmux;if(!hd(g)||!a.F&&je.includes(g))h=!0;c=ke(c,d);h&&(h=ce(c))&&(h=h(),g=h.convertCodecs(b,c),h.destroy());b=ve(xe(g));g=we(g);e=e!==b||f!==g}return e?"smooth"!==a.A.codecSwitchingStrategy||!jd()||a.u:!1}var Fj=window.URL.createObjectURL,Jj="sequence";function qk(a,b,c){this.i=a;this.u=b;this.m=this.j=Infinity;this.g=1;this.h=this.l=null;this.A=0;this.H=!0;this.I=0;this.G=void 0===c?!0:c;this.J=0;this.o=!1;this.F=null}q=qk.prototype;q.getDuration=function(){return this.j};q.Ti=function(){return this.g};q.Rh=function(a){this.i=a};q.xb=function(a){this.j=a};q.Wi=function(){return this.i};q.Nh=function(a){this.A=a};q.gd=function(a){this.H=a};q.$e=function(a){this.m=a};q.ze=function(){return this.m};q.Dg=function(a){this.u=a};q.Li=function(){return this.u};
385
+ q.Gh=function(a,b){if(0!=a.length){var c=a[a.length-1].end+b;this.Me(a[0].start+b);this.g=a.reduce(function(d,e){return Math.max(d,e.end-e.start)},this.g);this.h=Math.max(this.h,c);null!=this.i&&this.G&&!this.o&&(this.i=(Date.now()+this.A)/1E3-this.h-this.g)}};
386
+ q.Td=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.A)/1E3;a=u(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.Me(b);this.h=Math.max(this.h,c);null!=this.i&&this.G&&!this.o&&(this.i=d-this.h-this.g)}};q.Ge=function(){this.o=!0};q.uj=function(){return this.o};q.Ph=function(a){this.F=a};q.Oi=function(){return this.F};
387
+ q.Me=function(a){this.l=null==this.l?a:Math.min(this.l,a)};q.og=function(a){this.g=Math.max(this.g,a)};q.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};q.U=function(){return Infinity==this.j&&!this.H};q.Ac=function(){return Infinity!=this.j&&!this.H};q.Lb=function(){return Math.max(this.I,this.hc()-this.m)};q.Uh=function(a){this.I=a};
388
+ q.hc=function(){return this.U()||this.Ac()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.i)+this.J,this.j):this.h?Math.min(this.h,this.j):this.j};q.Jd=function(a){var b=Math.max(this.l,this.I);return Infinity==this.m?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.hc()-this.m+a,this.Kb()))};q.wc=function(){return this.Jd(0)};q.Kb=function(){return Math.max(0,this.hc()-(this.U()||this.Ac()?this.u:0))};q.$h=function(){return null==this.i||null!=this.h&&this.G?!1:!0};
389
+ q.Mh=function(a){this.J=a};N("shaka.media.PresentationTimeline",qk);qk.prototype.setAvailabilityTimeOffset=qk.prototype.Mh;qk.prototype.usingPresentationStartTime=qk.prototype.$h;qk.prototype.getSeekRangeEnd=qk.prototype.Kb;qk.prototype.getSeekRangeStart=qk.prototype.wc;qk.prototype.getSafeSeekRangeStart=qk.prototype.Jd;qk.prototype.getSegmentAvailabilityEnd=qk.prototype.hc;qk.prototype.setUserSeekStart=qk.prototype.Uh;qk.prototype.getSegmentAvailabilityStart=qk.prototype.Lb;
390
+ qk.prototype.isInProgress=qk.prototype.Ac;qk.prototype.isLive=qk.prototype.U;qk.prototype.offset=qk.prototype.offset;qk.prototype.notifyMaxSegmentDuration=qk.prototype.og;qk.prototype.notifyMinSegmentStartTime=qk.prototype.Me;qk.prototype.getInitialProgramDateTime=qk.prototype.Oi;qk.prototype.setInitialProgramDateTime=qk.prototype.Ph;qk.prototype.isStartTimeLocked=qk.prototype.uj;qk.prototype.lockStartTime=qk.prototype.Ge;qk.prototype.notifySegments=qk.prototype.Td;qk.prototype.notifyTimeRange=qk.prototype.Gh;
391
+ qk.prototype.getDelay=qk.prototype.Li;qk.prototype.setDelay=qk.prototype.Dg;qk.prototype.getSegmentAvailabilityDuration=qk.prototype.ze;qk.prototype.setSegmentAvailabilityDuration=qk.prototype.$e;qk.prototype.setStatic=qk.prototype.gd;qk.prototype.setClockOffset=qk.prototype.Nh;qk.prototype.getPresentationStartTime=qk.prototype.Wi;qk.prototype.setDuration=qk.prototype.xb;qk.prototype.setPresentationStartTime=qk.prototype.Rh;qk.prototype.getMaxSegmentDuration=qk.prototype.Ti;
392
392
  qk.prototype.getDuration=qk.prototype.getDuration;function rk(a,b,c){this.j=c;this.l=a;this.u=sk(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.A=b;this.i=function(){}}rk.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function tk(a,b){a.i=b}function uk(a){this.g=a}function sk(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=u(Hi(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(b<c.start-.1||b>c.end-.5)){b=!0;break a}b=!1}return b};function vk(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.F=b;this.u=c;this.l=new cd;this.j=!1;this.H=a.readyState;this.G=this.i=0;this.h=d;this.o=!1;this.l.s(a,"waiting",function(){return wk(f)});this.m=(new Ob(function(){wk(f)})).ya(this.u.gapJumpTimerTime)}vk.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.F=this.A=null};vk.prototype.rg=function(){this.o=!0;wk(this)};
393
393
  function wk(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.j)return}else a.j=!1;if(!a.g.paused||a.g.currentTime==a.i&&(a.g.autoplay||a.g.currentTime!=a.i)){a.g.readyState!=a.H&&(a.H=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.l,d=sk(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.u!=d)b.m=f,b.g=e,b.u=d,b.h=!1;e=f-b.m;if(d=e>=b.A&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.o++,b.j(new Q("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Ii(c,b,a.u.gapDetectionThreshold),null==
394
394
  d||0==d&&!a.o||(e=c.start(d),e>=a.F.Kb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.G++,a.A(new Q("gapjumped")))))}}};function xk(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=yk.value().get(b),c.na(a,b,d))}var yk=new Mb(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function zk(a,b,c,d){var e=this;this.g=a;this.m=b;this.u=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.o=!1;this.h=new cd;this.i=new Ak(a);xk(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Bk(e,e.j())})}zk.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};function Ck(a){return a.o?a.g.currentTime:a.j()}
395
395
  function Dk(a,b){0<a.g.readyState?Ek(a.i,b):xk(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Bk(a,a.j())})}function Bk(a,b){.001>Math.abs(a.g.currentTime-b)?Fk(a):(a.h.na(a.g,"seeking",function(){Fk(a)}),Ek(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function Fk(a){a.o=!0;a.h.s(a.g,"seeking",function(){return a.m()});a.u(a.g.currentTime)}
396
- function Ak(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new Ob(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Ak.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function Ek(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ya(.1)};function Gk(a){this.g=a;this.j=!1;this.h=null;this.i=new cd}q=Gk.prototype;q.wf=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.na(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;xk(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};q.xf=function(a){this.h=this.j?this.h:a};q.le=function(){return(this.j?this.g.currentTime:this.h)||0};q.Vg=function(){return 0};
397
- q.Ug=function(){return 0};q.Dh=function(){};
396
+ function Ak(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new Ob(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Ak.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function Ek(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ya(.1)};function Gk(a){this.g=a;this.j=!1;this.h=null;this.i=new cd}q=Gk.prototype;q.wf=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.na(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;xk(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};q.xf=function(a){this.h=this.j?this.h:a};q.le=function(){return(this.j?this.g.currentTime:this.h)||0};q.Xg=function(){return 0};
397
+ q.Wg=function(){return 0};q.Fh=function(){};
398
398
  function Hk(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.F=b.minBufferTime||0;this.l=c;this.A=e;this.u=null;this.o=Ik(a,c,f);this.j=new vk(a,b.presentationTimeline,c,this.o,f);this.h=new zk(a,function(){a:{var h=g.j;h.j=!0;h.o=!1;var k=Ck(g.h);h=Jk(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.u||g.u<k-1)){g.u=k;Dk(g.h,h);h=void 0;break a}g.A();h=void 0}return h},function(h){var k=g.j;k.g.seeking&&!k.j&&(k.j=!0,k.i=h)},function(){var h=d;null==h?h=Infinity>g.g.getDuration()?
399
399
  g.g.wc():g.g.Kb():0>h&&(h=g.g.Kb()+h);return Kk(g,Lk(g,h))});this.m=new Ob(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Ck(g.h),k=g.g.wc(),l=g.g.Kb();3>l-k&&(k=l-3);h<k&&(h=Jk(g,h),g.i.currentTime=h)}})}q=Hk.prototype;q.wf=function(){this.m.ya(.25)};q.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.A=function(){}};q.xf=function(a){Dk(this.h,a)};
400
- q.le=function(){var a=Ck(this.h);return 0<this.i.readyState&&!this.i.paused?Lk(this,a):a};q.Vg=function(){return this.o?this.o.o:0};q.Ug=function(){return this.j.G};q.Dh=function(){this.j.rg()};function Kk(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
400
+ q.le=function(){var a=Ck(this.h);return 0<this.i.readyState&&!this.i.paused?Lk(this,a):a};q.Xg=function(){return this.o?this.o.o:0};q.Wg=function(){return this.j.G};q.Fh=function(){this.j.rg()};function Kk(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
401
401
  function Jk(a,b){var c=Math.max(a.F,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.wc(),f=a.g.Kb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Jd(c),k=a.g.Jd(d);c=a.g.Jd(c+d);return b>=g?Kk(a,b):b>f?f:b<e?Fi(a.i.buffered,k)?k:c:b>=h||Fi(a.i.buffered,b)?b:c}function Lk(a,b){var c=a.g.wc();if(b<c)return c;a=a.g.Kb();return b>a?a:b}
402
402
  function Ik(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new rk(new uk(a),b.stallThreshold,c);tk(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Mk(a){this.g=a;this.m=null;this.j=0;this.o=!1}q=Mk.prototype;q.getNumReferences=function(){return this.g.length};q.getNumEvicted=function(){return this.j};q.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};q.Bj=function(){this.o=!0};q.Tc=function(a){for(var b=u(this.g),c=b.next();!c.done;c=b.next())a(c.value)};
403
403
  q.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.j}return this.g.length&&a<this.g[0].startTime?this.j:null};q.get=function(a){if(0==this.g.length)return null;a-=this.j;return 0>a||a>=this.g.length?null:this.g[a]};q.offset=function(a){if(!this.o)for(var b=u(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};
404
- q.Je=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,y(a))}};q.Sd=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Je(a);this.fb(b)};q.fb=function(a){if(!this.o){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.j+=b-this.g.length}};
404
+ q.Je=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,w(a))}};q.Sd=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Je(a);this.fb(b)};q.fb=function(a){if(!this.o){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.j+=b-this.g.length}};
405
405
  q.Sc=function(a,b,c){c=void 0===c?!1:c;if(!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.j++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],b=new Ai(a.startTime,b,a.G,a.Ta,a.za,a.ua,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.A,a.h,a.status,a.aesKey),b.mimeType=a.mimeType,b.codecs=a.codecs,b.j=a.j,this.g[this.g.length-1]=b)}};
406
- q.ef=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new Ob(function(){var d=b();d?c.g.push.apply(c.g,y(d)):(c.m.stop(),c.m=null)}),this.m.ya(a))};Mk.prototype[Symbol.iterator]=function(){return this.Ub(0)};
406
+ q.ef=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new Ob(function(){var d=b();d?c.g.push.apply(c.g,w(d)):(c.m.stop(),c.m=null)}),this.m.ya(a))};Mk.prototype[Symbol.iterator]=function(){return this.Ub(0)};
407
407
  Mk.prototype.Ub=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.find(a);if(null==d)return null;d--;var e=this.get(d+1),f=-1;if(e&&0<e.g.length)for(var g=e.g.length-1;0<=g;--g){var h=e.g[g];if(a>=h.startTime&&a<h.endTime){if(!b){for(;g&&!h.l;)g--,h=e.g[g];if(!h.l)return Ta("No independent partial segment found!"),null}d++;f=g-1;break}}return new Nk(this,d,f,c)};function Ok(a,b,c){a=new Ai(a,a+b,function(){return c},0,null,null,a,a,a+b);return new Mk([a])}
408
408
  N("shaka.media.SegmentIndex",Mk);Mk.forSingleSegment=Ok;Mk.prototype.getIteratorForTime=Mk.prototype.Ub;Mk.prototype.updateEvery=Mk.prototype.ef;Mk.prototype.fit=Mk.prototype.Sc;Mk.prototype.evict=Mk.prototype.fb;Mk.prototype.mergeAndEvict=Mk.prototype.Sd;Mk.prototype.offset=Mk.prototype.offset;Mk.prototype.get=Mk.prototype.get;Mk.prototype.find=Mk.prototype.find;Mk.prototype.markImmutable=Mk.prototype.Bj;Mk.prototype.release=Mk.prototype.release;Mk.prototype.getNumEvicted=Mk.prototype.getNumEvicted;
409
- Mk.prototype.getNumReferences=Mk.prototype.getNumReferences;function Nk(a,b,c,d){this.i=a;this.h=b;this.g=c;this.reverse=d}Nk.prototype.Ze=function(a){this.reverse=a};Nk.prototype.wi=function(){return this.h};Nk.prototype.current=function(){var a=this.i.get(this.h);a&&0<a.g.length&&a.o&&this.g>=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0<a.g.length?a.g[this.g]:a};
410
- Nk.prototype.next=function(){var a=this.i.get(this.h);this.reverse?a&&0<a.g.length?(this.g--,0>this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0<a.g.length?a.g.length-1:0)):(this.h--,this.g=0):a&&0<a.g.length?(this.g++,a.o&&this.g==a.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};N("shaka.media.SegmentIterator",Nk);Nk.prototype.next=Nk.prototype.next;Nk.prototype.current=Nk.prototype.current;Nk.prototype.currentPosition=Nk.prototype.wi;
409
+ Mk.prototype.getNumReferences=Mk.prototype.getNumReferences;function Nk(a,b,c,d){this.i=a;this.h=b;this.g=c;this.reverse=d}Nk.prototype.Ze=function(a){this.reverse=a};Nk.prototype.xi=function(){return this.h};Nk.prototype.current=function(){var a=this.i.get(this.h);a&&0<a.g.length&&a.o&&this.g>=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0<a.g.length?a.g[this.g]:a};
410
+ Nk.prototype.next=function(){var a=this.i.get(this.h);this.reverse?a&&0<a.g.length?(this.g--,0>this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0<a.g.length?a.g.length-1:0)):(this.h--,this.g=0):a&&0<a.g.length?(this.g++,a.o&&this.g==a.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};N("shaka.media.SegmentIterator",Nk);Nk.prototype.next=Nk.prototype.next;Nk.prototype.current=Nk.prototype.current;Nk.prototype.currentPosition=Nk.prototype.xi;
411
411
  Nk.prototype.setReverse=Nk.prototype.Ze;function Pk(){Mk.call(this,[]);this.h=[]}na(Pk,Mk);q=Pk.prototype;q.clone=function(){var a=new Pk;a.h=this.h.slice();return a};q.release=function(){for(var a=u(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};q.Tc=function(a){for(var b=u(this.h),c=b.next();!c.done;c=b.next())c.value.Tc(a)};q.find=function(a){for(var b=0,c=u(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};
412
412
  q.get=function(a){for(var b=0,c=u(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};q.offset=function(){};q.Je=function(){};q.fb=function(){};q.Sd=function(){};q.Sc=function(){};q.ef=function(){};N("shaka.media.MetaSegmentIndex",Pk);Pk.prototype.updateEvery=Pk.prototype.ef;Pk.prototype.fit=Pk.prototype.Sc;Pk.prototype.mergeAndEvict=Pk.prototype.Sd;Pk.prototype.evict=Pk.prototype.fb;Pk.prototype.merge=Pk.prototype.Je;
413
- Pk.prototype.offset=Pk.prototype.offset;Pk.prototype.get=Pk.prototype.get;Pk.prototype.find=Pk.prototype.find;Pk.prototype.forEachTopLevelReference=Pk.prototype.Tc;Pk.prototype.release=Pk.prototype.release;function Qk(a){var b=this;this.g=a;this.j=!1;this.i=this.g.ye();this.h=new Ob(function(){b.g.Ch(.25*b.i)})}Qk.prototype.release=function(){this.set(this.vc());this.h&&(this.h.stop(),this.h=null);this.g=null};Qk.prototype.set=function(a){this.i=a;Rk(this)};Qk.prototype.vc=function(){return this.g.vc()};function Rk(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.ye()!=b&&a.g.Gg(b);return}catch(c){}a.h.ya(.25);0!=a.g.ye()&&a.g.Gg(0)};function Sk(a){var b=this;this.h=a;this.g=new Set;this.i=(new Ob(function(){Tk(b,!1)})).ya(.25)}Sk.prototype.release=function(){this.i.stop();for(var a=u(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Tk(a,b){for(var c=u(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Uk(){this.g=null;this.h=[]}function Vk(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=u(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function Wk(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=u(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Xk(){this.i=this.h=null;this.g=[]}function Yk(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function Zk(){this.me=this.A=this.F=this.I=this.G=this.u=this.j=this.H=this.m=this.i=this.M=this.O=this.J=this.K=this.L=this.l=this.o=NaN;this.g=new Uk;this.h=new Xk};function $k(a,b,c){this.m=a;this.h=b;this.l=0;this.j=c;this.g=new Map;this.i=new Map}function al(a,b){a.j=b;a=u(a.g.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
413
+ Pk.prototype.offset=Pk.prototype.offset;Pk.prototype.get=Pk.prototype.get;Pk.prototype.find=Pk.prototype.find;Pk.prototype.forEachTopLevelReference=Pk.prototype.Tc;Pk.prototype.release=Pk.prototype.release;function Qk(a){var b=this;this.g=a;this.j=!1;this.i=this.g.ye();this.h=new Ob(function(){b.g.Eh(.25*b.i)})}Qk.prototype.release=function(){this.set(this.vc());this.h&&(this.h.stop(),this.h=null);this.g=null};Qk.prototype.set=function(a){this.i=a;Rk(this)};Qk.prototype.vc=function(){return this.g.vc()};function Rk(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.ye()!=b&&a.g.Gg(b);return}catch(c){}a.h.ya(.25);0!=a.g.ye()&&a.g.Gg(0)};function Sk(a){var b=this;this.h=a;this.g=new Set;this.i=(new Ob(function(){Tk(b,!1)})).ya(.25)}Sk.prototype.release=function(){this.i.stop();for(var a=u(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Tk(a,b){for(var c=u(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Uk(){this.g=null;this.h=[]}function Vk(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=u(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function Wk(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=u(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Xk(){this.i=this.h=null;this.g=[]}function Yk(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function Zk(){this.me=this.A=this.F=this.I=this.G=this.u=this.j=this.H=this.m=this.i=this.M=this.O=this.J=this.K=this.L=this.l=this.o=NaN;this.g=new Uk;this.h=new Xk};function $k(a,b,c){this.m=a;this.h=b;this.l=0;this.j=c;this.g=new Map;this.i=new Map}function al(a,b){a.j=b;a=u(a.g.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
414
414
  function bl(a,b,c){c=void 0===c?!1:c;if(a.h.segmentIndex&&(b=a.h.segmentIndex.Ub(Math.max(b,a.l),!0))){var d=b.next().value;c&&(d=b.next().value);if(d){for(;a.g.size<a.m&&null!=d;){c=!0;d.preload&&null!=d.za&&(c=!1);2==d.xc()&&(c=!1);c&&d.ua&&cl(a,d.ua);c&&!a.g.has(d)&&(c=new dl(a.j),el(c,d,a.h),a.g.set(d,c));a.l=d.startTime;if(a.h.fastSwitching&&d.Ud&&d.Fe)break;d=b.next().value}fl(a)}}}
415
415
  function cl(a,b){if(a.h.segmentIndex&&!Array.from(a.i.keys()).some(function(d){return zi(d,b)})){var c=new dl(a.j);el(c,b,a.h);a.i.set(b,c)}}function gl(a,b){b=u(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&hl(a,c)}function il(a){gl(a,a.g);gl(a,a.i);a.l=0}$k.prototype.fb=function(a,b){b=void 0===b?!1:b;for(var c=u(this.g.keys()),d=c.next();!d.done;d=c.next())d=d.value,a>d.endTime&&hl(this,d);b&&fl(this)};
416
416
  function fl(a){for(var b=Array.from(a.g.keys()),c={},d=u(a.i.keys()),e=d.next();!e.done;c={ee:c.ee},e=d.next())c.ee=e.value,b.some(function(f){return function(g){return zi(g.ua,f.ee)}}(c))||hl(a,c.ee)}function jl(a,b){a.m=b;for(var c=Array.from(a.g.keys());c.length>b;){var d=c.pop();d&&hl(a,d)}fl(a)}function kl(a,b){b&&b!==a.h&&(il(a),a.h=b)}function hl(a,b){var c=a.g;b instanceof yi&&(c=a.i);a=c.get(b);c.delete(b);a&&a.abort()}function dl(a){this.g=a;this.Qe=this.Jg=null}
417
- function el(a,b,c){var d=new Uint8Array(0);a.Qe=a.g(b,c,function(e){return L(function(f){if(1==f.g)return 0<d.byteLength?d=zc(d,e):d=e,a.Jg?D(f,a.Jg(d),3):f.D(0);d=new Uint8Array(0);G(f)})})}dl.prototype.abort=function(){this.Qe&&this.Qe.abort()};function ll(a){bb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Ob(function(){for(var c=b.i(),d=u(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new Q("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ya(2)}na(ll,bb);ll.prototype.release=function(){this.g.clear();this.h.stop();bb.prototype.release.call(this)};function ml(a){bb.call(this);this.g=new Map;this.h=a}na(ml,bb);ml.prototype.release=function(){this.g.clear();bb.prototype.release.call(this)};function nl(a,b){var c=a.g.get(b);c||(c={Vd:[],fh:null,contentType:b},a.g.set(b,c));return c}function ol(a,b,c){var d=nl(a,b.contentType);pl(a,d);a={ng:b,position:c};d=d.Vd;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
418
- ml.prototype.j=function(a){for(var b=u(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Vd;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.ng;break a}}d=null}if(e=d)e=c.fh,e=!(e===d||e&&d&&e.bandwidth==d.bandwidth&&e.audioSamplingRate==d.audioSamplingRate&&e.codecs==d.codecs&&e.contentType==d.contentType&&e.frameRate==d.frameRate&&e.height==d.height&&e.mimeType==d.mimeType&&e.channelsCount==d.channelsCount&&e.pixelAspectRatio==d.pixelAspectRatio&&e.width==d.width);
419
- if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.fh=d,JSON.stringify(d),c=new Q("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function pl(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Vd;b.Vd=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.Vd=[]};function ql(a,b,c,d,e){a=rg(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function rl(a,b){var c=this;this.g=b;this.m=a;this.h=null;this.F=1;this.u=this.j=null;this.J=0;this.H=!1;this.i=new Map;this.G=!1;this.K=null;this.A=!1;this.l=new zg(function(){return sl(c)});this.L=Date.now()/1E3;this.o=new Map;this.I={projection:null,hfov:null}}q=rl.prototype;q.destroy=function(){return this.l.destroy()};
417
+ function el(a,b,c){var d=new Uint8Array(0);a.Qe=a.g(b,c,function(e){return L(function(f){if(1==f.g)return 0<d.byteLength?d=zc(d,e):d=e,a.Jg?D(f,a.Jg(d),3):f.B(0);d=new Uint8Array(0);G(f)})})}dl.prototype.abort=function(){this.Qe&&this.Qe.abort()};function ll(a){bb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Ob(function(){for(var c=b.i(),d=u(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new Q("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ya(2)}na(ll,bb);ll.prototype.release=function(){this.g.clear();this.h.stop();bb.prototype.release.call(this)};function ml(a){bb.call(this);this.g=new Map;this.h=a}na(ml,bb);ml.prototype.release=function(){this.g.clear();bb.prototype.release.call(this)};function nl(a,b){var c=a.g.get(b);c||(c={Vd:[],hh:null,contentType:b},a.g.set(b,c));return c}function ol(a,b,c){var d=nl(a,b.contentType);pl(a,d);a={ng:b,position:c};d=d.Vd;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
418
+ ml.prototype.j=function(a){for(var b=u(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Vd;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.ng;break a}}d=null}if(e=d)e=c.hh,e=!(e===d||e&&d&&e.bandwidth==d.bandwidth&&e.audioSamplingRate==d.audioSamplingRate&&e.codecs==d.codecs&&e.contentType==d.contentType&&e.frameRate==d.frameRate&&e.height==d.height&&e.mimeType==d.mimeType&&e.channelsCount==d.channelsCount&&e.pixelAspectRatio==d.pixelAspectRatio&&e.width==d.width);
419
+ if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.hh=d,JSON.stringify(d),c=new Q("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function pl(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Vd;b.Vd=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.Vd=[]};function ql(a,b,c,d,e){a=rg(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function rl(a,b){var c=this;this.g=b;this.m=a;this.h=null;this.F=1;this.u=this.j=null;this.J=0;this.H=!1;this.i=new Map;this.G=!1;this.K=null;this.A=!1;this.l=new zg(function(){return sl(c)});this.L=Date.now()/1E3;this.o=new Map;this.I={projection:null,hfov:null}}q=rl.prototype;q.destroy=function(){return this.l.destroy()};
420
420
  function sl(a){var b,c,d,e,f,g,h;return L(function(k){if(1==k.g){b=[];c=u(a.i.values());for(d=c.next();!d.done;d=c.next())e=d.value,tl(e),b.push(ul(e));f=u(a.o.values());for(g=f.next();!g.done;g=f.next())h=g.value,il(h);return D(k,Promise.all(b),2)}a.i.clear();a.o.clear();a.g=null;a.m=null;a.h=null;G(k)})}
421
421
  q.configure=function(a){this.h=a;this.K=new ag({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0);if(a.disableAudioPrefetch){var b=this.i.get("audio");b&&b.ha&&(il(b.ha),b.ha=null);b=u(this.o.keys());for(var c=b.next();!c.done;c=b.next())c=c.value,il(this.o.get(c)),this.o.delete(c)}a.disableTextPrefetch&&(b=this.i.get(Gc))&&
422
422
  b.ha&&(il(b.ha),b.ha=null);a.disableVideoPrefetch&&(b=this.i.get("video"))&&b.ha&&(il(b.ha),b.ha=null);b=u(this.i.keys());for(c=b.next();!c.done;c=b.next())c=this.i.get(c.value),c.ha?(jl(c.ha,a.segmentPrefetchLimit),0<a.segmentPrefetchLimit||(c.ha=null)):0<a.segmentPrefetchLimit&&(c.ha=vl(this,c.stream));a.disableAudioPrefetch||wl(this)};q.start=function(a){var b=this;return L(function(c){if(1==c.g)return D(c,xl(b,a||new Map),2);Ag(b.l);b.G=!0;G(c)})};
423
423
  function yl(a,b){var c,d,e,f,g,h,k;L(function(l){switch(l.g){case 1:return c=Ic,a.J++,d=a.J,ra(l,2),D(l,fk(a.g.ea,c.Ca),4);case 4:ta(l,3);break;case 2:if(e=ua(l),a.g)a.g.onError(e);case 3:f=ie(b.mimeType,b.codecs),Ij(a.g.ea,f,a.m.sequenceMode,b.external),g=a.g.ea.H,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.J==d&&(k=zl(a,b),a.i.set(c.Ca,k),Al(a,k,0)),G(l)}})}function Bl(a){var b=a.i.get(Gc);b&&(tl(b),ul(b).catch(function(){}),a.i.delete(Gc));a.u=null}
424
424
  function Cl(a,b){var c=0>a.g.Ra(),d=a.i.get("video");d&&d.ia&&d.ia.Ze(c);(d=a.i.get("audio"))&&d.ia&&d.ia.Ze(c);(d=a.i.get(Gc))&&d.ia&&d.ia.Ze(c);if(c=a.i.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.Gc&&(Dl(a,b,!1,0,!1),c.Gc=d);else if(b=c.Gc)c.Gc=null,Dl(a,b,!0,0,!1)}function El(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.j=b;a.G&&(b.video&&Dl(a,b.video,c,d,e,f),b.audio&&Dl(a,b.audio,c,d,e,f))}
425
- function Fl(a,b){L(function(c){if(1==c.g)return a.u=b,a.G?b.segmentIndex?c.D(2):D(c,b.createSegmentIndex(),2):c.return();Dl(a,b,!0,0,!1);G(c)})}
426
- function Dl(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Gc?g&&(g.Gc&&(b.trickModeVideo?(g.Gc=b,b=b.trickModeVideo):g.Gc=null),g.stream!=b||e)&&(a.o.has(b)?g.ha=a.o.get(b):g.ha&&kl(g.ha,b),b.type==Gc&&(e=ie(b.mimeType,b.codecs),Ij(a.g.ea,e,a.m.sequenceMode,b.external)),a.o.has(g.stream)||g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.ia=null,g.Wg=!!f,c&&(g.Cd?g.hf=!0:g.kb?(g.mc=!0,g.re=d,g.hf=!0):(tl(g),Gl(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),Hl(a,g).catch(function(h){if(a.g)a.g.onError(h)})):
425
+ function Fl(a,b){L(function(c){if(1==c.g)return a.u=b,a.G?b.segmentIndex?c.B(2):D(c,b.createSegmentIndex(),2):c.return();Dl(a,b,!0,0,!1);G(c)})}
426
+ function Dl(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Gc?g&&(g.Gc&&(b.trickModeVideo?(g.Gc=b,b=b.trickModeVideo):g.Gc=null),g.stream!=b||e)&&(a.o.has(b)?g.ha=a.o.get(b):g.ha&&kl(g.ha,b),b.type==Gc&&(e=ie(b.mimeType,b.codecs),Ij(a.g.ea,e,a.m.sequenceMode,b.external)),a.o.has(g.stream)||g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.ia=null,g.Yg=!!f,c&&(g.Cd?g.hf=!0:g.kb?(g.mc=!0,g.re=d,g.hf=!0):(tl(g),Gl(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),Hl(a,g).catch(function(h){if(a.g)a.g.onError(h)})):
427
427
  yl(a,b)}
428
- function Hl(a,b){var c,d;return L(function(e){if(1==e.g){if(!b.wb)return e.return();c=b.stream;d=b.wb;return c.segmentIndex?e.D(2):D(e,c.createSegmentIndex(),2)}if(b.wb!=d||b.stream!=c)return e.return();var f=a.g.xe();var g=Oj(a.g.ea,b.type),h=b.stream.segmentIndex.find(b.ib?b.ib.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.za?k.za-k.Ta:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.ua)&&(h+=(k.za?k.za-k.Ta:null)||0),k=a.g.getBandwidthEstimate(),f=
428
+ function Hl(a,b){var c,d;return L(function(e){if(1==e.g){if(!b.wb)return e.return();c=b.stream;d=b.wb;return c.segmentIndex?e.B(2):D(e,c.createSegmentIndex(),2)}if(b.wb!=d||b.stream!=c)return e.return();var f=a.g.xe();var g=Oj(a.g.ea,b.type),h=b.stream.segmentIndex.find(b.ib?b.ib.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.za?k.za-k.Ta:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.ua)&&(h+=(k.za?k.za-k.Ta:null)||0),k=a.g.getBandwidthEstimate(),f=
429
429
  8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal)||b.wb.h.g>h?!0:!1):f=!1;f&&b.wb.abort();G(e)})}
430
- q.Wd=function(){if(this.g)for(var a=this.g.xe(),b=u(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);var e=null;c.ia&&(e=c.ia.current());if(!e||e.startTime>a||e.endTime<a)c.ia=null;e=this.g.ea;e.G?e=!1:d==Gc?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Nj(e,d),e=Fi(e,a));e||((null!=Oj(this.g.ea,d)||c.kb)&&Il(this,c),c.wb&&(c.wb.abort(),c.wb=null),d===Gc&&(d=this.g.ea,d.J&&d.J.h()),c.Wd=!0)}};
430
+ q.Wd=function(){if(this.g)for(var a=this.g.xe(),b=u(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);var e=null;c.ia&&(e=c.ia.current());if(!e||e.startTime>a||e.endTime<a)c.ia=null;e=this.g.ea;e.G?e=!1:d==Gc?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Nj(e,d),e=Fi(e,a));e||((null!=Oj(this.g.ea,d)||c.kb)&&Il(this,c),c.wb&&(c.wb.abort(),c.wb=null),d===Gc&&(d=this.g.ea,d.J&&d.J.g()),c.Wd=!0)}};
431
431
  function Il(a,b){b.Cd||b.mc||(b.kb?(b.mc=!0,b.re=0):null==Mj(a.g.ea,b.type)?null==b.Qb&&Al(a,b,0):(tl(b),Gl(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
432
432
  function xl(a,b){var c,d,e,f,g,h,k,l,m,n;return L(function(r){if(1==r.g){c=Ic;if(!a.j)throw new R(2,5,5006);d=new Map;e=new Set;a.j.audio&&(d.set(c.Z,a.j.audio),e.add(a.j.audio));a.j.video&&(d.set(c.va,a.j.video),e.add(a.j.video));a.u&&(d.set(c.Ca,a.u),e.add(a.u));f=a.g.ea;return D(r,f.init(d,a.m.sequenceMode,a.m.type,a.m.ignoreManifestTimestampsInSegmentsMode),2)}Ag(a.l);a.updateDuration();g=u(d.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=d.get(k),a.i.has(k)||(m=zl(a,l),b.has(l.id)&&(n=
433
- b.get(l.id),al(n,function(p,t,x){return Jl(p,t,x||null,a.h.retryParameters,a.g.Zb)}),m.ha=n),a.i.set(k,m),Al(a,m,0));G(r)})}function zl(a,b){return{stream:b,type:b.type,ia:null,ha:vl(a,b),ib:null,Cc:null,kg:null,ig:null,hg:null,Gc:null,endOfStream:!1,kb:!1,Qb:null,mc:!1,re:0,hf:!1,Cd:!1,Wd:!0,wg:!1,Md:!1,wb:null}}
433
+ b.get(l.id),al(n,function(p,t,y){return Jl(p,t,y||null,a.h.retryParameters,a.g.Zb)}),m.ha=n),a.i.set(k,m),Al(a,m,0));G(r)})}function zl(a,b){return{stream:b,type:b.type,ia:null,ha:vl(a,b),ib:null,Cc:null,kg:null,ig:null,hg:null,Gc:null,endOfStream:!1,kb:!1,Qb:null,mc:!1,re:0,hf:!1,Cd:!1,Wd:!0,wg:!1,Md:!1,wb:null}}
434
434
  function vl(a,b){if("video"===b.type&&a.h.disableVideoPrefetch||"audio"===b.type&&a.h.disableAudioPrefetch||b.type===Gc&&("application/cea-608"==b.mimeType||"application/cea-708"==b.mimeType)||b.type===Gc&&a.h.disableTextPrefetch)return null;if(a.o.has(b))return a.o.get(b);var c=a.i.get(b.type);return(c=c&&c.ha)&&b===c.h?c:0<a.h.segmentPrefetchLimit?new $k(a.h.segmentPrefetchLimit,b,function(d,e,f){return Jl(d,e,f||null,a.h.retryParameters,a.g.Zb)}):null}
435
435
  function wl(a){for(var b=a.h.segmentPrefetchLimit,c=a.h.prefetchAudioLanguages,d={},e=u(a.m.variants),f=e.next();!f.done;d={bb:d.bb},f=e.next())if(d.bb=f.value,d.bb.audio)if(a.o.has(d.bb.audio)){if(f=a.o.get(d.bb.audio),jl(f,b),!(0<b&&c.some(function(h){return function(k){return Kc(h.bb.audio.language,k)}}(d)))){var g=a.i.get(d.bb.audio.type);f!==(g&&g.ha)&&il(f);a.o.delete(d.bb.audio)}}else 0>=b||!c.some(function(h){return function(k){return Kc(h.bb.audio.language,k)}}(d))||!(f=vl(a,d.bb.audio))||
436
436
  (d.bb.audio.segmentIndex||d.bb.audio.createSegmentIndex(),a.o.set(d.bb.audio,f))}q.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.ea.xb(a):this.g.ea.xb(this.h.infiniteLiveStreamDuration?Infinity:Math.pow(2,32))};
437
- function Kl(a,b){var c,d,e,f,g;return L(function(h){switch(h.g){case 1:Ag(a.l);if(b.kb||null==b.Qb||b.Cd)return h.return();b.Qb=null;if(!b.mc){h.D(2);break}return D(h,Gl(a,b,b.hf,b.re),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.D(4);break}c=b.stream;return D(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.kb||b.Qb||Al(a,b,0),h.return();case 4:ra(h,6);d=Ll(a,b);null!=d&&(Al(a,b,d),b.Md=!1);ta(h,7);break;case 6:return e=
438
- ua(h),D(h,Ml(a,b,e),8);case 8:return h.return();case 7:f=Array.from(a.i.values());if(!a.G||!f.every(function(k){return k.endOfStream})){h.D(0);break}return D(h,a.g.ea.endOfStream(),10);case 10:Ag(a.l),g=a.g.ea.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.xb(g),G(h)}})}
437
+ function Kl(a,b){var c,d,e,f,g;return L(function(h){switch(h.g){case 1:Ag(a.l);if(b.kb||null==b.Qb||b.Cd)return h.return();b.Qb=null;if(!b.mc){h.B(2);break}return D(h,Gl(a,b,b.hf,b.re),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.B(4);break}c=b.stream;return D(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.kb||b.Qb||Al(a,b,0),h.return();case 4:ra(h,6);d=Ll(a,b);null!=d&&(Al(a,b,d),b.Md=!1);ta(h,7);break;case 6:return e=
438
+ ua(h),D(h,Ml(a,b,e),8);case 8:return h.return();case 7:f=Array.from(a.i.values());if(!a.G||!f.every(function(k){return k.endOfStream})){h.B(0);break}return D(h,a.g.ea.endOfStream(),10);case 10:Ag(a.l),g=a.g.ea.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.xb(g),G(h)}})}
439
439
  function Ll(a,b){if(Nl(b))return ck(a.g.ea,b.stream.originalId||""),null;b.type==Gc&&dk(a.g.ea);if(!a.g.ea.aa&&b.type!=Gc)return a.h.updateIntervalSeconds/2;var c=a.g.xe();if("audio"===b.type)for(var d=u(a.o.keys()),e=d.next();!e.done;e=d.next())e=a.o.get(e.value),e.fb(c,!0),bl(e,c);d=b.ib?b.ib.endTime:c;e=Vj(a.g.ea,b.type,c);var f=Math.max(1,Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.F),g=a.m.presentationTimeline.getDuration()-d,h=Oj(a.g.ea,b.type);if(1E-6>g&&h)return b.endOfStream=
440
440
  !0,"video"==b.type&&(a=a.i.get(Gc))&&Nl(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.h.updateIntervalSeconds/2;e=Ol(a,b,c,h);if(!e)return a.h.updateIntervalSeconds;f=Infinity;g=Array.from(a.i.values());g=u(g);for(h=g.next();!h.done;h=g.next())h=h.value,Nl(h)||h.ia&&!h.ia.current()||(f=Math.min(f,h.ib?h.ib.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.h.updateIntervalSeconds;b.ha&&b.ia&&!a.o.has(b.stream)&&(b.ha.fb(c),bl(b.ha,e.startTime));Pl(a,b,c,e).catch(function(){});
441
441
  return null}function Ol(a,b,c,d){if(b.ia)return b.ia.current();if(b.ib||d)return b.ia=b.stream.segmentIndex.Ub(b.ib?b.ib.endTime:d,!1,0>a.g.Ra()),b.ia&&b.ia.next().value;d=a.h.inaccurateManifestTolerance;var e=Math.max(c-d,0);a=0>a.g.Ra();var f=null;d&&(b.ia=b.stream.segmentIndex.Ub(e,!1,a),f=b.ia&&b.ia.next().value);f||(b.ia=b.stream.segmentIndex.Ub(c,!1,a),f=b.ia&&b.ia.next().value);return f}
442
- function Pl(a,b,c,d){var e,f,g,h,k,l,m,n,r,p,t,x,w,B,v,A;return L(function(z){switch(z.g){case 1:e=Ic;f=b.stream;g=b.ia;b.kb=!0;ra(z,2);if(2==d.xc())throw new R(1,1,1011);return D(z,Ql(a,b,d),4);case 4:Ag(a.l);if(a.A)return z.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.h.lowLatencyMode&&k&&h&&("HLS"!=a.m.type||d.m))return n=new Uint8Array(0),p=r=!1,x=function(C){var E,H,J,F;return L(function(I){switch(I.g){case 1:if(r)return I.return();p=!0;Ag(a.l);if(a.A)return I.return();
443
- ra(I,2);n=Rl(n,C);E=!1;H=0;(new Gg).box("mdat",function(K){H=K.size+K.start;E=!0}).parse(n,!1,!0);if(!E){I.D(4);break}J=n.subarray(0,H);n=n.subarray(H);return D(I,Sl(a,b,c,f,d,J,!0),5);case 5:b.ha&&b.ia&&bl(b.ha,d.startTime,!0);case 4:ta(I,0);break;case 2:t=F=ua(I),G(I)}})},D(z,Tl(a,b,d,x),9);l=Tl(a,b,d);return D(z,l,7);case 7:m=z.h;Ag(a.l);if(a.A)return z.return();Ag(a.l);return b.mc?(b.kb=!1,Al(a,b,0),z.return()):D(z,Sl(a,b,c,f,d,m),6);case 9:w=z.h;if(t)throw t;if(p){z.D(10);break}r=!0;Ag(a.l);
444
- return a.A?z.return():b.mc?(b.kb=!1,Al(a,b,0),z.return()):D(z,Sl(a,b,c,f,d,w),10);case 10:b.ha&&b.ia&&bl(b.ha,d.startTime,!0);case 6:Ag(a.l);if(a.A)return z.return();b.ib=d;g.next();b.kb=!1;b.wg=!1;B=a.g.ea.Ib();v=B[b.type];Ya(JSON.stringify(v));b.mc||a.g.rg(d,b.stream);Al(a,b,0);ta(z,0);break;case 2:A=ua(z);Ag(a.l,A);if(a.A)return z.return();b.kb=!1;if(7001==A.code)b.kb=!1,tl(b),Al(a,b,0),z.D(0);else if(b.type==e.Ca&&a.h.ignoreTextStreamFailures)a.i.delete(e.Ca),z.D(0);else if(3017==A.code)Ul(a,
445
- b,A),z.D(0);else return b.Md=!0,1==A.category&&b.ha&&hl(b.ha,d),A.severity=2,D(z,Ml(a,b,A),0)}})}function Vl(a,b,c){var d,e,f,g,h;return L(function(k){if(1==k.g)return d=b,d.cryptoKey?k.D(2):D(k,d.fetchKey(),3);e=d.iv;if(!e)for(e=Fb(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;"CBC"==b.blockCipherMode?h={name:"AES-CBC",iv:e}:h={name:"AES-CTR",counter:e,length:64};return k.return(window.crypto.subtle.decrypt(h,d.cryptoKey,a))})}
442
+ function Pl(a,b,c,d){var e,f,g,h,k,l,m,n,r,p,t,y,x,A,v,B;return L(function(z){switch(z.g){case 1:e=Ic;f=b.stream;g=b.ia;b.kb=!0;ra(z,2);if(2==d.xc())throw new R(1,1,1011);return D(z,Ql(a,b,d),4);case 4:Ag(a.l);if(a.A)return z.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.h.lowLatencyMode&&k&&h&&("HLS"!=a.m.type||d.m))return n=new Uint8Array(0),p=r=!1,y=function(C){var E,H,J,F;return L(function(I){switch(I.g){case 1:if(r)return I.return();p=!0;Ag(a.l);if(a.A)return I.return();
443
+ ra(I,2);n=Rl(n,C);E=!1;H=0;(new Gg).box("mdat",function(K){H=K.size+K.start;E=!0}).parse(n,!1,!0);if(!E){I.B(4);break}J=n.subarray(0,H);n=n.subarray(H);return D(I,Sl(a,b,c,f,d,J,!0),5);case 5:b.ha&&b.ia&&bl(b.ha,d.startTime,!0);case 4:ta(I,0);break;case 2:t=F=ua(I),G(I)}})},D(z,Tl(a,b,d,y),9);l=Tl(a,b,d);return D(z,l,7);case 7:m=z.h;Ag(a.l);if(a.A)return z.return();Ag(a.l);return b.mc?(b.kb=!1,Al(a,b,0),z.return()):D(z,Sl(a,b,c,f,d,m),6);case 9:x=z.h;if(t)throw t;if(p){z.B(10);break}r=!0;Ag(a.l);
444
+ return a.A?z.return():b.mc?(b.kb=!1,Al(a,b,0),z.return()):D(z,Sl(a,b,c,f,d,x),10);case 10:b.ha&&b.ia&&bl(b.ha,d.startTime,!0);case 6:Ag(a.l);if(a.A)return z.return();b.ib=d;g.next();b.kb=!1;b.wg=!1;A=a.g.ea.Ib();v=A[b.type];Ya(JSON.stringify(v));b.mc||a.g.rg(d,b.stream);Al(a,b,0);ta(z,0);break;case 2:B=ua(z);Ag(a.l,B);if(a.A)return z.return();b.kb=!1;if(7001==B.code)b.kb=!1,tl(b),Al(a,b,0),z.B(0);else if(b.type==e.Ca&&a.h.ignoreTextStreamFailures)a.i.delete(e.Ca),z.B(0);else if(3017==B.code)Ul(a,
445
+ b,B),z.B(0);else return b.Md=!0,1==B.category&&b.ha&&hl(b.ha,d),B.severity=2,D(z,Ml(a,b,B),0)}})}function Vl(a,b,c){var d,e,f,g,h;return L(function(k){if(1==k.g)return d=b,d.cryptoKey?k.B(2):D(k,d.fetchKey(),3);e=d.iv;if(!e)for(e=Fb(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;"CBC"==b.blockCipherMode?h={name:"AES-CBC",iv:e}:h={name:"AES-CTR",counter:e,length:64};return k.return(window.crypto.subtle.decrypt(h,d.cryptoKey,a))})}
446
446
  function Rl(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}function Ul(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.wg})){if(0<a.h.maxDisabledTime&&a.g.se(b.stream,a.h.maxDisabledTime))return;var d=Math.round(100*a.F);if(20<d)a.F-=.2;else if(4<d)a.F-=.04;else{b.Md=!0;a.A=!0;a.g.onError(c);return}b.wg=!0}Al(a,b,4)}
447
- function Ql(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,x;return L(function(w){switch(w.g){case 1:d=Ic;e=[];f=Math.max(0,c.appendWindowStart-.1);g=c.appendWindowEnd+.01;h=ve(b.stream.codecs);k=we(b.stream.mimeType);l=c.timestampOffset;if(l==b.kg&&f==b.ig&&g==b.hg&&h==b.jg&&k==b.wh){w.D(2);break}m=b.jg&&b.wh&&pk(a.g.ea,b.type,k,h);if(!m){w.D(3);break}n=null;b.type===d.va?n=a.i.get(d.Z):b.type===d.Z&&(n=a.i.get(d.va));if(!n){w.D(3);break}return D(w,ul(n).catch(function(){}),5);case 5:n.Cc=null,Il(a,n);case 3:return r=
448
- function(){var B,v,A;return L(function(z){if(1==z.g)return B=new Map,a.j.audio&&B.set(d.Z,a.j.audio),a.j.video&&B.set(d.va,a.j.video),ra(z,2),b.ig=f,b.hg=g,b.jg=h,b.wh=k,b.kg=l,v=a.m.sequenceMode||"HLS"==a.m.type,D(z,gk(a.g.ea,b.type,l,f,g,v,c.mimeType||b.stream.mimeType,c.codecs||b.stream.codecs,B),4);if(2!=z.g)return ta(z,0);A=ua(z);b.ig=null;b.hg=null;b.jg=null;b.kg=null;throw A;})},D(w,r(),2);case 2:return zi(c.ua,b.Cc)||(b.Cc=c.ua,c.l&&c.ua&&(p=Tl(a,b,c.ua),t=function(){var B,v,A,z,C,E,H;return L(function(J){switch(J.g){case 1:return ra(J,
449
- 2),D(J,p,4);case 4:return B=J.h,Ag(a.l),v=null,A=new Map,z={projection:null,hfov:null},C=new Gg,C.box("moov",Lg).box("trak",Lg).box("mdia",Lg).T("mdhd",function(F){v=Si(F.reader,F.version).timescale}).box("hdlr",function(F){F=F.reader;F.skip(8);switch(F.Ec()){case "soun":A.set(d.Z,v);break;case "vide":A.set(d.va,v)}v=null}).box("minf",Lg).box("stbl",Lg).T("stsd",Ng).box("encv",Og).box("avc1",Og).box("avc3",Og).box("hev1",Og).box("hvc1",Og).box("dvav",Og).box("dva1",Og).box("dvh1",Og).box("dvhe",Og).box("vexu",
450
- Lg).box("proj",Lg).T("prji",function(F){F=F.reader.Ec();z.projection=F}).box("hfov",function(F){F=F.reader.R()/1E3;z.hfov=F}).parse(B),Wl(a,z),A.has(b.type)?c.ua.timescale=A.get(b.type):null!=v&&(c.ua.timescale=v),E=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,D(J,a.g.Zg(b.type,B),5);case 5:return D(J,Xj(a.g.ea,b.type,B,null,b.stream,E),6);case 6:ta(J,0);break;case 2:throw H=ua(J),b.Cc=null,H;}})},a.g.Dj(c.startTime,c.ua),e.push(t()))),a.m.sequenceMode&&(x=b.ib?b.ib.j:null,c.j!=x&&e.push(ik(a.g.ea,
451
- b.type,c.startTime))),D(w,Promise.all(e),0)}})}
452
- function Sl(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h,k,l,m,n,r;return L(function(p){switch(p.g){case 1:h=d.closedCaptions&&0<d.closedCaptions.size;l=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes;m=a.h.parsePrftBox&&!a.H;if(l||m)k=new Gg;l&&k.T("emsg",function(t){var x=d.emsgSchemeIdUris;if(0===t.version){var w=t.reader.Ec();var B=t.reader.Ec();var v=t.reader.R();var A=t.reader.R();var z=t.reader.R();var C=t.reader.R();var E=e.startTime+A/v}else v=t.reader.R(),E=t.reader.ed()/
453
- v+e.timestampOffset,A=E-e.startTime,z=t.reader.R(),C=t.reader.R(),w=t.reader.Ec(),B=t.reader.Ec();t=t.reader.Pb(t.reader.getLength()-t.reader.Na());if(x&&x.includes(w)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==w?a.g.Ej():(x=(new Map).set("detail",{startTime:E,endTime:E+z/v,schemeIdUri:w,value:B,timescale:v,presentationTimeDelta:A,eventDuration:z,id:C,messageData:t}),x=new Q("emsg",x),x.cancelable=!0,a.g.onEvent(x),x.defaultPrevented||"https://aomedia.org/emsg/ID3"!=w&&"https://developer.apple.com/streaming/emsg-id3"!=
454
- w||(w=Oi(t),w.length&&e&&a.g.Fj([{cueTime:e.startTime,data:t,frames:w,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});m&&k.T("prft",function(t){if(!a.H&&e.ua.timescale){var x=t.reader,w=t.version;x.R();t=x.R();var B=x.R();t=1E3*t+B/Math.pow(2,32)*1E3;0===w?x=x.R():(w=x.R(),x=x.R(),x=w*Math.pow(2,32)+x);t=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+t)).getTime();x=(new Map).set("detail",{wallClockTime:t,programStartDate:new Date(t-x/e.ua.timescale*1E3)});x=new Q("prft",x);a.g.onEvent(x);
455
- a.H=!0}});(l||m)&&k.parse(f);return D(p,Xl(a,b,c),2);case 2:return Ag(a.l),n=b.Wd,b.Wd=!1,r=b.Wg,b.Wg=!1,D(p,a.g.Zg(b.type,f),3);case 3:return D(p,Xj(a.g.ea,b.type,f,e,d,h,n,r,g),4);case 4:Ag(a.l),G(p)}})}function Xl(a,b,c){var d,e,f,g;return L(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.m.presentationTimeline.g);e=Mj(a.g.ea,b.type);if(null==e)return h.return();f=c-e;g=f-d;return g<=a.h.evictionGoal?h.return():D(h,a.g.ea.remove(b.type,e,e+g),2)}Ag(a.l);G(h)})}
447
+ function Ql(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,y;return L(function(x){switch(x.g){case 1:d=Ic;e=[];f=Math.max(0,c.appendWindowStart-.1);g=c.appendWindowEnd+.01;h=ve(b.stream.codecs);k=we(b.stream.mimeType);l=c.timestampOffset;if(l==b.kg&&f==b.ig&&g==b.hg&&h==b.jg&&k==b.yh){x.B(2);break}m=b.jg&&b.yh&&pk(a.g.ea,b.type,k,h);if(!m){x.B(3);break}n=null;b.type===d.va?n=a.i.get(d.Z):b.type===d.Z&&(n=a.i.get(d.va));if(!n){x.B(3);break}return D(x,ul(n).catch(function(){}),5);case 5:n.Cc=null,Il(a,n);case 3:return r=
448
+ function(){var A,v,B;return L(function(z){if(1==z.g)return A=new Map,a.j.audio&&A.set(d.Z,a.j.audio),a.j.video&&A.set(d.va,a.j.video),ra(z,2),b.ig=f,b.hg=g,b.jg=h,b.yh=k,b.kg=l,v=a.m.sequenceMode||"HLS"==a.m.type,D(z,gk(a.g.ea,b.type,l,f,g,v,c.mimeType||b.stream.mimeType,c.codecs||b.stream.codecs,A),4);if(2!=z.g)return ta(z,0);B=ua(z);b.ig=null;b.hg=null;b.jg=null;b.kg=null;throw B;})},D(x,r(),2);case 2:return zi(c.ua,b.Cc)||(b.Cc=c.ua,c.l&&c.ua&&(p=Tl(a,b,c.ua),t=function(){var A,v,B,z,C,E,H;return L(function(J){switch(J.g){case 1:return ra(J,
449
+ 2),D(J,p,4);case 4:return A=J.h,Ag(a.l),v=null,B=new Map,z={projection:null,hfov:null},C=new Gg,C.box("moov",Lg).box("trak",Lg).box("mdia",Lg).T("mdhd",function(F){v=Si(F.reader,F.version).timescale}).box("hdlr",function(F){F=F.reader;F.skip(8);switch(F.Ec()){case "soun":B.set(d.Z,v);break;case "vide":B.set(d.va,v)}v=null}).box("minf",Lg).box("stbl",Lg).T("stsd",Ng).box("encv",Og).box("avc1",Og).box("avc3",Og).box("hev1",Og).box("hvc1",Og).box("dvav",Og).box("dva1",Og).box("dvh1",Og).box("dvhe",Og).box("vexu",
450
+ Lg).box("proj",Lg).T("prji",function(F){F=F.reader.Ec();z.projection=F}).box("hfov",function(F){F=F.reader.R()/1E3;z.hfov=F}).parse(A),Wl(a,z),B.has(b.type)?c.ua.timescale=B.get(b.type):null!=v&&(c.ua.timescale=v),E=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,D(J,a.g.ah(b.type,A),5);case 5:return D(J,Xj(a.g.ea,b.type,A,null,b.stream,E),6);case 6:ta(J,0);break;case 2:throw H=ua(J),b.Cc=null,H;}})},a.g.Dj(c.startTime,c.ua),e.push(t()))),a.m.sequenceMode&&(y=b.ib?b.ib.j:null,c.j!=y&&e.push(ik(a.g.ea,
451
+ b.type,c.startTime))),D(x,Promise.all(e),0)}})}
452
+ function Sl(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h,k,l,m,n,r;return L(function(p){switch(p.g){case 1:h=d.closedCaptions&&0<d.closedCaptions.size;l=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes;m=a.h.parsePrftBox&&!a.H;if(l||m)k=new Gg;l&&k.T("emsg",function(t){var y=d.emsgSchemeIdUris;if(0===t.version){var x=t.reader.Ec();var A=t.reader.Ec();var v=t.reader.R();var B=t.reader.R();var z=t.reader.R();var C=t.reader.R();var E=e.startTime+B/v}else v=t.reader.R(),E=t.reader.ed()/
453
+ v+e.timestampOffset,B=E-e.startTime,z=t.reader.R(),C=t.reader.R(),x=t.reader.Ec(),A=t.reader.Ec();t=t.reader.Pb(t.reader.getLength()-t.reader.Na());if(y&&y.includes(x)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==x?a.g.Ej():(y=(new Map).set("detail",{startTime:E,endTime:E+z/v,schemeIdUri:x,value:A,timescale:v,presentationTimeDelta:B,eventDuration:z,id:C,messageData:t}),y=new Q("emsg",y),y.cancelable=!0,a.g.onEvent(y),y.defaultPrevented||"https://aomedia.org/emsg/ID3"!=x&&"https://developer.apple.com/streaming/emsg-id3"!=
454
+ x||(x=Oi(t),x.length&&e&&a.g.Fj([{cueTime:e.startTime,data:t,frames:x,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});m&&k.T("prft",function(t){if(!a.H&&e.ua.timescale){var y=t.reader,x=t.version;y.R();t=y.R();var A=y.R();t=1E3*t+A/Math.pow(2,32)*1E3;0===x?y=y.R():(x=y.R(),y=y.R(),y=x*Math.pow(2,32)+y);t=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+t)).getTime();y=(new Map).set("detail",{wallClockTime:t,programStartDate:new Date(t-y/e.ua.timescale*1E3)});y=new Q("prft",y);a.g.onEvent(y);
455
+ a.H=!0}});(l||m)&&k.parse(f);return D(p,Xl(a,b,c),2);case 2:return Ag(a.l),n=b.Wd,b.Wd=!1,r=b.Yg,b.Yg=!1,D(p,a.g.ah(b.type,f),3);case 3:return D(p,Xj(a.g.ea,b.type,f,e,d,h,n,r,g),4);case 4:Ag(a.l),G(p)}})}function Xl(a,b,c){var d,e,f,g;return L(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.m.presentationTimeline.g);e=Mj(a.g.ea,b.type);if(null==e)return h.return();f=c-e;g=f-d;return g<=a.h.evictionGoal?h.return():D(h,a.g.ea.remove(b.type,e,e+g),2)}Ag(a.l);G(h)})}
456
456
  function Nl(a){return a&&a.type==Gc&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
457
- function Tl(a,b,c,d){var e,f,g,h,k;return L(function(l){switch(l.g){case 1:if(e=c.Kd())return l.return(e);f=null;if(b.ha){var m=b.ha,n=m.g;c instanceof yi&&(n=m.i);n.has(c)?(m=n.get(c),d&&(m.Jg=d),f=m.Qe):f=null}f||(f=Jl(c,b.stream,d||null,a.h.retryParameters,a.g.Zb));g=0;b.ia&&(g=b.ia.h);b.wb=f;return D(l,f.promise,2);case 2:h=l.h;b.wb=null;k=h.data;if(!c.aesKey){l.D(3);break}return D(l,Vl(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
457
+ function Tl(a,b,c,d){var e,f,g,h,k;return L(function(l){switch(l.g){case 1:if(e=c.Kd())return l.return(e);f=null;if(b.ha){var m=b.ha,n=m.g;c instanceof yi&&(n=m.i);n.has(c)?(m=n.get(c),d&&(m.Jg=d),f=m.Qe):f=null}f||(f=Jl(c,b.stream,d||null,a.h.retryParameters,a.g.Zb));g=0;b.ia&&(g=b.ia.h);b.wb=f;return D(l,f.promise,2);case 2:h=l.h;b.wb=null;k=h.data;if(!c.aesKey){l.B(3);break}return D(l,Vl(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
458
458
  function Jl(a,b,c,d,e){var f=a instanceof Ai?a:void 0,g=f?1:0;a=ql(a.ka(),a.Ta,a.za,d,c);a.contentType=b.type;return e.request(xg,a,{type:g,stream:b,segment:f})}
459
- function Gl(a,b,c,d){var e,f;return L(function(g){if(1==g.g)return b.mc=!1,b.hf=!1,b.re=0,b.Cd=!0,b.ib=null,b.Cc=null,b.ia=null,b.ha&&!a.o.has(b.stream)&&il(b.ha),d?(e=a.g.xe(),f=a.g.ea.getDuration(),D(g,a.g.ea.remove(b.type,e+d,f),3)):D(g,fk(a.g.ea,b.type),4);if(3!=g.g)return Ag(a.l),c?D(g,a.g.ea.flush(b.type),3):g.D(3);Ag(a.l);b.Cd=!1;b.endOfStream=!1;b.kb||b.Qb||Al(a,b,0);G(g)})}
460
- function Al(a,b,c){var d=b.type;if(d!=Gc||a.i.has(d))b.Qb=(new Nb(function(){var e;return L(function(f){if(1==f.g)return ra(f,2),D(f,Kl(a,b),4);if(2!=f.g)return ta(f,0);e=ua(f);if(a.g)a.g.onError(e);G(f)})})).V(c)}function tl(a){null!=a.Qb&&(a.Qb.stop(),a.Qb=null)}function ul(a){return L(function(b){return a.wb?D(b,a.wb.abort(),0):b.D(0)})}
459
+ function Gl(a,b,c,d){var e,f;return L(function(g){if(1==g.g)return b.mc=!1,b.hf=!1,b.re=0,b.Cd=!0,b.ib=null,b.Cc=null,b.ia=null,b.ha&&!a.o.has(b.stream)&&il(b.ha),d?(e=a.g.xe(),f=a.g.ea.getDuration(),D(g,a.g.ea.remove(b.type,e+d,f),3)):D(g,fk(a.g.ea,b.type),4);if(3!=g.g)return Ag(a.l),c?D(g,a.g.ea.flush(b.type),3):g.B(3);Ag(a.l);b.Cd=!1;b.endOfStream=!1;b.kb||b.Qb||Al(a,b,0);G(g)})}
460
+ function Al(a,b,c){var d=b.type;if(d!=Gc||a.i.has(d))b.Qb=(new Nb(function(){var e;return L(function(f){if(1==f.g)return ra(f,2),D(f,Kl(a,b),4);if(2!=f.g)return ta(f,0);e=ua(f);if(a.g)a.g.onError(e);G(f)})})).V(c)}function tl(a){null!=a.Qb&&(a.Qb.stop(),a.Qb=null)}function ul(a){return L(function(b){return a.wb?D(b,a.wb.abort(),0):b.B(0)})}
461
461
  function Ml(a,b,c){var d;return L(function(e){if(1==e.g)return D(e,cg(a.K),2);Ag(a.l);d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;1===c.category&&0<d&&(c.handled=a.g.se(b.stream,d),c.handled&&(c.severity=1));a.g.onError(c);c.handled||a.h.failureCallback(c);G(e)})}
462
462
  function Yl(a){var b,c,d,e,f,g;return L(function(h){if(1==h.g){b=Date.now()/1E3;c=a.h.minTimeBetweenRecoveries;if(!a.h.allowMediaSourceRecoveries||b-a.L<c)return h.return(!1);a.L=b;d=Ic;if(e=a.i.get(d.Z))e.Cc=null,Il(a,e),ul(e).catch(function(){});if(f=a.i.get(d.va))f.Cc=null,Il(a,f),ul(f).catch(function(){});g=new Map;a.j.audio&&g.set(d.Z,a.j.audio);a.j.video&&g.set(d.va,a.j.video);return D(h,ok(a.g.ea,g),2)}return h.return(!0)})}
463
463
  function Wl(a,b){if(a.I.projection!=b.projection||a.I.hfov!=b.hfov){if(null!=b.projection||null!=b.hfov){var c=(new Map).set("detail",b);c=new Q("spatialvideoinfo",c)}else c=new Q("nospatialvideoinfo");c.cancelable=!0;a.g.onEvent(c);a.I=b}};function Zl(){}
@@ -481,37 +481,37 @@ preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoHdrLevel:"AUTO",
481
481
  textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[]},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1},ads:{customPlayheadTracker:!1,skipPlayDetection:g}};f.trackSelectionCallback=function(k){return L(function(l){return l.return(lm(k,h.preferredAudioLanguage,h.preferredVideoHdrLevel))})};return h}
482
482
  function mm(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return $l(a,b,c||im(),d,"")}
483
483
  function lm(a,b,c){var d=c;"AUTO"==d&&(d=window.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR");var e=a.filter(function(h){return"variant"!=h.type||h.hdr&&h.hdr!=d?!1:!0});c=[];var f=Uc(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return Mc(h.language)==f}));0==c.length&&(c=e.filter(function(h){return h.primary}));0==c.length&&(e.map(function(h){return h.language}),c=e);var g=c.filter(function(h){return h.height&&480>=h.height});g.length&&(g.sort(function(h,k){return k.height-
484
- h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=u(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Gc&&"image"!=c.type||b.push(c);return b}function jm(a){return bm([a],a)}function km(a){return bm([a],a)}N("shaka.util.PlayerConfiguration",hm);hm.mergeConfigObjects=mm;hm.createDefault=im;function nm(a,b,c,d,e){bb.call(this);this.L=a;this.S=b;this.Ua=e.networkingEngine;this.X=d;this.m=null;this.Xb=c;this.Ka=0;this.Vb=e.Rc;this.A=e.yj;this.Wb=e.zj;this.g=e.config;this.j=this.F=this.h=null;this.qa=!1;this.G=e.Jj;this.Fa=!1;this.l=null;this.aa=!1;this.i=this.u=null;this.$=!1;this.K=new Map;this.Ja=!1;this.Za=e.Ij;this.Y=new Zk;this.oa=new dg;this.ma=new dg;this.M=new dg;this.H=new dg;this.H.catch(function(){});this.O=null;this.o=!1;this.Gb=e.oi;this.ra=null;this.$a=e.ni;this.P=!1;this.J=
484
+ h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=u(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Gc&&"image"!=c.type||b.push(c);return b}function jm(a){return bm([a],a)}function km(a){return bm([a],a)}N("shaka.util.PlayerConfiguration",hm);hm.mergeConfigObjects=mm;hm.createDefault=im;function nm(a,b,c,d,e){bb.call(this);this.L=a;this.S=b;this.Ua=e.networkingEngine;this.X=d;this.o=null;this.Xb=c;this.Ka=0;this.Vb=e.Rc;this.A=e.yj;this.Wb=e.zj;this.g=e.config;this.j=this.F=this.h=null;this.qa=!1;this.G=e.Jj;this.Fa=!1;this.l=null;this.aa=!1;this.i=this.u=null;this.$=!1;this.K=new Map;this.Ja=!1;this.Za=e.Ij;this.Y=new Zk;this.oa=new dg;this.ma=new dg;this.M=new dg;this.H=new dg;this.H.catch(function(){});this.O=null;this.m=!1;this.Gb=e.pi;this.ra=null;this.$a=e.oi;this.P=!1;this.J=
485
485
  [];this.I=[]}na(nm,bb);function om(a,b,c){(a=b?a.I:a.J)?a.push(c):c()}function pm(a){if(a.I)for(var b=u(a.I),c=b.next();!c.done;c=b.next())c=c.value,c();a.I=null}function qm(a,b){a.O=b;a.P=!0;if(a.J){b=u(a.J);for(var c=b.next();!c.done;c=b.next())c=c.value,c()}a.J=null}q=nm.prototype;q.getStartTime=function(){return this.X};q.Fd=function(){return this.L};q.Xf=function(){return this.h};function rm(a){a.$=!0;return a.i}function sm(a){a.qa=!0;return a.j}function tm(a){a.Fa=!0;return a.G}q.getStats=function(){return this.Y};
486
486
  function um(a){a.aa=!0;return a.l}function vm(a){a.Ja=!0;return a.K}
487
- q.start=function(){var a=this,b;return L(function(c){switch(c.g){case 1:return D(c,Promise.resolve(),2);case 2:return ra(c,3),D(c,wm(a),5);case 5:if(a.o)return c.return();a.oa.resolve();return D(c,xm(a),6);case 6:if(a.o)return c.return();a.ma.resolve();a.m||(a.m=new Kf(a.g.preferredAudioLanguage,a.g.preferredVariantRole,a.g.preferredAudioChannelCount,a.g.preferredVideoHdrLevel,a.g.preferSpatialAudio,a.g.preferredVideoLayout,a.g.preferredAudioLabel,a.g.preferredVideoLabel,a.g.mediaSource.codecSwitchingStrategy,
488
- a.g.manifest.dash.enableAudioGroups),Oe(a.h,a.g.preferredVideoCodecs,a.g.preferredAudioCodecs,a.g.preferredDecodingAttributes));if(a.$a){var d=a.g.abrFactory;a.u=d;a.i=d();a.i.configure(a.g.abr)}if(a.Gb){d=a.h.presentationTimeline.U();var e=tf(a.h.variants);e=a.m.create(e);a.i.configure(a.g.abr);a.i.setVariants(Array.from(e.values()));if(e=a.i.chooseVariant(!0))a.ra=e,e.video&&ym(a,e.video,d),e.audio&&ym(a,e.audio,d)}return D(c,void 0,7);case 7:if(a.o)return c.return();a.M.resolve();ta(c,0);break;
487
+ q.start=function(){var a=this,b;return L(function(c){switch(c.g){case 1:return D(c,Promise.resolve(),2);case 2:return ra(c,3),D(c,wm(a),5);case 5:if(a.m)return c.return();a.oa.resolve();return D(c,xm(a),6);case 6:if(a.m)return c.return();a.ma.resolve();a.o||(a.o=new Kf(a.g.preferredAudioLanguage,a.g.preferredVariantRole,a.g.preferredAudioChannelCount,a.g.preferredVideoHdrLevel,a.g.preferSpatialAudio,a.g.preferredVideoLayout,a.g.preferredAudioLabel,a.g.preferredVideoLabel,a.g.mediaSource.codecSwitchingStrategy,
488
+ a.g.manifest.dash.enableAudioGroups),Oe(a.h,a.g.preferredVideoCodecs,a.g.preferredAudioCodecs,a.g.preferredDecodingAttributes));if(a.$a){var d=a.g.abrFactory;a.u=d;a.i=d();a.i.configure(a.g.abr)}if(a.Gb){d=a.h.presentationTimeline.U();var e=tf(a.h.variants);e=a.o.create(e);a.i.configure(a.g.abr);a.i.setVariants(Array.from(e.values()));if(e=a.i.chooseVariant(!0))a.ra=e,e.video&&ym(a,e.video,d),e.audio&&ym(a,e.audio,d)}return D(c,void 0,7);case 7:if(a.m)return c.return();a.M.resolve();ta(c,0);break;
489
489
  case 3:throw b=ua(c),a.H.reject(b),b;}})};q.dispatchEvent=function(a){return this.O?this.O.dispatchEvent(a):bb.prototype.dispatchEvent.call(this,a)};q.onError=function(a){2===a.severity&&(this.H.reject(a),this.destroy());var b=(new Map).set("detail",a);b=new Q("error",b);this.dispatchEvent(b);b.defaultPrevented&&(a.handled=!0)};function zm(a,b){a.dispatchEvent(new Q("onstatechange",(new Map).set("state",b)))}
490
- function wm(a){var b,c,d,e,f;return L(function(g){if(1==g.g){zm(a,"manifest-parser");a.j||(a.F=si(a.L,a.S),a.j=a.F(),a.j.configure(a.g.manifest));b=Date.now()/1E3;zm(a,"manifest");if(a.h)return g.D(2);c=a;return D(g,a.j.start(a.L,a.Wb),3)}2!=g.g&&(c.h=g.h);d=new Q("manifestparsed",void 0);a.dispatchEvent(d);if(0==a.h.variants.length)throw new R(2,4,4036);Am(a.h);e=Date.now()/1E3;f=e-b;a.Y.H=f;G(g)})}
491
- function xm(a){var b,c,d,e,f;return L(function(g){switch(g.g){case 1:zm(a,"drm-engine");a.Ka=Date.now()/1E3;a.l=a.Vb();a.A.g=a.l;a.l.configure(a.g.drm);var h=a.A;b=Se(a.h.variants,h.h.restrictions,h.i);if(!b){g.D(2);break}c=new Q("trackschanged",void 0);return D(g,Promise.resolve(),3);case 3:a.dispatchEvent(c);case 2:return d=tf(a.h.variants),D(g,Dh(a.l,d,a.h.offlineSessionIds),4);case 4:return D(g,li(a.A,a.h),5);case 5:e=g.h;if(!e){g.D(0);break}f=new Q("trackschanged",void 0);return D(g,Promise.resolve(),
490
+ function wm(a){var b,c,d,e,f;return L(function(g){if(1==g.g){zm(a,"manifest-parser");a.j||(a.F=si(a.L,a.S),a.j=a.F(),a.j.configure(a.g.manifest));b=Date.now()/1E3;zm(a,"manifest");if(a.h)return g.B(2);c=a;return D(g,a.j.start(a.L,a.Wb),3)}2!=g.g&&(c.h=g.h);d=new Q("manifestparsed",void 0);a.dispatchEvent(d);if(0==a.h.variants.length)throw new R(2,4,4036);Am(a.h);e=Date.now()/1E3;f=e-b;a.Y.H=f;G(g)})}
491
+ function xm(a){var b,c,d,e,f;return L(function(g){switch(g.g){case 1:zm(a,"drm-engine");a.Ka=Date.now()/1E3;a.l=a.Vb();a.A.g=a.l;a.l.configure(a.g.drm);var h=a.A;b=Se(a.h.variants,h.h.restrictions,h.i);if(!b){g.B(2);break}c=new Q("trackschanged",void 0);return D(g,Promise.resolve(),3);case 3:a.dispatchEvent(c);case 2:return d=tf(a.h.variants),D(g,Dh(a.l,d,a.h.offlineSessionIds),4);case 4:return D(g,li(a.A,a.h),5);case 5:e=g.h;if(!e){g.B(0);break}f=new Q("trackschanged",void 0);return D(g,Promise.resolve(),
492
492
  7);case 7:a.dispatchEvent(f),G(g)}})}q.configure=function(a,b){a=am(a,b);mm(this.g,a)};q.getConfiguration=function(){return Le(this.g)};
493
493
  function ym(a,b,c){var d,e,f,g,h;L(function(k){if(1==k.g)return d=a.g.streaming.segmentPrefetchLimit||2,e=new $k(d,b,function(l,m,n){return Jl(l,m,n||null,a.g.streaming.retryParameters,a.Ua)}),a.K.set(b.id,e),D(k,b.createSegmentIndex(),2);f=a.X||0;(h=(g=b.segmentIndex.Ub(f))?g.current():null)||(h=b.segmentIndex.get(0));h&&(c?h.ua&&cl(e,h.ua):bl(e,h.startTime));G(k)})}q.pk=function(){return Promise.race([this.M,this.H])};
494
- q.destroy=function(){var a=this,b,c,d;return L(function(e){switch(e.g){case 1:a.o=!0;if(!a.j||a.qa){e.D(2);break}return D(e,a.j.stop(),2);case 2:if(!a.i||a.$){e.D(4);break}return D(e,a.i.stop(),4);case 4:a.G&&!a.Fa&&a.G.release();if(!a.l||a.aa){e.D(6);break}return D(e,a.l.destroy(),6);case 6:if(0<a.K.size&&!a.Ja)for(b=u(a.K.values()),c=b.next();!c.done;c=b.next())d=c.value,il(d);G(e)}})};
494
+ q.destroy=function(){var a=this,b,c,d;return L(function(e){switch(e.g){case 1:a.m=!0;if(!a.j||a.qa){e.B(2);break}return D(e,a.j.stop(),2);case 2:if(!a.i||a.$){e.B(4);break}return D(e,a.i.stop(),4);case 4:a.G&&!a.Fa&&a.G.release();if(!a.l||a.aa){e.B(6);break}return D(e,a.l.destroy(),6);case 6:if(0<a.K.size&&!a.Ja)for(b=u(a.K.values()),c=b.next();!c.done;c=b.next())d=c.value,il(d);G(e)}})};
495
495
  function Am(a){function b(c){return c.video&&c.audio||c.video&&c.video.codecs.includes(",")}a.variants.some(b)&&(a.variants=a.variants.filter(b))}N("shaka.media.PreloadManager",nm);nm.prototype.destroy=nm.prototype.destroy;nm.prototype.waitForFinish=nm.prototype.pk;function Bm(a,b){bb.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{Lc:null,Kc:Cm,zc:function(d,e){return Dm(c,"enter",d,e)}},{Lc:Em,Kc:Cm,zc:function(d,e){return Dm(c,"enter",d,e)}},{Lc:Fm,Kc:Cm,zc:function(d,e){return Dm(c,"enter",d,e)}},{Lc:Cm,Kc:Em,zc:function(d,e){return Dm(c,"exit",d,e)}},{Lc:Cm,Kc:Fm,zc:function(d,e){return Dm(c,"exit",d,e)}},{Lc:Em,Kc:Fm,zc:function(d,e){return Dm(c,"skip",d,e)}},{Lc:Fm,Kc:Em,zc:function(d,e){return Dm(c,"skip",d,e)}}];this.h=new cd;this.h.s(this.i,
496
496
  "regionremove",function(d){c.g.delete(d.region)})}na(Bm,bb);Bm.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;bb.prototype.release.call(this)};Bm.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=u(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?Em:a>d.endTime?Fm:Cm;this.g.set(d,f);for(var g=u(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.Lc==e&&h.Kc==f&&h.zc(d,b)}}};
497
- function Dm(a,b,c,d){b=new Q(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Em=1,Cm=2,Fm=3;function Gm(a,b,c){var d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:var n=(new ib(a)).jb.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Hm[d])return m.return(e);f=0;g=rg([a],c);ra(m,2);g.method="HEAD";return D(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];ta(m,3);break;case 2:k=ua(m);if(!k||1002!=k.code&&1001!=k.code){m.D(3);break}g.method="GET";return D(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e?
497
+ function Dm(a,b,c,d){b=new Q(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Em=1,Cm=2,Fm=3;function Gm(a,b,c){var d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:var n=(new ib(a)).jb.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Hm[d])return m.return(e);f=0;g=rg([a],c);ra(m,2);g.method="HEAD";return D(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];ta(m,3);break;case 2:k=ua(m);if(!k||1002!=k.code&&1001!=k.code){m.B(3);break}g.method="GET";return D(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e?
498
498
  e.toLowerCase().split(";").shift():"")}})}
499
499
  var Hm={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",ism:"application/vnd.ms-sstr+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav",sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};function Im(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return Im(g,a)}).join("");var c=[],d=700<=a.fontWeight,e="italic"==a.fontStyle,f=a.textDecoration.includes("underline");d&&c.push(["b"]);e&&c.push(["i"]);f&&c.push(["u"]);e=a.color;""==e&&b&&(e=b.color);d="";(e=Jm(e))&&(d+="."+e);e=a.backgroundColor;""==e&&b&&(e=b.backgroundColor);(b=Jm(e))&&(d+=".bg_"+b);d&&c.push(["c",d]);return c.reduceRight(function(g,h){var k=u(h);h=k.next().value;k=k.next().value;
500
500
  return"<"+h+(void 0===k?"":k)+">"+g+"</"+h+">"},a.payload)}
501
501
  function Jm(a){a=a.toLowerCase();var b=a.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);b?a="#"+(parseInt(b[1],10)|256).toString(16).slice(1)+(parseInt(b[2],10)|256).toString(16).slice(1)+(parseInt(b[3],10)|256).toString(16).slice(1):a.startsWith("#")&&7<a.length&&(a=a.slice(0,7));switch(a){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";
502
- 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 Km(a,b){var c=[];a=u(a);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.isContainer)c.push.apply(c,y(Km(d.nestedCues,d)));else{var e=d.clone();e.nestedCues=[];e.payload=Im(d,b);c.push(e)}return c};function Lm(a,b){this.g=null;for(var c=u(Array.from(a.textTracks)),d=c.next();!d.done;d=c.next())d=d.value,d.mode="disabled",d.label==b&&(this.g=d);this.g||(this.g=a.addTextTrack("subtitles",b));this.g.mode="hidden"}q=Lm.prototype;q.configure=function(){};q.remove=function(a,b){if(!this.g)return!1;Mm(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
502
+ 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 Km(a,b){var c=[];a=u(a);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.isContainer)c.push.apply(c,w(Km(d.nestedCues,d)));else{var e=d.clone();e.nestedCues=[];e.payload=Im(d,b);c.push(e)}return c};function Lm(a,b){this.g=null;for(var c=u(Array.from(a.textTracks)),d=c.next();!d.done;d=c.next())d=d.value,d.mode="disabled",d.label==b&&(this.g=d);this.g||(this.g=a.addTextTrack("subtitles",b));this.g.mode="hidden"}q=Lm.prototype;q.configure=function(){};q.remove=function(a,b){if(!this.g)return!1;Mm(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
503
503
  q.append=function(a){var b=Km(a),c=[];a=this.g.cues?Array.from(this.g.cues):[];var d={};b=u(b);for(var e=b.next();!e.done;d={Nc:d.Nc},e=b.next())d.Nc=e.value,a.some(function(f){return function(g){return g.startTime==f.Nc.startTime&&g.endTime==f.Nc.endTime&&g.text==f.Nc.payload?!0:!1}}(d))||(e=Nm(d.Nc))&&c.push(e);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line"in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):c.indexOf(f)-
504
504
  c.indexOf(g)});a=u(a);for(d=a.next();!d.done;d=a.next())this.g.addCue(d.value)};q.destroy=function(){this.g&&(Mm(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};q.isTextVisible=function(){return"showing"==this.g.mode};q.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
505
505
  function Nm(a){if(a.startTime>=a.endTime)return null;var b=new VTTCue(a.startTime,a.endTime,a.payload);b.lineAlign=a.lineAlign;b.positionAlign=a.positionAlign;a.size&&(b.size=a.size);try{b.align=a.textAlign}catch(c){}"center"==a.textAlign&&"center"!=b.align&&(b.align="middle");"vertical-lr"==a.writingMode?b.vertical="lr":"vertical-rl"==a.writingMode&&(b.vertical="rl");1==a.lineInterpretation&&(b.snapToLines=!1);null!=a.line&&(b.line=a.line);null!=a.position&&(b.position=a.position);return b}
506
506
  function Mm(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=u(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}N("shaka.text.SimpleTextDisplayer",Lm);Lm.prototype.setTextVisibility=Lm.prototype.setTextVisibility;Lm.prototype.isTextVisible=Lm.prototype.isTextVisible;Lm.prototype.destroy=Lm.prototype.destroy;Lm.prototype.append=Lm.prototype.append;Lm.prototype.remove=Lm.prototype.remove;Lm.prototype.configure=Lm.prototype.configure;function Om(){}q=Om.prototype;q.configure=function(){};q.remove=function(){};q.append=function(){};q.destroy=function(){};q.isTextVisible=function(){return!1};q.setTextVisibility=function(){};N("shaka.text.StubTextDisplayer",Om);Om.prototype.setTextVisibility=Om.prototype.setTextVisibility;Om.prototype.isTextVisible=Om.prototype.isTextVisible;Om.prototype.destroy=Om.prototype.destroy;Om.prototype.append=Om.prototype.append;Om.prototype.remove=Om.prototype.remove;Om.prototype.configure=Om.prototype.configure;function Pm(){}function T(a){return document.createElement(a)}function Qm(){var a=document.createElement("button");a.setAttribute("type","button");return a}function Rm(a){for(;a.firstChild;)a.removeChild(a.firstChild)}N("shaka.util.Dom",Pm);Pm.removeAllChildren=Rm;function Sm(a,b,c){var d=this;this.m=!1;this.h=[];this.A=a;this.u=b;this.l=null;this.g=T("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.u.appendChild(this.g);c&&c.captionsUpdatePeriod||ld("UITextDisplayer w/ config","Please migrate to initializing UITextDisplayer with a config.");this.G=(new Ob(function(){d.A.paused||Tm(d)})).ya(c&&
507
507
  c.captionsUpdatePeriod?c.captionsUpdatePeriod:.25);this.i=new Map;this.j=new cd;this.j.s(document,"fullscreenchange",function(){Tm(d,!0)});this.j.s(this.A,"seeking",function(){Tm(d,!0)});this.j.s(this.A,"resize",function(){var e=d.A,f=e.videoWidth;e=e.videoHeight;f&&e?d.l=f/e:d.l=null});this.o=null;"ResizeObserver"in window&&(this.o=new ResizeObserver(function(){Tm(d,!0)}),this.o.observe(this.g));this.F=new Map}q=Sm.prototype;q.configure=function(a){this.G&&this.G.ya(a.captionsUpdatePeriod)};
508
- q.append=function(a){var b=[].concat(y(this.h)),c={};a=u(a);for(var d=a.next();!d.done;c={be:c.be},d=a.next())c.be=d.value,b.some(function(e){return function(f){return Pd(f,e.be)}}(c))||this.h.push(c.be);Tm(this)};q.destroy=function(){if(!this.g)return Promise.resolve();this.u.removeChild(this.g);this.g=null;this.m=!1;this.h=[];this.G&&this.G.stop();this.i.clear();this.j&&(this.j.release(),this.j=null);this.o&&(this.o.disconnect(),this.o=null);return Promise.resolve()};
508
+ q.append=function(a){var b=[].concat(w(this.h)),c={};a=u(a);for(var d=a.next();!d.done;c={be:c.be},d=a.next())c.be=d.value,b.some(function(e){return function(f){return Pd(f,e.be)}}(c))||this.h.push(c.be);Tm(this)};q.destroy=function(){if(!this.g)return Promise.resolve();this.u.removeChild(this.g);this.g=null;this.m=!1;this.h=[];this.G&&this.G.stop();this.i.clear();this.j&&(this.j.release(),this.j=null);this.o&&(this.o.disconnect(),this.o=null);return Promise.resolve()};
509
509
  q.remove=function(a,b){if(!this.g)return!1;var c=this.h.length;this.h=this.h.filter(function(d){return d.startTime<a||d.endTime>=b});Tm(this,c>this.h.length);return!0};q.isTextVisible=function(){return this.m};q.setTextVisibility=function(a){this.m=a};function Um(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
510
- function Vm(a,b,c,d,e){var f=!1,g=[],h=[];b=u(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.i.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.bi:null;l&&(g.push(l.Ff),l.Fc&&g.push(l.Fc),m||(f=!0,a.i.delete(k),l=null));m&&(h.push(k),l?Um(a,n)||(f=!0):(Wm(a,k,e),l=a.i.get(k),n=l.bi,f=!0));0<k.nestedCues.length&&n&&Vm(a,k.nestedCues,n,d,e);e.pop()}if(f){d=u(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(r,p){return r.startTime!=
510
+ function Vm(a,b,c,d,e){var f=!1,g=[],h=[];b=u(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.i.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.di:null;l&&(g.push(l.Ff),l.Fc&&g.push(l.Fc),m||(f=!0,a.i.delete(k),l=null));m&&(h.push(k),l?Um(a,n)||(f=!0):(Wm(a,k,e),l=a.i.get(k),n=l.di,f=!0));0<k.nestedCues.length&&n&&Vm(a,k.nestedCues,n,d,e);e.pop()}if(f){d=u(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(r,p){return r.startTime!=
511
511
  p.startTime?r.startTime-p.startTime:r.endTime-p.endTime});h=u(h);for(k=h.next();!k.done;k=h.next())d=a.i.get(k.value),d.Fc?(d.Fc.contains(c)&&d.Fc.removeChild(c),c.appendChild(d.Fc),d.Fc.appendChild(d.Ff)):c.appendChild(d.Ff)}}function Tm(a,b){if(a.g){var c=a.A.currentTime;if(!a.m||(void 0===b?0:b)){b=u(a.F.values());for(var d=b.next();!d.done;d=b.next())Rm(d.value);Rm(a.g);a.i.clear();a.F.clear()}a.m&&Vm(a,a.h,a.g,c,[])}}
512
512
  function Wm(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");b.rubyTag&&(e=b.rubyTag);d=!d&&0<b.nestedCues.length;var f=T(e);"br"!=e&&Xm(a,f,b,c,d);c=null;if(b.region&&b.region.id){c=b.region;e=a.l===4/3?2.5:1.9;var g=c.id+"_"+c.width+"x"+c.height+(c.heightUnits==Yd?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==Yd?"%":"px");if(a.F.has(g))c=a.F.get(g);else{var h=T("span"),k=c.heightUnits==Yd?"%":"px",l=c.widthUnits==Yd?"%":"px",m=c.viewportAnchorUnits==
513
513
  Yd?"%":"px";h.id="shaka-text-region---"+g;h.classList.add("shaka-text-region");h.style.position="absolute";2===c.heightUnits&&2===c.widthUnits?(h.style.height=5.33*c.height+"%",h.style.width=c.width*e+"%"):(h.style.height=c.height+k,h.style.width=c.width+l);2===c.viewportAnchorUnits?(k=c.viewportAnchorY/75*100,l=c.viewportAnchorX/(a.l===4/3?160:210)*100,k-=c.regionAnchorY*c.height*5.33/100,l-=c.regionAnchorX*c.width*e/100,h.style.top=k+"%",h.style.left=l+"%"):(h.style.top=c.viewportAnchorY-c.regionAnchorY*
514
- c.height/100+m,h.style.left=c.viewportAnchorX-c.regionAnchorX*c.width/100+m);h.style.display="flex";h.style.flexDirection="column";h.style.alignItems="center";h.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.F.set(g,h);c=h}}e=f;d&&(e=T("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.i.set(b,{Ff:f,bi:e,Fc:c})}
514
+ c.height/100+m,h.style.left=c.viewportAnchorX-c.regionAnchorX*c.width/100+m);h.style.display="flex";h.style.flexDirection="column";h.style.alignItems="center";h.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.F.set(g,h);c=h}}e=f;d&&(e=T("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.i.set(b,{Ff:f,di:e,Fc:c})}
515
515
  function Ym(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==Dd?c:"left"===a||"start"===a&&b===Fd||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===Fd?"line-right":"center"}
516
516
  function Xm(a,b,c,d,e){var f=b.style,g=0==c.nestedCues.length,h=1<d.length;f.whiteSpace="pre-wrap";var k=c.payload.replace(/\s+$/g,function(m){return"\u00a0".repeat(m.length)});f.webkitTextStrokeColor=c.textStrokeColor;f.webkitTextStrokeWidth=c.textStrokeWidth;f.color=c.color;f.direction=c.direction;f.opacity=c.opacity;f.paddingLeft=Zm(c.linePadding,c,a.u);f.paddingRight=Zm(c.linePadding,c,a.u);f.textCombineUpright=c.textCombineUpright;f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage=
517
517
  "url('"+c.backgroundImage+"')",f.backgroundRepeat="no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=T("span"),b.appendChild(l);c.border&&(l.style.border=c.border);!e&&((b=$m(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"),b=$m(d,function(m){return m.fontFamily}))&&(l.style.fontFamily=b);k&&(l.textContent=k)}h&&!d[d.length-1].isContainer?
@@ -528,77 +528,78 @@ function on(a){if(0===a.type)return pn;if(a=a.stream){var b=a.type;if("video"==b
528
528
  function tn(a,b){b=a.h.Ib()[b];if(!b.length)return 0;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):0}function un(a,b){var c=a.h.rb();if(!c.length)return NaN;a=c[0];c=u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case ln:return a.videoBandwidth||NaN;case en:return a.audioBandwidth||NaN;default:return a.bandwidth}}
529
529
  function hn(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=u(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"===
530
530
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function nn(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};b=u(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=hn(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
531
- function jn(a,b){if(!b||a.includes("offline:"))return a;a=new ib(a);a.g.set("CMCD",b);return a.toString()}var gn="m",en="a",ln="v",fn="av",pn="i",rn="c",qn="tt";N("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",ei:"s",OTHER:"o"});function vn(a){this.h=a;this.g=null}q=vn.prototype;q.configure=function(a){this.h=a};q.oh=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(wn)?1E3*this.g.get(wn):null};q.nh=function(){return this.h.enabled&&this.g&&this.g.has(xn)?1E3*this.g.get(xn):null};q.Xi=function(){return this.h.enabled&&this.g&&this.g.has(yn)?this.g.get(yn):null};q.Yi=function(){return this.h.enabled&&this.g&&this.g.has(Mn)?this.g.get(Mn):null};
532
- q.getBandwidthEstimate=function(a){var b=this.nh();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function Nn(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}N("shaka.util.CmsdManager",vn);vn.prototype.getBandwidthEstimate=vn.prototype.getBandwidthEstimate;vn.prototype.getRoundTripTime=vn.prototype.Yi;vn.prototype.getResponseDelay=vn.prototype.Xi;vn.prototype.getEstimatedThroughput=vn.prototype.nh;
533
- vn.prototype.getMaxBitrate=vn.prototype.oh;var xn="etp",wn="mb",yn="rd",Mn="rtt";function On(){this.g=null;this.h=[]}function Pn(a,b){return L(function(c){if(1==c.g)return a.g?D(c,new Promise(function(d){return a.h.push(d)}),2):c.D(2);a.g=b;G(c)})}On.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function U(a,b){bb.call(this);var c=this;this.l=Qn;this.Oe=this.g=null;this.$=!1;this.df=new cd;this.Gb=new cd;this.m=new cd;this.ra=new cd;this.G=this.H=this.F=this.J=null;this.gf=0;this.S=new On;this.aa=this.Rg=this.oa=this.i=this.Fa=this.K=this.j=this.Za=this.L=this.ci=this.X=this.P=this.$a=this.M=this.Se=this.I=this.Ua=null;this.Ka=!1;this.ma=this.o=null;this.Tg=1E9;this.Rd=[];this.O=NaN;this.h=Rn(this);this.Y={width:Infinity,height:Infinity};this.Le=new ki(this.h,this.Y,null);this.u=null;this.qa=
534
- new Kf(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount,this.h.preferredVideoHdrLevel,this.h.preferSpatialAudio,this.h.preferredVideoLayout,this.h.preferredAudioLabel,this.h.preferredVideoLabel,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);this.Ja=this.h.preferredTextLanguage;this.Xb=this.h.preferredTextRole;this.Wb=this.h.preferForcedSubs;this.Vb=[];b&&b(this);this.P=Sn(this);this.X=new vn(this.h.cmsd);this.J=Tn(this);
535
- this.J.Fg(this.h.streaming.forceHTTPS);this.A=null;Un&&(this.A=Un(),this.A.configure(this.h.ads));this.df.s(window,"online",function(){Vn(c);c.xg()});this.Te=new Ob(function(){return Wn(c)});a&&(ld("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Pc(a,!0))}na(U,bb);function Xn(a){null!=a.L&&(uj(a.L),a.L.release(),a.L=null)}
536
- function Yn(a,b){if(b.lcevc.enabled){var c=a.rb();c&&c[0]&&"video/mp2t"==c[0].videoMimeType&&(Sb()||navigator.userAgent.match(/Edge\//))&&(b.mediaSource.forceTransmux||Ua("LCEVC Warning: For MPEG-2 TS decoding the config.mediaSource.forceTransmux must be enabled."));Xn(a);null==a.L&&(a.L=new tj(a.g,a.ci,b.lcevc),a.H&&(a.H.P=a.L))}else Xn(a)}function Zn(a,b){return new Q(a,b)}q=U.prototype;
537
- q.destroy=function(){var a=this,b;return L(function(c){switch(c.g){case 1:if(a.l==$n)return c.return();Xn(a);b=a.detach();a.l=$n;return D(c,b,2);case 2:a.df&&(a.df.release(),a.df=null);a.Gb&&(a.Gb.release(),a.Gb=null);a.m&&(a.m.release(),a.m=null);a.ra&&(a.ra.release(),a.ra=null);a.ma=null;a.h=null;a.u=null;a.Oe=null;a.P=null;a.X=null;if(!a.J){c.D(3);break}return D(c,a.J.destroy(),4);case 4:a.J=null;case 3:a.o&&(a.o.release(),a.o=null),bb.prototype.release.call(a),G(c)}})};
531
+ function jn(a,b){if(!b||a.includes("offline:"))return a;a=new ib(a);a.g.set("CMCD",b);return a.toString()}var gn="m",en="a",ln="v",fn="av",pn="i",rn="c",qn="tt";N("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",gi:"s",OTHER:"o"});function vn(a){this.h=a;this.g=null}q=vn.prototype;q.configure=function(a){this.h=a};q.qh=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(wn)?1E3*this.g.get(wn):null};q.ph=function(){return this.h.enabled&&this.g&&this.g.has(xn)?1E3*this.g.get(xn):null};q.Xi=function(){return this.h.enabled&&this.g&&this.g.has(yn)?this.g.get(yn):null};q.Yi=function(){return this.h.enabled&&this.g&&this.g.has(Mn)?this.g.get(Mn):null};
532
+ q.getBandwidthEstimate=function(a){var b=this.ph();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function Nn(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}N("shaka.util.CmsdManager",vn);vn.prototype.getBandwidthEstimate=vn.prototype.getBandwidthEstimate;vn.prototype.getRoundTripTime=vn.prototype.Yi;vn.prototype.getResponseDelay=vn.prototype.Xi;vn.prototype.getEstimatedThroughput=vn.prototype.ph;
533
+ vn.prototype.getMaxBitrate=vn.prototype.qh;var xn="etp",wn="mb",yn="rd",Mn="rtt";function On(){this.g=null;this.h=[]}function Pn(a,b){return L(function(c){if(1==c.g)return a.g?D(c,new Promise(function(d){return a.h.push(d)}),2):c.B(2);a.g=b;G(c)})}On.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function U(a,b){bb.call(this);var c=this;this.l=Qn;this.Oe=this.g=null;this.$=!1;this.df=new cd;this.Gb=new cd;this.m=new cd;this.ra=new cd;this.G=this.H=this.F=this.J=null;this.gf=0;this.S=new On;this.aa=this.Rg=this.oa=this.i=this.Fa=this.K=this.j=this.Za=this.L=this.Vg=this.X=this.P=this.$a=this.M=this.Se=this.I=this.Ua=null;this.Ka=!1;this.ma=this.o=null;this.Ug=1E9;this.Rd=[];this.O=NaN;this.h=Rn(this);this.Y={width:Infinity,height:Infinity};this.Le=new ki(this.h,this.Y,null);this.Sg=[];this.u=
534
+ null;this.qa=new Kf(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount,this.h.preferredVideoHdrLevel,this.h.preferSpatialAudio,this.h.preferredVideoLayout,this.h.preferredAudioLabel,this.h.preferredVideoLabel,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);this.Ja=this.h.preferredTextLanguage;this.Xb=this.h.preferredTextRole;this.Wb=this.h.preferForcedSubs;this.Vb=[];b&&b(this);this.P=Sn(this);this.X=new vn(this.h.cmsd);this.J=
535
+ Tn(this);this.J.Fg(this.h.streaming.forceHTTPS);this.A=null;Un&&(this.A=Un(),this.A.configure(this.h.ads));this.df.s(window,"online",function(){Vn(c);c.xg()});this.Te=new Ob(function(){return Wn(c)});a&&(ld("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Pc(a,!0))}na(U,bb);function Xn(a){null!=a.L&&(uj(a.L),a.L.release(),a.L=null)}
536
+ function Yn(a,b){if(b.lcevc.enabled){var c=a.rb();c&&c[0]&&"video/mp2t"==c[0].videoMimeType&&(Sb()||navigator.userAgent.match(/Edge\//))&&(b.mediaSource.forceTransmux||Ua("LCEVC Warning: For MPEG-2 TS decoding the config.mediaSource.forceTransmux must be enabled."));Xn(a);null==a.L&&(a.L=new tj(a.g,a.Vg,b.lcevc),a.H&&(a.H.P=a.L))}else Xn(a)}function Zn(a,b){return new Q(a,b)}q=U.prototype;
537
+ q.destroy=function(){var a=this,b,c,d,e,f;return L(function(g){switch(g.g){case 1:if(a.l==$n)return g.return();Xn(a);b=a.detach();a.l=$n;return D(g,b,2);case 2:c=[];d=u(a.Sg);for(e=d.next();!e.done;e=d.next())f=e.value,f.m||c.push(f.destroy());a.Sg=[];return D(g,Promise.all(c),3);case 3:a.df&&(a.df.release(),a.df=null);a.Gb&&(a.Gb.release(),a.Gb=null);a.m&&(a.m.release(),a.m=null);a.ra&&(a.ra.release(),a.ra=null);a.ma=null;a.h=null;a.u=null;a.Oe=null;a.P=null;a.X=null;if(!a.J){g.B(4);break}return D(g,
538
+ a.J.destroy(),5);case 5:a.J=null;case 4:a.o&&(a.o.release(),a.o=null),bb.prototype.release.call(a),G(g)}})};
538
539
  function ao(){window.Promise||Ua("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Ub("Trident/"))return!1;var a=gc();return a&&9>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Pb()?!0:Qb("application/x-mpegurl")}function bo(a,b){a.dispatchEvent(Zn("onstatechange",(new Map).set("state",b)))}
539
- q.Pc=function(a,b){b=void 0===b?!0:b;var c=this,d,e,f;return L(function(g){switch(g.g){case 1:if(c.l==$n)throw new R(2,7,7E3);d=c.g&&c.g==a;if(!c.g||c.g==a){g.D(2);break}return D(g,c.detach(),2);case 2:return D(g,co(c,"attach"),4);case 4:if(g.h)return g.return();ra(g,5,6);d||(bo(c,"attach"),e=function(){var h=eo(c);h&&fo(c,h)},c.Gb.s(a,"error",e),c.g=a);if(!b||!Pb()||c.H){g.D(6);break}return D(g,go(c),6);case 6:va(g);c.S.release();wa(g,0);break;case 5:return f=ua(g),D(g,c.detach(),10);case 10:throw f;
540
- }})};q.Xg=function(a){this.ci=a};q.detach=function(a){a=void 0===a?!1:a;var b=this;return L(function(c){if(1==c.g){if(b.l==$n)throw new R(2,7,7E3);return D(c,b.Ic(!1,a),2)}if(3!=c.g)return D(c,co(b,"detach"),3);if(c.h)return c.return();try{b.g&&(b.Gb.mb(),b.g=null),bo(b,"detach"),b.A&&!a&&b.A.release()}finally{b.S.release()}G(c)})};function co(a,b){var c;return L(function(d){return 1==d.g?(c=++a.gf,D(d,Pn(a.S,b),2)):c!=a.gf?(a.S.release(),d.return(!0)):d.return(!1)})}
540
+ q.Pc=function(a,b){b=void 0===b?!0:b;var c=this,d,e,f;return L(function(g){switch(g.g){case 1:if(c.l==$n)throw new R(2,7,7E3);d=c.g&&c.g==a;if(!c.g||c.g==a){g.B(2);break}return D(g,c.detach(),2);case 2:return D(g,co(c,"attach"),4);case 4:if(g.h)return g.return();ra(g,5,6);d||(bo(c,"attach"),e=function(){var h=eo(c);h&&fo(c,h)},c.Gb.s(a,"error",e),c.g=a);if(!b||!Pb()||c.H){g.B(6);break}return D(g,go(c),6);case 6:va(g);c.S.release();wa(g,0);break;case 5:return f=ua(g),D(g,c.detach(),10);case 10:throw f;
541
+ }})};q.Zg=function(a){this.Vg=a};q.detach=function(a){a=void 0===a?!1:a;var b=this;return L(function(c){if(1==c.g){if(b.l==$n)throw new R(2,7,7E3);return D(c,b.Ic(!1,a),2)}if(3!=c.g)return D(c,co(b,"detach"),3);if(c.h)return c.return();try{b.g&&(b.Gb.mb(),b.g=null),bo(b,"detach"),b.A&&!a&&b.A.release()}finally{b.S.release()}G(c)})};function co(a,b){var c;return L(function(d){return 1==d.g?(c=++a.gf,D(d,Pn(a.S,b),2)):c!=a.gf?(a.S.release(),d.return(!0)):d.return(!1)})}
541
542
  q.Ic=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n;return L(function(r){switch(r.g){case 1:return c.l!=$n&&(c.l=Qn),D(r,co(c,"unload"),2);case 2:if(r.h)return r.return();sa(r,3);c.Ka=!1;bo(c,"unload");a&&!Pb()&&(a=!1);Xn(c);d=c.Vb.map(function(p){return p()});c.Vb=[];return D(r,Promise.all(d),5);case 5:c.dispatchEvent(Zn("unloading"));c.$a&&(c.$a.release(),c.$a=null);c.g&&(c.m.mb(),c.ra.mb());c.Te.stop();c.Ua&&(c.Ua.release(),c.Ua=null);c.Se&&(c.Se.stop(),c.Se=null);
542
- if(!c.K){r.D(6);break}return D(r,c.K.stop(),7);case 7:c.K=null,c.Fa=null;case 6:if(!c.o){r.D(8);break}return D(r,c.o.stop(),8);case 8:if(!c.j){r.D(10);break}return D(r,c.j.destroy(),11);case 11:c.j=null;case 10:c.I&&(c.I.release(),c.I=null);c.G&&(c.G.release(),c.G=null);if(!c.H){r.D(12);break}return D(r,c.H.destroy(),13);case 13:c.H=null;case 12:if(c.A&&!b)c.A.onAssetUnload();c.X&&(c.X.g=null);c.g&&Rm(c.g);if(!c.g||!c.g.src){r.D(14);break}return D(r,new Promise(function(p){return(new Ob(p)).V(.1)}),
543
- 15);case 15:c.g.removeAttribute("src"),c.g.load();case 14:if(!c.F){r.D(16);break}return D(r,c.F.destroy(),17);case 17:c.F=null;case 16:c.oa=null;c.Rg=null;c.M=null;if(c.i){e=u(c.i.variants);for(f=e.next();!f.done;f=e.next())for(g=f.value,h=u([g.audio,g.video]),k=h.next();!k.done;k=h.next())(l=k.value)&&l.segmentIndex&&l.segmentIndex.release();m=u(c.i.textStreams);for(k=m.next();!k.done;k=m.next())n=k.value,n.segmentIndex&&n.segmentIndex.release()}c.i=null;c.u=new Zk;c.Sg=null;c.Rd=[];c.O=NaN;ho(c);
544
- case 3:va(r);c.S.release();wa(r,4);break;case 4:if(a&&Pb()&&!c.H)return D(r,go(c),0);r.D(0)}})};q.nk=function(a){this.aa=a};
545
- q.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l,m,n,r,p,t,x,w;return L(function(B){switch(B.g){case 1:if(d.l==$n)throw new R(2,7,7E3);e=null;f="";a instanceof nm?(e=a,f=e.Fd()||""):f=a||"";return D(B,Pn(d.S,"load"),2);case 2:d.S.release();if(!d.g)throw new R(2,7,7002);if(!d.oa){B.D(3);break}return D(B,d.Ic(!1),3);case 3:g=++d.gf;h=function(){return L(function(v){if(1==v.g)return d.gf==g?v.D(0):e?D(v,e.destroy(),3):v.D(3);throw new R(2,7,7E3);})};k=function(v,A){return L(function(z){switch(z.g){case 1:return sa(z,
546
- 2),D(z,Pn(d.S,A),4);case 4:return D(z,h(),5);case 5:return D(z,v(),6);case 6:return D(z,h(),7);case 7:e&&d.h&&(e.g=d.h);case 2:va(z),d.S.release(),wa(z,0)}})};ra(B,5,6);null==b&&e&&(b=e.getStartTime());d.aa=b;d.Ka=!1;d.dispatchEvent(Zn("loading"));if(e){c=e.S;B.D(8);break}if(c){B.D(8);break}return D(B,k(function(){return L(function(v){if(1==v.g)return D(v,io(d,f),2);c=v.h;G(v)})},"guessMimeType_"),8);case 8:l=!!e;if(e){qm(e,d);d.u=e.getStats();B.D(11);break}return D(B,jo(d,f,b,c,!0),12);case 12:e=
547
- B.h;if(!e){d.u=new Zk;B.D(11);break}qm(e,d);d.u=e.getStats();return D(B,k(function(){return e.start()},"preload"),11);case 11:m=!e;n=e?e.Xb:Date.now()/1E3;d.u=e?e.getStats():new Zk;d.oa=f;d.Rg=c||null;if(m)return D(B,k(function(){return L(function(v){return D(v,ko(d,c),0)})},"initializeSrcEqualsDrmInner_"),24);if(d.H){B.D(17);break}return D(B,k(function(){return L(function(v){return D(v,go(d),0)})},"initializeMediaSourceEngineInner_"),17);case 17:return D(B,k(function(){return e.oa},"waitForManifest"),
548
- 19);case 19:d.h=e.getConfiguration();d.Le=e.A;d.Fa=e.F;d.K=sm(e);d.$a=tm(e);d.Za=e.Za;d.i=e.Xf();if(r=e.m)d.qa=r;l&&d.g&&"AUDIO"===d.g.nodeName&&(lo(d),d.configure("manifest.disableVideo",!0));return D(B,k(function(){return e.ma},"waitForDrm"),20);case 20:return d.F=um(e),D(B,k(function(){return L(function(v){return D(v,d.F.Pc(d.g),0)})},"drmEngine_.attach"),21);case 21:return D(B,k(function(){return e.M},"waitForChooseInitialVariant"),22);case 22:return!(p=e.u)||d.ma&&d.ma==p||(d.o=rm(e),d.ma=e.u,
543
+ if(!c.K){r.B(6);break}return D(r,c.K.stop(),7);case 7:c.K=null,c.Fa=null;case 6:if(!c.o){r.B(8);break}return D(r,c.o.stop(),8);case 8:if(!c.j){r.B(10);break}return D(r,c.j.destroy(),11);case 11:c.j=null;case 10:c.I&&(c.I.release(),c.I=null);c.G&&(c.G.release(),c.G=null);if(!c.H){r.B(12);break}return D(r,c.H.destroy(),13);case 13:c.H=null;case 12:if(c.A&&!b)c.A.onAssetUnload();c.X&&(c.X.g=null);c.g&&Rm(c.g);if(!c.g||!c.g.src){r.B(14);break}return D(r,new Promise(function(p){return(new Ob(p)).V(.1)}),
544
+ 15);case 15:c.g.removeAttribute("src"),c.g.load();case 14:if(!c.F){r.B(16);break}return D(r,c.F.destroy(),17);case 17:c.F=null;case 16:c.oa=null;c.Rg=null;c.M=null;if(c.i){e=u(c.i.variants);for(f=e.next();!f.done;f=e.next())for(g=f.value,h=u([g.audio,g.video]),k=h.next();!k.done;k=h.next())(l=k.value)&&l.segmentIndex&&l.segmentIndex.release();m=u(c.i.textStreams);for(k=m.next();!k.done;k=m.next())n=k.value,n.segmentIndex&&n.segmentIndex.release()}c.i=null;c.u=new Zk;c.Tg=null;c.Rd=[];c.O=NaN;ho(c);
545
+ case 3:va(r);c.S.release();wa(r,4);break;case 4:if(a&&Pb()&&!c.H)return D(r,go(c),0);r.B(0)}})};q.nk=function(a){this.aa=a};
546
+ q.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l,m,n,r,p,t,y,x;return L(function(A){switch(A.g){case 1:if(d.l==$n)throw new R(2,7,7E3);e=null;f="";a instanceof nm?(e=a,f=e.Fd()||""):f=a||"";return D(A,Pn(d.S,"load"),2);case 2:d.S.release();if(!d.g)throw new R(2,7,7002);if(!d.oa){A.B(3);break}return D(A,d.Ic(!1),3);case 3:g=++d.gf;h=function(){return L(function(v){if(1==v.g)return d.gf==g?v.B(0):e?D(v,e.destroy(),3):v.B(3);throw new R(2,7,7E3);})};k=function(v,B){return L(function(z){switch(z.g){case 1:return sa(z,
547
+ 2),D(z,Pn(d.S,B),4);case 4:return D(z,h(),5);case 5:return D(z,v(),6);case 6:return D(z,h(),7);case 7:e&&d.h&&(e.g=d.h);case 2:va(z),d.S.release(),wa(z,0)}})};ra(A,5,6);null==b&&e&&(b=e.getStartTime());d.aa=b;d.Ka=!1;d.dispatchEvent(Zn("loading"));if(e){c=e.S;A.B(8);break}if(c){A.B(8);break}return D(A,k(function(){return L(function(v){if(1==v.g)return D(v,io(d,f),2);c=v.h;G(v)})},"guessMimeType_"),8);case 8:l=!!e;if(e){qm(e,d);d.u=e.getStats();A.B(11);break}return D(A,jo(d,f,b,c,!0),12);case 12:e=
548
+ A.h;if(!e){d.u=new Zk;A.B(11);break}qm(e,d);d.u=e.getStats();return D(A,k(function(){return e.start()},"preload"),11);case 11:m=!e;n=e?e.Xb:Date.now()/1E3;d.u=e?e.getStats():new Zk;d.oa=f;d.Rg=c||null;if(m)return D(A,k(function(){return L(function(v){return D(v,ko(d,c),0)})},"initializeSrcEqualsDrmInner_"),24);if(d.H){A.B(17);break}return D(A,k(function(){return L(function(v){return D(v,go(d),0)})},"initializeMediaSourceEngineInner_"),17);case 17:return D(A,k(function(){return e.oa},"waitForManifest"),
549
+ 19);case 19:d.h=e.getConfiguration();d.Le=e.A;d.Fa=e.F;d.K=sm(e);d.$a=tm(e);d.Za=e.Za;d.i=e.Xf();if(r=e.o)d.qa=r;l&&d.g&&"AUDIO"===d.g.nodeName&&(lo(d),d.configure("manifest.disableVideo",!0));return D(A,k(function(){return e.ma},"waitForDrm"),20);case 20:return d.F=um(e),D(A,k(function(){return L(function(v){return D(v,d.F.Pc(d.g),0)})},"drmEngine_.attach"),21);case 21:return D(A,k(function(){return e.M},"waitForChooseInitialVariant"),22);case 22:return!(p=e.u)||d.ma&&d.ma==p||(d.o=rm(e),d.ma=e.u,
549
550
  "function"!=typeof d.o.setMediaElement&&(ld("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),d.o.setMediaElement=function(){}),"function"!=typeof d.o.setCmsdManager&&(ld("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),d.o.setCmsdManager=function(){}),"function"!=typeof d.o.trySuggestStreams&&(ld("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),d.o.trySuggestStreams=function(){})),
550
- t=vm(e),x=e.ra,D(B,k(function(){return L(function(v){return D(v,mo(d,n,x,t),0)})},"loadInner_"),23);case 23:pm(e);B.D(16);break;case 24:return D(B,k(function(){return L(function(v){return D(v,no(d,n,c),0)})},"srcEqualsInner_"),16);case 16:d.dispatchEvent(Zn("loaded"));case 6:va(B);if(!e){B.D(26);break}return D(B,e.destroy(),26);case 26:wa(B,0);break;case 5:w=ua(B);if(7E3==w.code){B.D(28);break}return D(B,d.Ic(!1),28);case 28:throw w;}})};
551
+ t=vm(e),y=e.ra,D(A,k(function(){return L(function(v){return D(v,mo(d,n,y,t),0)})},"loadInner_"),23);case 23:pm(e);A.B(16);break;case 24:return D(A,k(function(){return L(function(v){return D(v,no(d,n,c),0)})},"srcEqualsInner_"),16);case 16:d.dispatchEvent(Zn("loaded"));case 6:va(A);if(!e){A.B(26);break}return D(A,e.destroy(),26);case 26:wa(A,0);break;case 5:x=ua(A);if(7E3==x.code){A.B(28);break}return D(A,d.Ic(!1),28);case 28:throw x;}})};
551
552
  function lo(a){for(var b=u(a.i.variants),c=b.next();!c.done;c=b.next())c=c.value,c.video&&(c.video.closeSegmentIndex(),c.video=null),c.bandwidth=c.audio&&c.audio.bandwidth?c.audio.bandwidth:0;a.i.variants=a.i.variants.filter(function(d){return d.audio})}
552
- q.ik=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f;return L(function(g){switch(g.g){case 1:d=null;if(!(c.i&&c.K&&c.Fa&&c.oa)){g.D(2);break}e=c.g.currentTime;c.U()&&(e=null);f=Date.now()/1E3;return D(g,oo(c,c.oa,e,c.Rg,f,!0,!1,!1),3);case 3:var h=d=g.h,k=c.K,l=c.Fa;h.h=c.i;h.j=k;h.F=l;h=d;k=c.ma;h.i=c.o;h.u=k;d.m=c.qa;d.start();c.i=null;c.K=null;c.Fa=null;c.o=null;c.ma=null;case 2:return D(g,c.Ic(a,b),4);case 4:return g.return(d)}})};
553
+ q.ik=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f;return L(function(g){switch(g.g){case 1:d=null;if(!(c.i&&c.K&&c.Fa&&c.oa)){g.B(2);break}e=c.g.currentTime;c.U()&&(e=null);f=Date.now()/1E3;return D(g,oo(c,c.oa,e,c.Rg,f,!0,!1,!1),3);case 3:var h=d=g.h,k=c.K,l=c.Fa;h.h=c.i;h.j=k;h.F=l;h=d;k=c.ma;h.i=c.o;h.u=k;d.o=c.qa;d.start();c.i=null;c.K=null;c.Fa=null;c.o=null;c.ma=null;case 2:return D(g,c.Ic(a,b),4);case 4:return g.return(d)}})};
553
554
  q.preload=function(a,b,c){b=void 0===b?null:b;var d=this,e;return L(function(f){if(1==f.g)return D(f,jo(d,a,b,c),2);(e=f.h)?e.start().catch(function(){}):fo(d,new R(2,7,7005));return f.return(e)})};
554
- function jo(a,b,c,d,e){e=void 0===e?!1:e;var f,g,h,k;return L(function(l){if(1==l.g)return f=Date.now()/1E3,d?l.D(2):D(l,io(a,b),3);2!=l.g&&(d=l.h);if(g=po(a,d))return l.return(null);h=!1;k=!0;e&&(a.o&&a.ma==a.h.abrFactory&&(k=!1),a.g&&"AUDIO"===a.g.nodeName&&(h=!0));return l.return(oo(a,b,c,d||null,f,!e,h,k))})}
555
- function oo(a,b,c,d,e,f,g,h){f=void 0===f?!0:f;g=void 0===g?!1:g;h=void 0===h?!0:h;var k,l,m,n,r,p,t,x,w,B,v,A,z,C,E;return L(function(H){if(1==H.g)return k=null,l=Le(a.h),g&&(l.manifest.disableVideo=!0),m=function(){return k.P&&k.o?null:k},n=function(){return m()?m().getConfiguration():a.h},r=function(J,F){m()?k.configure(J,F):a.configure(J,F)},Infinity!=a.Y.width||Infinity!=a.Y.height?H.D(2):D(H,jc(),3);2!=H.g&&(p=H.h,a.Y.width=p.width,a.Y.height=p.height);t=new ki(l,a.Y,null);x={networkingEngine:a.J,
556
- filter:function(J){var F,I;return L(function(K){if(1==K.g)return D(K,li(t,J),2);if(4!=K.g){F=K.h;if(!F)return K.D(0);I=Zn("trackschanged");return D(K,Promise.resolve(),4)}k.dispatchEvent(I);G(K)})},makeTextStreamsForClosedCaptions:function(J){return qo(a,J)},onTimelineRegionAdded:function(J){var F=k.G;a:{var I=u(F.g);for(var K=I.next();!K.done;K=I.next())if(K=K.value,K.schemeIdUri==J.schemeIdUri&&K.id==J.id&&K.startTime==J.startTime&&K.endTime==J.endTime){I=K;break a}I=null}null==I&&(F.g.add(J),J=
555
+ function jo(a,b,c,d,e){e=void 0===e?!1:e;var f,g,h,k;return L(function(l){if(1==l.g)return f=Date.now()/1E3,d?l.B(2):D(l,io(a,b),3);2!=l.g&&(d=l.h);if(g=po(a,d))return l.return(null);h=!1;k=!0;e&&(a.o&&a.ma==a.h.abrFactory&&(k=!1),a.g&&"AUDIO"===a.g.nodeName&&(h=!0));return l.return(oo(a,b,c,d||null,f,!e,h,k))})}
556
+ function oo(a,b,c,d,e,f,g,h){f=void 0===f?!0:f;g=void 0===g?!1:g;h=void 0===h?!0:h;var k,l,m,n,r,p,t,y,x,A,v,B,z,C,E;return L(function(H){if(1==H.g)return k=null,l=Le(a.h),g&&(l.manifest.disableVideo=!0),m=function(){return k.P&&k.m?null:k},n=function(){return m()?m().getConfiguration():a.h},r=function(J,F){m()?k.configure(J,F):a.configure(J,F)},Infinity!=a.Y.width||Infinity!=a.Y.height?H.B(2):D(H,jc(),3);2!=H.g&&(p=H.h,a.Y.width=p.width,a.Y.height=p.height);t=new ki(l,a.Y,null);y={networkingEngine:a.J,
557
+ filter:function(J){var F,I;return L(function(K){if(1==K.g)return D(K,li(t,J),2);if(4!=K.g){F=K.h;if(!F)return K.B(0);I=Zn("trackschanged");return D(K,Promise.resolve(),4)}k.dispatchEvent(I);G(K)})},makeTextStreamsForClosedCaptions:function(J){return qo(a,J)},onTimelineRegionAdded:function(J){var F=k.G;a:{var I=u(F.g);for(var K=I.next();!K.done;K=I.next())if(K=K.value,K.schemeIdUri==J.schemeIdUri&&K.id==J.id&&K.startTime==J.startTime&&K.endTime==J.endTime){I=K;break a}I=null}null==I&&(F.g.add(J),J=
557
558
  new Q("regionadd",new Map([["region",J]])),F.dispatchEvent(J))},onEvent:function(J){return k.dispatchEvent(J)},onError:function(J){return k.onError(J)},isLowLatencyMode:function(){return n().streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return n().streaming.autoLowLatencyMode},enableLowLatencyMode:function(){r("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&k.P&&a.j.updateDuration()},newDrmInfo:function(J){var F=k.l,I=F?F.g:null;I&&F.u&&oi(t,I.keySystem,J)},onManifestUpdated:function(){var J=
558
- (new Map).set("isLive",a.U());k.dispatchEvent(Zn("manifestupdated",J));om(k,!1,function(){if(a.A)a.A.onManifestUpdated(a.U())})},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()}};w=new ll(function(){return a.Pa()});w.addEventListener("regionadd",function(J){var F=J.region;ro(a,"timelineregionadded",F,k);om(k,!1,function(){if(a.A)a.A.onDashTimedMetadata(F)})});B=null;l.streaming.observeQualityChanges&&(B=new ml(function(){return a.Ib()}),B.addEventListener("qualitychange",function(J){var F=
559
- J.quality;J=J.position;F=(new Map).set("mediaQuality",{bandwidth:F.bandwidth,audioSamplingRate:F.audioSamplingRate,codecs:F.codecs,contentType:F.contentType,frameRate:F.frameRate,height:F.height,mimeType:F.mimeType,channelsCount:F.channelsCount,pixelAspectRatio:F.pixelAspectRatio,width:F.width}).set("position",J);a.dispatchEvent(Zn("mediaqualitychanged",F))}));v=!0;A={Zb:a.J,onError:function(J){return k.onError(J)},Pe:function(J){om(k,!0,function(){a:{var F=Zn("keystatuschanged");a.dispatchEvent(F);
559
+ (new Map).set("isLive",a.U());k.dispatchEvent(Zn("manifestupdated",J));om(k,!1,function(){if(a.A)a.A.onManifestUpdated(a.U())})},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()}};x=new ll(function(){return a.Pa()});x.addEventListener("regionadd",function(J){var F=J.region;ro(a,"timelineregionadded",F,k);om(k,!1,function(){if(a.A)a.A.onDashTimedMetadata(F)})});A=null;l.streaming.observeQualityChanges&&(A=new ml(function(){return a.Ib()}),A.addEventListener("qualitychange",function(J){var F=
560
+ J.quality;J=J.position;F=(new Map).set("mediaQuality",{bandwidth:F.bandwidth,audioSamplingRate:F.audioSamplingRate,codecs:F.codecs,contentType:F.contentType,frameRate:F.frameRate,height:F.height,mimeType:F.mimeType,channelsCount:F.channelsCount,pixelAspectRatio:F.pixelAspectRatio,width:F.width}).set("position",J);a.dispatchEvent(Zn("mediaqualitychanged",F))}));v=!0;B={Zb:a.J,onError:function(J){return k.onError(J)},Pe:function(J){om(k,!0,function(){a:{var F=Zn("keystatuschanged");a.dispatchEvent(F);
560
561
  var I=Object.keys(J);F=1==I.length&&"00"==I[0];var K=!1;if(I.length){I=u(a.i.variants);for(var M=I.next();!M.done;M=I.next()){M=M.value;var P=[];M.audio&&P.push(M.audio);M.video&&P.push(M.video);P=u(P);for(var O=P.next();!O.done;O=P.next()){var X=O.value;O=M.allowedByKeySystem;if(X.keyIds.size){M.allowedByKeySystem=!0;X=u(X.keyIds);for(var W=X.next();!W.done;W=X.next())if(W=W.value,(W=J[F?"00":W])||a.F.H)M.allowedByKeySystem=M.allowedByKeySystem&&!!W&&!qi.includes(W)}O!=M.allowedByKeySystem&&(K=!0)}}}if(K&&
561
- (so(a),!to(a)))break a;(F=a.j.j)&&!F.allowedByKeySystem&&uo(a)}})},onExpirationUpdated:function(J,F){var I=Zn("expirationupdated");k.dispatchEvent(I);if((I=k.j)&&I.onExpirationUpdated)I.onExpirationUpdated(J,F)},onEvent:function(J){k.dispatchEvent(J);"drmsessionupdate"==J.type&&v&&(v=!1,J=Date.now()/1E3-k.Ka,(a.u||k.getStats()).j=J,a.L&&uj(a.L))}};z=Tn(a,m);C=function(){return a.Rc(A)};E={config:l,zj:x,Jj:w,Ij:B,Rc:C,yj:t,networkingEngine:z,oi:f,ni:h};k=new nm(b,d,e,c,E);return H.return(k)})}
562
+ (so(a),!to(a)))break a;(F=a.j.j)&&!F.allowedByKeySystem&&uo(a)}})},onExpirationUpdated:function(J,F){var I=Zn("expirationupdated");k.dispatchEvent(I);if((I=k.j)&&I.onExpirationUpdated)I.onExpirationUpdated(J,F)},onEvent:function(J){k.dispatchEvent(J);"drmsessionupdate"==J.type&&v&&(v=!1,J=Date.now()/1E3-k.Ka,(a.u||k.getStats()).j=J,a.L&&uj(a.L))}};z=Tn(a,m);C=function(){return a.Rc(B)};E={config:l,zj:y,Jj:x,Ij:A,Rc:C,yj:t,networkingEngine:z,pi:f,oi:h};k=new nm(b,d,e,c,E);a.Sg.push(k);return H.return(k)})}
562
563
  function io(a,b){var c,d;return L(function(e){if(1==e.g)return c=a.h.manifest.retryParameters,D(e,Gm(b,a.J,c),2);d=e.h;"application/x-mpegurl"==d&&bc()&&(d="application/vnd.apple.mpegurl");return e.return(d)})}
563
564
  function po(a,b){if(!Pb())return!0;if(b){if(""==(a.g||Rb()).canPlayType(b))return!1;if(!(Pb()&&b in ti))return!0;if(ze(b)){if(a.h.streaming.preferNativeHls)return!0;if(bc()&&(a.h.drm.servers["com.apple.fps"]||a.h.drm.servers["com.apple.fps.1_0"]))return a.h.streaming.useNativeHlsForFairPlay;if(bc())return a.h.streaming.useNativeHlsOnSafari}}return!1}
564
- function go(a){var b,c,d,e,f;return L(function(g){if(1==g.g)return bo(a,"media-source"),b=a.h.textDisplayFactory,c=b(),c.configure?c.configure(a.h.textDisplayer):ld("Text displayer w/ configure",'Text displayer should have a "configure" method!'),a.Sg=b,d=vo(a.g,c,function(h,k,l){wo(a,h,k,l)},a.L),d.configure(a.h.mediaSource),e=a.h.manifest,f=e.segmentRelativeVttTiming,d.Y=f,D(g,d.M,2);a.H=d;G(g)})}
565
- function mo(a,b,c,d){var e,f,g,h,k,l,m,n,r,p,t,x,w,B,v,A,z,C,E,H,J;return L(function(F){switch(F.g){case 1:bo(a,"load");e=a.g;a.I=new Qk({ye:function(){return e.playbackRate},vc:function(){return e.defaultPlaybackRate},Gg:function(I){e.playbackRate=I},Ch:function(I){e.currentTime+=I}});f=function(){return xo(a)};g=function(){return yo(a)};a.m.s(e,"playing",f);a.m.s(e,"pause",f);a.m.s(e,"ended",f);a.m.s(e,"ratechange",g);Yn(a,a.h);a.Ja=a.h.preferredTextLanguage;a.Xb=a.h.preferredTextRole;a.Wb=a.h.preferForcedSubs;
565
+ function go(a){var b,c,d,e,f;return L(function(g){if(1==g.g)return bo(a,"media-source"),b=a.h.textDisplayFactory,c=b(),c.configure?c.configure(a.h.textDisplayer):ld("Text displayer w/ configure",'Text displayer should have a "configure" method!'),a.Tg=b,d=vo(a.g,c,function(h,k,l){wo(a,h,k,l)},a.L),d.configure(a.h.mediaSource),e=a.h.manifest,f=e.segmentRelativeVttTiming,d.Y=f,D(g,d.M,2);a.H=d;G(g)})}
566
+ function mo(a,b,c,d){var e,f,g,h,k,l,m,n,r,p,t,y,x,A,v,B,z,C,E,H,J;return L(function(F){switch(F.g){case 1:bo(a,"load");e=a.g;a.I=new Qk({ye:function(){return e.playbackRate},vc:function(){return e.defaultPlaybackRate},Gg:function(I){e.playbackRate=I},Eh:function(I){e.currentTime+=I}});f=function(){return xo(a)};g=function(){return yo(a)};a.m.s(e,"playing",f);a.m.s(e,"pause",f);a.m.s(e,"ended",f);a.m.s(e,"ratechange",g);Yn(a,a.h);a.Ja=a.h.preferredTextLanguage;a.Xb=a.h.preferredTextRole;a.Wb=a.h.preferForcedSubs;
566
567
  zo(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.o.init(function(I,K,M){a.j&&I!=a.j.j&&Ao(a,I,!0,void 0===K?!1:K,void 0===M?0:M)});a.o.setMediaElement(e);a.o.setCmsdManager(a.X);a.j=Bo(a);a.j.configure(a.h.streaming);a.l=Co;e.textTracks&&a.m.s(e.textTracks,"addtrack",function(I){if(I.track)switch(I=I.track,I.kind){case "chapters":Do(a,I)}});a.dispatchEvent(Zn("streaming"));h=c;(k=a.j.j)||h||(h=Eo(a,!0));l=[];m=k||h;n=u([m.video,m.audio]);for(r=n.next();!r.done;r=n.next())(p=r.value)&&
567
- !p.segmentIndex&&l.push(p.createSegmentIndex());if(!(0<l.length)){F.D(2);break}return D(F,Promise.all(l),2);case 2:if(a.K&&a.K.onInitialVariantChosen)a.K.onInitialVariantChosen(m);zo(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);t=function(I){a.G=Fo(a,I);a.Ua=Go(a,b);Ho(a,e,Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal))};a.h.streaming.startAtSegmentBoundary||t(a.aa);if(k){F.D(4);break}if(!a.h.streaming.startAtSegmentBoundary){F.D(5);break}x=a.i.presentationTimeline;w=a.aa||
568
- a.g.currentTime;B=x.wc();v=x.Kb();w<B?w=B:w>v&&(w=v);return D(F,Io(h,w),6);case 6:A=F.h,t(A);case 5:Ao(a,h,!0,!1,0);case 4:return a.G.wf(),z=a.ic().find(function(I){return I.active}),z||((C=uf(a.i.textStreams,a.Ja,a.Xb,a.Wb)[0]||null)&&Yk(a.u.h,C,!0),h&&(C?(h.audio&&Jo(a,h.audio,C)&&(a.$=!0),a.$&&a.H.H.setTextVisibility(!0),Ko(a)):a.$=!1),C&&(a.h.streaming.alwaysStreamText||a.Bc())&&Fl(a.j,C)),D(F,a.j.start(d),7);case 7:a.h.abr.enabled&&(a.o.enable(),Lo(a));so(a);to(a);a.i.variants.some(function(I){return I.primary});
568
+ !p.segmentIndex&&l.push(p.createSegmentIndex());if(!(0<l.length)){F.B(2);break}return D(F,Promise.all(l),2);case 2:if(a.K&&a.K.onInitialVariantChosen)a.K.onInitialVariantChosen(m);zo(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);t=function(I){a.G=Fo(a,I);a.Ua=Go(a,b);Ho(a,e,Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal))};a.h.streaming.startAtSegmentBoundary||t(a.aa);if(k){F.B(4);break}if(!a.h.streaming.startAtSegmentBoundary){F.B(5);break}y=a.i.presentationTimeline;x=a.aa||
569
+ a.g.currentTime;A=y.wc();v=y.Kb();x<A?x=A:x>v&&(x=v);return D(F,Io(h,x),6);case 6:B=F.h,t(B);case 5:Ao(a,h,!0,!1,0);case 4:return a.G.wf(),z=a.ic().find(function(I){return I.active}),z||((C=uf(a.i.textStreams,a.Ja,a.Xb,a.Wb)[0]||null)&&Yk(a.u.h,C,!0),h&&(C?(h.audio&&Jo(a,h.audio,C)&&(a.$=!0),a.$&&a.H.H.setTextVisibility(!0),Ko(a)):a.$=!1),C&&(a.h.streaming.alwaysStreamText||a.Bc())&&Fl(a.j,C)),D(F,a.j.start(d),7);case 7:a.h.abr.enabled&&(a.o.enable(),Lo(a));so(a);to(a);a.i.variants.some(function(I){return I.primary});
569
570
  (E=a.U())&&(a.h.streaming.liveSync||a.i.serviceDescription||a.h.streaming.liveSyncPanicMode)||a.h.streaming.vodDynamicPlaybackRate?(H=function(){return Mo(a)},a.m.s(e,"timeupdate",H)):E||(J=function(){return No(a)},a.m.s(e,"timeupdate",J),No(a));if(a.A)a.A.onManifestUpdated(E);a.Ka=!0;a.m.na(e,"loadedmetadata",function(){a.u.m=Date.now()/1E3-b});G(F)}})}
570
571
  function ko(a,b){var c,d,e,f;return L(function(g){return 1==g.g?(c=Ic,d=Date.now()/1E3,e=!0,a.F=a.Rc({Zb:a.J,onError:function(h){fo(a,h)},Pe:function(){},onExpirationUpdated:function(){var h=Zn("expirationupdated");a.dispatchEvent(h)},onEvent:function(h){a.dispatchEvent(h);"drmsessionupdate"==h.type&&e&&(e=!1,a.u.j=Date.now()/1E3-d)}}),a.F.configure(a.h.drm),f={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:{id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
571
572
  segmentIndex:null,mimeType:b?we(b):"",codecs:b?xe(b):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:c.va,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},f.video.fullMimeTypes.add(ie(f.video.mimeType,
572
573
  f.video.codecs)),a.F.Y=!0,D(g,Dh(a.F,[f],[]),2)):D(g,a.F.Pc(a.g),0)})}
573
- function no(a,b,c){var d,e,f,g,h,k,l,m,n,r;return L(function(p){if(1==p.g)return bo(a,"src-equals"),d=a.g,a.G=new Gk(d),e=!1,a.Vb.push(function(){e=!0}),null!=a.aa&&a.G.xf(a.aa),a.I=new Qk({ye:function(){return d.playbackRate},vc:function(){return d.defaultPlaybackRate},Gg:function(t){d.playbackRate=t},Ch:function(t){d.currentTime+=t}}),f=a.h.streaming.rebufferingGoal,Ho(a,d,f),g=function(){return xo(a)},h=function(){return yo(a)},a.m.s(d,"playing",g),a.m.s(d,"pause",g),a.m.s(d,"ended",g),a.m.s(d,
574
+ function no(a,b,c){var d,e,f,g,h,k,l,m,n,r;return L(function(p){if(1==p.g)return bo(a,"src-equals"),d=a.g,a.G=new Gk(d),e=!1,a.Vb.push(function(){e=!0}),null!=a.aa&&a.G.xf(a.aa),a.I=new Qk({ye:function(){return d.playbackRate},vc:function(){return d.defaultPlaybackRate},Gg:function(t){d.playbackRate=t},Eh:function(t){d.currentTime+=t}}),f=a.h.streaming.rebufferingGoal,Ho(a,d,f),g=function(){return xo(a)},h=function(){return yo(a)},a.m.s(d,"playing",g),a.m.s(d,"pause",g),a.m.s(d,"ended",g),a.m.s(d,
574
575
  "ratechange",h),"none"!=d.preload&&a.m.na(d,"loadedmetadata",function(){a.u.m=Date.now()/1E3-b}),d.audioTracks&&(a.m.s(d.audioTracks,"addtrack",function(){return so(a)}),a.m.s(d.audioTracks,"removetrack",function(){return so(a)}),a.m.s(d.audioTracks,"change",function(){return so(a)})),d.textTracks&&(a.m.s(d.textTracks,"addtrack",function(t){if(t.track)switch(t=t.track,t.kind){case "metadata":Oo(a,t);break;case "chapters":Do(a,t);break;default:so(a)}}),a.m.s(d.textTracks,"removetrack",function(){return so(a)}),
575
- a.m.s(d.textTracks,"change",function(){return so(a)})),d.src=cn(a.P,a.oa,c),(Vb()||Yb())&&d.load(),"none"!=d.preload&&!d.autoplay&&ze(c)&&gc()&&d.load(),a.l=Po,a.dispatchEvent(Zn("streaming")),k=new dg,xk(d,HTMLMediaElement.HAVE_METADATA,a.m,function(){a.G.wf();k.resolve()}),xk(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.m,function(){var t;return L(function(x){if(1==x.g)return Qo(a),t=Ro(a),t.find(function(w){return"disabled"!=w.mode})?(0<t.length&&(a.$=!0),x.D(2)):D(x,new Promise(function(w){a.m.na(d.textTracks,
576
- "change",w);(new Ob(w)).V(1)}),2);if(e)return x.return();So(a);G(x)})}),d.error?k.reject(eo(a)):"none"==d.preload&&(Ua('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.'),k.resolve()),a.m.na(d,"error",function(){k.reject(eo(a))}),D(p,k,2);(l=a.U())&&(a.h.streaming.liveSync||a.h.streaming.liveSyncPanicMode)||a.h.streaming.vodDynamicPlaybackRate?
576
+ a.m.s(d.textTracks,"change",function(){return so(a)})),d.src=cn(a.P,a.oa,c),(Vb()||Yb())&&d.load(),"none"!=d.preload&&!d.autoplay&&ze(c)&&gc()&&d.load(),a.l=Po,a.dispatchEvent(Zn("streaming")),k=new dg,xk(d,HTMLMediaElement.HAVE_METADATA,a.m,function(){a.G.wf();k.resolve()}),xk(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.m,function(){var t;return L(function(y){if(1==y.g)return Qo(a),t=Ro(a),t.find(function(x){return"disabled"!=x.mode})?(0<t.length&&(a.$=!0),y.B(2)):D(y,new Promise(function(x){a.m.na(d.textTracks,
577
+ "change",x);(new Ob(x)).V(1)}),2);if(e)return y.return();So(a);G(y)})}),d.error?k.reject(eo(a)):"none"==d.preload&&(Ua('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.'),k.resolve()),a.m.na(d,"error",function(){k.reject(eo(a))}),D(p,k,2);(l=a.U())&&(a.h.streaming.liveSync||a.h.streaming.liveSyncPanicMode)||a.h.streaming.vodDynamicPlaybackRate?
577
578
  (m=function(){return Mo(a)},a.m.s(d,"timeupdate",m)):l||(n=function(){return No(a)},a.m.s(d,"timeupdate",n),No(a));a.A&&(a.A.onManifestUpdated(l),l&&(r=a.Pa().end,a.m.s(d,"progress",function(){var t=a.Pa().end;r!=t&&(a.A.onManifestUpdated(a.U()),r=t)})));a.Ka=!0;G(p)})}function Qo(a){var b=a.h.preferredAudioLanguage;""!=b&&a.Xe(b,a.h.preferredVariantRole)}function So(a){var b=a.h.preferredTextLanguage;""!=b&&a.Ag(b,a.h.preferredTextRole,a.h.preferForcedSubs)}
578
579
  function Oo(a,b){if("metadata"==b.kind){b.mode="hidden";a.m.s(b,"cuechange",function(){if(b.activeCues)for(var d=u(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,To(a,e.startTime,e.endTime,e.type,e.value),a.A)a.A.onCueMetadataChange(e.value)});var c=(new Ob(function(){var d=Uo(a);d=u(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Ia().V(.5);a.Vb.push(function(){c.stop()})}}
579
580
  function wo(a,b,c,d){b=u(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.data&&e.cueTime&&e.frames){var f=e.cueTime+c,g=d;g&&f>g&&(g=f);for(var h=u(e.frames),k=h.next();!k.done;k=h.next())To(a,f,g,"org.id3",k.value);if(a.A)a.A.onHlsTimedMetadata(e,f)}}function To(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(Zn("metadata",b))}
580
581
  function Do(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new Ob(function(){b.mode="hidden"})).Ia().V(.5);a.Vb.push(function(){c.stop()})}}q.Nj=function(){for(var a=this.S;a.g;)a.release()};q.Rc=function(a){return new wh(a)};
581
582
  function Tn(a,b){function c(e){b()?b().dispatchEvent(e):a.dispatchEvent(e)}function d(e){b()?om(b(),!0,e):e()}b||(b=function(){return null});return new ng(function(e,f,g,h){var k=b()?b().i:a.o;k&&k.segmentDownloaded(e,f,g,h)},function(e,f,g){f=(new Map).set("headers",e).set("request",f).set("requestType",g);c(Zn("downloadheadersreceived",f));d(function(){if(a.X){var h=a.X;if(h.h.enabled){var k=e["cmsd-static"];if(k)try{var l=new Map,m=k.split(",");for(k=0;k<m.length;k++){var n=m[k].split("=");l.set(n[0],
582
- Nn(n[1]))}}catch(w){}if(l=e["cmsd-dynamic"]){try{var r=new Map,p=l.split(";");for(l=1;l<p.length;l++){var t=p[l].split("=");r.set(t[0],Nn(t[1]))}var x=r}catch(w){x=null}x&&(h.g=x)}}}})},function(e,f,g,h){e=(new Map).set("request",e).set("error",f).set("httpResponseCode",g).set("aborted",h);c(Zn("downloadfailed",e))},function(e,f,g){d(function(){var h=a.P,k=g;k=void 0===k?{}:k;if(h.g.enabled)if("HEAD"===f.method)kn(h,f);else switch(e){case 0:try{if(h.g.enabled){if(k.type){a:{switch(k.type){case 4:var l=
583
- "d";break a;case 3:case 2:l="h";break a;case 5:l="s";break a}l=void 0}h.m=l}kn(h,f,{ot:gn,su:!h.i})}}catch(O){Va("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",O)}break;case xg:try{if(h.g.enabled){var m=k.segment;l=0;m&&(l=m.endTime-m.startTime);var n={d:1E3*l,st:h.h.U()?"l":"v"};n.ot=on(k);var r=n.ot===ln||n.ot===en||n.ot===fn||n.ot===qn,p=k.stream;if(p){var t=h.h.Ra();if(r&&(n.bl=sn(h,p.type),n.ot!==qn)){var x=tn(h,p.type);n.dl=t?x/Math.abs(t):x}p.bandwidth&&(n.br=p.bandwidth/1E3);
584
- if(p.segmentIndex&&m){var w=p.segmentIndex.Ub(m.endTime,!0,0>t);if(w){var B=w.next().value;if(B&&B!=m){if(!Ad(m.ka(),B.ka())){var v=B.ka()[0],A=f.uris[0],z=new URL(v),C=new URL(A);if(z.origin!==C.origin)var E=v;else{for(var H=z.pathname.split("/").slice(1),J=C.pathname.split("/").slice(1,-1);H[0]===J[0];)H.shift(),J.shift();for(;J.length;)J.shift(),H.unshift("..");E=H.join("/")}n.nor=E}if((B.Ta||B.za)&&(m.Ta!=B.Ta||m.za!=B.za)){var F=B.Ta+"-";B.za&&(F+=B.za);n.nrr=F}}}var I=h.h.Ra()||1,K=tn(h,p.type)||
583
+ Nn(n[1]))}}catch(x){}if(l=e["cmsd-dynamic"]){try{var r=new Map,p=l.split(";");for(l=1;l<p.length;l++){var t=p[l].split("=");r.set(t[0],Nn(t[1]))}var y=r}catch(x){y=null}y&&(h.g=y)}}}})},function(e,f,g,h){e=(new Map).set("request",e).set("error",f).set("httpResponseCode",g).set("aborted",h);c(Zn("downloadfailed",e))},function(e,f,g){d(function(){var h=a.P,k=g;k=void 0===k?{}:k;if(h.g.enabled)if("HEAD"===f.method)kn(h,f);else switch(e){case 0:try{if(h.g.enabled){if(k.type){a:{switch(k.type){case 4:var l=
584
+ "d";break a;case 3:case 2:l="h";break a;case 5:l="s";break a}l=void 0}h.m=l}kn(h,f,{ot:gn,su:!h.i})}}catch(O){Va("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",O)}break;case xg:try{if(h.g.enabled){var m=k.segment;l=0;m&&(l=m.endTime-m.startTime);var n={d:1E3*l,st:h.h.U()?"l":"v"};n.ot=on(k);var r=n.ot===ln||n.ot===en||n.ot===fn||n.ot===qn,p=k.stream;if(p){var t=h.h.Ra();if(r&&(n.bl=sn(h,p.type),n.ot!==qn)){var y=tn(h,p.type);n.dl=t?y/Math.abs(t):y}p.bandwidth&&(n.br=p.bandwidth/1E3);
585
+ if(p.segmentIndex&&m){var x=p.segmentIndex.Ub(m.endTime,!0,0>t);if(x){var A=x.next().value;if(A&&A!=m){if(!yd(m.ka(),A.ka())){var v=A.ka()[0],B=f.uris[0],z=new URL(v),C=new URL(B);if(z.origin!==C.origin)var E=v;else{for(var H=z.pathname.split("/").slice(1),J=C.pathname.split("/").slice(1,-1);H[0]===J[0];)H.shift(),J.shift();for(;J.length;)J.shift(),H.unshift("..");E=H.join("/")}n.nor=E}if((A.Ta||A.za)&&(m.Ta!=A.Ta||m.za!=A.za)){var F=A.Ta+"-";A.za&&(F+=A.za);n.nrr=F}}}var I=h.h.Ra()||1,K=tn(h,p.type)||
585
586
  500,M=p.bandwidth;var P=M?M*(m.endTime-m.startTime)/1E3/(K/I/1E3)*h.g.rtpSafetyFactor:NaN;isNaN(P)||(n.rtp=P)}}r&&n.ot!==qn&&(n.tb=un(h,n.ot)/1E3);kn(h,f,n)}}catch(O){Va("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",O)}break;case 2:case 5:case 6:kn(h,f,{ot:"k"});break;case 4:kn(h,f,{ot:"o"})}})},function(e,f,g,h){(e=b()?b().j:a.K)&&e.banLocation&&e.banLocation(h)},function(e,f){e=f.data.byteLength;if(f=b()?b().getStats():a.u)f.me=isNaN(f.me)?e:f.me+e})}
586
587
  function Fo(a,b){return new Hk(a.g,a.i,a.h.streaming,b,function(){a.Ua&&Tk(a.Ua,!0);a.j&&a.j.Wd();a.M&&Vo(a)},function(c){return a.dispatchEvent(c)})}
587
588
  function Go(a,b){b=new Bm(a.$a,a.U()||0<b);b.addEventListener("enter",function(d){ro(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){ro(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(ro(a,"timelineregionenter",e),ro(a,"timelineregionexit",e))});var c=new Sk(a.g);c.g.add(b);a.Za&&c.g.add(a.Za);return c}
588
589
  function Ho(a,b,c){a.M=new Xf;a.M.g=Zf;$f(a.M,c,Math.min(.5,c/2));ho(a);a.Se=(new Ob(function(){Vo(a)})).ya(.25);a.m.s(b,"waiting",function(){return Vo(a)});a.m.s(b,"stalled",function(){return Vo(a)});a.m.s(b,"canplaythrough",function(){return Vo(a)});a.m.s(b,"progress",function(){return Vo(a)})}
589
590
  function Vo(a){switch(a.l){case Po:if(a.g.ended)var b=!0;else{var c=Ei(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Co:a:if(a.g.ended||Lj(a.H))b=!0;else{if(a.i.presentationTimeline.U()){c=a.i.presentationTimeline.hc();var d=Ei(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Gi(a.g.buffered,a.g.currentTime);c=a.M;var e=b,f=c.i.get(c.g);b=c.g;d=e||d>=f?Yf:Zf;c.g=d;(b=b!=d)&&d===Yf&&(c.h=Date.now());b&&ho(a)}function vo(a,b,c,d){return new Cj(a,b,c,d)}
590
591
  function Sn(a){return new bn({getBandwidthEstimate:function(){return a.o?a.o.getBandwidthEstimate():NaN},Ib:function(){return a.Ib()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Ra:function(){return a.Ra()},fc:function(){return a.fc()},rb:function(){return a.rb()},U:function(){return a.U()}},a.h.cmcd)}
591
- function Bo(a){return new rl(a.i,{xe:function(){return a.G?a.G.le():0},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()},Ra:function(){return a.Ra()},ea:a.H,Zb:a.J,onError:function(b){return fo(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Ej:function(){a.K&&a.K.update&&a.K.update()},rg:function(b,c){var d=b.startTime,e=b.endTime,f=c.type;if(a.G){a.G.Dh();var g=Mj(a.H,f);!a.U()&&a.g.paused&&null!=g&&0<g&&a.G.le()<g&&a.G.xf(g)}Vo(a);d=(new Map).set("start",d).set("end",e).set("contentType",
592
- f);a.dispatchEvent(Zn("segmentappended",d));a.o&&c.fastSwitching&&b.Ud&&b.Fe&&a.o.trySuggestStreams()},Dj:function(b,c){(c=c.ng)&&a.Za&&ol(a.Za,c,b)},Zg:function(b,c){var d=a.F;if(d.h.parseInbandPsshEnabled&&!d.H&&["audio","video"].includes(b)){c=new Rg(Fb(c));var e=0,f=u(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=u(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;Mh(d,"cenc",e);d=d.l}}else d=Promise.resolve();
592
+ function Bo(a){return new rl(a.i,{xe:function(){return a.G?a.G.le():0},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()},Ra:function(){return a.Ra()},ea:a.H,Zb:a.J,onError:function(b){return fo(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Ej:function(){a.K&&a.K.update&&a.K.update()},rg:function(b,c){var d=b.startTime,e=b.endTime,f=c.type;if(a.G){a.G.Fh();var g=Mj(a.H,f);!a.U()&&a.g.paused&&null!=g&&0<g&&a.G.le()<g&&a.G.xf(g)}Vo(a);d=(new Map).set("start",d).set("end",e).set("contentType",
593
+ f);a.dispatchEvent(Zn("segmentappended",d));a.o&&c.fastSwitching&&b.Ud&&b.Fe&&a.o.trySuggestStreams()},Dj:function(b,c){(c=c.ng)&&a.Za&&ol(a.Za,c,b)},ah:function(b,c){var d=a.F;if(d.h.parseInbandPsshEnabled&&!d.H&&["audio","video"].includes(b)){c=new Rg(Fb(c));var e=0,f=u(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=u(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;Mh(d,"cenc",e);d=d.l}}else d=Promise.resolve();
593
594
  return d},Fj:function(b,c,d){wo(a,b,c,d)},se:function(b,c){return a.se(b,c)}})}
594
595
  q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=am(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(ld("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux"in a.streaming&&(ld("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux);
595
596
  a.streaming&&"useNativeHlsOnSafari"in a.streaming&&ld("streaming.useNativeHlsOnSafari configuration","Please Use streaming.useNativeHlsForFairPlay or streaming.preferNativeHls instead.");if(a.mediaSource&&"sourceBufferExtraFeatures"in a.mediaSource){ld("mediaSource.sourceBufferExtraFeatures configuration","Please Use mediaSource.addExtraFeaturesToSourceBuffer() instead.");var c=a.mediaSource.sourceBufferExtraFeatures;a.mediaSource.addExtraFeaturesToSourceBuffer=function(){return c};delete a.mediaSource.sourceBufferExtraFeatures}a.streaming&&
596
597
  a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=.01),void 0==a.streaming.segmentPrefetchLimit&&(a.streaming.segmentPrefetchLimit=2),void 0==a.streaming.updateIntervalSeconds&&(a.streaming.updateIntervalSeconds=.1),void 0==a.streaming.retryParameters&&(a.streaming.retryParameters={}),void 0==a.streaming.retryParameters.baseDelay&&(a.streaming.retryParameters.baseDelay=
597
598
  100),void 0==a.manifest&&(a.manifest={}),void 0==a.manifest.retryParameters&&(a.manifest.retryParameters={}),void 0==a.manifest.retryParameters.baseDelay&&(a.manifest.retryParameters.baseDelay=100),void 0==a.drm&&(a.drm={}),void 0==a.drm.retryParameters&&(a.drm.retryParameters={}),void 0==a.drm.retryParameters.baseDelay&&(a.drm.retryParameters.baseDelay=100));var d=mm(this.h,a,Rn(this));Wo(this);return d};
598
- function Wo(a){a.Le=new ki(a.h,a.Y,a.F);if(a.K){var b=Le(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.K.configure(b)}a.F&&a.F.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{a.l!=$n&&ni(a.Le,a.i)&&so(a)}catch(f){fo(a,f)}a.o&&to(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||uo(a)}a.J&&a.J.Fg(a.h.streaming.forceHTTPS);if(a.H)if(a.H.configure(a.h.mediaSource),a.H.Y=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Sg!=b){var c=b();c.configure?
599
- c.configure(a.h.textDisplayer):ld("Text displayer w/ configure",'Text displayer should have a "configure" method!');var d=a.H,e=d.H;d.H=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.g&&(d.g.j=c);a.Sg=b;a.j&&(b=a.j,(c=b.i.get(Gc))&&Dl(b,c.stream,!0,0,!0))}else b=a.H.H,b.configure&&b.configure(a.h.textDisplayer);a.o&&(a.o.configure(a.h.abr),a.h.abr.enabled?a.o.enable():a.o.disable(),Lo(a));a.M&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),$f(a.M,b,Math.min(.5,
599
+ function Wo(a){a.Le=new ki(a.h,a.Y,a.F);if(a.K){var b=Le(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.K.configure(b)}a.F&&a.F.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{a.l!=$n&&ni(a.Le,a.i)&&so(a)}catch(f){fo(a,f)}a.o&&to(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||uo(a)}a.J&&a.J.Fg(a.h.streaming.forceHTTPS);if(a.H)if(a.H.configure(a.h.mediaSource),a.H.Y=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Tg!=b){var c=b();c.configure?
600
+ c.configure(a.h.textDisplayer):ld("Text displayer w/ configure",'Text displayer should have a "configure" method!');var d=a.H,e=d.H;d.H=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.g&&(d.g.j=c);a.Tg=b;a.j&&(b=a.j,(c=b.i.get(Gc))&&Dl(b,c.stream,!0,0,!0))}else b=a.H.H,b.configure&&b.configure(a.h.textDisplayer);a.o&&(a.o.configure(a.h.abr),a.h.abr.enabled?a.o.enable():a.o.disable(),Lo(a));a.M&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),$f(a.M,b,Math.min(.5,
600
601
  b/2)));a.i&&zo(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.A&&a.A.configure(a.h.ads);a.P&&a.P.configure(a.h.cmcd);a.X&&a.X.configure(a.h.cmsd)}q.getConfiguration=function(){var a=Rn(this);mm(a,this.h,Rn(this));return a};
601
- q.lh=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.Pa().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};q.Rj=function(){for(var a in this.h)delete this.h[a];mm(this.h,Rn(this),Rn(this));Wo(this)};q.Id=function(){return this.l};q.Yf=function(){return this.i?this.i.type:null};q.Ui=function(){return this.g};
602
+ q.nh=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.Pa().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};q.Rj=function(){for(var a in this.h)delete this.h[a];mm(this.h,Rn(this),Rn(this));Wo(this)};q.Id=function(){return this.l};q.Yf=function(){return this.i?this.i.type:null};q.Ui=function(){return this.g};
602
603
  q.fc=function(){return this.J};q.Fd=function(){return this.oa};q.ue=function(){return this.A?this.A:null};q.U=function(){return this.i?this.i.presentationTimeline.U():this.g&&this.g.src?Infinity==this.g.duration:!1};q.Ac=function(){return this.i?this.i.presentationTimeline.Ac():!1};q.Yc=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.g&&this.g.src?this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight:!1};
603
604
  q.Pa=function(){if(this.i){if(!this.Ka&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.wc(),end:a.Kb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};q.jj=function(){this.U()&&(this.g.currentTime=this.Pa().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.F?this.F.g:null};q.Hd=function(){return this.F?this.F.Hd():Infinity};
604
605
  q.Vf=function(){return this.F?this.F.Vf():[]};q.we=function(){return this.F?this.F.we():{}};q.Od=function(){return this.M?this.M.g==Zf:!1};q.Ra=function(){return this.g?this.I?this.I.i:1:0};
@@ -606,47 +607,47 @@ q.Hc=function(a){var b=this;0==a?Ua("A trick play rate of 0 is unsupported!"):(t
606
607
  q.Qc=function(){var a=this.I.vc();this.l==Po&&this.I.set(a);this.l==Co&&(this.I.set(a),this.o.playbackRateChanged(a),Cl(this.j,!1));this.ra.mb()};
607
608
  q.rb=function(){if(this.i){for(var a=this.j?this.j.j:null,b=[],c=0,d=u(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,sf(e)){var f=kf(e);f.active=e==a;f.active||1==c||null==a||e.video!=a.video||e.audio!=a.audio||(f.active=!0);f.active&&c++;b.push(f)}return b}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map(function(g){return rf(g)}):[]};
608
609
  q.ic=function(){if(this.i){for(var a=this.j?this.j.u:null,b=[],c=u(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=lf(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Ro(this).map(function(f){return pf(f)}):[]};q.ve=function(){var a=this.Rd;this.i&&(a=this.i.imageStreams);return a.map(function(b){return mf(b)})};
609
- q.Ai=function(a){var b=this,c,d,e,f;return L(function(g){if(1==g.g){if(b.l!=Co&&b.l!=Po)return g.return(null);c=b.Rd;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.D(2):D(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],d.segmentIndex.Tc(function(h){var k=Xo(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.tc;for(var l=h.i-h.startTime,m=0;m<k;m++)e.push(b.$f(a,h.startTime+l*m/k))}}),D(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
610
+ q.Bi=function(a){var b=this,c,d,e,f;return L(function(g){if(1==g.g){if(b.l!=Co&&b.l!=Po)return g.return(null);c=b.Rd;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.B(2):D(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],d.segmentIndex.Tc(function(h){var k=Xo(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.tc;for(var l=h.i-h.startTime,m=0;m<k;m++)e.push(b.$f(a,h.startTime+l*m/k))}}),D(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
610
611
  function Xo(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{tc:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
611
- q.$f=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,p,t,x,w,B,v,A,z;return L(function(C){if(1==C.g){if(c.l!=Co&&c.l!=Po)return C.return(null);d=c.Rd;c.i&&(d=c.i.imageStreams);return(e=d.find(function(E){return E.id==a}))?e.segmentIndex?C.D(2):D(C,e.createSegmentIndex(),2):C.return(null)}f=e.segmentIndex.find(b);if(null==f)return C.return(null);g=e.segmentIndex.get(f);h=Xo(g.tilesLayout||e.tilesLayout);if(!h)return C.return(null);k=e.width||0;l=e.height||0;m=k/h.tc;n=l/h.rows;r=h.tc*h.rows;p=g.i-g.startTime;
612
- t=g.A||p/r;x=g.startTime;B=w=0;1<r&&(v=Math.floor((b-g.startTime)/t),x=g.startTime+v*t,w=v%h.tc*m,B=Math.floor(v/h.tc)*n);A=!1;if(z=g.u)A=!0,n=z.height,w=z.positionX,B=z.positionY,m=z.width;return C.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:w,positionY:B,startTime:x,duration:t,uris:g.ka(),width:m,sprite:A})})};
612
+ q.$f=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,p,t,y,x,A,v,B,z;return L(function(C){if(1==C.g){if(c.l!=Co&&c.l!=Po)return C.return(null);d=c.Rd;c.i&&(d=c.i.imageStreams);return(e=d.find(function(E){return E.id==a}))?e.segmentIndex?C.B(2):D(C,e.createSegmentIndex(),2):C.return(null)}f=e.segmentIndex.find(b);if(null==f)return C.return(null);g=e.segmentIndex.get(f);h=Xo(g.tilesLayout||e.tilesLayout);if(!h)return C.return(null);k=e.width||0;l=e.height||0;m=k/h.tc;n=l/h.rows;r=h.tc*h.rows;p=g.i-g.startTime;
613
+ t=g.A||p/r;y=g.startTime;A=x=0;1<r&&(v=Math.floor((b-g.startTime)/t),y=g.startTime+v*t,x=v%h.tc*m,A=Math.floor(v/h.tc)*n);B=!1;if(z=g.u)B=!0,n=z.height,x=z.positionX,A=z.positionY,m=z.width;return C.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:x,positionY:A,startTime:y,duration:t,uris:g.ka(),width:m,sprite:B})})};
613
614
  q.Bg=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.u&&(Yk(this.u.h,b,!1),Fl(this.j,b),Yo(this),this.Ja=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Ro(this);b=u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,nf(c)==a.id?c.mode=this.$?"showing":"hidden":c.mode="disabled";Yo(this)}};
614
615
  q.Ye=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){this.h.abr.enabled&&Ua("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var d=this.i.variants.find(function(e){return e.id==a.id});d&&sf(d)&&(Ao(this,d,!1,b,c),this.qa=new Jf(d,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),to(this))}else if(this.g&&this.g.audioTracks)for(b=
615
- Array.from(this.g.audioTracks),b=u(b),c=b.next();!c.done;c=b.next())if(c=c.value,nf(c)==a.id){Zo(this,c);break}};q.Ci=function(){return $o(this.rb())};q.aj=function(){return $o(this.ic())};q.Bi=function(){return Array.from(ap(this.rb()))};q.$i=function(){return Array.from(ap(this.ic()))};
616
+ Array.from(this.g.audioTracks),b=u(b),c=b.next();!c.done;c=b.next())if(c=c.value,nf(c)==a.id){Zo(this,c);break}};q.Di=function(){return $o(this.rb())};q.aj=function(){return $o(this.ic())};q.Ci=function(){return Array.from(ap(this.rb()))};q.$i=function(){return Array.from(ap(this.ic()))};
616
617
  q.Xe=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?0:d;if(this.i&&this.G){this.qa=new Kf(a,b||"",c,"",!1,"","","",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);a=function(g,h){return g.video||h.video?g.video&&h.video?Math.abs((g.video.height||0)-(h.video.height||0))+Math.abs((g.video.width||0)-(h.video.width||0)):Infinity:0};b=this.j.j;var e=this.qa.create(this.i.variants);c=null;e=u(e.values());for(var f=e.next();!f.done;f=e.next())if(f=f.value,!c||a(c,b)>a(f,
617
618
  b))c=f;c?(a=kf(c),this.Ye(a,!0,d)):uo(this)}else this.g&&this.g.audioTracks&&(d=uf(this.rb(),a,b||"",!1)[0])&&this.Ye(d)};q.Ag=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.G){if(this.Ja=a,this.Xb=b||"",this.Wb=c,(a=uf(this.i.textStreams,this.Ja,this.Xb,this.Wb)[0]||null)&&a!=this.j.u&&(Yk(this.u.h,a,!1),this.h.streaming.alwaysStreamText||this.Bc()))Fl(this.j,a),Yo(this)}else(a=uf(this.ic(),a,b||"",c)[0])&&this.Bg(a)};
618
619
  q.Yj=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.G){for(var d=null,e=u(this.i.variants),f=e.next();!f.done;f=e.next())if(f=f.value,f.audio.label==a){d=f;break}null!=d&&(this.qa=new Kf(d.language,"",0,"",!1,"",a,"",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),uo(this,b,c))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=u(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&Zo(this,b)}};
619
- q.Bc=function(){var a=this.$;return this.H&&this.l==Co?this.H.H.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Ro(this).some(function(b){return"showing"==b.mode}):a};q.mh=function(){return this.g&&this.g.src&&this.g.textTracks?bp(this).map(function(a){return pf(a)}):[]};
620
- q.Ei=function(a){if(!this.g||!this.g.src||!this.g.textTracks)return[];var b=Mc(a),c=bp(this).filter(function(h){return Mc(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=u(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=u(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
620
+ q.Bc=function(){var a=this.$;return this.H&&this.l==Co?this.H.H.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Ro(this).some(function(b){return"showing"==b.mode}):a};q.oh=function(){return this.g&&this.g.src&&this.g.textTracks?bp(this).map(function(a){return pf(a)}):[]};
621
+ q.Fi=function(a){if(!this.g||!this.g.src||!this.g.textTracks)return[];var b=Mc(a),c=bp(this).filter(function(h){return Mc(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=u(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=u(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
621
622
  function Ro(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function Uo(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function bp(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
622
623
  q.bf=function(a){a=!!a;if(this.$!=a){this.$=a;if(this.l==Co)this.H.H.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.u||(a=uf(this.i.textStreams,this.Ja,this.Xb,this.Wb),0<a.length&&(Fl(this.j,a[0]),Yo(this))):Bl(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=Ro(this);b=u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Ko(this)}};
623
- q.Vi=function(){if(this.G)var a=this.G.le();else{if(null==this.aa)return new Date;a=this.aa}if(this.i){var b=this.i.presentationTimeline;return new Date(1E3*((b.F||b.i)+a))}return this.g&&this.g.getStartDate?(b=this.g.getStartDate(),isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)):null};q.ph=function(){if(this.i){var a=this.i.presentationTimeline;return new Date(1E3*(a.F||a.i))}return this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:a):null};
624
+ q.Vi=function(){if(this.G)var a=this.G.le();else{if(null==this.aa)return new Date;a=this.aa}if(this.i){var b=this.i.presentationTimeline;return new Date(1E3*((b.F||b.i)+a))}return this.g&&this.g.getStartDate?(b=this.g.getStartDate(),isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)):null};q.rh=function(){if(this.i){var a=this.i.presentationTimeline;return new Date(1E3*(a.F||a.i))}return this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:a):null};
624
625
  q.ze=function(){return this.U()?this.i?this.i.presentationTimeline.ze():null:null};q.Ib=function(){if(this.l==Co)return this.H.Ib();var a={total:[],audio:[],video:[],text:[]};this.l==Po&&(a.total=Hi(this.g.buffered));return a};
625
626
  q.getStats=function(){if(this.l!=Co&&this.l!=Po)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,bytesDownloaded:NaN,switchHistory:[],stateHistory:[]};xo(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=
626
- this.u;b=Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.G&&(this.u.M=this.G.Ug(),this.u.O=this.G.Vg());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.u;var d=Number(c.totalVideoFrames);b.L=Number(c.droppedVideoFrames);b.K=d;this.u.J=Number(c.corruptedVideoFrames)}this.F?(c=this.F,c=c.K?c.K:NaN):c=NaN;this.u.u=c;if(this.l==Co){c=this.j.j;b=this.j.u;if(c){d=this.I?this.I.i:1;var e=d*c.bandwidth;b&&b.bandwidth&&(e+=d*b.bandwidth);this.u.F=e}c&&c.video&&(b=this.u,d=c.video.height||
627
- NaN,b.o=c.video.width||NaN,b.l=d);this.U()&&(c=this.ph().valueOf()+1E3*a.currentTime,this.u.G=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.u.I=this.i.presentationTimeline.g);c=this.o.getBandwidthEstimate();this.u.A=c}this.l==Po&&(c=this.u,b=a.videoHeight||NaN,c.o=a.videoWidth||NaN,c.l=b);var f=this.u;a=f.o;c=f.l;b=f.F;d=f.K;e=f.L;var g=f.J,h=f.O,k=f.M,l=f.A,m=f.i,n=f.m,r=f.H,p=f.j,t=Vk(f.g,"playing"),x=Vk(f.g,"paused"),w=Vk(f.g,"buffering"),B=f.u,v=f.G,A=f.I,z=f.me,C=Wk(f.g),E=[];
628
- f=u(f.h.g);for(var H=f.next();!H.done;H=f.next())H=H.value,E.push({timestamp:H.timestamp,id:H.id,type:H.type,fromAdaptation:H.fromAdaptation,bandwidth:H.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:e,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:r,drmTimeSeconds:p,playTime:t,pauseTime:x,bufferingTime:w,licenseTime:B,liveLatency:v,maxSegmentDuration:A,bytesDownloaded:z,stateHistory:C,
627
+ this.u;b=Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.G&&(this.u.M=this.G.Wg(),this.u.O=this.G.Xg());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.u;var d=Number(c.totalVideoFrames);b.L=Number(c.droppedVideoFrames);b.K=d;this.u.J=Number(c.corruptedVideoFrames)}this.F?(c=this.F,c=c.K?c.K:NaN):c=NaN;this.u.u=c;if(this.l==Co){c=this.j.j;b=this.j.u;if(c){d=this.I?this.I.i:1;var e=d*c.bandwidth;b&&b.bandwidth&&(e+=d*b.bandwidth);this.u.F=e}c&&c.video&&(b=this.u,d=c.video.height||
628
+ NaN,b.o=c.video.width||NaN,b.l=d);this.U()&&(c=this.rh().valueOf()+1E3*a.currentTime,this.u.G=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.u.I=this.i.presentationTimeline.g);c=this.o.getBandwidthEstimate();this.u.A=c}this.l==Po&&(c=this.u,b=a.videoHeight||NaN,c.o=a.videoWidth||NaN,c.l=b);var f=this.u;a=f.o;c=f.l;b=f.F;d=f.K;e=f.L;var g=f.J,h=f.O,k=f.M,l=f.A,m=f.i,n=f.m,r=f.H,p=f.j,t=Vk(f.g,"playing"),y=Vk(f.g,"paused"),x=Vk(f.g,"buffering"),A=f.u,v=f.G,B=f.I,z=f.me,C=Wk(f.g),E=[];
629
+ f=u(f.h.g);for(var H=f.next();!H.done;H=f.next())H=H.value,E.push({timestamp:H.timestamp,id:H.id,type:H.type,fromAdaptation:H.fromAdaptation,bandwidth:H.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:e,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:r,drmTimeSeconds:p,playTime:t,pauseTime:y,bufferingTime:x,licenseTime:A,liveLatency:v,maxSegmentDuration:B,bytesDownloaded:z,stateHistory:C,
629
630
  switchHistory:E}};
630
- q.ji=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,r,p,t,x,w,B,v,A;return L(function(z){switch(z.g){case 1:if(h.l!=Co&&h.l!=Po)throw new R(1,7,7004);"subtitles"!=c&&"captions"!=c&&Ua("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){z.D(2);break}return D(z,cp(h,a),3);case 3:d=z.h;case 2:k=[];h.A&&(k=h.A.getCuePoints());if(h.l!=Po){z.D(4);break}g&&(c="forced");return D(z,dp(h,a,b,c,d,f||"",k),5);case 5:l=Mc(b);m=h.ic();if(n=m.find(function(C){return Mc(C.language)==
631
- l&&C.label==(f||"")&&C.kind==c}))return so(h),z.return(n);throw new R(1,2,2012);case 4:r=Ic;p=h.g.duration;h.i&&(p=h.i.presentationTimeline.getDuration());if(Infinity==p)throw new R(1,4,4033);if(!k.length){z.D(6);break}return D(z,ep(h,a,h.J,h.h.streaming.retryParameters),7);case 7:t=z.h,x=fp(h,t,d,k),w=new Blob([x],{type:"text/vtt"}),a=Fj(w),d="text/vtt";case 6:B={id:h.Tg++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ok(0,p,[a]),mimeType:d||"",
632
- codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:r.Ca,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([ie(d||"",e||"")])};v=ie(B.mimeType,B.codecs);A=Be(v);if(!A)throw new R(2,2,2014,d);h.i.textStreams.push(B);so(h);return z.return(lf(B))}})};
633
- q.ki=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,p,t,x,w,B,v;return L(function(A){switch(A.g){case 1:if(c.l!=Co&&c.l!=Po)throw new R(1,7,7004);if(b){A.D(2);break}return D(A,cp(c,a),3);case 3:b=A.h;case 2:if("text/vtt"!=b)throw new R(1,2,2017,a);d=Ic;e=c.g.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new R(1,4,4045);return D(A,ep(c,a,c.J,c.h.streaming.retryParameters),4);case 4:f=A.h;g=Ce[b];if(!g)throw new R(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
634
- vttOffset:0};l=Fb(f);m=h.parseMedia(l,k,a);n=[];r={};p=u(m);for(t=p.next();!t.done;r={wd:r.wd,pc:r.pc},t=p.next())r.pc=t.value,r.wd=null,x=function(z){return function(){null==z.wd&&(z.wd=Ac([a],[z.pc.payload]));return z.wd||[]}}(r),w=new Ai(r.pc.startTime,r.pc.endTime,x,0,null,null,0,0,Infinity),r.pc.payload.includes("#xywh")&&(B=r.pc.payload.split("#xywh=")[1].split(","),4===B.length&&w.Qh({height:parseInt(B[3],10),positionX:parseInt(B[0],10),positionY:parseInt(B[1],10),width:parseInt(B[2],10)})),
635
- n.push(w);v={id:c.Tg++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Mk(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.vf,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([ie(b||
636
- "","")])};c.l==Po?c.Rd.push(v):c.i.imageStreams.push(v);so(c);return A.return(mf(v))}})};
637
- q.ii=function(a,b,c){var d=this,e,f,g,h;return L(function(k){switch(k.g){case 1:if(d.l!=Co&&d.l!=Po)throw new R(1,7,7004);if(c){k.D(2);break}return D(k,cp(d,a),3);case 3:c=k.h;case 2:return e=[],d.A&&(e=d.A.getCuePoints()),D(k,dp(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.mh();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return D(k,new Promise(function(l,m){d.m.na(f,"load",l);d.m.na(f,"error",function(){m(new R(1,2,2015))})}),6);case 6:return so(d),k.return(h);case 5:throw new R(1,
631
+ q.ki=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,r,p,t,y,x,A,v,B;return L(function(z){switch(z.g){case 1:if(h.l!=Co&&h.l!=Po)throw new R(1,7,7004);"subtitles"!=c&&"captions"!=c&&Ua("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){z.B(2);break}return D(z,cp(h,a),3);case 3:d=z.h;case 2:k=[];h.A&&(k=h.A.getCuePoints());if(h.l!=Po){z.B(4);break}g&&(c="forced");return D(z,dp(h,a,b,c,d,f||"",k),5);case 5:l=Mc(b);m=h.ic();if(n=m.find(function(C){return Mc(C.language)==
632
+ l&&C.label==(f||"")&&C.kind==c}))return so(h),z.return(n);throw new R(1,2,2012);case 4:r=Ic;p=h.g.duration;h.i&&(p=h.i.presentationTimeline.getDuration());if(Infinity==p)throw new R(1,4,4033);if(!k.length){z.B(6);break}return D(z,ep(h,a,h.J,h.h.streaming.retryParameters),7);case 7:t=z.h,y=fp(h,t,d,k),x=new Blob([y],{type:"text/vtt"}),a=Fj(x),d="text/vtt";case 6:A={id:h.Ug++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ok(0,p,[a]),mimeType:d||"",
633
+ codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:r.Ca,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([ie(d||"",e||"")])};v=ie(A.mimeType,A.codecs);B=Be(v);if(!B)throw new R(2,2,2014,d);h.i.textStreams.push(A);so(h);return z.return(lf(A))}})};
634
+ q.li=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,p,t,y,x,A,v;return L(function(B){switch(B.g){case 1:if(c.l!=Co&&c.l!=Po)throw new R(1,7,7004);if(b){B.B(2);break}return D(B,cp(c,a),3);case 3:b=B.h;case 2:if("text/vtt"!=b)throw new R(1,2,2017,a);d=Ic;e=c.g.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new R(1,4,4045);return D(B,ep(c,a,c.J,c.h.streaming.retryParameters),4);case 4:f=B.h;g=Ce[b];if(!g)throw new R(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
635
+ vttOffset:0};l=Fb(f);m=h.parseMedia(l,k,a);n=[];r={};p=u(m);for(t=p.next();!t.done;r={wd:r.wd,pc:r.pc},t=p.next())r.pc=t.value,r.wd=null,y=function(z){return function(){null==z.wd&&(z.wd=Ac([a],[z.pc.payload]));return z.wd||[]}}(r),x=new Ai(r.pc.startTime,r.pc.endTime,y,0,null,null,0,0,Infinity),r.pc.payload.includes("#xywh")&&(A=r.pc.payload.split("#xywh=")[1].split(","),4===A.length&&x.Sh({height:parseInt(A[3],10),positionX:parseInt(A[0],10),positionY:parseInt(A[1],10),width:parseInt(A[2],10)})),
636
+ n.push(x);v={id:c.Ug++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Mk(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.vf,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([ie(b||
637
+ "","")])};c.l==Po?c.Rd.push(v):c.i.imageStreams.push(v);so(c);return B.return(mf(v))}})};
638
+ q.ji=function(a,b,c){var d=this,e,f,g,h;return L(function(k){switch(k.g){case 1:if(d.l!=Co&&d.l!=Po)throw new R(1,7,7004);if(c){k.B(2);break}return D(k,cp(d,a),3);case 3:c=k.h;case 2:return e=[],d.A&&(e=d.A.getCuePoints()),D(k,dp(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.oh();h=g.find(function(l){return l.language==b});if(!h){k.B(5);break}return D(k,new Promise(function(l,m){d.m.na(f,"load",l);d.m.na(f,"error",function(){m(new R(1,2,2015))})}),6);case 6:return so(d),k.return(h);case 5:throw new R(1,
638
639
  2,2012);}})};function cp(a,b){var c;return L(function(d){switch(d.g){case 1:return ra(d,2),D(d,Gm(b,a.J,a.h.streaming.retryParameters),4);case 4:c=d.h;ta(d,3);break;case 2:ua(d);case 3:if(c)return d.return(c);throw new R(1,2,2011,b);}})}
639
- function dp(a,b,c,d,e,f,g){var h,k,l,m;return L(function(n){if(1==n.g)return"text/vtt"!=e||g.length?D(n,ep(a,b,a.J,a.h.streaming.retryParameters),3):n.D(2);2!=n.g&&(h=n.h,k=fp(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Fj(l),e="text/vtt");m=document.createElement("track");var r=a.P,p=b;try{if(r.g.enabled){var t=dn(r);t.ot=rn;t.su=!0;var x=hn(t);var w=jn(p,x)}else w=p}catch(B){Va("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",B),w=p}m.src=w;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
640
+ function dp(a,b,c,d,e,f,g){var h,k,l,m;return L(function(n){if(1==n.g)return"text/vtt"!=e||g.length?D(n,ep(a,b,a.J,a.h.streaming.retryParameters),3):n.B(2);2!=n.g&&(h=n.h,k=fp(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Fj(l),e="text/vtt");m=document.createElement("track");var r=a.P,p=b;try{if(r.g.enabled){var t=dn(r);t.ot=rn;t.su=!0;var y=hn(t);var x=jn(p,y)}else x=p}catch(A){Va("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",A),x=p}m.src=x;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
640
641
  a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n.return(m)})}function ep(a,b,c,d){var e,f,g;return L(function(h){if(1==h.g){e=xg;f=rg([b],d);f.method="GET";var k=a.P;try{k.g.enabled&&kn(k,f,{ot:rn,su:!0})}catch(l){Va("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return D(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
641
642
  function fp(a,b,c,d){var e=Ce[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Fb(b),b=c.parseMedia(b,a,null),an(b,d);throw new R(2,2,2014,c);}q.ek=function(a,b){this.Y.width=a;this.Y.height=b};q.xg=function(a){if(this.l==Co){var b=this.j;a=void 0===a?.1:a;if(b.l.g)b=!1;else if(b.A)b=!1;else{for(var c=u(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Md||d.kb||d.Qb||(d.Md=!1,Al(b,d,a));b=!0}}else b=!1;return b};
642
643
  q.Xf=function(){Ua("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.");return this.i};q.Si=function(){return this.Fa};
643
644
  function Rn(a){var b=im();b.streaming.failureCallback=function(c){if(a.U()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.xg(d))}};b.textDisplayFactory=function(){if(a.Oe){var c=a.getConfiguration();return new Sm(a.g,a.Oe,c.textDisplayer)}return HTMLMediaElement.prototype.addTextTrack?new Lm(a.g,"Shaka Player TextTrack"):new Om};return b}q.Ig=function(a){this.Oe=a};
644
- function qo(a,b){for(var c=new Set,d=u(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=u(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=u(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new Pk,l=e.closedCaptions.get(g);h={id:a.Tg++,originalId:g,groupId:null,
645
+ function qo(a,b){for(var c=new Set,d=u(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=u(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=u(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new Pk,l=e.closedCaptions.get(g);h={id:a.Ug++,originalId:g,groupId:null,
645
646
  createSegmentIndex:function(){return Promise.resolve()},segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:l,originalLanguage:l,label:null,type:Gc,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set([ie(h,"")])};b.textStreams.push(h);c.add(g)}}
646
647
  function Io(a,b){var c,d,e,f,g;return L(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,r;return L(function(p){if(1==p.g)return k?D(p,k.createSegmentIndex(),2):p.return(null);n=(m=k.segmentIndex.Ub(l))?m.next().value:null;if(!n)return p.return(null);r=n.startTime;return p.return(r)})},D(h,e(c,b),2);if(3!=h.g)return f=h.h,D(h,e(d,b),3);g=h.h;return null!=g&&null!=f?h.return(Math.max(g,f)):null!=g?h.return(g):null!=f?h.return(f):h.return(b)})}
647
648
  function ho(a){var b=a.Od();if(a.u&&a.M&&a.G){var c=a.I;c.j=b;Rk(c);a.P&&(c=a.P,b||c.i||(c.i=!0),c.i&&b&&(c.j=!0),c.l=b);xo(a)}b=(new Map).set("buffering",b);a.dispatchEvent(Zn("buffering",b))}function yo(a){var b=a.g.playbackRate;0!=b&&(a.I&&a.I.set(b),b=Zn("ratechange"),a.dispatchEvent(b))}
648
649
  function xo(a){if(a.u&&a.M){var b=a.u.g,c="playing";a.M.g==Zf?c="buffering":a.g.paused?c="paused":a.g.ended&&(c="ended");var d=c;if(null==b.g)b.g={timestamp:Date.now()/1E3,state:d,duration:0},b=!0;else{var e=Date.now()/1E3;b.g.duration=e-b.g.timestamp;b.g.state==d?b=!1:(b.h.push(b.g),b.g={timestamp:e,state:d,duration:0},b=!0)}b&&(c=(new Map).set("newstate",c),a.dispatchEvent(Zn("statechanged",c)))}}
649
- function Mo(a){var b=a.g.playbackRate,c=a.U();if(a.h.streaming.vodDynamicPlaybackRate&&!c){var d=a.h.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.lh();e<=a.h.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.Hc(d):1==e&&b!==a.I.vc()&&a.Qc()}if(c&&(e=a.Pa(),Number.isFinite(e.end)&&!(a.g.currentTime<e.start))){if(a.h.streaming.liveSync){var f=a.h.streaming.liveSyncMaxLatency;var g=a.h.streaming.liveSyncPlaybackRate}else a.i&&a.i.serviceDescription&&(f=a.i.serviceDescription.maxLatency||a.h.streaming.liveSyncMaxLatency,
650
+ function Mo(a){var b=a.g.playbackRate,c=a.U();if(a.h.streaming.vodDynamicPlaybackRate&&!c){var d=a.h.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.nh();e<=a.h.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.Hc(d):1==e&&b!==a.I.vc()&&a.Qc()}if(c&&(e=a.Pa(),Number.isFinite(e.end)&&!(a.g.currentTime<e.start))){if(a.h.streaming.liveSync){var f=a.h.streaming.liveSyncMaxLatency;var g=a.h.streaming.liveSyncPlaybackRate}else a.i&&a.i.serviceDescription&&(f=a.i.serviceDescription.maxLatency||a.h.streaming.liveSyncMaxLatency,
650
651
  g=a.i.serviceDescription.maxPlaybackRate||a.h.streaming.liveSyncPlaybackRate);if(a.h.streaming.liveSync){var h=a.h.streaming.liveSyncMinLatency;var k=a.h.streaming.liveSyncMinPlaybackRate}else a.i&&a.i.serviceDescription&&(h=a.i.serviceDescription.minLatency||a.h.streaming.liveSyncMinLatency,k=a.i.serviceDescription.minPlaybackRate||a.h.streaming.liveSyncMinPlaybackRate);c=e.end-a.g.currentTime;d=0;if(a.l==Po){var l=a.g.buffered;0<l.length&&(d=l.end(l.length-1),d=Math.max(g,d-e.end))}e=a.h.streaming.liveSyncPanicMode;
651
652
  l=1E3*a.h.streaming.liveSyncPanicThreshold;var m=Date.now()-a.M.h;e&&!k&&(k=a.h.streaming.liveSyncMinPlaybackRate);e&&k&&m<=l?b!=k&&a.Hc(k):f&&g&&c-d>f?b!=g&&a.Hc(g):h&&k&&c-d<h?b!=k&&a.Hc(k):b!==a.I.vc()&&a.Qc()}}
652
653
  function No(a){if(a.g){var b=!1,c=a.g.currentTime/a.g.duration;isNaN(c)||(c=Math.round(100*c),isNaN(a.O)?(a.O=c,b=!0):(c=Math.max(a.O,c),a.O!=c&&(a.O=c,b=!0)));if(b){var d;0==a.O?d=Zn("started"):25==a.O?d=Zn("firstquartile"):50==a.O?d=Zn("midpoint"):75==a.O?d=Zn("thirdquartile"):100==a.O&&(d=Zn("complete"));d&&a.dispatchEvent(d)}}}function to(a){try{pi(a.Le,a.i)}catch(c){return fo(a,c),!1}var b=tf(a.i.variants);b=a.qa.create(b);a.o.setVariants(Array.from(b.values()));return!0}
@@ -656,18 +657,18 @@ function uo(a,b,c,d,e){b=void 0===b?!0:b;c=void 0===c?0:c;d=void 0===d?!1:d;e=vo
656
657
  function Zo(a,b){var c=Array.from(a.g.audioTracks).find(function(d){return d.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=rf(c);b=rf(b);hp(a,c,b)}function Jo(a,b,c){if(0==a.h.autoShowText)return!1;if(1==a.h.autoShowText)return!0;var d=Mc(a.h.preferredTextLanguage);c=Mc(c.language);if(2==a.h.autoShowText)return Kc(c,d);if(3==a.h.autoShowText)return a=Mc(b.language),Kc(c,d)&&!Kc(a,c);Ua("Invalid autoShowText setting!");return!1}function so(a){var b=Zn("trackschanged");gp(a,b)}
657
658
  function hp(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.L&&vj(a.L,c,a.Yf());c=Zn("variantchanged",b);gp(a,c)}function Yo(a){var b=Zn("textchanged");gp(a,b)}function Ko(a){var b=Zn("texttrackvisibility");gp(a,b)}function Lo(a){a.h.abr.enabled||Vn(a);var b=(new Map).set("newStatus",a.h.abr.enabled);gp(a,Zn("abrstatuschanged",b))}function Vn(a,b){b=void 0===b?!0:b;if(a.l==Co){a.Te.stop();for(var c=u(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&to(a)}}
658
659
  q.se=function(a,b){if(!this.h.abr.enabled||this.l===$n||!navigator.onLine)return!1;if(this.i.variants.some(function(f){return(f=f[a.type])&&f.id!==a.id?"audio"==a.type?a.language===f.language:!0:!1})){for(var c=u(this.i.variants),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[a.type];e&&e.id===a.id&&(d.disabledUntilTime=Date.now()/1E3+b)}this.Te.ya(1);b=this.Ib().video.reduce(function(f,g){return f+g.end-g.start},0);uo(this,!0,b,!0,!1);return!0}return!1};
659
- function fo(a,b){var c,d,e;return L(function(f){switch(f.g){case 1:if(a.l==$n)return f.return();c=!0;if(!(a.Ka&&a.i&&a.j)||3016!=b.code&&3014!=b.code&&3015!=b.code&&3018!=b.code){f.D(2);break}ra(f,3);return D(f,Yl(a.j),5);case 5:d=f.h;c=!d;ta(f,2);break;case 3:ua(f),c=!0;case 2:if(!c)return f.return();2===b.severity&&Vn(a,!1);e=Zn("error",(new Map).set("detail",b));a.dispatchEvent(e);e.defaultPrevented&&(b.handled=!0);G(f)}})}
660
+ function fo(a,b){var c,d,e;return L(function(f){switch(f.g){case 1:if(a.l==$n)return f.return();c=!0;if(!(a.Ka&&a.i&&a.j)||3016!=b.code&&3014!=b.code&&3015!=b.code&&3018!=b.code){f.B(2);break}ra(f,3);return D(f,Yl(a.j),5);case 5:d=f.h;c=!d;ta(f,2);break;case 3:ua(f),c=!0;case 2:if(!c)return f.return();2===b.severity&&Vn(a,!1);e=Zn("error",(new Map).set("detail",b));a.dispatchEvent(e);e.defaultPrevented&&(b.handled=!0);G(f)}})}
660
661
  function ro(a,b,c,d){d=void 0===d?a:d;a=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement,eventNode:c.eventNode});d.dispatchEvent(Zn(b,a))}function eo(a){if(!a.g.error)return null;var b=a.g.error.code;if(1==b)return null;var c=a.g.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new R(2,3,3016,b,c,a.g.error.message)}
661
- function zo(a,b,c){0<b&&(a.U()||a.Sh(b));b=a.getDuration();c<b&&(a.U()||a.xb(c))}function gp(a,b){L(function(c){if(1==c.g)return D(c,Promise.resolve(),2);a.l!=$n&&a.dispatchEvent(b);G(c)})}function ap(a){var b=new Set;a=u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Mc(c.language)):b.add("und");return b}
662
+ function zo(a,b,c){0<b&&(a.U()||a.Uh(b));b=a.getDuration();c<b&&(a.U()||a.xb(c))}function gp(a,b){L(function(c){if(1==c.g)return D(c,Promise.resolve(),2);a.l!=$n&&a.dispatchEvent(b);G(c)})}function ap(a){var b=new Set;a=u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Mc(c.language)):b.add("und");return b}
662
663
  function $o(a){var b=new Map,c=new Map;a=u(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=Mc(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=u(f);for(var g=f.next();!g.done;g=f.next())g=g.value,b.get(e).add(g),d.label&&(c.has(e)||c.set(e,new Map),c.get(e).set(g,d.label))}var h=[];b.forEach(function(k,l){k=u(k);for(var m=k.next();!m.done;m=k.next()){m=m.value;var n=null;c.has(l)&&c.get(l).has(m)&&(n=c.get(l).get(m));
663
- h.push({language:l,role:m,label:n})}});return h}N("shaka.Player",U);U.prototype.setVideoContainer=U.prototype.Ig;U.prototype.getManifestParserFactory=U.prototype.Si;U.prototype.getManifest=U.prototype.Xf;U.prototype.retryStreaming=U.prototype.xg;U.prototype.setMaxHardwareResolution=U.prototype.ek;U.prototype.addChaptersTrack=U.prototype.ii;U.prototype.addThumbnailsTrack=U.prototype.ki;U.prototype.addTextTrackAsync=U.prototype.ji;U.prototype.getStats=U.prototype.getStats;
664
- U.prototype.getBufferedInfo=U.prototype.Ib;U.prototype.getSegmentAvailabilityDuration=U.prototype.ze;U.prototype.getPresentationStartTimeAsDate=U.prototype.ph;U.prototype.getPlayheadTimeAsDate=U.prototype.Vi;U.prototype.setTextTrackVisibility=U.prototype.bf;U.prototype.getChapters=U.prototype.Ei;U.prototype.getChaptersTracks=U.prototype.mh;U.prototype.isTextTrackVisible=U.prototype.Bc;U.prototype.selectVariantsByLabel=U.prototype.Yj;U.prototype.selectTextLanguage=U.prototype.Ag;
665
- U.prototype.selectAudioLanguage=U.prototype.Xe;U.prototype.getTextLanguages=U.prototype.$i;U.prototype.getAudioLanguages=U.prototype.Bi;U.prototype.getTextLanguagesAndRoles=U.prototype.aj;U.prototype.getAudioLanguagesAndRoles=U.prototype.Ci;U.prototype.selectVariantTrack=U.prototype.Ye;U.prototype.selectTextTrack=U.prototype.Bg;U.prototype.getThumbnails=U.prototype.$f;U.prototype.getAllThumbnails=U.prototype.Ai;U.prototype.getImageTracks=U.prototype.ve;U.prototype.getTextTracks=U.prototype.ic;
664
+ h.push({language:l,role:m,label:n})}});return h}N("shaka.Player",U);U.prototype.setVideoContainer=U.prototype.Ig;U.prototype.getManifestParserFactory=U.prototype.Si;U.prototype.getManifest=U.prototype.Xf;U.prototype.retryStreaming=U.prototype.xg;U.prototype.setMaxHardwareResolution=U.prototype.ek;U.prototype.addChaptersTrack=U.prototype.ji;U.prototype.addThumbnailsTrack=U.prototype.li;U.prototype.addTextTrackAsync=U.prototype.ki;U.prototype.getStats=U.prototype.getStats;
665
+ U.prototype.getBufferedInfo=U.prototype.Ib;U.prototype.getSegmentAvailabilityDuration=U.prototype.ze;U.prototype.getPresentationStartTimeAsDate=U.prototype.rh;U.prototype.getPlayheadTimeAsDate=U.prototype.Vi;U.prototype.setTextTrackVisibility=U.prototype.bf;U.prototype.getChapters=U.prototype.Fi;U.prototype.getChaptersTracks=U.prototype.oh;U.prototype.isTextTrackVisible=U.prototype.Bc;U.prototype.selectVariantsByLabel=U.prototype.Yj;U.prototype.selectTextLanguage=U.prototype.Ag;
666
+ U.prototype.selectAudioLanguage=U.prototype.Xe;U.prototype.getTextLanguages=U.prototype.$i;U.prototype.getAudioLanguages=U.prototype.Ci;U.prototype.getTextLanguagesAndRoles=U.prototype.aj;U.prototype.getAudioLanguagesAndRoles=U.prototype.Di;U.prototype.selectVariantTrack=U.prototype.Ye;U.prototype.selectTextTrack=U.prototype.Bg;U.prototype.getThumbnails=U.prototype.$f;U.prototype.getAllThumbnails=U.prototype.Bi;U.prototype.getImageTracks=U.prototype.ve;U.prototype.getTextTracks=U.prototype.ic;
666
667
  U.prototype.getVariantTracks=U.prototype.rb;U.prototype.cancelTrickPlay=U.prototype.Qc;U.prototype.trickPlay=U.prototype.Hc;U.prototype.getPlaybackRate=U.prototype.Ra;U.prototype.isBuffering=U.prototype.Od;U.prototype.getKeyStatuses=U.prototype.we;U.prototype.getActiveSessionsMetadata=U.prototype.Vf;U.prototype.getExpiration=U.prototype.Hd;U.prototype.drmInfo=U.prototype.drmInfo;U.prototype.keySystem=U.prototype.keySystem;U.prototype.goToLive=U.prototype.jj;U.prototype.seekRange=U.prototype.Pa;
667
- U.prototype.isAudioOnly=U.prototype.Yc;U.prototype.isInProgress=U.prototype.Ac;U.prototype.isLive=U.prototype.U;U.prototype.getAdManager=U.prototype.ue;U.prototype.getAssetUri=U.prototype.Fd;U.prototype.getNetworkingEngine=U.prototype.fc;U.prototype.getMediaElement=U.prototype.Ui;U.prototype.getManifestType=U.prototype.Yf;U.prototype.getLoadMode=U.prototype.Id;U.prototype.resetConfiguration=U.prototype.Rj;U.prototype.getBufferFullness=U.prototype.lh;U.prototype.getConfiguration=U.prototype.getConfiguration;
668
- U.prototype.configure=U.prototype.configure;U.prototype.releaseAllMutexes=U.prototype.Nj;U.prototype.preload=U.prototype.preload;U.prototype.unloadAndSavePreload=U.prototype.ik;U.prototype.load=U.prototype.load;U.prototype.updateStartTime=U.prototype.nk;U.prototype.unload=U.prototype.Ic;U.prototype.detach=U.prototype.detach;U.prototype.attachCanvas=U.prototype.Xg;U.prototype.attach=U.prototype.Pc;
669
- U.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return L(function(h){if(1==h.g)return b={},a?D(h,ei(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(Pb())for(var l in ti)k[l]=!0;l=u(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var m=l.next();!m.done;m=l.next())m=m.value,k[m]=Pb()?!!ti[m]:Qb(m);c=k;l='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="dvh1.20.01",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(y(je));
670
- k={};l=u(l);for(m=l.next();!m.done;m=l.next()){m=m.value;k[m]=Pb()?Be(m)?!0:hd(m)||(ce(m)?!0:!1):Qb(m);var n=m.split(";")[0];k[n]=k[n]||k[m]}d=k;e={manifest:c,media:d,drm:b};f=ip;for(g in f)e[g]=f[g]();return h.return(e)})};U.isBrowserSupported=ao;U.setAdManagerFactory=function(a){Un=a};U.registerSupportPlugin=function(a,b){ip[a]=b};U.prototype.destroy=U.prototype.destroy;var $n=0,Qn=1,Co=2,Po=3;U.LoadMode={DESTROYED:$n,NOT_LOADED:Qn,MEDIA_SOURCE:Co,SRC_EQUALS:Po};U.version="v4.8.3";var jp=["4","8"];
668
+ U.prototype.isAudioOnly=U.prototype.Yc;U.prototype.isInProgress=U.prototype.Ac;U.prototype.isLive=U.prototype.U;U.prototype.getAdManager=U.prototype.ue;U.prototype.getAssetUri=U.prototype.Fd;U.prototype.getNetworkingEngine=U.prototype.fc;U.prototype.getMediaElement=U.prototype.Ui;U.prototype.getManifestType=U.prototype.Yf;U.prototype.getLoadMode=U.prototype.Id;U.prototype.resetConfiguration=U.prototype.Rj;U.prototype.getBufferFullness=U.prototype.nh;U.prototype.getConfiguration=U.prototype.getConfiguration;
669
+ U.prototype.configure=U.prototype.configure;U.prototype.releaseAllMutexes=U.prototype.Nj;U.prototype.preload=U.prototype.preload;U.prototype.unloadAndSavePreload=U.prototype.ik;U.prototype.load=U.prototype.load;U.prototype.updateStartTime=U.prototype.nk;U.prototype.unload=U.prototype.Ic;U.prototype.detach=U.prototype.detach;U.prototype.attachCanvas=U.prototype.Zg;U.prototype.attach=U.prototype.Pc;
670
+ U.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return L(function(h){if(1==h.g)return b={},a?D(h,ei(),3):h.B(2);2!=h.g&&(b=h.h);var k={};if(Pb())for(var l in ti)k[l]=!0;l=u(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var m=l.next();!m.done;m=l.next())m=m.value,k[m]=Pb()?!!ti[m]:Qb(m);c=k;l='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="dvh1.20.01",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(w(je));
671
+ k={};l=u(l);for(m=l.next();!m.done;m=l.next()){m=m.value;k[m]=Be(m)?!0:Pb()?hd(m)||(ce(m)?!0:!1):Qb(m);var n=m.split(";")[0];k[n]=k[n]||k[m]}d=k;e={manifest:c,media:d,drm:b};f=ip;for(g in f)e[g]=f[g]();return h.return(e)})};U.isBrowserSupported=ao;U.setAdManagerFactory=function(a){Un=a};U.registerSupportPlugin=function(a,b){ip[a]=b};U.prototype.destroy=U.prototype.destroy;var $n=0,Qn=1,Co=2,Po=3;U.LoadMode={DESTROYED:$n,NOT_LOADED:Qn,MEDIA_SOURCE:Co,SRC_EQUALS:Po};U.version="v4.8.4";var jp=["4","8"];
671
672
  md=new function(a){this.g=a;this.i=nd;this.h=od}(new kd(Number(jp[0]),Number(jp[1])));var ip={},Un=null;function kp(){this.h=[];this.j=this.i=this.g=0};function lp(a,b,c){var d=this;this.g=a;this.h=b;this.j=c;this.i=!1;this.l=this.h.getVolume();this.m=new cd;this.m.s(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.s(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=lp.prototype;q.getDuration=function(){return this.g.getDuration()};q.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};q.getRemainingTime=function(){return this.h.getRemainingTime()};q.isPaused=function(){return this.i};
672
673
  q.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};q.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};q.canSkipNow=function(){return this.h.getAdSkippableState()};q.skip=function(){return this.h.skip()};q.pause=function(){return this.h.pause()};q.play=function(){return this.h.resume()};q.getVolume=function(){return this.h.getVolume()};q.setVolume=function(a){this.j.volume=a;return this.h.setVolume(a)};
673
674
  q.isMuted=function(){return 0==this.h.getVolume()};q.isLinear=function(){return this.g.isLinear()};q.resize=function(a,b){var c=!1,d=this.j;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.h.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};q.setMuted=function(a){(this.j.muted=a)?(this.l=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.l)};
@@ -675,7 +676,7 @@ q.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.ge
675
676
  q.getAdId=function(){return this.g.getAdId()};q.getCreativeAdId=function(){return this.g.getCreativeAdId()};q.getAdvertiserName=function(){return this.g.getAdvertiserName()};q.getMediaUrl=function(){return this.g.getMediaUrl()};q.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};q.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};q.release=function(){this.h=this.g=null};N("shaka.ads.ClientSideAd",lp);lp.prototype.release=lp.prototype.release;
676
677
  lp.prototype.getPodIndex=lp.prototype.getPodIndex;lp.prototype.getTimeOffset=lp.prototype.getTimeOffset;lp.prototype.getMediaUrl=lp.prototype.getMediaUrl;lp.prototype.getAdvertiserName=lp.prototype.getAdvertiserName;lp.prototype.getCreativeAdId=lp.prototype.getCreativeAdId;lp.prototype.getAdId=lp.prototype.getAdId;lp.prototype.getVastMediaWidth=lp.prototype.getVastMediaWidth;lp.prototype.getVastMediaHeight=lp.prototype.getVastMediaHeight;lp.prototype.getVastMediaBitrate=lp.prototype.getVastMediaBitrate;
677
678
  lp.prototype.getDescription=lp.prototype.getDescription;lp.prototype.getTitle=lp.prototype.getTitle;lp.prototype.getPositionInSequence=lp.prototype.getPositionInSequence;lp.prototype.getSequenceLength=lp.prototype.getSequenceLength;lp.prototype.setMuted=lp.prototype.setMuted;lp.prototype.resize=lp.prototype.resize;lp.prototype.isLinear=lp.prototype.isLinear;lp.prototype.isMuted=lp.prototype.isMuted;lp.prototype.setVolume=lp.prototype.setVolume;lp.prototype.getVolume=lp.prototype.getVolume;
678
- lp.prototype.play=lp.prototype.play;lp.prototype.pause=lp.prototype.pause;lp.prototype.skip=lp.prototype.skip;lp.prototype.canSkipNow=lp.prototype.canSkipNow;lp.prototype.getTimeUntilSkippable=lp.prototype.getTimeUntilSkippable;lp.prototype.isSkippable=lp.prototype.isSkippable;lp.prototype.isPaused=lp.prototype.isPaused;lp.prototype.getRemainingTime=lp.prototype.getRemainingTime;lp.prototype.getMinSuggestedDuration=lp.prototype.getMinSuggestedDuration;lp.prototype.getDuration=lp.prototype.getDuration;function mp(a,b,c,d,e){var f=this;this.o=a;this.i=b;this.G=!1;this.A=this.u=null;this.H=NaN;this.m=e;this.j=null;this.h=new cd;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);a=new google.ima.AdDisplayContainer(this.o,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.8.3");this.g=null;this.F=d||new google.ima.AdsRenderingSettings;this.h.s(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
679
+ lp.prototype.play=lp.prototype.play;lp.prototype.pause=lp.prototype.pause;lp.prototype.skip=lp.prototype.skip;lp.prototype.canSkipNow=lp.prototype.canSkipNow;lp.prototype.getTimeUntilSkippable=lp.prototype.getTimeUntilSkippable;lp.prototype.isSkippable=lp.prototype.isSkippable;lp.prototype.isPaused=lp.prototype.isPaused;lp.prototype.getRemainingTime=lp.prototype.getRemainingTime;lp.prototype.getMinSuggestedDuration=lp.prototype.getMinSuggestedDuration;lp.prototype.getDuration=lp.prototype.getDuration;function mp(a,b,c,d,e){var f=this;this.o=a;this.i=b;this.G=!1;this.A=this.u=null;this.H=NaN;this.m=e;this.j=null;this.h=new cd;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);a=new google.ima.AdDisplayContainer(this.o,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.8.4");this.g=null;this.F=d||new google.ima.AdsRenderingSettings;this.h.s(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
679
680
  function(g){np(f,g)});this.h.s(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){op(f,g)});this.h.s(this.i,"ended",function(){f.l.contentComplete()});this.h.na(this.i,"play",function(){f.G=!0})}mp.prototype.configure=function(a){this.u=a};mp.prototype.stop=function(){this.g&&this.g.stop();this.o&&Rm(this.o)};mp.prototype.release=function(){this.stop();this.A&&this.A.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy()};
680
681
  function op(a,b){b.getError();b=(new Map).set("originalEvent",b);a.m(new Q("ad-error",b));pp(a,null);a.m(new Q("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
681
682
  function np(a,b){a.m(new Q("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.H)));if(a.u.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.F);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.s(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.s(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.F);a.m(new Q("ima-ad-manager-loaded",(new Map).set("imaAdManager",
@@ -698,7 +699,7 @@ tp.prototype.isSkippable=tp.prototype.isSkippable;tp.prototype.isPaused=tp.proto
698
699
  up.prototype.release=function(){this.stop();this.o&&this.o.release()};up.prototype.onManifestUpdated=function(a){this.K=a;""!=this.I&&(wp(this,this.I,this.P),this.P=!1)};up.prototype.getCuePoints=function(){for(var a=[],b=u(this.j),c=b.next();!c.done;c=b.next()){c=u(c.value.ads);for(var d=c.next();!d.done;d=c.next())d=d.value,a.push({start:d.startTimeInSeconds,end:d.startTimeInSeconds+d.durationInSeconds})}return a};
699
700
  function xp(a,b,c){var d,e,f,g,h,k,l,m,n,r,p;L(function(t){if(1==t.g)return d=rg([b],bg()),d.method="POST",c&&(e=JSON.stringify(c),d.body=pc(e)),f=a.L.request(7,d),ra(t,2),D(t,f.promise,4);if(2!=t.g){g=t.h;h=lc(g.data);k=JSON.parse(h);if(k.manifestUrl&&k.trackingUrl)l=new ib(b),m=new ib(k.trackingUrl),a.I=l.resolve(m).toString(),n=Date.now()/1E3,r=n-a.S,a.i(new Q("ads-loaded",(new Map).set("loadTime",r))),p=new ib(k.manifestUrl),a.l.resolve(l.resolve(p).toString()),a.l=null;else throw Error("Insufficient data from MediaTailor.");
700
701
  return ta(t,0)}ua(t);if(!a.J.length)return a.l.reject("MediaTailor request returned an error and there was no backup asset uri provided."),a.l=null,t.return();a.l.resolve(a.J);a.l=null;G(t)})}
701
- function wp(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,x,w,B;L(function(v){if(1==v.g)return d=rg([b],bg()),e=a.L.request(7,d),ra(v,2),D(v,e.promise,4);if(2!=v.g){f=v.h;g=[];h=lc(f.data);k=JSON.parse(h);if(0<k.avails.length){if(JSON.stringify(a.j)!=JSON.stringify(k.avails)){a.j=k.avails;l=u(a.j);for(m=l.next();!m.done;m=l.next())for(n=m.value,r=u(n.nonLinearAdsList),p=r.next();!p.done;p=r.next())for(t=p.value,x=u(t.nonLinearAdList),w=x.next();!w.done;w=x.next())B=w.value,yp(a,B);g=a.getCuePoints();a.i(new Q("ad-cue-points-changed",
702
+ function wp(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,y,x,A;L(function(v){if(1==v.g)return d=rg([b],bg()),e=a.L.request(7,d),ra(v,2),D(v,e.promise,4);if(2!=v.g){f=v.h;g=[];h=lc(f.data);k=JSON.parse(h);if(0<k.avails.length){if(JSON.stringify(a.j)!=JSON.stringify(k.avails)){a.j=k.avails;l=u(a.j);for(m=l.next();!m.done;m=l.next())for(n=m.value,r=u(n.nonLinearAdsList),p=r.next();!p.done;p=r.next())for(t=p.value,y=u(t.nonLinearAdList),x=y.next();!x.done;x=y.next())A=x.value,yp(a,A);g=a.getCuePoints();a.i(new Q("ad-cue-points-changed",
702
703
  (new Map).set("cuepoints",g)))}}else a.j.length&&a.i(new Q("ad-cue-points-changed",(new Map).set("cuepoints",g))),vp(a),a.j=[];c&&(a.K||0<g.length)&&zp(a);return ta(v,0)}ua(v);G(v)})}
703
704
  function yp(a,b){var c,d,e,f,g,h,k,l;L(function(m){if(1==m.g){if(!b.staticResource)return m.return();c=Ap(b);if(d=a.H.get(c))return m.return();e=rg([b.staticResource],bg());f=a.L.request(7,e);ra(m,2);a.H.set(c,[]);return D(m,f.promise,4)}if(2!=m.g)return g=m.h,h=lc(g.data),k=JSON.parse(h),l=k.apps,a.H.set(c,l),ta(m,0);ua(m);a.H.delete(c);G(m)})}
704
705
  function Ap(a){return[a.adId,a.adParameters,a.adSystem,a.adTitle,a.creativeAdId,a.creativeId,a.creativeSequence,a.height,a.width,a.staticResource].join("")}function zp(a){Bp(a);a.K||(Cp(a),a.o.s(a.g,"seeked",function(){Cp(a)}),a.o.s(a.g,"ended",function(){vp(a)}));a.o.s(a.g,"timeupdate",function(){Bp(a)})}
@@ -726,8 +727,8 @@ function Hp(a,b){a.i(new Q("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-
726
727
  q.release=function(){this.i&&(this.i.release(),this.i=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);bb.prototype.release.call(this)};q.onAssetUnload=function(){this.i&&this.i.stop();this.h&&this.h.stop();this.g&&this.g.stop();this.dispatchEvent(new Q("ad-stopped"));this.j=new kp};q.requestClientSideAds=function(a){if(!this.i)throw new R(1,10,10001);var b=this.i;b.g&&b.g.destroy();b.l&&b.l.contentComplete();b.H=Date.now()/1E3;b.l.requestAds(a)};
727
728
  q.updateClientSideAdsRenderingSettings=function(a){if(!this.i)throw new R(1,10,10001);var b=this.i;b.F=a;b.g&&b.g.updateAdsRenderingSettings(b.F)};q.initMediaTailor=function(a,b,c){var d=this;this.h&&this.h.release();this.h=new up(a,b,c,function(e){return Jp(d,e)})};q.requestMediaTailorStream=function(a,b,c){if(!this.h)throw new R(1,10,10005);var d=this.h;c=void 0===c?"":c;d.l?a=Promise.reject(new R(1,10,10004)):(d.l=new dg,xp(d,a,b),d.J=c||"",d.S=Date.now()/1E3,a=d.l);return a};
728
729
  q.addMediaTailorTrackingUrl=function(a){if(!this.h)throw new R(1,10,10005);var b=this.h;b.I=a;b.i(new Q("ads-loaded",(new Map).set("loadTime",0)))};q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new R(2,10,10002);this.g&&this.g.release();this.g=new Gp(a,b,this.m,function(d){return Jp(c,d)});this.g.configure(this.l)};
729
- q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new R(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('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 overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.8.3";c=this.g;c.j?a=Promise.reject(new R(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
730
- (c.I=!0),c.j=new dg,c.g.requestStream(a),c.F=b||"",c.H=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new R(1,10,10003);(a.mpt||a.mpv)&&Ua('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 overriden.');a.mpt="Shaka Player";a.mpv="v4.8.3";this.g.g.replaceAdTagParameters(a)};
730
+ q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new R(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('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 overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.8.4";c=this.g;c.j?a=Promise.reject(new R(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
731
+ (c.I=!0),c.j=new dg,c.g.requestStream(a),c.F=b||"",c.H=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new R(1,10,10003);(a.mpt||a.mpv)&&Ua('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 overriden.');a.mpt="Shaka Player";a.mpv="v4.8.4";this.g.g.replaceAdTagParameters(a)};
731
732
  q.getServerSideCuePoints=function(){ld("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};q.getCuePoints=function(){var a=[];this.g&&(a=a.concat(this.g.getCuePoints()));this.h&&(a=a.concat(this.h.getCuePoints()));return a};q.getStats=function(){var a=this.j;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};q.onManifestUpdated=function(a){if(this.h)this.h.onManifestUpdated(a)};
732
733
  q.onDashTimedMetadata=function(a){this.g&&"urn:google:dai:2018"==a.schemeIdUri&&this.g.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime)};q.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};q.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};
733
734
  function Jp(a,b){if(b&&b.type)switch(b.type){case "ads-loaded":a.j.h.push(b.loadTime);break;case "ad-started":a.j.g++;break;case "ad-complete":a.j.i++;break;case "ad-skipped":a.j.j++}a.dispatchEvent(b)}N("shaka.ads.AdManager",Ip);Ip.prototype.onCueMetadataChange=Ip.prototype.onCueMetadataChange;Ip.prototype.onHlsTimedMetadata=Ip.prototype.onHlsTimedMetadata;Ip.prototype.onDashTimedMetadata=Ip.prototype.onDashTimedMetadata;Ip.prototype.onManifestUpdated=Ip.prototype.onManifestUpdated;
@@ -746,14 +747,14 @@ r.code);for(m in r)n[m]=r[m];k.reject(n)}else k.resolve()}};this.g={video:{},pla
746
747
  q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.Ia();var a=new chrome.cast.SessionRequest(this.I,[],null,this.L,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=u($p),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new dg;d.u=!0;dq(d,e)}},function(b){for(var c=u($p),d=c.next();!d.done;d=c.next())d=d.value,eq="available"==b,d.l.Ia()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});eq&&this.l.V(fq);(a=bq)&&
747
748
  a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new dg,this.u=!0,dq(this,a)):bq=null}else window.__onGCastApiAvailable!==gq&&(hq=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=gq)};q.Cg=function(a){this.o=a;this.h&&iq(this,{type:"appData",appData:this.o})};
748
749
  q.cast=function(){var a=this;return L(function(b){if(!a.m)throw new R(1,8,8E3);if(!eq)throw new R(1,8,8001);if(a.h)throw new R(1,8,8002);a.j=new dg;chrome.cast.requestSession(function(c){return dq(a,c)},function(c){return jq(a,c)});return D(b,a.j,0)})};function kq(a){a.h&&chrome.cast.requestSession(function(b){return dq(a,b)},function(b){return jq(a,b)})}q.Uc=function(){if(this.h){aq(this);if(bq){cq(this);try{bq.stop(function(){},function(){})}catch(a){}bq=null}Zp(this)}};
749
- q.get=function(a,b){var c=this;if("video"==a){if(Qp.includes(b))return function(){return c.Hh.apply(c,[a,b].concat(y(Fa.apply(0,arguments))))}}else if("player"==a){if(Tp[b]&&!this.get("player","isLive")())return function(){};if(Wp.includes(b))return function(){return c.Hh.apply(c,[a,b].concat(y(Fa.apply(0,arguments))))};if(Xp.includes(b))return function(){return c.Oj.apply(c,[a,b].concat(y(Fa.apply(0,arguments))))};if(Rp[b]||Sp[b])return function(){return c.g[a][b]}}return this.g[a][b]};
750
+ q.get=function(a,b){var c=this;if("video"==a){if(Qp.includes(b))return function(){return c.Jh.apply(c,[a,b].concat(w(Fa.apply(0,arguments))))}}else if("player"==a){if(Tp[b]&&!this.get("player","isLive")())return function(){};if(Wp.includes(b))return function(){return c.Jh.apply(c,[a,b].concat(w(Fa.apply(0,arguments))))};if(Xp.includes(b))return function(){return c.Oj.apply(c,[a,b].concat(w(Fa.apply(0,arguments))))};if(Rp[b]||Sp[b])return function(){return c.g[a][b]}}return this.g[a][b]};
750
751
  q.set=function(a,b,c){this.g[a][b]=c;iq(this,{type:"set",targetName:a,property:b,value:c})};function dq(a,b){var c=a.O();bq=b;b.addUpdateListener(a.F);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);Zp(a);iq(a,{type:"init",initState:c,appData:a.o});a.j.resolve()}function jq(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.j.reject(new R(2,8,c,b))}
751
- q.Hh=function(a,b){iq(this,{type:"call",targetName:a,methodName:b,args:Fa.apply(2,arguments)})};q.Oj=function(a,b){var c=Fa.apply(2,arguments),d=new dg,e=this.J.toString();this.J++;this.i[e]=d;try{iq(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function cq(a){var b=bq;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
752
+ q.Jh=function(a,b){iq(this,{type:"call",targetName:a,methodName:b,args:Fa.apply(2,arguments)})};q.Oj=function(a,b){var c=Fa.apply(2,arguments),d=new dg,e=this.J.toString();this.J++;this.i[e]=d;try{iq(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function cq(a){var b=bq;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
752
753
  function Zp(a){var b=bq?"connected"==bq.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};aq(a)}a.h=b;a.K=b?bq.receiver.friendlyName:"";a.l.Ia()}function aq(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new R(1,7,7E3))}}function iq(a,b){b=Kp(b);var c=bq;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},Xa)}catch(d){throw b=new R(2,8,8005,d),c=new Q("error",(new Map).set("detail",b)),a.A("player",c),a.Uc(),b;}}var fq=.02,eq=!1,bq=null,hq=null,$p=new Set;
753
754
  function gq(a){hq?window.__onGCastApiAvailable=hq:delete window.__onGCastApiAvailable;hq=null;if(a)for(var b=u($p),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function lq(a,b,c,d){d=void 0===d?!1:d;bb.call(this);var e=this;this.i=a;this.h=b;this.m=this.o=this.j=this.u=this.l=null;this.G=c;this.F=d;this.A=new Map;this.g=new Yp(c,function(){return mq(e)},function(){return nq(e)},function(f,g){return oq(e,f,g)},function(){return pq(e)},function(){return qq(e)},d);rq(this)}na(lq,bb);q=lq.prototype;
754
755
  q.destroy=function(a){a&&this.g.Uc();this.m&&(this.m.release(),this.m=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.u=this.l=this.i=null;bb.prototype.release.call(this);return Promise.all(a)};q.jc=function(){return this.l};q.Wc=function(){return this.u};q.Bf=function(){return this.g.m&&eq};q.Ga=function(){return this.g.Ga()};q.Ue=function(){return this.g.Ue()};
755
- q.cast=function(){var a=this;return L(function(b){return 1==b.g?D(b,a.g.cast(),2):a.h?D(b,a.h.Ic(),0):b.return()})};q.Cg=function(a){this.g.Cg(a)};q.Uh=function(){kq(this.g)};q.Uc=function(){this.g.Uc()};
756
- q.bh=function(a,b){b=void 0===b?!1:b;var c=this;return L(function(d){if(1==d.g){if(a==c.G&&b==c.F)return d.return();c.G=a;c.F=b;c.g.Uc();return D(d,c.g.destroy(),2)}c.g=null;c.g=new Yp(a,function(){return mq(c)},function(){return nq(c)},function(e,f){return oq(c,e,f)},function(){return pq(c)},function(){return qq(c)},b);c.g.init();G(d)})};
756
+ q.cast=function(){var a=this;return L(function(b){return 1==b.g?D(b,a.g.cast(),2):a.h?D(b,a.h.Ic(),0):b.return()})};q.Cg=function(a){this.g.Cg(a)};q.Wh=function(){kq(this.g)};q.Uc=function(){this.g.Uc()};
757
+ q.eh=function(a,b){b=void 0===b?!1:b;var c=this;return L(function(d){if(1==d.g){if(a==c.G&&b==c.F)return d.return();c.G=a;c.F=b;c.g.Uc();return D(d,c.g.destroy(),2)}c.g=null;c.g=new Yp(a,function(){return mq(c)},function(){return nq(c)},function(e,f){return oq(c,e,f)},function(){return pq(c)},function(){return qq(c)},b);c.g.init();G(d)})};
757
758
  function rq(a){a.g.init();a.m=new cd;for(var b=u(Np),c=b.next();!c.done;c=b.next())a.m.s(a.i,c.value,function(f){a.g.Ga()||(f=Qa(f),a.j.dispatchEvent(f))});for(var d in Ra)a.m.s(a.h,Ra[d],function(f){a.g.Ga()||a.o.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.od=e,Object.defineProperty(a.l,b.od,{configurable:!1,enumerable:!0,get:function(f){return function(){return sq(a,f.od)}}(b),set:function(f){return function(g){var h=f.od;a.g.Ga()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={od:b.od};a.u={};tq(a,
758
759
  function(f){Object.defineProperty(a.u,f,{configurable:!1,enumerable:!0,get:function(){return uq(a,f)}})});vq(a);a.j=new bb;a.j.Ve=a.l;a.o=new bb;a.o.Ve=a.u}function vq(a){var b=new Map;tq(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.A.set(c,d):a.A.set(d,c)):b.set(d,c)})}
759
760
  function tq(a,b){function c(k){return"constructor"==k||"function"!=typeof d[k]?!1:!e.has(k)}var d=a.h,e=new Set,f;for(f in d)c(f)&&(e.add(f),b(f,d[f]));a=Object.getPrototypeOf(d);for(f=Object.getPrototypeOf({});a&&a!=f;){for(var g=u(Object.getOwnPropertyNames(a)),h=g.next();!h.done;h=g.next())h=h.value,c(h)&&(e.add(h),b(h,d[h]));a=Object.getPrototypeOf(a)}}
@@ -764,8 +765,8 @@ d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=u(Pp),m=l.ne
764
765
  function sq(a,b){if("addEventListener"==b)return function(d,e,f){return a.j.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.j.removeEventListener(d,e,f)};if(a.g.Ga()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.Ga()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
765
766
  function uq(a,b){a.A.has(b)&&(b=a.A.get(b));if("addEventListener"==b)return function(c,d,e){return a.o.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.o.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.fc()};if("getDrmEngine"==b)return function(){return a.h.F};if("getAdManager"==b)return function(){return a.h.ue()};
766
767
  if("setVideoContainer"==b)return function(c){return a.h.Ig(c)};if(a.g.Ga()){if("getManifest"==b||"drmInfo"==b)return function(){Ua(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ua(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Ga()&&0==Object.keys(a.g.g.video).length&&(Rp[b]||Sp[b])||!a.g.Ga()?a.h[b].bind(a.h):a.g.get("player",b)}
767
- function oq(a,b,c){a.g.Ga()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.o.dispatchEvent(c))}N("shaka.cast.CastProxy",lq);lq.prototype.changeReceiverId=lq.prototype.bh;lq.prototype.forceDisconnect=lq.prototype.Uc;lq.prototype.suggestDisconnect=lq.prototype.Uh;lq.prototype.setAppData=lq.prototype.Cg;lq.prototype.cast=lq.prototype.cast;lq.prototype.receiverName=lq.prototype.Ue;lq.prototype.isCasting=lq.prototype.Ga;lq.prototype.canCast=lq.prototype.Bf;lq.prototype.getPlayer=lq.prototype.Wc;
768
- lq.prototype.getVideo=lq.prototype.jc;lq.prototype.destroy=lq.prototype.destroy;function wq(a,b,c,d){bb.call(this);var e=this;this.g=a;this.h=b;this.j=new cd;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.o=!0;this.m=0;this.F=!1;this.A=!0;this.u=this.l=null;this.I=new Ob(function(){xq(e)});yq(this)}na(wq,bb);q=wq.prototype;q.isConnected=function(){return this.H};q.oj=function(){return this.o};q.bk=function(a){this.i=a};q.ti=function(){this.i=null};
768
+ function oq(a,b,c){a.g.Ga()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.o.dispatchEvent(c))}N("shaka.cast.CastProxy",lq);lq.prototype.changeReceiverId=lq.prototype.eh;lq.prototype.forceDisconnect=lq.prototype.Uc;lq.prototype.suggestDisconnect=lq.prototype.Wh;lq.prototype.setAppData=lq.prototype.Cg;lq.prototype.cast=lq.prototype.cast;lq.prototype.receiverName=lq.prototype.Ue;lq.prototype.isCasting=lq.prototype.Ga;lq.prototype.canCast=lq.prototype.Bf;lq.prototype.getPlayer=lq.prototype.Wc;
769
+ lq.prototype.getVideo=lq.prototype.jc;lq.prototype.destroy=lq.prototype.destroy;function wq(a,b,c,d){bb.call(this);var e=this;this.g=a;this.h=b;this.j=new cd;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.o=!0;this.m=0;this.F=!1;this.A=!0;this.u=this.l=null;this.I=new Ob(function(){xq(e)});yq(this)}na(wq,bb);q=wq.prototype;q.isConnected=function(){return this.H};q.oj=function(){return this.o};q.bk=function(a){this.i=a};q.wi=function(){this.i=null};
769
770
  q.ck=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.$j=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.Zj=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
770
771
  q.destroy=function(){var a=this,b,c;return L(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.I&&(a.I.stop(),a.I=null),a.g=null,a.J=null,a.G=null,a.H=!1,a.o=!0,a.l=null,a.u=null,bb.prototype.release.call(a),D(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();G(d)})};
771
772
  function yq(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return zq(a)};b.onSenderDisconnected=function(){return zq(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&Aq(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);Aq(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.u=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.u.onMessage=function(e){return Bq(a,
@@ -780,8 +781,8 @@ function Cq(a,b){var c=Lp(b.data);switch(c.type){case "init":a.m=0;a.F=!1;a.A=!0
780
781
  function Bq(a,b){var c=Lp(b.data);switch(c.type){case "PLAY":a.g.play();Hq(a);break;case "PAUSE":a.g.pause();Hq(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),Hq(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),Hq(a));break;case "STOP":a.h.Ic().then(function(){a.h&&Hq(a)});break;case "GET_STATUS":Kq(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.g.volume,f=a.g.muted;null!=b&&(a.g.volume=Number(b));
781
782
  null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||Hq(a);break;case "LOAD":a.m=0;a.F=!1;a.A=!1;b=c.media;d=c.currentTime;e=a.K(b.contentId);f=c.autoplay||!0;a.G(b.customData);f&&(a.g.autoplay=!0);a.h.load(e,d).then(function(){a.h&&Kq(a)}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");Aq(a,{requestId:Number(c.requestId),type:h},a.u)});break;default:Aq(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.u)}}
782
783
  function Lq(a,b,c,d){a.h&&Aq(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function Aq(a,b,c,d){a.H&&(a=Kp(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Hq(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.o?Mq:a.h.Od()?Nq:a.g.paused?Oq:Pq,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);Aq(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.u)}
783
- N("shaka.cast.CastReceiver",wq);wq.prototype.destroy=wq.prototype.destroy;wq.prototype.setContentArtist=wq.prototype.Zj;wq.prototype.setContentImage=wq.prototype.$j;wq.prototype.setContentTitle=wq.prototype.ck;wq.prototype.clearContentMetadata=wq.prototype.ti;wq.prototype.setContentMetadata=wq.prototype.bk;wq.prototype.isIdle=wq.prototype.oj;wq.prototype.isConnected=wq.prototype.isConnected;var Jq=.5,Fq=5,Mq="IDLE",Pq="PLAYING",Nq="BUFFERING",Oq="PAUSED";function Qq(a,b,c,d,e){if(d>=e)return null;for(var f=-1,g=-1,h=0;h<c.length;h++)if(c[h].some(function(z){return null!=z&&""!=z.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(z){return null!=z&&""!=z.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=Rq(d,e,h,k,l,m);f<=g;f++){for(var r=c[f],p=-1,t=-1,x=0;x<r.length;x++)if(null!=r[x]&&""!==r[x].g.trim()){p=x;break}for(x=r.length-1;0<=x;x--)if(null!=r[x]&&""!==r[x].g.trim()){t=x;break}if(-1===
784
- p||-1===t)r=Sq(d,e),a.nestedCues.push(r);else{for(;p<=t;p++)if(x=r[p]){var w=x.l,B=x.i,v=x.j,A=x.h;if(w!=h||B!=k||v!=l||A!=m)n.payload&&a.nestedCues.push(n),n=Rq(d,e,w,B,v,A),h=w,k=B,l=v,m=A;n.payload+=x.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=Sq(d,e),a.nestedCues.push(n));n=Rq(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
784
+ N("shaka.cast.CastReceiver",wq);wq.prototype.destroy=wq.prototype.destroy;wq.prototype.setContentArtist=wq.prototype.Zj;wq.prototype.setContentImage=wq.prototype.$j;wq.prototype.setContentTitle=wq.prototype.ck;wq.prototype.clearContentMetadata=wq.prototype.wi;wq.prototype.setContentMetadata=wq.prototype.bk;wq.prototype.isIdle=wq.prototype.oj;wq.prototype.isConnected=wq.prototype.isConnected;var Jq=.5,Fq=5,Mq="IDLE",Pq="PLAYING",Nq="BUFFERING",Oq="PAUSED";function Qq(a,b,c,d,e){if(d>=e)return null;for(var f=-1,g=-1,h=0;h<c.length;h++)if(c[h].some(function(z){return null!=z&&""!=z.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(z){return null!=z&&""!=z.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=Rq(d,e,h,k,l,m);f<=g;f++){for(var r=c[f],p=-1,t=-1,y=0;y<r.length;y++)if(null!=r[y]&&""!==r[y].g.trim()){p=y;break}for(y=r.length-1;0<=y;y--)if(null!=r[y]&&""!==r[y].g.trim()){t=y;break}if(-1===
785
+ p||-1===t)r=Sq(d,e),a.nestedCues.push(r);else{for(;p<=t;p++)if(y=r[p]){var x=y.l,A=y.i,v=y.j,B=y.h;if(x!=h||A!=k||v!=l||B!=m)n.payload&&a.nestedCues.push(n),n=Rq(d,e,x,A,v,B),h=x,k=A,l=v,m=B;n.payload+=y.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=Sq(d,e),a.nestedCues.push(n));n=Rq(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
785
786
  function Rq(a,b,c,d,e,f){a=new Bd(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function Sq(a,b){a=new Bd(a,b,"");a.lineBreak=!0;return a}function Tq(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function Uq(a,b){this.i=[];this.g=1;this.h=0;this.A=a;this.u=b;this.j=this.m=!1;this.l="white";this.o="black";Vq(this)}function Wq(a,b,c){var d="CC"+((a.A<<1|a.u)+1),e=new Bd(b,c,"");e.lineInterpretation=1;var f=Xq.get(a.g);f&&(e.line=f);return Qq(e,d,a.i,b,c)}function Vq(a){Yq(a,0,15);a.g=1}
786
787
  function Zq(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case $q:d=ar.has(c)?ar.get(c):String.fromCharCode(c);break;case br:d=cr.get(c);break;case dr:a.i[a.g].pop();d=er.get(c);break;case fr:a.i[a.g].pop(),d=gr.get(c)}d&&a.i[a.g].push(new Tq(d,a.m,a.j,a.o,a.l))}}function hr(a,b,c,d){if(!(0>c||0>b))if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;e<d;e++)a.i[b+e]=a.i[c+e].map(function(f){return f})}function Yq(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
787
788
  var $q=0,br=1,dr=2,fr=3,ar=new Map([[39,"\u2019"],[42,"\u00e1"],[92,"\u00e9"],[92,"\u00e9"],[94,"\u00ed"],[95,"\u00f3"],[96,"\u00fa"],[123,"\u00e7"],[124,"\u00f7"],[125,"\u00d1"],[126,"\u00f1"],[127,"\u2588"]]),cr=new Map([[48,"\u00ae"],[49,"\u00b0"],[50,"\u00bd"],[51,"\u00bf"],[52,"\u2122"],[53,"\u00a2"],[54,"\u00a3"],[55,"\u266a"],[56,"\u00e0"],[57," "],[58,"\u00e8"],[59,"\u00e2"],[60,"\u00ea"],[61,"\u00ee"],[62,"\u00f4"],[63,"\u00fb"]]),er=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],[35,
@@ -797,24 +798,24 @@ function Qr(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;ret
797
798
  var Vr=new Map([[32," "],[33,"\u00a0"],[37,"\u2026"],[42,"\u0160"],[44,"\u0152"],[48,"\u2588"],[49,"\u2018"],[50,"\u2019"],[51,"\u201c"],[52,"\u201d"],[53,"\u2022"],[57,"\u2122"],[58,"\u0161"],[60,"\u0153"],[61,"\u2120"],[63,"\u0178"],[118,"\u215b"],[119,"\u215c"],[120,"\u215d"],[121,"\u215e"],[122,"\u2502"],[123,"\u2510"],[124,"\u2514"],[125,"\u2500"],[126,"\u2518"],[127,"\u250c"]]),Ur="black blue green cyan red magenta yellow white".split(" ");function Wr(){this.h=[];this.g=[];this.i=new Kr;this.l=0;this.m=new Map([["CC1",new ir(0,0)],["CC2",new ir(0,1)],["CC3",new ir(1,0)],["CC4",new ir(1,1)]]);this.u=this.o=0;this.j=new Map;this.F=!0;this.A=new Set;Xr(this)}Wr.prototype.clear=function(){this.l=0;this.h=[];this.g=[];var a=this.i;a.i=[];a.h=[];a.g=0;Xr(this);a=u(this.j.values());for(var b=a.next();!b.done;b=a.next())Sr(b.value)};
798
799
  function Xr(a){a.o=0;a.u=0;for(var b=u(a.m.values()),c=b.next();!c.done;c=b.next())c=c.value,c.h=jr,c.g=c.j,c.m=null,Vq(c.i),Vq(c.j),Vq(c.o);a.F=!0}
799
800
  Wr.prototype.extract=function(a,b){if(this.F){for(var c=u(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.F=!1}a=new Dg(a,0);if(!(8>a.getLength())&&181===a.W()&&49===a.Ha()&&1195456820===a.R()&&3===a.W()&&(c=a.W(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.W(),f=(e&4)>>2,g=a.W(),h=a.W();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,zb:g,Sb:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})))}};
800
- Wr.prototype.decode=function(){function a(e,f){return e.pts-f.pts||e.order-f.order}var b=[];this.h.sort(a);this.g.sort(a);for(var c=u(this.h),d=c.next();!d.done;d=c.next())(d=Yr(this,d.value))&&b.push(d);c=u(this.g);for(d=c.next();!d.done;d=c.next())Lr(this.i,d.value);c=u(this.i.i);for(d=c.next();!d.done;d=c.next())d=Zr(this,d.value),b.push.apply(b,y(d));this.i.i=[];this.h=[];this.g=[];return b};
801
+ Wr.prototype.decode=function(){function a(e,f){return e.pts-f.pts||e.order-f.order}var b=[];this.h.sort(a);this.g.sort(a);for(var c=u(this.h),d=c.next();!d.done;d=c.next())(d=Yr(this,d.value))&&b.push(d);c=u(this.g);for(d=c.next();!d.done;d=c.next())Lr(this.i,d.value);c=u(this.i.i);for(d=c.next();!d.done;d=c.next())d=Zr(this,d.value),b.push.apply(b,w(d));this.i.i=[];this.h=[];this.g=[];return b};
801
802
  function Yr(a,b){var c=b.type;if(16===(b.zb&112)){var d=b.zb>>3&1;0===c?a.o=d:a.u=d}d="CC"+((c<<1|(c?a.u:a.o))+1);c=a.m.get(d);if(255===b.zb&&255===b.Sb||!b.zb&&!b.Sb||!$r(b.zb)||!$r(b.Sb))return 45<=++a.l&&Xr(a),null;a.l=0;b.zb&=127;b.Sb&=127;if(!b.zb&&!b.Sb)return null;a.A.add(d);a=null;if(16===(b.zb&112))a:{d=b.zb;a=b.Sb;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];var e=(a&30)>>1;d="white";var f=!1;7>e?d=
802
803
  rr[e]:7===e&&(f=!0);a=1===(a&1);c.h!==mr&&(e=c.g,c.h===lr&&b!==e.g&&(c=1+b-e.h,hr(e,c,1+e.g-e.h,e.h),Yq(e,0,c-1),Yq(e,b+1,15-b)),e.g=b,e.m=a,e.j=f,e.l=d,e.o="black")}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",Zq(c.g,$q,32),d=!1,b=rr[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=qr[(a&14)>>1]),c.g.o=b;else if(17===(d&247)&&48===(a&240))Zq(c.g,br,a);else if(18===
803
804
  (d&246)&&32===(a&224))Zq(c.g,d&1?fr:dr,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.Sb){case 32:nr(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=kr(c,2,a);break;case 38:d=kr(c,3,a);break;case 39:d=kr(c,4,a);break;case 40:Zq(c.g,$q,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:Vq(c.o);pr(c);break;case 43:pr(c);break;case 44:b=c.i;d=null;c.h!==mr&&(d=Wq(b,c.l,a));Yq(b,0,15);break;case 45:b=c.g;c.h!==lr?d=null:(d=Wq(b,c.l,a),f=b.g-b.h+1,hr(b,f-1,f,b.h),Yq(b,0,
804
805
  f-1),Yq(b,b.g,15-b.g),c.l=a);break;case 46:Yq(c.j,0,15);break;case 47:b=null,c.h!==mr&&(b=Wq(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,nr(c),c.l=a,d=b}a=d;break a}a=null}else d=b.Sb,Zq(c.g,$q,b.zb),Zq(c.g,$q,d);return a}
805
806
  function Zr(a,b){var c=[];try{for(;b.Aa();){var d=Nr(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Nr(b).value&63);if(0!=e){a.A.add("svc"+e);a.j.has(e)||a.j.set(e,new Or(e));for(var g=a.j.get(e),h=b.Na();b.Na()-h<f;){e=b;var k=Nr(e),l=k.value,m=k.pts;if(16===l){var n=Nr(e);l=l<<16|n.value}if(0<=l&&31>=l){var r=m;if(g.g){var p=g.g;e=null;switch(l){case 8:!xr(p)||0>=p.g&&0>=p.h||(0>=p.g?(p.g=p.m-1,p.h--):p.g--,p.i[p.h][p.g]=null);break;case 13:p.isVisible()&&(e=yr(p,r,g.i));if(p.h+1>=p.o){r=p;for(var t=
806
- 0,x=1;16>x;x++,t++)r.i[t]=r.i[x];for(x=0;1>x;x++,t++)r.i[t]=vr()}else p.h++;p.g=0;break;case 14:p.isVisible()&&(e=yr(p,r,g.i));p.i[p.h]=vr();p.g=0;break;case 12:p.isVisible()&&(e=yr(p,r,g.i)),ur(p),r=p,r.h=0,r.g=0}var w=e}else w=null}else if(128<=l&&159>=l)w=Pr(g,e,l,m);else{if(4096<=l&&4127>=l)r=l&255,8<=r&&15>=r?e.skip(1):16<=r&&23>=r?e.skip(2):24<=r&&31>=r&&e.skip(3);else if(4224<=l&&4255>=l)r=l&255,128<=r&&135>=r?e.skip(4):136<=r&&143>=r&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?wr(g.g,
807
- "\u266a"):wr(g.g,String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&wr(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Vr.has(e)){var B=Vr.get(e);wr(g.g,B)}else wr(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?wr(g.g,"_"):wr(g.g,"[CC]"));w=null}(e=w)&&c.push(e)}}}}catch(v){if(v instanceof R&&3E3===v.code)Va("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw v;}return c}function $r(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}
808
- Wr.prototype.getStreams=function(){return Array.from(this.A)};N("shaka.cea.CeaDecoder",Wr);ud=function(){return new Wr};function as(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(y(c)),c.splice(d,1),c=new Uint8Array(c)):0==c[d]?a++:a=0,d++;a=c;for(d=0;d<a.length;){for(c=0;255==a[d];)c+=255,d++;c+=a[d++];for(var e=0;255==a[d];)e+=255,d++;e+=a[d++];4==c&&b.push(a.subarray(d,d+e));d+=e}return b};function bs(){this.j=new Map;this.i=this.h=0;this.g=cs}
807
+ 0,y=1;16>y;y++,t++)r.i[t]=r.i[y];for(y=0;1>y;y++,t++)r.i[t]=vr()}else p.h++;p.g=0;break;case 14:p.isVisible()&&(e=yr(p,r,g.i));p.i[p.h]=vr();p.g=0;break;case 12:p.isVisible()&&(e=yr(p,r,g.i)),ur(p),r=p,r.h=0,r.g=0}var x=e}else x=null}else if(128<=l&&159>=l)x=Pr(g,e,l,m);else{if(4096<=l&&4127>=l)r=l&255,8<=r&&15>=r?e.skip(1):16<=r&&23>=r?e.skip(2):24<=r&&31>=r&&e.skip(3);else if(4224<=l&&4255>=l)r=l&255,128<=r&&135>=r?e.skip(4):136<=r&&143>=r&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?wr(g.g,
808
+ "\u266a"):wr(g.g,String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&wr(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Vr.has(e)){var A=Vr.get(e);wr(g.g,A)}else wr(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?wr(g.g,"_"):wr(g.g,"[CC]"));x=null}(e=x)&&c.push(e)}}}}catch(v){if(v instanceof R&&3E3===v.code)Va("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw v;}return c}function $r(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}
809
+ Wr.prototype.getStreams=function(){return Array.from(this.A)};N("shaka.cea.CeaDecoder",Wr);ud=function(){return new Wr};function as(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(w(c)),c.splice(d,1),c=new Uint8Array(c)):0==c[d]?a++:a=0,d++;a=c;for(d=0;d<a.length;){for(c=0;255==a[d];)c+=255,d++;c+=a[d++];for(var e=0;255==a[d];)e+=255,d++;e+=a[d++];4==c&&b.push(a.subarray(d,d+e));d+=e}return b};function bs(){this.j=new Map;this.i=this.h=0;this.g=cs}
809
810
  bs.prototype.init=function(a){function b(f){f=f.name;f in ds&&(c.g=ds[f])}var c=this,d=[],e=[];(new Gg).box("moov",Lg).box("mvex",Lg).T("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.R();g=g.R();c.h=f;c.i=g}).box("trak",Lg).T("tkhd",function(f){f=Ui(f.reader,f.version);d.push(f.trackId)}).box("mdia",Lg).T("mdhd",function(f){f=Si(f.reader,f.version);e.push(f.timescale)}).box("minf",Lg).box("stbl",Lg).T("stsd",Ng).box("avc1",b).box("avc3",b).box("hev1",b).box("hvc1",b).box("dvav",b).box("dva1",
810
811
  b).box("dvh1",b).box("dvhe",b).box("encv",Og).box("sinf",Lg).box("frma",function(f){f=Vi(f.reader).ab;f in ds&&(c.g=ds[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new R(2,2,2010);this.g==cs&&Ua("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
811
- bs.prototype.parse=function(a){var b=this;if(this.g==cs)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new Gg).box("moof",function(l){f=l.start;g=[];Lg(l)}).box("traf",Lg).T("trun",function(l){l=Ti(l.reader,l.version,l.flags);g.push(l)}).T("tfhd",function(l){l=Qi(l.reader,l.flags);d=l.hh||b.h;e=l.zi||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).T("tfdt",function(l){h=Ri(l.reader,l.version).baseMediaDecodeTime}).box("mdat",function(l){if(null===h)throw Ua("Unable to find base media decode time for CEA captions!"),
812
+ bs.prototype.parse=function(a){var b=this;if(this.g==cs)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new Gg).box("moof",function(l){f=l.start;g=[];Lg(l)}).box("traf",Lg).T("trun",function(l){l=Ti(l.reader,l.version,l.flags);g.push(l)}).T("tfhd",function(l){l=Qi(l.reader,l.flags);d=l.jh||b.h;e=l.Ai||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).T("tfdt",function(l){h=Ri(l.reader,l.version).baseMediaDecodeTime}).box("mdat",function(l){if(null===h)throw Ua("Unable to find base media decode time for CEA captions!"),
812
813
  new R(2,2,2010);es(b,l.reader,h,k,d,e,f-l.start-8,g,c)}).parse(a,!1);return c};
813
- function es(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(t){return t.Ih});n=[].concat.apply([],y(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].xi);b.Aa();){g=b.R();var r=b.W(),p=null;p=!1;h=1;switch(a.g){case fs:p=r&31;p=6==p;break;case gs:h=2;b.skip(1);p=r>>1&63;p=39==p||40==p;break;default:return}if(p)for(r=0,l<n.length&&(r=n[l].We||0),r=(c+r)/d,h=u(as(b.Pb(g-h))),p=h.next();!p.done;p=h.next())k.push({packet:p.value,pts:r});else try{b.skip(g-h)}catch(t){break}m-=g+4;0==m&&(c=l<n.length?
814
+ function es(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(t){return t.Kh});n=[].concat.apply([],w(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].zi);b.Aa();){g=b.R();var r=b.W(),p=null;p=!1;h=1;switch(a.g){case fs:p=r&31;p=6==p;break;case gs:h=2;b.skip(1);p=r>>1&63;p=39==p||40==p;break;default:return}if(p)for(r=0,l<n.length&&(r=n[l].We||0),r=(c+r)/d,h=u(as(b.Pb(g-h))),p=h.next();!p.done;p=h.next())k.push({packet:p.value,pts:r});else try{b.skip(g-h)}catch(t){break}m-=g+4;0==m&&(c=l<n.length?
814
815
  c+(n[l].yg||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}N("shaka.cea.Mp4CeaParser",bs);var cs=0,fs=1,gs=2,ds={avc1:fs,avc3:fs,hev1:gs,hvc1:gs,dvav:fs,dva1:fs,dvh1:gs,dvhe:gs};td["video/mp4"]=function(){return new bs};function hs(){this.g=null}hs.prototype.init=function(){};hs.prototype.parse=function(a){this.g?this.g.clearData():this.g=new lj;var b=[];a=Fb(a);if(!sj(a))return b;a=this.g.parse(a);var c=a.Gd(),d=a.Ae();a=[];switch(c.video){case "avc":a.push(6);break;case "hvc":a.push(39),a.push(40)}if(!a.length)return b;c=u(d);for(d=c.next();!d.done;d=c.next())if(d=d.value,a.includes(d.type)&&null!=d.time)for(var e=u(as(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};
815
816
  N("shaka.cea.TsCeaParser",hs);td["video/mp2t"]=function(){return new hs};function is(a,b,c){var d=js(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(l){return l.keyId}));h.delete(null);var k="cenc";if(1<h.size)throw new R(2,4,4010);if(!b){f=d.filter(function(l){return"urn:mpeg:dash:sea:2012"==l.fd});if(1<f.length)throw new R(2,4,4050);f.length&&(g=ks(f[0]));(f=d.find(function(l){return"urn:mpeg:dash:mp4protection:2011"==l.fd}))&&f.encryptionScheme&&(k=f.encryptionScheme);f=d.filter(function(l){return"urn:mpeg:dash:mp4protection:2011"==l.fd?(e=l.init||e,!1):"urn:mpeg:dash:sea:2012"!=
816
- l.fd});f.length&&(a=ls(e,k,f,c,h),0==a.length&&(a=[Bc("",k,e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=u(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Bc(c,k,e));if(h=Array.from(h)[0]||null)for(k=u(a),b=k.next();!b.done;b=k.next())for(b=u(b.value.initData),c=b.next();!c.done;c=b.next())c.value.keyId=h;return{gh:h,xl:e,drmInfos:a,yf:g,kh:!0}}
817
- function ms(a,b,c,d){var e=is(a,c,d);if(b.kh){a=1==b.drmInfos.length&&!b.drmInfos[0].keySystem;c=0==e.drmInfos.length;if(0==b.drmInfos.length||a&&!c)b.drmInfos=e.drmInfos;b.kh=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new R(2,4,4008);return e.gh||b.gh}
817
+ l.fd});f.length&&(a=ls(e,k,f,c,h),0==a.length&&(a=[Bc("",k,e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=u(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Bc(c,k,e));if(h=Array.from(h)[0]||null)for(k=u(a),b=k.next();!b.done;b=k.next())for(b=u(b.value.initData),c=b.next();!c.done;c=b.next())c.value.keyId=h;return{ih:h,xl:e,drmInfos:a,yf:g,mh:!0}}
818
+ function ms(a,b,c,d){var e=is(a,c,d);if(b.mh){a=1==b.drmInfos.length&&!b.drmInfos[0].keySystem;c=0==e.drmInfos.length;if(0==b.drmInfos.length||a&&!c)b.drmInfos=e.drmInfos;b.mh=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new R(2,4,4008);return e.ih||b.ih}
818
819
  function ns(a){var b=0,c=Kb(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=Fb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function os(a){a=u(dh(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.children){b=u(b.children);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"LA_URL"==c.tagName)return bh(c)}return""}
819
820
  function ps(a){var b=fh(a.node,"https://dashif.org/CPS","Laurl");if(b&&(b=bh(b)))return b;a=fh(a.node,"urn:microsoft:playready","pro");if(!a||!bh(a))return"";a=bh(a);a=wc(a);a=ns(a).filter(function(c){return c.type===qs})[0];if(!a)return"";a=mc(a.value,!0);return(a=Ug(a,"WRMHEADER"))?os(a):""}
820
821
  function ls(a,b,c,d,e){var f=[];c=u(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=d[g.fd];if(h){var k;if((k=fh(g.node,"urn:microsoft:playready","pro"))&&bh(k)){k=bh(k);k=wc(k);var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);k=[{initData:Sg(k,l,new Set,0),initDataType:"cenc",keyId:g.keyId}]}else k=null;l=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===g.fd)if(l=e,0==l.size)l=null;else{var m=new Uint8Array([16,119,239,236,192,178,77,2,172,227,
@@ -825,62 +826,62 @@ if(!a||!b)throw new R(2,4,4051);a=xc(a.substr(2));if(16!=a.byteLength)throw new
825
826
  var qs=1,rs=(new Map).set("com.widevine.alpha",function(a){var b=fh(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=bh(b))?b:(a=fh(a.node,"urn:microsoft","laurl"))?sc(a.attributes.licenseUrl)||"":""}).set("com.microsoft.playready",ps).set("com.microsoft.playready.recommendation",ps).set("com.microsoft.playready.software",ps).set("com.microsoft.playready.hardware",ps).set("org.w3.clearkey",function(a){var b=fh(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=bh(b))?b:(a=fh(a.node,"http://dashif.org/guidelines/clearKey",
826
827
  "Laurl"))&&"EME-1.0"===a.attributes.Lic_type&&a&&(a=bh(a))?a:""});function ts(a,b,c,d,e,f){var g={RepresentationID:b,Number:c,SubNumber:d,Bandwidth:e,Time:f};return a.replace(/\$(RepresentationID|Number|SubNumber|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(h,k,l,m){if("$$"==h)return"$";var n=g[k];if(null==n)return h;"RepresentationID"==k&&l&&(l=void 0);"Time"==k&&"bigint"!=typeof n&&(.2<=Math.abs(n-Math.round(n))&&Ua("Calculated $Time$ values must be close to integers"),n=Math.round(n));switch(m){case void 0:case "d":case "i":case "u":h=n.toString();
827
828
  break;case "o":h=n.toString(8);break;case "x":h=n.toString(16);break;case "X":h=n.toString(16).toUpperCase();break;default:h=n.toString()}l=window.parseInt(l,10)||1;return Array(Math.max(0,l-h.length)+1).join("0")+h})}
828
- function us(a,b){var c=vs(a,b,"timescale"),d=1;c&&(d=qh(c)||1);c=vs(a,b,"duration");(c=qh(c||""))&&(c/=d);var e=vs(a,b,"startNumber"),f=Number(vs(a,b,"presentationTimeOffset"))||0,g=rh(e||"");if(null==e||null==g)g=1;var h=ws(a,b,"SegmentTimeline");b=null;if(h){b=d;a=a.xa.duration||Infinity;e=g;h=ah(h,"S");for(var k=[],l=-f,m=0;m<h.length;++m){var n=h[m],r=h[m+1],p=hh(n,"t",rh),t=hh(n,"d",rh),x=hh(n,"r",ph);n=hh(n,"k",ph)||0;null!=p&&(p-=f);if(!t)break;p=null!=p?p:l;x=x||0;if(0>x)if(r){r=hh(r,"t",
829
- rh);if(null==r)break;else if(p>=r)break;x=Math.ceil((r-p)/t)-1}else{if(Infinity==a)break;else if(p/b>=a)break;x=Math.ceil((a*b-p)/t)-1}0<k.length&&p!=l&&(k[k.length-1].end=p/b);for(r=0;r<=x;++r)l=p+t,k.push({start:p/b,end:l/b,Pg:p,Ob:n,Xj:k.length+e}),p=l}b=k}return{timescale:d,Xa:c,Zd:g,ac:f/d||0,Og:f,timeline:b}}function xs(a,b){return[b(a.N),b(a.La),b(a.Sa)].filter(Ke)}function vs(a,b,c){b=xs(a,b);a=null;b=u(b);for(var d=b.next();!d.done&&!(a=d.value.attributes[c]);d=b.next());return a}
829
+ function us(a,b){var c=vs(a,b,"timescale"),d=1;c&&(d=qh(c)||1);c=vs(a,b,"duration");(c=qh(c||""))&&(c/=d);var e=vs(a,b,"startNumber"),f=Number(vs(a,b,"presentationTimeOffset"))||0,g=rh(e||"");if(null==e||null==g)g=1;var h=ws(a,b,"SegmentTimeline");b=null;if(h){b=d;a=a.xa.duration||Infinity;e=g;h=ah(h,"S");for(var k=[],l=-f,m=0;m<h.length;++m){var n=h[m],r=h[m+1],p=hh(n,"t",rh),t=hh(n,"d",rh),y=hh(n,"r",ph);n=hh(n,"k",ph)||0;null!=p&&(p-=f);if(!t)break;p=null!=p?p:l;y=y||0;if(0>y)if(r){r=hh(r,"t",
830
+ rh);if(null==r)break;else if(p>=r)break;y=Math.ceil((r-p)/t)-1}else{if(Infinity==a)break;else if(p/b>=a)break;y=Math.ceil((a*b-p)/t)-1}0<k.length&&p!=l&&(k[k.length-1].end=p/b);for(r=0;r<=y;++r)l=p+t,k.push({start:p/b,end:l/b,Pg:p,Ob:n,Xj:k.length+e}),p=l}b=k}return{timescale:d,Xa:c,Zd:g,ac:f/d||0,Og:f,timeline:b}}function xs(a,b){return[b(a.N),b(a.La),b(a.Sa)].filter(Ke)}function vs(a,b,c){b=xs(a,b);a=null;b=u(b);for(var d=b.next();!d.done&&!(a=d.value.attributes[c]);d=b.next());return a}
830
831
  function ws(a,b,c){b=xs(a,b);a=null;b=u(b);for(var d=b.next();!d.done&&!(a=eh(d.value,c));d=b.next());return a}
831
832
  function ys(a,b,c,d,e,f){for(var g=ih(a,"http://www.w3.org/1999/xlink","href"),h=ih(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=u(Object.keys(a.attributes)),l=k.next();!l.done;l=k.next()){l=l.value;var m=l.split(":"),n=Wg("http://www.w3.org/1999/xlink");m[0]==n&&delete a.attributes[l]}if(5<=f)return fg(new R(2,4,4028));if("onLoad"!=h)return fg(new R(2,4,4027));var r=Ac([d],[g]);return e.request(0,rg(r,b)).Ma(function(p){p=Tg(p.data,a.tagName);if(!p)return fg(new R(2,4,4001,g));for(a.children=
832
- [];p.children.length;){var t=p.children.shift();t.tagName&&(t.parent=a);a.children.push(t)}t=u(Object.keys(p.attributes));for(var x=t.next();!x.done;x=t.next())x=x.value,a.attributes[x]=p.attributes[x];return zs(a,b,c,r[0],e,f+1)})}
833
- function zs(a,b,c,d,e,f){f=void 0===f?0:f;if(ih(a,"http://www.w3.org/1999/xlink","href")){var g=ys(a,b,c,d,e,f);c&&(g=g.Ma(void 0,function(){return zs(a,b,c,d,e,f)}));return g}g=[];for(var h={},k=u($g(a)),l=k.next();!l.done;h={Mc:h.Mc},l=k.next())h.Mc=l.value,"urn:mpeg:dash:resolve-to-zero:2013"==ih(h.Mc,"http://www.w3.org/1999/xlink","href")?a.children=a.children.filter(function(m){return function(n){return n!==m.Mc}}(h)):"SegmentTimeline"!=h.Mc.tagName&&g.push(zs(h.Mc,b,c,d,e,f));return jg(g).Ma(function(){return a})}
833
+ [];p.children.length;){var t=p.children.shift();t.tagName&&(t.parent=a);a.children.push(t)}t=u(Object.keys(p.attributes));for(var y=t.next();!y.done;y=t.next())y=y.value,a.attributes[y]=p.attributes[y];return zs(a,b,c,r[0],e,f+1)})}
834
+ function zs(a,b,c,d,e,f){f=void 0===f?0:f;if(ih(a,"http://www.w3.org/1999/xlink","href")){var g=ys(a,b,c,d,e,f);c&&(g=g.Ma(void 0,function(){return zs(a,b,c,d,e,f)}));return g}g=[];for(var h={},k=u(Zg(a)),l=k.next();!l.done;h={Mc:h.Mc},l=k.next())h.Mc=l.value,"urn:mpeg:dash:resolve-to-zero:2013"==ih(h.Mc,"http://www.w3.org/1999/xlink","href")?a.children=a.children.filter(function(m){return function(n){return n!==m.Mc}}(h)):"SegmentTimeline"!=h.Mc.tagName&&g.push(zs(h.Mc,b,c,d,e,f));return jg(g).Ma(function(){return a})}
834
835
  ;function As(a,b,c,d,e,f,g){var h,k=(new Gg).T("sidx",function(l){h=Bs(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new R(2,3,3004);}
835
836
  function Bs(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.R();if(0==k)throw new R(2,3,3005);if(0==g.version){var l=g.reader.R();var m=g.reader.R()}else l=g.reader.ed(),m=g.reader.ed();g.reader.skip(2);var n=g.reader.Ha();a=a+g.size+m;for(m=0;m<n;m++){var r=g.reader.R(),p=(r&2147483648)>>>31;r&=2147483647;var t=g.reader.R();g.reader.skip(4);if(1==p)throw new R(2,3,3006);h.push(new Ai(l/k+c,(l+t)/k+c,function(){return f},a,a+r-1,b,c,d,e));l+=t;a+=r}g.parser.stop();return h};function Cs(a){this.h=Kb(a);this.g=new Dg(this.h,0)}Cs.prototype.Aa=function(){return this.g.Aa()};
836
837
  function Ds(a){var b=Es(a);if(7<b.length)throw new R(2,3,3002);var c=0;b=u(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=Es(a);a:{d=u(Fs);for(var e=d.next();!e.done;e=d.next())if(Cb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.Na();else{if(8==b.length&&b[1]&224)throw new R(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.Na()+b<=a.h.byteLength?b:a.h.byteLength-a.g.Na();d=Kb(a.h,a.g.Na(),b);a.g.skip(b);return new Gs(c,
837
838
  d)}function Es(a){var b=a.g.Na(),c=a.g.W();if(0==c)throw new R(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Fb(a.h,b,c)}var Fs=[[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 Gs(a,b){this.id=a;this.g=b}
838
839
  function Hs(a){if(8<a.g.byteLength)throw new R(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new R(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function Is(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Cs(a.g);for(var n=null,r=null;a.Aa();){var p=Ds(a);if(187==p.id){var t=Js(p);t&&(p=c*t.lk,t=b+t.Mj,null!=n&&m.push(new Ai(n+g,p+g,l,r,t-1,f,g,h,k)),n=p,r=t)}}null!=n&&m.push(new Ai(n+g,d+g,l,r,null,f,g,h,k));return m}
839
- function Js(a){var b=new Cs(a.g);a=Ds(b);if(179!=a.id)throw new R(2,3,3013);a=Hs(a);b=Ds(b);if(183!=b.id)throw new R(2,3,3012);b=new Cs(b.g);for(var c=0;b.Aa();){var d=Ds(b);if(241==d.id){c=Hs(d);break}}return{lk:a,Mj:c}};function Ks(a,b,c){b=ws(a,b,"Initialization");if(!b)return null;var d=a.N.Hb(),e=b.attributes.sourceURL;e&&(d=Ac(d,[sc(e)]));e=0;var f=null;if(b=hh(b,"range",oh))e=b.start,f=b.end;c=new yi(function(){return d},e,f,Ls(a),null,null,c);c.codecs=a.N.codecs;c.mimeType=a.N.mimeType;return c}
840
+ function Js(a){var b=new Cs(a.g);a=Ds(b);if(179!=a.id)throw new R(2,3,3013);a=Hs(a);b=Ds(b);if(183!=b.id)throw new R(2,3,3012);b=new Cs(b.g);for(var c=0;b.Aa();){var d=Ds(b);if(241==d.id){c=Hs(d);break}}return{lk:a,Mj:c}};function Ks(a,b,c){b=ws(a,b,"Initialization");if(!b)return null;var d=a.N.Hb(),e=b.attributes.sourceURL;e&&(d=Ac(d,[sc(e)]));e=0;var f=null;if(b=hh(b,"range",mh))e=b.start,f=b.end;c=new yi(function(){return d},e,f,Ls(a),null,null,c);c.codecs=a.N.codecs;c.mimeType=a.N.mimeType;return c}
840
841
  function Ms(a,b,c){var d=Number(vs(a,Ns,"presentationTimeOffset"))||0,e=vs(a,Ns,"timescale"),f=1;e&&(f=qh(e)||1);var g=d/f||0,h=Ks(a,Ns,c);Os(a,h);var k=Me(a);return{Vc:function(){var l=ws(k,Ns,"RepresentationIndex");var m=k.N.Hb();l&&(l=sc(l.attributes.sourceURL))&&(m=Ac(m,[l]));l=Ps(k);return Qs(k,b,h,m,l.start,l.end,g)}}}
841
- function Qs(a,b,c,d,e,f,g){var h,k,l,m,n,r,p,t,x,w,B,v,A,z,C,E,H,J;return L(function(F){if(1==F.g)return h=a.presentationTimeline,k=!a.dc||!a.xa.fg,l=a.xa.start,m=a.xa.duration,n=a.N.mimeType.split("/")[1],r=b,p=null,t=[r(d,e,f,!1),"webm"==n?r(c.ka(),c.Ta,c.za,!0):null],r=null,D(F,Promise.all(t),2);x=F.h;w=x[0];B=x[1]||null;v=null;A=l-g;z=l;C=m?l+m:Infinity;if("mp4"==n)var I=As(w,e,d,c,A,z,C);else{I=new Cs(B);if(440786851!=Ds(I).id)throw new R(2,3,3008);var K=Ds(I);if(408125543!=K.id)throw new R(2,
842
- 3,3009);I=K.g.byteOffset;K=new Cs(K.g);for(var M=null;K.Aa();){var P=Ds(K);if(357149030==P.id){M=P;break}}if(!M)throw new R(2,3,3010);M=new Cs(M.g);P=1E6;for(K=null;M.Aa();){var O=Ds(M);if(2807729==O.id)P=Hs(O);else if(17545==O.id)if(4==O.g.byteLength)K=O.g.getFloat32(0);else if(8==O.g.byteLength)K=O.g.getFloat64(0);else throw new R(2,3,3003);}if(null==K)throw new R(2,3,3011);M=P/1E9;K*=M;P=Ds(new Cs(w));if(475249515!=P.id)throw new R(2,3,3007);I=Is(P,I,M,K,d,c,A,z,C)}v=I;E=u(v);for(H=E.next();!H.done;H=
843
- E.next())J=H.value,J.codecs=a.N.codecs,J.mimeType=a.N.mimeType;h.Td(v);p=new Mk(v);k&&p.Sc(z,C,!0);return F.return(p)})}function Ns(a){return a.Xd}function Ps(a){var b=ws(a,Ns,"RepresentationIndex");a=vs(a,Ns,"indexRange");a=oh(a||"");b&&(a=hh(b,"range",oh,a));return a}function Os(a,b){Rs(a,b);if(!Ps(a))throw new R(2,4,4002);}function Rs(a,b){var c=a.N.mimeType.split("/")[1];if(a.N.contentType!=Gc&&"mp4"!=c&&"webm"!=c)throw new R(2,4,4006);if("webm"==c&&!b)throw new R(2,4,4005);}
842
+ function Qs(a,b,c,d,e,f,g){var h,k,l,m,n,r,p,t,y,x,A,v,B,z,C,E,H,J;return L(function(F){if(1==F.g)return h=a.presentationTimeline,k=!a.dc||!a.xa.fg,l=a.xa.start,m=a.xa.duration,n=a.N.mimeType.split("/")[1],r=b,p=null,t=[r(d,e,f,!1),"webm"==n?r(c.ka(),c.Ta,c.za,!0):null],r=null,D(F,Promise.all(t),2);y=F.h;x=y[0];A=y[1]||null;v=null;B=l-g;z=l;C=m?l+m:Infinity;if("mp4"==n)var I=As(x,e,d,c,B,z,C);else{I=new Cs(A);if(440786851!=Ds(I).id)throw new R(2,3,3008);var K=Ds(I);if(408125543!=K.id)throw new R(2,
843
+ 3,3009);I=K.g.byteOffset;K=new Cs(K.g);for(var M=null;K.Aa();){var P=Ds(K);if(357149030==P.id){M=P;break}}if(!M)throw new R(2,3,3010);M=new Cs(M.g);P=1E6;for(K=null;M.Aa();){var O=Ds(M);if(2807729==O.id)P=Hs(O);else if(17545==O.id)if(4==O.g.byteLength)K=O.g.getFloat32(0);else if(8==O.g.byteLength)K=O.g.getFloat64(0);else throw new R(2,3,3003);}if(null==K)throw new R(2,3,3011);M=P/1E9;K*=M;P=Ds(new Cs(x));if(475249515!=P.id)throw new R(2,3,3007);I=Is(P,I,M,K,d,c,B,z,C)}v=I;E=u(v);for(H=E.next();!H.done;H=
844
+ E.next())J=H.value,J.codecs=a.N.codecs,J.mimeType=a.N.mimeType;h.Td(v);p=new Mk(v);k&&p.Sc(z,C,!0);return F.return(p)})}function Ns(a){return a.Xd}function Ps(a){var b=ws(a,Ns,"RepresentationIndex");a=vs(a,Ns,"indexRange");a=mh(a||"");b&&(a=hh(b,"range",mh,a));return a}function Os(a,b){Rs(a,b);if(!Ps(a))throw new R(2,4,4002);}function Rs(a,b){var c=a.N.mimeType.split("/")[1];if(a.N.contentType!=Gc&&"mp4"!=c&&"webm"!=c)throw new R(2,4,4006);if("webm"==c&&!b)throw new R(2,4,4005);}
844
845
  function Ls(a){var b=a.N;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.Ne,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function Ss(a,b,c){var d=Ks(a,Ts,c),e=Us(a);if(!e.Xa&&!e.timeline&&1<e.$c.length)throw new R(2,4,4002);if(!e.Xa&&!a.xa.duration&&!e.timeline&&1==e.$c.length)throw new R(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new R(2,4,4002);var f=null,g=null;a.Sa.id&&a.N.id&&(g=b[a.Sa.id+","+a.N.id])&&(f=g.segmentIndex);var h=Vs(a.xa.start,a.xa.duration,a.N.Hb,e,d,c,a.N.mimeType,a.N.codecs);b=!f;f?f.Sd(h,a.presentationTimeline.Lb()):f=new Mk(h);a.presentationTimeline.Td(h);a.dc&&a.xa.fg||f.Sc(a.xa.start,
845
846
  a.xa.duration?a.xa.start+a.xa.duration:Infinity,b);g&&(g.segmentIndex=f);return{Vc:function(){f&&0!=f.getNumReferences()||f.Je(h);return Promise.resolve(f)}}}function Ts(a){return a.lc}function Us(a){var b=Ws(a);a=us(a,Ts);var c=a.Zd;0==c&&(c=1);var d=0;a.Xa?d=a.Xa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{Xa:a.Xa,startTime:d,Zd:c,ac:a.ac,timeline:a.timeline,$c:b}}
846
- function Vs(a,b,c,d,e,f,g,h){var k=d.$c.length;d.timeline&&d.timeline.length!=d.$c.length&&(k=Math.min(d.timeline.length,d.$c.length));for(var l=a-d.ac,m=b?a+b:Infinity,n=[],r=d.startTime,p={},t=0;t<k;p={xd:p.xd,td:p.td},t++){p.td=d.$c[t];var x=r;r=void 0;r=null!=d.Xa?x+d.Xa:d.timeline?d.timeline[t].end:x+b;p.xd=null;x=new Ai(a+x,a+r,function(w){return function(){null==w.xd&&(w.xd=Ac(c(),[w.td.Cj]));return w.xd}}(p),p.td.start,p.td.end,e,l,a,m,[],"",null,null,Bi,f);x.codecs=h;x.mimeType=g;n.push(x)}return n}
847
- function Ws(a){return[a.N.lc,a.La.lc,a.Sa.lc].filter(Ke).map(function(b){return ah(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.attributes.indexRange&&!a.uh&&(a.uh=!0);var c=sc(b.attributes.media);b=hh(b,"mediaRange",oh,{start:0,end:null});return{Cj:c,start:b.start,end:b.end}})};function Xs(a,b,c,d,e,f,g,h){var k=Ys(a,g),l=Zs(a);$s(l);var m=Me(a);if(l.Nd)return Rs(a,k),{Vc:function(){var x=ts(l.Nd,m.N.id,null,null,m.bandwidth||null,null);x=Ac(m.N.Hb(),[x]);return Qs(m,b,k,x,0,null,l.ac)}};if(l.Xa)return d||"image"===a.La.contentType||(a.presentationTimeline.og(l.Xa),a.presentationTimeline.Me(a.xa.start)),{Vc:function(){return at(m,l,e,k,f,g,h)}};var n=null;d=d=null;a.Sa.id&&a.N.id&&(d=a.Sa.id+","+a.N.id,d=c[d])&&(n=d.segmentIndex);var r=a.xa.start,p=a.xa.duration?r+a.xa.duration:
848
- Infinity,t=!(a.dc&&a.xa.fg);n?(c=n,bt(c,l,r,p,t,k),c.fb(a.presentationTimeline.Lb())):n=new ct(l,a.N.id,a.bandwidth,a.N.Hb,r,p,k,t,g,a.N.zg);l.timeline&&"image"!==a.La.contentType&&a.presentationTimeline.Eh(l.timeline,r);d&&a.dc&&(d.segmentIndex=n);return{Vc:function(){n instanceof ct&&0==n.getNumReferences()&&bt(n,l,r,p,t,k);return Promise.resolve(n)}}}function dt(a){return a.Yd}
847
+ function Vs(a,b,c,d,e,f,g,h){var k=d.$c.length;d.timeline&&d.timeline.length!=d.$c.length&&(k=Math.min(d.timeline.length,d.$c.length));for(var l=a-d.ac,m=b?a+b:Infinity,n=[],r=d.startTime,p={},t=0;t<k;p={xd:p.xd,td:p.td},t++){p.td=d.$c[t];var y=r;r=void 0;r=null!=d.Xa?y+d.Xa:d.timeline?d.timeline[t].end:y+b;p.xd=null;y=new Ai(a+y,a+r,function(x){return function(){null==x.xd&&(x.xd=Ac(c(),[x.td.Cj]));return x.xd}}(p),p.td.start,p.td.end,e,l,a,m,[],"",null,null,Bi,f);y.codecs=h;y.mimeType=g;n.push(y)}return n}
848
+ function Ws(a){return[a.N.lc,a.La.lc,a.Sa.lc].filter(Ke).map(function(b){return ah(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.attributes.indexRange&&!a.wh&&(a.wh=!0);var c=sc(b.attributes.media);b=hh(b,"mediaRange",mh,{start:0,end:null});return{Cj:c,start:b.start,end:b.end}})};function Xs(a,b,c,d,e,f,g,h){var k=Ys(a,g),l=Zs(a);$s(l);var m=Me(a);if(l.Nd)return Rs(a,k),{Vc:function(){var y=ts(l.Nd,m.N.id,null,null,m.bandwidth||null,null);y=Ac(m.N.Hb(),[y]);return Qs(m,b,k,y,0,null,l.ac)}};if(l.Xa)return d||"image"===a.La.contentType||(a.presentationTimeline.og(l.Xa),a.presentationTimeline.Me(a.xa.start)),{Vc:function(){return at(m,l,e,k,f,g,h)}};var n=null;d=d=null;a.Sa.id&&a.N.id&&(d=a.Sa.id+","+a.N.id,d=c[d])&&(n=d.segmentIndex);var r=a.xa.start,p=a.xa.duration?r+a.xa.duration:
849
+ Infinity,t=!(a.dc&&a.xa.fg);n?(c=n,bt(c,l,r,p,t,k),c.fb(a.presentationTimeline.Lb())):n=new ct(l,a.N.id,a.bandwidth,a.N.Hb,r,p,k,t,g,a.N.zg);l.timeline&&"image"!==a.La.contentType&&a.presentationTimeline.Gh(l.timeline,r);d&&a.dc&&(d.segmentIndex=n);return{Vc:function(){n instanceof ct&&0==n.getNumReferences()&&bt(n,l,r,p,t,k);return Promise.resolve(n)}}}function dt(a){return a.Yd}
849
850
  function Zs(a){var b=us(a,dt),c=vs(a,dt,"media"),d=vs(a,dt,"index");return{Xa:b.Xa,timescale:b.timescale,Zd:b.Zd,ac:b.ac,Og:b.Og,timeline:b.timeline,bd:c&&sc(c),Nd:d,mimeType:a.N.mimeType,codecs:a.N.codecs}}function $s(a){var b=a.Nd?1:0;b+=a.timeline?1:0;b+=a.Xa?1:0;if(0==b)throw new R(2,4,4002);1!=b&&(a.Nd&&(a.timeline=null),a.Xa=null);if(!a.Nd&&!a.bd)throw new R(2,4,4002);}
850
- function at(a,b,c,d,e,f,g){function h(K){var M=(K-x)*t,P=M+b.ac,O=M+n;M=O+t;var X=Math.min(M,l());O=new Ai(O,X,function(){var W=P*w;"BigInt"in window&&W>Number.MAX_SAFE_INTEGER&&(W=BigInt(P)*BigInt(w));W=ts(B,A,K,null,v,W);return Ac(z(),[W])},0,null,d,C,n,l(),[],"",null,null,Bi,f);O.codecs=a.N.codecs;O.mimeType=a.N.mimeType;O.i=M;return O}function k(){var K=[Math.max(m.Lb(),n),Math.min(m.hc(),l())].map(function(M){return M-n});K=[Math.ceil(K[0]/t),Math.ceil(K[1]/t)-1];a.N.sc&&K[1]++;return K.map(function(M){return M+
851
- x})}function l(){var K=null!=r&&e[r]||p;return K?n+K:Infinity}var m=a.presentationTimeline,n=a.xa.start,r=a.Sa.id,p=a.xa.duration,t=b.Xa,x=b.Zd,w=b.timescale,B=b.bd,v=a.bandwidth||null,A=a.N.id,z=a.N.Hb,C=n-b.ac,E=k();c=a.dc?Math.max(E[0],E[1]-c+1):E[0];g=g||E[1];E=[];for(var H=c;H<=g;++H){var J=h(H);E.push(J)}var F=new Mk(E);E=m.hc()<l();H=m.U();if(E||H){var I=Math.max(c,g+1);F.ef(t,function(){var K=m.Lb();F.fb(K);var M=u(k());M.next();M=M.next().value;for(var P=[];I<=M;){var O=h(I);P.push(O);I++}return K>
851
+ function at(a,b,c,d,e,f,g){function h(K){var M=(K-y)*t,P=M+b.ac,O=M+n;M=O+t;var X=Math.min(M,l());O=new Ai(O,X,function(){var W=P*x;"BigInt"in window&&W>Number.MAX_SAFE_INTEGER&&(W=BigInt(P)*BigInt(x));W=ts(A,B,K,null,v,W);return Ac(z(),[W])},0,null,d,C,n,l(),[],"",null,null,Bi,f);O.codecs=a.N.codecs;O.mimeType=a.N.mimeType;O.i=M;return O}function k(){var K=[Math.max(m.Lb(),n),Math.min(m.hc(),l())].map(function(M){return M-n});K=[Math.ceil(K[0]/t),Math.ceil(K[1]/t)-1];a.N.sc&&K[1]++;return K.map(function(M){return M+
852
+ y})}function l(){var K=null!=r&&e[r]||p;return K?n+K:Infinity}var m=a.presentationTimeline,n=a.xa.start,r=a.Sa.id,p=a.xa.duration,t=b.Xa,y=b.Zd,x=b.timescale,A=b.bd,v=a.bandwidth||null,B=a.N.id,z=a.N.Hb,C=n-b.ac,E=k();c=a.dc?Math.max(E[0],E[1]-c+1):E[0];g=g||E[1];E=[];for(var H=c;H<=g;++H){var J=h(H);E.push(J)}var F=new Mk(E);E=m.hc()<l();H=m.U();if(E||H){var I=Math.max(c,g+1);F.ef(t,function(){var K=m.Lb();F.fb(K);var M=u(k());M.next();M=M.next().value;for(var P=[];I<=M;){var O=h(I);P.push(O);I++}return K>
852
853
  l()&&!P.length?null:P})}return Promise.resolve(F)}function Ys(a,b){var c=vs(a,dt,"initialization");if(!c)return null;c=sc(c);var d=a.N.id,e=a.bandwidth||null,f=a.N.Hb;b=new yi(function(){var g=ts(c,d,null,null,e,null);return Ac(f(),[g])},0,null,Ls(a),null,null,b);b.codecs=a.N.codecs;b.mimeType=a.N.mimeType;return b}function ct(a,b,c,d,e,f,g,h,k,l){Mk.call(this,[]);this.h=a;this.H=b;this.F=c;this.G=d;this.i=e;this.l=f;this.u=g;this.A=k;this.I=l;h&&et(this)}na(ct,Mk);q=ct.prototype;
853
854
  q.getNumReferences=function(){return this.h?this.h.timeline.length:0};q.release=function(){Mk.prototype.release.call(this);this.h=null};q.fb=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.i<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.j+=b,0===this.getNumReferences()&&this.release())}};
854
- function bt(a,b,c,d,e,f){ft(a,f);if(a.h){c=a.h.timeline;a.h.bd=b.bd;var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end});0<b.length&&a.h.timeline.push.apply(a.h.timeline,y(b));a.l!==d&&(a.l=d)}else a.h=b,a.i=c,a.l=d;e&&et(a)}function ft(a,b){if(a.u!==b){a.u=b;a=u(a.g);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&Di(c,b)}}function et(a){if(!a.o){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.l)b.pop();else break;a.fb(a.i)}}
855
+ function bt(a,b,c,d,e,f){ft(a,f);if(a.h){c=a.h.timeline;a.h.bd=b.bd;var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end});0<b.length&&a.h.timeline.push.apply(a.h.timeline,w(b));a.l!==d&&(a.l=d)}else a.h=b,a.i=c,a.l=d;e&&et(a)}function ft(a,b){if(a.u!==b){a.u=b;a=u(a.g);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&Di(c,b)}}function et(a){if(!a.o){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.l)b.pop();else break;a.fb(a.i)}}
855
856
  q.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a<this.h.timeline[0].start+this.i)return this.j;if(!this.h)return null;var b=this.h.timeline;if(a<this.i||a>=this.l)return null;for(var c=b.length-1,d=0;d<b.length;d++){var e=b[d],f=e.start+this.i;e=d<c?b[d+1].start+this.i:Infinity===this.l?e.end+this.i:this.l;if(a>=f&&a<e)return d+this.j}return null};
856
- q.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.bd,e=this.h.timeline[a],f=e.Xj,g=this.h.Og+e.Pg;c=this.i-this.h.ac;var h=this.i+e.end,k=h;a===this.getNumReferences()-1&&Infinity!==this.l&&(k=this.l);for(var l=this.h.codecs,m=this.h.mimeType,n=[],r=(e.end-e.start)/e.Ob,p={},t=0;t<e.Ob;p={yd:p.yd,tf:p.tf},t++){var x=e.start+r*t,w=x+r;p.tf=t+1;p.yd=null;x=new Ai(this.i+x,this.i+w,function(B){return function(){if(!b.h)return[];
857
- null==B.yd&&(B.yd=gt(b.h.bd,b.H,f,b.F,g,B.tf,b.G));return B.yd}}(p),0,null,this.u,c,this.i,this.l,[],"",null,null,Bi,this.A);x.codecs=l;x.mimeType=m;0==this.I?0<t&&x.He():0!=t%this.I&&x.He();n.push(x)}c=new Ai(this.i+e.start,k,function(){return 0<e.Ob?[]:gt(d,b.H,f,b.F,g,null,b.G)},0,null,this.u,c,this.i,this.l,n,"",null,null,Bi,this.A,0<e.Ob);c.codecs=l;c.mimeType=m;c.i=h;this.g[a]=c}return c};
857
+ q.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.bd,e=this.h.timeline[a],f=e.Xj,g=this.h.Og+e.Pg;c=this.i-this.h.ac;var h=this.i+e.end,k=h;a===this.getNumReferences()-1&&Infinity!==this.l&&(k=this.l);for(var l=this.h.codecs,m=this.h.mimeType,n=[],r=(e.end-e.start)/e.Ob,p={},t=0;t<e.Ob;p={yd:p.yd,tf:p.tf},t++){var y=e.start+r*t,x=y+r;p.tf=t+1;p.yd=null;y=new Ai(this.i+y,this.i+x,function(A){return function(){if(!b.h)return[];
858
+ null==A.yd&&(A.yd=gt(b.h.bd,b.H,f,b.F,g,A.tf,b.G));return A.yd}}(p),0,null,this.u,c,this.i,this.l,[],"",null,null,Bi,this.A);y.codecs=l;y.mimeType=m;0==this.I?0<t&&y.He():0!=t%this.I&&y.He();n.push(y)}c=new Ai(this.i+e.start,k,function(){return 0<e.Ob?[]:gt(d,b.H,f,b.F,g,null,b.G)},0,null,this.u,c,this.i,this.l,n,"",null,null,Bi,this.A,0<e.Ob);c.codecs=l;c.mimeType=m;c.i=h;this.g[a]=c}return c};
858
859
  function gt(a,b,c,d,e,f,g){a=ts(a,b,c,f,d||null,e);return Ac(g(),[a]).map(function(h){return h.toString()})};function ht(a){this.o=null;this.A=a;this.I=new lg;this.i=[];this.h=null;this.m=[];this.F=null;this.H=[];this.G=300;this.l=new Map;this.j=new Map;this.g=null;this.u="UNKNOWN"}ht.prototype.configure=function(a){this.o=a};ht.prototype.destroy=function(){this.A=this.o=null;this.i=[];this.h=null;this.m=[];this.H=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.I.destroy()};ht.prototype.setManifestType=function(a){this.u=a};
859
860
  function it(a,b){var c,d,e,f,g,h,k;return L(function(l){if(1==l.g)return c=Ac(a.i,[jt(a,b)]),d=rg(c,a.o.retryParameters),e=a.A.networkingEngine.request(8,d),mg(a.I,e),ra(l,2),D(l,e.promise,4);if(2!=l.g)return f=l.h,g=lc(f.data),h=JSON.parse(g),1==h.VERSION&&kt(a,h,f.uri),ta(l,0);if((k=ua(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new Ob(function(){it(a,b)});a.g.V(a.G);G(l)})}
860
861
  function jt(a,b){if(!a.m.length)return b;b=new ib(b);var c=a.F||a.m[0],d=Math.round(a.A.getBandwidthEstimate()),e=b.g;"DASH"==a.u?(e.add("_DASH_pathway",c),e.add("_DASH_throughput",String(d))):"HLS"==a.u&&(e.add("_HLS_pathway",c),e.add("_HLS_throughput",String(d)));Ab(e)&&nb(b,e);return b.toString()}function kt(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new Ob(function(){it(a,d)});if(c=b.TTL)a.G=c;a.g.V(a.G);a.m=b["PATHWAY-PRIORITY"]||[];a.H=b["PATHWAY-CLONES"]||[]}
861
862
  function lt(a,b,c,d){var e=a.l.get(b);e||(e=new Map);e.set(c,d);a.l.set(b,e)}ht.prototype.banLocation=function(a){this.j.set(a,Date.now()+6E4)};
862
- function mt(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map;for(var d=[],e={},f=u(a.m),g=f.next();!g.done;e={rc:e.rc},g=f.next())if(e.rc=g.value,g=b.get(e.rc))d.push({vg:e.rc,location:g});else if(g=a.H.find(function(k){return function(l){return l.Hk==k.rc}}(e))){var h=b.get(g["BASE-ID"]);h&&(g["URI-REPLACEMENT"].di?(h=new ib(h),kb(h,g["URI-REPLACEMENT"].di),d.push({vg:e.rc,location:h.toString()})):d.push({vg:e.rc,location:h}))}e=Date.now();f=u(a.j.keys());for(g=f.next();!g.done;g=f.next())g=g.value,
863
+ function mt(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map;for(var d=[],e={},f=u(a.m),g=f.next();!g.done;e={rc:e.rc},g=f.next())if(e.rc=g.value,g=b.get(e.rc))d.push({vg:e.rc,location:g});else if(g=a.H.find(function(k){return function(l){return l.Hk==k.rc}}(e))){var h=b.get(g["BASE-ID"]);h&&(g["URI-REPLACEMENT"].ei?(h=new ib(h),kb(h,g["URI-REPLACEMENT"].ei),d.push({vg:e.rc,location:h.toString()})):d.push({vg:e.rc,location:h}))}e=Date.now();f=u(a.j.keys());for(g=f.next();!g.done;g=f.next())g=g.value,
863
864
  h=a.j.get(g),e>h&&a.j.delete(g);d=d.filter(function(k){for(var l=u(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new ib(k.location)).Tb))return!1;return!0});d.length&&(a.F=d[0].vg);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=u(a.h.split(",")),g=e.next();!g.done;g=e.next())if(f=b.get(g.value))a.F=a.h,d.push(f);if(!d.length)for(b=u(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:Ac(a.i,d)};function nt(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.o=this.m=!1;this.u=new Set}q=nt.prototype;q.release=function(){for(var a=u(this.h.concat(this.g,this.l,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.l=[];this.i=[];this.j=[]};q.gj=function(){return this.j};q.Zf=function(){return this.l.slice()};q.Ni=function(){return this.i};
864
- function ot(a,b){var c=[],d=[],e=[],f=[];a=u(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[pt(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[qt(n),n]})),l=new Map(h.textStreams.map(function(n){return[rt(n),n]}));h=new Map(h.imageStreams.map(function(n){return[st(n),n]}));if(b){var m=tt(Gc);l.set(rt(m),m);m=tt("image");h.set(st(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{Yg:c,$h:d,Vh:e,sh:f}}
865
- q.dh=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,p,t,x,w,B,v,A,z,C,E,H,J,F,I,K,M,P,O,X;return L(function(W){if(1==W.g){d=Ic;if(!b&&1==a.length)return e=ot(a,!1),f=e.Yg,g=e.$h,h=e.Vh,k=e.sh,c.h=Array.from(f[0].values()),c.g=Array.from(g[0].values()),c.l=Array.from(h[0].values()),c.i=Array.from(k[0].values()),W.D(2);l=-1;for(m=0;m<a.length;m++)n=a[m],c.u.has(n.id)||(c.u.add(n.id),-1==l&&(l=m));if(-1==l)return W.return();r=ot(a,!0);p=r.Yg;t=r.$h;x=r.Vh;w=r.sh;return D(W,Promise.all([ut(c,c.h,p,l,vt,
866
- wt),ut(c,c.g,t,l,vt,wt),ut(c,c.l,x,l,vt,wt),ut(c,c.i,w,l,vt,wt)]),2)}B=0;v=[];if(c.g.length&&c.h.length)for(J=u(c.h),F=J.next();!F.done;F=J.next())for(I=F.value,K=u(c.g),M=K.next();!M.done;M=K.next())P=M.value,O=ii(I.drmInfos,P.drmInfos),I.drmInfos.length&&P.drmInfos.length&&!O.length||(X=B++,v.push({id:X,language:I.language,disabledUntilTime:0,primary:I.primary,audio:I,video:P,bandwidth:(I.bandwidth||0)+(P.bandwidth||0),drmInfos:O,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));
867
- else for(A=c.g.length?c.g:c.h,z=u(A),C=z.next();!C.done;C=z.next())E=C.value,H=B++,v.push({id:H,language:E.language,disabledUntilTime:0,primary:E.primary,audio:E.type==d.Z?E:null,video:E.type==d.va?E:null,bandwidth:E.bandwidth||0,drmInfos:E.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});c.j=v;G(W)})};
868
- function xt(a){var b,c,d,e,f,g,h,k,l,m,n,r,p,t,x,w,B,v,A,z,C,E,H,J,F,I,K,M,P,O;return L(function(X){switch(X.g){case 1:b=Ic;if(1==a.length)return X.return(a[0]);c=a.map(function(W){return new Map(W.filter(function(Y){return Y.type===b.Z}).map(function(Y){return[pt(Y),Y]}))});d=a.map(function(W){return new Map(W.filter(function(Y){return Y.type===b.va}).map(function(Y){return[qt(Y),Y]}))});e=a.map(function(W){return new Map(W.filter(function(Y){return Y.type===b.Ca}).map(function(Y){return[rt(Y),Y]}))});
869
- f=a.map(function(W){return new Map(W.filter(function(Y){return Y.type===b.vf}).map(function(Y){return[st(Y),Y]}))});g=u(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=yt(b.Ca),k.set(rt(l),l);m=u(f);for(n=m.next();!n.done;n=m.next())r=n.value,p=yt(b.vf),r.set(st(p),p);t=new nt;return D(X,ut(t,[],c,0,zt,At),2);case 2:return x=X.h,D(X,ut(t,[],d,0,zt,At),3);case 3:return w=X.h,D(X,ut(t,[],e,0,zt,At),4);case 4:return B=X.h,D(X,ut(t,[],f,0,zt,At),5);case 5:v=X.h;A=0;if(w.length&&x.length)for(J=u(x),F=
870
- J.next();!F.done;F=J.next())for(I=F.value,K=u(w),M=K.next();!M.done;M=K.next())P=M.value,O=A++,P.variantIds.push(O),I.variantIds.push(O);else for(z=w.concat(x),C=u(z),E=C.next();!E.done;E=C.next())H=E.value,H.variantIds=[A++];return X.return(w.concat(x).concat(B).concat(v))}})}
871
- function ut(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,t,x,w,B,v,A,z,C,E,H,J;return L(function(F){switch(F.g){case 1:g=[];for(h=0;h<d;h++)g.push(new Set);for(k=d;k<c.length;k++)g.push(new Set(c[k].values()));l=u(b);m=l.next();case 2:if(m.done){F.D(4);break}n=m.value;return D(F,Bt(a,n,c,d,f,g),5);case 5:r=F.h;if(!r)throw new R(2,4,4037);m=l.next();F.D(2);break;case 4:p=u(g);for(t=p.next();!t.done;t=p.next())for(x=t.value,w=u(x),B=w.next();!B.done;B=w.next())v=B.value,(A=Ct(a,v,c,e,f,g))&&b.push(A);z=u(g);for(t=
872
- z.next();!t.done;t=z.next())for(C=t.value,E={},H=u(C),B=H.next();!B.done;E={je:E.je},B=H.next())if(E.je=B.value,!Dt(E.je)&&(J=b.some(function(I){return function(K){return Et(a,I.je,K)}}(E))))throw new R(2,4,4037);return F.return(b)}})}function Bt(a,b,c,d,e,f){return L(function(g){if(1==g.g)return Ft(a,c,b),b.matchedStreams?b.segmentIndex?D(g,Gt(b,d),2):g.D(2):g.return(!1);Ht(b,d,e,f);return g.return(!0)})}
865
+ function ot(a,b){var c=[],d=[],e=[],f=[];a=u(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[pt(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[qt(n),n]})),l=new Map(h.textStreams.map(function(n){return[rt(n),n]}));h=new Map(h.imageStreams.map(function(n){return[st(n),n]}));if(b){var m=tt(Gc);l.set(rt(m),m);m=tt("image");h.set(st(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{$g:c,bi:d,Xh:e,vh:f}}
866
+ q.fh=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,p,t,y,x,A,v,B,z,C,E,H,J,F,I,K,M,P,O,X;return L(function(W){if(1==W.g){d=Ic;if(!b&&1==a.length)return e=ot(a,!1),f=e.$g,g=e.bi,h=e.Xh,k=e.vh,c.h=Array.from(f[0].values()),c.g=Array.from(g[0].values()),c.l=Array.from(h[0].values()),c.i=Array.from(k[0].values()),W.B(2);l=-1;for(m=0;m<a.length;m++)n=a[m],c.u.has(n.id)||(c.u.add(n.id),-1==l&&(l=m));if(-1==l)return W.return();r=ot(a,!0);p=r.$g;t=r.bi;y=r.Xh;x=r.vh;return D(W,Promise.all([ut(c,c.h,p,l,vt,
867
+ wt),ut(c,c.g,t,l,vt,wt),ut(c,c.l,y,l,vt,wt),ut(c,c.i,x,l,vt,wt)]),2)}A=0;v=[];if(c.g.length&&c.h.length)for(J=u(c.h),F=J.next();!F.done;F=J.next())for(I=F.value,K=u(c.g),M=K.next();!M.done;M=K.next())P=M.value,O=ii(I.drmInfos,P.drmInfos),I.drmInfos.length&&P.drmInfos.length&&!O.length||(X=A++,v.push({id:X,language:I.language,disabledUntilTime:0,primary:I.primary,audio:I,video:P,bandwidth:(I.bandwidth||0)+(P.bandwidth||0),drmInfos:O,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));
868
+ else for(B=c.g.length?c.g:c.h,z=u(B),C=z.next();!C.done;C=z.next())E=C.value,H=A++,v.push({id:H,language:E.language,disabledUntilTime:0,primary:E.primary,audio:E.type==d.Z?E:null,video:E.type==d.va?E:null,bandwidth:E.bandwidth||0,drmInfos:E.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});c.j=v;G(W)})};
869
+ function xt(a){var b,c,d,e,f,g,h,k,l,m,n,r,p,t,y,x,A,v,B,z,C,E,H,J,F,I,K,M,P,O;return L(function(X){switch(X.g){case 1:b=Ic;if(1==a.length)return X.return(a[0]);c=a.map(function(W){return new Map(W.filter(function(Y){return Y.type===b.Z}).map(function(Y){return[pt(Y),Y]}))});d=a.map(function(W){return new Map(W.filter(function(Y){return Y.type===b.va}).map(function(Y){return[qt(Y),Y]}))});e=a.map(function(W){return new Map(W.filter(function(Y){return Y.type===b.Ca}).map(function(Y){return[rt(Y),Y]}))});
870
+ f=a.map(function(W){return new Map(W.filter(function(Y){return Y.type===b.vf}).map(function(Y){return[st(Y),Y]}))});g=u(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=yt(b.Ca),k.set(rt(l),l);m=u(f);for(n=m.next();!n.done;n=m.next())r=n.value,p=yt(b.vf),r.set(st(p),p);t=new nt;return D(X,ut(t,[],c,0,zt,At),2);case 2:return y=X.h,D(X,ut(t,[],d,0,zt,At),3);case 3:return x=X.h,D(X,ut(t,[],e,0,zt,At),4);case 4:return A=X.h,D(X,ut(t,[],f,0,zt,At),5);case 5:v=X.h;B=0;if(x.length&&y.length)for(J=u(y),F=
871
+ J.next();!F.done;F=J.next())for(I=F.value,K=u(x),M=K.next();!M.done;M=K.next())P=M.value,O=B++,P.variantIds.push(O),I.variantIds.push(O);else for(z=x.concat(y),C=u(z),E=C.next();!E.done;E=C.next())H=E.value,H.variantIds=[B++];return X.return(x.concat(y).concat(A).concat(v))}})}
872
+ function ut(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,t,y,x,A,v,B,z,C,E,H,J;return L(function(F){switch(F.g){case 1:g=[];for(h=0;h<d;h++)g.push(new Set);for(k=d;k<c.length;k++)g.push(new Set(c[k].values()));l=u(b);m=l.next();case 2:if(m.done){F.B(4);break}n=m.value;return D(F,Bt(a,n,c,d,f,g),5);case 5:r=F.h;if(!r)throw new R(2,4,4037);m=l.next();F.B(2);break;case 4:p=u(g);for(t=p.next();!t.done;t=p.next())for(y=t.value,x=u(y),A=x.next();!A.done;A=x.next())v=A.value,(B=Ct(a,v,c,e,f,g))&&b.push(B);z=u(g);for(t=
873
+ z.next();!t.done;t=z.next())for(C=t.value,E={},H=u(C),A=H.next();!A.done;E={je:E.je},A=H.next())if(E.je=A.value,!Dt(E.je)&&(J=b.some(function(I){return function(K){return Et(a,I.je,K)}}(E))))throw new R(2,4,4037);return F.return(b)}})}function Bt(a,b,c,d,e,f){return L(function(g){if(1==g.g)return Ft(a,c,b),b.matchedStreams?b.segmentIndex?D(g,Gt(b,d),2):g.B(2):g.return(!1);Ht(b,d,e,f);return g.return(!0)})}
873
874
  function Gt(a,b){var c,d,e,f,g,h,k;return L(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=u(d);for(f=e.next();!f.done;f=e.next())g=f.value,c.push(g.createSegmentIndex()),g.trickModeVideo&&!g.trickModeVideo.segmentIndex&&c.push(g.trickModeVideo.createSegmentIndex());return D(l,Promise.all(c),2)}if(a.segmentIndex instanceof Pk)for(h=b;h<d.length;h++)k=d[h],k.segmentIndex&&a.segmentIndex.h.push(k.segmentIndex);G(l)})}
874
- function Ct(a,b,c,d,e,f){if(Dt(b))return null;var g=d(b);Ft(a,c,g);g.createSegmentIndex&&(g.createSegmentIndex=function(){return L(function(h){if(g.segmentIndex)return h.D(0);g.segmentIndex=new Pk;return D(h,Gt(g,0),0)})});if(!g.matchedStreams||!g.matchedStreams.length)return null;Ht(g,0,e,f);return g}
875
+ function Ct(a,b,c,d,e,f){if(Dt(b))return null;var g=d(b);Ft(a,c,g);g.createSegmentIndex&&(g.createSegmentIndex=function(){return L(function(h){if(g.segmentIndex)return h.B(0);g.segmentIndex=new Pk;return D(h,Gt(g,0),0)})});if(!g.matchedStreams||!g.matchedStreams.length)return null;Ht(g,0,e,f);return g}
875
876
  function Ht(a,b,c,d){for(var e=a.matchedStreams;b<e.length;b++){var f=e[b];c(a,f);var g=!0;"audio"==a.type&&0==Sc(a.language,f.language)&&(g=!1);if(g&&(d[b].delete(f),f.fullMimeTypes))for(f=u(f.fullMimeTypes.values()),g=f.next();!g.done;g=f.next())a.fullMimeTypes.add(g.value)}}
876
877
  function vt(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=u(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.roles=b.roles.slice();b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=null;b.trickModeVideo=null;return b}
877
878
  function zt(a){a=Object.assign({},a);a.roles=a.roles.slice();a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
878
879
  function wt(a,b){function c(g,h){g||(g=[]);h=u(h);for(var k=h.next();!k.done;k=h.next())k=k.value,g.includes(k)||g.push(k);return g}a.roles=c(a.roles,b.roles);b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=c(a.emsgSchemeIdUris,b.emsgSchemeIdUris));for(var d=u(b.keyIds),e=d.next();!e.done;e=d.next())a.keyIds.add(e.value);null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");d=ii(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!d.length)throw new R(2,4,4038);a.drmInfos=
879
880
  d;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),d=u(b.closedCaptions),e=d.next();!e.done;e=d.next()){var f=u(e.value);e=f.next().value;f=f.next().value;a.closedCaptions.set(e,f)}b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=vt(b.trickModeVideo),a.trickModeVideo.createSegmentIndex=function(){a.trickModeVideo.segmentIndex=a.segmentIndex.clone();return Promise.resolve()}),wt(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&wt(a.trickModeVideo,
880
- b)}function At(a,b){var c=a.roles;c||(c=[]);for(var d=u(b.roles),e=d.next();!e.done;e=d.next())e=e.value,c.includes(e)||c.push(e);a.roles=c;c=u(b.keyIds);for(d=c.next();!d.done;d=c.next())a.keyIds.add(d.value);a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,y(b.segments));if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),b=u(b.closedCaptions),c=b.next();!c.done;c=b.next())d=u(c.value),c=d.next().value,d=d.next().value,a.closedCaptions.set(c,d)}
881
+ b)}function At(a,b){var c=a.roles;c||(c=[]);for(var d=u(b.roles),e=d.next();!e.done;e=d.next())e=e.value,c.includes(e)||c.push(e);a.roles=c;c=u(b.keyIds);for(d=c.next();!d.done;d=c.next())a.keyIds.add(d.value);a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,w(b.segments));if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),b=u(b.closedCaptions),c=b.next();!c.done;c=b.next())d=u(c.value),c=d.next().value,d=d.next().value,a.closedCaptions.set(c,d)}
881
882
  function Ft(a,b,c){var d=[];b=u(b);for(var e=b.next();!e.done;e=b.next()){e=It(a,e.value,c);if(!e)return;d.push(e)}c.matchedStreams=d}
882
883
  function It(a,b,c){var d={audio:pt,video:qt,text:rt,image:st}[c.type],e=null,f=d(c);if(b.has(f))e=b.get(f);else{f={audio:function(l,m){return Et(a,l,m)},video:function(l,m){return Et(a,l,m)},text:Jt,image:Kt}[c.type];for(var g={audio:Lt,video:Mt,text:Nt,image:Ot}[c.type],h=u(b.values()),k=h.next();!k.done;k=h.next())k=k.value,!f(c,k)||c.fastSwitching!=k.fastSwitching||e&&!g(c,e,k)||(e=k)}a.o&&!Dt(e)&&b.delete(d(e));return e}
883
- function Pt(a,b){function c(d){if(!Qt.has(d)){var e=pe(d);Qt.set(d,e)}return Qt.get(d)}return a.mimeType!=b.mimeType?!1:c(a.codecs)==c(b.codecs)}q.Jh=function(a){this.m=a};q.Rh=function(a){this.o=a};function Et(a,b,c){return!Pt(b,c)&&!a.m||b.drmInfos&&!hi(b.drmInfos,c.drmInfos)?!1:!0}function Jt(a,b){return b.language?a.forced!==b.forced||0==Sc(a.language,b.language)||b.kind!=a.kind?!1:!0:!0}function Kt(){return!0}
884
+ function Pt(a,b){function c(d){if(!Qt.has(d)){var e=pe(d);Qt.set(d,e)}return Qt.get(d)}return a.mimeType!=b.mimeType?!1:c(a.codecs)==c(b.codecs)}q.Lh=function(a){this.m=a};q.Th=function(a){this.o=a};function Et(a,b,c){return!Pt(b,c)&&!a.m||b.drmInfos&&!hi(b.drmInfos,c.drmInfos)?!1:!0}function Jt(a,b){return b.language?a.forced!==b.forced||0==Sc(a.language,b.language)||b.kind!=a.kind?!1:!0:!0}function Kt(){return!0}
884
885
  function Lt(a,b,c){var d=Pt(a,b),e=Pt(a,c);if(d&&!e)return!1;if(!d&&e)return!0;d=Sc(a.language,b.language);e=Sc(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(b.label!==c.label){if(a.label===b.label)return!1;if(a.label===c.label)return!0}if(a.roles.length)return d=b.roles.filter(function(f){return a.roles.includes(f)}),e=c.roles.filter(function(f){return a.roles.includes(f)}),e.length>d.length?!0:e.length<d.length?!1:c.roles.length<b.roles.length;if(!c.roles.length&&b.roles.length)return!0;
885
886
  if(c.roles.length&&!b.roles.length)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;d=Rt(a.channelsCount,b.channelsCount,c.channelsCount);if(d==St)return!0;if(d==Tt)return!1;d=Rt(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==St?!0:d==Tt?!1:a.bandwidth&&Ut(a.bandwidth,b.bandwidth,c.bandwidth)==St?!0:!1}
886
887
  function Mt(a,b,c){var d=Pt(a,b),e=Pt(a,c);if(d&&!e)return!1;if(!d&&e)return!0;d=Rt(a.width*a.height,b.width*b.height,c.width*c.height);if(d==St)return!0;if(d==Tt)return!1;if(a.frameRate){d=Rt(a.frameRate,b.frameRate,c.frameRate);if(d==St)return!0;if(d==Tt)return!1}return a.bandwidth&&Ut(a.bandwidth,b.bandwidth,c.bandwidth)==St?!0:!1}
@@ -890,51 +891,51 @@ function yt(a){return{id:0,originalId:"",groupId:null,primary:!1,type:a,mimeType
890
891
  function tt(a){return{id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Mk([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",originalLanguage:null,label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set}}
891
892
  function Rt(a,b,c){if(b==a&&a!=c)return Tt;if(c==a&&a!=b)return St;if(b>a){if(c<=a||c-a<b-a)return St;if(c-a>b-a)return Tt}else{if(c>a)return Tt;if(a-c<a-b)return St;if(a-c>a-b)return Tt}return Vt}function Ut(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?St:b<a?Tt:Vt}function Dt(a){switch(a.type){case Gc:return!a.language;case "image":return!a.tilesLayout;default:return!1}}
892
893
  function qt(a){return JSON.stringify([a.fastSwitching,a.width,a.frameRate,a.codecs,a.mimeType,a.label,a.roles,a.closedCaptions?Array.from(a.closedCaptions.entries()):null,a.bandwidth])}function pt(a){return JSON.stringify([a.fastSwitching,a.channelsCount,a.language,a.bandwidth,a.label,a.codecs,a.mimeType,a.roles,a.audioSamplingRate,a.primary])}function rt(a){return JSON.stringify([a.language,a.label,a.codecs,a.mimeType,a.bandwidth,a.roles])}
893
- function st(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}N("shaka.util.PeriodCombiner",nt);nt.prototype.setUseStreamOnce=nt.prototype.Rh;nt.prototype.setAllowMultiTypeVariants=nt.prototype.Jh;nt.prototype.combinePeriods=nt.prototype.dh;nt.prototype.getImageStreams=nt.prototype.Ni;nt.prototype.getTextStreams=nt.prototype.Zf;nt.prototype.getVariants=nt.prototype.gj;var St=1,Vt=0,Tt=-1,Qt=new Map;function Wt(a,b){var c=new DOMParser,d=Xt.value()(a);a=null;try{a=c.parseFromString(d,"text/xml")}catch(e){return null}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;if(!("createNodeIterator"in document))return c;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function Yt(a,b){try{var c=oc(a);return Wt(c,b)}catch(d){return null}}
894
+ function st(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}N("shaka.util.PeriodCombiner",nt);nt.prototype.setUseStreamOnce=nt.prototype.Th;nt.prototype.setAllowMultiTypeVariants=nt.prototype.Lh;nt.prototype.combinePeriods=nt.prototype.fh;nt.prototype.getImageStreams=nt.prototype.Ni;nt.prototype.getTextStreams=nt.prototype.Zf;nt.prototype.getVariants=nt.prototype.gj;var St=1,Vt=0,Tt=-1,Qt=new Map;function Wt(a,b){var c=new DOMParser,d=Xt.value()(a);a=null;try{a=c.parseFromString(d,"text/xml")}catch(e){return null}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;if(!("createNodeIterator"in document))return c;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function Yt(a,b){try{var c=oc(a);return Wt(c,b)}catch(d){return null}}
894
895
  var Xt=new Mb(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function Zt(){var a=this;this.i=this.g=null;this.o=[];this.j=null;this.K=1;this.m={};this.M={};this.l=new nt;this.I=0;this.J=new $c(5);this.A=new Ob(function(){$t(a)});this.H=new lg;this.F=null;this.L=[];this.G=Infinity;this.u=!1;this.h=null}q=Zt.prototype;
895
- q.configure=function(a){var b=this.i&&a.dash.updatePeriod!=this.g.dash.updatePeriod&&0<=a.dash.updatePeriod;this.g=a;b&&this.j&&this.j.presentationTimeline.U()&&this.A.Ia();this.h&&this.h.configure(this.g);this.l&&(this.l.Jh(this.g.dash.multiTypeVariantsAllowed&&jd()),this.l.Rh(this.g.dash.useStreamOnceInPeriodFlattening))};q.start=function(a,b){var c=this,d;return L(function(e){if(1==e.g)return c.u=b.isLowLatencyMode(),c.o=[a],c.i=b,D(e,au(c),2);d=e.h;c.i&&bu(c,d);if(!c.i)throw new R(2,7,7001);return e.return(c.j)})};
896
+ q.configure=function(a){var b=this.i&&a.dash.updatePeriod!=this.g.dash.updatePeriod&&0<=a.dash.updatePeriod;this.g=a;b&&this.j&&this.j.presentationTimeline.U()&&this.A.Ia();this.h&&this.h.configure(this.g);this.l&&(this.l.Lh(this.g.dash.multiTypeVariantsAllowed&&jd()),this.l.Th(this.g.dash.useStreamOnceInPeriodFlattening))};q.start=function(a,b){var c=this,d;return L(function(e){if(1==e.g)return c.u=b.isLowLatencyMode(),c.o=[a],c.i=b,D(e,au(c),2);d=e.h;c.i&&bu(c,d);if(!c.i)throw new R(2,7,7001);return e.return(c.j)})};
896
897
  q.stop=function(){for(var a=u(Object.values(this.m)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.l&&this.l.release();this.g=this.i=null;this.o=[];this.j=null;this.m={};this.l=null;null!=this.A&&(this.A.stop(),this.A=null);this.h&&this.h.destroy();return this.H.destroy()};q.update=function(){var a=this,b;return L(function(c){if(1==c.g)return ra(c,2),D(c,au(a),4);if(2!=c.g)return ta(c,0);b=ua(c);if(!a.i||!b)return c.return();a.i.onError(b);G(c)})};
897
898
  q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(a){if(this.j&&this.j.presentationTimeline.U()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.j.presentationTimeline.hc();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.I=b.endTime-a,bu(this,0))}}};q.banLocation=function(a){this.h&&this.h.banLocation(a)};
898
899
  function au(a){var b,c,d,e,f,g,h;return L(function(k){if(1==k.g)return b=a.o,1<a.o.length&&a.h&&(c=mt(a.h,"Location",!0),c.length&&(b=c)),d=rg(b,a.g.retryParameters),e=Date.now(),D(k,cu(a,d,0,{type:4}),2);if(3!=k.g){f=k.h;if(!a.i)return k.return(0);f.uri&&f.uri!=f.originalUri&&!a.o.includes(f.uri)&&a.o.unshift(f.uri);return D(k,du(a,f.data,f.uri),3)}g=Date.now();h=(g-e)/1E3;a.J.sample(1,h);return k.return(h)})}
899
900
  function du(a,b,c){var d,e,f,g,h,k,l,m,n,r,p;return L(function(t){if(1==t.g){d=b;e=a.g.dash.manifestPreprocessor;f=jm;if(e!=f){ld("manifest.dash.manifestPreprocessor configuration","Please Use manifest.dash.manifestPreprocessorTXml instead.");g=Yt(d,"MPD");if(!g)throw new R(2,4,4001,c);e(g);d=pc(g.outerHTML)}h=Tg(d,"MPD");if(!h)throw new R(2,4,4001,c);k=a.g.dash.manifestPreprocessorTXml;l=km;k!=l&&k(h);if(m=a.g.dash.disableXlinkProcessing)return t.return(eu(a,h,c));n=a.g.dash.xlinkFailGracefully;
900
901
  r=zs(h,a.g.retryParameters,n,c,a.i.networkingEngine);mg(a.H,r);return D(t,r.promise,2)}p=t.h;return t.return(eu(a,p,c))})}
901
- function eu(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,x,w,B,v,A,z,C,E,H,J,F,I,K,M,P,O,X,W,Y,Da,Ia,mb,Ka,ab,Aa,sb,Ib,qb,eb,zf,Nd,qe,yd,Lc,re,Af,se,Od,ej,Zg,fj,gj,Bf,te,Cf;return L(function(ac){switch(ac.g){case 1:a.h&&a.h.l.clear();d=[c];e=[];f=new Map;g=ah(b,"Location");h=u(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=ch(l))r=Ac(d,[n])[0],m&&(a.h?lt(a.h,"Location",m,r):f.set(m,r)),e.push(r);a.h?(p=mt(a.h,"Location",!0),0<p.length&&(d=a.o=p)):e.length&&(d=a.o=e);t=Promise.resolve();
902
- if((x=eh(b,"ContentSteering"))&&a.i){w=x.attributes.defaultServiceLocation;if(a.h)a.h.i=d,a.h.h=w;else if(a.h=new ht(a.i),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.i=d,a.h.h=w,B=ch(x))(v=hh(x,"queryBeforeStart",th,!1))?t=it(a.h,B):it(a.h,B);A=u(f.keys());for(z=A.next();!z.done;z=A.next())C=z.value,E=f.get(C),lt(a.h,"Location",C,E)}H=ah(b,"BaseURL");F=!1;if(a.h)for(I=u(H),K=I.next();!K.done;K=I.next())M=K.value,P=M.attributes.serviceLocation,O=ch(M),P&&O&&(lt(a.h,"BaseURL",P,O),F=!0);F&&a.h||
902
+ function eu(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,y,x,A,v,B,z,C,E,H,J,F,I,K,M,P,O,X,W,Y,Da,Ia,mb,Ka,ab,Aa,sb,Ib,qb,eb,zf,Nd,qe,zd,Lc,re,Af,se,Od,ej,$g,fj,gj,Bf,te,Cf;return L(function(ac){switch(ac.g){case 1:a.h&&a.h.l.clear();d=[c];e=[];f=new Map;g=ah(b,"Location");h=u(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=ch(l))r=Ac(d,[n])[0],m&&(a.h?lt(a.h,"Location",m,r):f.set(m,r)),e.push(r);a.h?(p=mt(a.h,"Location",!0),0<p.length&&(d=a.o=p)):e.length&&(d=a.o=e);t=Promise.resolve();
903
+ if((y=eh(b,"ContentSteering"))&&a.i){x=y.attributes.defaultServiceLocation;if(a.h)a.h.i=d,a.h.h=x;else if(a.h=new ht(a.i),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.i=d,a.h.h=x,A=ch(y))(v=hh(y,"queryBeforeStart",th,!1))?t=it(a.h,A):it(a.h,A);B=u(f.keys());for(z=B.next();!z.done;z=B.next())C=z.value,E=f.get(C),lt(a.h,"Location",C,E)}H=ah(b,"BaseURL");F=!1;if(a.h)for(I=u(H),K=I.next();!K.done;K=I.next())M=K.value,P=M.attributes.serviceLocation,O=ch(M),P&&O&&(lt(a.h,"BaseURL",P,O),F=!0);F&&a.h||
903
904
  (X=H.map(ch),J=Ac(d,X));W=function(){return a.h&&F?mt(a.h,"BaseURL"):J?J:[]};Y=0;H&&H.length&&(Y=hh(H[0],"availabilityTimeOffset",sh)||0);Da=a.g.dash.ignoreMinBufferTime;Ia=0;Da||(Ia=hh(b,"minBufferTime",lh)||0);a.I=hh(b,"minimumUpdatePeriod",lh,-1);mb=hh(b,"availabilityStartTime",kh);Ka=hh(b,"timeShiftBufferDepth",lh);ab=a.g.dash.ignoreSuggestedPresentationDelay;Aa=null;ab||(Aa=hh(b,"suggestedPresentationDelay",lh));sb=a.g.dash.ignoreMaxSegmentDuration;Ib=null;sb||(Ib=hh(b,"maxSegmentDuration",lh));
904
- qb=b.attributes.type||"static";if(a.j)for(eb=a.j.presentationTimeline,zf=u(Object.values(a.m)),Nd=zf.next();!Nd.done;Nd=zf.next())qe=Nd.value,qe.segmentIndex&&qe.segmentIndex.fb(eb.Lb());else yd=a.g.defaultPresentationDelay||1.5*Ia,Lc=null!=Aa?Aa:yd,eb=new qk(mb,Lc,a.g.dash.autoCorrectDrift);eb.gd("static"==qb);(re=eb.U())&&!isNaN(a.g.availabilityWindowOverride)&&(Ka=a.g.availabilityWindowOverride);null==Ka&&(Ka=Infinity);eb.$e(Ka);Af=b.attributes.profiles||"";se={dc:"static"!=qb,presentationTimeline:eb,
905
- Sa:null,xa:null,La:null,N:null,bandwidth:0,uh:!1,sc:Y,profiles:Af.split(",")};Od=fu(a,se,W,b);ej=Od.duration;Zg=Od.periods;"static"!=qb&&Od.ih||eb.xb(ej||Infinity);a.G&&!a.u&&(fj=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.u=a.i.isLowLatencyMode());a.u?eb.Kh(a.G):a.G&&Ua("Low-latency DASH 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.");eb.og(Ib||1);
906
- return D(ac,a.l.dh(Zg,se.dc),2);case 2:return D(ac,t,3);case 3:a.u&&(Ia=0,gj=null!=Aa?Aa:a.g.defaultPresentationDelay,eb.Dg(gj));if(a.j){a.j.variants=a.l.j;Bf=a.l.Zf();0<Bf.length&&(a.j.textStreams=Bf);a.j.imageStreams=a.l.i;a.i.filter(a.j);ac.D(4);break}a.j={presentationTimeline:eb,variants:a.l.j,textStreams:a.l.Zf(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:Ia||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:gu(b)};if(!eb.Yh()){ac.D(5);
907
- break}te=ah(b,"UTCTiming");return D(ac,hu(a,W,te),6);case 6:Cf=ac.h;if(!a.i)return ac.return();eb.Lh(Cf);case 5:eb.Ge();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),G(ac)}})}
905
+ qb=b.attributes.type||"static";if(a.j)for(eb=a.j.presentationTimeline,zf=u(Object.values(a.m)),Nd=zf.next();!Nd.done;Nd=zf.next())qe=Nd.value,qe.segmentIndex&&qe.segmentIndex.fb(eb.Lb());else zd=a.g.defaultPresentationDelay||1.5*Ia,Lc=null!=Aa?Aa:zd,eb=new qk(mb,Lc,a.g.dash.autoCorrectDrift);eb.gd("static"==qb);(re=eb.U())&&!isNaN(a.g.availabilityWindowOverride)&&(Ka=a.g.availabilityWindowOverride);null==Ka&&(Ka=Infinity);eb.$e(Ka);Af=b.attributes.profiles||"";se={dc:"static"!=qb,presentationTimeline:eb,
906
+ Sa:null,xa:null,La:null,N:null,bandwidth:0,wh:!1,sc:Y,profiles:Af.split(",")};Od=fu(a,se,W,b);ej=Od.duration;$g=Od.periods;"static"!=qb&&Od.kh||eb.xb(ej||Infinity);a.G&&!a.u&&(fj=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.u=a.i.isLowLatencyMode());a.u?eb.Mh(a.G):a.G&&Ua("Low-latency DASH 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.");eb.og(Ib||1);
907
+ return D(ac,a.l.fh($g,se.dc),2);case 2:return D(ac,t,3);case 3:a.u&&(Ia=0,gj=null!=Aa?Aa:a.g.defaultPresentationDelay,eb.Dg(gj));if(a.j){a.j.variants=a.l.j;Bf=a.l.Zf();0<Bf.length&&(a.j.textStreams=Bf);a.j.imageStreams=a.l.i;a.i.filter(a.j);ac.B(4);break}a.j={presentationTimeline:eb,variants:a.l.j,textStreams:a.l.Zf(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:Ia||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:gu(b)};if(!eb.$h()){ac.B(5);
908
+ break}te=ah(b,"UTCTiming");return D(ac,hu(a,W,te),6);case 6:Cf=ac.h;if(!a.i)return ac.return();eb.Nh(Cf);case 5:eb.Ge();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),G(ac)}})}
908
909
  function gu(a){var b=eh(a,"ServiceDescription");if(!b)return null;a=eh(b,"Latency");b=eh(b,"PlaybackRate");return a&&a.attributes.max||b?{maxLatency:a&&a.attributes.max?parseInt(a.attributes.max,10)/1E3:null,maxPlaybackRate:b?parseFloat(b.attributes.max):null,minLatency:a&&a.attributes.min?parseInt(a.attributes.min,10)/1E3:null,minPlaybackRate:b?parseFloat(b.attributes.min):null}:null}
909
910
  function fu(a,b,c,d){var e=hh(d,"mediaPresentationDuration",lh),f=[],g=0;d=ah(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=hh(k,"start",lh,g),n=k.attributes.id,r=hh(k,"duration",lh),p=null;if(l){var t=hh(l,"start",lh);null!=t&&(p=t-m)}else null!=e&&(p=e-m);null==p&&(p=r);if(!(null!==a.F&&null!==n&&null!==m&&m<a.F)||a.L.includes(n)||h+1==d.length){null!==m&&(null===a.F||m>a.F)&&(a.F=m);g=iu(a,b,c,{start:m,duration:p,node:k,fg:null==p||!l});f.push(g);b.Sa.id&&p&&(a.M[b.Sa.id]=p);if(null==
910
- p){g=null;break}g=m+p}}a.L=f.map(function(x){return x.id});return null!=e?{periods:f,duration:e,ih:!1}:{periods:f,duration:g,ih:!0}}
911
+ p){g=null;break}g=m+p}}a.L=f.map(function(y){return y.id});return null!=e?{periods:f,duration:e,kh:!1}:{periods:f,duration:g,kh:!0}}
911
912
  function iu(a,b,c,d){b.Sa=ju(a,d.node,null,c);b.xa=d;b.Sa.sc=b.sc;b.Sa.id||(b.Sa.id="__shaka_period_"+d.start);var e=ah(d.node,"EventStream");c=b.presentationTimeline.Lb();e=u(e);for(var f=e.next();!f.done;f=e.next())ku(a,d.start,d.duration,f.value,c);c=ah(d.node,"AdaptationSet").map(function(m){return lu(a,b,m)}).filter(Ke);if(b.dc){d=[];e=u(c);for(f=e.next();!f.done;f=e.next()){f=u(f.value.Qj);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new R(2,4,4018);
912
913
  }d=c.filter(function(m){return!m.Ng});c=c.filter(function(m){return m.Ng});c=u(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.Ng.split(" ");g=u(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=u(k.streams);for(var l=k.next();!l.done;h={ke:h.ke},l=k.next())h.ke=l.value,h.ke.trickModeVideo=e.streams.find(function(m){return function(n){return pe(m.ke.codecs)==pe(n.codecs)}}(h))}}}c=mu(a.g.disableAudio,d,"audio");e=mu(a.g.disableVideo,d,"video");f=mu(a.g.disableText,
913
- d,Gc);d=mu(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new R(2,4,4004);return{id:b.Sa.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}function mu(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,y(e.streams));return d},[])}
914
+ d,Gc);d=mu(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new R(2,4,4004);return{id:b.Sa.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}function mu(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,w(e.streams));return d},[])}
914
915
  function lu(a,b,c){function d(F){switch(F){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.La=ju(a,c,b.Sa,null);var e=!1,f=ah(c,"Role"),g=f.map(function(F){return F.attributes.value}).filter(Ke),h=void 0,k=b.La.contentType==Gc;k&&(h="subtitle");f=u(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.attributes.schemeIdUri;if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.attributes.value,l){case "main":e=!0;break;case "caption":case "subtitle":h=
915
- l}}var n;m=ah(c,"EssentialProperty");f=null;var r=!1;l=!1;m=u(m);for(var p=m.next();!p.done;p=m.next()){p=p.value;var t=p.attributes.schemeIdUri;"http://dashif.org/guidelines/trickmode"==t?f=p.attributes.value:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==t?n=d(parseInt(p.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"!=t&&"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=t&&("urn:mpeg:dash:ssr:2023"==t?r=!0:l=!0)}var x=null;m=ah(c,"SupplementalProperty");m=u(m);for(p=m.next();!p.done;p=m.next())p=
916
- p.value,t=p.attributes.schemeIdUri,"http://dashif.org/guidelines/last-segment-number"==t?x=parseInt(p.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==t&&(n=d(parseInt(p.attributes.value,10)));m=ah(c,"Accessibility");var w=new Map,B;m=u(m);for(p=m.next();!p.done;p=m.next())if(t=p.value,p=t.attributes.schemeIdUri,t=t.attributes.value,"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=t){t=t.split(";");for(var v=u(t),A=v.next();!A.done;A=v.next()){var z=A.value,C=A=void 0;z.includes("=")?
917
- (z=z.split("="),A=z[0].startsWith("CC")?z[0]:"CC"+z[0],C=z[1]||"und"):(A="CC"+p,2==t.length?p+=2:p++,C=z);w.set(A,Mc(C))}}else w.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=1,null!=t)for(t=u(t.split(";")),A=t.next();!A.done;A=t.next())A=A.value,z=v=void 0,A.includes("=")?(A=A.split("="),v="svc"+A[0],z=A[1].split(",")[0].split(":").pop()):(v="svc"+p,p++,z=A),w.set(v,Mc(z));else w.set("svc1","und");else"urn:mpeg:dash:role:2011"==p?null!=t&&(g.push(t),"captions"==t&&(h="caption")):
918
- "urn:tva:metadata:cs:AudioPurposeCS:2007"==p&&("1"==t?B="visually impaired":"2"==t&&(B="hard of hearing"));if(l)return null;l=ah(c,"ContentProtection");var E=is(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),H=Mc(b.La.language||"und"),J=c.attributes.label;(l=ah(c,"Label"))&&l.length&&(l=bh(l[0]))&&(J=l);l=ah(c,"Representation");c=l.map(function(F){if(F=nu(a,b,E,h,H,J,e,g,w,F,B,x))F.hdr=F.hdr||n,F.fastSwitching=r;return F}).filter(function(F){return!!F});if(0==c.length){f="image"==b.La.contentType;
919
- if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new R(2,4,4003);}if(!b.La.contentType||"application"==b.La.contentType)for(b.La.contentType=ou(c[0].mimeType,c[0].codecs),k=u(c),p=k.next();!p.done;p=k.next())p.value.type=b.La.contentType;k=b.La.id||"__fake__"+a.K++;m=u(c);for(p=m.next();!p.done;p=m.next()){p=p.value;t=u(E.drmInfos);for(v=t.next();!v.done;v=t.next())v=v.value,v.keyIds=v.keyIds&&p.keyIds?new Set([].concat(y(v.keyIds),y(p.keyIds))):v.keyIds||p.keyIds;a.g.dash.enableAudioGroups&&
916
+ l}}var n;m=ah(c,"EssentialProperty");f=null;var r=!1;l=!1;m=u(m);for(var p=m.next();!p.done;p=m.next()){p=p.value;var t=p.attributes.schemeIdUri;"http://dashif.org/guidelines/trickmode"==t?f=p.attributes.value:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==t?n=d(parseInt(p.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"!=t&&"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=t&&("urn:mpeg:dash:ssr:2023"==t?r=!0:l=!0)}var y=null;m=ah(c,"SupplementalProperty");m=u(m);for(p=m.next();!p.done;p=m.next())p=
917
+ p.value,t=p.attributes.schemeIdUri,"http://dashif.org/guidelines/last-segment-number"==t?y=parseInt(p.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==t&&(n=d(parseInt(p.attributes.value,10)));m=ah(c,"Accessibility");var x=new Map,A;m=u(m);for(p=m.next();!p.done;p=m.next())if(t=p.value,p=t.attributes.schemeIdUri,t=t.attributes.value,"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=t){t=t.split(";");for(var v=u(t),B=v.next();!B.done;B=v.next()){var z=B.value,C=B=void 0;z.includes("=")?
918
+ (z=z.split("="),B=z[0].startsWith("CC")?z[0]:"CC"+z[0],C=z[1]||"und"):(B="CC"+p,2==t.length?p+=2:p++,C=z);x.set(B,Mc(C))}}else x.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=1,null!=t)for(t=u(t.split(";")),B=t.next();!B.done;B=t.next())B=B.value,z=v=void 0,B.includes("=")?(B=B.split("="),v="svc"+B[0],z=B[1].split(",")[0].split(":").pop()):(v="svc"+p,p++,z=B),x.set(v,Mc(z));else x.set("svc1","und");else"urn:mpeg:dash:role:2011"==p?null!=t&&(g.push(t),"captions"==t&&(h="caption")):
919
+ "urn:tva:metadata:cs:AudioPurposeCS:2007"==p&&("1"==t?A="visually impaired":"2"==t&&(A="hard of hearing"));if(l)return null;l=ah(c,"ContentProtection");var E=is(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),H=Mc(b.La.language||"und"),J=c.attributes.label;(l=ah(c,"Label"))&&l.length&&(l=bh(l[0]))&&(J=l);l=ah(c,"Representation");c=l.map(function(F){if(F=nu(a,b,E,h,H,J,e,g,x,F,A,y))F.hdr=F.hdr||n,F.fastSwitching=r;return F}).filter(function(F){return!!F});if(0==c.length){f="image"==b.La.contentType;
920
+ if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new R(2,4,4003);}if(!b.La.contentType||"application"==b.La.contentType)for(b.La.contentType=ou(c[0].mimeType,c[0].codecs),k=u(c),p=k.next();!p.done;p=k.next())p.value.type=b.La.contentType;k=b.La.id||"__fake__"+a.K++;m=u(c);for(p=m.next();!p.done;p=m.next()){p=p.value;t=u(E.drmInfos);for(v=t.next();!v.done;v=t.next())v=v.value,v.keyIds=v.keyIds&&p.keyIds?new Set([].concat(w(v.keyIds),w(p.keyIds))):v.keyIds||p.keyIds;a.g.dash.enableAudioGroups&&
920
921
  (p.groupId=k)}l=l.map(function(F){return F.attributes.id}).filter(Ke);return{id:k,contentType:b.La.contentType,language:H,yl:e,streams:c,drmInfos:E.drmInfos,Ng:f,Qj:l}}
921
- function nu(a,b,c,d,e,f,g,h,k,l,m,n){b.N=ju(a,l,b.La,null);a.G=Math.min(a.G,b.N.sc);if(!pu(b.N))return null;var r=b.xa.start;b.bandwidth=hh(l,"bandwidth",qh)||0;var p=b.N.contentType,t=p==Gc||"application"==p;p="image"==p;try{var x=void 0;if(c.yf){var w=b.N.Hb,B=Ac(w(),[c.yf.vj]),v=rg(B,a.g.retryParameters);x={bitsKey:128,blockCipherMode:"CBC",iv:c.yf.iv,firstMediaSequenceNumber:0,fetchKey:function(){var F,I,K;return L(function(M){if(1==M.g)return D(M,cu(a,v,6),2);if(3!=M.g){F=M.h;if(!F.data||16!=
922
- F.data.byteLength)throw new R(2,4,4049);I={name:"AES-CBC"};K=x;return D(M,window.crypto.subtle.importKey("raw",F.data,I,!0,["decrypt"]),3)}K.cryptoKey=M.h;x.fetchKey=void 0;G(M)})}}}w=function(F,I,K,M){return qu(a,F,I,K,M)};if(b.N.Xd)var A=Ms(b,w,x);else if(b.N.lc)A=Ss(b,a.m,x);else if(b.N.Yd)A=Xs(b,w,a.m,!!a.j,a.g.dash.initialSegmentLimit,a.M,x,n);else{var z=b.xa.duration||0,C=b.N.Hb;A={Vc:function(){var F=Ok(r,z,C());F.Tc(function(I){I.mimeType=b.N.mimeType;I.codecs=b.N.codecs});return Promise.resolve(F)}}}}catch(F){if((t||
923
- p)&&4002==F.code)return null;throw F;}n=ah(l,"ContentProtection");n=ms(n,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);n=new Set(n?[n]:[]);w=!1;ah(l,"SupplementalProperty").some(function(F){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==F.attributes.schemeIdUri&&"JOC"==F.attributes.value})&&(w=!0);B=!1;t&&(B=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var E;if(p&&((l=ah(l,"EssentialProperty").find(function(F){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(F.attributes.schemeIdUri)}))&&
922
+ function nu(a,b,c,d,e,f,g,h,k,l,m,n){b.N=ju(a,l,b.La,null);a.G=Math.min(a.G,b.N.sc);if(!pu(b.N))return null;var r=b.xa.start;b.bandwidth=hh(l,"bandwidth",qh)||0;var p=b.N.contentType,t=p==Gc||"application"==p;p="image"==p;try{var y=void 0;if(c.yf){var x=b.N.Hb,A=Ac(x(),[c.yf.vj]),v=rg(A,a.g.retryParameters);y={bitsKey:128,blockCipherMode:"CBC",iv:c.yf.iv,firstMediaSequenceNumber:0,fetchKey:function(){var F,I,K;return L(function(M){if(1==M.g)return D(M,cu(a,v,6),2);if(3!=M.g){F=M.h;if(!F.data||16!=
923
+ F.data.byteLength)throw new R(2,4,4049);I={name:"AES-CBC"};K=y;return D(M,window.crypto.subtle.importKey("raw",F.data,I,!0,["decrypt"]),3)}K.cryptoKey=M.h;y.fetchKey=void 0;G(M)})}}}x=function(F,I,K,M){return qu(a,F,I,K,M)};if(b.N.Xd)var B=Ms(b,x,y);else if(b.N.lc)B=Ss(b,a.m,y);else if(b.N.Yd)B=Xs(b,x,a.m,!!a.j,a.g.dash.initialSegmentLimit,a.M,y,n);else{var z=b.xa.duration||0,C=b.N.Hb;B={Vc:function(){var F=Ok(r,z,C());F.Tc(function(I){I.mimeType=b.N.mimeType;I.codecs=b.N.codecs});return Promise.resolve(F)}}}}catch(F){if((t||
924
+ p)&&4002==F.code)return null;throw F;}n=ah(l,"ContentProtection");n=ms(n,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);n=new Set(n?[n]:[]);x=!1;ah(l,"SupplementalProperty").some(function(F){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==F.attributes.schemeIdUri&&"JOC"==F.attributes.value})&&(x=!0);A=!1;t&&(A=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var E;if(p&&((l=ah(l,"EssentialProperty").find(function(F){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(F.attributes.schemeIdUri)}))&&
924
925
  (E=l.attributes.value),!E))return null;var H;l=b.N.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(l.includes("hvc1.2.4.L153.B0")||l.includes("hev1.2.4.L153.B0"))&&(H="PQ");t=b.N.id?b.Sa.id+","+b.N.id:"";var J=t&&a.m[t]?a.m[t]:{id:a.K++,originalId:b.N.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){J.segmentIndex&&(J.segmentIndex.release(),J.segmentIndex=null)},segmentIndex:null,mimeType:b.N.mimeType,codecs:l,
925
- frameRate:b.N.frameRate,pixelAspectRatio:b.N.pixelAspectRatio,bandwidth:b.bandwidth,width:b.N.width,height:b.N.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:n,language:e,originalLanguage:b.La.language,label:f,type:b.La.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.N.emsgSchemeIdUris,roles:h,forced:B,channelsCount:b.N.Ne,audioSamplingRate:b.N.audioSamplingRate,spatialAudio:w,closedCaptions:k,hdr:H,videoLayout:void 0,tilesLayout:E,accessibilityPurpose:m,external:!1,
926
- fastSwitching:!1,fullMimeTypes:new Set([ie(b.N.mimeType,b.N.codecs)])};J.createSegmentIndex=function(){var F;return L(function(I){if(1==I.g){if(J.segmentIndex)return I.D(0);F=J;return D(I,A.Vc(),3)}F.segmentIndex=I.h;G(I)})};t&&b.dc&&!a.m[t]&&(a.m[t]=J);return J}
926
+ frameRate:b.N.frameRate,pixelAspectRatio:b.N.pixelAspectRatio,bandwidth:b.bandwidth,width:b.N.width,height:b.N.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:n,language:e,originalLanguage:b.La.language,label:f,type:b.La.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.N.emsgSchemeIdUris,roles:h,forced:A,channelsCount:b.N.Ne,audioSamplingRate:b.N.audioSamplingRate,spatialAudio:x,closedCaptions:k,hdr:H,videoLayout:void 0,tilesLayout:E,accessibilityPurpose:m,external:!1,
927
+ fastSwitching:!1,fullMimeTypes:new Set([ie(b.N.mimeType,b.N.codecs)])};J.createSegmentIndex=function(){var F;return L(function(I){if(1==I.g){if(J.segmentIndex)return I.B(0);F=J;return D(I,B.Vc(),3)}F.segmentIndex=I.h;G(I)})};t&&b.dc&&!a.m[t]&&(a.m[t]=J);return J}
927
928
  function $t(a){var b,c;L(function(d){switch(d.g){case 1:return b=0,ra(d,2),D(d,au(a),4);case 4:b=d.h;ta(d,3);break;case 2:if(c=ua(d),a.i){if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.i.onError(c),d.return();c.severity=1;a.i.onError(c)}case 3:if(!a.i)return d.return();a.i.onManifestUpdated();bu(a,b);G(d)}})}function bu(a,b){if(!(0>a.I)){var c=a.I;0<=a.g.dash.updatePeriod&&(c=a.g.dash.updatePeriod);a.A.V(Math.max(c-b,ad(a.J)))}}
928
929
  function ju(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Ne:null,audioSamplingRate:null,sc:0,zg:0};d=d||c.Hb;var e=b.attributes.id,f=ah(b,"BaseURL"),g,h=!1;if(a.h)for(var k=u(f),l=k.next();!l.done;l=k.next()){var m=l.value;l=m.attributes.serviceLocation;m=ch(m);l&&m&&(lt(a.h,e,l,m),h=!0)}h&&a.h||(g=f.map(ch));k=b.attributes.contentType||c.contentType;l=b.attributes.mimeType||c.mimeType;m=b.attributes.codecs||c.codecs;var n=hh(b,"frameRate",
929
- uh)||c.frameRate,r=b.attributes.sar||c.pixelAspectRatio,p=ru(ah(b,"InbandEventStream"),c.emsgSchemeIdUris),t=ah(b,"AudioChannelConfiguration");t=su(t)||c.Ne;var x=hh(b,"audioSamplingRate",rh)||c.audioSamplingRate;k||(k=ou(l,m));var w=eh(b,"SegmentBase"),B=eh(b,"SegmentTemplate"),v=w?hh(w,"availabilityTimeOffset",sh)||0:0,A=B?hh(B,"availabilityTimeOffset",sh)||0:0,z=f&&f.length?hh(f[0],"availabilityTimeOffset",sh)||0:0;v=c.sc+z+v+A;A=null;(z=eh(b,"SegmentSequenceProperties"))&&(z=eh(z,"SAP"))&&(A=
930
- hh(z,"cadence",ph));return{Hb:function(){return Ac(d(),f.length?a.h&&h?mt(a.h,e):g?g:[]:[])},Xd:w||c.Xd,lc:eh(b,"SegmentList")||c.lc,Yd:B||c.Yd,width:hh(b,"width",rh)||c.width,height:hh(b,"height",rh)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:r,emsgSchemeIdUris:p,id:e,language:b.attributes.lang,Ne:t,audioSamplingRate:x,sc:v,zg:A||c.zg}}
930
+ uh)||c.frameRate,r=b.attributes.sar||c.pixelAspectRatio,p=ru(ah(b,"InbandEventStream"),c.emsgSchemeIdUris),t=ah(b,"AudioChannelConfiguration");t=su(t)||c.Ne;var y=hh(b,"audioSamplingRate",rh)||c.audioSamplingRate;k||(k=ou(l,m));var x=eh(b,"SegmentBase"),A=eh(b,"SegmentTemplate"),v=x?hh(x,"availabilityTimeOffset",sh)||0:0,B=A?hh(A,"availabilityTimeOffset",sh)||0:0,z=f&&f.length?hh(f[0],"availabilityTimeOffset",sh)||0:0;v=c.sc+z+v+B;B=null;(z=eh(b,"SegmentSequenceProperties"))&&(z=eh(z,"SAP"))&&(B=
931
+ hh(z,"cadence",ph));return{Hb:function(){return Ac(d(),f.length?a.h&&h?mt(a.h,e):g?g:[]:[])},Xd:x||c.Xd,lc:eh(b,"SegmentList")||c.lc,Yd:A||c.Yd,width:hh(b,"width",rh)||c.width,height:hh(b,"height",rh)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:r,emsgSchemeIdUris:p,id:e,language:b.attributes.lang,Ne:t,audioSamplingRate:y,sc:v,zg:B||c.zg}}
931
932
  function ru(a,b){b=b.slice();a=u(a);for(var c=a.next();!c.done;c=a.next())c=c.value.attributes.schemeIdUri,b.includes(c)||b.push(c);return b}
932
933
  function su(a){a=u(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.attributes.schemeIdUri)if(c=c.attributes.value)switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b=
933
934
  parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function pu(a){var b=a.Xd?1:0;b+=a.lc?1:0;b+=a.Yd?1:0;if(0==b)return a.contentType==Gc||"application"==a.contentType?!0:!1;1!=b&&(a.Xd&&(a.lc=null),a.Yd=null);return!0}
934
935
  function tu(a,b,c,d){var e,f,g,h,k,l,m;return L(function(n){if(1==n.g)return e=[sc(c)],f=Ac(b(),e),g=rg(f,a.g.retryParameters),g.method=d,h=a.i.networkingEngine.request(4,g),mg(a.H,h),D(n,h.promise,2);k=n.h;if("HEAD"==d){if(!k.headers||!k.headers.date)return n.return(0);l=k.headers.date}else l=lc(k.data);m=Date.parse(l);return isNaN(m)?n.return(0):n.return(m-Date.now())})}
935
- function hu(a,b,c){var d,e,f,g,h,k,l,m;return L(function(n){switch(n.g){case 1:d=c.map(function(r){return{scheme:r.attributes.schemeIdUri,value:r.attributes.value}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=u(d),g=f.next();case 2:if(g.done){n.D(4);break}h=g.value;ra(n,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.D(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 n.D(8);
936
- case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n.return(isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Ua("NTP UTCTiming scheme is not supported");break;default:Ua("Unrecognized scheme in UTCTiming element",k)}n.D(9);break;case 7:return D(n,tu(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return D(n,tu(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:ta(n,
937
- 3);break;case 5:ua(n);case 3:g=f.next();n.D(2);break;case 4:return Ua("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
936
+ function hu(a,b,c){var d,e,f,g,h,k,l,m;return L(function(n){switch(n.g){case 1:d=c.map(function(r){return{scheme:r.attributes.schemeIdUri,value:r.attributes.value}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=u(d),g=f.next();case 2:if(g.done){n.B(4);break}h=g.value;ra(n,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.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 n.B(8);
937
+ case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n.return(isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Ua("NTP UTCTiming scheme is not supported");break;default:Ua("Unrecognized scheme in UTCTiming element",k)}n.B(9);break;case 7:return D(n,tu(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return D(n,tu(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:ta(n,
938
+ 3);break;case 5:ua(n);case 3:g=f.next();n.B(2);break;case 4:return Ua("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
938
939
  function ku(a,b,c,d,e){var f=d.attributes.schemeIdUri||"",g=d.attributes.value||"",h=hh(d,"timescale",rh)||1;d=u(ah(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=hh(k,"presentationTime",rh)||0,m=hh(k,"duration",rh)||0;l=l/h+b;m=l+m/h;null!=c&&(l=Math.min(l,b+c),m=Math.min(m,b+c));m<e||(k={schemeIdUri:f,value:g,startTime:l,endTime:m,id:k.attributes.id||"",eventElement:vh(k),eventNode:k},a.i.onTimelineRegionAdded(k))}}
939
940
  function qu(a,b,c,d,e){var f,g,h,k;return L(function(l){if(1==l.g)return f=xg,g=e?0:1,h=ql(b,c,d,a.g.retryParameters),D(l,cu(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function ou(a,b){b=ie(a,b);return Be(b)?Gc:a.split("/")[0]}function cu(a,b,c,d){b=a.i.networkingEngine.request(c,b,d);mg(a.H,b);return b.promise}N("shaka.dash.DashParser",Zt);ti["application/dash+xml"]=function(){return new Zt};ti["video/vnd.mpeg.dash.mpd"]=function(){return new Zt};function uu(){}N("shaka.dependencies",uu);uu.has=function(a){return vu.has(a)};uu.add=function(a,b){if(!wu[a])throw Error(a+" is not supported");a==xu?ld("mux.js","mux.js is no longer used in Shaka Player."):vu.set(a,function(){return b})};var xu="muxjs",wu={zl:xu,ISOBoxer:"ISOBoxer"};uu.Allowed=wu;var vu=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function yu(a,b,c){this.type=a;this.g=b;this.segments=c||null}function zu(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d}zu.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.attributes?this.attributes.filter(function(e){return a?!a.has(e.name):!0}).map(b):[];this.value&&d.unshift(this.value);0<d.length&&(c+=":"+d.join(","));return c};
940
941
  function Au(a){var b=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b)}function Bu(a,b){a=a.attributes.filter(function(c){return c.name==b});return a.length?a[0]:null}function V(a,b,c){return(a=Bu(a,b))?a.value:c||null}function Cu(a,b){a=Bu(a,b);if(!a)throw new R(2,4,4023,b);return a.value}function Du(a,b,c){c=void 0===c?[]:c;this.g=b;this.h=a;this.Ob=c}function Eu(a,b){this.name=a;this.value=b};function Fu(a,b){return a.filter(function(c){return c.name==b})}function Gu(a,b){return a.filter(function(c){return Cu(c,"TYPE")==b})}function Hu(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.name===b)return c;return null}function Iu(a,b,c){c=void 0===c?0:c;return(a=Hu(a,b))?Number(a.value):c}function Ju(a,b,c){return b?Ku(a,[b],c):[]}
@@ -945,36 +946,36 @@ g.name&&(g.attributes.push(new Eu("URI",h)),d=!0)}}return new yu(b,e)}function R
945
946
  var Su="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".split(" "),Tu="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Uu(){}function Vu(a){try{var b=Wu(a);return hg({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return fg(c)}}
946
947
  function Wu(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new R(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new R(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=wc(a):e=pc(a);return{data:e,contentType:c}}N("shaka.net.DataUriPlugin",Uu);Uu.parse=Vu;og("data",Vu);function Xu(a){var b=we(a),c=b.split("/")[0];a=xe(a);return{type:c,mimeType:b,codecs:a,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,Qg:null}}
947
948
  function Yu(a,b){function c(v){return d(v.name)}function d(v){v=v.toLowerCase();switch(v){case "avc1":case "avc3":f.push(v+".42E01E");h=!0;break;case "hev1":case "hvc1":f.push(v+".1.6.L93.90");h=!0;break;case "dvh1":case "dvhe":f.push(v+".05.04");h=!0;break;case "vp09":f.push(v+".00.10.08");h=!0;break;case "av01":f.push(v+".0.01M.08");h=!0;break;case "mp4a":e.push("mp4a.40.2");g=!0;break;case "ac-3":case "ec-3":case "opus":case "flac":e.push(v),g=!0}}var e=[],f=[],g=!1,h=!1,k=null,l=null,m=null,n=
948
- null,r=null,p=null,t;(new Gg).box("moov",Lg).box("trak",Lg).T("tkhd",function(v){v=Ui(v.reader,v.version);l=String(v.height);m=String(v.width)}).box("mdia",Lg).T("mdhd",function(v){k=Si(v.reader,v.version).language}).box("minf",Lg).box("stbl",Lg).T("stsd",Ng).box("mp4a",function(v){var A=v.reader;A.skip(6);A.skip(2);A.skip(8);var z=A.Ha();A.skip(2);A.skip(2);A.skip(2);A=A.Ha()+A.Ha()/65536;n=z;r=A;v.reader.Aa()?Lg(v):c(v)}).box("esds",function(v){v=v.reader;for(var A="mp4a",z,C;v.Aa();){z=v.W();for(var E=
949
- v.W();E&128;)E=v.W();if(3==z)v.Ha(),E=v.W(),E&128&&v.Ha(),E&64&&v.skip(v.W()),E&32&&v.Ha();else if(4==z)C=v.W(),v.skip(12);else if(5==z)break}C&&(A+="."+Wi(C),5==z&&v.Aa()&&(z=v.W(),C=(z&248)>>3,31===C&&v.Aa()&&(C=32+((z&7)<<3)+((v.W()&224)>>5)),A+="."+C));e.push(A);g=!0}).box("ac-3",c).box("ec-3",c).box("opus",c).box("Opus",c).box("fLaC",c).box("avc1",function(v){t=v.name;Og(v)}).box("avc3",function(v){t=v.name;Og(v)}).box("hev1",function(v){t=v.name;Og(v)}).box("hvc1",function(v){t=v.name;Og(v)}).box("dva1",
950
- function(v){t=v.name;Og(v)}).box("dvav",function(v){t=v.name;Og(v)}).box("dvh1",function(v){t=v.name;Og(v)}).box("dvhe",function(v){t=v.name;Og(v)}).box("vp09",function(v){t=v.name;Og(v)}).box("av01",function(v){t=v.name;Og(v)}).box("avcC",function(v){var A=t||"";switch(t){case "dvav":A="avc3";break;case "dva1":A="avc1"}v=v.reader;v.skip(1);v=A+"."+Wi(v.W())+Wi(v.W())+Wi(v.W());f.push(v);h=!0}).box("hvcC",function(v){var A=t||"";switch(t){case "dvh1":A="hvc1";break;case "dvhe":A="hev1"}var z=v.reader;
951
- z.skip(1);v=z.W();var C=["","A","B","C"][v>>6],E=v&31,H=z.R(),J=(v&32)>>5?"H":"L";v=[z.W(),z.W(),z.W(),z.W(),z.W(),z.W()];z=z.W();for(var F=0,I=0;32>I;I++){F|=H&1;if(31==I)break;F<<=1;H>>=1}A=A+("."+C+E)+("."+Wi(F,!0));A+="."+J+z;C="";for(E=v.length;E--;)if((J=v[E])||C)C="."+J.toString(16).toUpperCase()+C;A+=C;f.push(A);h=!0}).box("dvcC",function(v){var A=t||"";switch(t){case "hvc1":A="dvh1";break;case "hev1":A="dvhe";break;case "avc1":A="dva1";break;case "avc3":A="dvav"}var z=v.reader;z.skip(2);
952
- v=z.W();z=z.W();f.push(A+"."+Xi(v>>1&127)+"."+Xi(v<<5&32|z>>3&31));h=!0}).T("vpcC",function(v){var A=t||"",z=v.reader;v=z.W();var C=z.W();z=z.W()>>4&15;f.push(A+"."+Xi(v)+"."+Xi(C)+"."+Xi(z));h=!0}).box("av1C",function(v){var A=t||"",z=v.reader;z.skip(1);v=z.W();z=z.W();var C=v>>>5,E=(z&64)>>6;f.push(A+"."+C+"."+Xi(v&31)+(z>>>7?"H":"M")+"."+Xi(2===C&&E?(z&32)>>5?12:10:E?10:8)+"."+((z&16)>>4)+"."+((z&8)>>3)+((z&4)>>2)+(z&3)+"."+Xi(1)+"."+Xi(1)+"."+Xi(1)+".0");h=!0}).box("enca",Pg).box("encv",Og).box("sinf",
953
- Lg).box("frma",function(v){v=Vi(v.reader).ab;d(v)}).box("colr",function(v){v=v.reader;var A=null,z=v.Pb(4);var C=String.fromCharCode(z[0]);C+=String.fromCharCode(z[1]);C+=String.fromCharCode(z[2]);C+=String.fromCharCode(z[3]);if("nclx"===C)switch(v.Ha(),z=v.Ha(),v.Ha(),z){case 1:case 6:case 13:case 14:case 15:A="SDR";break;case 16:A="PQ";break;case 18:A="HLG"}p=A}).parse(a||b,!0);if(!e.length&&!f.length)return null;var x=g&&!h,w=new Map;if(h){var B=new sd("video/mp4");a&&B.init(a);B.i(b);a=u(B.j());
954
- for(b=a.next();!b.done;b=a.next())b=b.value,w.set(b,b);B.h()}return{type:x?"audio":"video",mimeType:x?"audio/mp4":"video/mp4",codecs:Zu(e.concat(f)).join(", "),language:k,height:l,width:m,channelCount:n,sampleRate:r,closedCaptions:w,Qg:p}}function Zu(a){var b=new Set,c=[];a=u(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=ve(d);b.has(e)||(c.push(d),b.add(e))}b=Hc("audio",c);d=Hc("video",c);a=Hc(Gc,c);d=$u(d);b=b.concat(d).concat(a);return c.length&&!b.length?c:b}
955
- function $u(a){if(1>=a.length)return a;var b=a.find(function(c){return c.startsWith("dvh1.")||c.startsWith("dvhe.")});return b?hd('video/mp4; codecs="'+b+"\"'")?[b]:a.filter(function(c){return c!=b}):a}function av(a){var b=null;(new Gg).box("moov",Lg).box("trak",Lg).box("mdia",Lg).box("minf",Lg).box("stbl",Lg).T("stsd",Ng).box("encv",Og).box("enca",Pg).box("sinf",Lg).box("schi",Lg).T("tenc",function(c){c=c.reader;c.W();c.W();c.W();c.W();b=yc(c.Pb(16))}).parse(a,!0);return b};function bv(){var a=this;this.g=this.i=null;this.A=1;this.o=new Map;this.J=new Map;this.L=new Map;this.L.set("video",new Map);this.L.set("audio",new Map);this.L.set(Gc,new Map);this.L.set("image",new Map);this.Ka=new Set;this.h=new Map;this.l=null;this.X="";this.Fa=new Pu;this.K=-1;this.P=Infinity;this.aa=this.$a=!1;this.u=new Ob(function(){cv(a)});this.oa=dv;this.G=null;this.Ja=0;this.m=Infinity;this.ra=this.qa=this.M=0;this.O=new lg;this.H=new Map;this.I=new Map;this.S=new Map;this.Y=new Map;this.$=
949
+ null,r=null,p=null,t;(new Gg).box("moov",Lg).box("trak",Lg).T("tkhd",function(v){v=Ui(v.reader,v.version);l=String(v.height);m=String(v.width)}).box("mdia",Lg).T("mdhd",function(v){k=Si(v.reader,v.version).language}).box("minf",Lg).box("stbl",Lg).T("stsd",Ng).box("mp4a",function(v){var B=v.reader;B.skip(6);B.skip(2);B.skip(8);var z=B.Ha();B.skip(2);B.skip(2);B.skip(2);B=B.Ha()+B.Ha()/65536;n=z;r=B;v.reader.Aa()?Lg(v):c(v)}).box("esds",function(v){v=v.reader;for(var B="mp4a",z,C;v.Aa();){z=v.W();for(var E=
950
+ v.W();E&128;)E=v.W();if(3==z)v.Ha(),E=v.W(),E&128&&v.Ha(),E&64&&v.skip(v.W()),E&32&&v.Ha();else if(4==z)C=v.W(),v.skip(12);else if(5==z)break}C&&(B+="."+Wi(C),5==z&&v.Aa()&&(z=v.W(),C=(z&248)>>3,31===C&&v.Aa()&&(C=32+((z&7)<<3)+((v.W()&224)>>5)),B+="."+C));e.push(B);g=!0}).box("ac-3",c).box("ec-3",c).box("opus",c).box("Opus",c).box("fLaC",c).box("avc1",function(v){t=v.name;Og(v)}).box("avc3",function(v){t=v.name;Og(v)}).box("hev1",function(v){t=v.name;Og(v)}).box("hvc1",function(v){t=v.name;Og(v)}).box("dva1",
951
+ function(v){t=v.name;Og(v)}).box("dvav",function(v){t=v.name;Og(v)}).box("dvh1",function(v){t=v.name;Og(v)}).box("dvhe",function(v){t=v.name;Og(v)}).box("vp09",function(v){t=v.name;Og(v)}).box("av01",function(v){t=v.name;Og(v)}).box("avcC",function(v){var B=t||"";switch(t){case "dvav":B="avc3";break;case "dva1":B="avc1"}v=v.reader;v.skip(1);v=B+"."+Wi(v.W())+Wi(v.W())+Wi(v.W());f.push(v);h=!0}).box("hvcC",function(v){var B=t||"";switch(t){case "dvh1":B="hvc1";break;case "dvhe":B="hev1"}var z=v.reader;
952
+ z.skip(1);v=z.W();var C=["","A","B","C"][v>>6],E=v&31,H=z.R(),J=(v&32)>>5?"H":"L";v=[z.W(),z.W(),z.W(),z.W(),z.W(),z.W()];z=z.W();for(var F=0,I=0;32>I;I++){F|=H&1;if(31==I)break;F<<=1;H>>=1}B=B+("."+C+E)+("."+Wi(F,!0));B+="."+J+z;C="";for(E=v.length;E--;)if((J=v[E])||C)C="."+J.toString(16).toUpperCase()+C;B+=C;f.push(B);h=!0}).box("dvcC",function(v){var B=t||"";switch(t){case "hvc1":B="dvh1";break;case "hev1":B="dvhe";break;case "avc1":B="dva1";break;case "avc3":B="dvav"}var z=v.reader;z.skip(2);
953
+ v=z.W();z=z.W();f.push(B+"."+Xi(v>>1&127)+"."+Xi(v<<5&32|z>>3&31));h=!0}).T("vpcC",function(v){var B=t||"",z=v.reader;v=z.W();var C=z.W();z=z.W()>>4&15;f.push(B+"."+Xi(v)+"."+Xi(C)+"."+Xi(z));h=!0}).box("av1C",function(v){var B=t||"",z=v.reader;z.skip(1);v=z.W();z=z.W();var C=v>>>5,E=(z&64)>>6;f.push(B+"."+C+"."+Xi(v&31)+(z>>>7?"H":"M")+"."+Xi(2===C&&E?(z&32)>>5?12:10:E?10:8)+"."+((z&16)>>4)+"."+((z&8)>>3)+((z&4)>>2)+(z&3)+"."+Xi(1)+"."+Xi(1)+"."+Xi(1)+".0");h=!0}).box("enca",Pg).box("encv",Og).box("sinf",
954
+ Lg).box("frma",function(v){v=Vi(v.reader).ab;d(v)}).box("colr",function(v){v=v.reader;var B=null,z=v.Pb(4);var C=String.fromCharCode(z[0]);C+=String.fromCharCode(z[1]);C+=String.fromCharCode(z[2]);C+=String.fromCharCode(z[3]);if("nclx"===C)switch(v.Ha(),z=v.Ha(),v.Ha(),z){case 1:case 6:case 13:case 14:case 15:B="SDR";break;case 16:B="PQ";break;case 18:B="HLG"}p=B}).parse(a||b,!0);if(!e.length&&!f.length)return null;var y=g&&!h,x=new Map;if(h){var A=new sd("video/mp4");a&&A.init(a);A.i(b);a=u(A.j());
955
+ for(b=a.next();!b.done;b=a.next())b=b.value,x.set(b,b);A.g()}return{type:y?"audio":"video",mimeType:y?"audio/mp4":"video/mp4",codecs:Zu(e.concat(f)).join(", "),language:k,height:l,width:m,channelCount:n,sampleRate:r,closedCaptions:x,Qg:p}}function Zu(a){var b=new Set,c=[];a=u(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=ve(d);b.has(e)||(c.push(d),b.add(e))}b=Hc("audio",c);d=Hc("video",c);a=Hc(Gc,c);d=$u(d);b=b.concat(d).concat(a);return c.length&&!b.length?c:b}
956
+ function $u(a){if(1>=a.length)return a;var b=a.find(function(c){return c.startsWith("dvh1.")||c.startsWith("dvhe.")});return b?hd('video/mp4; codecs="'+b+'"')?[b]:a.filter(function(c){return c!=b}):a}function av(a){var b=null;(new Gg).box("moov",Lg).box("trak",Lg).box("mdia",Lg).box("minf",Lg).box("stbl",Lg).T("stsd",Ng).box("encv",Og).box("enca",Pg).box("sinf",Lg).box("schi",Lg).T("tenc",function(c){c=c.reader;c.W();c.W();c.W();c.W();b=yc(c.Pb(16))}).parse(a,!0);return b};function bv(){var a=this;this.g=this.i=null;this.A=1;this.o=new Map;this.J=new Map;this.L=new Map;this.L.set("video",new Map);this.L.set("audio",new Map);this.L.set(Gc,new Map);this.L.set("image",new Map);this.Ka=new Set;this.h=new Map;this.l=null;this.X="";this.Fa=new Pu;this.K=-1;this.P=Infinity;this.aa=this.$a=!1;this.u=new Ob(function(){cv(a)});this.oa=dv;this.G=null;this.Ja=0;this.m=Infinity;this.ra=this.qa=this.M=0;this.O=new lg;this.H=new Map;this.I=new Map;this.S=new Map;this.Y=new Map;this.$=
956
957
  new Map;this.sa=new Map;this.ma=new Map;this.Za=this.F=!1;this.Ua=new $c(5);this.j=null}q=bv.prototype;q.configure=function(a){this.g=a;this.j&&this.j.configure(this.g)};q.start=function(a,b){var c=this,d;return L(function(e){return 1==e.g?(c.i=b,c.F=b.isLowLatencyMode(),D(e,ev(c,[a]),2)):3!=e.g?(d=e.h,c.X=d.uri,D(e,fv(c,d.data,a),3)):e.return(c.G)})};
957
958
  q.stop=function(){this.u&&(this.u.stop(),this.u=null);var a=[];this.O&&(a.push(this.O.destroy()),this.O=null);this.g=this.i=null;this.Ka.clear();this.G=null;this.h.clear();this.J.clear();this.I.clear();this.o.clear();this.S.clear();this.Y.clear();this.$.clear();this.sa.clear();this.ma.clear();this.j&&this.j.destroy();return Promise.all(a)};
958
- q.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return L(function(m){if(1==m.g){if(!gv(a))return m.return();b=[];c=Array.from(a.h.values());a.m=Infinity;d=c.filter(function(n){return n.stream.segmentIndex});e=u(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(hv(a,g));return D(m,Promise.all(b),2)}iv(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.Ld});d.length&&!h&&(k=jv,kv(a,k.gi),l=d.map(function(n){return n.Yb}),a.l.xb(Math.min.apply(Math,y(l))),a.i.updateDuration());
959
+ q.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return L(function(m){if(1==m.g){if(!gv(a))return m.return();b=[];c=Array.from(a.h.values());a.m=Infinity;d=c.filter(function(n){return n.stream.segmentIndex});e=u(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(hv(a,g));return D(m,Promise.all(b),2)}iv(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.Ld});d.length&&!h&&(k=jv,kv(a,k.ii),l=d.map(function(n){return n.Yb}),a.l.xb(Math.min.apply(Math,w(l))),a.i.updateDuration());
959
960
  h&&lv(a);G(m)})};function mv(a,b){return gv(a)?a.L.get(b.type):b.Ie}
960
- function hv(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,t,x,w,B,v,A,z,C,E,H,J,F,I,K,M,P,O,X;return L(function(W){if(1==W.g){c=[];d=u(b.ka());for(e=d.next();!e.done;e=d.next())f=e.value,g=new ib(f),h=g.g,b.pe&&(0<=b.Bb&&h.add("_HLS_msn",String(b.Bb)),0<=b.Cb&&h.add("_HLS_part",String(b.Cb))),b.qe&&h.add("_HLS_skip","YES"),Ab(h)&&nb(g,h),c.push(g.toString());return D(W,ev(a,c,!0),2)}if(3!=W.g){k=W.h;if(!b.stream.segmentIndex)return W.return();l=Qu(a.Fa,k.data);if(1!=l.type)throw new R(2,4,4017);m=k.uri;m==k.originalUri||
961
- b.ka().includes(m)||b.Gh.push(m);n=Fu(l.g,"EXT-X-DEFINE");r=nv(a,n,m);p=b.stream;t=mv(a,b);return D(W,ov(a,l,p.mimeType,b.ka,r),3)}x=W.h;w=x.keyIds;B=x.drmInfos;v=function(Y,Da){return Y.size===Da.size&&[].concat(y(Y)).every(function(Ia){return Da.has(Ia)})};v(p.keyIds,w)||(p.keyIds=w,p.drmInfos=B,a.i.newDrmInfo(p));A=pv(a,l,p,t,r,b.ka,b.type);z=A.segments;if(C=A.bandwidth)p.bandwidth=C;p.segmentIndex.Sd(z,a.l.Lb());z.length&&(E=Iu(l.g,"EXT-X-MEDIA-SEQUENCE",0),J=(H=Hu(l.g,"EXT-X-SKIP"))?Number(V(H,
961
+ function hv(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,t,y,x,A,v,B,z,C,E,H,J,F,I,K,M,P,O,X;return L(function(W){if(1==W.g){c=[];d=u(b.ka());for(e=d.next();!e.done;e=d.next())f=e.value,g=new ib(f),h=g.g,b.pe&&(0<=b.Bb&&h.add("_HLS_msn",String(b.Bb)),0<=b.Cb&&h.add("_HLS_part",String(b.Cb))),b.qe&&h.add("_HLS_skip","YES"),Ab(h)&&nb(g,h),c.push(g.toString());return D(W,ev(a,c,!0),2)}if(3!=W.g){k=W.h;if(!b.stream.segmentIndex)return W.return();l=Qu(a.Fa,k.data);if(1!=l.type)throw new R(2,4,4017);m=k.uri;m==k.originalUri||
962
+ b.ka().includes(m)||b.Ih.push(m);n=Fu(l.g,"EXT-X-DEFINE");r=nv(a,n,m);p=b.stream;t=mv(a,b);return D(W,ov(a,l,p.mimeType,b.ka,r),3)}y=W.h;x=y.keyIds;A=y.drmInfos;v=function(Y,Da){return Y.size===Da.size&&[].concat(w(Y)).every(function(Ia){return Da.has(Ia)})};v(p.keyIds,x)||(p.keyIds=x,p.drmInfos=A,a.i.newDrmInfo(p));B=pv(a,l,p,t,r,b.ka,b.type);z=B.segments;if(C=B.bandwidth)p.bandwidth=C;p.segmentIndex.Sd(z,a.l.Lb());z.length&&(E=Iu(l.g,"EXT-X-MEDIA-SEQUENCE",0),J=(H=Hu(l.g,"EXT-X-SKIP"))?Number(V(H,
962
963
  "SKIPPED-SEGMENTS")):0,F=qv(E,z),I=F.Bb,K=F.Cb,b.Bb=I+J,b.Cb=K,M=t.get(E),p.segmentIndex.fb(M));P=z[0];b.Dc=P.startTime;O=z[z.length-1];b.Yb=O.endTime;if(X=Hu(l.g,"EXT-X-ENDLIST"))b.Ld=!0;rv(a,l);G(W)})}q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};q.banLocation=function(a){this.j&&this.j.banLocation(a)};
963
964
  function sv(a,b){for(var c=-1==a.K,d=u(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=mv(a,e);if(f=f.g[0]||null){g=u(g);for(var h=g.next();!h.done;h=g.next()){h=u(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.K=Math.max(a.K,k));e.Gf=k;break}}}}if(!(0>a.K))for(b=u(b),e=b.next();!e.done;e=b.next())if(c=e.value,tv(a,c.type)&&(d=c.stream.segmentIndex))if(e=a.K-c.Gf,0<e&&(d.g.splice(0,e),d=d.g[0]||null))d=-d.startTime,c.stream.segmentIndex.offset(d),uv(a,
964
965
  c,d)}
965
966
  function vv(a,b){if(Infinity==a.P){b=u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.h&&(a.P=Math.min(a.P,d.h))}}b=a.P;if(Infinity!=b)for(d=u(a.h.values()),c=d.next();!c.done;c=d.next())if(c=c.value,!tv(a,c.type)){var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.h)Ta("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.ka(),"Expect AV sync issues!");else for(uv(a,c,f.h-b-f.startTime),c=u(e),e=c.next();!e.done;e=c.next())e.value.Kg(b)}}}
966
967
  function uv(a,b,c){b.Dc+=c;b.Yb+=c;a=mv(a,b);for(var d=u(a),e=d.next();!e.done;e=d.next()){var f=u(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.ka()}
967
- function fv(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,x,w,B,v,A,z,C,E,H,J,F,I,K,M,P,O,X,W,Y,Da,Ia,mb,Ka,ab;return L(function(Aa){switch(Aa.g){case 1:d=Qu(a.Fa,b);e=Fu(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];k=function(){return[c]};if(1==d.type)return D(Aa,wv(a,d,k),7);xv(a,e);l=Fu(d.g,"EXT-X-MEDIA");m=Fu(d.g,"EXT-X-STREAM-INF");n=Fu(d.g,"EXT-X-IMAGE-STREAM-INF");r=Fu(d.g,"EXT-X-I-FRAME-STREAM-INF");p=Fu(d.g,"EXT-X-SESSION-KEY");t=Fu(d.g,"EXT-X-SESSION-DATA");x=Fu(d.g,"EXT-X-CONTENT-STEERING");yv(a,t);return D(Aa,
968
- zv(a,x),4);case 4:return Av(a,m),Bv(a,l),D(Aa,Cv(a,m,p,l,k,a.o),5);case 5:return f=Aa.h,g=Dv(a,l),D(Aa,Ev(a,n,r),6);case 6:h=Aa.h;Aa.D(3);break;case 7:return w=Aa.h,B=w.type,v=w.mimeType,A=w.codecs,z=w.language,C=w.height,E=w.width,H=w.channelCount,J=w.sampleRate,F=w.closedCaptions,I=w.Qg,D(Aa,Fv(a,a.A++,d,k,c,A,B,z,!0,"Media Playlist",H,F,null,!1,J,!1,v),8);case 8:K=Aa.h,a.h.set(c,K),"video"==B&&Gv(K.stream,E,C,null,I,null),f.push({id:0,language:Mc(z||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==
969
- B?K.stream:null,video:"video"==B?K.stream:null,bandwidth:K.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new R(2,7,7001);a.l=new qk(null,0);a.l.gd(!0);1==d.type&&(gv(a)&&(Hv(a,d),M=a.m,a.u.V(M)),P=Array.from(a.h.values()),Iv(a,P),lv(a));a.G={presentationTimeline:a.l,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,
970
- type:"HLS",serviceDescription:null};if(a.aa||!a.g.hls.disableCodecGuessing){Aa.D(9);break}O=[];X=u(a.G.variants);for(W=X.next();!W.done;W=X.next())Y=W.value,Y.audio&&""===Y.audio.codecs&&O.push(Y.audio.createSegmentIndex()),Y.video&&""===Y.video.codecs&&O.push(Y.video.createSegmentIndex());return D(Aa,Promise.all(O),9);case 9:a.i.makeTextStreamsForClosedCaptions(a.G);if(1==f.length){Da=[];Ia=f[0];mb=u([Ia.video,Ia.audio]);for(Ka=mb.next();!Ka.done;Ka=mb.next())(ab=Ka.value)&&!ab.segmentIndex&&Da.push(ab.createSegmentIndex());
971
- if(0<Da.length)return D(Aa,Promise.all(Da),0)}Aa.D(0)}})}
972
- function wv(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,x,w,B,v,A,z;return L(function(C){switch(C.g){case 1:d=Xu(a.g.hls.mediaPlaylistFullMimeType);if(!b.segments.length)return C.return(d);e=Math.trunc((b.segments.length-1)/2);f=b.segments[e];g=Ju(c(),b.segments[0].h);h=g[0];k=new ib(h);l=k.jb.split(".").pop();if(m=Jv[l])return C.return(Xu(m));n=xg;r=null;p=Kv(a,b,f.g,c);a.S.clear();if(!p){C.D(2);break}t=ql(p.ka(),p.Mb(),p.Jb(),a.g.retryParameters);return D(C,Lv(a,t,n,{type:0}),3);case 3:x=C.h,r=x.data;case 2:return w=
973
- rg(g,a.g.retryParameters),D(C,Lv(a,w,n,{type:1}),4);case 4:B=C.h;(v=B.headers["content-type"])&&(v=v.split(";")[0].toLowerCase());if("ts"==l||"video/mp2t"==v){var E=B.data;var H=Fb(E);H=(new lj).parse(H);var J=H.Gd();H=H.ag();var F=[],I=!1,K=!1;switch(J.audio){case "aac":case "aac-loas":F.push("mp4a.40.2");I=!0;break;case "mp3":F.push("mp4a.40.34");I=!0;break;case "ac3":F.push("ac-3");I=!0;break;case "ec3":F.push("ec-3");I=!0;break;case "opus":F.push("opus"),I=!0}switch(J.video){case "avc":H.ab?F.push(H.ab):
974
- F.push("avc1.42E01E");K=!0;break;case "hvc":H.ab?F.push(H.ab):F.push("hvc1.1.6.L93.90");K=!0;break;case "av1":F.push("av01.0.01M.08"),K=!0}if(F.length){J=I&&!K;I=new Map;if(K){K=new sd("video/mp2t");K.i(E);E=u(K.j());for(var M=E.next();!M.done;M=E.next())M=M.value,I.set(M,M);K.h()}H={type:J?"audio":"video",mimeType:"video/mp2t",codecs:F.join(", "),language:null,height:H.height,width:H.width,channelCount:null,sampleRate:null,closedCaptions:I,Qg:null}}else H=null;if(A=H)return C.return(A)}else if("mp4"==
975
- l||"cmfv"==l||"m4s"==l||"video/mp4"==v||"audio/mp4"==v||"video/iso.segment"==v)if(z=Yu(r,B.data))return C.return(z);return C.return(d)}})}
968
+ function fv(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,y,x,A,v,B,z,C,E,H,J,F,I,K,M,P,O,X,W,Y,Da,Ia,mb,Ka,ab;return L(function(Aa){switch(Aa.g){case 1:d=Qu(a.Fa,b);e=Fu(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];k=function(){return[c]};if(1==d.type)return D(Aa,wv(a,d,k),7);xv(a,e);l=Fu(d.g,"EXT-X-MEDIA");m=Fu(d.g,"EXT-X-STREAM-INF");n=Fu(d.g,"EXT-X-IMAGE-STREAM-INF");r=Fu(d.g,"EXT-X-I-FRAME-STREAM-INF");p=Fu(d.g,"EXT-X-SESSION-KEY");t=Fu(d.g,"EXT-X-SESSION-DATA");y=Fu(d.g,"EXT-X-CONTENT-STEERING");yv(a,t);return D(Aa,
969
+ zv(a,y),4);case 4:return Av(a,m),Bv(a,l),D(Aa,Cv(a,m,p,l,k,a.o),5);case 5:return f=Aa.h,g=Dv(a,l),D(Aa,Ev(a,n,r),6);case 6:h=Aa.h;Aa.B(3);break;case 7:return x=Aa.h,A=x.type,v=x.mimeType,B=x.codecs,z=x.language,C=x.height,E=x.width,H=x.channelCount,J=x.sampleRate,F=x.closedCaptions,I=x.Qg,D(Aa,Fv(a,a.A++,d,k,c,B,A,z,!0,"Media Playlist",H,F,null,!1,J,!1,v),8);case 8:K=Aa.h,a.h.set(c,K),"video"==A&&Gv(K.stream,E,C,null,I,null),f.push({id:0,language:Mc(z||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==
970
+ A?K.stream:null,video:"video"==A?K.stream:null,bandwidth:K.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new R(2,7,7001);a.l=new qk(null,0);a.l.gd(!0);1==d.type&&(gv(a)&&(Hv(a,d),M=a.m,a.u.V(M)),P=Array.from(a.h.values()),Iv(a,P),lv(a));a.G={presentationTimeline:a.l,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,
971
+ type:"HLS",serviceDescription:null};if(a.aa||!a.g.hls.disableCodecGuessing){Aa.B(9);break}O=[];X=u(a.G.variants);for(W=X.next();!W.done;W=X.next())Y=W.value,Y.audio&&""===Y.audio.codecs&&O.push(Y.audio.createSegmentIndex()),Y.video&&""===Y.video.codecs&&O.push(Y.video.createSegmentIndex());return D(Aa,Promise.all(O),9);case 9:a.i.makeTextStreamsForClosedCaptions(a.G);if(1==f.length){Da=[];Ia=f[0];mb=u([Ia.video,Ia.audio]);for(Ka=mb.next();!Ka.done;Ka=mb.next())(ab=Ka.value)&&!ab.segmentIndex&&Da.push(ab.createSegmentIndex());
972
+ if(0<Da.length)return D(Aa,Promise.all(Da),0)}Aa.B(0)}})}
973
+ function wv(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,y,x,A,v,B,z;return L(function(C){switch(C.g){case 1:d=Xu(a.g.hls.mediaPlaylistFullMimeType);if(!b.segments.length)return C.return(d);e=Math.trunc((b.segments.length-1)/2);f=b.segments[e];g=Ju(c(),b.segments[0].h);h=g[0];k=new ib(h);l=k.jb.split(".").pop();if(m=Jv[l])return C.return(Xu(m));n=xg;r=null;p=Kv(a,b,f.g,c);a.S.clear();if(!p){C.B(2);break}t=ql(p.ka(),p.Mb(),p.Jb(),a.g.retryParameters);return D(C,Lv(a,t,n,{type:0}),3);case 3:y=C.h,r=y.data;case 2:return x=
974
+ rg(g,a.g.retryParameters),D(C,Lv(a,x,n,{type:1}),4);case 4:A=C.h;(v=A.headers["content-type"])&&(v=v.split(";")[0].toLowerCase());if("ts"==l||"video/mp2t"==v){var E=A.data;var H=Fb(E);H=(new lj).parse(H);var J=H.Gd();H=H.ag();var F=[],I=!1,K=!1;switch(J.audio){case "aac":case "aac-loas":F.push("mp4a.40.2");I=!0;break;case "mp3":F.push("mp4a.40.34");I=!0;break;case "ac3":F.push("ac-3");I=!0;break;case "ec3":F.push("ec-3");I=!0;break;case "opus":F.push("opus"),I=!0}switch(J.video){case "avc":H.ab?F.push(H.ab):
975
+ F.push("avc1.42E01E");K=!0;break;case "hvc":H.ab?F.push(H.ab):F.push("hvc1.1.6.L93.90");K=!0;break;case "av1":F.push("av01.0.01M.08"),K=!0}if(F.length){J=I&&!K;I=new Map;if(K){K=new sd("video/mp2t");K.i(E);E=u(K.j());for(var M=E.next();!M.done;M=E.next())M=M.value,I.set(M,M);K.g()}H={type:J?"audio":"video",mimeType:"video/mp2t",codecs:F.join(", "),language:null,height:H.height,width:H.width,channelCount:null,sampleRate:null,closedCaptions:I,Qg:null}}else H=null;if(B=H)return C.return(B)}else if("mp4"==
976
+ l||"cmfv"==l||"m4s"==l||"video/mp4"==v||"audio/mp4"==v||"video/iso.segment"==v)if(z=Yu(r,A.data))return C.return(z);return C.return(d)}})}
976
977
  function lv(a){if(gv(a)){if(a.oa==Mv){for(var b,c=b=Infinity,d=u(a.h.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.Yb),c=Math.min(c,e.Dc));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.l.u);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.$e(b)}}else a.l.xb(Nv(a));if(!a.l.o)for(b=u(a.h.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=c.stream.segmentIndex.get(0))&&
977
- c.h&&a.l.Nh(c.h);a.l.Ge()}function xv(a,b){var c=(new ib(a.X)).g;b=u(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=V(e,"NAME");var f=V(e,"VALUE");e=V(e,"QUERYPARAM");d&&f&&(a.o.has(d)||a.o.set(d,f));e&&(d=c.get(e)[0])&&!a.o.has(d)&&a.o.set(e,d)}}
978
+ c.h&&a.l.Ph(c.h);a.l.Ge()}function xv(a,b){var c=(new ib(a.X)).g;b=u(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=V(e,"NAME");var f=V(e,"VALUE");e=V(e,"QUERYPARAM");d&&f&&(a.o.has(d)||a.o.set(d,f));e&&(d=c.get(e)[0])&&!a.o.has(d)&&a.o.set(e,d)}}
978
979
  function nv(a,b,c){c=(new ib(c)).g;var d=new Map;b=u(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value,g=V(f,"NAME"),h=V(f,"VALUE");e=V(f,"QUERYPARAM");f=V(f,"IMPORT");g&&h&&(d.has(g)||d.set(g,h));e&&(g=c.get(e)[0])&&!d.has(g)&&d.set(e,g);f&&(e=a.o.get(f))&&d.set(f,e)}return d}
979
980
  function Av(a,b){b=u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=V(d,"AUDIO");c=V(d,"VIDEO");var f=V(d,"SUBTITLES");d=Ov(a,d);if(f){var g=Ec(Gc,d);a.I.set(f,g);wd(d,g)}e&&(f=Ec("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.I.set(e,f));c&&(e=Ec("video",d),e||(e=a.g.hls.defaultVideoCodec),a.I.set(c,e))}}
980
981
  function yv(a,b){b=u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=V(d,"DATA-ID");c=V(d,"URI");var f=V(d,"LANGUAGE");d=V(d,"VALUE");e=(new Map).set("id",e);c&&e.set("uri",Ju([a.X],c,a.o)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new Q("sessiondata",e);if(a.i)a.i.onEvent(c)}}
@@ -982,82 +983,82 @@ function zv(a,b){var c,d,e,f,g,h;return L(function(k){if(!a.i||!a.g)return k.ret
982
983
  function Dv(a,b){var c=Gu(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return Pv(a,[g],new Map).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=u(c);for(var d=c.next();!d.done;d=c.next()){var e=Cu(d.value,"GROUP-ID");if(d=a.I.get(e))if(e=a.J.get(e)){e=u(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=Qv(Gc,d)||Rv(Gc),Sv(f.stream)}}return b.filter(function(g){return g})}
983
984
  function Sv(a){a.fullMimeTypes=new Set([ie(a.mimeType,a.codecs)])}
984
985
  function Ev(a,b,c){var d,e;return L(function(f){if(1==f.g)return d=b.map(function(g){var h,k,l;return L(function(m){if(1==m.g){if(h=a.g.disableThumbnails)return m.return(null);ra(m,2);return D(m,Tv(a,g),4)}if(2!=m.g)return k=m.h,m.return(k.stream);l=ua(m);if(a.g.hls.ignoreImageStreamFailures)return m.return(null);throw l;})}).concat(c.map(function(g){if(a.g.disableThumbnails)return null;try{var h=Cu(g,"URI"),k=V(g,"CODECS")||"";if(a.h.has(h))var l=a.h.get(h);else{var m=V(g,"LANGUAGE"),n=V(g,"NAME"),
985
- r=V(g,"CHARACTERISTICS"),p=Uv(a,a.A++,[h],k,"image",m,!1,n,null,null,r,!1,null,!1),t=V(g,"RESOLUTION"),x=u(t?t.split("x"):[null,null]),w=x.next().value,B=x.next().value;p.stream.width=Number(w)||void 0;p.stream.height=Number(B)||void 0;var v=V(g,"BANDWIDTH");v&&(p.stream.bandwidth=Number(v));a.h.set(h,p);l=p}g=l;return"mjpg"!==g.stream.codecs?null:g.stream}catch(A){if(a.g.hls.ignoreImageStreamFailures)return null;throw A;}})),D(f,Promise.all(d),2);e=f.h;return f.return(e.filter(function(g){return g}))})}
986
+ r=V(g,"CHARACTERISTICS"),p=Uv(a,a.A++,[h],k,"image",m,!1,n,null,null,r,!1,null,!1),t=V(g,"RESOLUTION"),y=u(t?t.split("x"):[null,null]),x=y.next().value,A=y.next().value;p.stream.width=Number(x)||void 0;p.stream.height=Number(A)||void 0;var v=V(g,"BANDWIDTH");v&&(p.stream.bandwidth=Number(v));a.h.set(h,p);l=p}g=l;return"mjpg"!==g.stream.codecs?null:g.stream}catch(B){if(a.g.hls.ignoreImageStreamFailures)return null;throw B;}})),D(f,Promise.all(d),2);e=f.h;return f.return(e.filter(function(g){return g}))})}
986
987
  function Vv(a,b,c){b=b.filter(function(h){var k=V(h,"URI")||"";return"SUBTITLES"!=V(h,"TYPE")&&""!=k});var d={};b=u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=Au(e);d[f]?d[f].push(e):d[f]=[e]}for(var g in d)Pv(a,d[g],c)}
987
- function Cv(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,t,x,w,B,v,A,z,C,E,H,J,F,I,K,M,P,O,X,W,Y,Da,Ia,mb;return L(function(Ka){switch(Ka.g){case 1:g=[];h=new Set;if(!(0<c.length)){Ka.D(2);break}k=u(c);l=k.next();case 3:if(l.done){Ka.D(2);break}m=l.value;n=Cu(m,"METHOD");r=V(m,"KEYFORMAT")||"identity";p=null;if("NONE"==n||Wv(n)){Ka.D(4);break}if("identity"!=r){p=(t=Xv[r])?t(m,""):null;Ka.D(6);break}return D(Ka,Yv(a,m,"",e,null,f),8);case 8:p=Ka.h;case 6:if(p){if(p.keyIds)for(x=u(p.keyIds),w=x.next();!w.done;w=
988
- x.next())B=w.value,h.add(B);g.push(p)}case 4:l=k.next();Ka.D(3);break;case 2:v={};A=u(b);for(z=A.next();!z.done;z=A.next())C=z.value,E=Au(C),v[E]?v[E].push(C):v[E]=[C];H=[];for(J in v)F=v[J],I=F[0],K=V(I,"FRAME-RATE"),M=Number(V(I,"AVERAGE-BANDWIDTH"))||Number(Cu(I,"BANDWIDTH")),P=V(I,"RESOLUTION"),O=u(P?P.split("x"):[null,null]),X=O.next().value,W=O.next().value,Y=V(I,"VIDEO-RANGE"),(Da=V(I,"REQ-VIDEO-LAYOUT"))&&Da.includes(",")&&(Ia=Da.split(",").filter(function(ab){return"CH-STEREO"==ab||"CH-MONO"==
989
- ab}),Da=Ia[0]),Da=Da||"CH-MONO",mb=Zv(a,F,d,M),H.push.apply(H,y($v(a,mb.audio,mb.video,M,X,W,K,Y,Da,g,h)));return Ka.return(H.filter(function(ab){return null!=ab}))}})}
990
- function Zv(a,b,c,d){for(var e={audio:[],video:[]},f=new Map,g=[],h=!1,k=!1,l=u(b),m=l.next();!m.done;m=l.next()){var n=m.value;m=V(n,"AUDIO");var r=V(n,"VIDEO"),p=m||r;p&&(g.includes(p)||g.push(p),(n=V(n,"PATHWAY-ID"))&&f.set(p,n),m?h=!0:r&&(k=!0))}g.length&&c.length&&(l=c.filter(function(w){return g.includes(Cu(w,"GROUP-ID"))}),Vv(a,l,f));l=(f=g.sort().join(","))&&a.J.has(f)?a.J.get(f):[];h?e.audio.push.apply(e.audio,y(l)):k&&e.video.push.apply(e.video,y(l));m=!1;var t=b.map(function(w){return Cu(w,
991
- "URI")});k=e.audio.find(function(w){return w&&w.ka().find(function(B){return t.includes(B)})});h=Ov(a,b[0]);r=Ec("video",h);(p=Ec("audio",h))&&!r?(k="audio",m=0<e.audio.length):!e.audio.length&&!e.video.length&&p&&r?(k="video",h=[[r,p].join()]):e.audio.length&&k?(k="audio",m=!0):k=e.video.length&&!e.audio.length?"audio":"video";if(!m){var x=n=p=r=m=null;!l.length&&(c=c.find(function(w){var B=V(w,"URI")||"",v=V(w,"TYPE");w=Cu(w,"GROUP-ID");return"SUBTITLES"!=v&&""==B&&g.includes(w)}))&&(m=V(c,"LANGUAGE"),
992
- r=V(c,"NAME"),p=aw(c),bw(c),n=V(c,"CHARACTERISTICS"),x=cw(c));a=dw(a,b,h,k,m,r,p,n,x);f&&(a.stream.groupId=f);l.length||(a.stream.bandwidth=d);e[a.stream.type]=[a]}return e}
993
- function Ov(a,b){var c=V(b,"CODECS")||"";b=V(b,"SUPPLEMENTAL-CODECS");a.aa=0<c.length;a.aa||a.g.hls.disableCodecGuessing||(c=[],a.g.disableVideo||c.push(a.g.hls.defaultVideoCodec),a.g.disableAudio||c.push(a.g.hls.defaultAudioCodec),c=c.join(","));a=c.split(/\s*,\s*/);b&&(b=b.split(/\s*,\s*/).map(function(d){return d.split("/")[0]}),a.push.apply(a,y(b)));return Zu(a)}function aw(a){return(a=V(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}
988
+ function Cv(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,t,y,x,A,v,B,z,C,E,H,J,F,I,K,M,P,O,X,W,Y,Da,Ia,mb;return L(function(Ka){switch(Ka.g){case 1:g=[];h=new Set;if(!(0<c.length)){Ka.B(2);break}k=u(c);l=k.next();case 3:if(l.done){Ka.B(2);break}m=l.value;n=Cu(m,"METHOD");r=V(m,"KEYFORMAT")||"identity";p=null;if("NONE"==n||Wv(n)){Ka.B(4);break}if("identity"!=r){p=(t=Xv[r])?t(m,""):null;Ka.B(6);break}return D(Ka,Yv(a,m,"",e,null,f),8);case 8:p=Ka.h;case 6:if(p){if(p.keyIds)for(y=u(p.keyIds),x=y.next();!x.done;x=
989
+ y.next())A=x.value,h.add(A);g.push(p)}case 4:l=k.next();Ka.B(3);break;case 2:v={};B=u(b);for(z=B.next();!z.done;z=B.next())C=z.value,E=Au(C),v[E]?v[E].push(C):v[E]=[C];H=[];for(J in v)F=v[J],I=F[0],K=V(I,"FRAME-RATE"),M=Number(V(I,"AVERAGE-BANDWIDTH"))||Number(Cu(I,"BANDWIDTH")),P=V(I,"RESOLUTION"),O=u(P?P.split("x"):[null,null]),X=O.next().value,W=O.next().value,Y=V(I,"VIDEO-RANGE"),(Da=V(I,"REQ-VIDEO-LAYOUT"))&&Da.includes(",")&&(Ia=Da.split(",").filter(function(ab){return"CH-STEREO"==ab||"CH-MONO"==
990
+ ab}),Da=Ia[0]),Da=Da||"CH-MONO",mb=Zv(a,F,d,M),H.push.apply(H,w($v(a,mb.audio,mb.video,M,X,W,K,Y,Da,g,h)));return Ka.return(H.filter(function(ab){return null!=ab}))}})}
991
+ function Zv(a,b,c,d){for(var e={audio:[],video:[]},f=new Map,g=[],h=!1,k=!1,l=u(b),m=l.next();!m.done;m=l.next()){var n=m.value;m=V(n,"AUDIO");var r=V(n,"VIDEO"),p=m||r;p&&(g.includes(p)||g.push(p),(n=V(n,"PATHWAY-ID"))&&f.set(p,n),m?h=!0:r&&(k=!0))}g.length&&c.length&&(l=c.filter(function(x){return g.includes(Cu(x,"GROUP-ID"))}),Vv(a,l,f));l=(f=g.sort().join(","))&&a.J.has(f)?a.J.get(f):[];h?e.audio.push.apply(e.audio,w(l)):k&&e.video.push.apply(e.video,w(l));m=!1;var t=b.map(function(x){return Cu(x,
992
+ "URI")});k=e.audio.find(function(x){return x&&x.ka().find(function(A){return t.includes(A)})});h=Ov(a,b[0]);r=Ec("video",h);(p=Ec("audio",h))&&!r?(k="audio",m=0<e.audio.length):!e.audio.length&&!e.video.length&&p&&r?(k="video",h=[[r,p].join()]):e.audio.length&&k?(k="audio",m=!0):k=e.video.length&&!e.audio.length?"audio":"video";if(!m){var y=n=p=r=m=null;!l.length&&(c=c.find(function(x){var A=V(x,"URI")||"",v=V(x,"TYPE");x=Cu(x,"GROUP-ID");return"SUBTITLES"!=v&&""==A&&g.includes(x)}))&&(m=V(c,"LANGUAGE"),
993
+ r=V(c,"NAME"),p=aw(c),bw(c),n=V(c,"CHARACTERISTICS"),y=cw(c));a=dw(a,b,h,k,m,r,p,n,y);f&&(a.stream.groupId=f);l.length||(a.stream.bandwidth=d);e[a.stream.type]=[a]}return e}
994
+ function Ov(a,b){var c=V(b,"CODECS")||"";b=V(b,"SUPPLEMENTAL-CODECS");a.aa=0<c.length;a.aa||a.g.hls.disableCodecGuessing||(c=[],a.g.disableVideo||c.push(a.g.hls.defaultVideoCodec),a.g.disableAudio||c.push(a.g.hls.defaultAudioCodec),c=c.join(","));a=c.split(/\s*,\s*/);b&&(b=b.split(/\s*,\s*/).map(function(d){return d.split("/")[0]}),a.push.apply(a,w(b)));return Zu(a)}function aw(a){return(a=V(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}
994
995
  function cw(a){return(a=V(a,"SAMPLE-RATE"))?parseInt(a,10):null}function bw(a){return(a=V(a,"CHANNELS"))?a.includes("/JOC"):!1}
995
996
  function $v(a,b,c,d,e,f,g,h,k,l,m){for(var n=u(c),r=n.next();!r.done;r=n.next())Gv(r.value.stream,e,f,g,h,k);e=a.g.disableAudio;if(!b.length||e)b=[null];e=a.g.disableVideo;if(!c.length||e)c=[null];e=[];b=u(b);for(f=b.next();!f.done;f=b.next())for(f=f.value,g=u(c),h=g.next();!h.done;h=g.next()){var p=h.value;if(h=f?f.stream:null)h.drmInfos=l,h.keyIds=m;if(k=p?p.stream:null)k.drmInfos=l,k.keyIds=m;n=f?f.stream.drmInfos:null;r=p?p.stream.drmInfos:null;p=p?p.ka().sort().join(","):"";var t=f?f.ka().sort().join(","):
996
997
  "";p=p+" - "+t;h&&k&&!hi(n,r)||a.Ka.has(p)||(h={id:a.A++,language:h?h.language:"und",disabledUntilTime:0,primary:!!h&&h.primary||!!k&&k.primary,audio:h,video:k,bandwidth:d,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.push(h),a.Ka.add(p))}return e}
997
998
  function Bv(a,b){b=Gu(b,"CLOSED-CAPTIONS");b=u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=V(d,"LANGUAGE");c=Mc(e||"und");e||(e=V(d,"NAME"))&&(c=e);e=Cu(d,"GROUP-ID");d=Cu(d,"INSTREAM-ID").replace("SERVICE","svc");a.H.get(e)||a.H.set(e,new Map);a.H.get(e).set(d,c)}}
998
999
  function Pv(a,b,c){for(var d=[],e=[],f=new Map,g=u(b),h=g.next();!h.done;h=g.next()){var k=h.value;h=Cu(k,"URI");k=Cu(k,"GROUP-ID");d.push(h);e.push(k);f.set(k,h)}g=e.sort().join(",");h=b[0];b="";k=Cu(h,"TYPE").toLowerCase();"subtitles"==k&&(k=Gc);if(k==Gc)b=V(h,"CODECS")||"";else{e=u(e);for(var l=e.next();!l.done;l=e.next())if(l=l.value,a.I.has(l)){b=a.I.get(l);break}}e=d.sort().join(",");if(a.h.has(e))return a.h.get(e);l=a.A++;if(a.j){f=u(f);for(var m=f.next();!m.done;m=f.next()){var n=u(m.value);
999
1000
  m=n.next().value;n=n.next().value;(m=c.get(m))&&lt(a.j,l,m,n)}}c=V(h,"LANGUAGE");f=V(h,"NAME");m="YES"==V(h,"DEFAULT");n="audio"==k?aw(h):null;var r="audio"==k?bw(h):!1,p=V(h,"CHARACTERISTICS"),t="YES"==V(h,"FORCED");h="audio"==k?cw(h):null;d=Uv(a,l,d,b,k,c,m,f,n,null,p,t,h,r);d.stream&&(d.stream.groupId=g);a.J.has(g)?a.J.get(g).push(d):a.J.set(g,[d]);a.h.set(e,d);return d}
1000
- function Tv(a,b){var c,d,e,f,g,h,k,l,m,n;return L(function(r){if(1==r.g){c=Cu(b,"URI");d=V(b,"CODECS","jpeg")||"";if(a.h.has(c))return r.return(a.h.get(c));e=V(b,"LANGUAGE");f=V(b,"NAME");g=V(b,"CHARACTERISTICS");h=Uv(a,a.A++,[c],d,"image",e,!1,f,null,null,g,!1,null,!1);return(k=V(b,"RESOLUTION"))?D(r,h.stream.createSegmentIndex(),3):r.D(2)}2!=r.g&&(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)&&(h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])*
1001
+ function Tv(a,b){var c,d,e,f,g,h,k,l,m,n;return L(function(r){if(1==r.g){c=Cu(b,"URI");d=V(b,"CODECS","jpeg")||"";if(a.h.has(c))return r.return(a.h.get(c));e=V(b,"LANGUAGE");f=V(b,"NAME");g=V(b,"CHARACTERISTICS");h=Uv(a,a.A++,[c],d,"image",e,!1,f,null,null,g,!1,null,!1);return(k=V(b,"RESOLUTION"))?D(r,h.stream.createSegmentIndex(),3):r.B(2)}2!=r.g&&(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)&&(h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])*
1001
1002
  Number(m.split("x")[1]));if(n=V(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.h.set(c,h);return r.return(h)})}
1002
1003
  function dw(a,b,c,d,e,f,g,h,k){for(var l=a.A++,m=[],n=u(b),r=n.next();!r.done;r=n.next()){var p=r.value;r=Cu(p,"URI");p=V(p,"PATHWAY-ID");a.j&&p&&lt(a.j,l,p,r);m.push(r)}n=m.sort().join(",");if(a.h.has(n))return a.h.get(n);a:{b=V(b[0],"CLOSED-CAPTIONS");if("video"==d){if(b&&"NONE"!=b){b=a.H.get(b);break a}if(!b&&a.H.size)for(b=u(a.H.keys()).next();!b.done;){b=a.H.get(b.value);break a}}b=null}c=Dc(d,c);d=Uv(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);a.h.set(n,d);return d}
1003
- function Uv(a,b,c,d,e,f,g,h,k,l,m,n,r,p){function t(C){var E,H,J,F,I,K,M,P,O,X,W,Y,Da,Ia,mb,Ka,ab;return L(function(Aa){switch(Aa.g){case 1:return E=v.ka(),D(Aa,ev(a,v.ka(),!0),2);case 2:H=Aa.h;if(C.aborted)return Aa.return();J=H.uri;J==H.originalUri||E.includes(J)||B.push(J);F=Qu(a.Fa,H.data);I=void 0;if(a.aa||!a.g.hls.disableCodecGuessing){Aa.D(3);break}return D(Aa,wv(a,F,x),4);case 4:K=Aa.h,I=K.mimeType,d=K.codecs;case 3:return M=gv(a),D(Aa,Fv(a,0,F,x,J,d,e,f,g,h,k,l,m,n,r,p,I),5);case 5:P=Aa.h;
1004
- if(C.aborted)return Aa.return();O=P.stream;gv(a)&&!M&&Hv(a,F);v.Dc=P.Dc;v.Yb=P.Yb;v.qe=P.qe;v.pe=P.pe;v.Ld=P.Ld;v.Ie=P.Ie;v.Bb=P.Bb;v.Cb=P.Cb;v.lg=!0;w.segmentIndex=O.segmentIndex;w.encrypted=O.encrypted;w.drmInfos=O.drmInfos;w.keyIds=O.keyIds;w.mimeType=O.mimeType;w.bandwidth=w.bandwidth||O.bandwidth;w.codecs=w.codecs||O.codecs;Sv(w);w.drmInfos.length&&a.i.newDrmInfo(w);X=Ic;if(e==X.va||e==X.Z)for(W=u(a.h.values()),Y=W.next();!Y.done;Y=W.next())Da=Y.value,Da.lg||Da.type!=e||(Da.stream.mimeType=O.mimeType,
1005
- Sv(Da.stream));e==X.Ca&&(Ia=O.segmentIndex.get(0))&&Ia.ua&&(w.mimeType="application/mp4",Sv(w));ew(a)&&(a.$a?Iv(a,[v]):(a.$a=!0,mb=Array.from(a.h.values()),Ka=mb.filter(function(sb){return sb.stream.segmentIndex}),Iv(a,Ka),lv(a),ab=a.m,0<ab&&a.u.V(ab)));G(Aa)}})}function x(){return a.j&&1<c.length?mt(a.j,b):B.concat(Ku([a.X],c,a.o))}var w=fw(a,d,e,f,g,h,k,l,m,n,r,p),B=[],v={stream:w,type:e,Gh:B,ka:x,Dc:0,Yb:0,Ie:new Map,qe:!1,pe:!1,Ld:!1,Gf:-1,Bb:-1,Cb:-1,lg:!1},A=null,z=new AbortController;w.createSegmentIndex=
1006
- function(){if(A)return A;z=new AbortController;return A=new Promise(function(C){C(t(z.signal))})};w.closeSegmentIndex=function(){A&&!w.segmentIndex&&z.abort();w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null);A=null};return v}function Nv(a){var b=Infinity;a=u(a.h.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.Yb));return b}
1004
+ function Uv(a,b,c,d,e,f,g,h,k,l,m,n,r,p){function t(C){var E,H,J,F,I,K,M,P,O,X,W,Y,Da,Ia,mb,Ka,ab;return L(function(Aa){switch(Aa.g){case 1:return E=v.ka(),D(Aa,ev(a,v.ka(),!0),2);case 2:H=Aa.h;if(C.aborted)return Aa.return();J=H.uri;J==H.originalUri||E.includes(J)||A.push(J);F=Qu(a.Fa,H.data);I=void 0;if(a.aa||!a.g.hls.disableCodecGuessing){Aa.B(3);break}return D(Aa,wv(a,F,y),4);case 4:K=Aa.h,I=K.mimeType,d=K.codecs;case 3:return M=gv(a),D(Aa,Fv(a,0,F,y,J,d,e,f,g,h,k,l,m,n,r,p,I),5);case 5:P=Aa.h;
1005
+ if(C.aborted)return Aa.return();O=P.stream;gv(a)&&!M&&Hv(a,F);v.Dc=P.Dc;v.Yb=P.Yb;v.qe=P.qe;v.pe=P.pe;v.Ld=P.Ld;v.Ie=P.Ie;v.Bb=P.Bb;v.Cb=P.Cb;v.lg=!0;x.segmentIndex=O.segmentIndex;x.encrypted=O.encrypted;x.drmInfos=O.drmInfos;x.keyIds=O.keyIds;x.mimeType=O.mimeType;x.bandwidth=x.bandwidth||O.bandwidth;x.codecs=x.codecs||O.codecs;Sv(x);x.drmInfos.length&&a.i.newDrmInfo(x);X=Ic;if(e==X.va||e==X.Z)for(W=u(a.h.values()),Y=W.next();!Y.done;Y=W.next())Da=Y.value,Da.lg||Da.type!=e||(Da.stream.mimeType=O.mimeType,
1006
+ Sv(Da.stream));e==X.Ca&&(Ia=O.segmentIndex.get(0))&&Ia.ua&&(x.mimeType="application/mp4",Sv(x));ew(a)&&(a.$a?Iv(a,[v]):(a.$a=!0,mb=Array.from(a.h.values()),Ka=mb.filter(function(sb){return sb.stream.segmentIndex}),Iv(a,Ka),lv(a),ab=a.m,0<ab&&a.u.V(ab)));G(Aa)}})}function y(){return a.j&&1<c.length?mt(a.j,b):A.concat(Ku([a.X],c,a.o))}var x=fw(a,d,e,f,g,h,k,l,m,n,r,p),A=[],v={stream:x,type:e,Ih:A,ka:y,Dc:0,Yb:0,Ie:new Map,qe:!1,pe:!1,Ld:!1,Gf:-1,Bb:-1,Cb:-1,lg:!1},B=null,z=new AbortController;x.createSegmentIndex=
1007
+ function(){if(B)return B;z=new AbortController;return B=new Promise(function(C){C(t(z.signal))})};x.closeSegmentIndex=function(){B&&!x.segmentIndex&&z.abort();x.segmentIndex&&(x.segmentIndex.release(),x.segmentIndex=null);B=null};return v}function Nv(a){var b=Infinity;a=u(a.h.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.Yb));return b}
1007
1008
  function iv(a,b){var c=[];b=u(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.Tc(function(e){c.push(e)});a.l.Td(c)}function Iv(a,b){if(!gv(a))for(var c=Nv(a),d=u(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.Sc(0,c);iv(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?sv(a,b):(vv(a,b),0<a.g.hls.ignoreManifestProgramDateTimeForTypes.length&&sv(a,b))}
1008
1009
  function tv(a,b){return a.g.hls.ignoreManifestProgramDateTime?!0:a.g.hls.ignoreManifestProgramDateTimeForTypes.includes(b)}function ew(a){if(!a.G)return!1;var b=[],c=[];a=u(a.G.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0}
1009
- function Fv(a,b,c,d,e,f,g,h,k,l,m,n,r,p,t,x,w){var B,v,A,z,C,E,H,J,F,I,K,M,P,O,X,W,Y,Da,Ia,mb,Ka,ab,Aa;return L(function(sb){switch(sb.g){case 1:if(1!=c.type)throw new R(2,4,4017);B=Fu(c.g,"EXT-X-DEFINE");v=nv(a,B,e);var Ib=Hu(c.g,"EXT-X-PLAYLIST-TYPE"),qb=Hu(c.g,"EXT-X-ENDLIST");qb=Ib&&"VOD"==Ib.value||qb;Ib=Ib&&"EVENT"==Ib.value&&!qb;Ib=!qb&&!Ib;qb?kv(a,dv):Ib?kv(a,Mv):kv(a,gw);gv(a)&&rv(a,c);if(w){sb.D(2);break}return D(sb,hw(a,g,f,c,v,d),3);case 3:w=sb.h;case 2:return D(sb,ov(a,c,w,d,v),4);case 4:A=
1010
- sb.h;z=A.drmInfos;C=A.keyIds;E=A.encrypted;H=A.li;if(E&&!z.length&&!H)throw new R(2,4,4026);J=fw(a,f,g,h,k,l,m,n,r,p,t,x);J.encrypted=E;J.drmInfos=z;J.keyIds=C;J.mimeType=w;Sv(J);F=gv(a)?a.L.get(g):new Map;I=pv(a,c,J,F,v,d,g);K=I.segments;if(M=I.bandwidth)J.bandwidth=M;gv(a)&&rv(a,c);P=K[0].startTime;O=K[K.length-1];X=O.endTime;W=new Mk(K);J.segmentIndex=W;Da=(Y=Hu(c.g,"EXT-X-SERVER-CONTROL"))?null!=Bu(Y,"CAN-SKIP-UNTIL"):!1;Ia=Y?null!=Bu(Y,"CAN-BLOCK-RELOAD"):!1;mb=Iu(c.g,"EXT-X-MEDIA-SEQUENCE",
1011
- 0);Ka=qv(mb,K);ab=Ka.Bb;Aa=Ka.Cb;return sb.return({stream:J,type:g,Gh:[],ka:d,Dc:P,Yb:X,qe:Da,pe:Ia,Ld:!1,Gf:-1,Bb:ab,Cb:Aa,Ie:F,lg:!1})}})}function qv(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{Bb:a,Cb:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.m&&(c=0),{Bb:a,Cb:c};c=d.length-1;d[d.length-1].preload||(a++,c=0);return{Bb:a,Cb:c}}
1010
+ function Fv(a,b,c,d,e,f,g,h,k,l,m,n,r,p,t,y,x){var A,v,B,z,C,E,H,J,F,I,K,M,P,O,X,W,Y,Da,Ia,mb,Ka,ab,Aa;return L(function(sb){switch(sb.g){case 1:if(1!=c.type)throw new R(2,4,4017);A=Fu(c.g,"EXT-X-DEFINE");v=nv(a,A,e);var Ib=Hu(c.g,"EXT-X-PLAYLIST-TYPE"),qb=Hu(c.g,"EXT-X-ENDLIST");qb=Ib&&"VOD"==Ib.value||qb;Ib=Ib&&"EVENT"==Ib.value&&!qb;Ib=!qb&&!Ib;qb?kv(a,dv):Ib?kv(a,Mv):kv(a,gw);gv(a)&&rv(a,c);if(x){sb.B(2);break}return D(sb,hw(a,g,f,c,v,d),3);case 3:x=sb.h;case 2:return D(sb,ov(a,c,x,d,v),4);case 4:B=
1011
+ sb.h;z=B.drmInfos;C=B.keyIds;E=B.encrypted;H=B.mi;if(E&&!z.length&&!H)throw new R(2,4,4026);J=fw(a,f,g,h,k,l,m,n,r,p,t,y);J.encrypted=E;J.drmInfos=z;J.keyIds=C;J.mimeType=x;Sv(J);F=gv(a)?a.L.get(g):new Map;I=pv(a,c,J,F,v,d,g);K=I.segments;if(M=I.bandwidth)J.bandwidth=M;gv(a)&&rv(a,c);P=K[0].startTime;O=K[K.length-1];X=O.endTime;W=new Mk(K);J.segmentIndex=W;Da=(Y=Hu(c.g,"EXT-X-SERVER-CONTROL"))?null!=Bu(Y,"CAN-SKIP-UNTIL"):!1;Ia=Y?null!=Bu(Y,"CAN-BLOCK-RELOAD"):!1;mb=Iu(c.g,"EXT-X-MEDIA-SEQUENCE",
1012
+ 0);Ka=qv(mb,K);ab=Ka.Bb;Aa=Ka.Cb;return sb.return({stream:J,type:g,Ih:[],ka:d,Dc:P,Yb:X,qe:Da,pe:Ia,Ld:!1,Gf:-1,Bb:ab,Cb:Aa,Ie:F,lg:!1})}})}function qv(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{Bb:a,Cb:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.m&&(c=0),{Bb:a,Cb:c};c=d.length-1;d[d.length-1].preload||(a++,c=0);return{Bb:a,Cb:c}}
1012
1013
  function fw(a,b,c,d,e,f,g,h,k,l,m,n){var r=Qv(c,b)||Rv(c),p=[];if(k){k=u(k.split(","));for(var t=k.next();!t.done;t=k.next())p.push(t.value)}k=void 0;t=null;c==Gc?k=p.includes("public.accessibility.transcribes-spoken-dialog")&&p.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":p.includes("public.accessibility.describes-video")&&(t="visually impaired");p.length||"subtitle"!==k||p.push("subtitle");a={id:a.A++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
1013
1014
  segmentIndex:null,mimeType:r,codecs:b,kind:c==Gc?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:Mc(d||"und"),originalLanguage:d,label:f,type:c,primary:e,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:p,forced:l,channelsCount:g,audioSamplingRate:m,spatialAudio:n,closedCaptions:h,hdr:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:t,external:!1,fastSwitching:!1,fullMimeTypes:new Set};
1014
1015
  Sv(a);return a}
1015
- function ov(a,b,c,d,e){var f,g,h,k,l,m,n,r,p,t,x,w,B,v,A,z,C,E,H,J,F,I,K,M,P,O,X,W;return L(function(Y){switch(Y.g){case 1:f=new Map;if(b.segments)for(g=u(b.segments),h=g.next();!h.done;h=g.next())if(k=h.value,l=Fu(k.g,"EXT-X-KEY"),m=null,l.length)for(m=Kv(a,b,k.g,d,e),n=u(l),r=n.next();!r.done;r=n.next())p=r.value,f.set(p,m);x=t=!1;w=[];B=new Set;v=u(f);A=v.next();case 2:if(A.done){Y.D(4);break}z=A.value;C=u(z);E=C.next().value;H=C.next().value;J=E;F=H;I=Cu(J,"METHOD");if("NONE"==I){Y.D(3);break}t=
1016
- !0;K=V(J,"KEYFORMAT")||"identity";M=null;if(Wv(I)){x=!0;Y.D(3);break}if("identity"!=K){M=(P=Xv[K])?P(J,c):null;Y.D(6);break}return D(Y,Yv(a,J,c,d,F,e),8);case 8:M=Y.h;case 6:if(M){if(M.keyIds)for(O=u(M.keyIds),X=O.next();!X.done;X=O.next())W=X.value,B.add(W);w.push(M)}case 3:A=v.next();Y.D(2);break;case 4:return Y.return({drmInfos:w,keyIds:B,encrypted:t,li:x})}})}
1016
+ function ov(a,b,c,d,e){var f,g,h,k,l,m,n,r,p,t,y,x,A,v,B,z,C,E,H,J,F,I,K,M,P,O,X,W;return L(function(Y){switch(Y.g){case 1:f=new Map;if(b.segments)for(g=u(b.segments),h=g.next();!h.done;h=g.next())if(k=h.value,l=Fu(k.g,"EXT-X-KEY"),m=null,l.length)for(m=Kv(a,b,k.g,d,e),n=u(l),r=n.next();!r.done;r=n.next())p=r.value,f.set(p,m);y=t=!1;x=[];A=new Set;v=u(f);B=v.next();case 2:if(B.done){Y.B(4);break}z=B.value;C=u(z);E=C.next().value;H=C.next().value;J=E;F=H;I=Cu(J,"METHOD");if("NONE"==I){Y.B(3);break}t=
1017
+ !0;K=V(J,"KEYFORMAT")||"identity";M=null;if(Wv(I)){y=!0;Y.B(3);break}if("identity"!=K){M=(P=Xv[K])?P(J,c):null;Y.B(6);break}return D(Y,Yv(a,J,c,d,F,e),8);case 8:M=Y.h;case 6:if(M){if(M.keyIds)for(O=u(M.keyIds),X=O.next();!X.done;X=O.next())W=X.value,A.add(W);x.push(M)}case 3:B=v.next();Y.B(2);break;case 4:return Y.return({drmInfos:x,keyIds:A,encrypted:t,mi:y})}})}
1017
1018
  function iw(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES. (Web Crypto only exists in secure origins like https)"),new R(2,4,4042);var f=0,g=V(b,"IV","");if(g){var h=xc(g.substr(2));if(16!=h.byteLength)throw new R(2,4,4048);}else f=Iu(c.g,"EXT-X-MEDIA-SEQUENCE",0);c=b.toString()+"-"+f;if(!a.Y.has(c)){var k={bitsKey:128,blockCipherMode:"CBC",iv:h,firstMediaSequenceNumber:f};switch(Cu(b,"METHOD")){case "AES-256":k.bitsKey=256;break;case "AES-256-CTR":k.bitsKey=
1018
- 256,k.blockCipherMode="CTR"}k.fetchKey=function(){var l,m,n,r,p,t,x;return L(function(w){if(1==w.g)return l=Ju(d(),Cu(b,"URI"),e),m=l.sort().join(""),a.$.has(m)||(n=rg(l,a.g.retryParameters),r=Lv(a,n,6),a.$.set(m,r)),D(w,a.$.get(m),2);if(3!=w.g){p=w.h;if(!p.data||p.data.byteLength!=k.bitsKey/8)throw new R(2,4,4049);t={name:"CTR"==k.blockCipherMode?"AES-CTR":"AES-CBC",length:k.bitsKey};x=k;return D(w,window.crypto.subtle.importKey("raw",p.data,t,!0,["decrypt"]),3)}x.cryptoKey=w.h;k.fetchKey=void 0;
1019
- G(w)})};a.Y.set(c,k)}return a.Y.get(c)}
1019
+ 256,k.blockCipherMode="CTR"}k.fetchKey=function(){var l,m,n,r,p,t,y;return L(function(x){if(1==x.g)return l=Ju(d(),Cu(b,"URI"),e),m=l.sort().join(""),a.$.has(m)||(n=rg(l,a.g.retryParameters),r=Lv(a,n,6),a.$.set(m,r)),D(x,a.$.get(m),2);if(3!=x.g){p=x.h;if(!p.data||p.data.byteLength!=k.bitsKey/8)throw new R(2,4,4049);t={name:"CTR"==k.blockCipherMode?"AES-CTR":"AES-CBC",length:k.bitsKey};y=k;return D(x,window.crypto.subtle.importKey("raw",p.data,t,!0,["decrypt"]),3)}y.cryptoKey=x.h;k.fetchKey=void 0;
1020
+ G(x)})};a.Y.set(c,k)}return a.Y.get(c)}
1020
1021
  function rv(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=Hu(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=Hu(b.g,"EXT-X-TARGETDURATION");if(!d)throw new R(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=Hu(b.g,"EXT-X-PART-INF"))a.M=Number(Cu(e,"PART-TARGET"));b=Hu(b.g,"EXT-X-SERVER-CONTROL");a.F&&a.M?(a.m=a.Za?5*a.M<=c?Math.min(a.M,a.m):Math.min(c,a.m):Math.min(a.M,a.m),a.ra=b?Number(Cu(b,"PART-HOLD-BACK")):0):(a.m=Math.min(c,a.m),c=b?
1021
- Bu(b,"HOLD-BACK"):null,a.qa=c?Number(c.value):0);a.Ja=Math.max(d,a.Ja)}function Hv(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.ra)b=a.ra;else if(a.qa)b=a.qa;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.Ja*c}a.l.Ph(0);a.l.Dg(b);a.l.gd(!1)}
1022
+ Bu(b,"HOLD-BACK"):null,a.qa=c?Number(c.value):0);a.Ja=Math.max(d,a.Ja)}function Hv(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.ra)b=a.ra;else if(a.qa)b=a.qa;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.Ja*c}a.l.Rh(0);a.l.Dg(b);a.l.gd(!1)}
1022
1023
  function Kv(a,b,c,d,e){var f=Hu(c,"EXT-X-MAP");if(!f)return null;var g=Cu(f,"URI"),h=Ju(d(),g,e);g=[h.toString(),V(f,"BYTERANGE","")].join("-");if(!a.S.has(g)){var k=void 0,l=null;c=u(c);for(var m=c.next();!m.done;m=c.next())m=m.value,"EXT-X-KEY"==m.name?Wv(Cu(m,"METHOD"))&&m.id<f.id&&(k=iw(a,m,b,d,e)):"EXT-X-BYTERANGE"==m.name&&m.id<f.id&&(l=m);b=jw(h,f,l,k);a.S.set(g,b)}return a.S.get(g)}
1023
1024
  function jw(a,b,c,d){var e=0,f=null;b=V(b,"BYTERANGE");!b&&c&&(b=c.value);b&&(e=b.split("@"),f=Number(e[0]),e=Number(e[1]),f=e+f-1,d&&(c=f+1-e,c%16&&(f+=16-c%16)));return new yi(function(){return a},e,f,null,null,null,d)}
1024
- function kw(a,b,c,d,e,f,g,h,k){var l=d.g,m=Hu(l,"EXTINF"),n=0,r=0,p=null;d.Ob.length&&!a.F&&Ua("Low-latency HLS 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.");var t=null;if(!a.g.hls.ignoreManifestProgramDateTime){var x=Hu(l,"EXT-X-PROGRAM-DATE-TIME");x&&x.value&&(t=kh(x.value))}var w=Bi;Hu(l,"EXT-X-GAP")&&(w=2);if(!m){if(0==d.Ob.length)throw new R(2,4,4024,"EXTINF");
1025
- if(!a.F)return null}var B=[];x=!1;var v=null,A=!1,z=!1;if(a.F&&d.Ob.length){n=("video/mp4"==g.mimeType||"audio/mp4"==g.mimeType)&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var C=t,E={},H=0;H<d.Ob.length;E={vd:E.vd,ge:E.ge},H++){var J=d.Ob[H],F=0==H?c:B[B.length-1],I=0==H?e:F.endTime,K=Number(V(J,"DURATION"))||a.M;if(K){var M=I+K,P=0,O=null;"EXT-X-PRELOAD-HINT"==J.name?(P=(P=V(J,"BYTERANGE-START"))?Number(P):0,(F=V(J,"BYTERANGE-LENGTH"))?O=P+Number(F)-1:P&&(O=Number.MAX_SAFE_INTEGER)):
1026
- (P=V(J,"BYTERANGE"),O=u(lw(F,P)),P=O.next().value,O=O.next().value);E.ge=V(J,"URI");if(E.ge){F=Bi;"YES"==V(J,"GAP")&&(F=2,A=!0);E.vd=null;var X=function(Y){return function(){null==Y.vd&&(Y.vd=Ju(h(),Y.ge,f));return Y.vd}}(E);n&&0<=P&&null!=O&&(v=X,x=!0);I=new Ai(I,M,X,P,O,b,0,0,Infinity,[],"",null,C,F,k);"EXT-X-PRELOAD-HINT"==J.name&&(I.mg(),z=!0);"YES"!=V(J,"INDEPENDENT")&&0<H&&I.He();B.push(I);C&&(C+=K)}}}}if(m){m=Number(m.value.split(",")[0]);if(0==m)return null;n=e+m}else if(B.length)n=B[B.length-
1027
- 1].endTime;else return null;x&&(A||0!=B[0].Ta?(x=!1,v=null):B=[]);(m=Hu(l,"EXT-X-BYTERANGE"))?(p=u(lw(c,m.value)),r=p.next().value,p=p.next().value):B.length&&(r=B[0].Ta,p=B[B.length-1].za);c="";m=null;"image"==g.type&&(c="1x1",g=Hu(l,"EXT-X-TILES"))&&(c=Cu(g,"LAYOUT"),(g=V(g,"DURATION"))&&(m=Number(g)));var W=null;b=new Ai(e,n,function(){if(v)return v();null==W&&(W=Ju(h(),d.h,f));return W||[]},r,p,b,0,0,Infinity,B,c,m,t,w,k,0<B.length&&!!d.h);x&&(a.Za=!0,b.yh(),z&&b.mg());return b}
1025
+ function kw(a,b,c,d,e,f,g,h,k){var l=d.g,m=Hu(l,"EXTINF"),n=0,r=0,p=null;d.Ob.length&&!a.F&&Ua("Low-latency HLS 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.");var t=null;if(!a.g.hls.ignoreManifestProgramDateTime){var y=Hu(l,"EXT-X-PROGRAM-DATE-TIME");y&&y.value&&(t=kh(y.value))}var x=Bi;Hu(l,"EXT-X-GAP")&&(x=2);if(!m){if(0==d.Ob.length)throw new R(2,4,4024,"EXTINF");
1026
+ if(!a.F)return null}var A=[];y=!1;var v=null,B=!1,z=!1;if(a.F&&d.Ob.length){n=("video/mp4"==g.mimeType||"audio/mp4"==g.mimeType)&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var C=t,E={},H=0;H<d.Ob.length;E={vd:E.vd,ge:E.ge},H++){var J=d.Ob[H],F=0==H?c:A[A.length-1],I=0==H?e:F.endTime,K=Number(V(J,"DURATION"))||a.M;if(K){var M=I+K,P=0,O=null;"EXT-X-PRELOAD-HINT"==J.name?(P=(P=V(J,"BYTERANGE-START"))?Number(P):0,(F=V(J,"BYTERANGE-LENGTH"))?O=P+Number(F)-1:P&&(O=Number.MAX_SAFE_INTEGER)):
1027
+ (P=V(J,"BYTERANGE"),O=u(lw(F,P)),P=O.next().value,O=O.next().value);E.ge=V(J,"URI");if(E.ge){F=Bi;"YES"==V(J,"GAP")&&(F=2,B=!0);E.vd=null;var X=function(Y){return function(){null==Y.vd&&(Y.vd=Ju(h(),Y.ge,f));return Y.vd}}(E);n&&0<=P&&null!=O&&(v=X,y=!0);I=new Ai(I,M,X,P,O,b,0,0,Infinity,[],"",null,C,F,k);"EXT-X-PRELOAD-HINT"==J.name&&(I.mg(),z=!0);"YES"!=V(J,"INDEPENDENT")&&0<H&&I.He();A.push(I);C&&(C+=K)}}}}if(m){m=Number(m.value.split(",")[0]);if(0==m)return null;n=e+m}else if(A.length)n=A[A.length-
1028
+ 1].endTime;else return null;y&&(B||0!=A[0].Ta?(y=!1,v=null):A=[]);(m=Hu(l,"EXT-X-BYTERANGE"))?(p=u(lw(c,m.value)),r=p.next().value,p=p.next().value):A.length&&(r=A[0].Ta,p=A[A.length-1].za);c="";m=null;"image"==g.type&&(c="1x1",g=Hu(l,"EXT-X-TILES"))&&(c=Cu(g,"LAYOUT"),(g=V(g,"DURATION"))&&(m=Number(g)));var W=null;b=new Ai(e,n,function(){if(v)return v();null==W&&(W=Ju(h(),d.h,f));return W||[]},r,p,b,0,0,Infinity,A,c,m,t,x,k,0<A.length&&!!d.h);y&&(a.Za=!0,b.Bh(),z&&b.mg());return b}
1028
1029
  function lw(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.za+1,d=c+b-1);return[c,d]}
1029
- function pv(a,b,c,d,e,f,g){var h=b.segments,k=void 0,l=Iu(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),m=Iu(b.g,"EXT-X-MEDIA-SEQUENCE",0),n=Hu(b.g,"EXT-X-SKIP"),r=n?Number(V(n,"SKIPPED-SEGMENTS")):0,p=m+r,t=0;gv(a)&&d.has(p)&&(t=d.get(p));0===t&&a.oa==Mv&&0<d.size&&!d.has(p)&&(t=a.l.Lb());var x=[],w=null;n=[];for(var B=0;B<h.length;B++){var v=h[B],A=0==B?t:w.endTime;p=m+r+B;Hu(v.g,"EXT-X-DISCONTINUITY")&&l++;var z=u(v.g);for(var C=z.next();!C.done;C=z.next())C=C.value,"EXT-X-KEY"==C.name&&(Wv(Cu(C,"METHOD"))?
1030
- k=iw(a,C,b,f,e):k=void 0);d.set(p,A);z=Kv(a,b,v.g,f,e);!a.F&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.F=a.i.isLowLatencyMode());if(A=kw(a,z,w,v,A,e,c,f,k))(w=Iu(v.g,"EXT-X-BITRATE"))?n.push({bitrate:w,duration:A.endTime-A.startTime}):n.length&&(w=n.pop(),w.duration+=A.endTime-A.startTime,n.push(w)),w=A,A.j=l,tv(a,g)&&null!=a.K&&p<a.K||x.push(A)}b=void 0;n.length&&(b=n.reduce(function(E,H){return E+H.duration},0),b=Math.round(n.reduce(function(E,H){return E+H.bitrate*H.duration},0)/
1031
- b*1E3));if(n=x.some(function(E){return null!=E.h}))for(c={},d=0;d<x.length;c={nd:c.nd,md:c.md,ae:c.ae,bc:c.bc,jd:c.jd},d++)if(c.bc=x[d],null==c.bc.h)for(c.md=0,c.nd=d,e=function(E){return function(){var H=x[E.nd];if(H){if(null!=H.h)return H.h+E.md;E.md-=H.endTime-H.startTime;E.nd+=1}return null}}(c),c.jd=0,c.ae=d,f=function(E){return function(){var H=x[E.ae];if(H){H!=E.bc&&(E.jd+=H.endTime-H.startTime);if(null!=H.h)return H.h+E.jd;--E.ae}return null}}(c);null==c.bc.h;)c.bc.h=f(),null==c.bc.h&&(c.bc.h=
1032
- e());if(n)for(c=u(x),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.h,e=u(e.g),f=e.next();!f.done;f=e.next())f=f.value,f.h=d,d+=f.endTime-f.startTime;c=a.P;if(n&&Infinity!=c&&!tv(a,g))for(a=u(x),d=a.next();!d.done;d=a.next())d.value.Kg(c);return{segments:x,bandwidth:b}}function Qv(a,b){if(a==Gc){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":"mjpg"==b?"application/mp4":null:"image/jpeg"}
1030
+ function pv(a,b,c,d,e,f,g){var h=b.segments,k=void 0,l=Iu(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),m=Iu(b.g,"EXT-X-MEDIA-SEQUENCE",0),n=Hu(b.g,"EXT-X-SKIP"),r=n?Number(V(n,"SKIPPED-SEGMENTS")):0,p=m+r,t=0;gv(a)&&d.has(p)&&(t=d.get(p));0===t&&a.oa==Mv&&0<d.size&&!d.has(p)&&(t=a.l.Lb());var y=[],x=null;n=[];for(var A=0;A<h.length;A++){var v=h[A],B=0==A?t:x.endTime;p=m+r+A;Hu(v.g,"EXT-X-DISCONTINUITY")&&l++;var z=u(v.g);for(var C=z.next();!C.done;C=z.next())C=C.value,"EXT-X-KEY"==C.name&&(Wv(Cu(C,"METHOD"))?
1031
+ k=iw(a,C,b,f,e):k=void 0);d.set(p,B);z=Kv(a,b,v.g,f,e);!a.F&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.F=a.i.isLowLatencyMode());if(B=kw(a,z,x,v,B,e,c,f,k))(x=Iu(v.g,"EXT-X-BITRATE"))?n.push({bitrate:x,duration:B.endTime-B.startTime}):n.length&&(x=n.pop(),x.duration+=B.endTime-B.startTime,n.push(x)),x=B,B.j=l,tv(a,g)&&null!=a.K&&p<a.K||y.push(B)}b=void 0;n.length&&(b=n.reduce(function(E,H){return E+H.duration},0),b=Math.round(n.reduce(function(E,H){return E+H.bitrate*H.duration},0)/
1032
+ b*1E3));if(n=y.some(function(E){return null!=E.h}))for(c={},d=0;d<y.length;c={nd:c.nd,md:c.md,ae:c.ae,bc:c.bc,jd:c.jd},d++)if(c.bc=y[d],null==c.bc.h)for(c.md=0,c.nd=d,e=function(E){return function(){var H=y[E.nd];if(H){if(null!=H.h)return H.h+E.md;E.md-=H.endTime-H.startTime;E.nd+=1}return null}}(c),c.jd=0,c.ae=d,f=function(E){return function(){var H=y[E.ae];if(H){H!=E.bc&&(E.jd+=H.endTime-H.startTime);if(null!=H.h)return H.h+E.jd;--E.ae}return null}}(c);null==c.bc.h;)c.bc.h=f(),null==c.bc.h&&(c.bc.h=
1033
+ e());if(n)for(c=u(y),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.h,e=u(e.g),f=e.next();!f.done;f=e.next())f=f.value,f.h=d,d+=f.endTime-f.startTime;c=a.P;if(n&&Infinity!=c&&!tv(a,g))for(a=u(y),d=a.next();!d.done;d=a.next())d.value.Kg(c);return{segments:y,bandwidth:b}}function Qv(a,b){if(a==Gc){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":"mjpg"==b?"application/mp4":null:"image/jpeg"}
1033
1034
  function Rv(a){return a==Gc?"text/vtt":mw[a].mp4}
1034
- function hw(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,t,x,w,B,v;return L(function(A){switch(A.g){case 1:g=xg;h=Math.trunc((d.segments.length-1)/2);k=Ju(f(),d.segments[h].h,e);l=new ib(k[0]);m=l.jb.split(".").pop();n=mw[b];if((r=n[m])||(r=Jv[m])||(r=Qv(b,c)))return A.return(r);t=1;x=rg(k,a.g.retryParameters);ra(A,2);x.method="HEAD";return D(A,Lv(a,x,g,{type:t}),4);case 4:w=A.h;p=w.headers["content-type"];ta(A,3);break;case 2:B=ua(A);if(!B||1002!=B.code&&1001!=B.code){A.D(3);break}x.method="GET";return D(A,
1035
- Lv(a,x,g,{type:t}),6);case 6:v=A.h,p=v.headers["content-type"];case 3:return p?A.return(p.split(";")[0]):A.return(Rv(b))}})}function Gv(a,b,c,d,e,f){a&&(a.width=Number(b)||void 0,a.height=Number(c)||void 0,a.frameRate=Number(d)||void 0,a.hdr=e||void 0,a.videoLayout=f||void 0)}function ev(a,b,c){return Lv(a,rg(b,a.g.retryParameters),0,{type:c?2:3})}
1035
+ function hw(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,t,y,x,A,v;return L(function(B){switch(B.g){case 1:g=xg;h=Math.trunc((d.segments.length-1)/2);k=Ju(f(),d.segments[h].h,e);l=new ib(k[0]);m=l.jb.split(".").pop();n=mw[b];if((r=n[m])||(r=Jv[m])||(r=Qv(b,c)))return B.return(r);t=1;y=rg(k,a.g.retryParameters);ra(B,2);y.method="HEAD";return D(B,Lv(a,y,g,{type:t}),4);case 4:x=B.h;p=x.headers["content-type"];ta(B,3);break;case 2:A=ua(B);if(!A||1002!=A.code&&1001!=A.code){B.B(3);break}y.method="GET";return D(B,
1036
+ Lv(a,y,g,{type:t}),6);case 6:v=B.h,p=v.headers["content-type"];case 3:return p?B.return(p.split(";")[0]):B.return(Rv(b))}})}function Gv(a,b,c,d,e,f){a&&(a.width=Number(b)||void 0,a.height=Number(c)||void 0,a.frameRate=Number(d)||void 0,a.hdr=e||void 0,a.videoLayout=f||void 0)}function ev(a,b,c){return Lv(a,rg(b,a.g.retryParameters),0,{type:c?2:3})}
1036
1037
  function cv(a){var b,c,d,e,f,g;L(function(h){switch(h.g){case 1:if(!a.i)return h.return();ra(h,2);b=Date.now();return D(h,a.update(),4);case 4:c=Date.now();gv(a)&&(d=(c-b)/1E3,a.Ua.sample(1,d),e=a.m,f=Math.max(0,e-ad(a.Ua)),a.u.V(f));ta(h,3);break;case 2:g=ua(h);if(!a.i)return h.return();if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.i.onError(g),h.return();g.severity=1;a.i.onError(g);a.u.V(.1);case 3:if(!a.i)return h.return();a.i.onManifestUpdated();G(h)}})}
1037
1038
  function gv(a){return a.oa!=dv}function kv(a,b){a.oa=b;a.l&&a.l.gd(!gv(a));gv(a)||a.u.stop()}function Lv(a,b,c,d){if(!a.O)throw new R(2,7,7001);b=a.i.networkingEngine.request(c,b,d);mg(a.O,b);return b.promise}function Wv(a){return"AES-128"==a||"AES-256"==a||"AES-256-CTR"==a}
1038
- function Yv(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,t,x,w,B,v,A,z;return L(function(C){switch(C.g){case 1:if("video/mp2t"==c)throw new R(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new R(2,4,4041);g=Cu(b,"METHOD");h=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!h.includes(g))return C.return(null);k=Ju(d(),Cu(b,"URI"),f);if(k[0].startsWith("data:text/plain;base64,")){l=yc(wc(k[0].split("data:text/plain;base64,").pop()));C.D(2);break}m=k.sort().join("");a.sa.has(m)||(n=rg(k,a.g.retryParameters),r=Lv(a,n,6),a.sa.set(m,
1039
- r));return D(C,a.sa.get(m),3);case 3:p=C.h,l=yc(p.data);case 2:t="00000000000000000000000000000000";if(!e){C.D(4);break}if(a.ma.has(e)){x=a.ma.get(e);C.D(5);break}w=ql(e.ka(),e.Mb(),e.Jb(),a.g.retryParameters);B=xg;return D(C,Lv(a,w,B,{type:0}),6);case 6:v=C.h,x=av(v.data),a.ma.set(e,x);case 5:x&&(t=x);case 4:return A=new Map,A.set(t,l),z="cenc","SAMPLE-AES"==g&&(z="cbcs"),C.return(Cc(A,z))}})}N("shaka.hls.HlsParser",bv);
1039
+ function Yv(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,t,y,x,A,v,B,z;return L(function(C){switch(C.g){case 1:if("video/mp2t"==c)throw new R(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new R(2,4,4041);g=Cu(b,"METHOD");h=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!h.includes(g))return C.return(null);k=Ju(d(),Cu(b,"URI"),f);if(k[0].startsWith("data:text/plain;base64,")){l=yc(wc(k[0].split("data:text/plain;base64,").pop()));C.B(2);break}m=k.sort().join("");a.sa.has(m)||(n=rg(k,a.g.retryParameters),r=Lv(a,n,6),a.sa.set(m,
1040
+ r));return D(C,a.sa.get(m),3);case 3:p=C.h,l=yc(p.data);case 2:t="00000000000000000000000000000000";if(!e){C.B(4);break}if(a.ma.has(e)){y=a.ma.get(e);C.B(5);break}x=ql(e.ka(),e.Mb(),e.Jb(),a.g.retryParameters);A=xg;return D(C,Lv(a,x,A,{type:0}),6);case 6:v=C.h,y=av(v.data),a.ma.set(e,y);case 5:y&&(t=y);case 4:return B=new Map,B.set(t,l),z="cenc","SAMPLE-AES"==g&&(z="cbcs"),C.return(Cc(B,z))}})}N("shaka.hls.HlsParser",bv);
1040
1041
  var Jv={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},mw={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
1041
1042
  vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Xv={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new R(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new R(2,4,4041);a=Cu(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a))return null;b="cenc";"SAMPLE-AES"==a&&(b="cbcs");return Bc("com.apple.fps",b,[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},
1042
1043
  "urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Cu(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;var c="cenc";"SAMPLE-AES"==b&&(c="cbcs");b=Cu(a,"URI");b=Wu(b);b=Fb(b.data);c=Bc("com.widevine.alpha",c,[{initDataType:"cenc",initData:b}]);if(a=V(a,"KEYID"))c.keyIds=new Set([a.toLowerCase().substr(2)]);return c},"com.microsoft.playready":function(a){var b=Cu(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;var c="cenc";"SAMPLE-AES"==
1043
- b&&(c="cbcs");a=Cu(a,"URI");a=Wu(a);a=Fb(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Sg(a,b,new Set,0);return Bc("com.microsoft.playready",c,[{initDataType:"cenc",initData:a}])}},dv="VOD",gw="EVENT",Mv="LIVE",jv={gi:dv,Bk:gw,Jk:Mv};ti["application/x-mpegurl"]=function(){return new bv};ti["application/vnd.apple.mpegurl"]=function(){return new bv};function nw(a){var b=0,c=Kb(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=Fb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function ow(a){if(a=pw(a))a:{a=u(dh(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=eh(b.value,"LA_URL")){a=bh(b);break a}a=""}else a="";return a}
1044
+ b&&(c="cbcs");a=Cu(a,"URI");a=Wu(a);a=Fb(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Sg(a,b,new Set,0);return Bc("com.microsoft.playready",c,[{initDataType:"cenc",initData:a}])}},dv="VOD",gw="EVENT",Mv="LIVE",jv={ii:dv,Bk:gw,Jk:Mv};ti["application/x-mpegurl"]=function(){return new bv};ti["application/vnd.apple.mpegurl"]=function(){return new bv};function nw(a){var b=0,c=Kb(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=Fb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function ow(a){if(a=pw(a))a:{a=u(dh(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=eh(b.value,"LA_URL")){a=bh(b);break a}a=""}else a="";return a}
1044
1045
  function pw(a){a=wc(bh(a));a=nw(a).filter(function(b){return b.type===Cw})[0];if(!a)return null;a=mc(a.value,!0);return(a=Ug(a,"WRMHEADER"))?a:null}var Cw=1,Dw=(new Map).set("com.microsoft.playready",ow).set("com.microsoft.playready.recommendation",ow).set("com.microsoft.playready.software",ow).set("com.microsoft.playready.hardware",ow);function Ew(a){if(!Fw){Fw=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);Gw=Hw("ftyp",b,d,b,c);b=Hw("dref",Iw);Jw=Hw("dinf",b)}this.g=a}
1045
- function Kw(a){for(var b=[],c=u(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=Hw;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(Lw+1));m=Math.floor(m%(Lw+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(y(Mw(h,4)),[0,0,0,0],y(Mw(n,4)),y(Mw(m,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],y(Mw(k,2)),[0,0],y(Mw(l,
1046
- 2)),[0,0]));h=Hw("tkhd",h);k=Hw;n=g.duration*g.timescale;l=Math.floor(n/(Lw+1));n=Math.floor(n%(Lw+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(y(Mw(g.timescale,4)),y(Mw(l,4)),y(Mw(n,4)),y(Mw(m,2)),[0,0]));l=Hw("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Nw;break;case "audio":m=Ow}n=Hw("hdlr",m);a:{switch(g.type){case "video":g=Hw("minf",Hw("vmhd",Pw),Jw,Qw(g));break a;
1047
- case "audio":g=Hw("minf",Hw("smhd",Rw),Jw,Qw(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=zc.apply(tc,y(b));f=a.g[0];c=Hw;d=f.duration*f.timescale;e=Math.floor(d/(Lw+1));d=Math.floor(d%(Lw+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(y(Mw(f.timescale,4)),y(Mw(e,4)),y(Mw(d,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,
1048
- 255]));e=Hw("mvhd",e);d=[];a=u(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(y(Mw(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1])),k=Hw("trex",k),h.call(g,k);a=zc.apply(tc,y(d));a=Hw("mvex",a);d=[];if(f.encrypted){f=u(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=u(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=zc.apply(tc,y(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(Gw.byteLength+
1046
+ function Kw(a){for(var b=[],c=u(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=Hw;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(Lw+1));m=Math.floor(m%(Lw+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(Mw(h,4)),[0,0,0,0],w(Mw(n,4)),w(Mw(m,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],w(Mw(k,2)),[0,0],w(Mw(l,
1047
+ 2)),[0,0]));h=Hw("tkhd",h);k=Hw;n=g.duration*g.timescale;l=Math.floor(n/(Lw+1));n=Math.floor(n%(Lw+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(Mw(g.timescale,4)),w(Mw(l,4)),w(Mw(n,4)),w(Mw(m,2)),[0,0]));l=Hw("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Nw;break;case "audio":m=Ow}n=Hw("hdlr",m);a:{switch(g.type){case "video":g=Hw("minf",Hw("vmhd",Pw),Jw,Qw(g));break a;
1048
+ case "audio":g=Hw("minf",Hw("smhd",Rw),Jw,Qw(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=zc.apply(tc,w(b));f=a.g[0];c=Hw;d=f.duration*f.timescale;e=Math.floor(d/(Lw+1));d=Math.floor(d%(Lw+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(Mw(f.timescale,4)),w(Mw(e,4)),w(Mw(d,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,
1049
+ 255]));e=Hw("mvhd",e);d=[];a=u(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(w(Mw(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1])),k=Hw("trex",k),h.call(g,k);a=zc.apply(tc,w(d));a=Hw("mvex",a);d=[];if(f.encrypted){f=u(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=u(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=zc.apply(tc,w(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(Gw.byteLength+
1049
1050
  a.byteLength);b.set(Gw);b.set(a,Gw.byteLength);return b}
1050
1051
  function Qw(a){var b=Hw,c=new Uint8Array([]);switch(a.type){case "video":if(a.codecs.includes("avc1")){c=a.stream.width||0;var d=a.stream.height||0;if(0<a.Ea.byteLength)var e=Hw("avcC",a.Ea);else{e=Hw;for(var f=7,g=[],h=[],k=0,l=0,m=0,n=0;n<a.pb.length;n++){var r=Sw(a.pb[n]);switch(r[0]&31){case 7:g.push(r);f+=r.length+2;break;case 8:h.push(r),f+=r.length+2}}0<g.length&&(k=g[0][1],m=g[0][2],l=g[0][3]);f=new Uint8Array(f);n=0;f[n++]=1;f[n++]=k;f[n++]=m;f[n++]=l;f[n++]=255;f[n++]=224|g.length;for(k=
1051
- 0;k<g.length;k++)f[n++]=(g[k].length&65280)>>8,f[n++]=g[k].length&255,f.set(g[k],n),n+=g[k].length;f[n++]=h.length;for(g=0;g<h.length;g++)f[n++]=(h[g].length&65280)>>8,f[n++]=h[g].length&255,f.set(h[g],n),n+=h[g].length;e=e("avcC",f)}c=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(y(Mw(c,2)),y(Mw(d,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]));d="avc1";h=Tw(a);g=new Uint8Array([]);
1052
- a.encrypted&&(g=Uw(a),d="encv");c=Hw(d,c,e,h,g)}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),0<a.Ea.byteLength&&(c=Hw("hvcC",a.Ea)),d=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(y(Mw(d,2)),y(Mw(e,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])),e="hvc1",h=Tw(a),g=new Uint8Array([]),a.encrypted&&(g=Uw(a),e="encv"),c=Hw(e,d,
1052
+ 0;k<g.length;k++)f[n++]=(g[k].length&65280)>>8,f[n++]=g[k].length&255,f.set(g[k],n),n+=g[k].length;f[n++]=h.length;for(g=0;g<h.length;g++)f[n++]=(h[g].length&65280)>>8,f[n++]=h[g].length&255,f.set(h[g],n),n+=h[g].length;e=e("avcC",f)}c=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(w(Mw(c,2)),w(Mw(d,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]));d="avc1";h=Tw(a);g=new Uint8Array([]);
1053
+ a.encrypted&&(g=Uw(a),d="encv");c=Hw(d,c,e,h,g)}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),0<a.Ea.byteLength&&(c=Hw("hvcC",a.Ea)),d=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(w(Mw(d,2)),w(Mw(e,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])),e="hvc1",h=Tw(a),g=new Uint8Array([]),a.encrypted&&(g=Uw(a),e="encv"),c=Hw(e,d,
1053
1054
  c,h,g));break;case "audio":if(a.codecs.includes("mp3"))a=Hw(".mp3",Vw(a));else if(a.codecs.includes("ac-3"))c=Hw("dac3",a.wa),d="ac-3",e=new Uint8Array([]),a.encrypted&&(e=Uw(a),d="enca"),a=Hw(d,Vw(a),c,e);else if(a.codecs.includes("ec-3"))c=Hw("dec3",a.wa),d="ec-3",e=new Uint8Array([]),a.encrypted&&(e=Uw(a),d="enca"),a=Hw(d,Vw(a),c,e);else if(a.codecs.includes("opus"))c=Hw("dOps",a.wa),d="Opus",e=new Uint8Array([]),a.encrypted&&(e=Uw(a),d="enca"),a=Hw(d,Vw(a),c,e);else{if(0<a.wa.byteLength)c=Hw("esds",
1054
- a.wa);else{c=Hw;d=a.id+1;e=a.stream.channelsCount||2;g=a.stream.audioSamplingRate||44100;k=Dc("audio",a.codecs.split(","));l={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};h=l[g];if("mp4a.40.5"===k||"mp4a.40.29"===k)h=l[2*g];g=parseInt(k.split(".").pop(),10);d=new Uint8Array([0,0,0,0,3,25].concat(y(Mw(d,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,g<<3|h>>>1,h<<7|e<<3,6,1,2]));c=c("esds",d)}d="mp4a";e=new Uint8Array([]);a.encrypted&&(e=Uw(a),d="enca");
1055
- a=Hw(d,Vw(a),c,e)}c=a}a=Hw("stsd",Ww,c);return b("stbl",a,Hw("stts",Xw),Hw("stsc",Yw),Hw("stsz",Zw),Hw("stco",$w))}function Tw(a){if(!a.Oa&&!a.Qa)return new Uint8Array([]);var b=a.Qa;a=new Uint8Array([].concat(y(Mw(a.Oa,4)),y(Mw(b,4))));return Hw("pasp",a)}function Vw(a){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.stream.channelsCount||2,0,16,0,0,0,0].concat(y(Mw(a.stream.audioSamplingRate||44100,2)),[0,0]))}
1056
- function Uw(a){var b=Hw;var c=a.codecs.substring(0,a.codecs.indexOf("."));for(var d=0,e=0;e<c.length;e+=1)d|=c.charCodeAt(e)<<8*(c.length-e-1);c=new Uint8Array([].concat(y(Mw(d,4))));c=Hw("frma",c);d=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]);d=Hw("schm",d);e=Hw;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);a=u(a.stream.drmInfos);for(var g=a.next();!g.done;g=a.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=u(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=Sw(h.value)}a=new Uint8Array([0,
1055
+ a.wa);else{c=Hw;d=a.id+1;e=a.stream.channelsCount||2;g=a.stream.audioSamplingRate||44100;k=Dc("audio",a.codecs.split(","));l={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};h=l[g];if("mp4a.40.5"===k||"mp4a.40.29"===k)h=l[2*g];g=parseInt(k.split(".").pop(),10);d=new Uint8Array([0,0,0,0,3,25].concat(w(Mw(d,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,g<<3|h>>>1,h<<7|e<<3,6,1,2]));c=c("esds",d)}d="mp4a";e=new Uint8Array([]);a.encrypted&&(e=Uw(a),d="enca");
1056
+ a=Hw(d,Vw(a),c,e)}c=a}a=Hw("stsd",Ww,c);return b("stbl",a,Hw("stts",Xw),Hw("stsc",Yw),Hw("stsz",Zw),Hw("stco",$w))}function Tw(a){if(!a.Oa&&!a.Qa)return new Uint8Array([]);var b=a.Qa;a=new Uint8Array([].concat(w(Mw(a.Oa,4)),w(Mw(b,4))));return Hw("pasp",a)}function Vw(a){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.stream.channelsCount||2,0,16,0,0,0,0].concat(w(Mw(a.stream.audioSamplingRate||44100,2)),[0,0]))}
1057
+ function Uw(a){var b=Hw;var c=a.codecs.substring(0,a.codecs.indexOf("."));for(var d=0,e=0;e<c.length;e+=1)d|=c.charCodeAt(e)<<8*(c.length-e-1);c=new Uint8Array([].concat(w(Mw(d,4))));c=Hw("frma",c);d=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]);d=Hw("schm",d);e=Hw;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);a=u(a.stream.drmInfos);for(var g=a.next();!g.done;g=a.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=u(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=Sw(h.value)}a=new Uint8Array([0,
1057
1058
  0,0,0,0,0,1,8]);f=Hw("tenc",a,f);return b("sinf",c,d,e("schi",f))}
1058
- function ax(a){var b=[];a=u(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=Hw;var g=new Uint8Array([0,0,0,0].concat(y(Mw(c.data?c.data.Db:0,4))));g=Hw("mfhd",g);var h;var k=c.data?c.data.ob:[];var l=new Uint8Array(4+k.length);for(h=0;h<k.length;h++){var m=k[h].flags;l[h+4]=m.eb<<4|m.hb<<2|m.gb}k=Hw("sdtp",l);var n=k.length+92;l=Hw;h=new Uint8Array([0,0,0,58].concat(y(Mw(c.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));h=Hw("tfhd",h);m=c.data?c.data.baseMediaDecodeTime:
1059
- 0;var r=Math.floor(m%(Lw+1));m=new Uint8Array([1,0,0,0].concat(y(Mw(Math.floor(m/(Lw+1)),4)),y(Mw(r,4))));m=Hw("tfdt",m);var p=n;n=c.data?c.data.ob:[];r=n.length;var t=12+16*r,x=new Uint8Array(t);p+=8+t;x.set(["video"===c.type?1:0,0,15,1].concat(y(Mw(r,4)),y(Mw(p,4))),0);for(p=0;p<r;p++){var w=n[p];t=Mw(w.duration,4);var B=Mw(w.size,4),v=w.flags;w=Mw(w.qb,4);x.set([].concat(y(t),y(B),[v.sb<<2|v.eb,v.hb<<6|v.gb<<4|v.ub,v.cb&61440,v.cb&15],y(w)),12+16*p)}n=Hw("trun",x);k=l("traf",h,m,n,k);f=f("moof",
1060
- g,k);e.call(d,b,[f,bx(c)])}return zc.apply(tc,y(b))}function bx(a){a=(a.data?a.data.ob:[]).map(function(b){return b.data});a=zc.apply(tc,y(a));return Hw("mdat",a)}function Mw(a,b){var c=[];for(--b;0<=b;b--)c.push(a>>8*b&255);return c}function Sw(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length/2;c+=1)b[c]=parseInt(String(a[2*c]+a[2*c+1]),16);return b}
1059
+ function ax(a){var b=[];a=u(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=Hw;var g=new Uint8Array([0,0,0,0].concat(w(Mw(c.data?c.data.Db:0,4))));g=Hw("mfhd",g);var h;var k=c.data?c.data.ob:[];var l=new Uint8Array(4+k.length);for(h=0;h<k.length;h++){var m=k[h].flags;l[h+4]=m.eb<<4|m.hb<<2|m.gb}k=Hw("sdtp",l);var n=k.length+92;l=Hw;h=new Uint8Array([0,0,0,58].concat(w(Mw(c.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));h=Hw("tfhd",h);m=c.data?c.data.baseMediaDecodeTime:
1060
+ 0;var r=Math.floor(m%(Lw+1));m=new Uint8Array([1,0,0,0].concat(w(Mw(Math.floor(m/(Lw+1)),4)),w(Mw(r,4))));m=Hw("tfdt",m);var p=n;n=c.data?c.data.ob:[];r=n.length;var t=12+16*r,y=new Uint8Array(t);p+=8+t;y.set(["video"===c.type?1:0,0,15,1].concat(w(Mw(r,4)),w(Mw(p,4))),0);for(p=0;p<r;p++){var x=n[p];t=Mw(x.duration,4);var A=Mw(x.size,4),v=x.flags;x=Mw(x.qb,4);y.set([].concat(w(t),w(A),[v.sb<<2|v.eb,v.hb<<6|v.gb<<4|v.ub,v.cb&61440,v.cb&15],w(x)),12+16*p)}n=Hw("trun",y);k=l("traf",h,m,n,k);f=f("moof",
1061
+ g,k);e.call(d,b,[f,bx(c)])}return zc.apply(tc,w(b))}function bx(a){a=(a.data?a.data.ob:[]).map(function(b){return b.data});a=zc.apply(tc,w(a));return Hw("mdat",a)}function Mw(a,b){var c=[];for(--b;0<=b;b--)c.push(a>>8*b&255);return c}function Sw(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length/2;c+=1)b[c]=parseInt(String(a[2*c]+a[2*c+1]),16);return b}
1061
1062
  function Hw(a){var b=Fa.apply(1,arguments),c=cx[a];c||(c=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)],cx[a]=c);for(var d=8,e=b.length-1;0<=e;e--)d+=b[e].byteLength;e=new Uint8Array(d);e[0]=d>>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c<b.length;c++)e.set(b[c],d),d+=b[c].byteLength;return e}
1062
1063
  var Fw=!1,Lw=Math.pow(2,32)-1,cx={},Nw=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]),Ow=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]),Xw=new Uint8Array([0,0,0,0,0,0,0,0]),Yw=new Uint8Array([0,0,0,0,0,0,0,0]),$w=new Uint8Array([0,0,0,0,0,0,0,0]),Zw=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Pw=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Rw=new Uint8Array([0,
1063
1064
  0,0,0,0,0,0,0]),Ww=new Uint8Array([0,0,0,0,0,0,0,1]),Gw=new Uint8Array([]),Iw=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Jw=new Uint8Array([]);function dx(){var a=this;this.h=this.g=null;this.l=[];this.j=null;this.u=1;this.i=null;this.F=new $c(5);this.o=new Ob(function(){ex(a)});this.A=new lg;this.m=new Map}q=dx.prototype;q.configure=function(a){this.g=a};q.start=function(a,b){var c=this;return L(function(d){if(1==d.g)return c.l=[a],c.h=b,D(d,fx(c),2);if(!c.h)throw new R(2,7,7001);return d.return(c.j)})};
@@ -1065,44 +1066,44 @@ function ex(a){var b;L(function(c){switch(c.g){case 1:return ra(c,2),D(c,fx(a),4
1065
1066
  q.update=function(){var a=this,b;return L(function(c){if(1==c.g)return ra(c,2),D(c,fx(a),4);if(2!=c.g)return ta(c,0);b=ua(c);if(!a.h||!b)return c.return();a.h.onError(b);G(c)})};q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};q.banLocation=function(){};
1066
1067
  function fx(a){var b,c,d,e,f,g,h;return L(function(k){if(1==k.g)return b=rg(a.l,a.g.retryParameters),c=a.h.networkingEngine,d=Date.now(),e=c.request(0,b,{type:5}),mg(a.A,e),D(k,e.promise,2);f=k.h;if(!a.h)return k.return();f.uri&&!a.l.includes(f.uri)&&a.l.unshift(f.uri);var l=f.uri,m=f.data,n=a.g.mss.manifestPreprocessor;if(n!=jm){ld("manifest.mss.manifestPreprocessor configuration","Please Use manifest.mss.manifestPreprocessorTXml instead.");m=Yt(m,"SmoothStreamingMedia");if(!m)throw new R(2,4,4046,
1067
1068
  l);n(m);m=pc(m.outerHTML)}var r=Tg(m,"SmoothStreamingMedia");if(!r)throw new R(2,4,4046,l);l=a.g.mss.manifestPreprocessorTXml;l!=km&&l(r);a.i||(a.i=new qk(null,0));if(l=hh(r,"IsLive",th,!1))throw new R(2,4,4047);a.i.gd(!l);n=hh(r,"TimeScale",rh,1E7);m=hh(r,"DVRWindowLength",rh);l&&(0===m||isNaN(m))&&(m=Infinity);var p=hh(r,"CanSeek",th,!1);0===m&&p&&(m=Infinity);p=null;m&&0<m&&(p=m/n);l&&!isNaN(a.g.availabilityWindowOverride)&&(p=a.g.availabilityWindowOverride);null==p&&(p=Infinity);a.i.$e(p);m=hh(r,
1068
- "Duration",rh,Infinity);l||a.i.xb(m/n);l={variants:[],textStreams:[],timescale:n,duration:m/n};p=ah(r,"Protection");var t;n=a.g.mss.keySystemsBySystemId;m=[];p=u(p);for(t=p.next();!t.done;t=p.next())m=m.concat(ah(t.value,"ProtectionHeader"));if(m.length){p=[];for(t=0;t<m.length;t++){var x=m[t],w=x.attributes.SystemID.toLowerCase(),B=n[w];if(B){var v=pw(x);if(v)a:{v=u(dh(v,"DATA"));for(var A=v.next();!A.done;A=v.next())if(A=eh(A.value,"KID")){v=wc(bh(A));v=new Uint8Array([v[3],v[2],v[1],v[0],v[5],
1069
- v[4],v[7],v[6]].concat(y(v.slice(8))));v=yc(v);break a}v=null}else v=null;A=wc(bh(x));w=xc(w.replace(/-/g,""));w=[{initData:Sg(A,w,new Set,0),initDataType:"cenc",keyId:v}];w=Bc(B,"cenc",w);v&&w.keyIds.add(v);if(B=Dw.get(B))w.licenseServerUri=B(x);p.push(w)}}n=p}else n=[];t=n;p=[];n=[];m=[];r=ah(r,"StreamIndex");r=u(r);for(x=r.next();!x.done;x=r.next()){x=x.value;B=ah(x,"QualityLevel");w=l.timescale;v=l.duration;A=ah(x,"c");for(var z=[],C=0,E=0;E<A.length;++E){var H=A[E],J=A[E+1],F=hh(H,"t",rh),I=
1070
- hh(H,"d",rh);H=hh(H,"r",ph);if(!I)break;F=null!=F?F:C;H=H||0;if(0>H)if(J){J=hh(J,"t",rh);if(null==J)break;else if(F>=J)break;H=Math.ceil((J-F)/I)-1}else{if(Infinity==v)break;else if(F/w>=v)break;H=Math.ceil((v*w-F)/I)-1}for(J=0;J<=H;++J)C=F+I,z.push({start:F/w,end:C/w,Pg:F}),F=C}w=z;B=u(B);for(v=B.next();!v.done;v=B.next())(v=gx(a,x,v.value,w,t,l))&&("audio"!=v.type||a.g.disableAudio?"video"!=v.type||a.g.disableVideo?v.type!=Gc||a.g.disableText||m.push(v):n.push(v):p.push(v))}r=[];p=u(0<p.length?
1071
- p:[null]);for(t=p.next();!t.done;t=p.next())for(t=t.value,x=u(0<n.length?n:[null]),v=x.next();!v.done;v=x.next())B=r,w=B.push,v=v.value,A=0,t&&t.bandwidth&&0<t.bandwidth&&(A+=t.bandwidth),v&&v.bandwidth&&0<v.bandwidth&&(A+=v.bandwidth),v={id:a.u++,language:t?t.language:"und",disabledUntilTime:0,primary:!!t&&t.primary||!!v&&v.primary,audio:t,video:v,bandwidth:A,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},w.call(B,v);l.variants=r;l.textStreams=m;a.j?(a.j.variants=l.variants,a.j.textStreams=
1069
+ "Duration",rh,Infinity);l||a.i.xb(m/n);l={variants:[],textStreams:[],timescale:n,duration:m/n};p=ah(r,"Protection");var t;n=a.g.mss.keySystemsBySystemId;m=[];p=u(p);for(t=p.next();!t.done;t=p.next())m=m.concat(ah(t.value,"ProtectionHeader"));if(m.length){p=[];for(t=0;t<m.length;t++){var y=m[t],x=y.attributes.SystemID.toLowerCase(),A=n[x];if(A){var v=pw(y);if(v)a:{v=u(dh(v,"DATA"));for(var B=v.next();!B.done;B=v.next())if(B=eh(B.value,"KID")){v=wc(bh(B));v=new Uint8Array([v[3],v[2],v[1],v[0],v[5],
1070
+ v[4],v[7],v[6]].concat(w(v.slice(8))));v=yc(v);break a}v=null}else v=null;B=wc(bh(y));x=xc(x.replace(/-/g,""));x=[{initData:Sg(B,x,new Set,0),initDataType:"cenc",keyId:v}];x=Bc(A,"cenc",x);v&&x.keyIds.add(v);if(A=Dw.get(A))x.licenseServerUri=A(y);p.push(x)}}n=p}else n=[];t=n;p=[];n=[];m=[];r=ah(r,"StreamIndex");r=u(r);for(y=r.next();!y.done;y=r.next()){y=y.value;A=ah(y,"QualityLevel");x=l.timescale;v=l.duration;B=ah(y,"c");for(var z=[],C=0,E=0;E<B.length;++E){var H=B[E],J=B[E+1],F=hh(H,"t",rh),I=
1071
+ hh(H,"d",rh);H=hh(H,"r",ph);if(!I)break;F=null!=F?F:C;H=H||0;if(0>H)if(J){J=hh(J,"t",rh);if(null==J)break;else if(F>=J)break;H=Math.ceil((J-F)/I)-1}else{if(Infinity==v)break;else if(F/x>=v)break;H=Math.ceil((v*x-F)/I)-1}for(J=0;J<=H;++J)C=F+I,z.push({start:F/x,end:C/x,Pg:F}),F=C}x=z;A=u(A);for(v=A.next();!v.done;v=A.next())(v=gx(a,y,v.value,x,t,l))&&("audio"!=v.type||a.g.disableAudio?"video"!=v.type||a.g.disableVideo?v.type!=Gc||a.g.disableText||m.push(v):n.push(v):p.push(v))}r=[];p=u(0<p.length?
1072
+ p:[null]);for(t=p.next();!t.done;t=p.next())for(t=t.value,y=u(0<n.length?n:[null]),v=y.next();!v.done;v=y.next())A=r,x=A.push,v=v.value,B=0,t&&t.bandwidth&&0<t.bandwidth&&(B+=t.bandwidth),v&&v.bandwidth&&0<v.bandwidth&&(B+=v.bandwidth),v={id:a.u++,language:t?t.language:"und",disabledUntilTime:0,primary:!!t&&t.primary||!!v&&v.primary,audio:t,video:v,bandwidth:B,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},x.call(A,v);l.variants=r;l.textStreams=m;a.j?(a.j.variants=l.variants,a.j.textStreams=
1072
1073
  l.textStreams,a.h.filter(a.j)):(a.j={presentationTimeline:a.i,variants:l.variants,textStreams:l.textStreams,imageStreams:[],offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.mss.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"MSS",serviceDescription:null},a.i.Ge());Promise.resolve();g=Date.now();h=(g-d)/1E3;a.F.sample(1,h);G(k)})}
1073
- function gx(a,b,c,d,e,f){var g=b.attributes.Type;if("audio"!==g&&"video"!==g&&"text"!==g)return Ua("Ignoring unrecognized type:",g),null;var h=b.attributes.Language,k=a.u++,l=hh(c,"Bitrate",qh),m=hh(c,"MaxWidth",qh),n=hh(c,"MaxHeight",qh),r=hh(c,"Channels",qh),p=hh(c,"SamplingRate",qh),t=f.duration;d.length&&(t=d[d.length-1].end-d[0].start);var x=a.i.getDuration();a.i.xb(Math.min(t,x));var w={id:k,originalId:b.attributes.Name||String(k),groupId:null,createSegmentIndex:function(){return Promise.resolve()},
1074
+ function gx(a,b,c,d,e,f){var g=b.attributes.Type;if("audio"!==g&&"video"!==g&&"text"!==g)return Ua("Ignoring unrecognized type:",g),null;var h=b.attributes.Language,k=a.u++,l=hh(c,"Bitrate",qh),m=hh(c,"MaxWidth",qh),n=hh(c,"MaxHeight",qh),r=hh(c,"Channels",qh),p=hh(c,"SamplingRate",qh),t=f.duration;d.length&&(t=d[d.length-1].end-d[0].start);var y=a.i.getDuration();a.i.xb(Math.min(t,y));var x={id:k,originalId:b.attributes.Name||String(k),groupId:null,createSegmentIndex:function(){return Promise.resolve()},
1074
1075
  closeSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:"",codecs:"",frameRate:void 0,pixelAspectRatio:void 0,bandwidth:l||0,width:m||void 0,height:n||void 0,kind:"",encrypted:0<e.length,drmInfos:e,keyIds:new Set,language:Mc(h||"und"),originalLanguage:h,label:"",type:"",primary:!1,trickModeVideo:null,emsgSchemeIdUris:[],roles:[],forced:!1,channelsCount:r,audioSamplingRate:p,spatialAudio:!1,closedCaptions:null,hdr:void 0,videoLayout:void 0,tilesLayout:void 0,matchedStreams:[],
1075
- mssPrivateData:{duration:t,timescale:f.timescale,codecPrivateData:null},accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set};if(e=b.attributes.Subtype)(e=hx[e])&&w.roles.push(e),"main"===e&&(w.primary=!0);e=c.attributes.FourCC;if(null===e||""===e)e=b.attributes.FourCC;if(!e)if("audio"===g)e="AAC";else if("video"===g)return Ua('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),null;if(!ix.includes(e.toUpperCase()))return Ua("Codec not supported:",
1076
- e),null;c=jx(c,g,e,w);w.mssPrivateData.codecPrivateData=c;switch(g){case "audio":if(!c)return Ua("Quality unsupported without CodecPrivateData",g),null;w.type="audio";w.mimeType="mss/audio/mp4";w.codecs=kx(e,c);break;case "video":if(!c)return Ua("Quality unsupported without CodecPrivateData",g),null;w.type="video";w.mimeType="mss/video/mp4";w.codecs=lx(c);break;case "text":if(w.type=Gc,w.mimeType="application/mp4","TTML"===e||"DFXP"===e)w.codecs="stpp"}w.fullMimeTypes.add(ie(w.mimeType,w.codecs));
1077
- w.createSegmentIndex=function(){if(w.segmentIndex)return Promise.resolve();if(a.m.has(w.id))var B=a.m.get(w.id);else B=[],"video"==w.type&&(B=w.mssPrivateData.codecPrivateData.split("00000001").slice(1)),B={id:w.id,type:w.type,codecs:w.codecs,encrypted:w.encrypted,timescale:w.mssPrivateData.timescale,duration:w.mssPrivateData.duration,pb:B,wa:new Uint8Array([]),Ea:new Uint8Array([]),Oa:0,Qa:0,data:null,stream:w},B=Kw(new Ew([B])),a.m.set(w.id,B);B=mx(a,new yi(function(){return[]},0,null,null,void 0,
1078
- B),w,b,d);w.segmentIndex=new Mk(B);return Promise.resolve()};w.closeSegmentIndex=function(){w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null)};return w}
1076
+ mssPrivateData:{duration:t,timescale:f.timescale,codecPrivateData:null},accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set};if(e=b.attributes.Subtype)(e=hx[e])&&x.roles.push(e),"main"===e&&(x.primary=!0);e=c.attributes.FourCC;if(null===e||""===e)e=b.attributes.FourCC;if(!e)if("audio"===g)e="AAC";else if("video"===g)return Ua('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),null;if(!ix.includes(e.toUpperCase()))return Ua("Codec not supported:",
1077
+ e),null;c=jx(c,g,e,x);x.mssPrivateData.codecPrivateData=c;switch(g){case "audio":if(!c)return Ua("Quality unsupported without CodecPrivateData",g),null;x.type="audio";x.mimeType="mss/audio/mp4";x.codecs=kx(e,c);break;case "video":if(!c)return Ua("Quality unsupported without CodecPrivateData",g),null;x.type="video";x.mimeType="mss/video/mp4";x.codecs=lx(c);break;case "text":if(x.type=Gc,x.mimeType="application/mp4","TTML"===e||"DFXP"===e)x.codecs="stpp"}x.fullMimeTypes.add(ie(x.mimeType,x.codecs));
1078
+ x.createSegmentIndex=function(){if(x.segmentIndex)return Promise.resolve();if(a.m.has(x.id))var A=a.m.get(x.id);else A=[],"video"==x.type&&(A=x.mssPrivateData.codecPrivateData.split("00000001").slice(1)),A={id:x.id,type:x.type,codecs:x.codecs,encrypted:x.encrypted,timescale:x.mssPrivateData.timescale,duration:x.mssPrivateData.duration,pb:A,wa:new Uint8Array([]),Ea:new Uint8Array([]),Oa:0,Qa:0,data:null,stream:x},A=Kw(new Ew([A])),a.m.set(x.id,A);A=mx(a,new yi(function(){return[]},0,null,null,void 0,
1079
+ A),x,b,d);x.segmentIndex=new Mk(A);return Promise.resolve()};x.closeSegmentIndex=function(){x.segmentIndex&&(x.segmentIndex.release(),x.segmentIndex=null)};return x}
1079
1080
  function jx(a,b,c,d){if(a=a.attributes.CodecPrivateData)return a;if("audio"!==b)return null;b=d.channelsCount||2;a=d.audioSamplingRate||44100;var e={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};d=e[a];if("AACH"===c)return c=new Uint8Array(4),a=e[2*a],c[0]=40|d>>1,c[1]=d<<7|b<<3|a>>1,c[2]=a<<7|8,c[3]=0,b=new Uint16Array(2),b[0]=(c[0]<<8)+c[1],b[1]=(c[2]<<8)+c[3],b[0].toString(16)+b[1].toString(16);c=new Uint8Array(2);c[0]=16|d>>1;c[1]=d<<7|b<<3;
1080
1081
  b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function kx(a,b){var c=0;"AACH"===a&&(c=5);b?0===c&&(c=(parseInt(b.substr(0,2),16)&248)>>3):(c=2,"AACH"===a&&(c=5));return"mp4a.40."+c}function lx(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""}
1081
1082
  function mx(a,b,c,d,e){var f=d.attributes.Url.replace("{bitrate}",String(c.bandwidth));d=[];var g={};e=u(e);for(var h=e.next();!h.done;g={ud:g.ud},h=e.next())g.ud=h.value,d.push(new Ai(g.ud.start,g.ud.end,function(k){return function(){return Ac(a.l,[f.replace("{start time}",String(k.ud.Pg))])}}(g),0,null,b,0,0,c.mssPrivateData.duration));return d}N("shaka.mss.MssParser",dx);var ix="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),hx={CAPT:"main",SUBT:"alternate",DESC:"main"};
1082
- ti["application/vnd.ms-sstr+xml"]=function(){return new dx};function nx(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=oc(b)}catch(g){}throw new R(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function ox(){}function px(a,b,c,d,e){var f=new qx;Bg(b.headers).forEach(function(l,m){f.append(m,l)});var g=new rx,h={$g:!1,Xh:!1};a=sx(a,c,{body:b.body||void 0,headers:f,method:b.method,signal:g.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},h,d,e,b.streamDataCallback);a=new eg(a,function(){h.$g=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new Ob(function(){h.Xh=!0;g.abort()});k.V(b/1E3);a.finally(function(){k.stop()})}return a}
1083
- function sx(a,b,c,d,e,f,g){var h,k,l,m,n,r,p,t,x,w,B,v,A;return L(function(z){switch(z.g){case 1:return h=tx,k=ux,r=n=0,p=Date.now(),ra(z,2),D(z,h(a,c),4);case 4:l=z.h;f(vx(l.headers));if("HEAD"==c.method){z.D(5);break}t=l.clone().body.getReader();w=(x=l.headers.get("Content-Length"))?parseInt(x,10):0;B=function(C){function E(){var H,J;return L(function(F){switch(F.g){case 1:return ra(F,2),D(F,t.read(),4);case 4:H=F.h;ta(F,3);break;case 2:return ua(F),F.return();case 3:if(H.done){F.D(5);break}n+=
1084
- H.value.byteLength;if(!g){F.D(5);break}return D(F,g(H.value),5);case 5:J=Date.now();if(100<J-p||H.done)e(J-p,n-r,w-n),r=n,p=J;H.done?C.close():(C.enqueue(H.value),E());G(F)}})}E()};new k({start:B});return D(z,l.arrayBuffer(),6);case 6:m=z.h;case 5:ta(z,3);break;case 2:v=ua(z);if(d.$g)throw new R(1,1,7001,a,b);if(d.Xh)throw new R(1,1,1003,a,b);throw new R(1,1,1002,a,v,b);case 3:return A=vx(l.headers),z.return(nx(A,m,l.status,a,l.url,b))}})}
1083
+ ti["application/vnd.ms-sstr+xml"]=function(){return new dx};function nx(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=oc(b)}catch(g){}throw new R(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function ox(){}function px(a,b,c,d,e){var f=new qx;Bg(b.headers).forEach(function(l,m){f.append(m,l)});var g=new rx,h={bh:!1,Zh:!1};a=sx(a,c,{body:b.body||void 0,headers:f,method:b.method,signal:g.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},h,d,e,b.streamDataCallback);a=new eg(a,function(){h.bh=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new Ob(function(){h.Zh=!0;g.abort()});k.V(b/1E3);a.finally(function(){k.stop()})}return a}
1084
+ function sx(a,b,c,d,e,f,g){var h,k,l,m,n,r,p,t,y,x,A,v,B;return L(function(z){switch(z.g){case 1:return h=tx,k=ux,r=n=0,p=Date.now(),ra(z,2),D(z,h(a,c),4);case 4:l=z.h;f(vx(l.headers));if("HEAD"==c.method){z.B(5);break}t=l.clone().body.getReader();x=(y=l.headers.get("Content-Length"))?parseInt(y,10):0;A=function(C){function E(){var H,J;return L(function(F){switch(F.g){case 1:return ra(F,2),D(F,t.read(),4);case 4:H=F.h;ta(F,3);break;case 2:return ua(F),F.return();case 3:if(H.done){F.B(5);break}n+=
1085
+ H.value.byteLength;if(!g){F.B(5);break}return D(F,g(H.value),5);case 5:J=Date.now();if(100<J-p||H.done)e(J-p,n-r,x-n),r=n,p=J;H.done?C.close():(C.enqueue(H.value),E());G(F)}})}E()};new k({start:A});return D(z,l.arrayBuffer(),6);case 6:m=z.h;case 5:ta(z,3);break;case 2:v=ua(z);if(d.bh)throw new R(1,1,7001,a,b);if(d.Zh)throw new R(1,1,1003,a,b);throw new R(1,1,1002,a,v,b);case 3:return B=vx(l.headers),z.return(nx(B,m,l.status,a,l.url,b))}})}
1085
1086
  function vx(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}function wx(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||!window.AbortController)}N("shaka.net.HttpFetchPlugin",ox);ox.isSupported=wx;ox.parse=px;var tx=window.fetch,rx=window.AbortController,ux=window.ReadableStream,qx=window.Headers;
1086
1087
  wx()&&(og("http",px,2,!0),og("https",px,2,!0),og("blob",px,2,!0));function xx(){}
1087
- function yx(a,b,c,d,e){var f=new zx,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new R(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var p=Ax(f);e(p);n=!0}};f.onload=function(){var p=Ax(f),t=f.response;try{var x=nx(p,t,f.status,a,f.responseURL,c);l(x)}catch(w){m(w)}};f.onerror=function(p){m(new R(1,1,1002,a,p,
1088
+ function yx(a,b,c,d,e){var f=new zx,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new R(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var p=Ax(f);e(p);n=!0}};f.onload=function(){var p=Ax(f),t=f.response;try{var y=nx(p,t,f.status,a,f.responseURL,c);l(y)}catch(x){m(x)}};f.onerror=function(p){m(new R(1,1,1002,a,p,
1088
1089
  c))};f.ontimeout=function(){m(new R(1,1,1003,a,c))};f.onprogress=function(p){var t=Date.now();if(100<t-g||p.lengthComputable&&p.loaded==p.total)d(t-g,p.loaded-h,p.total-p.loaded),h=p.loaded,g=t};for(var r in b.headers)f.setRequestHeader(r.toLowerCase(),b.headers[r]);f.send(b.body)});return new eg(k,function(){f.abort();return Promise.resolve()})}
1089
1090
  function Ax(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=u(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}N("shaka.net.HttpXHRPlugin",xx);xx.parse=yx;var zx=window.XMLHttpRequest;og("http",yx,1,!0);og("https",yx,1,!0);og("blob",yx,1,!0);function Bx(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Cx(a){return a.ka().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Ta+":"+a.za}function Dx(a,b){return ql(a.g.ka(),a.g.Ta,a.g.za,b.streaming.retryParameters)};function Ex(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function Fx(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}Ex.prototype.close=function(a,b){if(this.g.has(a)){var c=this.g.get(a);this.g.delete(a);this.j+=c;this.h+=b}};function Gx(a){var b=this;this.o=a;this.j=new Map;this.i=new zg(function(){return Hx(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new Ex}Gx.prototype.destroy=function(){return this.i.destroy()};function Ix(a,b,c){a.m=b;a.l=c}function Hx(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
1090
- function Jx(a,b,c,d,e,f){Ag(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,r,p;return L(function(t){if(1==t.g)return D(t,Kx(a,c),2);h=t.h;if(a.i.g)throw new R(2,9,7001);if(e)for(m in k=Fb(h),l=new Rg(k),l.data)n=Number(m),r=l.data[n],p=l.g[n],a.l(r,p);a.g.close(d,h.byteLength);var x=a.g;a.m(0==x.i?0:x.j/x.i,a.g.h);return t.return(f(h))})});a.j.set(b,g)}function Lx(a){return L(function(b){return 1==b.g?D(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
1091
+ function Jx(a,b,c,d,e,f){Ag(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,r,p;return L(function(t){if(1==t.g)return D(t,Kx(a,c),2);h=t.h;if(a.i.g)throw new R(2,9,7001);if(e)for(m in k=Fb(h),l=new Rg(k),l.data)n=Number(m),r=l.data[n],p=l.g[n],a.l(r,p);a.g.close(d,h.byteLength);var y=a.g;a.m(0==y.i?0:y.j/y.i,a.g.h);return t.return(f(h))})});a.j.set(b,g)}function Lx(a){return L(function(b){return 1==b.g?D(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
1091
1092
  function Kx(a,b){var c,d,e,f;return L(function(g){if(1==g.g)return c=xg,d=a.o.request(c,b),e=function(){return d.abort()},a.h.push(e),D(g,d.promise,2);f=g.h;wd(a.h,e);return g.return(f.data)})};function Mx(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new dg;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Mx.prototype.abort=function(){var a=this;return L(function(b){if(1==b.g){try{a.i.abort()}catch(c){}ra(b,2);return D(b,a.g,4)}if(2!=b.g)return ta(b,0);ua(b);G(b)})};
1092
- function Nx(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return L(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return D(g,b(f.key,f.value,f),2)}f.continue();G(g)})}})}Mx.prototype.store=function(){return this.h};Mx.prototype.promise=function(){return this.g};function Ox(a){this.h=a;this.g=[]}Ox.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Px(a,b){return Qx(a,b,"readwrite")}function Qx(a,b,c){c=a.h.transaction([b],c);var d=new Mx(c,b);a.g.push(d);d.promise().then(function(){wd(a.g,d)},function(){wd(a.g,d)});return d};function Rx(a,b,c){this.h=new Ox(a);this.i=b;this.g=c}q=Rx.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return Sx(this.i)};q.removeSegments=function(a,b){return Tx(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return L(function(d){if(1==d.g)return D(d,Ux(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.eh(e)}))})};q.addManifests=function(){return Sx(this.g)};
1093
+ function Nx(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return L(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return D(g,b(f.key,f.value,f),2)}f.continue();G(g)})}})}Mx.prototype.store=function(){return this.h};Mx.prototype.promise=function(){return this.g};function Ox(a){this.h=a;this.g=[]}Ox.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Px(a,b){return Qx(a,b,"readwrite")}function Qx(a,b,c){c=a.h.transaction([b],c);var d=new Mx(c,b);a.g.push(d);d.promise().then(function(){wd(a.g,d)},function(){wd(a.g,d)});return d};function Rx(a,b,c){this.h=new Ox(a);this.i=b;this.g=c}q=Rx.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return Sx(this.i)};q.removeSegments=function(a,b){return Tx(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return L(function(d){if(1==d.g)return D(d,Ux(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.gh(e)}))})};q.addManifests=function(){return Sx(this.g)};
1093
1094
  q.updateManifest=function(){return Promise.reject(new R(2,9,9016,"Cannot modify values in "+this.g))};function Vx(a,b,c){a=Px(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}q.updateManifestExpiration=function(a,b){var c=Px(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};q.removeManifests=function(a,b){return Tx(this,this.g,a,b)};
1094
- q.getManifests=function(a){var b=this,c;return L(function(d){if(1==d.g)return D(d,Ux(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Dd(e)})))})};q.getAllManifests=function(){var a=this,b,c;return L(function(d){return 1==d.g?(b=Qx(a.h,a.g,"readonly"),c=new Map,D(d,Nx(b,function(e,f){var g;return L(function(h){if(1==h.g)return D(h,a.Dd(f),2);g=h.h;c.set(e,g);G(h)})}),2)):3!=d.g?D(d,b.promise(),3):d.return(c)})};q.eh=function(a){return a};q.Dd=function(a){return Promise.resolve(a)};
1095
+ q.getManifests=function(a){var b=this,c;return L(function(d){if(1==d.g)return D(d,Ux(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Dd(e)})))})};q.getAllManifests=function(){var a=this,b,c;return L(function(d){return 1==d.g?(b=Qx(a.h,a.g,"readonly"),c=new Map,D(d,Nx(b,function(e,f){var g;return L(function(h){if(1==h.g)return D(h,a.Dd(f),2);g=h.h;c.set(e,g);G(h)})}),2)):3!=d.g?D(d,b.promise(),3):d.return(c)})};q.gh=function(a){return a};q.Dd=function(a){return Promise.resolve(a)};
1095
1096
  function Sx(a){return Promise.reject(new R(2,9,9011,"Cannot add new value to "+a))}q.add=function(a,b){var c=this,d,e,f,g,h,k,l;return L(function(m){if(1==m.g){d=Px(c.h,a);e=d.store();f=[];g={};h=u(b);for(k=h.next();!k.done;g={ie:g.ie},k=h.next())l=k.value,g.ie=e.add(l),g.ie.onsuccess=function(n){return function(){f.push(n.ie.result)}}(g);return D(m,d.promise(),2)}return m.return(f)})};
1096
1097
  function Tx(a,b,c,d){a=Px(a.h,b);b=a.store();var e={};c=u(c);for(var f=c.next();!f.done;e={fe:e.fe},f=c.next())e.fe=f.value,b.delete(e.fe).onsuccess=function(g){return function(){return d(g.fe)}}(e);return a.promise()}
1097
1098
  function Ux(a,b,c){var d,e,f,g,h,k,l;return L(function(m){if(1==m.g){d=Qx(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=u(c);for(l=k.next();!l.done;h={sd:h.sd,pd:h.pd},l=k.next())h.pd=l.value,h.sd=e.get(h.pd),h.sd.onsuccess=function(n){return function(){void 0==n.sd.result&&g.push(n.pd);f[n.pd]=n.sd.result}}(h);return D(m,d.promise(),2)}if(g.length)throw new R(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function Wx(a){this.g=new Ox(a)}Wx.prototype.destroy=function(){return this.g.destroy()};Wx.prototype.getAll=function(){var a=this,b,c;return L(function(d){return 1==d.g?(b=Qx(a.g,"session-ids","readonly"),c=[],D(d,Nx(b,function(e,f){c.push(f)}),2)):3!=d.g?D(d,b.promise(),3):d.return(c)})};Wx.prototype.add=function(a){var b=Px(this.g,"session-ids"),c=b.store();a=u(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
1098
1099
  Wx.prototype.remove=function(a){var b=this,c;return L(function(d){return 1==d.g?(c=Px(b.g,"session-ids"),D(d,Nx(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):D(d,c.promise(),0)})};function Xx(){this.g=new Map}Xx.prototype.destroy=function(){for(var a=[],b=u(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};Xx.prototype.init=function(){var a=this;Yx.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=u(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
1099
1100
  function Zx(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Ab:d,Va:f},Va:e})})});if(b)return b;throw new R(2,9,9013,"Could not find a cell that supports add-operations");}function $x(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Ab:d,Va:f},e)})})}
1100
1101
  function ay(a,b,c){a=a.g.get(b);if(!a)throw new R(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new R(2,9,9013,"Could not find cell with name "+c);return b}function by(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function cy(a){var b=Array.from(a.g.keys());if(!b.length)throw new R(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
1101
- function dy(a){var b,c,d;return L(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=Yx,d.forEach(function(f){(f=f())&&b.push(f)})),D(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.D(0):D(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function ey(a,b){Yx.set(a,b)}N("shaka.offline.StorageMuxer",Xx);Xx.unregister=function(a){Yx.delete(a)};Xx.register=ey;Xx.prototype.destroy=Xx.prototype.destroy;var Yx=new Map;function fy(){Rx.apply(this,arguments)}na(fy,Rx);fy.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return L(function(g){d=Px(c.h,c.g);e=d.store();f=new dg;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new R(2,9,9012,"Could not find values for "+a))};return D(g,Promise.all([d.promise(),f]),0)})};
1102
+ function dy(a){var b,c,d;return L(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=Yx,d.forEach(function(f){(f=f())&&b.push(f)})),D(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.B(0):D(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function ey(a,b){Yx.set(a,b)}N("shaka.offline.StorageMuxer",Xx);Xx.unregister=function(a){Yx.delete(a)};Xx.register=ey;Xx.prototype.destroy=Xx.prototype.destroy;var Yx=new Map;function fy(){Rx.apply(this,arguments)}na(fy,Rx);fy.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return L(function(g){d=Px(c.h,c.g);e=d.store();f=new dg;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new R(2,9,9012,"Could not find values for "+a))};return D(g,Promise.all([d.promise(),f]),0)})};
1102
1103
  fy.prototype.Dd=function(a){var b,c,d,e,f,g;return L(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c)d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime,e=d-a.periods[c].startTime,f=gy(a.periods[c],e),b.push(f);return D(h,xt(b),2)}g=h.h;return h.return({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})};
1103
1104
  function gy(a,b){hy(a);for(var c=u(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return iy(e,a.startTime,b)})}
1104
1105
  function iy(a,b,c){var d=a.initSegmentUri?jy(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,initSegmentKey:d,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(g){var h=
1105
- jy(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:"",mimeType:null,codecs:null}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}}fy.prototype.eh=function(a){return{data:a.data}};
1106
+ jy(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:"",mimeType:null,codecs:null}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}}fy.prototype.gh=function(a){return{data:a.data}};
1106
1107
  function jy(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new R(2,9,9004,"Could not parse uri "+a);}
1107
1108
  function hy(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=u(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=u(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=u(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
1108
1109
  f=u(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=u(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=u(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function ky(){Rx.apply(this,arguments)}na(ky,Rx);
@@ -1112,9 +1113,9 @@ function ly(a,b,c){return{id:a.id,originalId:a.originalId,groupId:null,primary:a
1112
1113
  appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,dataKey:d.dataKey,tilesLayout:"",mimeType:null,codecs:null}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}};function my(){Rx.apply(this,arguments)}na(my,Rx);q=my.prototype;q.hasFixedKeySpace=function(){return!1};q.addSegments=function(a){return this.add(this.i,a)};q.addManifests=function(a){return this.add(this.g,a)};q.updateManifest=function(a,b){return Vx(this,a,b)};q.Dd=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function ny(){this.m=this.j=this.i=this.h=this.g=this.l=null}q=ny.prototype;
1113
1114
  q.init=function(){var a=this,b=new dg,c=!1,d=new Ob(function(){c=!0;b.reject(new R(2,9,9017))});d.V(5);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){if(!c){var f=e.result;a.l=f;var g=f.objectStoreNames;g=g.contains("manifest")&&g.contains("segment")?new fy(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new ky(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
1114
1115
  new ky(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new my(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new Wx(f):null;a.m=f;d.stop();b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=u(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};e.onerror=function(f){c||(b.reject(new R(2,
1115
- 9,9001,e.error)),d.stop(),f.preventDefault())};return b};q.destroy=function(){var a=this;return L(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return D(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return D(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return D(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return D(b,a.j.destroy(),8);case 8:if(!a.m){b.D(10);break}return D(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),G(b)}})};
1116
+ 9,9001,e.error)),d.stop(),f.preventDefault())};return b};q.destroy=function(){var a=this;return L(function(b){switch(b.g){case 1:if(!a.g){b.B(2);break}return D(b,a.g.destroy(),2);case 2:if(!a.h){b.B(4);break}return D(b,a.h.destroy(),4);case 4:if(!a.i){b.B(6);break}return D(b,a.i.destroy(),6);case 6:if(!a.j){b.B(8);break}return D(b,a.j.destroy(),8);case 8:if(!a.m){b.B(10);break}return D(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),G(b)}})};
1116
1117
  q.getCells=function(){var a=new Map;this.g&&a.set("v1",this.g);this.h&&a.set("v2",this.h);this.i&&a.set("v3",this.i);this.j&&a.set("v5",this.j);return a};q.getEmeSessionCell=function(){return this.m};
1117
- q.erase=function(){var a=this;return L(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return D(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return D(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return D(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return D(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),D(b,oy(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,D(b,a.init(),0)}})};
1118
+ q.erase=function(){var a=this;return L(function(b){switch(b.g){case 1:if(!a.g){b.B(2);break}return D(b,a.g.destroy(),2);case 2:if(!a.h){b.B(4);break}return D(b,a.h.destroy(),4);case 4:if(!a.i){b.B(6);break}return D(b,a.i.destroy(),6);case 6:if(!a.j){b.B(8);break}return D(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),D(b,oy(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,D(b,a.init(),0)}})};
1118
1119
  function oy(){var a=new dg,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new R(2,9,9001,b.error));c.preventDefault()};return a}ey("idb",function(){return Zb()||Tb()||!window.indexedDB?null:new ny});function py(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}py.prototype.Ab=function(){return this.i};py.prototype.Va=function(){return this.h};py.prototype.key=function(){return this.l};py.prototype.toString=function(){return this.j};
1119
1120
  function qy(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(null==a)return null;var b=a[1];if("manifest"!=b&&"segment"!=b)return null;var c=a[2];if(!c)return null;var d=a[3];return d&&null!=b?new py(b,c,d,Number(a[4])):null};function ry(a,b){this.h=a;this.g=b}
1120
1121
  function sy(a,b){var c=new qk(null,0);c.xb(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=ty(a,d,e,c);e=b.streams.filter(function(l){return l.type==Gc}).map(function(l){return uy(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return uy(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=u(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
@@ -1126,24 +1127,24 @@ null,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,emsgSchemeI
1126
1127
  function vy(a,b,c){var d=new py("segment",a.h,a.g,b.dataKey);a=new Ai(b.startTime,b.endTime,function(){return[d.toString()]},0,null,null!=b.initSegmentKey?wy(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"");a.mimeType=b.mimeType||c.mimeType||"";a.codecs=b.codecs||c.codecs||"";return a}function wy(a,b){var c=new py("segment",a.h,a.g,b);return new yi(function(){return[c.toString()]},0,null)};function xy(){this.g=null}q=xy.prototype;q.configure=function(){};
1127
1128
  q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:d=qy(a);c.g=d;if(null==d||"manifest"!=d.g)throw new R(2,1,9004,a);e=new Xx;sa(m,2);return D(m,e.init(),4);case 4:return D(m,ay(e,d.Ab(),d.Va()),5);case 5:return f=m.h,D(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new ry(d.Ab(),d.Va()),l=sy(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return va(m),D(m,e.destroy(),7);case 7:wa(m,0)}})};q.stop=function(){return Promise.resolve()};
1128
1129
  q.update=function(){};
1129
- q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:return d=c.g,e=new Xx,ra(m,2,3),D(m,e.init(),5);case 5:return D(m,ay(e,d.Ab(),d.Va()),6);case 6:return f=m.h,D(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.D(3);break}return D(m,f.updateManifestExpiration(d.key(),b),3);case 3:return va(m),D(m,e.destroy(),10);case 10:wa(m,0);break;case 2:ua(m),m.D(3)}})};
1130
+ q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:return d=c.g,e=new Xx,ra(m,2,3),D(m,e.init(),5);case 5:return D(m,ay(e,d.Ab(),d.Va()),6);case 6:return f=m.h,D(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.B(3);break}return D(m,f.updateManifestExpiration(d.key(),b),3);case 3:return va(m),D(m,e.destroy(),10);case 10:wa(m,0);break;case 2:ua(m),m.B(3)}})};
1130
1131
  q.onInitialVariantChosen=function(){};q.banLocation=function(){};ti["application/x-offline-manifest"]=function(){return new xy};function yy(){}function zy(a){var b=qy(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=hg(a)):a=b&&"segment"==b.g?Ay(b.key(),b):fg(new R(2,1,9004,a));return a}
1131
- function Ay(a,b){var c=new Xx;return hg(void 0).Ma(function(){return c.init()}).Ma(function(){return ay(c,b.Ab(),b.Va())}).Ma(function(d){return d.getSegments([b.key()])}).Ma(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}N("shaka.offline.OfflineScheme",yy);yy.plugin=zy;og("offline",zy);function By(a,b,c){var d,e,f,g,h,k;return L(function(l){switch(l.g){case 1:d=[];for(var m=[],n=u(c),r=n.next();!r.done;r=n.next()){r=r.value;for(var p=!1,t=u(m),x=t.next();!x.done;x=t.next())if(x=x.value,Cy(x.info,r)){x.sessionIds.push(r.sessionId);p=!0;break}p||m.push({info:r,sessionIds:[r.sessionId]})}e=u(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=Dy(a,b,g);return D(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.D(2);break;case 4:return l.return(d)}})}
1132
+ function Ay(a,b){var c=new Xx;return hg(void 0).Ma(function(){return c.init()}).Ma(function(){return ay(c,b.Ab(),b.Va())}).Ma(function(d){return d.getSegments([b.key()])}).Ma(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}N("shaka.offline.OfflineScheme",yy);yy.plugin=zy;og("offline",zy);function By(a,b,c){var d,e,f,g,h,k;return L(function(l){switch(l.g){case 1:d=[];for(var m=[],n=u(c),r=n.next();!r.done;r=n.next()){r=r.value;for(var p=!1,t=u(m),y=t.next();!y.done;y=t.next())if(y=y.value,Cy(y.info,r)){y.sessionIds.push(r.sessionId);p=!0;break}p||m.push({info:r,sessionIds:[r.sessionId]})}e=u(m);f=e.next();case 2:if(f.done){l.B(4);break}g=f.value;h=Dy(a,b,g);return D(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.B(2);break;case 4:return l.return(d)}})}
1132
1133
  function Dy(a,b,c){var d,e;return L(function(f){switch(f.g){case 1:return d=new wh({Zb:b,onError:function(){},Pe:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),ra(f,2),d.configure(a),D(f,Eh(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:ta(f,3);break;case 2:return ua(f),D(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],D(f,Promise.all(c.sessionIds.map(function(g){return L(function(h){if(1==
1133
1134
  h.g)return ra(h,2),D(h,Qh(d,g),4);if(2!=h.g)return e.push(g),ta(h,0);ua(h);G(h)})})),6);case 6:return D(f,d.destroy(),7);case 7:return f.return(e)}})}function Cy(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&xd(a.audioCapabilities,b.audioCapabilities,c)&&xd(a.videoCapabilities,b.videoCapabilities,c)};function Ey(a,b,c){var d=b.presentationTimeline.getDuration();b=Fy(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Gy(a,b){var c=sy(new ry(a.Ab(),a.Va()),b),d=b.appMetadata||{};c=Fy(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}}
1134
- function Fy(a){var b=[],c=tf(a.variants);c=u(c);for(var d=c.next();!d.done;d=c.next())b.push(kf(d.value));a=u(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(lf(c.value));return b};function Hy(){this.g={}}function Iy(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function Jy(a,b){a.g[b.id]=b.bandwidth||2048}function Ky(a,b){a=a.g[b];null==a&&(a=0);return a};function Ly(a){var b=this;if(a&&a.constructor!=U)throw new R(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.fc()):(this.h=im(),this.g=new ng);this.i=[];this.j=[];var c=!a;this.l=new zg(function(){var d,e,f,g,h;return L(function(k){switch(k.g){case 1:return D(k,Promise.all(b.j.map(function(l){return Hx(l)})),2);case 2:d=function(){};e=[];f=u(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return D(k,Promise.all(e),3);case 3:if(!c){k.D(4);break}return D(k,b.g.destroy(),4);
1135
+ function Fy(a){var b=[],c=tf(a.variants);c=u(c);for(var d=c.next();!d.done;d=c.next())b.push(kf(d.value));a=u(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(lf(c.value));return b};function Hy(){this.g={}}function Iy(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function Jy(a,b){a.g[b.id]=b.bandwidth||2048}function Ky(a,b){a=a.g[b];null==a&&(a=0);return a};function Ly(a){var b=this;if(a&&a.constructor!=U)throw new R(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.fc()):(this.h=im(),this.g=new ng);this.i=[];this.j=[];var c=!a;this.l=new zg(function(){var d,e,f,g,h;return L(function(k){switch(k.g){case 1:return D(k,Promise.all(b.j.map(function(l){return Hx(l)})),2);case 2:d=function(){};e=[];f=u(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return D(k,Promise.all(e),3);case 3:if(!c){k.B(4);break}return D(k,b.g.destroy(),4);
1135
1136
  case 4:b.h=null,b.g=null,G(k)}})})}function My(){if(Pb())a:{var a=u(Yx.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}q=Ly.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=am(a,b));return mm(this.h,a)};q.getConfiguration=function(){var a=im();mm(a,this.h,im());return a};q.fc=function(){return this.g};
1136
- q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Gx(this.g);this.j.push(f);b=Ny(this,a,b||{},function(){var g;return L(function(h){if(1==h.g)return c?h.D(2):D(h,Gm(a,d.g,e.manifest.retryParameters),3);2!=h.g&&(c=h.h);g=si(a,c||null);return h.return(g())})},e,f);b=new eg(b,function(){return Hx(f)});b.finally(function(){wd(d.j,f)});return Oy(this,b)};
1137
- function Ny(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,t,x,w,B,v,A;return L(function(z){switch(z.g){case 1:return Py(),h=g=null,k=new Xx,n=m=l=null,ra(z,2,3),D(z,d(),5);case 5:return g=z.h,D(z,Qy(a,b,g,e),6);case 6:r=z.h;Ry(a);p=!r.presentationTimeline.U()&&!r.presentationTimeline.Ac();if(!p)throw new R(2,9,9005,b);return D(z,a.Rc(r,function(C){n=n||C},e),7);case 7:h=z.h;Ry(a);if(n)throw n;return D(z,Sy(r,h,e),8);case 8:return D(z,k.init(),9);case 9:return Ry(a),D(z,Zx(k),10);case 10:return l=z.h,Ry(a),t=Ty(h,
1138
- r,b,c,e,f),x=t.xj,w=t.Mg,D(z,l.Va.addManifests([x]),11);case 11:B=z.h;Ry(a);m=B[0];Ry(a);if(n)throw n;return D(z,Uy(a,w,m,x,f,e,l.Va,r,h),12);case 12:return Ry(a),Vy(r,x,h,e),D(z,l.Va.updateManifest(m,x),13);case 13:return Ry(a),v=new py("manifest",l.path.Ab,l.path.Va,m),z.return(Gy(v,x));case 3:return va(z),D(z,k.destroy(),14);case 14:if(!g){z.D(15);break}return D(z,g.stop(),15);case 15:if(!h){z.D(17);break}return D(z,h.destroy(),17);case 17:wa(z,0);break;case 2:A=ua(z);if(null==m){z.D(19);break}return D(z,
1139
- Wy(m),19);case 19:throw n||A;}})}
1140
- function Uy(a,b,c,d,e,f,g,h,k){var l,m,n,r,p,t,x,w,B,v;return L(function(A){switch(A.g){case 1:l={};m=0;n=function(z,C){var E,H,J,F,I,K,M;return L(function(P){if(1==P.g){E={};H=u(z);for(J=H.next();!J.done;E={qc:E.qc},J=H.next())E.qc=J.value,F=Dx(E.qc,f),I=E.qc.i,K=E.qc.h,M=function(O){return function(X){var W,Y,Da;return L(function(Ia){if(1==Ia.g)return D(Ia,g.addSegments([{data:X}]),2);W=Ia.h;Ry(a);Y=O.qc.g;Da=Cx(Y);l[Da]=W[0];m+=X.byteLength;G(Ia)})}}(E),Jx(e,E.qc.groupId,F,I,K,M);return D(P,Lx(e),
1141
- 2)}if(!C)return P.D(0);Ry(a);Vy(h,d,k,f);return D(P,g.updateManifest(c,d),0)})};r=!1;ra(A,2);if(!Xy(h)||!r||Yy(h)){A.D(4);break}return D(A,n(b.filter(function(z){return z.h}),!0),5);case 5:return Ry(a),b=b.filter(function(z){return!z.h}),p=l,t=m,l={},m=0,D(A,Zy(g,c,d,p,t,function(){return Ry(a)}),6);case 6:Ry(a);case 4:if(r){A.D(7);break}return D(A,n(b,!1),8);case 8:return Ry(a),x=l,w=m,l={},m=0,D(A,Zy(g,c,d,x,w,function(){return Ry(a)}),9);case 9:Ry(a);case 7:ta(A,0);break;case 2:return B=ua(A),
1142
- v=Object.values(l),D(A,g.removeSegments(v,function(){}),10);case 10:throw B;}})}function Wy(a){var b,c,d,e;return L(function(f){switch(f.g){case 1:return b=new Xx,D(f,b.init(),2);case 2:return D(f,Zx(b),3);case 3:return c=f.h,d=new py("manifest",c.path.Ab,c.path.Va,a),D(f,b.destroy(),4);case 4:return e=new Ly,D(f,e.remove(d.toString()),0)}})}
1143
- function Zy(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,t,x,w;return L(function(B){switch(B.g){case 1:g=!1;ra(B,2);h=!0;k=u(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=u(m.segments),r=n.next();!r.done;r=n.next())p=r.value,t=p.pendingSegmentRefId?d[p.pendingSegmentRefId]:null,null!=t&&(p.dataKey=t,p.pendingSegmentRefId=void 0),t=p.pendingInitSegmentRefId?d[p.pendingInitSegmentRefId]:null,null!=t&&(p.initSegmentKey=t,p.pendingInitSegmentRefId=void 0),p.pendingSegmentRefId&&(h=!1),p.pendingInitSegmentRefId&&
1144
- (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return D(B,a.updateManifest(b,c),4);case 4:g=!0;f();ta(B,0);break;case 2:return x=ua(B),D(B,Wy(b),5);case 5:if(g){B.D(6);break}w=Object.values(d);return D(B,a.removeSegments(w,function(){}),6);case 6:throw x;}})}
1145
- function Sy(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,x,w,B,v,A,z,C,E,H,J,F,I,K,M,P,O;return L(function(X){switch(X.g){case 1:return d={width:Infinity,height:Infinity},Qe(a,c.restrictions,d),D(X,Ue(b,a,c.offline.usePersistentLicense,c.drm.preferredKeySystems),2);case 2:e=[];f=c.preferredDecodingAttributes;g=c.preferredVideoCodecs;h=c.preferredAudioCodecs;Oe(a,g,h,f);k=u(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,e.push(kf(m));n=u(a.textStreams);for(r=n.next();!r.done;r=n.next())p=r.value,e.push(lf(p));
1146
- t=u(a.imageStreams);for(x=t.next();!x.done;x=t.next())w=x.value,e.push(mf(w));return D(X,c.offline.trackSelectionCallback(e),3);case 3:B=X.h;v=a.presentationTimeline.getDuration();A=0;z=u(B);for(C=z.next();!C.done;C=z.next())E=C.value,H=E.bandwidth*v/8,A+=H;ra(X,4);return D(X,c.offline.downloadSizeCallback(A),6);case 6:J=X.h;if(!J)throw new R(2,9,9014);ta(X,5);break;case 4:F=ua(X);if(F instanceof R)throw F;throw new R(2,9,9015);case 5:I=new Set;K=new Set;M=new Set;P=u(B);for(C=P.next();!C.done;C=
1137
+ q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Gx(this.g);this.j.push(f);b=Ny(this,a,b||{},function(){var g;return L(function(h){if(1==h.g)return c?h.B(2):D(h,Gm(a,d.g,e.manifest.retryParameters),3);2!=h.g&&(c=h.h);g=si(a,c||null);return h.return(g())})},e,f);b=new eg(b,function(){return Hx(f)});b.finally(function(){wd(d.j,f)});return Oy(this,b)};
1138
+ function Ny(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,t,y,x,A,v,B;return L(function(z){switch(z.g){case 1:return Py(),h=g=null,k=new Xx,n=m=l=null,ra(z,2,3),D(z,d(),5);case 5:return g=z.h,D(z,Qy(a,b,g,e),6);case 6:r=z.h;Ry(a);p=!r.presentationTimeline.U()&&!r.presentationTimeline.Ac();if(!p)throw new R(2,9,9005,b);return D(z,a.Rc(r,function(C){n=n||C},e),7);case 7:h=z.h;Ry(a);if(n)throw n;return D(z,Sy(r,h,e),8);case 8:return D(z,k.init(),9);case 9:return Ry(a),D(z,Zx(k),10);case 10:return l=z.h,Ry(a),t=Ty(h,
1139
+ r,b,c,e,f),y=t.xj,x=t.Mg,D(z,l.Va.addManifests([y]),11);case 11:A=z.h;Ry(a);m=A[0];Ry(a);if(n)throw n;return D(z,Uy(a,x,m,y,f,e,l.Va,r,h),12);case 12:return Ry(a),Vy(r,y,h,e),D(z,l.Va.updateManifest(m,y),13);case 13:return Ry(a),v=new py("manifest",l.path.Ab,l.path.Va,m),z.return(Gy(v,y));case 3:return va(z),D(z,k.destroy(),14);case 14:if(!g){z.B(15);break}return D(z,g.stop(),15);case 15:if(!h){z.B(17);break}return D(z,h.destroy(),17);case 17:wa(z,0);break;case 2:B=ua(z);if(null==m){z.B(19);break}return D(z,
1140
+ Wy(m),19);case 19:throw n||B;}})}
1141
+ function Uy(a,b,c,d,e,f,g,h,k){var l,m,n,r,p,t,y,x,A,v;return L(function(B){switch(B.g){case 1:l={};m=0;n=function(z,C){var E,H,J,F,I,K,M;return L(function(P){if(1==P.g){E={};H=u(z);for(J=H.next();!J.done;E={qc:E.qc},J=H.next())E.qc=J.value,F=Dx(E.qc,f),I=E.qc.i,K=E.qc.h,M=function(O){return function(X){var W,Y,Da;return L(function(Ia){if(1==Ia.g)return D(Ia,g.addSegments([{data:X}]),2);W=Ia.h;Ry(a);Y=O.qc.g;Da=Cx(Y);l[Da]=W[0];m+=X.byteLength;G(Ia)})}}(E),Jx(e,E.qc.groupId,F,I,K,M);return D(P,Lx(e),
1142
+ 2)}if(!C)return P.B(0);Ry(a);Vy(h,d,k,f);return D(P,g.updateManifest(c,d),0)})};r=!1;ra(B,2);if(!Xy(h)||!r||Yy(h)){B.B(4);break}return D(B,n(b.filter(function(z){return z.h}),!0),5);case 5:return Ry(a),b=b.filter(function(z){return!z.h}),p=l,t=m,l={},m=0,D(B,Zy(g,c,d,p,t,function(){return Ry(a)}),6);case 6:Ry(a);case 4:if(r){B.B(7);break}return D(B,n(b,!1),8);case 8:return Ry(a),y=l,x=m,l={},m=0,D(B,Zy(g,c,d,y,x,function(){return Ry(a)}),9);case 9:Ry(a);case 7:ta(B,0);break;case 2:return A=ua(B),
1143
+ v=Object.values(l),D(B,g.removeSegments(v,function(){}),10);case 10:throw A;}})}function Wy(a){var b,c,d,e;return L(function(f){switch(f.g){case 1:return b=new Xx,D(f,b.init(),2);case 2:return D(f,Zx(b),3);case 3:return c=f.h,d=new py("manifest",c.path.Ab,c.path.Va,a),D(f,b.destroy(),4);case 4:return e=new Ly,D(f,e.remove(d.toString()),0)}})}
1144
+ function Zy(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,t,y,x;return L(function(A){switch(A.g){case 1:g=!1;ra(A,2);h=!0;k=u(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=u(m.segments),r=n.next();!r.done;r=n.next())p=r.value,t=p.pendingSegmentRefId?d[p.pendingSegmentRefId]:null,null!=t&&(p.dataKey=t,p.pendingSegmentRefId=void 0),t=p.pendingInitSegmentRefId?d[p.pendingInitSegmentRefId]:null,null!=t&&(p.initSegmentKey=t,p.pendingInitSegmentRefId=void 0),p.pendingSegmentRefId&&(h=!1),p.pendingInitSegmentRefId&&
1145
+ (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return D(A,a.updateManifest(b,c),4);case 4:g=!0;f();ta(A,0);break;case 2:return y=ua(A),D(A,Wy(b),5);case 5:if(g){A.B(6);break}x=Object.values(d);return D(A,a.removeSegments(x,function(){}),6);case 6:throw y;}})}
1146
+ function Sy(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,y,x,A,v,B,z,C,E,H,J,F,I,K,M,P,O;return L(function(X){switch(X.g){case 1:return d={width:Infinity,height:Infinity},Qe(a,c.restrictions,d),D(X,Ue(b,a,c.offline.usePersistentLicense,c.drm.preferredKeySystems),2);case 2:e=[];f=c.preferredDecodingAttributes;g=c.preferredVideoCodecs;h=c.preferredAudioCodecs;Oe(a,g,h,f);k=u(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,e.push(kf(m));n=u(a.textStreams);for(r=n.next();!r.done;r=n.next())p=r.value,e.push(lf(p));
1147
+ t=u(a.imageStreams);for(y=t.next();!y.done;y=t.next())x=y.value,e.push(mf(x));return D(X,c.offline.trackSelectionCallback(e),3);case 3:A=X.h;v=a.presentationTimeline.getDuration();B=0;z=u(A);for(C=z.next();!C.done;C=z.next())E=C.value,H=E.bandwidth*v/8,B+=H;ra(X,4);return D(X,c.offline.downloadSizeCallback(B),6);case 6:J=X.h;if(!J)throw new R(2,9,9014);ta(X,5);break;case 4:F=ua(X);if(F instanceof R)throw F;throw new R(2,9,9015);case 5:I=new Set;K=new Set;M=new Set;P=u(A);for(C=P.next();!C.done;C=
1147
1148
  P.next())O=C.value,"variant"==O.type&&I.add(O.id),"text"==O.type&&K.add(O.id),"image"==O.type&&M.add(O.id);a.variants=a.variants.filter(function(W){return I.has(W.id)});a.textStreams=a.textStreams.filter(function(W){return K.has(W.id)});a.imageStreams=a.imageStreams.filter(function(W){return M.has(W.id)});$y(a);G(X)}})}
1148
1149
  function Ty(a,b,c,d,e,f){var g=Ey(c,b,d),h=e.offline.progressCallback;Ix(f,function(p,t){g.size=t;h(g,p)},function(p,t){k&&e.offline.usePersistentLicense&&l==t&&Mh(a,"cenc",p)});var k=Xy(b)&&!Yy(b),l=null;k&&(l=az.get(a.g.keySystem));for(var m=new Hy,n=u(b.textStreams),r=n.next();!r.done;r=n.next())m.g[r.value.id]=52;n=u(b.imageStreams);for(r=n.next();!r.done;r=n.next())Jy(m,r.value);r=u(b.variants);for(n=r.next();!n.done;n=r.next())Iy(m,n.value);m=bz(f,m,b,e);f=m.streams;m=m.Mg;r=a.g;n=e.offline.usePersistentLicense;
1149
1150
  r&&n&&(r.initData=[]);return{xj:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Hd(),streams:f,sessionIds:n?Wh(a):[],drmInfo:r,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},Mg:m}}function Xy(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
@@ -1151,7 +1152,7 @@ function Yy(a){return a.variants.some(function(b){return(b.video?b.video.drmInfo
1151
1152
  function dz(a,b){var c,d,e,f,g,h;return L(function(k){switch(k.g){case 1:Py();c=qy(b);if(null==c||"manifest"!=c.g)throw new R(2,9,9004,b);d=c;e=new Xx;sa(k,2);return D(k,e.init(),4);case 4:return D(k,ay(e,d.Ab(),d.Va()),5);case 5:return f=k.h,D(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],D(k,Promise.all([ez(a,h,e),fz(f,d,h)]),2);case 2:return va(k),D(k,e.destroy(),8);case 8:wa(k,0)}})}
1152
1153
  function gz(a,b){for(var c=[],d=u(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:ie(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:ie(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function ez(a,b,c){return L(function(d){return D(d,hz(a.g,a.h.drm,c,b),0)})}
1153
1154
  function fz(a,b,c){function d(){}var e=iz(c);Gy(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.Pj=function(){return cz(this,jz(this))};
1154
- function jz(a){var b,c,d,e,f,g,h,k,l,m;return L(function(n){switch(n.g){case 1:return Py(),b=a.g,c=a.h.drm,d=new Xx,e=!1,sa(n,2),D(n,d.init(),4);case 4:f=[],by(d,function(r){return f.push(r)}),g=u(f),h=g.next();case 5:if(h.done){n.D(2);break}k=h.value;return D(n,k.getAll(),8);case 8:return l=n.h,D(n,By(c,b,l),9);case 9:return m=n.h,D(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.D(5);break;case 2:return va(n),D(n,d.destroy(),11);case 11:wa(n,3);break;case 3:return n.return(!e)}})}
1155
+ function jz(a){var b,c,d,e,f,g,h,k,l,m;return L(function(n){switch(n.g){case 1:return Py(),b=a.g,c=a.h.drm,d=new Xx,e=!1,sa(n,2),D(n,d.init(),4);case 4:f=[],by(d,function(r){return f.push(r)}),g=u(f),h=g.next();case 5:if(h.done){n.B(2);break}k=h.value;return D(n,k.getAll(),8);case 8:return l=n.h,D(n,By(c,b,l),9);case 9:return m=n.h,D(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.B(5);break;case 2:return va(n),D(n,d.destroy(),11);case 11:wa(n,3);break;case 3:return n.return(!e)}})}
1155
1156
  q.list=function(){return cz(this,kz())};function kz(){var a,b,c;return L(function(d){switch(d.g){case 1:return Py(),a=[],b=new Xx,sa(d,2),D(d,b.init(),4);case 4:return c=Promise.resolve(),$x(b,function(e,f){c=c.then(function(){var g;return L(function(h){if(1==h.g)return D(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=Gy(new py("manifest",e.Ab,e.Va,l),k);a.push(k)});G(h)})})}),D(d,c,2);case 2:return va(d),D(d,b.destroy(),6);case 6:wa(d,3);break;case 3:return d.return(a)}})}
1156
1157
  function Qy(a,b,c,d){var e,f,g,h,k;return L(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return d.abr.defaultBandwidthEstimate}},
1157
1158
  c.configure(d.manifest),Ry(a),D(l,c.start(b,g),2);if(3!=l.g)return h=l.h,Ry(a),k=lz(h),D(l,Promise.all(cb(k,function(m){return m.createSegmentIndex()})),3);Ry(a);if(e)throw e;return l.return(h)})}q.Rc=function(a,b,c){var d=this,e;return L(function(f){return 1==f.g?(e=new wh({Zb:d.g,onError:b,Pe:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(c.drm),D(f,Bh(e,a.variants,c.offline.usePersistentLicense),2)):3!=f.g?D(f,Oh(e),3):f.return(e)})};
@@ -1169,189 +1170,191 @@ function tz(){bb.call(this);this.h=!1;this.g=void 0;this.onabort=null}na(tz,bb);
1169
1170
  function Cz(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitCancelFullScreen;"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),
1170
1171
  Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Dz);document.addEventListener("webkitfullscreenerror",Dz);document.addEventListener("mozfullscreenchange",Dz);document.addEventListener("mozfullscreenerror",Dz);document.addEventListener("MSFullscreenChange",Dz);document.addEventListener("MSFullscreenError",Dz)}}
1171
1172
  function Dz(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),c=document.createEvent("Event");c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)}oz.Fullscreen=Bz;Bz.install=Cz;rz(Cz);function Ez(){}function Fz(){var a=!0;if(bc()||ec()||dc()||Yb()||Vb()||Zb()||Ub("PC=EOS")||fc())a=!1;a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Gz=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Hz)}
1172
- function Hz(a){var b,c,d,e,f,g,h,k,l,m,n,r,p,t,x,w,B,v,A;return L(function(z){switch(z.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return z.return(b);c=a.video;d=a.audio;if("media-source"==a.type){if(!Pb())return z.return(b);if(c){if(Zb())if(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var C=c.contentType;c.width&&c.height&&(C+="; width="+c.width+"; height="+c.height);c.framerate&&(C+="; framerate="+c.framerate);"pq"===c.transferFunction&&
1173
- (C+="; eotf=smpte2084");if(C in Iz)var E=Iz[C];else E=cast.__platform__.canDisplayType(C),Iz[C]=E;e=E}else e=hd(c.contentType);else Vb()?(f=c.contentType,c.width&&c.height&&(f+="; width="+c.width,f+="; height="+c.height),c.framerate&&(f+="; framerate="+c.framerate),c.bitrate&&(f+="; bitrate="+c.bitrate),e=hd(f)):e=hd(c.contentType);if(!e)return z.return(b)}if(d&&(Zb()&&d.spatialRendering?(h=d.contentType+"; spatialRendering=true",g=hd(h)):g=hd(d.contentType),!g))return z.return(b)}else if("file"==
1174
- a.type){if(c&&(k=c.contentType,l=Qb(k),!l)||d&&(m=d.contentType,n=Qb(m),!n))return z.return(b)}else return z.return(b);if(!a.keySystemConfiguration)return b.supported=!0,z.return(Promise.resolve(b));r=a.keySystemConfiguration;p=[];t=[];r.audio&&(x={robustness:r.audio.robustness||"",contentType:a.audio.contentType},Vb()&&a.audio.contentType.includes('codecs="ac-3"')&&(x={robustness:x.robustness,contentType:'audio/mp4; codecs="ec-3"'}),r.audio.encryptionScheme&&(x={robustness:x.robustness,contentType:x.contentType,
1175
- encryptionScheme:r.audio.encryptionScheme}),p.push(x));r.video&&(w={robustness:r.video.robustness||"",contentType:a.video.contentType},r.video.encryptionScheme&&(w={robustness:w.robustness,contentType:w.contentType,encryptionScheme:r.video.encryptionScheme}),t.push(w));B={initDataTypes:[r.initDataType],distinctiveIdentifier:r.distinctiveIdentifier,persistentState:r.persistentState,sessionTypes:r.sessionTypes};p.length&&(B.audioCapabilities=p);t.length&&(B.videoCapabilities=t);v=(a.video?a.video.contentType:
1176
- "")+"#"+(a.audio?a.audio.contentType:"")+"#"+a.keySystemConfiguration.keySystem;ra(z,3);if(v in Jz){A=Jz[v];z.D(5);break}return D(z,navigator.requestMediaKeySystemAccess(r.keySystem,[B]),6);case 6:A=z.h,Jz[v]=A;case 5:ta(z,4);break;case 3:ua(z);case 4:A&&(b.supported=!0,b.keySystemAccess=A);case 2:return z.return(b)}})}oz.MediaCapabilities=Ez;Ez.install=Fz;var Gz=null;Ez.originalMcap=Gz;var Jz={};Ez.memoizedMediaKeySystemAccessRequests_=Jz;var Iz={};Ez.memoizedCanDisplayTypeRequests_=Iz;rz(Fz,-1);function Kz(){}function Lz(){var a=gc();if(window.MediaSource||window.ManagedMediaSource)a?10>=a?window.MediaSource=null:12>=a?(Mz(),Nz()):15>=a&&Mz():(Xb()||Wb()||Ub("Tizen 4"))&&Oz();(window.MediaSource||window.ManagedMediaSource)&&Pz();window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Qz()}
1177
- function Mz(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Fa.apply(0,arguments));b.abort=function(){};return b}}function Nz(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}
1178
- function Pz(){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return"mp2t"!=oe(c)&&a(c)};if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return"mp2t"!=oe(c)&&b(c)}}}
1179
- function Oz(){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return"opus"!=ve(c)&&a(c)};if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return"opus"!=ve(c)&&b(c)}}}
1180
- function Qz(){var a=MediaSource.isTypeSupported;Yb()||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}oz.MediaSource=Kz;Kz.install=Lz;rz(Lz);function Rz(){}function Sz(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?Tz():void 0!=window.orientation&&Uz())}function Tz(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})}
1181
- function Uz(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new Vz;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new Q("change");b.dispatchEvent(c)})}oz.Orientation=Rz;Rz.install=Sz;function Vz(){bb.call(this);this.type="";this.angle=0}na(Vz,bb);
1182
- Vz.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)};
1183
- Vz.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};rz(Sz);function Wz(){}var Xz,Yz,Zz,$z,aA,bA;function cA(a,b){try{var c=new dA(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function eA(a){var b=this.mediaKeys;b&&b!=a&&fA(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?fA(a,this):Promise.resolve()}
1184
- function gA(a){a=Fb(a.initData);if(Kb(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=mc(a.subarray(4),!0);a=pc(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Gb(a);this.dispatchEvent(b)}oz.PatchedMediaKeysApple=Wz;
1185
- Wz.uninstall=function(){Xz&&(Xz=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",Yz),HTMLMediaElement.prototype.setMediaKeys=Zz,window.MediaKeys=$z,window.MediaKeySystemAccess=aA,navigator.requestMediaKeySystemAccess=bA,Yz=bA=Zz=aA=$z=null,window.shakaMediaKeysPolyfill=!1)};
1186
- Wz.install=function(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(void 0===a?0:a)Xz=!0,Yz=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),Zz=HTMLMediaElement.prototype.setMediaKeys,$z=window.MediaKeys,aA=window.MediaKeySystemAccess,bA=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=eA;window.MediaKeys=hA;window.MediaKeySystemAccess=dA;navigator.requestMediaKeySystemAccess=
1187
- cA;window.shakaMediaKeysPolyfill=!0}};
1188
- function dA(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=u(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=u(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
1173
+ function Hz(a){var b,c,d,e,f,g,h,k,l,m,n;return L(function(r){switch(r.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};c=a.video;d=a.audio;if("media-source"!=a.type){if("file"==a.type){if(c&&(e=c.contentType,f=Qb(e),!f)||d&&(g=d.contentType,h=Qb(g),!h))return r.return(b)}else return r.return(b);r.B(2);break}if(!Pb())return r.return(b);if(!c){r.B(3);break}return D(r,Iz(c),4);case 4:if(k=r.h,!k)return r.return(b);case 3:if(d){var p=d.contentType;Zb()&&d.spatialRendering&&
1174
+ (p+="; spatialRendering=true");l=hd(p);if(!l)return r.return(b)}case 2:if(!a.keySystemConfiguration)return b.supported=!0,r.return(b);m=a.keySystemConfiguration;return D(r,Jz(c,d,m),6);case 6:if(n=r.h)b.supported=!0,b.keySystemAccess=n;case 5:return r.return(b)}})}
1175
+ function Iz(a){var b,c;return L(function(d){return 1==d.g?Zb()?D(d,Kz(a),3):Vb()?(b=a.contentType,a.width&&a.height&&(b+="; width="+a.width,b+="; height="+a.height),a.framerate&&(b+="; framerate="+a.framerate),a.bitrate&&(b+="; bitrate="+a.bitrate),d.return(hd(b))):d.B(2):2!=d.g?(c=d.h,d.return(c)):d.return(hd(a.contentType))})}
1176
+ function Jz(a,b,c){var d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:d=[];e=[];c.audio&&(f={robustness:c.audio.robustness||"",contentType:b.contentType},Vb()&&b.contentType.includes('codecs="ac-3"')&&(f.contentType='audio/mp4; codecs="ec-3"'),c.audio.encryptionScheme&&(f.encryptionScheme=c.audio.encryptionScheme),d.push(f));c.video&&(g={robustness:c.video.robustness||"",contentType:a.contentType},c.video.encryptionScheme&&(g.encryptionScheme=c.video.encryptionScheme),e.push(g));h={initDataTypes:[c.initDataType],
1177
+ distinctiveIdentifier:c.distinctiveIdentifier,persistentState:c.persistentState,sessionTypes:c.sessionTypes};d.length&&(h.audioCapabilities=d);e.length&&(h.videoCapabilities=e);k=(a?a.contentType:"")+"#"+(b?b.contentType:"")+"#"+c.keySystem;l=null;ra(m,2);if(k in Lz){l=Lz[k];m.B(4);break}return D(m,navigator.requestMediaKeySystemAccess(c.keySystem,[h]),5);case 5:l=m.h,Lz[k]=l;case 4:ta(m,3);break;case 2:ua(m);case 3:return m.return(l)}})}
1178
+ function Kz(a){var b,c;return L(function(d){if(1==d.g){if(!(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType))return d.return(hd(a.contentType));b=a.contentType;a.width&&a.height&&(b+="; width="+a.width+"; height="+a.height);a.framerate&&(b+="; framerate="+a.framerate);"pq"===a.transferFunction&&(b+="; eotf=smpte2084");c=!1;return b in Mz?(c=Mz[b],d.B(2)):D(d,cast.__platform__.canDisplayType(b),3)}2!=d.g&&(c=d.h,Mz[b]=c);return d.return(c)})}oz.MediaCapabilities=Ez;Ez.install=Fz;
1179
+ var Gz=null;Ez.originalMcap=Gz;var Lz={};Ez.memoizedMediaKeySystemAccessRequests_=Lz;var Mz={};Ez.memoizedCanDisplayTypeRequests_=Mz;rz(Fz,-1);function Nz(){}function Oz(){var a=gc();if(window.MediaSource||window.ManagedMediaSource)a?10>=a?window.MediaSource=null:12>=a?(Pz(),Qz()):15>=a&&Pz():(Xb()||Wb()||Ub("Tizen 4"))&&Rz();(window.MediaSource||window.ManagedMediaSource)&&Sz();window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Tz()}
1180
+ function Pz(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Fa.apply(0,arguments));b.abort=function(){};return b}}function Qz(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}
1181
+ function Sz(){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return"mp2t"!=oe(c)&&a(c)};if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return"mp2t"!=oe(c)&&b(c)}}}
1182
+ function Rz(){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return"opus"!=ve(c)&&a(c)};if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return"opus"!=ve(c)&&b(c)}}}
1183
+ function Tz(){var a=MediaSource.isTypeSupported;Yb()||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}oz.MediaSource=Nz;Nz.install=Oz;rz(Oz);function Uz(){}function Vz(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?Wz():void 0!=window.orientation&&Xz())}function Wz(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})}
1184
+ function Xz(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new Yz;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new Q("change");b.dispatchEvent(c)})}oz.Orientation=Uz;Uz.install=Vz;function Yz(){bb.call(this);this.type="";this.angle=0}na(Yz,bb);
1185
+ Yz.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)};
1186
+ Yz.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};rz(Vz);function Zz(){}var $z,aA,bA,cA,dA,eA;function fA(a,b){try{var c=new gA(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function hA(a){var b=this.mediaKeys;b&&b!=a&&iA(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?iA(a,this):Promise.resolve()}
1187
+ function jA(a){a=Fb(a.initData);if(Kb(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=mc(a.subarray(4),!0);a=pc(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Gb(a);this.dispatchEvent(b)}oz.PatchedMediaKeysApple=Zz;
1188
+ Zz.uninstall=function(){$z&&($z=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",aA),HTMLMediaElement.prototype.setMediaKeys=bA,window.MediaKeys=cA,window.MediaKeySystemAccess=dA,navigator.requestMediaKeySystemAccess=eA,aA=eA=bA=dA=cA=null,window.shakaMediaKeysPolyfill=!1)};
1189
+ Zz.install=function(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(void 0===a?0:a)$z=!0,aA=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),bA=HTMLMediaElement.prototype.setMediaKeys,cA=window.MediaKeys,dA=window.MediaKeySystemAccess,eA=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=hA;window.MediaKeys=kA;window.MediaKeySystemAccess=gA;navigator.requestMediaKeySystemAccess=
1190
+ fA;window.shakaMediaKeysPolyfill=!0}};
1191
+ function gA(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=u(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=u(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
1189
1192
  g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=u(c.videoCapabilities),g=c.next();!g.done;g=c.next())f=g.value,f.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(b.videoCapabilities.push(f),e=!0));d||(e=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));b=e?b:null}if(b){this.g=b;return}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}
1190
- dA.prototype.createMediaKeys=function(){var a=new hA(this.keySystem);return Promise.resolve(a)};dA.prototype.getConfiguration=function(){return this.g};function hA(a){this.h=new WebKitMediaKeys(a);this.g=new cd}hA.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new iA(this.h,a)};hA.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
1191
- function fA(a,b){a.g.mb();if(!b)return Promise.resolve();a.g.s(b,"webkitneedkey",gA);try{return xk(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}hA.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function iA(a){bb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new cd;this.sessionId="";this.expiration=NaN;this.closed=new dg;this.keyStatuses=new jA}na(iA,bb);q=iA.prototype;
1192
- q.generateRequest=function(a,b){var c=this;this.h=new dg;try{var d=this.l.createSession("video/mp4",Fb(b));this.i=d;this.sessionId=d.sessionId||"";this.j.s(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.xc()?"license-request":"license-renewal").set("message",Gb(e.message));e=new Q("message",e);c.dispatchEvent(e)});this.j.s(d,"webkitkeyadded",function(){c.g&&(kA(c,"usable"),c.g.resolve(),c.g=null)});this.j.s(d,"webkitkeyerror",
1193
- function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:kA(c,"output-not-allowed");break;default:kA(c,"internal-error")}});kA(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
1194
- q.update=function(a){this.g=new dg;try{this.i.update(Fb(a))}catch(b){this.g.reject(b)}return this.g};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.mb()}catch(a){this.closed.reject(a)}return this.closed};q.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function kA(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new Q("keystatuseschange");a.dispatchEvent(b)}
1195
- function jA(){this.size=0;this.g=void 0}q=jA.prototype;q.xc=function(){return this.g};q.forEach=function(a){this.g&&a(this.g,ji.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ji.value();return this.g&&Cb(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};function lA(){}function mA(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=nA,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=oA,window.MediaKeys=pA,window.MediaKeySystemAccess=qA,window.shakaMediaKeysPolyfill=!0)}function nA(){return Promise.reject(Error("The key system specified is not supported."))}
1196
- function oA(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}oz.PatchedMediaKeysNop=lA;lA.install=mA;function pA(){throw new TypeError("Illegal constructor.");}pA.prototype.createSession=function(){};pA.prototype.setServerCertificate=function(){};pA.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function qA(){this.keySystem="";throw new TypeError("Illegal constructor.");}qA.prototype.getConfiguration=function(){};
1197
- qA.prototype.createMediaKeys=function(){};rz(mA,-10);function rA(){}
1198
- function sA(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)tA="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=uA;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=vA;window.MediaKeys=wA;window.MediaKeySystemAccess=xA;window.shakaMediaKeysPolyfill=!0}}
1199
- function yA(a){var b=tA;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function uA(a,b){try{var c=new xA(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function vA(a){var b=this.mediaKeys;b&&b!=a&&zA(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&zA(a,this);return Promise.resolve()}oz.PatchedMediaKeysWebkit=rA;rA.install=sA;
1200
- function xA(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=u(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=u(f.audioCapabilities),
1193
+ gA.prototype.createMediaKeys=function(){var a=new kA(this.keySystem);return Promise.resolve(a)};gA.prototype.getConfiguration=function(){return this.g};function kA(a){this.h=new WebKitMediaKeys(a);this.g=new cd}kA.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new lA(this.h,a)};kA.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
1194
+ function iA(a,b){a.g.mb();if(!b)return Promise.resolve();a.g.s(b,"webkitneedkey",jA);try{return xk(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}kA.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function lA(a){bb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new cd;this.sessionId="";this.expiration=NaN;this.closed=new dg;this.keyStatuses=new mA}na(lA,bb);q=lA.prototype;
1195
+ q.generateRequest=function(a,b){var c=this;this.h=new dg;try{var d=this.l.createSession("video/mp4",Fb(b));this.i=d;this.sessionId=d.sessionId||"";this.j.s(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.xc()?"license-request":"license-renewal").set("message",Gb(e.message));e=new Q("message",e);c.dispatchEvent(e)});this.j.s(d,"webkitkeyadded",function(){c.g&&(nA(c,"usable"),c.g.resolve(),c.g=null)});this.j.s(d,"webkitkeyerror",
1196
+ function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:nA(c,"output-not-allowed");break;default:nA(c,"internal-error")}});nA(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
1197
+ q.update=function(a){this.g=new dg;try{this.i.update(Fb(a))}catch(b){this.g.reject(b)}return this.g};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.mb()}catch(a){this.closed.reject(a)}return this.closed};q.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function nA(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new Q("keystatuseschange");a.dispatchEvent(b)}
1198
+ function mA(){this.size=0;this.g=void 0}q=mA.prototype;q.xc=function(){return this.g};q.forEach=function(a){this.g&&a(this.g,ji.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ji.value();return this.g&&Cb(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};function oA(){}function pA(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=qA,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=rA,window.MediaKeys=sA,window.MediaKeySystemAccess=tA,window.shakaMediaKeysPolyfill=!0)}function qA(){return Promise.reject(Error("The key system specified is not supported."))}
1199
+ function rA(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}oz.PatchedMediaKeysNop=oA;oA.install=pA;function sA(){throw new TypeError("Illegal constructor.");}sA.prototype.createSession=function(){};sA.prototype.setServerCertificate=function(){};sA.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function tA(){this.keySystem="";throw new TypeError("Illegal constructor.");}tA.prototype.getConfiguration=function(){};
1200
+ tA.prototype.createMediaKeys=function(){};rz(pA,-10);function uA(){}
1201
+ function vA(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)wA="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=xA;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=yA;window.MediaKeys=zA;window.MediaKeySystemAccess=AA;window.shakaMediaKeysPolyfill=!0}}
1202
+ function BA(a){var b=wA;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function xA(a,b){try{var c=new AA(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function yA(a){var b=this.mediaKeys;b&&b!=a&&CA(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&CA(a,this);return Promise.resolve()}oz.PatchedMediaKeysWebkit=uA;uA.install=vA;
1203
+ function AA(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=u(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=u(f.audioCapabilities),
1201
1204
  l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType.split(";")[0],this.g)&&(g.audioCapabilities.push(l),d=!0));if(f.videoCapabilities)for(k=u(f.videoCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType,this.g)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==f.persistentState&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]):
1202
- d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}xA.prototype.createMediaKeys=function(){var a=new wA(this.g);return Promise.resolve(a)};xA.prototype.getConfiguration=function(){return this.h};function wA(a){this.l=a;this.h=null;this.g=new cd;this.i=[];this.j=new Map}
1203
- function zA(a,b){a.h=b;a.g.mb();var c=tA;b&&(a.g.s(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Gb(d.initData);a.h.dispatchEvent(e)}),a.g.s(b,c+"keymessage",function(d){var e=AA(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.xc()?"licenserequest":"licenserenewal").set("message",d.message),d=new Q("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.s(b,c+"keyadded",function(d){if(d=AA(a,d.sessionId))BA(d,"usable"),
1204
- d.g&&d.g.resolve(),d.g=null}),a.g.s(b,c+"keyerror",function(d){var e=AA(a,d.sessionId);if(e){var f=Error("EME v0.1b key error"),g=d.errorCode;g.systemCode=d.systemCode;f.errorCode=g;!d.sessionId&&e.h?(45==d.systemCode&&(f.message="Unsupported session type."),e.h.reject(f),e.h=null):d.sessionId&&e.g?(e.g.reject(f),e.g=null):(f=d.systemCode,d.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?BA(e,"output-restricted"):1==f?BA(e,"expired"):BA(e,"internal-error"))}}))}
1205
- wA.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.h||document.createElement("video");b.src||(b.src="about:blank");a=new CA(b,this.l,a);this.i.push(a);return a};wA.prototype.setServerCertificate=function(){return Promise.resolve(!1)};wA.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};
1206
- function AA(a,b){var c=a.j.get(b);return c?c:(c=a.i.shift())?(c.sessionId=b,a.j.set(b,c),c):null}function CA(a,b,c){bb.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new dg;this.keyStatuses=new DA}na(CA,bb);
1207
- function EA(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=Fb(pc("LOAD_SESSION|"+c));else{var e=pc("PERSISTENT|");d=zc(e,b)}else d=Fb(b)}catch(g){return Promise.reject(g)}a.h=new dg;var f=yA("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new Ob(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).V(.01)}return a.h}
1208
- function FA(a,b,c){if(a.g)a.g.then(function(){return FA(a,b,c)}).catch(function(){return FA(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=lc(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=wc(e.keys[0].k);e=wc(e.keys[0].kid)}else d=Fb(c),e=null;var f=yA("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
1209
- function BA(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new Q("keystatuseschange");a.dispatchEvent(b)}q=CA.prototype;q.generateRequest=function(a,b){return EA(this,b,null)};q.load=function(a){return"persistent-license"==this.l?EA(this,null,a):Promise.reject(Error("Not a persistent session."))};q.update=function(a){var b=new dg;FA(this,b,a);return b};
1210
- q.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=yA("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};q.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function DA(){this.size=0;this.g=void 0}q=DA.prototype;q.xc=function(){return this.g};
1211
- q.forEach=function(a){this.g&&a(this.g,ji.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ji.value();return this.g&&Cb(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var tA="";rz(sA);function GA(){}function HA(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=IA,Object.defineProperty(a,"disablePictureInPicture",{get:JA,set:KA,enumerable:!0,configurable:!0}),document.exitPictureInPicture=LA,document.addEventListener("webkitpresentationmodechanged",MA,!0))}}
1212
- function MA(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)}
1213
- function IA(){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 LA(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
1214
- function JA(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function KA(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}oz.PiPWebkit=GA;GA.install=HA;rz(HA);function NA(){}function OA(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=PA))}function PA(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}oz.RandomUUID=NA;NA.install=OA;rz(OA);function QA(){}function RA(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:SA})}function SA(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}oz.Symbol=QA;QA.install=RA;rz(RA);function TA(){}function UA(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}oz.VideoPlayPromise=TA;TA.install=UA;rz(UA);function VA(){}function WA(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Yb()&&38===$b())&&(a.getVideoPlaybackQuality=XA)}}function XA(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}oz.VideoPlaybackQuality=VA;VA.install=WA;rz(WA);function YA(){}function ZA(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=$A;else if(6==b)a=aB;else{try{var c=!!$A(1,2,"")}catch(d){c=!1}c&&(a=$A)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function $A(a,b,c){return new window.TextTrackCue(a,b,c)}function aB(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}oz.VTTCue=YA;YA.install=ZA;rz(ZA);function bB(){}bB.prototype.parseInit=function(){};bB.prototype.setSequenceMode=function(){};bB.prototype.setManifestType=function(){};bB.prototype.parseMedia=function(a,b){var c=null,d=[];a=lc(a).split(/\r?\n/);a=u(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=cB.exec(e))){var f=dB.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new Bd(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
1215
- N("shaka.text.LrcTextParser",bB);bB.prototype.parseMedia=bB.prototype.parseMedia;bB.prototype.setManifestType=bB.prototype.setManifestType;bB.prototype.setSequenceMode=bB.prototype.setSequenceMode;bB.prototype.parseInit=bB.prototype.parseInit;var cB=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,dB=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Ce["application/x-subtitle-lrc"]=function(){return new bB};function eB(){}eB.prototype.parseInit=function(){};eB.prototype.setSequenceMode=function(){};eB.prototype.setManifestType=function(){};
1216
- eB.prototype.parseMedia=function(a,b,c){var d=lc(a);a=[];if(""==d)return a;var e=Ug(d,"tt");if(!e)throw new R(2,2,2005,"Failed to parse TTML.");d=dh(e,"body")[0];if(!d)return[];var f=jh(e,fB,"frameRate"),g=jh(e,fB,"subFrameRate"),h=jh(e,fB,"frameRateMultiplier"),k=jh(e,fB,"tickRate"),l=jh(e,fB,"cellResolution"),m=e.attributes["xml:space"]||"default",n=jh(e,gB,"extent");if("default"!=m&&"preserve"!=m)throw new R(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new hB(f,g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?
1217
- {tc:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=dh(e,"metadata")[0])?g.children:[];h=dh(e,"style");e=dh(e,"region");k=[];for(var r=u(e),p=r.next();!p.done;p=r.next()){var t=p.value;p=new Cd;var x=t.attributes["xml:id"];if(x){p.id=x;var w=null;n&&(w=iB.exec(n)||jB.exec(n));x=w?Number(w[1]):null;w=w?Number(w[2]):null;var B,v=kB(t,h,"extent");if(v){var A=(B=iB.exec(v))||jB.exec(v);null!=A&&(p.width=Number(A[1]),p.height=Number(A[2]),B||(null!=x&&(p.width=100*p.width/x),null!=w&&(p.height=
1218
- 100*p.height/w)),p.widthUnits=B||null!=x?Yd:0,p.heightUnits=B||null!=w?Yd:0)}if(t=kB(t,h,"origin"))if(A=(B=iB.exec(t))||jB.exec(t),null!=A)p.viewportAnchorX=Number(A[1]),p.viewportAnchorY=Number(A[2]),B?v||(p.width=100-p.viewportAnchorX,p.widthUnits=Yd,p.height=100-p.viewportAnchorY,p.heightUnits=Yd):(null!=w&&(p.viewportAnchorY=100*p.viewportAnchorY/w),null!=x&&(p.viewportAnchorX=100*p.viewportAnchorX/x)),p.viewportAnchorUnits=B||null!=x?Yd:0}else p=null;p&&k.push(p)}if(ah(d,"p").length)throw new R(2,
1219
- 2,2001,"<p> can only be inside <div> in TTML");n=u(ah(d,"div"));for(r=n.next();!r.done;r=n.next())if(ah(r.value,"span").length)throw new R(2,2,2001,"<span> can only be inside <p> in TTML");if(b=lB(d,b,f,g,h,e,k,m,l,null,!1,c))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
1220
- function lB(a,b,c,d,e,f,g,h,k,l,m,n){var r=l;if(Yg(a)){if(!m)return null;var p={tagName:"span",children:[bh(a)],attributes:{},parent:null}}else p=a;for(var t=null,x=u(mB),w=x.next();!w.done&&!(t=nB(p,"backgroundImage",d,"#",w.value)[0]);w=x.next());x=null;var B=jh(p,mB,"backgroundImage");n&&B&&!B.startsWith("#")&&(w=new ib(n),B=new ib(B),(w=w.resolve(B).toString())&&(x=w));if("p"==a.tagName||t||x)m=!0;a=m;w="default"==(p.attributes["xml:space"]||(h?"default":"preserve"));B=p.children.every(Yg);h=
1221
- [];if(!B)for(var v=u(p.children),A=v.next();!A.done;A=v.next())(A=lB(A.value,b,c,d,e,f,g,w,k,p,m,n))&&h.push(A);d=null!=l;n=bh(p);n=p.children.length&&n&&/\S/.test(n);A=p.attributes.begin||p.attributes.end||p.attributes.dur;if(!(A||n||"br"==p.tagName||0!=h.length||d&&!w))return null;v=oB(p,c);n=v.start;for(v=v.end;r&&r.tagName&&"tt"!=r.tagName;)v=pB(r,c,n,v),n=v.start,v=v.end,r=r.parent;null==n&&(n=0);n+=b.periodStart;v=null==v?Infinity:v+b.periodStart;n=Math.max(n,b.segmentStart);v=Math.min(v,b.segmentEnd);
1222
- if(!A&&0<h.length)for(n=Infinity,v=0,b=u(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),v=Math.max(v,c.endTime);if("br"==p.tagName)return e=new Bd(n,v,""),e.lineBreak=!0,e;b="";B&&(b=sc(bh(p)||""),w&&(b=b.replace(/\s+/g," ")));b=new Bd(n,v,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=nB(p,"region",f,"")[0];if(p.attributes.region&&k&&k.attributes["xml:id"]){var z=k.attributes["xml:id"];b.region=g.filter(function(C){return C.id==z})[0]}g=k;l&&d&&!p.attributes.region&&
1223
- !p.attributes.style&&(g=nB(l,"region",f,"")[0]);qB(b,p,g,t,x,e,a,0==h.length);return b}
1224
- function qB(a,b,c,d,e,f,g,h){g=g||h;"rtl"==rB(b,c,f,"direction",g)&&(a.direction="rtl");h=rB(b,c,f,"writingMode",g);"tb"==h||"tblr"==h?a.writingMode="vertical-lr":"tbrl"==h?a.writingMode="vertical-rl":"rltb"==h||"rl"==h?a.direction="rtl":h&&(a.direction=Fd);(h=rB(b,c,f,"textAlign",!0))?(a.positionAlign=sB[h],a.lineAlign=tB[h],a.textAlign=Qd[h.toUpperCase()]):a.textAlign=Ed;if(h=rB(b,c,f,"displayAlign",!0))a.displayAlign=Rd[h.toUpperCase()];if(h=rB(b,c,f,"color",g))a.color=h;if(h=rB(b,c,f,"backgroundColor",
1225
- g))a.backgroundColor=h;if(h=rB(b,c,f,"border",g))a.border=h;if(h=rB(b,c,f,"fontFamily",g))switch(h){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=h}(h=rB(b,c,f,"fontWeight",g))&&
1226
- "bold"==h&&(a.fontWeight=700);h=rB(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=rB(b,c,f,"lineHeight",g))&&h.match(uB)&&(a.lineHeight=h);(h=rB(b,c,f,"fontSize",g))&&(h.match(uB)||h.match(vB))&&(a.fontSize=h);if(h=rB(b,c,f,"fontStyle",g))a.fontStyle=Xd[h.toUpperCase()];d?(e=d.attributes.imageType||d.attributes.imagetype,h=d.attributes.encoding,d=bh(d).trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=e);if(d=rB(b,c,f,"textOutline",g))d=
1227
- d.split(" "),d[0].match(uB)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(uB)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=rB(b,c,f,"letterSpacing",g))&&d.match(uB)&&(a.letterSpacing=d);(d=rB(b,c,f,"linePadding",g))&&d.match(uB)&&(a.linePadding=d);if(d=rB(b,c,f,"opacity",g))a.opacity=parseFloat(d);(d=kB(c,f,"textDecoration"))&&wB(a,d);(d=xB(b,f,"textDecoration"))&&wB(a,d);if(d=rB(b,c,f,"textCombine",g))a.textCombineUpright=d;switch(rB(b,c,f,"ruby",g)){case "container":a.rubyTag=
1205
+ d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}AA.prototype.createMediaKeys=function(){var a=new zA(this.g);return Promise.resolve(a)};AA.prototype.getConfiguration=function(){return this.h};function zA(a){this.l=a;this.h=null;this.g=new cd;this.i=[];this.j=new Map}
1206
+ function CA(a,b){a.h=b;a.g.mb();var c=wA;b&&(a.g.s(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Gb(d.initData);a.h.dispatchEvent(e)}),a.g.s(b,c+"keymessage",function(d){var e=DA(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.xc()?"licenserequest":"licenserenewal").set("message",d.message),d=new Q("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.s(b,c+"keyadded",function(d){if(d=DA(a,d.sessionId))EA(d,"usable"),
1207
+ d.g&&d.g.resolve(),d.g=null}),a.g.s(b,c+"keyerror",function(d){var e=DA(a,d.sessionId);if(e){var f=Error("EME v0.1b key error"),g=d.errorCode;g.systemCode=d.systemCode;f.errorCode=g;!d.sessionId&&e.h?(45==d.systemCode&&(f.message="Unsupported session type."),e.h.reject(f),e.h=null):d.sessionId&&e.g?(e.g.reject(f),e.g=null):(f=d.systemCode,d.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?EA(e,"output-restricted"):1==f?EA(e,"expired"):EA(e,"internal-error"))}}))}
1208
+ zA.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.h||document.createElement("video");b.src||(b.src="about:blank");a=new FA(b,this.l,a);this.i.push(a);return a};zA.prototype.setServerCertificate=function(){return Promise.resolve(!1)};zA.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};
1209
+ function DA(a,b){var c=a.j.get(b);return c?c:(c=a.i.shift())?(c.sessionId=b,a.j.set(b,c),c):null}function FA(a,b,c){bb.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new dg;this.keyStatuses=new GA}na(FA,bb);
1210
+ function HA(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=Fb(pc("LOAD_SESSION|"+c));else{var e=pc("PERSISTENT|");d=zc(e,b)}else d=Fb(b)}catch(g){return Promise.reject(g)}a.h=new dg;var f=BA("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new Ob(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).V(.01)}return a.h}
1211
+ function IA(a,b,c){if(a.g)a.g.then(function(){return IA(a,b,c)}).catch(function(){return IA(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=lc(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=wc(e.keys[0].k);e=wc(e.keys[0].kid)}else d=Fb(c),e=null;var f=BA("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
1212
+ function EA(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new Q("keystatuseschange");a.dispatchEvent(b)}q=FA.prototype;q.generateRequest=function(a,b){return HA(this,b,null)};q.load=function(a){return"persistent-license"==this.l?HA(this,null,a):Promise.reject(Error("Not a persistent session."))};q.update=function(a){var b=new dg;IA(this,b,a);return b};
1213
+ q.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=BA("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};q.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function GA(){this.size=0;this.g=void 0}q=GA.prototype;q.xc=function(){return this.g};
1214
+ q.forEach=function(a){this.g&&a(this.g,ji.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ji.value();return this.g&&Cb(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var wA="";rz(vA);function JA(){}function KA(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=LA,Object.defineProperty(a,"disablePictureInPicture",{get:MA,set:NA,enumerable:!0,configurable:!0}),document.exitPictureInPicture=OA,document.addEventListener("webkitpresentationmodechanged",PA,!0))}}
1215
+ function PA(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)}
1216
+ function LA(){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 OA(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
1217
+ function MA(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function NA(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}oz.PiPWebkit=JA;JA.install=KA;rz(KA);function QA(){}function RA(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=SA))}function SA(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}oz.RandomUUID=QA;QA.install=RA;rz(RA);function TA(){}function UA(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:VA})}function VA(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}oz.Symbol=TA;TA.install=UA;rz(UA);function WA(){}function XA(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}oz.VideoPlayPromise=WA;WA.install=XA;rz(XA);function YA(){}function ZA(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Yb()&&38===$b())&&(a.getVideoPlaybackQuality=$A)}}function $A(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}oz.VideoPlaybackQuality=YA;YA.install=ZA;rz(ZA);function aB(){}function bB(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=cB;else if(6==b)a=dB;else{try{var c=!!cB(1,2,"")}catch(d){c=!1}c&&(a=cB)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function cB(a,b,c){return new window.TextTrackCue(a,b,c)}function dB(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}oz.VTTCue=aB;aB.install=bB;rz(bB);function eB(){}eB.prototype.parseInit=function(){};eB.prototype.setSequenceMode=function(){};eB.prototype.setManifestType=function(){};eB.prototype.parseMedia=function(a,b){var c=null,d=[];a=lc(a).split(/\r?\n/);a=u(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=fB.exec(e))){var f=gB.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new Bd(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
1218
+ N("shaka.text.LrcTextParser",eB);eB.prototype.parseMedia=eB.prototype.parseMedia;eB.prototype.setManifestType=eB.prototype.setManifestType;eB.prototype.setSequenceMode=eB.prototype.setSequenceMode;eB.prototype.parseInit=eB.prototype.parseInit;var fB=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,gB=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Ce["application/x-subtitle-lrc"]=function(){return new eB};function hB(){}hB.prototype.parseInit=function(){};hB.prototype.setSequenceMode=function(){};hB.prototype.setManifestType=function(){};
1219
+ hB.prototype.parseMedia=function(a,b,c){var d=lc(a);a=[];if(""==d)return a;var e=Ug(d,"tt");if(!e)throw new R(2,2,2005,"Failed to parse TTML.");d=dh(e,"body")[0];if(!d)return[];var f=jh(e,iB,"frameRate"),g=jh(e,iB,"subFrameRate"),h=jh(e,iB,"frameRateMultiplier"),k=jh(e,iB,"tickRate"),l=jh(e,iB,"cellResolution"),m=e.attributes["xml:space"]||"default",n=jh(e,jB,"extent");if("default"!=m&&"preserve"!=m)throw new R(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new kB(f,g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?
1220
+ {tc:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=dh(e,"metadata")[0])?g.children:[];h=dh(e,"style");e=dh(e,"region");k=[];for(var r=u(e),p=r.next();!p.done;p=r.next()){var t=p.value;p=new Cd;var y=t.attributes["xml:id"];if(y){p.id=y;var x=null;n&&(x=lB.exec(n)||mB.exec(n));y=x?Number(x[1]):null;x=x?Number(x[2]):null;var A,v=nB(t,h,"extent");if(v){var B=(A=lB.exec(v))||mB.exec(v);null!=B&&(p.width=Number(B[1]),p.height=Number(B[2]),A||(null!=y&&(p.width=100*p.width/y),null!=x&&(p.height=
1221
+ 100*p.height/x)),p.widthUnits=A||null!=y?Yd:0,p.heightUnits=A||null!=x?Yd:0)}if(t=nB(t,h,"origin"))if(B=(A=lB.exec(t))||mB.exec(t),null!=B)p.viewportAnchorX=Number(B[1]),p.viewportAnchorY=Number(B[2]),A?v||(p.width=100-p.viewportAnchorX,p.widthUnits=Yd,p.height=100-p.viewportAnchorY,p.heightUnits=Yd):(null!=x&&(p.viewportAnchorY=100*p.viewportAnchorY/x),null!=y&&(p.viewportAnchorX=100*p.viewportAnchorX/y)),p.viewportAnchorUnits=A||null!=y?Yd:0}else p=null;p&&k.push(p)}if(ah(d,"p").length)throw new R(2,
1222
+ 2,2001,"<p> can only be inside <div> in TTML");n=u(ah(d,"div"));for(r=n.next();!r.done;r=n.next())if(ah(r.value,"span").length)throw new R(2,2,2001,"<span> can only be inside <p> in TTML");if(b=oB(d,b,f,g,h,e,k,m,l,null,!1,c))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
1223
+ function oB(a,b,c,d,e,f,g,h,k,l,m,n){var r=l;if(Yg(a)){if(!m)return null;var p={tagName:"span",children:[bh(a)],attributes:{},parent:null}}else p=a;for(var t=null,y=u(pB),x=y.next();!x.done&&!(t=qB(p,"backgroundImage",d,"#",x.value)[0]);x=y.next());y=null;var A=jh(p,pB,"backgroundImage");n&&A&&!A.startsWith("#")&&(x=new ib(n),A=new ib(A),(x=x.resolve(A).toString())&&(y=x));if("p"==a.tagName||t||y)m=!0;a=m;x="default"==(p.attributes["xml:space"]||(h?"default":"preserve"));A=p.children.every(Yg);h=
1224
+ [];if(!A)for(var v=u(p.children),B=v.next();!B.done;B=v.next())(B=oB(B.value,b,c,d,e,f,g,x,k,p,m,n))&&h.push(B);d=null!=l;n=bh(p);n=p.children.length&&n&&/\S/.test(n);B=p.attributes.begin||p.attributes.end||p.attributes.dur;if(!(B||n||"br"==p.tagName||0!=h.length||d&&!x))return null;v=rB(p,c);n=v.start;for(v=v.end;r&&r.tagName&&"tt"!=r.tagName;)v=sB(r,c,n,v),n=v.start,v=v.end,r=r.parent;null==n&&(n=0);n+=b.periodStart;v=null==v?Infinity:v+b.periodStart;n=Math.max(n,b.segmentStart);v=Math.min(v,b.segmentEnd);
1225
+ if(!B&&0<h.length)for(n=Infinity,v=0,b=u(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),v=Math.max(v,c.endTime);if("br"==p.tagName)return e=new Bd(n,v,""),e.lineBreak=!0,e;b="";A&&(b=sc(bh(p)||""),x&&(b=b.replace(/\s+/g," ")));b=new Bd(n,v,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=qB(p,"region",f,"")[0];if(p.attributes.region&&k&&k.attributes["xml:id"]){var z=k.attributes["xml:id"];b.region=g.filter(function(C){return C.id==z})[0]}g=k;l&&d&&!p.attributes.region&&
1226
+ !p.attributes.style&&(g=qB(l,"region",f,"")[0]);tB(b,p,g,t,y,e,a,0==h.length);return b}
1227
+ function tB(a,b,c,d,e,f,g,h){g=g||h;"rtl"==uB(b,c,f,"direction",g)&&(a.direction="rtl");h=uB(b,c,f,"writingMode",g);"tb"==h||"tblr"==h?a.writingMode="vertical-lr":"tbrl"==h?a.writingMode="vertical-rl":"rltb"==h||"rl"==h?a.direction="rtl":h&&(a.direction=Fd);(h=uB(b,c,f,"textAlign",!0))?(a.positionAlign=vB[h],a.lineAlign=wB[h],a.textAlign=Qd[h.toUpperCase()]):a.textAlign=Ed;if(h=uB(b,c,f,"displayAlign",!0))a.displayAlign=Rd[h.toUpperCase()];if(h=uB(b,c,f,"color",g))a.color=h;if(h=uB(b,c,f,"backgroundColor",
1228
+ g))a.backgroundColor=h;if(h=uB(b,c,f,"border",g))a.border=h;if(h=uB(b,c,f,"fontFamily",g))switch(h){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=h}(h=uB(b,c,f,"fontWeight",g))&&
1229
+ "bold"==h&&(a.fontWeight=700);h=uB(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=uB(b,c,f,"lineHeight",g))&&h.match(xB)&&(a.lineHeight=h);(h=uB(b,c,f,"fontSize",g))&&(h.match(xB)||h.match(yB))&&(a.fontSize=h);if(h=uB(b,c,f,"fontStyle",g))a.fontStyle=Xd[h.toUpperCase()];d?(e=d.attributes.imageType||d.attributes.imagetype,h=d.attributes.encoding,d=bh(d).trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=e);if(d=uB(b,c,f,"textOutline",g))d=
1230
+ d.split(" "),d[0].match(xB)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(xB)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=uB(b,c,f,"letterSpacing",g))&&d.match(xB)&&(a.letterSpacing=d);(d=uB(b,c,f,"linePadding",g))&&d.match(xB)&&(a.linePadding=d);if(d=uB(b,c,f,"opacity",g))a.opacity=parseFloat(d);(d=nB(c,f,"textDecoration"))&&zB(a,d);(d=AB(b,f,"textDecoration"))&&zB(a,d);if(d=uB(b,c,f,"textCombine",g))a.textCombineUpright=d;switch(uB(b,c,f,"ruby",g)){case "container":a.rubyTag=
1228
1231
  "ruby";break;case "text":a.rubyTag="rt"}}
1229
- function wB(a,b){b=u(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&wd(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&wd(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
1230
- a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&wd(a.textDecoration,"overline")}}function rB(a,b,c,d,e){e=void 0===e?!0:e;return(a=xB(a,c,d))?a:e?kB(b,c,d):null}function kB(a,b,c){if(!a)return null;var d=jh(a,gB,c);return d?d:yB(a,b,c)}function xB(a,b,c){var d=jh(a,gB,c);return d?d:yB(a,b,c)}
1231
- function yB(a,b,c){a=nB(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=ih(a[e],"urn:ebu:tt:style",c);f||(f=jh(a[e],gB,c));f||(f=xB(a[e],b,c));f&&(d=f)}return d}function nB(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;!a&&!(a=e?ih(g,e,b):g.attributes[b])&&(g=g.parent,g););if(b=a)for(b=u(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=u(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.attributes["xml:id"]==e){f.push(g);break}return f}
1232
- function pB(a,b,c,d){a=oB(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}function oB(a,b){var c=zB(a.attributes.begin,b),d=zB(a.attributes.end,b);a=zB(a.attributes.dur,b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
1233
- function zB(a,b){var c=null;if(AB.test(a)){a=AB.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(BB.test(a))c=CB(BB,a);else if(DB.test(a))c=CB(DB,a);else if(EB.test(a))a=EB.exec(a),c=Number(a[1])/b.frameRate;else if(FB.test(a))a=FB.exec(a),c=Number(a[1])/b.g;else if(GB.test(a))c=CB(GB,a);else if(a)throw new R(2,2,2001,"Could not parse cue time range in TTML");return c}
1234
- function CB(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}N("shaka.text.TtmlTextParser",eB);eB.prototype.parseMedia=eB.prototype.parseMedia;eB.prototype.setManifestType=eB.prototype.setManifestType;eB.prototype.setSequenceMode=eB.prototype.setSequenceMode;eB.prototype.parseInit=eB.prototype.parseInit;
1235
- function hB(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))}
1236
- var iB=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,vB=/^(\d{1,2}(?:\.\d+)?|100)%$/,uB=/^(\d+px|\d+em|\d*\.?\d+c)$/,jB=/^(\d+)px (\d+)px$/,AB=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,BB=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,DB=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,EB=/^(\d*(?:\.\d*)?)f$/,FB=/^(\d*(?:\.\d*)?)t$/,GB=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),tB={left:Id,center:"center",right:"end",start:Id,
1237
- end:"end"},sB={left:"line-left",center:"center",right:"line-right"},fB=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],gB=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],mB=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Ce["application/ttml+xml"]=function(){return new eB};function HB(){this.g=new eB}HB.prototype.parseInit=function(a){var b=!1;(new Gg).box("moov",Lg).box("trak",Lg).box("mdia",Lg).box("minf",Lg).box("stbl",Lg).T("stsd",Ng).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new R(2,2,2007);};HB.prototype.setSequenceMode=function(){};HB.prototype.setManifestType=function(){};
1238
- HB.prototype.parseMedia=function(a,b,c){var d=this,e=!1,f=[];(new Gg).box("mdat",Qg(function(g){e=!0;f=f.concat(d.g.parseMedia(g,b,c))})).parse(a,!1);if(!e)throw new R(2,2,2007);return f};N("shaka.text.Mp4TtmlParser",HB);HB.prototype.parseMedia=HB.prototype.parseMedia;HB.prototype.setManifestType=HB.prototype.setManifestType;HB.prototype.setSequenceMode=HB.prototype.setSequenceMode;HB.prototype.parseInit=HB.prototype.parseInit;Ce['application/mp4; codecs="stpp"']=function(){return new HB};
1239
- Ce['application/mp4; codecs="stpp.ttml"']=function(){return new HB};Ce['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new HB};Ce['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new HB};function IB(){this.h=!1;this.g="UNKNOWN"}IB.prototype.parseInit=function(){};IB.prototype.setSequenceMode=function(a){this.h=a};IB.prototype.setManifestType=function(a){this.g=a};
1240
- IB.prototype.parseMedia=function(a,b){a=lc(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new R(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&"HLS"==this.g)if(this.h){var d=c[0];a=d.match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m);d=d.match(/MPEGTS:(\d+)/m);if(!a||!d)throw new R(2,2,2E3);a=JB(new Lu(a[1]));if(null==a)throw new R(2,2,2E3);a=b.periodStart+Number(d[1])/9E4-a}else a=b.segmentStart;b=[];d=u(c[0].split("\n"));
1232
+ function zB(a,b){b=u(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&wd(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&wd(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
1233
+ a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&wd(a.textDecoration,"overline")}}function uB(a,b,c,d,e){e=void 0===e?!0:e;return(a=AB(a,c,d))?a:e?nB(b,c,d):null}function nB(a,b,c){if(!a)return null;var d=jh(a,jB,c);return d?d:BB(a,b,c)}function AB(a,b,c){var d=jh(a,jB,c);return d?d:BB(a,b,c)}
1234
+ function BB(a,b,c){a=qB(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=ih(a[e],"urn:ebu:tt:style",c);f||(f=jh(a[e],jB,c));f||(f=AB(a[e],b,c));f&&(d=f)}return d}function qB(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;!a&&!(a=e?ih(g,e,b):g.attributes[b])&&(g=g.parent,g););if(b=a)for(b=u(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=u(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.attributes["xml:id"]==e){f.push(g);break}return f}
1235
+ function sB(a,b,c,d){a=rB(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}function rB(a,b){var c=CB(a.attributes.begin,b),d=CB(a.attributes.end,b);a=CB(a.attributes.dur,b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
1236
+ function CB(a,b){var c=null;if(DB.test(a)){a=DB.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(EB.test(a))c=FB(EB,a);else if(GB.test(a))c=FB(GB,a);else if(HB.test(a))a=HB.exec(a),c=Number(a[1])/b.frameRate;else if(IB.test(a))a=IB.exec(a),c=Number(a[1])/b.g;else if(JB.test(a))c=FB(JB,a);else if(a)throw new R(2,2,2001,"Could not parse cue time range in TTML");return c}
1237
+ function FB(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}N("shaka.text.TtmlTextParser",hB);hB.prototype.parseMedia=hB.prototype.parseMedia;hB.prototype.setManifestType=hB.prototype.setManifestType;hB.prototype.setSequenceMode=hB.prototype.setSequenceMode;hB.prototype.parseInit=hB.prototype.parseInit;
1238
+ function kB(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))}
1239
+ var lB=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,yB=/^(\d{1,2}(?:\.\d+)?|100)%$/,xB=/^(\d+px|\d+em|\d*\.?\d+c)$/,mB=/^(\d+)px (\d+)px$/,DB=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,EB=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,GB=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,HB=/^(\d*(?:\.\d*)?)f$/,IB=/^(\d*(?:\.\d*)?)t$/,JB=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),wB={left:Id,center:"center",right:"end",start:Id,
1240
+ end:"end"},vB={left:"line-left",center:"center",right:"line-right"},iB=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],jB=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],pB=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Ce["application/ttml+xml"]=function(){return new hB};function KB(){this.g=new hB}KB.prototype.parseInit=function(a){var b=!1;(new Gg).box("moov",Lg).box("trak",Lg).box("mdia",Lg).box("minf",Lg).box("stbl",Lg).T("stsd",Ng).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new R(2,2,2007);};KB.prototype.setSequenceMode=function(){};KB.prototype.setManifestType=function(){};
1241
+ KB.prototype.parseMedia=function(a,b,c){var d=this,e=!1,f=[];(new Gg).box("mdat",Qg(function(g){e=!0;f=f.concat(d.g.parseMedia(g,b,c))})).parse(a,!1);if(!e)throw new R(2,2,2007);return f};N("shaka.text.Mp4TtmlParser",KB);KB.prototype.parseMedia=KB.prototype.parseMedia;KB.prototype.setManifestType=KB.prototype.setManifestType;KB.prototype.setSequenceMode=KB.prototype.setSequenceMode;KB.prototype.parseInit=KB.prototype.parseInit;Ce['application/mp4; codecs="stpp"']=function(){return new KB};
1242
+ Ce['application/mp4; codecs="stpp.ttml"']=function(){return new KB};Ce['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new KB};Ce['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new KB};function LB(){this.h=!1;this.g="UNKNOWN"}LB.prototype.parseInit=function(){};LB.prototype.setSequenceMode=function(a){this.h=a};LB.prototype.setManifestType=function(a){this.g=a};
1243
+ LB.prototype.parseMedia=function(a,b){a=lc(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new R(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&"HLS"==this.g)if(this.h){var d=c[0];a=d.match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m);d=d.match(/MPEGTS:(\d+)/m);if(!a||!d)throw new R(2,2,2E3);a=MB(new Lu(a[1]));if(null==a)throw new R(2,2,2E3);a=b.periodStart+Number(d[1])/9E4-a}else a=b.segmentStart;b=[];d=u(c[0].split("\n"));
1241
1244
  for(var e=d.next();!e.done;e=d.next())if(e=e.value,/^Region:/.test(e)){e=new Lu(e);var f=new Cd;Ou(e);Mu(e);for(var g=Ou(e);g;){var h=f,k=g;(g=/^id=(.*)$/.exec(k))?h.id=g[1]:(g=/^width=(\d{1,2}|100)%$/.exec(k))?h.width=Number(g[1]):(g=/^lines=(\d+)$/.exec(k))?(h.height=Number(g[1]),h.heightUnits=2):(g=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.regionAnchorX=Number(g[1]),h.regionAnchorY=Number(g[2])):(g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.viewportAnchorX=Number(g[1]),
1242
- h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");Mu(e);g=Ou(e)}b.push(f)}d=new Map;KB(d);e=[];c=u(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),-1!=g&&(h[g].push(f[k]),f[k].includes("}")&&(g=-1));h=u(h);for(g=h.next();!g.done;g=h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&(g=k.pop());k=
1245
+ h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");Mu(e);g=Ou(e)}b.push(f)}d=new Map;NB(d);e=[];c=u(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),-1!=g&&(h[g].push(f[k]),f[k].includes("}")&&(g=-1));h=u(h);for(g=h.next();!g.done;g=h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&(g=k.pop());k=
1243
1246
  l.slice(1,-1);l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(k=l[1].split(";"));(l=d.get(g))||(l=new Bd(0,0,""));for(var m=!1,n=0;n<k.length;n++){var r=/^\s*([^:]+):\s*(.*)/.exec(k[n]);if(r){var p=r[2].trim().replace(";","");switch(r[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=p;break;case "color":m=!0;l.color=p;break;case "font-family":m=!0;l.fontFamily=p;break;case "font-size":m=!0;l.fontSize=p;break;case "font-weight":if(700<=parseInt(p,10)||"bold"==p)m=!0,l.fontWeight=
1244
1247
  700;break;case "font-style":switch(p){case "normal":m=!0;l.fontStyle=Ld;break;case "italic":m=!0;l.fontStyle="italic";break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(p);break;case "text-combine-upright":m=!0;l.textCombineUpright=p;break;case "text-shadow":m=!0;l.textShadow=p;break;case "white-space":m=!0,l.wrapLine="noWrap"!=p}}}m&&d.set(g,l)}}m=a;if(1==f.length&&!f[0]||/^NOTE($|[ \t])/.test(f[0])||"STYLE"==f[0]||"REGION"==f[0])f=null;else if(h=null,
1245
- f[0].includes("--\x3e")||(h=f[0],f.splice(0,1)),g=new Lu(f[0]),k=JB(g),n=Nu(g,/[ \t]+--\x3e[ \t]+/g),l=JB(g),null==k||null==n||null==l)Ua("Failed to parse VTT time code. Cue skipped:",h,f),f=null;else{k+=m;l+=m;f=f.slice(1).join("\n").trim();d.has("global")?(m=d.get("global").clone(),m.startTime=k,m.endTime=l,m.payload=""):m=new Bd(k,l,"");Mu(g);for(k=Ou(g);k;)LB(m,k,b),Mu(g),k=Ou(g);MB(f,m,d);null!=h&&(m.id=h);f=m}f&&e.push(f)}return e};
1246
- function KB(a){for(var b=u(Object.entries(Vd)),c=b.next();!c.done;c=b.next()){var d=u(c.value);c=d.next().value;d=d.next().value;var e=new Bd(0,0,"");e.color=d;a.set("."+c,e)}b=u(Object.entries(Wd));for(c=b.next();!c.done;c=b.next())d=u(c.value),c=d.next().value,d=d.next().value,e=new Bd(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
1247
- function MB(a,b,c){if(a.includes("<")){0===c.size&&KB(c);var d=a;a=[];for(var e=-1,f=0;f<d.length;f++)"<"===d[f]?e=f+1:">"===d[f]&&0<e&&(e=d.substr(e,f-e),e.match(NB)&&a.push(e),e=-1);a=u(a);for(f=a.next();!f.done;f=a.next())f=f.value,d=d.replace("<"+f+">",'<div time="'+f+'">'),d+="</div>";a=d;a:{f=a;e=[];var g=-1;a="";d=!1;for(var h=0;h<f.length;h++)if("/"===f[h]){var k=f.indexOf(">",h);if(-1===k){a=f;break a}if((k=f.substring(h+1,k))&&"v"==k){d=!0;var l=null;e.length&&(l=e[e.length-1]);if(l){if(l===
1248
- k)a+="/"+k+">";else{if(!l.startsWith("v")){a+=f[h];continue}a+="/"+l+">"}h+=k.length+1}else a+=f[h]}else a+=f[h]}else"<"===f[h]?(g=h+1,"v"!=f[g]&&(g=-1)):">"===f[h]&&0<g&&(e.push(f.substr(g,h-g)),g=-1),a+=f[h];f=u(e);for(e=f.next();!e.done;e=f.next())e=e.value,g=e.replace(" ",".voice-"),a=a.replace("<"+e+">","<"+g+">"),a=a.replace("</"+e+">","</"+g+">"),d||(a+="</"+g+">")}a=OB(a);try{var m=Ug("<span>"+a+"</span>","span")}catch(n){}if(m)if(m=m.children,1!=m.length||m[0].tagName)for(m=u(m),a=m.next();!a.done;a=
1249
- m.next())PB(a.value,b,c);else b.payload=sc(a);else b.payload=sc(a)}else b.payload=sc(a)}function OB(a){var b={"< ":""," >":" &gt;"},c=/(< +>|<\s|\s>)/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||""}):a||""}function QB(a,b){return a&&0<a.length?a:b}
1250
- function PB(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new Cd;d.position=null;d.size=0;if(a.tagName)for(var e=u(a.tagName.split(/(?=[ .])+/g)),f=e.next();!f.done;f=e.next()){var g=f=f.value;if(g.startsWith(".voice-")){var h=g.split("-").pop();g='v[voice="'+h+'"]';c.has(g)||(g="v[voice="+h+"]")}c.has(g)&&(g=c.get(g))&&(d.backgroundColor=QB(g.backgroundColor,d.backgroundColor),d.color=QB(g.color,d.color),d.fontFamily=QB(g.fontFamily,d.fontFamily),d.fontSize=
1251
- QB(g.fontSize,d.fontSize),d.textShadow=QB(g.textShadow,d.textShadow),d.fontWeight=g.fontWeight,d.fontStyle=g.fontStyle,d.opacity=g.opacity,d.rubyTag=g.rubyTag,d.textCombineUpright=g.textCombineUpright,d.wrapLine=g.wrapLine);switch(f){case "br":d=Md(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=700;break;case "i":d.fontStyle="italic";break;case "u":d.textDecoration.push("underline");break;case "font":if(f=a.attributes.color)d.color=f;break;case "div":f=a.attributes.time;
1252
- if(!f)break;if(f=JB(new Lu(f)))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f}}e=a.children;if(Yg(a)||1==e.length&&Yg(e[0]))for(c=bh(a).split("\n"),a=!0,c=u(c),e=c.next();!e.done;e=c.next())e=e.value,a||(a=Md(d.startTime,d.endTime),b.nestedCues.push(a)),0<e.length&&(a=d.clone(),a.payload=sc(e),b.nestedCues.push(a)),a=!1;else for(b.nestedCues.push(d),b=u(e),a=b.next();!a.done;a=b.next())PB(a.value,d,c)}
1253
- function LB(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=Ed:a.textAlign=Qd[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==
1254
- b||"end"==b?"line-right":"center"==b||"middle"==b?"center":Dd);else if(d=/^region:(.*)$/.exec(b)){if(b=RB(c,d[1]))a.region=b}else if(c=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=1,a.line=Number(c[1]),c[2]&&(a.lineAlign=Sd[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=Hd,a.line=Number(c[1]),c[2]&&(a.lineAlign=Sd[c[2].toUpperCase()])}
1255
- function RB(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}function JB(a){a=Nu(a,NB);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}N("shaka.text.VttTextParser",IB);IB.prototype.parseMedia=IB.prototype.parseMedia;IB.prototype.setManifestType=IB.prototype.setManifestType;IB.prototype.setSequenceMode=IB.prototype.setSequenceMode;IB.prototype.parseInit=IB.prototype.parseInit;var NB=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;
1256
- Ce["text/vtt"]=function(){return new IB};Ce['text/vtt; codecs="vtt"']=function(){return new IB};Ce['text/vtt; codecs="wvtt"']=function(){return new IB};function SB(){this.g=null}SB.prototype.parseInit=function(a){var b=this,c=!1;(new Gg).box("moov",Lg).box("trak",Lg).box("mdia",Lg).T("mdhd",function(d){d=Si(d.reader,d.version);b.g=d.timescale}).box("minf",Lg).box("stbl",Lg).T("stsd",Ng).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new R(2,2,2008);if(!c)throw new R(2,2,2008);};SB.prototype.setSequenceMode=function(){};SB.prototype.setManifestType=function(){};
1257
- SB.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new R(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Gg).box("moof",Lg).box("traf",Lg).T("tfdt",function(A){g=!0;c=Ri(A.reader,A.version).baseMediaDecodeTime}).T("tfhd",function(A){l=Qi(A.reader,A.flags).hh}).T("trun",function(A){h=!0;d=Ti(A.reader,A.version,A.flags).Ih}).box("mdat",Qg(function(A){k=!0;e=A})).parse(a,!1);if(!k&&!g&&!h)throw new R(2,2,2008);a=c;for(var m=new Dg(e,0),n=u(d),r=n.next();!r.done;r=n.next()){r=
1258
- r.value;var p=r.yg||l,t=r.We?c+r.We:a;a=t+(p||0);var x=0;do{var w=m.R();x+=w;var B=m.R(),v=null;"vttc"==Kg(B)?8<w&&(v=m.Pb(w-8)):m.skip(w-8);p&&v&&(w=TB(v,b.periodStart+t/this.g,b.periodStart+a/this.g),f.push(w))}while(r.sampleSize&&x<r.sampleSize)}return f.filter(Ke)};function TB(a,b,c){var d,e,f;(new Gg).box("payl",Qg(function(g){d=lc(g)})).box("iden",Qg(function(g){e=lc(g)})).box("sttg",Qg(function(g){f=lc(g)})).parse(a);return d?UB(d,e,f,b,c):null}
1259
- function UB(a,b,c,d,e){d=new Bd(d,e,"");MB(a,d,new Map);b&&(d.id=b);if(c)for(a=new Lu(c),b=Ou(a);b;)LB(d,b,[]),Mu(a),b=Ou(a);return d}N("shaka.text.Mp4VttParser",SB);SB.prototype.parseMedia=SB.prototype.parseMedia;SB.prototype.setManifestType=SB.prototype.setManifestType;SB.prototype.setSequenceMode=SB.prototype.setSequenceMode;SB.prototype.parseInit=SB.prototype.parseInit;Ce['application/mp4; codecs="wvtt"']=function(){return new SB};function VB(){}VB.prototype.parseInit=function(){};VB.prototype.setSequenceMode=function(){};VB.prototype.setManifestType=function(){};VB.prototype.parseMedia=function(a){var b=lc(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=u(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Lu(c[0]),e=WB(d),f=Nu(d,/,/g);d=WB(d);if(null==e||null==f||null==d)throw new R(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Bd(e,d,c.slice(1).join("\n").trim()))}return a};
1260
- function WB(a){a=Nu(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}N("shaka.text.SbvTextParser",VB);VB.prototype.parseMedia=VB.prototype.parseMedia;VB.prototype.setManifestType=VB.prototype.setManifestType;VB.prototype.setSequenceMode=VB.prototype.setSequenceMode;VB.prototype.parseInit=VB.prototype.parseInit;Ce["text/x-subviewer"]=function(){return new VB};function XB(){this.g=new IB}XB.prototype.parseInit=function(){};XB.prototype.setSequenceMode=function(){};XB.prototype.setManifestType=function(){};XB.prototype.parseMedia=function(a,b,c){a=lc(a);a=YB(a);a=Fb(pc(a));return this.g.parseMedia(a,b,c)};
1261
- function YB(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=u(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.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 b}N("shaka.text.SrtTextParser",XB);XB.srt2webvtt=YB;XB.prototype.parseMedia=XB.prototype.parseMedia;
1262
- XB.prototype.setManifestType=XB.prototype.setManifestType;XB.prototype.setSequenceMode=XB.prototype.setSequenceMode;XB.prototype.parseInit=XB.prototype.parseInit;Ce["text/srt"]=function(){return new XB};function ZB(){}ZB.prototype.parseInit=function(){};ZB.prototype.setSequenceMode=function(){};ZB.prototype.setManifestType=function(){};
1263
- ZB.prototype.parseMedia=function(a){var b="",c="";a=lc(a).split(/\r?\n\s*\r?\n/);a=u(a);for(var d=a.next();!d.done;d=a.next()){var e=$B.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=u(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=aC.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(bC);else if("Style"==e){e=f.split(bC);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
1264
- [];b=null;e={};c=u(c.split(/\r?\n/));for(f=c.next();!f.done;e={rf:e.rf},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=aC.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(bC);else if("Dialogue"==f){g=g.split(bC);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=cC(f.Start);var k=cC(f.End);g=new Bd(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.rf=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.rf}}(e)))&&dC(g,f);d.push(g)}return d};
1265
- function dC(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=eC(c))a.color=c;if(c=b.BackColour)if(c=eC(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=700);b.Italic&&(a.fontStyle="italic");b.Underline&&a.textDecoration.push("underline");if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=Jd;a.textAlign="start";break;case 2:a.displayAlign=Jd;a.textAlign=Ed;break;case 3:a.displayAlign=Jd;a.textAlign="end";
1248
+ f[0].includes("--\x3e")||(h=f[0],f.splice(0,1)),g=new Lu(f[0]),k=MB(g),n=Nu(g,/[ \t]+--\x3e[ \t]+/g),l=MB(g),null==k||null==n||null==l)Ua("Failed to parse VTT time code. Cue skipped:",h,f),f=null;else{k+=m;l+=m;f=f.slice(1).join("\n").trim();d.has("global")?(m=d.get("global").clone(),m.startTime=k,m.endTime=l,m.payload=""):m=new Bd(k,l,"");Mu(g);for(k=Ou(g);k;)OB(m,k,b),Mu(g),k=Ou(g);PB(f,m,d);null!=h&&(m.id=h);f=m}f&&e.push(f)}return e};
1249
+ function NB(a){for(var b=u(Object.entries(Vd)),c=b.next();!c.done;c=b.next()){var d=u(c.value);c=d.next().value;d=d.next().value;var e=new Bd(0,0,"");e.color=d;a.set("."+c,e)}b=u(Object.entries(Wd));for(c=b.next();!c.done;c=b.next())d=u(c.value),c=d.next().value,d=d.next().value,e=new Bd(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
1250
+ function PB(a,b,c){if(a.includes("<")){0===c.size&&NB(c);var d=a;a=[];for(var e=-1,f=0;f<d.length;f++)"<"===d[f]?e=f+1:">"===d[f]&&0<e&&(e=d.substr(e,f-e),e.match(QB)&&a.push(e),e=-1);a=u(a);for(f=a.next();!f.done;f=a.next())f=f.value,d=d.replace("<"+f+">",'<div time="'+f+'">'),d+="</div>";a=d;a:{f=a;e=[];var g=-1;a="";d=!1;for(var h=0;h<f.length;h++)if("/"===f[h]){var k=f.indexOf(">",h);if(-1===k){a=f;break a}if((k=f.substring(h+1,k))&&"v"==k){d=!0;var l=null;e.length&&(l=e[e.length-1]);if(l){if(l===
1251
+ k)a+="/"+k+">";else{if(!l.startsWith("v")){a+=f[h];continue}a+="/"+l+">"}h+=k.length+1}else a+=f[h]}else a+=f[h]}else"<"===f[h]?(g=h+1,"v"!=f[g]&&(g=-1)):">"===f[h]&&0<g&&(e.push(f.substr(g,h-g)),g=-1),a+=f[h];f=u(e);for(e=f.next();!e.done;e=f.next())e=e.value,g=e.replace(" ",".voice-"),a=a.replace("<"+e+">","<"+g+">"),a=a.replace("</"+e+">","</"+g+">"),d||(a+="</"+g+">")}a=RB(a);try{var m=Ug("<span>"+a+"</span>","span")}catch(n){}if(m)if(m=m.children,1!=m.length||m[0].tagName)for(m=u(m),a=m.next();!a.done;a=
1252
+ m.next())SB(a.value,b,c);else b.payload=sc(a);else b.payload=sc(a)}else b.payload=sc(a)}function RB(a){var b={"< ":""," >":" &gt;"},c=/(< +>|<\s|\s>)/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||""}):a||""}function TB(a,b){return a&&0<a.length?a:b}
1253
+ function SB(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new Cd;d.position=null;d.size=0;if(a.tagName)for(var e=u(a.tagName.split(/(?=[ .])+/g)),f=e.next();!f.done;f=e.next()){var g=f=f.value;if(g.startsWith(".voice-")){var h=g.split("-").pop();g='v[voice="'+h+'"]';c.has(g)||(g="v[voice="+h+"]")}c.has(g)&&(g=c.get(g))&&(d.backgroundColor=TB(g.backgroundColor,d.backgroundColor),d.color=TB(g.color,d.color),d.fontFamily=TB(g.fontFamily,d.fontFamily),d.fontSize=
1254
+ TB(g.fontSize,d.fontSize),d.textShadow=TB(g.textShadow,d.textShadow),d.fontWeight=g.fontWeight,d.fontStyle=g.fontStyle,d.opacity=g.opacity,d.rubyTag=g.rubyTag,d.textCombineUpright=g.textCombineUpright,d.wrapLine=g.wrapLine);switch(f){case "br":d=Md(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=700;break;case "i":d.fontStyle="italic";break;case "u":d.textDecoration.push("underline");break;case "font":if(f=a.attributes.color)d.color=f;break;case "div":f=a.attributes.time;
1255
+ if(!f)break;if(f=MB(new Lu(f)))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f}}e=a.children;if(Yg(a)||1==e.length&&Yg(e[0]))for(c=bh(a).split("\n"),a=!0,c=u(c),e=c.next();!e.done;e=c.next())e=e.value,a||(a=Md(d.startTime,d.endTime),b.nestedCues.push(a)),0<e.length&&(a=d.clone(),a.payload=sc(e),b.nestedCues.push(a)),a=!1;else for(b.nestedCues.push(d),b=u(e),a=b.next();!a.done;a=b.next())SB(a.value,d,c)}
1256
+ function OB(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=Ed:a.textAlign=Qd[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==
1257
+ b||"end"==b?"line-right":"center"==b||"middle"==b?"center":Dd);else if(d=/^region:(.*)$/.exec(b)){if(b=UB(c,d[1]))a.region=b}else if(c=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=1,a.line=Number(c[1]),c[2]&&(a.lineAlign=Sd[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=Hd,a.line=Number(c[1]),c[2]&&(a.lineAlign=Sd[c[2].toUpperCase()])}
1258
+ function UB(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}function MB(a){a=Nu(a,QB);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}N("shaka.text.VttTextParser",LB);LB.prototype.parseMedia=LB.prototype.parseMedia;LB.prototype.setManifestType=LB.prototype.setManifestType;LB.prototype.setSequenceMode=LB.prototype.setSequenceMode;LB.prototype.parseInit=LB.prototype.parseInit;var QB=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;
1259
+ Ce["text/vtt"]=function(){return new LB};Ce['text/vtt; codecs="vtt"']=function(){return new LB};Ce['text/vtt; codecs="wvtt"']=function(){return new LB};function VB(){this.g=null}VB.prototype.parseInit=function(a){var b=this,c=!1;(new Gg).box("moov",Lg).box("trak",Lg).box("mdia",Lg).T("mdhd",function(d){d=Si(d.reader,d.version);b.g=d.timescale}).box("minf",Lg).box("stbl",Lg).T("stsd",Ng).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new R(2,2,2008);if(!c)throw new R(2,2,2008);};VB.prototype.setSequenceMode=function(){};VB.prototype.setManifestType=function(){};
1260
+ VB.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new R(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Gg).box("moof",Lg).box("traf",Lg).T("tfdt",function(B){g=!0;c=Ri(B.reader,B.version).baseMediaDecodeTime}).T("tfhd",function(B){l=Qi(B.reader,B.flags).jh}).T("trun",function(B){h=!0;d=Ti(B.reader,B.version,B.flags).Kh}).box("mdat",Qg(function(B){k=!0;e=B})).parse(a,!1);if(!k&&!g&&!h)throw new R(2,2,2008);a=c;for(var m=new Dg(e,0),n=u(d),r=n.next();!r.done;r=n.next()){r=
1261
+ r.value;var p=r.yg||l,t=r.We?c+r.We:a;a=t+(p||0);var y=0;do{var x=m.R();y+=x;var A=m.R(),v=null;"vttc"==Kg(A)?8<x&&(v=m.Pb(x-8)):m.skip(x-8);p&&v&&(x=WB(v,b.periodStart+t/this.g,b.periodStart+a/this.g),f.push(x))}while(r.sampleSize&&y<r.sampleSize)}return f.filter(Ke)};function WB(a,b,c){var d,e,f;(new Gg).box("payl",Qg(function(g){d=lc(g)})).box("iden",Qg(function(g){e=lc(g)})).box("sttg",Qg(function(g){f=lc(g)})).parse(a);return d?XB(d,e,f,b,c):null}
1262
+ function XB(a,b,c,d,e){d=new Bd(d,e,"");PB(a,d,new Map);b&&(d.id=b);if(c)for(a=new Lu(c),b=Ou(a);b;)OB(d,b,[]),Mu(a),b=Ou(a);return d}N("shaka.text.Mp4VttParser",VB);VB.prototype.parseMedia=VB.prototype.parseMedia;VB.prototype.setManifestType=VB.prototype.setManifestType;VB.prototype.setSequenceMode=VB.prototype.setSequenceMode;VB.prototype.parseInit=VB.prototype.parseInit;Ce['application/mp4; codecs="wvtt"']=function(){return new VB};function YB(){}YB.prototype.parseInit=function(){};YB.prototype.setSequenceMode=function(){};YB.prototype.setManifestType=function(){};YB.prototype.parseMedia=function(a){var b=lc(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=u(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Lu(c[0]),e=ZB(d),f=Nu(d,/,/g);d=ZB(d);if(null==e||null==f||null==d)throw new R(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Bd(e,d,c.slice(1).join("\n").trim()))}return a};
1263
+ function ZB(a){a=Nu(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}N("shaka.text.SbvTextParser",YB);YB.prototype.parseMedia=YB.prototype.parseMedia;YB.prototype.setManifestType=YB.prototype.setManifestType;YB.prototype.setSequenceMode=YB.prototype.setSequenceMode;YB.prototype.parseInit=YB.prototype.parseInit;Ce["text/x-subviewer"]=function(){return new YB};function $B(){this.g=new LB}$B.prototype.parseInit=function(){};$B.prototype.setSequenceMode=function(){};$B.prototype.setManifestType=function(){};$B.prototype.parseMedia=function(a,b,c){a=lc(a);a=aC(a);a=Fb(pc(a));return this.g.parseMedia(a,b,c)};
1264
+ function aC(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=u(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.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 b}N("shaka.text.SrtTextParser",$B);$B.srt2webvtt=aC;$B.prototype.parseMedia=$B.prototype.parseMedia;
1265
+ $B.prototype.setManifestType=$B.prototype.setManifestType;$B.prototype.setSequenceMode=$B.prototype.setSequenceMode;$B.prototype.parseInit=$B.prototype.parseInit;Ce["text/srt"]=function(){return new $B};function bC(){}bC.prototype.parseInit=function(){};bC.prototype.setSequenceMode=function(){};bC.prototype.setManifestType=function(){};
1266
+ bC.prototype.parseMedia=function(a){var b="",c="";a=lc(a).split(/\r?\n\s*\r?\n/);a=u(a);for(var d=a.next();!d.done;d=a.next()){var e=cC.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=u(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=dC.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(eC);else if("Style"==e){e=f.split(eC);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
1267
+ [];b=null;e={};c=u(c.split(/\r?\n/));for(f=c.next();!f.done;e={rf:e.rf},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=dC.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(eC);else if("Dialogue"==f){g=g.split(eC);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=fC(f.Start);var k=fC(f.End);g=new Bd(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.rf=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.rf}}(e)))&&gC(g,f);d.push(g)}return d};
1268
+ function gC(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=hC(c))a.color=c;if(c=b.BackColour)if(c=hC(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=700);b.Italic&&(a.fontStyle="italic");b.Underline&&a.textDecoration.push("underline");if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=Jd;a.textAlign="start";break;case 2:a.displayAlign=Jd;a.textAlign=Ed;break;case 3:a.displayAlign=Jd;a.textAlign="end";
1266
1269
  break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=Ed;break;case 7:a.displayAlign="before";a.textAlign="end";break;case 9:a.displayAlign="center";a.textAlign="start";break;case 10:a.displayAlign="center";a.textAlign=Ed;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}
1267
- function eC(a){a=parseInt(a.replace("&H",""),16);return 0<=a?"rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null}function cC(a){a=fC.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}N("shaka.text.SsaTextParser",ZB);ZB.prototype.parseMedia=ZB.prototype.parseMedia;ZB.prototype.setManifestType=ZB.prototype.setManifestType;ZB.prototype.setSequenceMode=ZB.prototype.setSequenceMode;ZB.prototype.parseInit=ZB.prototype.parseInit;
1268
- var $B=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,aC=/^\s*([^:]+):\s*(.*)/,bC=/\s*,\s*/,fC=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Ce["text/x-ssa"]=function(){return new ZB};function gC(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0<a)?{Be:c,ba:a}:null}function hC(a,b){var c=[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350],d=(a[b+2]&60)>>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,ab:"mp4a.40."+e}}
1269
- function iC(a,b){if(b+1<a.length&&255===a[b]&&240===(a[b+1]&246)){var c=a[b+1]&1?7:9;if(b+c>=a.length)return!1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return!1;b+=d;return b===a.length||b+1<a.length&&255===a[b]&&240===(a[b+1]&246)}return!1}
1270
- function jC(a,b){switch(a){case "mp4a.40.2":if(1===b)return new Uint8Array([0,200,0,128,35,128]);if(2===b)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===b)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===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,
1271
- 2,0,178,0,32,8,224]);break;default:if(1===b)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===b||3===b)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};function kC(a){this.i=a;this.h=0;this.g=new Map}q=kC.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/aac"==a.toLowerCase().split(";")[0]?hd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(xe(b)||"mp4a.40.2")+'"':b};q.getOriginalMimeType=function(){return this.i};
1272
- q.transmux=function(a,b,c,d){for(var e=Fb(a),f=Pi(e),g=f.length;g<e.length&&!iC(e,g);g++);a=1E3*c.endTime;f=Oi(f);f.length&&c&&(c=f.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(a=c.data);c=hC(e,g);if(!c)return Promise.reject(new R(2,3,3018));b.audioSamplingRate=c.sampleRate;b.channelsCount=c.channelCount;for(f=[];g<e.length;){var h=gC(e,g);if(!h)return Promise.reject(new R(2,3,3018));var k=h.Be+h.ba;g+k<=e.length&&f.push({data:e.subarray(g+h.Be,g+k),size:h.ba,
1273
- duration:1024,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}});g+=k}e=c.sampleRate;a=Math.floor(a*e/1E3);d={id:b.id,type:"audio",codecs:c.ab,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,pb:[],wa:new Uint8Array([]),Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.h,baseMediaDecodeTime:a,ob:f},stream:b};a=new Ew([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Kw(a),this.g.set(b.id,d));b=ax(a);this.h++;b=zc(d,b);return Promise.resolve(b)};N("shaka.transmuxer.AacTransmuxer",kC);
1274
- kC.prototype.transmux=kC.prototype.transmux;kC.prototype.getOriginalMimeType=kC.prototype.getOriginalMimeType;kC.prototype.convertCodecs=kC.prototype.convertCodecs;kC.prototype.isSupported=kC.prototype.isSupported;kC.prototype.destroy=kC.prototype.destroy;ae("audio/aac",function(){return new kC("audio/aac")},ge);function lC(a,b){if(b+8>a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=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,
1270
+ function hC(a){a=parseInt(a.replace("&H",""),16);return 0<=a?"rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null}function fC(a){a=iC.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}N("shaka.text.SsaTextParser",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;
1271
+ var cC=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,dC=/^\s*([^:]+):\s*(.*)/,eC=/\s*,\s*/,iC=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Ce["text/x-ssa"]=function(){return new bC};function jC(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0<a)?{Be:c,ba:a}:null}function kC(a,b){var c=[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350],d=(a[b+2]&60)>>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,ab:"mp4a.40."+e}}
1272
+ function lC(a,b){if(b+1<a.length&&255===a[b]&&240===(a[b+1]&246)){var c=a[b+1]&1?7:9;if(b+c>=a.length)return!1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return!1;b+=d;return b===a.length||b+1<a.length&&255===a[b]&&240===(a[b+1]&246)}return!1}
1273
+ function mC(a,b){switch(a){case "mp4a.40.2":if(1===b)return new Uint8Array([0,200,0,128,35,128]);if(2===b)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===b)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===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,
1274
+ 2,0,178,0,32,8,224]);break;default:if(1===b)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===b||3===b)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};function nC(a){this.i=a;this.h=0;this.g=new Map}q=nC.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/aac"==a.toLowerCase().split(";")[0]?hd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(xe(b)||"mp4a.40.2")+'"':b};q.getOriginalMimeType=function(){return this.i};
1275
+ q.transmux=function(a,b,c,d){for(var e=Fb(a),f=Pi(e),g=f.length;g<e.length&&!lC(e,g);g++);a=1E3*c.endTime;f=Oi(f);f.length&&c&&(c=f.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(a=c.data);c=kC(e,g);if(!c)return Promise.reject(new R(2,3,3018));b.audioSamplingRate=c.sampleRate;b.channelsCount=c.channelCount;for(f=[];g<e.length;){var h=jC(e,g);if(!h)return Promise.reject(new R(2,3,3018));var k=h.Be+h.ba;g+k<=e.length&&f.push({data:e.subarray(g+h.Be,g+k),size:h.ba,
1276
+ duration:1024,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}});g+=k}e=c.sampleRate;a=Math.floor(a*e/1E3);d={id:b.id,type:"audio",codecs:c.ab,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,pb:[],wa:new Uint8Array([]),Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.h,baseMediaDecodeTime:a,ob:f},stream:b};a=new Ew([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Kw(a),this.g.set(b.id,d));b=ax(a);this.h++;b=zc(d,b);return Promise.resolve(b)};N("shaka.transmuxer.AacTransmuxer",nC);
1277
+ nC.prototype.transmux=nC.prototype.transmux;nC.prototype.getOriginalMimeType=nC.prototype.getOriginalMimeType;nC.prototype.convertCodecs=nC.prototype.convertCodecs;nC.prototype.isSupported=nC.prototype.isSupported;nC.prototype.destroy=nC.prototype.destroy;ae("audio/aac",function(){return new nC("audio/aac")},ge);function oC(a,b){if(b+8>a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=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,
1275
1278
  1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,wa:a,ba:e}}
1276
- function mC(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0<d;){f=a[b];var g=Math.min(d,8),h=8-g;e=4278190080>>>24+h<<h;e=(f&e)>>h;c=c?c<<g|e:e;b+=1;d-=g}if(16>c)return!0}return!1};function nC(a){this.i=a;this.h=0;this.g=new Map}q=nC.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?hd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ac-3"':b};q.getOriginalMimeType=function(){return this.i};
1277
- q.transmux=function(a,b,c,d){a=Fb(a);for(var e=Pi(a),f=e.length;f<a.length&&!mC(a,f);f++);var g=1E3*c.endTime;e=Oi(e);e.length&&c&&(c=e.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(g=c.data);c=0;e=new Uint8Array([]);for(var h=[];f<a.length;){var k=lC(a,f);if(!k)return Promise.reject(new R(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.wa;h.push({data:a.subarray(f,f+k.ba),size:k.ba,duration:1536,qb:0,flags:{sb:0,
1278
- hb:0,gb:0,cb:0,eb:2,ub:0}});f+=k.ba}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,pb:[],wa:e,Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.h,baseMediaDecodeTime:a,ob:h},stream:b};a=new Ew([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Kw(a),this.g.set(b.id,d));b=ax(a);this.h++;b=zc(d,b);return Promise.resolve(b)};N("shaka.transmuxer.Ac3Transmuxer",nC);nC.prototype.transmux=nC.prototype.transmux;
1279
- nC.prototype.getOriginalMimeType=nC.prototype.getOriginalMimeType;nC.prototype.convertCodecs=nC.prototype.convertCodecs;nC.prototype.isSupported=nC.prototype.isSupported;nC.prototype.destroy=nC.prototype.destroy;ae("audio/ac3",function(){return new nC("audio/ac3")},ge);function oC(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new Yi(a.subarray(b+2));$i(c,2);$i(c,3);var d=aj(c,11)+1<<1,e=aj(c,2);if(3==e){e=aj(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=aj(c,2);var g=aj(c,3),h=aj(c,1);c=aj(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,wa:a,ba:d}};function pC(a){this.i=a;this.h=0;this.g=new Map}q=pC.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?hd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};q.getOriginalMimeType=function(){return this.i};
1280
- q.transmux=function(a,b,c,d){a=Fb(a);for(var e=Pi(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=Oi(e);e.length&&c&&(c=e.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(g=c.data);c=0;e=new Uint8Array([]);for(var h=[];f<a.length;){var k=oC(a,f);if(!k)return Promise.reject(new R(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.wa;h.push({data:a.subarray(f,f+k.ba),size:k.ba,duration:1536,
1281
- qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}});f+=k.ba}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,pb:[],wa:e,Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.h,baseMediaDecodeTime:a,ob:h},stream:b};a=new Ew([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Kw(a),this.g.set(b.id,d));b=ax(a);this.h++;b=zc(d,b);return Promise.resolve(b)};N("shaka.transmuxer.Ec3Transmuxer",pC);pC.prototype.transmux=pC.prototype.transmux;
1282
- pC.prototype.getOriginalMimeType=pC.prototype.getOriginalMimeType;pC.prototype.convertCodecs=pC.prototype.convertCodecs;pC.prototype.isSupported=pC.prototype.isSupported;pC.prototype.destroy=pC.prototype.destroy;ae("audio/ec3",function(){return new pC("audio/ec3")},ge);function qC(a){if(!a.length)return null;var b=a.find(function(x){return 7==x.type});a=a.find(function(x){return 8==x.type});if(!b||!a)return null;var c=new Yi(b.data),d=ij(c);ij(c);ij(c);cj(c);if(rC.includes(d)&&(d=S(c),3===d&&$i(c,1),cj(c),cj(c),$i(c,1),hj(c))){d=3!==d?8:12;for(var e=0;e<d;e++)hj(c)&&(6>e?jj(c,16):jj(c,64))}cj(c);d=S(c);if(0===d)S(c);else if(1===d)for($i(c,1),cj(c),cj(c),d=S(c),e=0;e<d;e++)cj(c);cj(c);$i(c,1);var f=S(c),g=S(c),h=aj(c,1);0===h&&$i(c,1);$i(c,1);var k=0,l=0,m=0,n=0;
1283
- hj(c)&&(k=S(c),l=S(c),m=S(c),n=S(c));e=d=1;if(hj(c)&&hj(c)){var r=ij(c),p=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],t=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];0<r&&16>=r?(d=p[r-1],e=t[r-1]):255===r&&(d=aj(c,16),e=aj(c,16))}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,y(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,y(a));a=new Uint8Array([1,k[3],k[4],
1279
+ function pC(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0<d;){f=a[b];var g=Math.min(d,8),h=8-g;e=4278190080>>>24+h<<h;e=(f&e)>>h;c=c?c<<g|e:e;b+=1;d-=g}if(16>c)return!0}return!1};function qC(a){this.i=a;this.h=0;this.g=new Map}q=qC.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?hd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ac-3"':b};q.getOriginalMimeType=function(){return this.i};
1280
+ q.transmux=function(a,b,c,d){a=Fb(a);for(var e=Pi(a),f=e.length;f<a.length&&!pC(a,f);f++);var g=1E3*c.endTime;e=Oi(e);e.length&&c&&(c=e.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(g=c.data);c=0;e=new Uint8Array([]);for(var h=[];f<a.length;){var k=oC(a,f);if(!k)return Promise.reject(new R(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.wa;h.push({data:a.subarray(f,f+k.ba),size:k.ba,duration:1536,qb:0,flags:{sb:0,
1281
+ hb:0,gb:0,cb:0,eb:2,ub:0}});f+=k.ba}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,pb:[],wa:e,Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.h,baseMediaDecodeTime:a,ob:h},stream:b};a=new Ew([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Kw(a),this.g.set(b.id,d));b=ax(a);this.h++;b=zc(d,b);return Promise.resolve(b)};N("shaka.transmuxer.Ac3Transmuxer",qC);qC.prototype.transmux=qC.prototype.transmux;
1282
+ qC.prototype.getOriginalMimeType=qC.prototype.getOriginalMimeType;qC.prototype.convertCodecs=qC.prototype.convertCodecs;qC.prototype.isSupported=qC.prototype.isSupported;qC.prototype.destroy=qC.prototype.destroy;ae("audio/ac3",function(){return new qC("audio/ac3")},ge);function rC(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new Yi(a.subarray(b+2));$i(c,2);$i(c,3);var d=aj(c,11)+1<<1,e=aj(c,2);if(3==e){e=aj(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=aj(c,2);var g=aj(c,3),h=aj(c,1);c=aj(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,wa:a,ba:d}};function sC(a){this.i=a;this.h=0;this.g=new Map}q=sC.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?hd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};q.getOriginalMimeType=function(){return this.i};
1283
+ q.transmux=function(a,b,c,d){a=Fb(a);for(var e=Pi(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=Oi(e);e.length&&c&&(c=e.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(g=c.data);c=0;e=new Uint8Array([]);for(var h=[];f<a.length;){var k=rC(a,f);if(!k)return Promise.reject(new R(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.wa;h.push({data:a.subarray(f,f+k.ba),size:k.ba,duration:1536,
1284
+ qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}});f+=k.ba}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,pb:[],wa:e,Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.h,baseMediaDecodeTime:a,ob:h},stream:b};a=new Ew([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Kw(a),this.g.set(b.id,d));b=ax(a);this.h++;b=zc(d,b);return Promise.resolve(b)};N("shaka.transmuxer.Ec3Transmuxer",sC);sC.prototype.transmux=sC.prototype.transmux;
1285
+ sC.prototype.getOriginalMimeType=sC.prototype.getOriginalMimeType;sC.prototype.convertCodecs=sC.prototype.convertCodecs;sC.prototype.isSupported=sC.prototype.isSupported;sC.prototype.destroy=sC.prototype.destroy;ae("audio/ec3",function(){return new sC("audio/ec3")},ge);function tC(a){if(!a.length)return null;var b=a.find(function(y){return 7==y.type});a=a.find(function(y){return 8==y.type});if(!b||!a)return null;var c=new Yi(b.data),d=ij(c);ij(c);ij(c);cj(c);if(uC.includes(d)&&(d=S(c),3===d&&$i(c,1),cj(c),cj(c),$i(c,1),hj(c))){d=3!==d?8:12;for(var e=0;e<d;e++)hj(c)&&(6>e?jj(c,16):jj(c,64))}cj(c);d=S(c);if(0===d)S(c);else if(1===d)for($i(c,1),cj(c),cj(c),d=S(c),e=0;e<d;e++)cj(c);cj(c);$i(c,1);var f=S(c),g=S(c),h=aj(c,1);0===h&&$i(c,1);$i(c,1);var k=0,l=0,m=0,n=0;
1286
+ hj(c)&&(k=S(c),l=S(c),m=S(c),n=S(c));e=d=1;if(hj(c)&&hj(c)){var r=ij(c),p=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],t=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];0<r&&16>=r?(d=p[r-1],e=t[r-1]):255===r&&(d=aj(c,16),e=aj(c,16))}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,w(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,w(a));a=new Uint8Array([1,k[3],k[4],
1284
1287
  k[5],255,225].concat(k,[1],b));return{height:c,width:f,Ea:a,Oa:d,Qa:e}}
1285
- function sC(a){var b=!1,c=[],d=a.find(function(k){return 7==k.type}),e=!1;a=u(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var g=!1;switch(f.type){case 1:g=e=!0;var h=f.data;d&&4<h.length&&(h=kj(new Yi(h)),2===h||4===h||7===h||9===h)&&(b=!0);break;case 5:b=g=e=!0;break;case 6:g=!0;break;case 7:g=!0;break;case 8:g=!0;break;case 9:e=g=!0;break;case 12:g=!0;break;default:g=!1}e&&g&&(g=f.fullData.byteLength,h=new Uint8Array(4),h[0]=g>>24&255,h[1]=g>>16&255,h[2]=g>>8&255,h[3]=g&255,c.push(h),c.push(f.fullData))}return c.length?
1286
- {data:zc.apply(tc,y(c)),Qd:b}:null}var rC=[100,110,122,244,44,83,86,118,128,138,139,134];function tC(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=uC(b.fullData);a=vC(c.fullData);var f=wC(d.fullData);b=xC(b.fullData,c.fullData,d.fullData,{pg:e.pg,Lg:e.Lg,Tf:a.Tf,Uf:a.Uf,Nf:a.Nf,Sf:a.Sf,Of:a.Of,Pf:a.Pf,Qf:a.Qf,Rf:a.Rf,Hf:a.Hf,If:a.If,Jf:a.Jf,Kf:a.Kf,Lf:a.Lf,Mf:a.Mf,Ef:a.Ef,Ke:a.Ke,Df:a.Df,Af:a.Af,zf:a.zf,sg:f.sg});return{height:a.height,width:a.width,
1287
- Ea:b,Oa:a.Wj,Qa:a.Vj}}function uC(a){var b=new Yi(a,!0);ij(b);ij(b);aj(b,4);aj(b,2);aj(b,6);a=aj(b,3);b=hj(b);return{pg:a+1,Lg:b}}
1288
- function vC(a){a=new Yi(a,!0);ij(a);ij(a);var b=0,c=0,d=0,e=0;aj(a,4);var f=aj(a,3);hj(a);for(var g=aj(a,2),h=aj(a,1),k=aj(a,5),l=ij(a),m=ij(a),n=ij(a),r=ij(a),p=ij(a),t=ij(a),x=ij(a),w=ij(a),B=ij(a),v=ij(a),A=ij(a),z=[],C=[],E=0;E<f;E++)z.push(hj(a)),C.push(hj(a));if(0<f)for(E=f;8>E;E++)aj(a,2);for(E=0;E<f;E++)z[E]&&aj(a,88),C[E]&&ij(a);S(a);z=S(a);3==z&&aj(a,1);C=S(a);E=S(a);hj(a)&&(b+=S(a),c+=S(a),d+=S(a),e+=S(a));var H=S(a),J=S(a),F=S(a);if(hj(a))for(var I=0;I<=f;I++)S(a),S(a),S(a);else S(a),
1288
+ function vC(a){var b=!1,c=[],d=a.find(function(k){return 7==k.type}),e=!1;a=u(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var g=!1;switch(f.type){case 1:g=e=!0;var h=f.data;d&&4<h.length&&(h=kj(new Yi(h)),2===h||4===h||7===h||9===h)&&(b=!0);break;case 5:b=g=e=!0;break;case 6:g=!0;break;case 7:g=!0;break;case 8:g=!0;break;case 9:e=g=!0;break;case 12:g=!0;break;default:g=!1}e&&g&&(g=f.fullData.byteLength,h=new Uint8Array(4),h[0]=g>>24&255,h[1]=g>>16&255,h[2]=g>>8&255,h[3]=g&255,c.push(h),c.push(f.fullData))}return c.length?
1289
+ {data:zc.apply(tc,w(c)),Qd:b}:null}var uC=[100,110,122,244,44,83,86,118,128,138,139,134];function wC(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=xC(b.fullData);a=yC(c.fullData);var f=zC(d.fullData);b=AC(b.fullData,c.fullData,d.fullData,{pg:e.pg,Lg:e.Lg,Tf:a.Tf,Uf:a.Uf,Nf:a.Nf,Sf:a.Sf,Of:a.Of,Pf:a.Pf,Qf:a.Qf,Rf:a.Rf,Hf:a.Hf,If:a.If,Jf:a.Jf,Kf:a.Kf,Lf:a.Lf,Mf:a.Mf,Ef:a.Ef,Ke:a.Ke,Df:a.Df,Af:a.Af,zf:a.zf,sg:f.sg});return{height:a.height,width:a.width,
1290
+ Ea:b,Oa:a.Wj,Qa:a.Vj}}function xC(a){var b=new Yi(a,!0);ij(b);ij(b);aj(b,4);aj(b,2);aj(b,6);a=aj(b,3);b=hj(b);return{pg:a+1,Lg:b}}
1291
+ function yC(a){a=new Yi(a,!0);ij(a);ij(a);var b=0,c=0,d=0,e=0;aj(a,4);var f=aj(a,3);hj(a);for(var g=aj(a,2),h=aj(a,1),k=aj(a,5),l=ij(a),m=ij(a),n=ij(a),r=ij(a),p=ij(a),t=ij(a),y=ij(a),x=ij(a),A=ij(a),v=ij(a),B=ij(a),z=[],C=[],E=0;E<f;E++)z.push(hj(a)),C.push(hj(a));if(0<f)for(E=f;8>E;E++)aj(a,2);for(E=0;E<f;E++)z[E]&&aj(a,88),C[E]&&ij(a);S(a);z=S(a);3==z&&aj(a,1);C=S(a);E=S(a);hj(a)&&(b+=S(a),c+=S(a),d+=S(a),e+=S(a));var H=S(a),J=S(a),F=S(a);if(hj(a))for(var I=0;I<=f;I++)S(a),S(a),S(a);else S(a),
1289
1292
  S(a),S(a);S(a);S(a);S(a);S(a);S(a);S(a);if(hj(a)&&hj(a))for(I=0;4>I;I++)for(var K=0;K<(3===I?2:6);K++)if(hj(a)){var M=Math.min(64,1<<4+(I<<1));1<I&&dj(a);for(var P=0;P<M;P++)dj(a)}else S(a);hj(a);hj(a);hj(a)&&(ij(a),S(a),S(a),hj(a));I=S(a);for(M=K=0;M<I;M++)if(P=!1,0!==M&&(P=hj(a)),P){M===I&&S(a);hj(a);S(a);for(var O=P=0;O<=K;O++){var X=hj(a),W=!1;X||(W=hj(a));(X||W)&&P++}K=P}else{O=S(a);P=S(a);K=O+P;for(X=0;X<O;X++)S(a),hj(a);for(O=0;O<P;O++)S(a),hj(a)}if(hj(a))for(I=S(a),K=0;K<I;K++){for(M=0;M<
1290
1293
  F+4;M++)aj(a,1);aj(a,1)}I=F=1;K=0;hj(a);hj(a);if(hj(a)){hj(a)&&(M=ij(a),P=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],O=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<M&&16>=M?(F=P[M-1],I=O[M-1]):255===M&&(F=aj(a,16),I=aj(a,16)));hj(a)&&hj(a);hj(a)&&(aj(a,3),hj(a),hj(a)&&(ij(a),ij(a),ij(a)));hj(a)&&(S(a),S(a));hj(a);hj(a);hj(a);if(M=hj(a))S(a),S(a),S(a),S(a);if(hj(a)&&(aj(a,32),aj(a,32),hj(a)&&S(a),hj(a))){O=!1;M=hj(a);P=hj(a);if(M||P){if(O=hj(a))ij(a),aj(a,5),hj(a),aj(a,5);aj(a,4);aj(a,4);O&&
1291
- aj(a,4);aj(a,5);aj(a,5);aj(a,5)}for(X=0;X<=f;X++){var Y=!0;W=1;hj(a)||(Y=hj(a));var Da=!1;Y?S(a):Da=hj(a);Da||(W=S(a)+1);if(M){for(Y=0;Y<W;Y++)S(a),S(a),O&&(S(a),S(a));hj(a)}if(P){for(Y=0;Y<W;Y++)S(a),S(a),O&&(S(a),S(a));hj(a)}}}hj(a)&&(hj(a),hj(a),hj(a),K=S(a),S(a),S(a),S(a),S(a))}return{Nf:A,Tf:g,Uf:h,Sf:k,Of:l,Pf:m,Qf:n,Rf:r,Hf:p,If:t,Jf:x,Kf:w,Lf:B,Mf:v,Ke:K,Ef:0,Df:z,Af:H,zf:J,width:C-(b+c)*(1===z||2===z?2:1),height:E-(d+e)*(1===z?2:1),Wj:F,Vj:I}}
1292
- function wC(a){var b=new Yi(a,!0);ij(b);ij(b);S(b);S(b);hj(b);hj(b);aj(b,3);hj(b);hj(b);S(b);S(b);dj(b);hj(b);hj(b);hj(b)&&S(b);dj(b);dj(b);hj(b);hj(b);hj(b);hj(b);a=hj(b);b=hj(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{sg:c}}
1293
- function xC(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.Tf&3)<<6|(d.Uf?1:0)<<5|d.Sf&31;e[2]=d.Of;e[3]=d.Pf;e[4]=d.Qf;e[5]=d.Rf;e[6]=d.Hf;e[7]=d.If;e[8]=d.Jf;e[9]=d.Kf;e[10]=d.Lf;e[11]=d.Mf;e[12]=d.Nf;e[13]=240|(d.Ke&3840)>>8;e[14]=d.Ke&255;e[15]=252|d.sg&3;e[16]=252|d.Df&3;e[17]=248|d.Af&7;e[18]=248|d.zf&7;e[19]=0;e[20]=0;e[21]=(d.Ef&3)<<6|(d.pg&7)<<3|(d.Lg?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength&
1294
- 255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function yC(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*zC[14*(3===c?3-d:3===d?3:4)+e-1];f=AC[3*(3===c?0:2===c?1:2)+f];c=BC[c][d];var h=CC[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,ba:k,Uj:8*c*h}}return null}
1295
- function DC(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function EC(a,b){if(b+1<a.length&&DC(a,b)){var c=yC(a,b),d=4;c&&c.ba&&(d=c.ba);b+=d;return b===a.length||b+1<a.length&&DC(a,b)}return!1}
1296
- var zC=[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],AC=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],BC=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],CC=[0,1,1,4];function FC(a){this.i=a;this.h=0;this.g=new Map}q=FC.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?hd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b};q.getOriginalMimeType=function(){return this.i};
1297
- q.transmux=function(a,b,c,d){c=Fb(a);for(var e=Pi(c).length;e<c.length&&!EC(c,e);e++);var f;for(a=[];e<c.length;){var g=yC(c,e);if(!g)return Promise.reject(new R(2,3,3018));f||(f=g);e+g.ba<=c.length&&a.push({data:c.subarray(e,e+g.ba),size:g.ba,duration:1152,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}});e+=g.ba}if(!f)return Promise.reject(new R(2,3,3018));c=9E4*f.Uj/f.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:f.sampleRate,duration:d,
1298
- pb:[],wa:new Uint8Array([]),Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.h,baseMediaDecodeTime:c,ob:a},stream:b};f=new Ew([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Kw(f),this.g.set(b.id,d));b=ax(f);this.h++;b=zc(d,b);return Promise.resolve(b)};N("shaka.transmuxer.Mp3Transmuxer",FC);FC.prototype.transmux=FC.prototype.transmux;FC.prototype.getOriginalMimeType=FC.prototype.getOriginalMimeType;FC.prototype.convertCodecs=FC.prototype.convertCodecs;FC.prototype.isSupported=FC.prototype.isSupported;
1299
- FC.prototype.destroy=FC.prototype.destroy;ae("audio/mpeg",function(){return new FC("audio/mpeg")},ge);function GC(a){this.h=a;this.g=null}q=GC.prototype;q.destroy=function(){};q.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=xe(a).split(","),c=Ec("audio",b);b=Ec("video",b);return!c||b||"mp3"!=pe(c)?!1:hd(this.convertCodecs("audio",a))};q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b};q.getOriginalMimeType=function(){return this.h};
1300
- q.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new lj;a=Fb(a);a=this.g.parse(a);if("mp3"!=a.Gd().audio||"audio"!=e)return Promise.reject(new R(2,3,3018));e=new Uint8Array([]);a=u(a.ec());for(b=a.next();!b.done;b=a.next())if(b=b.value.data)for(c=0;c<b.length;)(d=yC(b,c))?(c+d.ba<=b.length&&(e=zc(e,b.subarray(c,c+d.ba))),c+=d.ba):c++;return Promise.resolve(e)};N("shaka.transmuxer.MpegTsTransmuxer",GC);GC.prototype.transmux=GC.prototype.transmux;GC.prototype.getOriginalMimeType=GC.prototype.getOriginalMimeType;
1301
- GC.prototype.convertCodecs=GC.prototype.convertCodecs;GC.prototype.isSupported=GC.prototype.isSupported;GC.prototype.destroy=GC.prototype.destroy;ae("video/mp2t",function(){return new GC("video/mp2t")},fe);/*
1294
+ aj(a,4);aj(a,5);aj(a,5);aj(a,5)}for(X=0;X<=f;X++){var Y=!0;W=1;hj(a)||(Y=hj(a));var Da=!1;Y?S(a):Da=hj(a);Da||(W=S(a)+1);if(M){for(Y=0;Y<W;Y++)S(a),S(a),O&&(S(a),S(a));hj(a)}if(P){for(Y=0;Y<W;Y++)S(a),S(a),O&&(S(a),S(a));hj(a)}}}hj(a)&&(hj(a),hj(a),hj(a),K=S(a),S(a),S(a),S(a),S(a))}return{Nf:B,Tf:g,Uf:h,Sf:k,Of:l,Pf:m,Qf:n,Rf:r,Hf:p,If:t,Jf:y,Kf:x,Lf:A,Mf:v,Ke:K,Ef:0,Df:z,Af:H,zf:J,width:C-(b+c)*(1===z||2===z?2:1),height:E-(d+e)*(1===z?2:1),Wj:F,Vj:I}}
1295
+ function zC(a){var b=new Yi(a,!0);ij(b);ij(b);S(b);S(b);hj(b);hj(b);aj(b,3);hj(b);hj(b);S(b);S(b);dj(b);hj(b);hj(b);hj(b)&&S(b);dj(b);dj(b);hj(b);hj(b);hj(b);hj(b);a=hj(b);b=hj(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{sg:c}}
1296
+ function AC(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.Tf&3)<<6|(d.Uf?1:0)<<5|d.Sf&31;e[2]=d.Of;e[3]=d.Pf;e[4]=d.Qf;e[5]=d.Rf;e[6]=d.Hf;e[7]=d.If;e[8]=d.Jf;e[9]=d.Kf;e[10]=d.Lf;e[11]=d.Mf;e[12]=d.Nf;e[13]=240|(d.Ke&3840)>>8;e[14]=d.Ke&255;e[15]=252|d.sg&3;e[16]=252|d.Df&3;e[17]=248|d.Af&7;e[18]=248|d.zf&7;e[19]=0;e[20]=0;e[21]=(d.Ef&3)<<6|(d.pg&7)<<3|(d.Lg?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength&
1297
+ 255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function BC(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*CC[14*(3===c?3-d:3===d?3:4)+e-1];f=DC[3*(3===c?0:2===c?1:2)+f];c=EC[c][d];var h=FC[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,ba:k,Uj:8*c*h}}return null}
1298
+ function GC(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function HC(a,b){if(b+1<a.length&&GC(a,b)){var c=BC(a,b),d=4;c&&c.ba&&(d=c.ba);b+=d;return b===a.length||b+1<a.length&&GC(a,b)}return!1}
1299
+ var CC=[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],DC=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],EC=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],FC=[0,1,1,4];function IC(a){this.i=a;this.h=0;this.g=new Map}q=IC.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?hd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b};q.getOriginalMimeType=function(){return this.i};
1300
+ q.transmux=function(a,b,c,d){c=Fb(a);for(var e=Pi(c).length;e<c.length&&!HC(c,e);e++);var f;for(a=[];e<c.length;){var g=BC(c,e);if(!g)return Promise.reject(new R(2,3,3018));f||(f=g);e+g.ba<=c.length&&a.push({data:c.subarray(e,e+g.ba),size:g.ba,duration:1152,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}});e+=g.ba}if(!f)return Promise.reject(new R(2,3,3018));c=9E4*f.Uj/f.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:f.sampleRate,duration:d,
1301
+ pb:[],wa:new Uint8Array([]),Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.h,baseMediaDecodeTime:c,ob:a},stream:b};f=new Ew([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Kw(f),this.g.set(b.id,d));b=ax(f);this.h++;b=zc(d,b);return Promise.resolve(b)};N("shaka.transmuxer.Mp3Transmuxer",IC);IC.prototype.transmux=IC.prototype.transmux;IC.prototype.getOriginalMimeType=IC.prototype.getOriginalMimeType;IC.prototype.convertCodecs=IC.prototype.convertCodecs;IC.prototype.isSupported=IC.prototype.isSupported;
1302
+ IC.prototype.destroy=IC.prototype.destroy;ae("audio/mpeg",function(){return new IC("audio/mpeg")},ge);function JC(a){this.h=a;this.g=null}q=JC.prototype;q.destroy=function(){};q.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=xe(a).split(","),c=Ec("audio",b);b=Ec("video",b);return!c||b||"mp3"!=pe(c)?!1:hd(this.convertCodecs("audio",a))};q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b};q.getOriginalMimeType=function(){return this.h};
1303
+ q.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new lj;a=Fb(a);a=this.g.parse(a);if("mp3"!=a.Gd().audio||"audio"!=e)return Promise.reject(new R(2,3,3018));e=new Uint8Array([]);a=u(a.ec());for(b=a.next();!b.done;b=a.next())if(b=b.value.data)for(c=0;c<b.length;)(d=BC(b,c))?(c+d.ba<=b.length&&(e=zc(e,b.subarray(c,c+d.ba))),c+=d.ba):c++;return Promise.resolve(e)};N("shaka.transmuxer.MpegTsTransmuxer",JC);JC.prototype.transmux=JC.prototype.transmux;JC.prototype.getOriginalMimeType=JC.prototype.getOriginalMimeType;
1304
+ JC.prototype.convertCodecs=JC.prototype.convertCodecs;JC.prototype.isSupported=JC.prototype.isSupported;JC.prototype.destroy=JC.prototype.destroy;ae("video/mp2t",function(){return new JC("video/mp2t")},fe);/*
1302
1305
  @license
1303
1306
  MSS Transmuxer
1304
1307
  Copyright 2015 Dash Industry Forum
1305
1308
  SPDX-License-Identifier: BSD-3-Clause
1306
1309
  */
1307
- function HC(a){this.h=a;(this.g=vu.get("ISOBoxer")())&&IC(this)}
1308
- function IC(a){function b(){this._procFullBox();this.flags&1&&(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(c){this._procEntryField(c,"InitializationVector","data",8);this.flags&2&&(this._procEntryField(c,"NumberOfEntries","uint",16),this._procSubEntries(c,"clearAndCryptedData",c.NumberOfEntries,function(d){this._procEntryField(d,"BytesOfClearData",
1310
+ function KC(a){this.h=a;(this.g=vu.get("ISOBoxer")())&&LC(this)}
1311
+ function LC(a){function b(){this._procFullBox();this.flags&1&&(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(c){this._procEntryField(c,"InitializationVector","data",8);this.flags&2&&(this._procEntryField(c,"NumberOfEntries","uint",16),this._procSubEntries(c,"clearAndCryptedData",c.NumberOfEntries,function(d){this._procEntryField(d,"BytesOfClearData",
1309
1312
  "uint",16);this._procEntryField(d,"BytesOfEncryptedData","uint",32)}))})}a.g.addBoxProcessor("saio",function(){this._procFullBox();this.flags&1&&(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)});a.g.addBoxProcessor("saiz",function(){this._procFullBox();this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter",
1310
- "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)});a.g.addBoxProcessor("senc",b);a.g.addBoxProcessor("uuid",function(){for(var c=!0,d=0;16>d;d++)this.usertype[d]!==JC[d]&&(c=!1);c&&(this._parsing&&(this.type="sepiff"),b.call(this))})}q=HC.prototype;q.destroy=function(){};
1313
+ "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)});a.g.addBoxProcessor("senc",b);a.g.addBoxProcessor("uuid",function(){for(var c=!0,d=0;16>d;d++)this.usertype[d]!==MC[d]&&(c=!1);c&&(this._parsing&&(this.type="sepiff"),b.call(this))})}q=KC.prototype;q.destroy=function(){};
1311
1314
  q.isSupported=function(a,b){var c=a.startsWith("mss/");if(!this.g||!c)return!1;if(b)return hd(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return hd(b)||hd(a)};q.convertCodecs=function(a,b){return b.replace("mss/","")};q.getOriginalMimeType=function(){return this.h};
1312
1315
  q.transmux=function(a,b,c){if(!c)return Promise.resolve(Fb(a));if(!b.mssPrivateData)return Promise.reject(new R(2,3,3020));try{var d,e=this.g.parseBuffer(a),f=e.fetch("tfhd");f.track_ID=b.id+1;var g=e.fetch("tfdt"),h=e.fetch("traf");null===g&&(g=this.g.createFullBox("tfdt",h,f),g.version=1,g.flags=0,g.baseMediaDecodeTime=Math.floor(c.startTime*b.mssPrivateData.timescale));var k=e.fetch("trun"),l=e.fetch("tfxd");l&&l._parent.boxes.splice(l._parent.boxes.indexOf(l),1);var m=e.fetch("tfrf");m&&m._parent.boxes.splice(m._parent.boxes.indexOf(m),
1313
1316
  1);var n=e.fetch("sepiff");if(null!==n){n.type="senc";n.usertype=void 0;var r=e.fetch("saio");if(null===r){r=this.g.createFullBox("saio",h);r.version=0;r.flags=0;r.entry_count=1;r.offset=[0];var p=this.g.createFullBox("saiz",h);p.version=0;p.flags=0;p.sample_count=n.sample_count;p.default_sample_info_size=0;p.sample_info_size=[];if(n.flags&2)for(d=0;d<n.sample_count;d+=1)p.sample_info_size[d]=10+6*n.entry[d].NumberOfEntries;else p.default_sample_info_size=8}}f.flags&=16777214;f.flags|=131072;k.flags|=
1314
- 1;var t=e.fetch("moof");k.data_offset=t.getLength()+8;var x=e.fetch("saio");null!==x&&(x.offset[0]=KC(t,"traf")+KC(h,"senc")+16);var w=Fb(e.write());return Promise.resolve(w)}catch(B){return B instanceof R?Promise.reject(B):Promise.reject(new R(2,3,3022))}};function KC(a,b){for(var c=8,d=0;d<a.boxes.length&&a.boxes[d].type!==b;d++)c+=a.boxes[d].size;return c}N("shaka.transmuxer.MssTransmuxer",HC);HC.prototype.transmux=HC.prototype.transmux;HC.prototype.getOriginalMimeType=HC.prototype.getOriginalMimeType;
1315
- HC.prototype.convertCodecs=HC.prototype.convertCodecs;HC.prototype.isSupported=HC.prototype.isSupported;HC.prototype.destroy=HC.prototype.destroy;var JC=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);ae("mss/audio/mp4",function(){return new HC("mss/audio/mp4")},ge);ae("mss/video/mp4",function(){return new HC("mss/video/mp4")},ge);function LC(a){this.l=a;this.g=0;this.i=new Map;this.h=this.j=null}q=LC.prototype;q.destroy=function(){this.i.clear();this.h&&this.h.destroy()};
1316
- q.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=xe(c).split(",");c=Ec("audio",d);d=Ec("video",d);if(c&&(c=pe(c),!MC.includes(c))||d&&(c=pe(d),!NC.includes(c)))return!1;if(b)return hd(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return hd(b)||hd(a)};
1317
- q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=xe(b).replace("mp4a.40.34","mp3").split(",").map(this.Ji).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};q.Ji=function(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}return a};q.getOriginalMimeType=function(){return this.l};
1318
- q.transmux=function(a,b,c,d,e){var f=Fb(a);if("audio"==e&&!sj(f)){for(var g=Pi(f),h=g.length;h<f.length;h++)if(EC(f,h))return Promise.reject(new R(2,3,3018));for(h=g.length;h<f.length;h++)if(iC(f,h))return this.h||(this.h=new kC("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new R(2,3,3018))}this.j?this.j.clearData():this.j=new lj;var k=this.j.parse(f),l=[],m=k.Gd();try{var n=null;if("video"==e){switch(m.video){case "avc":var r=[],p=null,t=[],x=k.Xc();if(!x.length)throw new R(2,3,
1319
- 3023);for(var w=0;w<x.length;w++){var B=x[w],v=B.nalus;t.push.apply(t,y(v));var A=sC(v);if(A){null==p&&(p=B.dts);var z=void 0;z=w+1<x.length?(x[w+1].dts||0)-(B.dts||0):1<x.length?(B.dts||0)-(x[w-1].dts||0):9E4*(c.endTime-c.startTime);r.push({data:A.data,size:A.data.byteLength,duration:z,qb:Math.round((B.pts||0)-(B.dts||0)),flags:{sb:0,hb:0,gb:0,cb:0,eb:A.Qd?2:1,ub:A.Qd?0:1}})}}var C=qC(t);if(!C||null==p)throw new R(2,3,3018);b.height=C.height;b.width=C.width;n={id:b.id,type:"video",codecs:"avc1",
1320
- encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,pb:[],wa:new Uint8Array([]),Ea:C.Ea,Oa:C.Oa,Qa:C.Qa,data:{Db:this.g,baseMediaDecodeTime:p,ob:r},stream:b};break;case "hvc":var E=[],H=null,J=[],F=k.Xc();if(!F.length)throw new R(2,3,3023);for(var I=0;I<F.length;I++){var K=F[I],M=K.nalus;J.push.apply(J,y(M));for(var P=!1,O=[],X=!1,W=u(M),Y=W.next();!Y.done;Y=W.next()){var Da=Y.value;switch(Da.type){case 1:case 0:var Ia=X=!0;break;case 19:case 20:case 21:P=Ia=X=!0;break;case 32:Ia=
1321
- !0;break;case 33:Ia=!0;break;case 34:Ia=!0;break;case 35:X=Ia=!0;break;case 39:case 40:Ia=!0;break;default:Ia=!1}if(X&&Ia){var mb=Da.fullData.byteLength,Ka=new Uint8Array(4);Ka[0]=mb>>24&255;Ka[1]=mb>>16&255;Ka[2]=mb>>8&255;Ka[3]=mb&255;O.push(Ka);O.push(Da.fullData)}}var ab=O.length?{data:zc.apply(tc,y(O)),Qd:P}:null;if(ab){null==H&&null!=K.dts&&(H=K.dts);var Aa=void 0;Aa=I+1<F.length?(F[I+1].dts||0)-(K.dts||0):1<F.length?(K.dts||0)-(F[I-1].dts||0):9E4*(c.endTime-c.startTime);E.push({data:ab.data,
1322
- size:ab.data.byteLength,duration:Aa,qb:Math.round((K.pts||0)-(K.dts||0)),flags:{sb:0,hb:0,gb:0,cb:0,eb:ab.Qd?2:1,ub:ab.Qd?0:1}})}}var sb=tC(J);if(!sb||null==H)throw new R(2,3,3018);b.height=sb.height;b.width=sb.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,pb:[],wa:new Uint8Array([]),Ea:sb.Ea,Oa:sb.Oa,Qa:sb.Qa,data:{Db:this.g,baseMediaDecodeTime:H,ob:E},stream:b}}n&&(l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var Ib=
1323
- [],qb,eb=null,zf=u(k.ec()),Nd=zf.next();!Nd.done;Nd=zf.next()){var qe=Nd.value,yd=qe.data;if(yd){var Lc=0;qb=hC(yd,Lc);if(!qb)throw new R(2,3,3018);b.audioSamplingRate=qb.sampleRate;b.channelsCount=qb.channelCount;null==eb&&null!==qe.pts&&(eb=qe.pts);for(;Lc<yd.length;){var re=gC(yd,Lc);if(re){var Af=re.Be+re.ba;Lc+Af<=yd.length&&Ib.push({data:yd.subarray(Lc+re.Be,Lc+Af),size:re.ba,duration:1024,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}});Lc+=Af}else Lc++}}}if(!qb||null==eb){if(!k.Xc().length)throw new R(2,
1324
- 3,3018);eb=9E4*c.startTime;var se=Ec("audio",b.codecs.split(","));if(!se||!b.channelsCount||!b.audioSamplingRate)throw new R(2,3,3018);qb={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,ab:se};var Od=jC(se,b.channelsCount);if(!Od)throw new R(2,3,3018);for(var ej=eb+9E4*(c.endTime-c.startTime),Zg=eb;Zg<ej;)Ib.push({data:Od,size:Od.byteLength,duration:1024,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}}),Zg+=1024/qb.sampleRate*9E4}var fj=qb.sampleRate,gj=eb/9E4*fj;n={id:b.id,type:"audio",codecs:qb.ab,
1325
- encrypted:b.encrypted&&0<b.drmInfos.length,timescale:fj,duration:d,pb:[],wa:new Uint8Array([]),Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.g,baseMediaDecodeTime:gj,ob:Ib},stream:b};break;case "ac3":for(var Bf=[],te=0,Cf=new Uint8Array([]),ac=null,qw=u(k.ec()),zn=qw.next();!zn.done;zn=qw.next()){var An=zn.value,Bn=An.data;null==ac&&null!==An.pts&&(ac=An.pts);for(var Lf=0;Lf<Bn.length;){var Td=lC(Bn,Lf);Td?(b.audioSamplingRate=Td.sampleRate,b.channelsCount=Td.channelCount,te=Td.sampleRate,Cf=Td.wa,
1326
- Bf.push({data:Bn.subarray(Lf,Lf+Td.ba),size:Td.ba,duration:1536,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}}),Lf+=Td.ba):Lf++}}if(0==te||0==Cf.byteLength||null==ac)throw new R(2,3,3018);var dG=ac/9E4*te;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:te,duration:d,pb:[],wa:Cf,Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.g,baseMediaDecodeTime:dG,ob:Bf},stream:b};break;case "ec3":for(var rw=[],Pj=0,Cn=new Uint8Array([]),Qj=null,sw=u(k.ec()),Dn=sw.next();!Dn.done;Dn=
1327
- sw.next()){var En=Dn.value,Fn=En.data;null==Qj&&null!==En.pts&&(Qj=En.pts);for(var Mf=0;Mf<Fn.length;){var Ud=oC(Fn,Mf);Ud?(b.audioSamplingRate=Ud.sampleRate,b.channelsCount=Ud.channelCount,Pj=Ud.sampleRate,Cn=Ud.wa,rw.push({data:Fn.subarray(Mf,Mf+Ud.ba),size:Ud.ba,duration:1536,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}}),Mf+=Ud.ba):Mf++}}if(0==Pj||0==Cn.byteLength||null==Qj)throw new R(2,3,3018);var eG=Qj/9E4*Pj;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Pj,
1328
- duration:d,pb:[],wa:Cn,Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.g,baseMediaDecodeTime:eG,ob:rw},stream:b};break;case "mp3":for(var tw=[],Rj,Sj=null,uw=u(k.ec()),Gn=uw.next();!Gn.done;Gn=uw.next()){var Hn=Gn.value,mh=Hn.data;if(mh){null==Sj&&null!==Hn.pts&&(Sj=Hn.pts);for(var ye=0;ye<mh.length;){var Nf=yC(mh,ye);Nf?(Rj||(Rj=Nf),ye+Nf.ba<=mh.length&&tw.push({data:mh.subarray(ye,ye+Nf.ba),size:Nf.ba,duration:1152,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}}),ye+=Nf.ba):ye++}}}if(!Rj||null==Sj)throw new R(2,
1329
- 3,3018);var vw=Rj.sampleRate,fG=Sj/9E4*vw;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:vw,duration:d,pb:[],wa:new Uint8Array([]),Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.g,baseMediaDecodeTime:fG,ob:tw},stream:b};break;case "opus":var ww=[],Tj=null,Zc=k.H;if(!Zc)throw new R(2,3,3018);var Db=[];switch(Zc.pi){case 1:case 2:Db=[0];break;case 0:Db=[255,1,1,0,1];break;case 128:Db=[255,2,0,0,1];break;case 3:Db=[1,2,1,0,2,1];break;case 4:Db=[1,2,2,0,1,2,3];
1317
+ 1;var t=e.fetch("moof");k.data_offset=t.getLength()+8;var y=e.fetch("saio");null!==y&&(y.offset[0]=NC(t,"traf")+NC(h,"senc")+16);var x=Fb(e.write());return Promise.resolve(x)}catch(A){return A instanceof R?Promise.reject(A):Promise.reject(new R(2,3,3022))}};function NC(a,b){for(var c=8,d=0;d<a.boxes.length&&a.boxes[d].type!==b;d++)c+=a.boxes[d].size;return c}N("shaka.transmuxer.MssTransmuxer",KC);KC.prototype.transmux=KC.prototype.transmux;KC.prototype.getOriginalMimeType=KC.prototype.getOriginalMimeType;
1318
+ KC.prototype.convertCodecs=KC.prototype.convertCodecs;KC.prototype.isSupported=KC.prototype.isSupported;KC.prototype.destroy=KC.prototype.destroy;var MC=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);ae("mss/audio/mp4",function(){return new KC("mss/audio/mp4")},ge);ae("mss/video/mp4",function(){return new KC("mss/video/mp4")},ge);function OC(a){this.l=a;this.g=0;this.i=new Map;this.h=this.j=null}q=OC.prototype;q.destroy=function(){this.i.clear();this.h&&this.h.destroy()};
1319
+ q.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=xe(c).split(",");c=Ec("audio",d);d=Ec("video",d);if(c&&(c=pe(c),!PC.includes(c))||d&&(c=pe(d),!QC.includes(c)))return!1;if(b)return hd(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return hd(b)||hd(a)};
1320
+ q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=xe(b).replace("mp4a.40.34","mp3").split(",").map($e).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};q.getOriginalMimeType=function(){return this.l};
1321
+ q.transmux=function(a,b,c,d,e){var f=Fb(a);if("audio"==e&&!sj(f)){for(var g=Pi(f),h=g.length;h<f.length;h++)if(HC(f,h))return Promise.reject(new R(2,3,3018));for(h=g.length;h<f.length;h++)if(lC(f,h))return this.h||(this.h=new nC("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new R(2,3,3018))}this.j?this.j.clearData():this.j=new lj;var k=this.j.parse(f),l=[],m=k.Gd();try{var n=null;if("video"==e){switch(m.video){case "avc":var r=[],p=null,t=[],y=k.Xc();if(!y.length)throw new R(2,3,
1322
+ 3023);for(var x=0;x<y.length;x++){var A=y[x],v=A.nalus;t.push.apply(t,w(v));var B=vC(v);if(B){null==p&&(p=A.dts);var z=void 0;z=x+1<y.length?(y[x+1].dts||0)-(A.dts||0):1<y.length?(A.dts||0)-(y[x-1].dts||0):9E4*(c.endTime-c.startTime);r.push({data:B.data,size:B.data.byteLength,duration:z,qb:Math.round((A.pts||0)-(A.dts||0)),flags:{sb:0,hb:0,gb:0,cb:0,eb:B.Qd?2:1,ub:B.Qd?0:1}})}}var C=tC(t);if(!C||null==p)throw new R(2,3,3018);b.height=C.height;b.width=C.width;n={id:b.id,type:"video",codecs:"avc1",
1323
+ encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,pb:[],wa:new Uint8Array([]),Ea:C.Ea,Oa:C.Oa,Qa:C.Qa,data:{Db:this.g,baseMediaDecodeTime:p,ob:r},stream:b};break;case "hvc":var E=[],H=null,J=[],F=k.Xc();if(!F.length)throw new R(2,3,3023);for(var I=0;I<F.length;I++){var K=F[I],M=K.nalus;J.push.apply(J,w(M));for(var P=!1,O=[],X=!1,W=u(M),Y=W.next();!Y.done;Y=W.next()){var Da=Y.value;switch(Da.type){case 1:case 0:var Ia=X=!0;break;case 19:case 20:case 21:P=Ia=X=!0;break;case 32:Ia=
1324
+ !0;break;case 33:Ia=!0;break;case 34:Ia=!0;break;case 35:X=Ia=!0;break;case 39:case 40:Ia=!0;break;default:Ia=!1}if(X&&Ia){var mb=Da.fullData.byteLength,Ka=new Uint8Array(4);Ka[0]=mb>>24&255;Ka[1]=mb>>16&255;Ka[2]=mb>>8&255;Ka[3]=mb&255;O.push(Ka);O.push(Da.fullData)}}var ab=O.length?{data:zc.apply(tc,w(O)),Qd:P}:null;if(ab){null==H&&null!=K.dts&&(H=K.dts);var Aa=void 0;Aa=I+1<F.length?(F[I+1].dts||0)-(K.dts||0):1<F.length?(K.dts||0)-(F[I-1].dts||0):9E4*(c.endTime-c.startTime);E.push({data:ab.data,
1325
+ size:ab.data.byteLength,duration:Aa,qb:Math.round((K.pts||0)-(K.dts||0)),flags:{sb:0,hb:0,gb:0,cb:0,eb:ab.Qd?2:1,ub:ab.Qd?0:1}})}}var sb=wC(J);if(!sb||null==H)throw new R(2,3,3018);b.height=sb.height;b.width=sb.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,pb:[],wa:new Uint8Array([]),Ea:sb.Ea,Oa:sb.Oa,Qa:sb.Qa,data:{Db:this.g,baseMediaDecodeTime:H,ob:E},stream:b}}n&&(l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var Ib=
1326
+ [],qb,eb=null,zf=u(k.ec()),Nd=zf.next();!Nd.done;Nd=zf.next()){var qe=Nd.value,zd=qe.data;if(zd){var Lc=0;qb=kC(zd,Lc);if(!qb)throw new R(2,3,3018);b.audioSamplingRate=qb.sampleRate;b.channelsCount=qb.channelCount;null==eb&&null!==qe.pts&&(eb=qe.pts);for(;Lc<zd.length;){var re=jC(zd,Lc);if(re){var Af=re.Be+re.ba;Lc+Af<=zd.length&&Ib.push({data:zd.subarray(Lc+re.Be,Lc+Af),size:re.ba,duration:1024,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}});Lc+=Af}else Lc++}}}if(!qb||null==eb){if(!k.Xc().length)throw new R(2,
1327
+ 3,3018);eb=9E4*c.startTime;var se=Ec("audio",b.codecs.split(","));if(!se||!b.channelsCount||!b.audioSamplingRate)throw new R(2,3,3018);qb={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,ab:se};var Od=mC(se,b.channelsCount);if(!Od)throw new R(2,3,3018);for(var ej=eb+9E4*(c.endTime-c.startTime),$g=eb;$g<ej;)Ib.push({data:Od,size:Od.byteLength,duration:1024,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}}),$g+=1024/qb.sampleRate*9E4}var fj=qb.sampleRate,gj=eb/9E4*fj;n={id:b.id,type:"audio",codecs:qb.ab,
1328
+ encrypted:b.encrypted&&0<b.drmInfos.length,timescale:fj,duration:d,pb:[],wa:new Uint8Array([]),Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.g,baseMediaDecodeTime:gj,ob:Ib},stream:b};break;case "ac3":for(var Bf=[],te=0,Cf=new Uint8Array([]),ac=null,qw=u(k.ec()),zn=qw.next();!zn.done;zn=qw.next()){var An=zn.value,Bn=An.data;null==ac&&null!==An.pts&&(ac=An.pts);for(var Lf=0;Lf<Bn.length;){var Td=oC(Bn,Lf);Td?(b.audioSamplingRate=Td.sampleRate,b.channelsCount=Td.channelCount,te=Td.sampleRate,Cf=Td.wa,
1329
+ Bf.push({data:Bn.subarray(Lf,Lf+Td.ba),size:Td.ba,duration:1536,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}}),Lf+=Td.ba):Lf++}}if(0==te||0==Cf.byteLength||null==ac)throw new R(2,3,3018);var gG=ac/9E4*te;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:te,duration:d,pb:[],wa:Cf,Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.g,baseMediaDecodeTime:gG,ob:Bf},stream:b};break;case "ec3":for(var rw=[],Pj=0,Cn=new Uint8Array([]),Qj=null,sw=u(k.ec()),Dn=sw.next();!Dn.done;Dn=
1330
+ sw.next()){var En=Dn.value,Fn=En.data;null==Qj&&null!==En.pts&&(Qj=En.pts);for(var Mf=0;Mf<Fn.length;){var Ud=rC(Fn,Mf);Ud?(b.audioSamplingRate=Ud.sampleRate,b.channelsCount=Ud.channelCount,Pj=Ud.sampleRate,Cn=Ud.wa,rw.push({data:Fn.subarray(Mf,Mf+Ud.ba),size:Ud.ba,duration:1536,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}}),Mf+=Ud.ba):Mf++}}if(0==Pj||0==Cn.byteLength||null==Qj)throw new R(2,3,3018);var hG=Qj/9E4*Pj;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Pj,
1331
+ duration:d,pb:[],wa:Cn,Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.g,baseMediaDecodeTime:hG,ob:rw},stream:b};break;case "mp3":for(var tw=[],Rj,Sj=null,uw=u(k.ec()),Gn=uw.next();!Gn.done;Gn=uw.next()){var Hn=Gn.value,nh=Hn.data;if(nh){null==Sj&&null!==Hn.pts&&(Sj=Hn.pts);for(var ye=0;ye<nh.length;){var Nf=BC(nh,ye);Nf?(Rj||(Rj=Nf),ye+Nf.ba<=nh.length&&tw.push({data:nh.subarray(ye,ye+Nf.ba),size:Nf.ba,duration:1152,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}}),ye+=Nf.ba):ye++}}}if(!Rj||null==Sj)throw new R(2,
1332
+ 3,3018);var vw=Rj.sampleRate,iG=Sj/9E4*vw;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:vw,duration:d,pb:[],wa:new Uint8Array([]),Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.g,baseMediaDecodeTime:iG,ob:tw},stream:b};break;case "opus":var ww=[],Tj=null,Zc=k.H;if(!Zc)throw new R(2,3,3018);var Db=[];switch(Zc.ri){case 1:case 2:Db=[0];break;case 0:Db=[255,1,1,0,1];break;case 128:Db=[255,2,0,0,1];break;case 3:Db=[1,2,1,0,2,1];break;case 4:Db=[1,2,2,0,1,2,3];
1330
1333
  break;case 5:Db=[1,3,2,0,4,1,2,3];break;case 6:Db=[1,4,2,0,4,1,2,3,5];break;case 7:Db=[1,4,2,0,4,1,2,3,5,6];break;case 8:Db=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:Db=[1,1,2,0,1];break;case 131:Db=[1,1,3,0,1,2];break;case 132:Db=[1,1,4,0,1,2,3];break;case 133:Db=[1,1,5,0,1,2,3,4];break;case 134:Db=[1,1,6,0,1,2,3,4,5];break;case 135:Db=[1,1,7,0,1,2,3,4,5,6];break;case 136:Db=[1,1,8,0,1,2,3,4,5,6,7]}var xw=new Uint8Array([0,Zc.channelCount,0,0,Zc.sampleRate>>>24&255,Zc.sampleRate>>>17&255,Zc.sampleRate>>>
1331
- 8&255,Zc.sampleRate>>>0&255,0,0].concat(y(Db)));for(var yw=Zc.sampleRate,zw=u(k.ec()),In=zw.next();!In.done;In=zw.next()){var Jn=In.value,Of=Jn.data;null==Tj&&null!==Jn.pts&&(Tj=Jn.pts);for(var nh=0;nh<Of.length;){for(var gG=0!==(Of[nh+1]&16),hG=0!==(Of[nh+1]&8),zd=nh+2,Uj=0;255===Of[zd];)Uj+=255,zd+=1;Uj+=Of[zd];zd+=1;zd+=gG?2:0;zd+=hG?2:0;var Aw=Of.slice(zd,zd+Uj);ww.push({data:Aw,size:Aw.byteLength,duration:960,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}});nh=zd+Uj}}if(0==xw.byteLength||null==Tj)throw new R(2,
1332
- 3,3018);b.audioSamplingRate=Zc.sampleRate;b.channelsCount=Zc.channelCount;var iG=Tj/9E4*yw;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:yw,duration:d,pb:[],wa:xw,Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.g,baseMediaDecodeTime:iG,ob:ww},stream:b}}n&&(l.push(n),n=null)}}catch(Kn){return Kn&&3023==Kn.code?Promise.resolve(new Uint8Array([])):Promise.reject(Kn)}if(!l.length)return Promise.reject(new R(2,3,3018));var Bw=new Ew(l);if(this.i.has(b.id))var Ln=
1333
- this.i.get(b.id);else Ln=Kw(Bw),this.i.set(b.id,Ln);var jG=ax(Bw);this.g++;var kG=zc(Ln,jG);return Promise.resolve(kG)};N("shaka.transmuxer.TsTransmuxer",LC);LC.prototype.transmux=LC.prototype.transmux;LC.prototype.getOriginalMimeType=LC.prototype.getOriginalMimeType;LC.prototype.convertCodecs=LC.prototype.convertCodecs;LC.prototype.isSupported=LC.prototype.isSupported;LC.prototype.destroy=LC.prototype.destroy;var MC=["aac","ac-3","ec-3","mp3","opus"],NC=["avc","hevc"];
1334
- ae("video/mp2t",function(){return new LC("video/mp2t")},ee);/*
1334
+ 8&255,Zc.sampleRate>>>0&255,0,0].concat(w(Db)));for(var yw=Zc.sampleRate,zw=u(k.ec()),In=zw.next();!In.done;In=zw.next()){var Jn=In.value,Of=Jn.data;null==Tj&&null!==Jn.pts&&(Tj=Jn.pts);for(var oh=0;oh<Of.length;){for(var jG=0!==(Of[oh+1]&16),kG=0!==(Of[oh+1]&8),Ad=oh+2,Uj=0;255===Of[Ad];)Uj+=255,Ad+=1;Uj+=Of[Ad];Ad+=1;Ad+=jG?2:0;Ad+=kG?2:0;var Aw=Of.slice(Ad,Ad+Uj);ww.push({data:Aw,size:Aw.byteLength,duration:960,qb:0,flags:{sb:0,hb:0,gb:0,cb:0,eb:2,ub:0}});oh=Ad+Uj}}if(0==xw.byteLength||null==Tj)throw new R(2,
1335
+ 3,3018);b.audioSamplingRate=Zc.sampleRate;b.channelsCount=Zc.channelCount;var lG=Tj/9E4*yw;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:yw,duration:d,pb:[],wa:xw,Ea:new Uint8Array([]),Oa:0,Qa:0,data:{Db:this.g,baseMediaDecodeTime:lG,ob:ww},stream:b}}n&&(l.push(n),n=null)}}catch(Kn){return Kn&&3023==Kn.code?Promise.resolve(new Uint8Array([])):Promise.reject(Kn)}if(!l.length)return Promise.reject(new R(2,3,3018));var Bw=new Ew(l);if(this.i.has(b.id))var Ln=
1336
+ this.i.get(b.id);else Ln=Kw(Bw),this.i.set(b.id,Ln);var mG=ax(Bw);this.g++;var nG=zc(Ln,mG);return Promise.resolve(nG)};N("shaka.transmuxer.TsTransmuxer",OC);OC.prototype.transmux=OC.prototype.transmux;OC.prototype.getOriginalMimeType=OC.prototype.getOriginalMimeType;OC.prototype.convertCodecs=OC.prototype.convertCodecs;OC.prototype.isSupported=OC.prototype.isSupported;OC.prototype.destroy=OC.prototype.destroy;var PC=["aac","ac-3","ec-3","mp3","opus"],QC=["avc","hevc"];
1337
+ ae("video/mp2t",function(){return new OC("video/mp2t")},ee);/*
1335
1338
  @license
1336
1339
  EME Encryption Scheme Polyfill
1337
1340
  Copyright 2019 Google LLC
1338
1341
  SPDX-License-Identifier: Apache-2.0
1339
1342
  */
1340
- function OC(){}var PC;function QC(){PC?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(PC=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=RC):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
1341
- function RC(a,b){var c=this,d;return L(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),D(e,PC.call(c,a,b),2);d=e.h;if(SC(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=PC,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=TC;return e.return(TC.call(c,
1343
+ function RC(){}var SC;function TC(){SC?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(SC=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=UC):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
1344
+ function UC(a,b){var c=this,d;return L(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),D(e,SC.call(c,a,b),2);d=e.h;if(VC(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=SC,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=WC;return e.return(WC.call(c,
1342
1345
  a,b))})}
1343
- function TC(a,b){var c=this,d,e,f,g,h,k,l,m,n,r;return L(function(p){if(1==p.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=UC(a);e=[];f=u(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=VC(h.videoCapabilities,d),l=VC(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),
1344
- n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return D(p,PC.call(c,a,e),2)}r=p.h;return p.return(new WC(r,d))})}function VC(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}N("EmeEncryptionSchemePolyfill",OC);OC.install=QC;function XC(){}var YC;
1345
- function ZC(){YC?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(YC=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=$C):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
1346
- function $C(a){var b=this,c,d,e;return L(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),D(f,YC.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f.return(c);if((d=c.keySystemAccess)&&SC(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=YC,f.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
1347
- navigator.mediaCapabilities.decodingInfo=aD;if(d){f.D(3);break}e=c;return D(f,bD(a),4);case 4:return e.keySystemAccess=f.h,f.return(c);case 3:return f.return(aD.call(b,a))}})}
1348
- function aD(a){var b=this,c,d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=UC(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m.return(h):D(m,YC.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
1349
- new WC(k.keySystemAccess,c);m.D(3);break}if(!a.keySystemConfiguration){m.D(3);break}l=k;return D(m,bD(a),5);case 5:l.keySystemAccess=m.h;case 3:return m.return(k)}})}
1350
- function bD(a){var b,c;return L(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return D(d,
1351
- navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}N("McEncryptionSchemePolyfill",XC);XC.install=ZC;function WC(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
1352
- WC.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=u(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=u(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};WC.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
1353
- function UC(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function SC(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}
1354
- function cD(){}function Az(){QC();ZC()}N("EncryptionSchemePolyfills",cD);cD.install=Az;"undefined"!==typeof module&&module.exports&&(module.exports=cD);/*
1346
+ function WC(a,b){var c=this,d,e,f,g,h,k,l,m,n,r;return L(function(p){if(1==p.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=XC(a);e=[];f=u(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=YC(h.videoCapabilities,d),l=YC(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),
1347
+ n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return D(p,SC.call(c,a,e),2)}r=p.h;return p.return(new ZC(r,d))})}function YC(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}N("EmeEncryptionSchemePolyfill",RC);RC.install=TC;function $C(){}var aD;
1348
+ function bD(){aD?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(aD=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=cD):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
1349
+ function cD(a){var b=this,c,d,e;return L(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),D(f,aD.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f.return(c);if((d=c.keySystemAccess)&&VC(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=aD,f.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
1350
+ navigator.mediaCapabilities.decodingInfo=dD;if(d){f.B(3);break}e=c;return D(f,eD(a),4);case 4:return e.keySystemAccess=f.h,f.return(c);case 3:return f.return(dD.call(b,a))}})}
1351
+ function dD(a){var b=this,c,d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=XC(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m.return(h):D(m,aD.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
1352
+ new ZC(k.keySystemAccess,c);m.B(3);break}if(!a.keySystemConfiguration){m.B(3);break}l=k;return D(m,eD(a),5);case 5:l.keySystemAccess=m.h;case 3:return m.return(k)}})}
1353
+ function eD(a){var b,c;return L(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return D(d,
1354
+ navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}N("McEncryptionSchemePolyfill",$C);$C.install=bD;function ZC(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
1355
+ ZC.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=u(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=u(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};ZC.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
1356
+ function XC(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function VC(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}
1357
+ function fD(){}function Az(){TC();bD()}N("EncryptionSchemePolyfills",fD);fD.install=Az;"undefined"!==typeof module&&module.exports&&(module.exports=fD);/*
1355
1358
  @license
1356
1359
  Copyright 2013 Ali Al Dallal
1357
1360
 
@@ -1375,133 +1378,133 @@ function cD(){}function Az(){QC();ZC()}N("EncryptionSchemePolyfills",cD);cD.inst
1375
1378
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1376
1379
  SOFTWARE.
1377
1380
  */
1378
- for(var dD={ach:{B:"Lwo",C:"Acholi"},ady:{B:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",C:"Adyghe"},af:{B:"Afrikaans",C:"Afrikaans"},"af-NA":{B:"Afrikaans (Namibia)",C:"Afrikaans (Namibia)"},"af-ZA":{B:"Afrikaans (South Africa)",C:"Afrikaans (South Africa)"},ak:{B:"T\u0255\u0265i",C:"Akan"},ar:{B:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",C:"Arabic"},"ar-AR":{B:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",C:"Arabic"},"ar-MA":{B:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",C:"Arabic (Morocco)"},
1379
- "ar-SA":{B:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",C:"Arabic (Saudi Arabia)"},"ay-BO":{B:"Aymar aru",C:"Aymara"},az:{B:"Az\u0259rbaycan dili",C:"Azerbaijani"},"az-AZ":{B:"Az\u0259rbaycan dili",C:"Azerbaijani"},"be-BY":{B:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",C:"Belarusian"},bg:{B:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",C:"Bulgarian"},"bg-BG":{B:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",
1380
- C:"Bulgarian"},bn:{B:"\u09ac\u09be\u0982\u09b2\u09be",C:"Bengali"},"bn-IN":{B:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",C:"Bengali (India)"},"bn-BD":{B:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",C:"Bengali (Bangladesh)"},"bs-BA":{B:"Bosanski",C:"Bosnian"},ca:{B:"Catal\u00e0",C:"Catalan"},"ca-ES":{B:"Catal\u00e0",C:"Catalan"},cak:{B:"Maya Kaqchikel",C:"Kaqchikel"},"ck-US":{B:"\u13e3\u13b3\u13a9 (tsalagi)",C:"Cherokee"},cs:{B:"\u010ce\u0161tina",
1381
- C:"Czech"},"cs-CZ":{B:"\u010ce\u0161tina",C:"Czech"},cy:{B:"Cymraeg",C:"Welsh"},"cy-GB":{B:"Cymraeg",C:"Welsh"},da:{B:"Dansk",C:"Danish"},"da-DK":{B:"Dansk",C:"Danish"},de:{B:"Deutsch",C:"German"},"de-AT":{B:"Deutsch (\u00d6sterreich)",C:"German (Austria)"},"de-DE":{B:"Deutsch (Deutschland)",C:"German (Germany)"},"de-CH":{B:"Deutsch (Schweiz)",C:"German (Switzerland)"},dsb:{B:"Dolnoserb\u0161\u0107ina",C:"Lower Sorbian"},el:{B:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",C:"Greek"},"el-GR":{B:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",
1382
- C:"Greek (Greece)"},en:{B:"English",C:"English"},"en-GB":{B:"English (UK)",C:"English (UK)"},"en-AU":{B:"English (Australia)",C:"English (Australia)"},"en-CA":{B:"English (Canada)",C:"English (Canada)"},"en-IE":{B:"English (Ireland)",C:"English (Ireland)"},"en-IN":{B:"English (India)",C:"English (India)"},"en-PI":{B:"English (Pirate)",C:"English (Pirate)"},"en-UD":{B:"English (Upside Down)",C:"English (Upside Down)"},"en-US":{B:"English (US)",C:"English (US)"},"en-ZA":{B:"English (South Africa)",
1383
- C:"English (South Africa)"},"en@pirate":{B:"English (Pirate)",C:"English (Pirate)"},eo:{B:"Esperanto",C:"Esperanto"},"eo-EO":{B:"Esperanto",C:"Esperanto"},es:{B:"Espa\u00f1ol",C:"Spanish"},"es-AR":{B:"Espa\u00f1ol (Argentine)",C:"Spanish (Argentina)"},"es-419":{B:"Espa\u00f1ol (Latinoam\u00e9rica)",C:"Spanish (Latin America)"},"es-CL":{B:"Espa\u00f1ol (Chile)",C:"Spanish (Chile)"},"es-CO":{B:"Espa\u00f1ol (Colombia)",C:"Spanish (Colombia)"},"es-EC":{B:"Espa\u00f1ol (Ecuador)",C:"Spanish (Ecuador)"},
1384
- "es-ES":{B:"Espa\u00f1ol (Espa\u00f1a)",C:"Spanish (Spain)"},"es-LA":{B:"Espa\u00f1ol (Latinoam\u00e9rica)",C:"Spanish (Latin America)"},"es-NI":{B:"Espa\u00f1ol (Nicaragua)",C:"Spanish (Nicaragua)"},"es-MX":{B:"Espa\u00f1ol (M\u00e9xico)",C:"Spanish (Mexico)"},"es-US":{B:"Espa\u00f1ol (Estados Unidos)",C:"Spanish (United States)"},"es-VE":{B:"Espa\u00f1ol (Venezuela)",C:"Spanish (Venezuela)"},et:{B:"eesti keel",C:"Estonian"},"et-EE":{B:"Eesti (Estonia)",C:"Estonian (Estonia)"},eu:{B:"Euskara",C:"Basque"},
1385
- "eu-ES":{B:"Euskara",C:"Basque"},fa:{B:"\u0641\u0627\u0631\u0633\u06cc",C:"Persian"},"fa-IR":{B:"\u0641\u0627\u0631\u0633\u06cc",C:"Persian"},"fb-LT":{B:"Leet Speak",C:"Leet"},ff:{B:"Fulah",C:"Fulah"},fi:{B:"Suomi",C:"Finnish"},"fi-FI":{B:"Suomi",C:"Finnish"},"fo-FO":{B:"F\u00f8royskt",C:"Faroese"},fr:{B:"Fran\u00e7ais",C:"French"},"fr-CA":{B:"Fran\u00e7ais (Canada)",C:"French (Canada)"},"fr-FR":{B:"Fran\u00e7ais (France)",C:"French (France)"},"fr-BE":{B:"Fran\u00e7ais (Belgique)",C:"French (Belgium)"},
1386
- "fr-CH":{B:"Fran\u00e7ais (Suisse)",C:"French (Switzerland)"},"fy-NL":{B:"Frysk",C:"Frisian (West)"},ga:{B:"Gaeilge",C:"Irish"},"ga-IE":{B:"Gaeilge (Gaelic)",C:"Irish (Gaelic)"},gl:{B:"Galego",C:"Galician"},"gl-ES":{B:"Galego",C:"Galician"},"gn-PY":{B:"Ava\u00f1e'\u1ebd",C:"Guarani"},"gu-IN":{B:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",C:"Gujarati"},"gx-GR":{B:"\u1f19\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ae \u1f00\u03c1\u03c7\u03b1\u03af\u03b1",C:"Classical Greek"},he:{B:"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f",
1387
- C:"Hebrew"},"he-IL":{B:"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f",C:"Hebrew"},hi:{B:"\u0939\u093f\u0928\u094d\u0926\u0940",C:"Hindi"},"hi-IN":{B:"\u0939\u093f\u0928\u094d\u0926\u0940",C:"Hindi"},hr:{B:"Hrvatski",C:"Croatian"},"hr-HR":{B:"Hrvatski",C:"Croatian"},hsb:{B:"Hornjoserb\u0161\u0107ina",C:"Upper Sorbian"},ht:{B:"Krey\u00f2l",C:"Haitian Creole"},hu:{B:"Magyar",C:"Hungarian"},"hu-HU":{B:"Magyar",C:"Hungarian"},"hy-AM":{B:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",C:"Armenian"},id:{B:"Bahasa Indonesia",
1388
- C:"Indonesian"},"id-ID":{B:"Bahasa Indonesia",C:"Indonesian"},is:{B:"\u00cdslenska",C:"Icelandic"},"is-IS":{B:"\u00cdslenska (Iceland)",C:"Icelandic (Iceland)"},it:{B:"Italiano",C:"Italian"},"it-IT":{B:"Italiano",C:"Italian"},ja:{B:"\u65e5\u672c\u8a9e",C:"Japanese"},"ja-JP":{B:"\u65e5\u672c\u8a9e",C:"Japanese"},"jv-ID":{B:"Basa Jawa",C:"Javanese"},"ka-GE":{B:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8",C:"Georgian"},"kk-KZ":{B:"\u049a\u0430\u0437\u0430\u049b\u0448\u0430",C:"Kazakh"},km:{B:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a",
1389
- C:"Khmer"},"km-KH":{B:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a",C:"Khmer"},kab:{B:"Taqbaylit",C:"Kabyle"},kn:{B:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1",C:"Kannada"},"kn-IN":{B:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1 (India)",C:"Kannada (India)"},ko:{B:"\ud55c\uad6d\uc5b4",C:"Korean"},"ko-KR":{B:"\ud55c\uad6d\uc5b4 (\u97e9\u56fd)",C:"Korean (Korea)"},ku:{B:"Kurd\u00ee",C:"Kurdish"},"ku-TR":{B:"Kurd\u00ee",C:"Kurdish"},la:{B:"Latin",C:"Latin"},"la-VA":{B:"Latin",C:"Latin"},lb:{B:"L\u00ebtzebuergesch",
1390
- C:"Luxembourgish"},"li-NL":{B:"L\u00e8mb\u00f6rgs",C:"Limburgish"},lt:{B:"Lietuvi\u0173",C:"Lithuanian"},"lt-LT":{B:"Lietuvi\u0173",C:"Lithuanian"},lv:{B:"Latvie\u0161u",C:"Latvian"},"lv-LV":{B:"Latvie\u0161u",C:"Latvian"},mai:{B:"\u092e\u0948\u0925\u093f\u0932\u0940, \u09ae\u09c8\u09a5\u09bf\u09b2\u09c0",C:"Maithili"},"mg-MG":{B:"Malagasy",C:"Malagasy"},mk:{B:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438",C:"Macedonian"},"mk-MK":{B:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 (\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438)",
1391
- C:"Macedonian (Macedonian)"},ml:{B:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",C:"Malayalam"},"ml-IN":{B:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",C:"Malayalam"},"mn-MN":{B:"\u041c\u043e\u043d\u0433\u043e\u043b",C:"Mongolian"},mr:{B:"\u092e\u0930\u093e\u0920\u0940",C:"Marathi"},"mr-IN":{B:"\u092e\u0930\u093e\u0920\u0940",C:"Marathi"},ms:{B:"Bahasa Melayu",C:"Malay"},"ms-MY":{B:"Bahasa Melayu",C:"Malay"},mt:{B:"Malti",C:"Maltese"},"mt-MT":{B:"Malti",C:"Maltese"},my:{B:"\u1017\u1019\u102c\u1005\u1000\u102c",
1392
- C:"Burmese"},nb:{B:"Norsk (bokm\u00e5l)",C:"Norwegian (bokmal)"},"nb-NO":{B:"Norsk (bokm\u00e5l)",C:"Norwegian (bokmal)"},ne:{B:"\u0928\u0947\u092a\u093e\u0932\u0940",C:"Nepali"},"ne-NP":{B:"\u0928\u0947\u092a\u093e\u0932\u0940",C:"Nepali"},nl:{B:"Nederlands",C:"Dutch"},"nl-BE":{B:"Nederlands (Belgi\u00eb)",C:"Dutch (Belgium)"},"nl-NL":{B:"Nederlands (Nederland)",C:"Dutch (Netherlands)"},"nn-NO":{B:"Norsk (nynorsk)",C:"Norwegian (nynorsk)"},no:{B:"Norsk",C:"Norwegian"},oc:{B:"Occitan",C:"Occitan"},
1393
- "or-IN":{B:"\u0b13\u0b21\u0b3c\u0b3f\u0b06",C:"Oriya"},pa:{B:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40",C:"Punjabi"},"pa-IN":{B:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40 (\u0a2d\u0a3e\u0a30\u0a24 \u0a28\u0a42\u0a70)",C:"Punjabi (India)"},pl:{B:"Polski",C:"Polish"},"pl-PL":{B:"Polski",C:"Polish"},"ps-AF":{B:"\u067e\u069a\u062a\u0648",C:"Pashto"},pt:{B:"Portugu\u00eas",C:"Portuguese"},"pt-BR":{B:"Portugu\u00eas (Brasil)",C:"Portuguese (Brazil)"},"pt-PT":{B:"Portugu\u00eas (Portugal)",C:"Portuguese (Portugal)"},
1394
- "qu-PE":{B:"Qhichwa",C:"Quechua"},"rm-CH":{B:"Rumantsch",C:"Romansh"},ro:{B:"Rom\u00e2n\u0103",C:"Romanian"},"ro-RO":{B:"Rom\u00e2n\u0103",C:"Romanian"},ru:{B:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",C:"Russian"},"ru-RU":{B:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",C:"Russian"},"sa-IN":{B:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d",C:"Sanskrit"},"se-NO":{B:"Davvis\u00e1megiella",C:"Northern S\u00e1mi"},"si-LK":{B:"\u0db4\u0dc5\u0dcf\u0dad",C:"Sinhala (Sri Lanka)"},sk:{B:"Sloven\u010dina",
1395
- C:"Slovak"},"sk-SK":{B:"Sloven\u010dina (Slovakia)",C:"Slovak (Slovakia)"},sl:{B:"Sloven\u0161\u010dina",C:"Slovenian"},"sl-SI":{B:"Sloven\u0161\u010dina",C:"Slovenian"},"so-SO":{B:"Soomaaliga",C:"Somali"},sq:{B:"Shqip",C:"Albanian"},"sq-AL":{B:"Shqip",C:"Albanian"},sr:{B:"\u0421\u0440\u043f\u0441\u043a\u0438",C:"Serbian"},"sr-RS":{B:"\u0421\u0440\u043f\u0441\u043a\u0438 (Serbia)",C:"Serbian (Serbia)"},su:{B:"Basa Sunda",C:"Sundanese"},sv:{B:"Svenska",C:"Swedish"},"sv-SE":{B:"Svenska",C:"Swedish"},
1396
- sw:{B:"Kiswahili",C:"Swahili"},"sw-KE":{B:"Kiswahili",C:"Swahili (Kenya)"},ta:{B:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",C:"Tamil"},"ta-IN":{B:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",C:"Tamil"},te:{B:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",C:"Telugu"},"te-IN":{B:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",C:"Telugu"},tg:{B:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",C:"Tajik"},"tg-TJ":{B:"\u0442\u043e\u04b7\u0438\u043a\u04e3",C:"Tajik"},th:{B:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",
1397
- C:"Thai"},"th-TH":{B:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",C:"Thai (Thailand)"},tl:{B:"Filipino",C:"Filipino"},"tl-PH":{B:"Filipino",C:"Filipino"},tlh:{B:"tlhIngan-Hol",C:"Klingon"},tr:{B:"T\u00fcrk\u00e7e",C:"Turkish"},"tr-TR":{B:"T\u00fcrk\u00e7e",C:"Turkish"},"tt-RU":{B:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",C:"Tatar"},uk:{B:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",C:"Ukrainian"},"uk-UA":{B:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
1398
- C:"Ukrainian"},ur:{B:"\u0627\u0631\u062f\u0648",C:"Urdu"},"ur-PK":{B:"\u0627\u0631\u062f\u0648",C:"Urdu"},uz:{B:"O'zbek",C:"Uzbek"},"uz-UZ":{B:"O'zbek",C:"Uzbek"},vi:{B:"Ti\u1ebfng Vi\u1ec7t",C:"Vietnamese"},"vi-VN":{B:"Ti\u1ebfng Vi\u1ec7t",C:"Vietnamese"},"xh-ZA":{B:"isiXhosa",C:"Xhosa"},yi:{B:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",C:"Yiddish"},"yi-DE":{B:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",C:"Yiddish (German)"},zh:{B:"\u4e2d\u6587",C:"Chinese"},"zh-HANS":{B:"\u4e2d\u6587\u7b80\u4f53",
1399
- C:"Chinese Simplified"},"zh-HANT":{B:"\u4e2d\u6587\u7e41\u9ad4",C:"Chinese Traditional"},"zh-CN":{B:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",C:"Chinese Simplified (China)"},"zh-HK":{B:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",C:"Chinese Traditional (Hong Kong)"},"zh-SG":{B:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",C:"Chinese Simplified (Singapore)"},"zh-TW":{B:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",C:"Chinese Traditional (Taiwan)"},"zu-ZA":{B:"isiZulu",C:"Zulu"}},eD=u(Object.keys(dD)),fD=eD.next();!fD.done;fD=
1400
- eD.next()){var gD=fD.value;dD[gD.toLowerCase()]=dD[gD]};function hD(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new cd;this.localization=this.controls.ra;this.player=this.controls.Wc();this.video=this.controls.jc();this.adManager=this.player.ue();this.ad=b.getAd();this.eventManager.s(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null})}
1401
- hD.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};N("shaka.ui.Element",hD);hD.prototype.release=hD.prototype.release;function iD(a){return jD(a,"shaka-back-to-overflow-button")}function jD(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function kD(a){a&&(a=jD(a,"shaka-chosen-item"))&&a.parentElement.focus()}function lD(){var a=T("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function mD(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
1402
- function nD(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function oD(a,b){hD.call(this,a,b);var c=this;this.i=T("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=T("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new Ob(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=nD(e-d,!1)+" / "+nD(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
1403
- ""))});this.eventManager.s(this.localization,"locale-updated",function(){});this.eventManager.s(this.localization,"locale-changed",function(){});this.eventManager.s(this.adManager,"ad-started",function(){c.g.Ia();c.g.ya(.5)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Ia(),this.g.ya(.5))}na(oD,hD);oD.prototype.release=function(){this.g.stop();this.g=null;hD.prototype.release.call(this)};N("shaka.ui.AdCounter",oD);function pD(a,b){hD.call(this,a,b);var c=this;this.g=T("div");this.g.classList.add("shaka-ad-position");mD(this.g,!1);this.parent.appendChild(this.g);this.h=T("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.s(this.localization,"locale-updated",function(){c.ad&&qD(c)});this.eventManager.s(this.localization,"locale-changed",function(){c.ad&&qD(c)});this.eventManager.s(this.adManager,"ad-started",function(){qD(c)});this.eventManager.s(this.adManager,
1404
- "ad-stopped",function(){c.h.textContent="";mD(c.g,!1)});this.ad&&qD(this)}na(pD,hD);function qD(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));mD(a.g,!0)}}N("shaka.ui.AdPosition",pD);function rD(a,b){hD.call(this,a,b);var c=this;this.button=Qm();this.parent.appendChild(this.button);this.eventManager.s(this.localization,"locale-updated",function(){c.g()});this.eventManager.s(this.localization,"locale-changed",function(){c.g()});this.eventManager.s(this.video,"play",function(){c.g();c.h()});this.eventManager.s(this.video,"pause",function(){c.g();c.h()});this.eventManager.s(this.video,"seeking",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-paused",function(){c.g();
1405
- c.h()});this.eventManager.s(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g();c.h()});this.eventManager.s(this.button,"click",function(){c.ad&&c.ad.isLinear()?sD(c.controls):tD(c.controls)});this.ad&&(this.g(),this.h())}na(rD,hD);rD.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.A.paused&&!a.Y;return a};
1406
- rD.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.video.ended};rD.prototype.g=function(){};rD.prototype.h=function(){};N("shaka.ui.PlayButton",rD);function uD(a,b){rD.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}na(uD,rD);uD.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};uD.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};N("shaka.ui.BigPlayButton",uD);function vD(a,b){hD.call(this,a,b);var c=this;this.j=this.controls.g;this.h=this.controls.h;this.i=[];this.g=T("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.s(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";mD(c.g,!0)}else mD(c.g,
1407
- !1)});this.eventManager.s(window,"click",function(){mD(c.g,!1)});wD(this)}na(vD,hD);vD.prototype.release=function(){this.h=null;for(var a=u(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];hD.prototype.release.call(this)};function xD(a,b){yD.set(a,b)}function wD(a){for(var b=u(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=yD.get(c);d?a.i.push(d.create(a.g,a.controls)):Ua("Unrecognized context menu element:",c)}}N("shaka.ui.ContextMenu",vD);
1408
- vD.registerElement=xD;var yD=new Map;function zD(a,b){hD.call(this,a,b);var c=this;this.m=null;this.o=!1;this.j=new Ob(function(){0!=parseInt(c.h.textContent,10)&&(c.video.currentTime=c.controls.Wf()+parseInt(c.h.textContent,10));c.g.style.opacity="0";c.o=!1;c.h.textContent="0s"});this.g=T("div");this.parent.appendChild(this.g);this.eventManager.s(this.g,"touchend",function(d){c.controls.kc()&&(c.controls.Bd()?(d.preventDefault(),c.controls.yc()):0<c.controls.g.tapSeekDistance&&((d.preventDefault(),d=c.controls.g.tapSeekDistance,c.o)?
1409
- c.m+1E3>Date.now()&&(c.j.stop(),c.m=Date.now(),c.h.textContent=(c.l?parseInt(c.h.textContent,10)-d:parseInt(c.h.textContent,10)+d).toString()+"s",c.g.style.opacity="1",c.j.V(1)):(c.o=!0,c.m=Date.now(),c.j.V(1))))});this.h=T("span");this.h.textContent="0s";this.g.appendChild(this.h);this.i=T("span");this.i.classList.add("shaka-forward-rewind-container-icon");this.g.appendChild(this.i);this.l=!1}na(zD,hD);N("shaka.ui.HiddenSeekButton",zD);function AD(a,b){zD.call(this,a,b);this.g.classList.add("shaka-fast-foward-container");this.i.textContent="fast_forward";this.l=!1}na(AD,zD);N("shaka.ui.HiddenFastForwardButton",AD);function BD(a,b){zD.call(this,a,b);this.g.classList.add("shaka-rewind-container");this.i.textContent="fast_rewind";this.l=!0}na(BD,zD);N("shaka.ui.HiddenRewindButton",BD);function CD(a,b,c,d){hD.call(this,a,b);var e=this;this.container=T("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,y(c));this.h=!1;this.bar=document.createElement("input");this.G=new Ob(function(){e.onChangeEnd();e.h=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,y(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
1410
- this.parent.appendChild(this.container);this.eventManager.s(this.bar,"mousedown",function(){e.controls.kc()&&(e.h=!0,e.onChangeStart())});this.eventManager.s(this.bar,"touchstart",function(f){e.controls.kc()&&(e.h=!0,DD(e,f),e.onChangeStart())});this.eventManager.s(this.bar,"input",function(){e.onChange()});this.eventManager.s(this.bar,"touchmove",function(f){e.h&&(DD(e,f),e.onChange())});this.eventManager.s(this.bar,"touchend",function(f){e.h&&(e.h=!1,DD(e,f),e.onChangeEnd())});this.eventManager.s(this.bar,
1411
- "touchcancel",function(f){e.h&&(e.h=!1,DD(e,f),e.onChangeEnd())});this.eventManager.s(this.bar,"mouseup",function(){e.h&&(e.h=!1,e.onChangeEnd())});this.eventManager.s(this.bar,"blur",function(){e.h&&(e.h=!1,e.onChangeEnd())});this.eventManager.s(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}na(CD,hD);q=CD.prototype;q.release=function(){this.G&&(this.G.stop(),this.G=null);hD.prototype.release.call(this)};q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};
1381
+ for(var gD={ach:{C:"Lwo",D:"Acholi"},ady:{C:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",D:"Adyghe"},af:{C:"Afrikaans",D:"Afrikaans"},"af-NA":{C:"Afrikaans (Namibia)",D:"Afrikaans (Namibia)"},"af-ZA":{C:"Afrikaans (South Africa)",D:"Afrikaans (South Africa)"},ak:{C:"T\u0255\u0265i",D:"Akan"},ar:{C:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",D:"Arabic"},"ar-AR":{C:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",D:"Arabic"},"ar-MA":{C:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",D:"Arabic (Morocco)"},
1382
+ "ar-SA":{C:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",D:"Arabic (Saudi Arabia)"},"ay-BO":{C:"Aymar aru",D:"Aymara"},az:{C:"Az\u0259rbaycan dili",D:"Azerbaijani"},"az-AZ":{C:"Az\u0259rbaycan dili",D:"Azerbaijani"},"be-BY":{C:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",D:"Belarusian"},bg:{C:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",D:"Bulgarian"},"bg-BG":{C:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",
1383
+ D:"Bulgarian"},bn:{C:"\u09ac\u09be\u0982\u09b2\u09be",D:"Bengali"},"bn-IN":{C:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",D:"Bengali (India)"},"bn-BD":{C:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",D:"Bengali (Bangladesh)"},"bs-BA":{C:"Bosanski",D:"Bosnian"},ca:{C:"Catal\u00e0",D:"Catalan"},"ca-ES":{C:"Catal\u00e0",D:"Catalan"},cak:{C:"Maya Kaqchikel",D:"Kaqchikel"},"ck-US":{C:"\u13e3\u13b3\u13a9 (tsalagi)",D:"Cherokee"},cs:{C:"\u010ce\u0161tina",
1384
+ D:"Czech"},"cs-CZ":{C:"\u010ce\u0161tina",D:"Czech"},cy:{C:"Cymraeg",D:"Welsh"},"cy-GB":{C:"Cymraeg",D:"Welsh"},da:{C:"Dansk",D:"Danish"},"da-DK":{C:"Dansk",D:"Danish"},de:{C:"Deutsch",D:"German"},"de-AT":{C:"Deutsch (\u00d6sterreich)",D:"German (Austria)"},"de-DE":{C:"Deutsch (Deutschland)",D:"German (Germany)"},"de-CH":{C:"Deutsch (Schweiz)",D:"German (Switzerland)"},dsb:{C:"Dolnoserb\u0161\u0107ina",D:"Lower Sorbian"},el:{C:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",D:"Greek"},"el-GR":{C:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",
1385
+ D:"Greek (Greece)"},en:{C:"English",D:"English"},"en-GB":{C:"English (UK)",D:"English (UK)"},"en-AU":{C:"English (Australia)",D:"English (Australia)"},"en-CA":{C:"English (Canada)",D:"English (Canada)"},"en-IE":{C:"English (Ireland)",D:"English (Ireland)"},"en-IN":{C:"English (India)",D:"English (India)"},"en-PI":{C:"English (Pirate)",D:"English (Pirate)"},"en-UD":{C:"English (Upside Down)",D:"English (Upside Down)"},"en-US":{C:"English (US)",D:"English (US)"},"en-ZA":{C:"English (South Africa)",
1386
+ D:"English (South Africa)"},"en@pirate":{C:"English (Pirate)",D:"English (Pirate)"},eo:{C:"Esperanto",D:"Esperanto"},"eo-EO":{C:"Esperanto",D:"Esperanto"},es:{C:"Espa\u00f1ol",D:"Spanish"},"es-AR":{C:"Espa\u00f1ol (Argentine)",D:"Spanish (Argentina)"},"es-419":{C:"Espa\u00f1ol (Latinoam\u00e9rica)",D:"Spanish (Latin America)"},"es-CL":{C:"Espa\u00f1ol (Chile)",D:"Spanish (Chile)"},"es-CO":{C:"Espa\u00f1ol (Colombia)",D:"Spanish (Colombia)"},"es-EC":{C:"Espa\u00f1ol (Ecuador)",D:"Spanish (Ecuador)"},
1387
+ "es-ES":{C:"Espa\u00f1ol (Espa\u00f1a)",D:"Spanish (Spain)"},"es-LA":{C:"Espa\u00f1ol (Latinoam\u00e9rica)",D:"Spanish (Latin America)"},"es-NI":{C:"Espa\u00f1ol (Nicaragua)",D:"Spanish (Nicaragua)"},"es-MX":{C:"Espa\u00f1ol (M\u00e9xico)",D:"Spanish (Mexico)"},"es-US":{C:"Espa\u00f1ol (Estados Unidos)",D:"Spanish (United States)"},"es-VE":{C:"Espa\u00f1ol (Venezuela)",D:"Spanish (Venezuela)"},et:{C:"eesti keel",D:"Estonian"},"et-EE":{C:"Eesti (Estonia)",D:"Estonian (Estonia)"},eu:{C:"Euskara",D:"Basque"},
1388
+ "eu-ES":{C:"Euskara",D:"Basque"},fa:{C:"\u0641\u0627\u0631\u0633\u06cc",D:"Persian"},"fa-IR":{C:"\u0641\u0627\u0631\u0633\u06cc",D:"Persian"},"fb-LT":{C:"Leet Speak",D:"Leet"},ff:{C:"Fulah",D:"Fulah"},fi:{C:"Suomi",D:"Finnish"},"fi-FI":{C:"Suomi",D:"Finnish"},"fo-FO":{C:"F\u00f8royskt",D:"Faroese"},fr:{C:"Fran\u00e7ais",D:"French"},"fr-CA":{C:"Fran\u00e7ais (Canada)",D:"French (Canada)"},"fr-FR":{C:"Fran\u00e7ais (France)",D:"French (France)"},"fr-BE":{C:"Fran\u00e7ais (Belgique)",D:"French (Belgium)"},
1389
+ "fr-CH":{C:"Fran\u00e7ais (Suisse)",D:"French (Switzerland)"},"fy-NL":{C:"Frysk",D:"Frisian (West)"},ga:{C:"Gaeilge",D:"Irish"},"ga-IE":{C:"Gaeilge (Gaelic)",D:"Irish (Gaelic)"},gl:{C:"Galego",D:"Galician"},"gl-ES":{C:"Galego",D:"Galician"},"gn-PY":{C:"Ava\u00f1e'\u1ebd",D:"Guarani"},"gu-IN":{C:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",D:"Gujarati"},"gx-GR":{C:"\u1f19\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ae \u1f00\u03c1\u03c7\u03b1\u03af\u03b1",D:"Classical Greek"},he:{C:"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f",
1390
+ D:"Hebrew"},"he-IL":{C:"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f",D:"Hebrew"},hi:{C:"\u0939\u093f\u0928\u094d\u0926\u0940",D:"Hindi"},"hi-IN":{C:"\u0939\u093f\u0928\u094d\u0926\u0940",D:"Hindi"},hr:{C:"Hrvatski",D:"Croatian"},"hr-HR":{C:"Hrvatski",D:"Croatian"},hsb:{C:"Hornjoserb\u0161\u0107ina",D:"Upper Sorbian"},ht:{C:"Krey\u00f2l",D:"Haitian Creole"},hu:{C:"Magyar",D:"Hungarian"},"hu-HU":{C:"Magyar",D:"Hungarian"},"hy-AM":{C:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",D:"Armenian"},id:{C:"Bahasa Indonesia",
1391
+ D:"Indonesian"},"id-ID":{C:"Bahasa Indonesia",D:"Indonesian"},is:{C:"\u00cdslenska",D:"Icelandic"},"is-IS":{C:"\u00cdslenska (Iceland)",D:"Icelandic (Iceland)"},it:{C:"Italiano",D:"Italian"},"it-IT":{C:"Italiano",D:"Italian"},ja:{C:"\u65e5\u672c\u8a9e",D:"Japanese"},"ja-JP":{C:"\u65e5\u672c\u8a9e",D:"Japanese"},"jv-ID":{C:"Basa Jawa",D:"Javanese"},"ka-GE":{C:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8",D:"Georgian"},"kk-KZ":{C:"\u049a\u0430\u0437\u0430\u049b\u0448\u0430",D:"Kazakh"},km:{C:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a",
1392
+ D:"Khmer"},"km-KH":{C:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a",D:"Khmer"},kab:{C:"Taqbaylit",D:"Kabyle"},kn:{C:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1",D:"Kannada"},"kn-IN":{C:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1 (India)",D:"Kannada (India)"},ko:{C:"\ud55c\uad6d\uc5b4",D:"Korean"},"ko-KR":{C:"\ud55c\uad6d\uc5b4 (\u97e9\u56fd)",D:"Korean (Korea)"},ku:{C:"Kurd\u00ee",D:"Kurdish"},"ku-TR":{C:"Kurd\u00ee",D:"Kurdish"},la:{C:"Latin",D:"Latin"},"la-VA":{C:"Latin",D:"Latin"},lb:{C:"L\u00ebtzebuergesch",
1393
+ D:"Luxembourgish"},"li-NL":{C:"L\u00e8mb\u00f6rgs",D:"Limburgish"},lt:{C:"Lietuvi\u0173",D:"Lithuanian"},"lt-LT":{C:"Lietuvi\u0173",D:"Lithuanian"},lv:{C:"Latvie\u0161u",D:"Latvian"},"lv-LV":{C:"Latvie\u0161u",D:"Latvian"},mai:{C:"\u092e\u0948\u0925\u093f\u0932\u0940, \u09ae\u09c8\u09a5\u09bf\u09b2\u09c0",D:"Maithili"},"mg-MG":{C:"Malagasy",D:"Malagasy"},mk:{C:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438",D:"Macedonian"},"mk-MK":{C:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 (\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438)",
1394
+ D:"Macedonian (Macedonian)"},ml:{C:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",D:"Malayalam"},"ml-IN":{C:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",D:"Malayalam"},"mn-MN":{C:"\u041c\u043e\u043d\u0433\u043e\u043b",D:"Mongolian"},mr:{C:"\u092e\u0930\u093e\u0920\u0940",D:"Marathi"},"mr-IN":{C:"\u092e\u0930\u093e\u0920\u0940",D:"Marathi"},ms:{C:"Bahasa Melayu",D:"Malay"},"ms-MY":{C:"Bahasa Melayu",D:"Malay"},mt:{C:"Malti",D:"Maltese"},"mt-MT":{C:"Malti",D:"Maltese"},my:{C:"\u1017\u1019\u102c\u1005\u1000\u102c",
1395
+ D:"Burmese"},nb:{C:"Norsk (bokm\u00e5l)",D:"Norwegian (bokmal)"},"nb-NO":{C:"Norsk (bokm\u00e5l)",D:"Norwegian (bokmal)"},ne:{C:"\u0928\u0947\u092a\u093e\u0932\u0940",D:"Nepali"},"ne-NP":{C:"\u0928\u0947\u092a\u093e\u0932\u0940",D:"Nepali"},nl:{C:"Nederlands",D:"Dutch"},"nl-BE":{C:"Nederlands (Belgi\u00eb)",D:"Dutch (Belgium)"},"nl-NL":{C:"Nederlands (Nederland)",D:"Dutch (Netherlands)"},"nn-NO":{C:"Norsk (nynorsk)",D:"Norwegian (nynorsk)"},no:{C:"Norsk",D:"Norwegian"},oc:{C:"Occitan",D:"Occitan"},
1396
+ "or-IN":{C:"\u0b13\u0b21\u0b3c\u0b3f\u0b06",D:"Oriya"},pa:{C:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40",D:"Punjabi"},"pa-IN":{C:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40 (\u0a2d\u0a3e\u0a30\u0a24 \u0a28\u0a42\u0a70)",D:"Punjabi (India)"},pl:{C:"Polski",D:"Polish"},"pl-PL":{C:"Polski",D:"Polish"},"ps-AF":{C:"\u067e\u069a\u062a\u0648",D:"Pashto"},pt:{C:"Portugu\u00eas",D:"Portuguese"},"pt-BR":{C:"Portugu\u00eas (Brasil)",D:"Portuguese (Brazil)"},"pt-PT":{C:"Portugu\u00eas (Portugal)",D:"Portuguese (Portugal)"},
1397
+ "qu-PE":{C:"Qhichwa",D:"Quechua"},"rm-CH":{C:"Rumantsch",D:"Romansh"},ro:{C:"Rom\u00e2n\u0103",D:"Romanian"},"ro-RO":{C:"Rom\u00e2n\u0103",D:"Romanian"},ru:{C:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",D:"Russian"},"ru-RU":{C:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",D:"Russian"},"sa-IN":{C:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d",D:"Sanskrit"},"se-NO":{C:"Davvis\u00e1megiella",D:"Northern S\u00e1mi"},"si-LK":{C:"\u0db4\u0dc5\u0dcf\u0dad",D:"Sinhala (Sri Lanka)"},sk:{C:"Sloven\u010dina",
1398
+ D:"Slovak"},"sk-SK":{C:"Sloven\u010dina (Slovakia)",D:"Slovak (Slovakia)"},sl:{C:"Sloven\u0161\u010dina",D:"Slovenian"},"sl-SI":{C:"Sloven\u0161\u010dina",D:"Slovenian"},"so-SO":{C:"Soomaaliga",D:"Somali"},sq:{C:"Shqip",D:"Albanian"},"sq-AL":{C:"Shqip",D:"Albanian"},sr:{C:"\u0421\u0440\u043f\u0441\u043a\u0438",D:"Serbian"},"sr-RS":{C:"\u0421\u0440\u043f\u0441\u043a\u0438 (Serbia)",D:"Serbian (Serbia)"},su:{C:"Basa Sunda",D:"Sundanese"},sv:{C:"Svenska",D:"Swedish"},"sv-SE":{C:"Svenska",D:"Swedish"},
1399
+ sw:{C:"Kiswahili",D:"Swahili"},"sw-KE":{C:"Kiswahili",D:"Swahili (Kenya)"},ta:{C:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",D:"Tamil"},"ta-IN":{C:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",D:"Tamil"},te:{C:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",D:"Telugu"},"te-IN":{C:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",D:"Telugu"},tg:{C:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",D:"Tajik"},"tg-TJ":{C:"\u0442\u043e\u04b7\u0438\u043a\u04e3",D:"Tajik"},th:{C:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",
1400
+ D:"Thai"},"th-TH":{C:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",D:"Thai (Thailand)"},tl:{C:"Filipino",D:"Filipino"},"tl-PH":{C:"Filipino",D:"Filipino"},tlh:{C:"tlhIngan-Hol",D:"Klingon"},tr:{C:"T\u00fcrk\u00e7e",D:"Turkish"},"tr-TR":{C:"T\u00fcrk\u00e7e",D:"Turkish"},"tt-RU":{C:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",D:"Tatar"},uk:{C:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",D:"Ukrainian"},"uk-UA":{C:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
1401
+ D:"Ukrainian"},ur:{C:"\u0627\u0631\u062f\u0648",D:"Urdu"},"ur-PK":{C:"\u0627\u0631\u062f\u0648",D:"Urdu"},uz:{C:"O'zbek",D:"Uzbek"},"uz-UZ":{C:"O'zbek",D:"Uzbek"},vi:{C:"Ti\u1ebfng Vi\u1ec7t",D:"Vietnamese"},"vi-VN":{C:"Ti\u1ebfng Vi\u1ec7t",D:"Vietnamese"},"xh-ZA":{C:"isiXhosa",D:"Xhosa"},yi:{C:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",D:"Yiddish"},"yi-DE":{C:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",D:"Yiddish (German)"},zh:{C:"\u4e2d\u6587",D:"Chinese"},"zh-HANS":{C:"\u4e2d\u6587\u7b80\u4f53",
1402
+ D:"Chinese Simplified"},"zh-HANT":{C:"\u4e2d\u6587\u7e41\u9ad4",D:"Chinese Traditional"},"zh-CN":{C:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",D:"Chinese Simplified (China)"},"zh-HK":{C:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",D:"Chinese Traditional (Hong Kong)"},"zh-SG":{C:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",D:"Chinese Simplified (Singapore)"},"zh-TW":{C:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",D:"Chinese Traditional (Taiwan)"},"zu-ZA":{C:"isiZulu",D:"Zulu"}},hD=u(Object.keys(gD)),iD=hD.next();!iD.done;iD=
1403
+ hD.next()){var jD=iD.value;gD[jD.toLowerCase()]=gD[jD]};function kD(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new cd;this.localization=this.controls.ra;this.player=this.controls.Wc();this.video=this.controls.jc();this.adManager=this.player.ue();this.ad=b.getAd();this.eventManager.s(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null})}
1404
+ kD.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};N("shaka.ui.Element",kD);kD.prototype.release=kD.prototype.release;function lD(a){return mD(a,"shaka-back-to-overflow-button")}function mD(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function nD(a){a&&(a=mD(a,"shaka-chosen-item"))&&a.parentElement.focus()}function oD(){var a=T("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function pD(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
1405
+ function qD(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function rD(a,b){kD.call(this,a,b);var c=this;this.i=T("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=T("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new Ob(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=qD(e-d,!1)+" / "+qD(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
1406
+ ""))});this.eventManager.s(this.localization,"locale-updated",function(){});this.eventManager.s(this.localization,"locale-changed",function(){});this.eventManager.s(this.adManager,"ad-started",function(){c.g.Ia();c.g.ya(.5)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Ia(),this.g.ya(.5))}na(rD,kD);rD.prototype.release=function(){this.g.stop();this.g=null;kD.prototype.release.call(this)};N("shaka.ui.AdCounter",rD);function sD(a,b){kD.call(this,a,b);var c=this;this.g=T("div");this.g.classList.add("shaka-ad-position");pD(this.g,!1);this.parent.appendChild(this.g);this.h=T("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.s(this.localization,"locale-updated",function(){c.ad&&tD(c)});this.eventManager.s(this.localization,"locale-changed",function(){c.ad&&tD(c)});this.eventManager.s(this.adManager,"ad-started",function(){tD(c)});this.eventManager.s(this.adManager,
1407
+ "ad-stopped",function(){c.h.textContent="";pD(c.g,!1)});this.ad&&tD(this)}na(sD,kD);function tD(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));pD(a.g,!0)}}N("shaka.ui.AdPosition",sD);function uD(a,b){kD.call(this,a,b);var c=this;this.button=Qm();this.parent.appendChild(this.button);this.eventManager.s(this.localization,"locale-updated",function(){c.g()});this.eventManager.s(this.localization,"locale-changed",function(){c.g()});this.eventManager.s(this.video,"play",function(){c.g();c.h()});this.eventManager.s(this.video,"pause",function(){c.g();c.h()});this.eventManager.s(this.video,"seeking",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-paused",function(){c.g();
1408
+ c.h()});this.eventManager.s(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g();c.h()});this.eventManager.s(this.button,"click",function(){c.ad&&c.ad.isLinear()?vD(c.controls):wD(c.controls)});this.ad&&(this.g(),this.h())}na(uD,kD);uD.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.A.paused&&!a.Y;return a};
1409
+ uD.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.video.ended};uD.prototype.g=function(){};uD.prototype.h=function(){};N("shaka.ui.PlayButton",uD);function xD(a,b){uD.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}na(xD,uD);xD.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};xD.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};N("shaka.ui.BigPlayButton",xD);function yD(a,b){kD.call(this,a,b);var c=this;this.j=this.controls.g;this.h=this.controls.h;this.i=[];this.g=T("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.s(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";pD(c.g,!0)}else pD(c.g,
1410
+ !1)});this.eventManager.s(window,"click",function(){pD(c.g,!1)});zD(this)}na(yD,kD);yD.prototype.release=function(){this.h=null;for(var a=u(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];kD.prototype.release.call(this)};function AD(a,b){BD.set(a,b)}function zD(a){for(var b=u(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=BD.get(c);d?a.i.push(d.create(a.g,a.controls)):Ua("Unrecognized context menu element:",c)}}N("shaka.ui.ContextMenu",yD);
1411
+ yD.registerElement=AD;var BD=new Map;function CD(a,b){kD.call(this,a,b);var c=this;this.m=null;this.o=!1;this.j=new Ob(function(){0!=parseInt(c.h.textContent,10)&&(c.video.currentTime=c.controls.Wf()+parseInt(c.h.textContent,10));c.g.style.opacity="0";c.o=!1;c.h.textContent="0s"});this.g=T("div");this.parent.appendChild(this.g);this.eventManager.s(this.g,"touchend",function(d){c.controls.kc()&&(c.controls.Bd()?(d.preventDefault(),c.controls.yc()):0<c.controls.g.tapSeekDistance&&((d.preventDefault(),d=c.controls.g.tapSeekDistance,c.o)?
1412
+ c.m+1E3>Date.now()&&(c.j.stop(),c.m=Date.now(),c.h.textContent=(c.l?parseInt(c.h.textContent,10)-d:parseInt(c.h.textContent,10)+d).toString()+"s",c.g.style.opacity="1",c.j.V(1)):(c.o=!0,c.m=Date.now(),c.j.V(1))))});this.h=T("span");this.h.textContent="0s";this.g.appendChild(this.h);this.i=T("span");this.i.classList.add("shaka-forward-rewind-container-icon");this.g.appendChild(this.i);this.l=!1}na(CD,kD);N("shaka.ui.HiddenSeekButton",CD);function DD(a,b){CD.call(this,a,b);this.g.classList.add("shaka-fast-foward-container");this.i.textContent="fast_forward";this.l=!1}na(DD,CD);N("shaka.ui.HiddenFastForwardButton",DD);function ED(a,b){CD.call(this,a,b);this.g.classList.add("shaka-rewind-container");this.i.textContent="fast_rewind";this.l=!0}na(ED,CD);N("shaka.ui.HiddenRewindButton",ED);function FD(a,b,c,d){kD.call(this,a,b);var e=this;this.container=T("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,w(c));this.h=!1;this.bar=document.createElement("input");this.G=new Ob(function(){e.onChangeEnd();e.h=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,w(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
1413
+ this.parent.appendChild(this.container);this.eventManager.s(this.bar,"mousedown",function(){e.controls.kc()&&(e.h=!0,e.onChangeStart())});this.eventManager.s(this.bar,"touchstart",function(f){e.controls.kc()&&(e.h=!0,GD(e,f),e.onChangeStart())});this.eventManager.s(this.bar,"input",function(){e.onChange()});this.eventManager.s(this.bar,"touchmove",function(f){e.h&&(GD(e,f),e.onChange())});this.eventManager.s(this.bar,"touchend",function(f){e.h&&(e.h=!1,GD(e,f),e.onChangeEnd())});this.eventManager.s(this.bar,
1414
+ "touchcancel",function(f){e.h&&(e.h=!1,GD(e,f),e.onChangeEnd())});this.eventManager.s(this.bar,"mouseup",function(){e.h&&(e.h=!1,e.onChangeEnd())});this.eventManager.s(this.bar,"blur",function(){e.h&&(e.h=!1,e.onChangeEnd())});this.eventManager.s(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}na(FD,kD);q=FD.prototype;q.release=function(){this.G&&(this.G.stop(),this.G=null);kD.prototype.release.call(this)};q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};
1412
1415
  q.onChangeStart=function(){};q.onChange=function(){};q.onChangeEnd=function(){};q.changeTo=function(a){this.h||(this.h=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.G.V(.5)};q.getValue=function(){return parseFloat(this.bar.value)};q.setValue=function(a){this.h||(this.bar.value=a)};
1413
- function DD(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}N("shaka.ui.RangeElement",CD);CD.prototype.setValue=CD.prototype.setValue;CD.prototype.getValue=CD.prototype.getValue;CD.prototype.changeTo=CD.prototype.changeTo;CD.prototype.onChangeEnd=CD.prototype.onChangeEnd;CD.prototype.onChange=CD.prototype.onChange;CD.prototype.onChangeStart=CD.prototype.onChangeStart;
1414
- CD.prototype.setRange=CD.prototype.setRange;function ED(a,b){CD.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.F=T("div");this.F.classList.add("shaka-ad-markers");this.container.insertBefore(this.F,this.container.childNodes[0]);this.H=this.controls.g;this.o=new Ob(function(){var d=c.getValue();c.player.U()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.I=new Ob(function(){FD(c)});this.K=!1;this.i=T("div");this.i.id="shaka-player-ui-thumbnail-container";
1415
- this.g=T("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.u=T("div");this.u.id="shaka-player-ui-thumbnail-time";this.i.appendChild(this.g);this.i.appendChild(this.u);this.container.appendChild(this.i);this.j=this.l=null;this.J=!1;this.m=new Ob(function(){GD(c)});this.A=[];this.eventManager.s(this.localization,"locale-updated",function(){return HD(c)});this.eventManager.s(this.localization,"locale-changed",function(){return HD(c)});this.eventManager.s(this.adManager,"ad-started",
1416
- function(){ID(c)||mD(c.container,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){ID(c)&&mD(c.container,!0)});this.eventManager.s(this.adManager,"ad-cue-points-changed",function(d){c.A=d.cuepoints;JD(c)});this.eventManager.s(this.player,"unloading",function(){c.A=[];JD(c);c.j&&(c.j.abort(),c.j=null);c.l=null;GD(c)});this.eventManager.s(this.bar,"mousemove",function(d){if(c.player.ve().length){var e=c.bar.getBoundingClientRect(),f=parseFloat(c.bar.min);d=d.clientX-e.left;KD(c,d,Math.round(f+
1417
- (parseFloat(c.bar.max)-f)/e.width*d))}else GD(c)});this.eventManager.s(this.container,"mouseleave",function(){c.m.stop();c.m.V(.25)});this.setValue(this.video.currentTime);this.update();HD(this);this.ad&&mD(this.container,!1)}na(ED,CD);q=ED.prototype;q.release=function(){this.o&&(this.o.stop(),this.o=null,this.I.stop(),this.I=null);CD.prototype.release.call(this)};q.onChangeStart=function(){this.K=!this.video.paused;this.controls.Hg(!0);this.video.pause();this.m.stop();this.J=!0};
1418
- q.onChange=function(){if(this.video.duration)if(this.update(),this.o.V(.125),this.player.ve().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());KD(this,(d-a)/((b-a)/c.width),d)}else GD(this)};q.onChangeEnd=function(){this.o.Ia();this.controls.Hg(!1);this.K&&this.video.play();this.J&&(this.J=!1,this.m.stop(),this.m.V(.25))};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1419
- q.update=function(){var a=this.H.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Pa(),g=f.end-f.start;this.setRange(f.start,f.end);ID(this)?(mD(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.H.showUnbufferedStart?
1420
- a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")")):mD(this.container,!1)};
1421
- function FD(a){if(a.A.length){for(var b=a.player.Pa(),c=b.end-b.start,d=["to right"],e=[],f=a.H.seekBarColors.adBreaks,g=!1,h=u(a.A),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=u(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
1422
- 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.F.style.background="linear-gradient("+d.join(",")+")"}else a.F.style.background="transparent"}function JD(a){FD(a);var b=a.player.Pa();b=b.end-b.start;a.player.U()&&5<b&&a.I.ya(1)}function ID(a){var b=a.player.Pa();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function HD(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
1423
- function KD(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,x,w,B,v,A,z;L(function(C){switch(C.g){case 1:d=LD(a);if(!d)return GD(a),C.return();0>c&&(c=0);e=a.player.Pa();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return D(C,a.player.$f(d.id,f),2);case 2:g=C.h;if(!g||!g.uris.length)return GD(a),C.return();a.player.U()?(h=e.end-c,a.u.textContent=1>h?a.localization.resolve("LIVE"):"-"+MD(h)):a.u.textContent=MD(c);k=-10;l=a.i.clientWidth;m=Math.floor(9*l/16);a.i.style.height=m+"px";a.i.style.top=
1424
- -(m-k)+"px";n=Math.min(a.bar.offsetWidth-l,Math.max(0,b-l/2));a.i.style.left=n+"px";a.i.style.visibility="visible";r=g.uris[0].split("#xywh=")[0];if(a.l&&r===a.l.uris[0].split("#xywh=")[0]&&g.segment.Mb()==a.l.segment.Mb()&&g.segment.Jb()==a.l.segment.Jb()){C.D(3);break}a.l=g;a.j&&(a.j.abort(),a.j=null);if("mjpg"!=d.codecs&&!r.startsWith("offline:")){C.D(4);break}a.g.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>';ra(C,5);p=xg;t=ql(g.segment.ka(),g.segment.Mb(),g.segment.Jb(),a.player.getConfiguration().streaming.retryParameters);
1425
- a.j=a.player.fc().request(p,t,{type:1});return D(C,a.j.promise,7);case 7:x=C.h;a.j=null;"mjpg"==d.codecs?(w=(new Gg).box("mdat",Qg(function(E){r=URL.createObjectURL(new Blob([E],{type:"image/jpeg"}))})),w.parse(x.data,!1)):(B=d.mimeType||"image/jpeg",v=new Blob([x.data],{type:B}),r=URL.createObjectURL(v));ta(C,4);break;case 5:A=ua(C);if(7001==A.code)return C.return();throw A;case 4:try{a.i.removeChild(a.g)}catch(E){}a.g=T("img");a.g.id="shaka-player-ui-thumbnail-image";a.g.draggable=!1;a.g.src=r;
1416
+ function GD(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}N("shaka.ui.RangeElement",FD);FD.prototype.setValue=FD.prototype.setValue;FD.prototype.getValue=FD.prototype.getValue;FD.prototype.changeTo=FD.prototype.changeTo;FD.prototype.onChangeEnd=FD.prototype.onChangeEnd;FD.prototype.onChange=FD.prototype.onChange;FD.prototype.onChangeStart=FD.prototype.onChangeStart;
1417
+ FD.prototype.setRange=FD.prototype.setRange;function HD(a,b){FD.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.F=T("div");this.F.classList.add("shaka-ad-markers");this.container.insertBefore(this.F,this.container.childNodes[0]);this.H=this.controls.g;this.o=new Ob(function(){var d=c.getValue();c.player.U()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.I=new Ob(function(){ID(c)});this.K=!1;this.i=T("div");this.i.id="shaka-player-ui-thumbnail-container";
1418
+ this.g=T("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.u=T("div");this.u.id="shaka-player-ui-thumbnail-time";this.i.appendChild(this.g);this.i.appendChild(this.u);this.container.appendChild(this.i);this.j=this.l=null;this.J=!1;this.m=new Ob(function(){JD(c)});this.A=[];this.eventManager.s(this.localization,"locale-updated",function(){return KD(c)});this.eventManager.s(this.localization,"locale-changed",function(){return KD(c)});this.eventManager.s(this.adManager,"ad-started",
1419
+ function(){LD(c)||pD(c.container,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){LD(c)&&pD(c.container,!0)});this.eventManager.s(this.adManager,"ad-cue-points-changed",function(d){c.A=d.cuepoints;MD(c)});this.eventManager.s(this.player,"unloading",function(){c.A=[];MD(c);c.j&&(c.j.abort(),c.j=null);c.l=null;JD(c)});this.eventManager.s(this.bar,"mousemove",function(d){if(c.player.ve().length){var e=c.bar.getBoundingClientRect(),f=parseFloat(c.bar.min);d=d.clientX-e.left;ND(c,d,Math.round(f+
1420
+ (parseFloat(c.bar.max)-f)/e.width*d))}else JD(c)});this.eventManager.s(this.container,"mouseleave",function(){c.m.stop();c.m.V(.25)});this.setValue(this.video.currentTime);this.update();KD(this);this.ad&&pD(this.container,!1)}na(HD,FD);q=HD.prototype;q.release=function(){this.o&&(this.o.stop(),this.o=null,this.I.stop(),this.I=null);FD.prototype.release.call(this)};q.onChangeStart=function(){this.K=!this.video.paused;this.controls.Hg(!0);this.video.pause();this.m.stop();this.J=!0};
1421
+ q.onChange=function(){if(this.video.duration)if(this.update(),this.o.V(.125),this.player.ve().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());ND(this,(d-a)/((b-a)/c.width),d)}else JD(this)};q.onChangeEnd=function(){this.o.Ia();this.controls.Hg(!1);this.K&&this.video.play();this.J&&(this.J=!1,this.m.stop(),this.m.V(.25))};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1422
+ q.update=function(){var a=this.H.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Pa(),g=f.end-f.start;this.setRange(f.start,f.end);LD(this)?(pD(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.H.showUnbufferedStart?
1423
+ a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")")):pD(this.container,!1)};
1424
+ function ID(a){if(a.A.length){for(var b=a.player.Pa(),c=b.end-b.start,d=["to right"],e=[],f=a.H.seekBarColors.adBreaks,g=!1,h=u(a.A),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=u(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
1425
+ 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.F.style.background="linear-gradient("+d.join(",")+")"}else a.F.style.background="transparent"}function MD(a){ID(a);var b=a.player.Pa();b=b.end-b.start;a.player.U()&&5<b&&a.I.ya(1)}function LD(a){var b=a.player.Pa();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function KD(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
1426
+ function ND(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,t,y,x,A,v,B,z;L(function(C){switch(C.g){case 1:d=OD(a);if(!d)return JD(a),C.return();0>c&&(c=0);e=a.player.Pa();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return D(C,a.player.$f(d.id,f),2);case 2:g=C.h;if(!g||!g.uris.length)return JD(a),C.return();a.player.U()?(h=e.end-c,a.u.textContent=1>h?a.localization.resolve("LIVE"):"-"+PD(h)):a.u.textContent=PD(c);k=-10;l=a.i.clientWidth;m=Math.floor(9*l/16);a.i.style.height=m+"px";a.i.style.top=
1427
+ -(m-k)+"px";n=Math.min(a.bar.offsetWidth-l,Math.max(0,b-l/2));a.i.style.left=n+"px";a.i.style.visibility="visible";r=g.uris[0].split("#xywh=")[0];if(a.l&&r===a.l.uris[0].split("#xywh=")[0]&&g.segment.Mb()==a.l.segment.Mb()&&g.segment.Jb()==a.l.segment.Jb()){C.B(3);break}a.l=g;a.j&&(a.j.abort(),a.j=null);if("mjpg"!=d.codecs&&!r.startsWith("offline:")){C.B(4);break}a.g.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>';ra(C,5);p=xg;t=ql(g.segment.ka(),g.segment.Mb(),g.segment.Jb(),a.player.getConfiguration().streaming.retryParameters);
1428
+ a.j=a.player.fc().request(p,t,{type:1});return D(C,a.j.promise,7);case 7:y=C.h;a.j=null;"mjpg"==d.codecs?(x=(new Gg).box("mdat",Qg(function(E){r=URL.createObjectURL(new Blob([E],{type:"image/jpeg"}))})),x.parse(y.data,!1)):(A=d.mimeType||"image/jpeg",v=new Blob([y.data],{type:A}),r=URL.createObjectURL(v));ta(C,4);break;case 5:B=ua(C);if(7001==B.code)return C.return();throw B;case 4:try{a.i.removeChild(a.g)}catch(E){}a.g=T("img");a.g.id="shaka-player-ui-thumbnail-image";a.g.draggable=!1;a.g.src=r;
1426
1429
  a.g.onload=function(){r.startsWith("blob:")&&URL.revokeObjectURL(r)};a.i.insertBefore(a.g,a.i.firstChild);case 3:z=l/g.width,g.imageHeight?a.g.height=g.imageHeight:g.sprite||(a.g.style.height="100%",a.g.style.objectFit="contain"),g.imageWidth?a.g.width=g.imageWidth:g.sprite||(a.g.style.width="100%",a.g.style.objectFit="contain"),a.g.style.left="-"+z*g.positionX+"px",a.g.style.top="-"+z*g.positionY+"px",a.g.style.transform="scale("+z+")",a.g.style.transformOrigin="left top",m=Math.floor(l*g.height/
1427
1430
  g.width),a.i.style.height=m+"px",a.i.style.top=-(m-k)+"px",G(C)}})}
1428
- function LD(a){var b=a.player.ve();if(!b.length)return null;for(var c={},d=u(["image/avif","image/webp","image/jpeg","image/png","image/svg+xml"]),e=d.next();!e.done;c={mf:c.mf,kf:c.kf},e=d.next())if(c.mf=e.value,c.kf=a.player.getStats().estimatedBandwidth,(e=b.filter(function(f){return function(g){return g.mimeType.toLowerCase()===f.mf&&g.bandwidth<.01*f.kf}}(c)).sort(function(f,g){return g.bandwidth-f.bandwidth}))&&e.length)return e[0];return b.find(function(f){return"application/mp4"==f.mimeType&&
1429
- "mjpg"==f.codecs})||b[0]}function GD(a){a.i.style.visibility="hidden";a.u.textContent=""}function MD(a){var b=Math.round(a);a=Math.floor(b/3600);var c=Math.floor((b-3600*a)/60);b=b-3600*a-60*c;10>b&&(b="0"+b);return 0<a?(10>c&&(c="0"+c),a+":"+c+":"+b):c+":"+b}N("shaka.ui.SeekBar",ED);function ND(){}ND.prototype.create=function(a,b){return new ED(a,b)};ED.Factory=ND;/*
1431
+ function OD(a){var b=a.player.ve();if(!b.length)return null;for(var c={},d=u(["image/avif","image/webp","image/jpeg","image/png","image/svg+xml"]),e=d.next();!e.done;c={mf:c.mf,kf:c.kf},e=d.next())if(c.mf=e.value,c.kf=a.player.getStats().estimatedBandwidth,(e=b.filter(function(f){return function(g){return g.mimeType.toLowerCase()===f.mf&&g.bandwidth<.01*f.kf}}(c)).sort(function(f,g){return g.bandwidth-f.bandwidth}))&&e.length)return e[0];return b.find(function(f){return"application/mp4"==f.mimeType&&
1432
+ "mjpg"==f.codecs})||b[0]}function JD(a){a.i.style.visibility="hidden";a.u.textContent=""}function PD(a){var b=Math.round(a);a=Math.floor(b/3600);var c=Math.floor((b-3600*a)/60);b=b-3600*a-60*c;10>b&&(b="0"+b);return 0<a?(10>c&&(c="0"+c),a+":"+c+":"+b):c+":"+b}N("shaka.ui.SeekBar",HD);function QD(){}QD.prototype.create=function(a,b){return new HD(a,b)};HD.Factory=QD;/*
1430
1433
  @license
1431
1434
  glMatrix: https://github.com/toji/gl-matrix/
1432
1435
  Copyright 2015-2021, Brandon Jones, Colin MacKenzie IV
1433
1436
  SPDX-License-Identifier: MIT
1434
1437
  */
1435
- function OD(){var a=new Float32Array(16);a[0]=1;a[5]=1;a[10]=1;a[15]=1;return a}function PD(a,b,c){b=1/Math.tan(b/2);a[0]=b/c;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=b;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[11]=-1;a[12]=0;a[13]=0;a[15]=0;c=1/-99.9;a[10]=100.1*c;a[14]=20*c}
1436
- function QD(a,b,c){var d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],k=b[5],l=b[6],m=b[7],n=b[8],r=b[9],p=b[10],t=b[11],x=b[12],w=b[13],B=b[14];b=b[15];var v=c[0],A=c[1],z=c[2],C=c[3];a[0]=v*d+A*h+z*n+C*x;a[1]=v*e+A*k+z*r+C*w;a[2]=v*f+A*l+z*p+C*B;a[3]=v*g+A*m+z*t+C*b;v=c[4];A=c[5];z=c[6];C=c[7];a[4]=v*d+A*h+z*n+C*x;a[5]=v*e+A*k+z*r+C*w;a[6]=v*f+A*l+z*p+C*B;a[7]=v*g+A*m+z*t+C*b;v=c[8];A=c[9];z=c[10];C=c[11];a[8]=v*d+A*h+z*n+C*x;a[9]=v*e+A*k+z*r+C*w;a[10]=v*f+A*l+z*p+C*B;a[11]=v*g+A*m+z*t+C*b;v=c[12];A=c[13];
1437
- z=c[14];C=c[15];a[12]=v*d+A*h+z*n+C*x;a[13]=v*e+A*k+z*r+C*w;a[14]=v*f+A*l+z*p+C*B;a[15]=v*g+A*m+z*t+C*b}
1438
- function RD(a,b){var c=new Float32Array(3),d=b[0],e=b[1],f=b[2],g=b[4],h=b[5],k=b[6],l=b[8],m=b[9],n=b[10];c[0]=Math.sqrt(d*d+e*e+f*f);c[1]=Math.sqrt(g*g+h*h+k*k);c[2]=Math.sqrt(l*l+m*m+n*n);k=1/c[0];l=1/c[1];m=1/c[2];g=b[0]*k;c=b[1]*l;d=b[2]*m;e=b[4]*k;h=b[5]*l;f=b[6]*m;k*=b[8];l*=b[9];b=b[10]*m;m=g+h+b;0<m?(b=2*Math.sqrt(m+1),a[3]=.25*b,a[0]=(f-l)/b,a[1]=(k-d)/b,a[2]=(c-e)/b):g>h&&g>b?(b=2*Math.sqrt(1+g-h-b),a[3]=(f-l)/b,a[0]=.25*b,a[1]=(c+e)/b,a[2]=(k+d)/b):h>b?(b=2*Math.sqrt(1+h-g-b),a[3]=(k-
1439
- d)/b,a[0]=(c+e)/b,a[1]=.25*b,a[2]=(f+l)/b):(b=2*Math.sqrt(1+b-g-h),a[3]=(c-e)/b,a[0]=(k+d)/b,a[1]=(f+l)/b,a[2]=.25*b)}function SD(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c+c,g=d+d,h=e+e;c*=f;var k=d*f;d*=g;var l=e*f,m=e*g;e*=h;f*=b;g*=b;b*=h;a[0]=1-d-e;a[1]=k+b;a[2]=l-g;a[3]=0;a[4]=k-b;a[5]=1-c-e;a[6]=m+f;a[7]=0;a[8]=l+g;a[9]=m-f;a[10]=1-c-d;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1};function TD(){var a=new Float32Array(4);a[3]=1;return a}function UD(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c*c+d*d+e*e+b*b;0<f&&(f=1/Math.sqrt(f));a[0]=c*f;a[1]=d*f;a[2]=e*f;a[3]=b*f};function VD(a,b,c,d,e){this.m=a;this.oa=b;this.l=c;this.g=d;this.o=new cd;this.L=TD();this.h=TD();this.sa=this.ma=this.aa=this.j=null;this.G=OD();this.I=OD();this.M=OD();this.Y=OD();this.u=null;this.O=!1;this.J=this.F=null;this.qa=this.ra=0;this.$=this.P=this.S=this.K=null;this.H=0;this.i=75;this.X=0;this.A=e;WD(this)}VD.prototype.release=function(){this.o&&(this.o.release(),this.o=null);this.F&&(this.F.stop(),this.F=null);this.J&&(this.J.stop(),this.J=null)};
1440
- VD.prototype.hd=function(){(this.O=!this.O)||this.g.viewport(0,0,this.l.width,this.l.height);XD(this,!1)};
1441
- function WD(a){YD(a);ZD(a);$D(a);aE(a);bE(a);a.o.na(a.m,"loadeddata",function(){var b;a.o.s(a.m,"canplaythrough",function(){XD(a)});a.o.s(a.m,"playing",function(){a.F&&a.F.stop();if(!b){var c=a.oa.rb();c=u(c);for(var d=c.next();!d.done;d=c.next())(d=d.value.frameRate)&&(!b||b<d)&&(b=d)}b||(b=60);XD(a);a.F=(new Ob(function(){XD(a)})).Ia().ya(1/b)});a.o.s(a.m,"pause",function(){a.F.stop();a.F=null;XD(a)});a.o.s(a.m,"seeked",function(){XD(a)});a.o.s(document,"visibilitychange",function(){XD(a)})})}
1442
- function YD(a){var b=a.G,c=[0,0,0],d=[1,0,0],e=[0,1,0],f=c[0],g=c[1];c=c[2];var h=e[0];var k=e[1];var l=e[2];var m=d[0];e=d[1];var n=d[2];if(1E-6>Math.abs(f-m)&&1E-6>Math.abs(g-e)&&1E-6>Math.abs(c-n))for(f=0;16>f;f++)b[f]=0==f%5?1:0;else{d=f-m;e=g-e;m=c-n;var r=1/Math.sqrt(d*d+e*e+m*m);d*=r;e*=r;m*=r;n=k*m-l*e;l=l*d-h*m;h=h*e-k*d;(r=Math.sqrt(n*n+l*l+h*h))?(r=1/r,n*=r,l*=r,h*=r):h=l=n=0;k=e*h-m*l;var p=m*n-d*h;var t=d*l-e*n;(r=Math.sqrt(k*k+p*p+t*t))?(r=1/r,k*=r,p*=r,t*=r):t=p=k=0;b[0]=n;b[1]=k;b[2]=
1443
- d;b[3]=0;b[4]=l;b[5]=p;b[6]=e;b[7]=0;b[8]=h;b[9]=t;b[10]=m;b[11]=0;b[12]=-(n*f+l*g+h*c);b[13]=-(k*f+p*g+t*c);b[14]=-(d*f+e*g+m*c);b[15]=1}RD(a.L,a.G);a=b=a.Y;c=[4,4,4];f=c[0];g=c[1];c=c[2];b[0]=a[0]*f;b[1]=a[1]*f;b[2]=a[2]*f;b[3]=a[3]*f;b[4]=a[4]*g;b[5]=a[5]*g;b[6]=a[6]*g;b[7]=a[7]*g;b[8]=a[8]*c;b[9]=a[9]*c;b[10]=a[10]*c;b[11]=a[11]*c;b[12]=a[12];b[13]=a[13];b[14]=a[14];b[15]=a[15]}
1444
- function ZD(a){cE(a);a.g.viewport(0,0,a.g.drawingBufferWidth,a.g.drawingBufferHeight);a.g.clearColor(0,0,0,1);a.g.enable(a.g.CULL_FACE);a.g.cullFace(a.g.FRONT);a.g.clear(a.g.COLOR_BUFFER_BIT)}
1445
- function $D(a){var b=dE(a,a.g.VERTEX_SHADER),c=dE(a,a.g.FRAGMENT_SHADER);a.j=a.g.createProgram();a.g.attachShader(a.j,b);a.g.attachShader(a.j,c);a.g.linkProgram(a.j);"cubemap"==a.A?(a.S=a.g.getAttribLocation(a.j,"aVertexPosition"),a.P=a.g.getAttribLocation(a.j,"aTextureCoord")):(a.S=a.g.getAttribLocation(a.j,"a_vPosition"),a.g.enableVertexAttribArray(a.S),a.P=a.g.getAttribLocation(a.j,"a_TexCoordinate"),a.g.enableVertexAttribArray(a.P))}
1446
- function dE(a,b){switch(b){case a.g.VERTEX_SHADER:var c="cubemap"==a.A?"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}";
1438
+ function RD(){var a=new Float32Array(16);a[0]=1;a[5]=1;a[10]=1;a[15]=1;return a}function SD(a,b,c){b=1/Math.tan(b/2);a[0]=b/c;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=b;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[11]=-1;a[12]=0;a[13]=0;a[15]=0;c=1/-99.9;a[10]=100.1*c;a[14]=20*c}
1439
+ function TD(a,b,c){var d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],k=b[5],l=b[6],m=b[7],n=b[8],r=b[9],p=b[10],t=b[11],y=b[12],x=b[13],A=b[14];b=b[15];var v=c[0],B=c[1],z=c[2],C=c[3];a[0]=v*d+B*h+z*n+C*y;a[1]=v*e+B*k+z*r+C*x;a[2]=v*f+B*l+z*p+C*A;a[3]=v*g+B*m+z*t+C*b;v=c[4];B=c[5];z=c[6];C=c[7];a[4]=v*d+B*h+z*n+C*y;a[5]=v*e+B*k+z*r+C*x;a[6]=v*f+B*l+z*p+C*A;a[7]=v*g+B*m+z*t+C*b;v=c[8];B=c[9];z=c[10];C=c[11];a[8]=v*d+B*h+z*n+C*y;a[9]=v*e+B*k+z*r+C*x;a[10]=v*f+B*l+z*p+C*A;a[11]=v*g+B*m+z*t+C*b;v=c[12];B=c[13];
1440
+ z=c[14];C=c[15];a[12]=v*d+B*h+z*n+C*y;a[13]=v*e+B*k+z*r+C*x;a[14]=v*f+B*l+z*p+C*A;a[15]=v*g+B*m+z*t+C*b}
1441
+ function UD(a,b){var c=new Float32Array(3),d=b[0],e=b[1],f=b[2],g=b[4],h=b[5],k=b[6],l=b[8],m=b[9],n=b[10];c[0]=Math.sqrt(d*d+e*e+f*f);c[1]=Math.sqrt(g*g+h*h+k*k);c[2]=Math.sqrt(l*l+m*m+n*n);k=1/c[0];l=1/c[1];m=1/c[2];g=b[0]*k;c=b[1]*l;d=b[2]*m;e=b[4]*k;h=b[5]*l;f=b[6]*m;k*=b[8];l*=b[9];b=b[10]*m;m=g+h+b;0<m?(b=2*Math.sqrt(m+1),a[3]=.25*b,a[0]=(f-l)/b,a[1]=(k-d)/b,a[2]=(c-e)/b):g>h&&g>b?(b=2*Math.sqrt(1+g-h-b),a[3]=(f-l)/b,a[0]=.25*b,a[1]=(c+e)/b,a[2]=(k+d)/b):h>b?(b=2*Math.sqrt(1+h-g-b),a[3]=(k-
1442
+ d)/b,a[0]=(c+e)/b,a[1]=.25*b,a[2]=(f+l)/b):(b=2*Math.sqrt(1+b-g-h),a[3]=(c-e)/b,a[0]=(k+d)/b,a[1]=(f+l)/b,a[2]=.25*b)}function VD(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c+c,g=d+d,h=e+e;c*=f;var k=d*f;d*=g;var l=e*f,m=e*g;e*=h;f*=b;g*=b;b*=h;a[0]=1-d-e;a[1]=k+b;a[2]=l-g;a[3]=0;a[4]=k-b;a[5]=1-c-e;a[6]=m+f;a[7]=0;a[8]=l+g;a[9]=m-f;a[10]=1-c-d;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1};function WD(){var a=new Float32Array(4);a[3]=1;return a}function XD(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c*c+d*d+e*e+b*b;0<f&&(f=1/Math.sqrt(f));a[0]=c*f;a[1]=d*f;a[2]=e*f;a[3]=b*f};function YD(a,b,c,d,e){this.m=a;this.oa=b;this.l=c;this.g=d;this.o=new cd;this.L=WD();this.h=WD();this.sa=this.ma=this.aa=this.j=null;this.G=RD();this.I=RD();this.M=RD();this.Y=RD();this.u=null;this.O=!1;this.J=this.F=null;this.qa=this.ra=0;this.$=this.P=this.S=this.K=null;this.H=0;this.i=75;this.X=0;this.A=e;ZD(this)}YD.prototype.release=function(){this.o&&(this.o.release(),this.o=null);this.F&&(this.F.stop(),this.F=null);this.J&&(this.J.stop(),this.J=null)};
1443
+ YD.prototype.hd=function(){(this.O=!this.O)||this.g.viewport(0,0,this.l.width,this.l.height);$D(this,!1)};
1444
+ function ZD(a){aE(a);bE(a);cE(a);dE(a);eE(a);a.o.na(a.m,"loadeddata",function(){var b;a.o.s(a.m,"canplaythrough",function(){$D(a)});a.o.s(a.m,"playing",function(){a.F&&a.F.stop();if(!b){var c=a.oa.rb();c=u(c);for(var d=c.next();!d.done;d=c.next())(d=d.value.frameRate)&&(!b||b<d)&&(b=d)}b||(b=60);$D(a);a.F=(new Ob(function(){$D(a)})).Ia().ya(1/b)});a.o.s(a.m,"pause",function(){a.F.stop();a.F=null;$D(a)});a.o.s(a.m,"seeked",function(){$D(a)});a.o.s(document,"visibilitychange",function(){$D(a)})})}
1445
+ function aE(a){var b=a.G,c=[0,0,0],d=[1,0,0],e=[0,1,0],f=c[0],g=c[1];c=c[2];var h=e[0];var k=e[1];var l=e[2];var m=d[0];e=d[1];var n=d[2];if(1E-6>Math.abs(f-m)&&1E-6>Math.abs(g-e)&&1E-6>Math.abs(c-n))for(f=0;16>f;f++)b[f]=0==f%5?1:0;else{d=f-m;e=g-e;m=c-n;var r=1/Math.sqrt(d*d+e*e+m*m);d*=r;e*=r;m*=r;n=k*m-l*e;l=l*d-h*m;h=h*e-k*d;(r=Math.sqrt(n*n+l*l+h*h))?(r=1/r,n*=r,l*=r,h*=r):h=l=n=0;k=e*h-m*l;var p=m*n-d*h;var t=d*l-e*n;(r=Math.sqrt(k*k+p*p+t*t))?(r=1/r,k*=r,p*=r,t*=r):t=p=k=0;b[0]=n;b[1]=k;b[2]=
1446
+ d;b[3]=0;b[4]=l;b[5]=p;b[6]=e;b[7]=0;b[8]=h;b[9]=t;b[10]=m;b[11]=0;b[12]=-(n*f+l*g+h*c);b[13]=-(k*f+p*g+t*c);b[14]=-(d*f+e*g+m*c);b[15]=1}UD(a.L,a.G);a=b=a.Y;c=[4,4,4];f=c[0];g=c[1];c=c[2];b[0]=a[0]*f;b[1]=a[1]*f;b[2]=a[2]*f;b[3]=a[3]*f;b[4]=a[4]*g;b[5]=a[5]*g;b[6]=a[6]*g;b[7]=a[7]*g;b[8]=a[8]*c;b[9]=a[9]*c;b[10]=a[10]*c;b[11]=a[11]*c;b[12]=a[12];b[13]=a[13];b[14]=a[14];b[15]=a[15]}
1447
+ function bE(a){fE(a);a.g.viewport(0,0,a.g.drawingBufferWidth,a.g.drawingBufferHeight);a.g.clearColor(0,0,0,1);a.g.enable(a.g.CULL_FACE);a.g.cullFace(a.g.FRONT);a.g.clear(a.g.COLOR_BUFFER_BIT)}
1448
+ function cE(a){var b=gE(a,a.g.VERTEX_SHADER),c=gE(a,a.g.FRAGMENT_SHADER);a.j=a.g.createProgram();a.g.attachShader(a.j,b);a.g.attachShader(a.j,c);a.g.linkProgram(a.j);"cubemap"==a.A?(a.S=a.g.getAttribLocation(a.j,"aVertexPosition"),a.P=a.g.getAttribLocation(a.j,"aTextureCoord")):(a.S=a.g.getAttribLocation(a.j,"a_vPosition"),a.g.enableVertexAttribArray(a.S),a.P=a.g.getAttribLocation(a.j,"a_TexCoordinate"),a.g.enableVertexAttribArray(a.P))}
1449
+ function gE(a,b){switch(b){case a.g.VERTEX_SHADER:var c="cubemap"==a.A?"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}";
1447
1450
  break;case a.g.FRAGMENT_SHADER:c="cubemap"==a.A?"varying highp vec2 vTextureCoord;\nuniform sampler2D uSampler;\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}";
1448
1451
  break;default:return null}b=a.g.createShader(b);a.g.shaderSource(b,c);a.g.compileShader(b);return b}
1449
- function aE(a){if("cubemap"==a.A)var b={Zh:[-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],Wh:[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]};else{b=[];for(var c=[],d=[],
1450
- e=0;100>=e;e++){var f=e/100,g=f*Math.PI,h=Math.sin(g);g=Math.cos(g);for(var k=0;100>=k;k++){var l=k/100,m=l*Math.PI*2;b.push(-1*Math.cos(m)*h,g,Math.sin(m)*h);c.push(l);c.push(f)}}for(e=0;100>e;e++)for(f=0;100>f;f++)h=101*e+f,g=h+1,k=101*(e+1)+f,l=k+1,d.push(h,k,g),d.push(g,k,l);b={Zh:b,Wh:c,indices:d}}a.K=b;a.aa=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.aa);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.Zh),a.g.STATIC_DRAW);a.ma=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,
1451
- a.ma);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.Wh),a.g.STATIC_DRAW);a.sa=a.g.createBuffer();a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.sa);a.g.bufferData(a.g.ELEMENT_ARRAY_BUFFER,new Uint16Array(a.K.indices),a.g.STATIC_DRAW)}
1452
- function bE(a){a.$=a.g.createTexture();a.g.bindTexture(a.g.TEXTURE_2D,a.$);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_S,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_T,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MIN_FILTER,a.g.NEAREST);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MAG_FILTER,a.g.NEAREST)}
1453
- function XD(a,b){b=void 0===b?!0:b;var c=a.oa.Id()==Co;!a.m||2>a.m.readyState||!c&&0==a.m.playbackRate||(PD(a.I,a.i*Math.PI/180,1.5625),"cubemap"==a.A?PD(a.I,a.i*Math.PI/180,2.5):PD(a.I,a.i*Math.PI/180,1.5625),a.g.useProgram(a.j),a.g.clear(a.g.COLOR_BUFFER_BIT),cE(a),b&&(a.g.activeTexture(a.g.TEXTURE0),a.g.bindTexture(a.g.TEXTURE_2D,a.$),a.g.pixelStorei(a.g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),a.g.texImage2D(a.g.TEXTURE_2D,0,a.g.RGBA,a.g.RGBA,a.g.UNSIGNED_BYTE,a.m)),"equirectangular"==a.A&&(QD(a.M,a.G,
1454
- a.Y),QD(a.M,a.I,a.M)),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.aa),a.g.vertexAttribPointer(a.S,3,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.S),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.ma),a.g.vertexAttribPointer(a.P,2,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.P),a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.sa),"cubemap"==a.A?(a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uProjectionMatrix"),!1,a.I),a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uModelViewMatrix"),!1,a.M)):a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,
1452
+ function dE(a){if("cubemap"==a.A)var b={ai:[-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],Yh:[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]};else{b=[];for(var c=[],d=[],
1453
+ e=0;100>=e;e++){var f=e/100,g=f*Math.PI,h=Math.sin(g);g=Math.cos(g);for(var k=0;100>=k;k++){var l=k/100,m=l*Math.PI*2;b.push(-1*Math.cos(m)*h,g,Math.sin(m)*h);c.push(l);c.push(f)}}for(e=0;100>e;e++)for(f=0;100>f;f++)h=101*e+f,g=h+1,k=101*(e+1)+f,l=k+1,d.push(h,k,g),d.push(g,k,l);b={ai:b,Yh:c,indices:d}}a.K=b;a.aa=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.aa);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.ai),a.g.STATIC_DRAW);a.ma=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,
1454
+ a.ma);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.Yh),a.g.STATIC_DRAW);a.sa=a.g.createBuffer();a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.sa);a.g.bufferData(a.g.ELEMENT_ARRAY_BUFFER,new Uint16Array(a.K.indices),a.g.STATIC_DRAW)}
1455
+ function eE(a){a.$=a.g.createTexture();a.g.bindTexture(a.g.TEXTURE_2D,a.$);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_S,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_T,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MIN_FILTER,a.g.NEAREST);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MAG_FILTER,a.g.NEAREST)}
1456
+ function $D(a,b){b=void 0===b?!0:b;var c=a.oa.Id()==Co;!a.m||2>a.m.readyState||!c&&0==a.m.playbackRate||(SD(a.I,a.i*Math.PI/180,1.5625),"cubemap"==a.A?SD(a.I,a.i*Math.PI/180,2.5):SD(a.I,a.i*Math.PI/180,1.5625),a.g.useProgram(a.j),a.g.clear(a.g.COLOR_BUFFER_BIT),fE(a),b&&(a.g.activeTexture(a.g.TEXTURE0),a.g.bindTexture(a.g.TEXTURE_2D,a.$),a.g.pixelStorei(a.g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),a.g.texImage2D(a.g.TEXTURE_2D,0,a.g.RGBA,a.g.RGBA,a.g.UNSIGNED_BYTE,a.m)),"equirectangular"==a.A&&(TD(a.M,a.G,
1457
+ a.Y),TD(a.M,a.I,a.M)),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.aa),a.g.vertexAttribPointer(a.S,3,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.S),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.ma),a.g.vertexAttribPointer(a.P,2,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.P),a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.sa),"cubemap"==a.A?(a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uProjectionMatrix"),!1,a.I),a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uModelViewMatrix"),!1,a.M)):a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,
1455
1458
  "u_VPMatrix"),!1,a.M),a.g.uniform1i(a.g.getUniformLocation(a.j,"uSampler"),0),a.O&&a.g.viewport(0,0,a.l.width/2,a.l.height),a.g.drawElements(a.g.TRIANGLES,a.K.indices.length,a.g.UNSIGNED_SHORT,0),a.O&&(a.g.viewport(a.l.width/2,0,a.l.width/2,a.l.height),a.g.drawElements(a.g.TRIANGLES,a.K.indices.length,a.g.UNSIGNED_SHORT,0)))}
1456
- function cE(a){var b=a.m.videoWidth;b||(b=a.l.scrollWidth);var c=a.m.videoHeight;c||(c=a.l.scrollHeight);if(a.ra!==b||a.qa!==c){a.l.width=b;a.l.height=c;a.ra=b;a.qa=c;var d=b/c,e=a.I,f=-d,g=1/(d-f);e[0]=0*g;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=0;e[6]=0;e[7]=0;e[8]=(d+f)*g;e[9]=0;e[10]=-1;e[11]=-1;e[12]=0;e[13]=0;e[14]=-0;e[15]=0;a.I=e;a.g.viewport(0,0,b,c)}}
1457
- function eE(a,b,c,d){var e=90*Math.PI/180;var f="cubemap"==a.A?a.M:a.G;var g=Math.sin(b);b=Math.cos(b);var h=f[0],k=f[1],l=f[2],m=f[3],n=f[8],r=f[9],p=f[10],t=f[11];f!==f&&(f[4]=f[4],f[5]=f[5],f[6]=f[6],f[7]=f[7],f[12]=f[12],f[13]=f[13],f[14]=f[14],f[15]=f[15]);f[0]=h*b-n*g;f[1]=k*b-r*g;f[2]=l*b-p*g;f[3]=m*b-t*g;f[8]=h*g+n*b;f[9]=k*g+r*b;f[10]=l*g+p*b;f[11]=m*g+t*b;a.H+=c;a.H<e&&a.H>-e?(e=OD(),g=OD(),b=-1*c,c=Math.sin(b),b=Math.cos(b),h=g[4],k=g[5],l=g[6],m=g[7],n=g[8],r=g[9],p=g[10],t=g[11],g!==
1458
- e&&(e[0]=g[0],e[1]=g[1],e[2]=g[2],e[3]=g[3],e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15]),e[4]=h*b+n*c,e[5]=k*b+r*c,e[6]=l*b+p*c,e[7]=m*b+t*c,e[8]=n*b-h*c,e[9]=r*b-k*c,e[10]=p*b-l*c,e[11]=t*b-m*c,QD(f,e,f)):a.H-=c;c=OD();e=OD();g=Math.sin(d);d=Math.cos(d);b=e[0];h=e[1];k=e[2];l=e[3];m=e[4];n=e[5];r=e[6];p=e[7];e!==c&&(c[8]=e[8],c[9]=e[9],c[10]=e[10],c[11]=e[11],c[12]=e[12],c[13]=e[13],c[14]=e[14],c[15]=e[15]);c[0]=b*d+m*g;c[1]=h*d+n*g;c[2]=k*d+r*g;c[3]=l*d+p*g;c[4]=m*d-b*g;c[5]=n*d-h*g;c[6]=r*
1459
- d-k*g;c[7]=p*d-l*g;QD(f,c,f);XD(a,!1)}function fE(a,b){if(void 0===b||b)RD(a.h,a.G),a.X=0,a.u=TD(),a.u[0]=(a.h[0]-a.L[0])/20,a.u[1]=(a.h[1]-a.L[1])/20,a.u[2]=(a.h[2]-a.L[2])/20,a.u[3]=(a.h[3]-a.L[3])/20;a.h[0]-=a.u[0];a.h[1]-=a.u[1];a.h[2]-=a.u[2];a.h[3]-=a.u[3];b=OD();UD(a.h,a.h);SD(b,a.h);a.G=b;a.J&&(a.J.stop(),a.J=null);20>a.X?a.J=(new Ob(function(){fE(a,!1);a.H=0;a.X++;XD(a,!1)})).V(.025):(SD(b,a.L),a.G=b)};function gE(a,b,c,d,e){bb.call(this);var f=this;this.i=a;this.m=b;this.L=c;this.K=d;this.u=e;this.o=new cd;this.h=new cd;this.G=hE(this);this.g=null;this.j=!1;this.J=this.I=this.H=this.F=this.A=0;this.l=null;this.o.s(d,"loading",function(){f.g&&fE(f.g);iE(f)});this.o.s(d,"spatialvideoinfo",function(g){switch(g.detail.projection){case "hequ":f.l="equirectangular";break;case "fish":f.l="equirectangular";break;default:f.l=null}iE(f)});this.o.s(d,"nospatialvideoinfo",function(){f.l=null;iE(f)});this.o.s(d,
1460
- "unloading",function(){f.l=null;iE(f)});iE(this)}na(gE,bb);q=gE.prototype;q.release=function(){this.o&&(this.o.release(),this.o=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);bb.prototype.release.call(this)};q.configure=function(a){this.u=a;iE(this)};q.Cf=function(){return!!this.G};q.Nb=function(){return!!this.g};q.hd=function(){this.g?this.g.hd():Ua("Not playing VR content")};q.eg=function(a){this.g?eE(this.g,a*jE,0,0):Ua("Not playing VR content")};
1461
- q.cg=function(a){this.g?eE(this.g,0,a*jE,0):Ua("Not playing VR content")};q.dg=function(a){this.g?eE(this.g,0,0,a*jE):Ua("Not playing VR content")};
1462
- function iE(a){if(a.m)if(a.u.displayInVrMode||a.l){var b=a.l||a.u.defaultVrProjectionMode;a.g?a.g.A!=b&&(a.h.mb(),a.g.release(),kE(a,b)):(a.m.style.display="",kE(a,b),a.dispatchEvent(new Q("vrstatuschanged",(new Map).set("newStatus",a.Nb()))))}else a.u.displayInVrMode||a.l||!a.g||(a.m.style.display="none",a.h.mb(),a.g.release(),a.g=null,a.dispatchEvent(new Q("vrstatuschanged",(new Map).set("newStatus",a.Nb()))))}function kE(a,b){a.G&&a.m&&(a.g=new VD(a.L,a.K,a.m,a.G,b),lE(a))}
1463
- function hE(a){if(!a.m||Vb()||Yb()||Tb()||dc()||ec()||Ub("AFT")||Ub("PC=EOS")||Ub("PC=APL")||Ub("VirginMedia")||cc()||Ub("WPE")||Zb()||fc())return null;for(var b=u(["webgl2","webgl"]),c=b.next();!c.done;c=b.next())if(c=a.m.getContext(c.value))return c;return null}
1464
- function lE(a){a.h.s(a.i,"mousedown",function(d){if(!a.j){var e=d.clientX;d=d.clientY;a.j=!0;a.A=e;a.F=d}});0<navigator.maxTouchPoints&&a.h.s(a.i,"touchstart",function(d){if(!a.j){var e=d.touches[0].clientX;d=d.touches[0].clientY;a.j=!0;a.A=e;a.F=d}});a.h.s(a.i,"wheel",function(d){if(!a.j){var e=a.g,f=d.deltaY;f/=50;20<=e.i&&100>=e.i&&(e.i+=f);20>e.i?e.i=20:100<e.i&&(e.i=100);XD(e,!1);d.preventDefault();d.stopPropagation()}});a.h.s(a.i,"mousemove",function(d){a.j&&mE(a,d.clientX,d.clientY)});0<navigator.maxTouchPoints&&
1465
- a.h.s(a.i,"touchmove",function(d){a.j&&mE(a,d.touches[0].clientX,d.touches[0].clientY);d.preventDefault()});a.h.s(a.i,"mouseleave",function(){a.j=!1});a.h.s(a.i,"mouseup",function(){a.j=!1});0<navigator.maxTouchPoints&&a.h.s(a.i,"touchend",function(){a.j=!1});var b=!1;if(window.DeviceOrientationEvent)if("function"==typeof DeviceMotionEvent.requestPermission){var c=function(){DeviceMotionEvent.requestPermission().then(function(d){"granted"!==d||b||(b=!0,nE(a))})};DeviceMotionEvent.requestPermission().then(function(d){a.h.Ya(a.i,
1466
- "click",c);a.h.Ya(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Ya(a.i,"touchend",c);"granted"!==d?(a.h.na(a.i,"click",c),a.h.na(a.i,"mouseup",c),0<navigator.maxTouchPoints&&a.h.na(a.i,"touchend",c)):(b=!0,nE(a))}).catch(function(){a.h.Ya(a.i,"click",c);a.h.Ya(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Ya(a.i,"touchend",c);a.h.na(a.i,"click",c);a.h.na(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.na(a.i,"touchend",c)})}else b=!0,nE(a)}
1467
- function nE(a){a.h.s(window,"deviceorientation",function(b){var c=(b.alpha||0)-a.H,d=(b.beta||0)-a.I,e=(b.gamma||0)-a.J;if(10<Math.abs(c)||10<Math.abs(d)||5<Math.abs(e))d=e=c=0;a.H=b.alpha||0;a.I=b.beta||0;a.J=b.gamma||0;b=screen.orientation.angle;90==b||-90==b?eE(a.g,c*jE*-1,e*jE*-1,0):eE(a.g,c*jE*-1,d*jE,0)})}function mE(a,b,c){var d=-.6*Math.PI/180;eE(a.g,(b-a.A)*d,-1*(c-a.F)*d,0);a.A=b;a.F=c}var jE=Math.PI/180;function Z(a,b,c,d,e){bb.call(this);var f=this;this.S=!0;this.g=e;this.F=new lq(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.qa=!0;this.A=this.F.jc();this.o=c;this.G=this.F.Wc();this.oa=a;this.j=b;this.Xb=d;this.Ja=this.G.ue();this.l=this.m=null;this.Y=!1;this.J=[];this.Gb=[];this.$a=!1;this.P=new Ob(function(){f.j.style.cursor="none";f.$a=!1;oE(f)});this.aa=new Ob(function(){f.h.removeAttribute("shown");f.K.V(2)});this.K=new Ob(function(){for(var g=u(f.J),h=g.next();!h.done;h=
1468
- g.next())mD(h.value,!1)});this.Fa=new Ob(function(){f.kc()&&pE(f)});this.I=null;this.H=[];this.ra=qE();this.i=new cd;this.u=null;this.configure(this.g);rE(this);this.ma=new Set;sE(this);this.Fa.ya(this.g.refreshTickInSeconds);this.i.s(this.ra,"locale-changed",function(g){f.Ja.setLocale(g.locales[0])})}na(Z,bb);q=Z.prototype;
1469
- q.destroy=function(){var a=this;return L(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.o){b.D(2);break}return D(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.P&&(a.P.stop(),a.P=null);a.aa&&(a.aa.stop(),a.aa=null);a.K&&(a.K.stop(),a.K=null);a.Fa&&(a.Fa.stop(),a.Fa=null);a.u&&(a.u.release(),a.u=null);tE(a);a.h&&(a.j.removeChild(a.h),a.h=null);if(!a.F){b.D(4);break}return D(b,a.F.destroy(),5);case 5:a.F=null;case 4:if(!a.oa){b.D(6);break}return D(b,
1470
- a.oa.destroy(),7);case 7:a.oa=null;case 6:a.G=null,a.o=null,a.A=null,a.ra=null,a.ma.clear(),bb.prototype.release.call(a),G(b)}})};function tE(a){for(var b=u(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function uE(a,b){vE.set(a,b)}q.mi=function(a){this.qa=a;sE(this)};q.wj=function(){oE(this)};
1471
- q.configure=function(a){this.g=a;this.F.bh(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.Za&&(this.Za=null);this.Ka&&(this.Ka=null);this.u&&this.u.configure(a);this.h?(Rm(this.h),tE(this)):(wE(this),xE(this),this.u=new gE(this.h,this.Xb,this.o,this.G,this.g));this.j.classList.add("shaka-video-container");this.o.classList.add("shaka-video");yE(this);this.g.addBigPlayButton&&zE(this);this.g.customContextMenu&&(this.Ka=new vD(this.X,this),this.H.push(this.Ka));this.$||
1472
- AE(this);this.g.seekOnTaps&&(BE(this),CE(this));this.Ua=T("div");this.Ua.classList.add("shaka-server-side-ad-container");this.h.appendChild(this.Ua);DE(this);this.J=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.J.push.apply(this.J,y(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));EE(this);this.Gb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));oE(this);a=u(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=
1473
- a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.i.s(b,"click",c);this.i.s(b,"dblclick",c)}};q.Eg=function(a){(this.S=a)?(this.j.setAttribute("shaka-controls","true"),this.o.tabIndex=-1,this.o.controls=!1):this.j.removeAttribute("shaka-controls");oE(this)};q.Mh=function(a){this.o.controls=a;this.o.tabIndex=a?0:-1;a&&this.Eg(!1)};q.getAd=function(){return this.m};q.Di=function(){return this.F};q.Ri=function(){return this.ra};q.hj=function(){return this.j};q.jc=function(){return this.A};
1474
- q.Qi=function(){return this.o};q.Wc=function(){return this.G};q.Pi=function(){return this.oa};q.Ii=function(){return this.h};q.Zi=function(){return this.Ua};q.Fi=function(){return this.O};q.Gi=function(){return this.g};q.tj=function(){return this.Y};q.Hg=function(a){this.Y=a};q.nj=function(){return this.qa};q.Wf=function(){return this.l?this.l.getValue():this.A.currentTime};q.Oh=function(a){this.I=a};q.Bd=function(){return this.J.some(function(a){return!a.classList.contains("shaka-hidden")})};
1459
+ function fE(a){var b=a.m.videoWidth;b||(b=a.l.scrollWidth);var c=a.m.videoHeight;c||(c=a.l.scrollHeight);if(a.ra!==b||a.qa!==c){a.l.width=b;a.l.height=c;a.ra=b;a.qa=c;var d=b/c,e=a.I,f=-d,g=1/(d-f);e[0]=0*g;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=0;e[6]=0;e[7]=0;e[8]=(d+f)*g;e[9]=0;e[10]=-1;e[11]=-1;e[12]=0;e[13]=0;e[14]=-0;e[15]=0;a.I=e;a.g.viewport(0,0,b,c)}}
1460
+ function hE(a,b,c,d){var e=90*Math.PI/180;var f="cubemap"==a.A?a.M:a.G;var g=Math.sin(b);b=Math.cos(b);var h=f[0],k=f[1],l=f[2],m=f[3],n=f[8],r=f[9],p=f[10],t=f[11];f!==f&&(f[4]=f[4],f[5]=f[5],f[6]=f[6],f[7]=f[7],f[12]=f[12],f[13]=f[13],f[14]=f[14],f[15]=f[15]);f[0]=h*b-n*g;f[1]=k*b-r*g;f[2]=l*b-p*g;f[3]=m*b-t*g;f[8]=h*g+n*b;f[9]=k*g+r*b;f[10]=l*g+p*b;f[11]=m*g+t*b;a.H+=c;a.H<e&&a.H>-e?(e=RD(),g=RD(),b=-1*c,c=Math.sin(b),b=Math.cos(b),h=g[4],k=g[5],l=g[6],m=g[7],n=g[8],r=g[9],p=g[10],t=g[11],g!==
1461
+ e&&(e[0]=g[0],e[1]=g[1],e[2]=g[2],e[3]=g[3],e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15]),e[4]=h*b+n*c,e[5]=k*b+r*c,e[6]=l*b+p*c,e[7]=m*b+t*c,e[8]=n*b-h*c,e[9]=r*b-k*c,e[10]=p*b-l*c,e[11]=t*b-m*c,TD(f,e,f)):a.H-=c;c=RD();e=RD();g=Math.sin(d);d=Math.cos(d);b=e[0];h=e[1];k=e[2];l=e[3];m=e[4];n=e[5];r=e[6];p=e[7];e!==c&&(c[8]=e[8],c[9]=e[9],c[10]=e[10],c[11]=e[11],c[12]=e[12],c[13]=e[13],c[14]=e[14],c[15]=e[15]);c[0]=b*d+m*g;c[1]=h*d+n*g;c[2]=k*d+r*g;c[3]=l*d+p*g;c[4]=m*d-b*g;c[5]=n*d-h*g;c[6]=r*
1462
+ d-k*g;c[7]=p*d-l*g;TD(f,c,f);$D(a,!1)}function iE(a,b){if(void 0===b||b)UD(a.h,a.G),a.X=0,a.u=WD(),a.u[0]=(a.h[0]-a.L[0])/20,a.u[1]=(a.h[1]-a.L[1])/20,a.u[2]=(a.h[2]-a.L[2])/20,a.u[3]=(a.h[3]-a.L[3])/20;a.h[0]-=a.u[0];a.h[1]-=a.u[1];a.h[2]-=a.u[2];a.h[3]-=a.u[3];b=RD();XD(a.h,a.h);VD(b,a.h);a.G=b;a.J&&(a.J.stop(),a.J=null);20>a.X?a.J=(new Ob(function(){iE(a,!1);a.H=0;a.X++;$D(a,!1)})).V(.025):(VD(b,a.L),a.G=b)};function jE(a,b,c,d,e){bb.call(this);var f=this;this.i=a;this.m=b;this.L=c;this.K=d;this.u=e;this.o=new cd;this.h=new cd;this.G=kE(this);this.g=null;this.j=!1;this.J=this.I=this.H=this.F=this.A=0;this.l=null;this.o.s(d,"loading",function(){f.g&&iE(f.g);lE(f)});this.o.s(d,"spatialvideoinfo",function(g){switch(g.detail.projection){case "hequ":f.l="equirectangular";break;case "fish":f.l="equirectangular";break;default:f.l=null}lE(f)});this.o.s(d,"nospatialvideoinfo",function(){f.l=null;lE(f)});this.o.s(d,
1463
+ "unloading",function(){f.l=null;lE(f)});lE(this)}na(jE,bb);q=jE.prototype;q.release=function(){this.o&&(this.o.release(),this.o=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);bb.prototype.release.call(this)};q.configure=function(a){this.u=a;lE(this)};q.Cf=function(){return!!this.G};q.Nb=function(){return!!this.g};q.hd=function(){this.g?this.g.hd():Ua("Not playing VR content")};q.eg=function(a){this.g?hE(this.g,a*mE,0,0):Ua("Not playing VR content")};
1464
+ q.cg=function(a){this.g?hE(this.g,0,a*mE,0):Ua("Not playing VR content")};q.dg=function(a){this.g?hE(this.g,0,0,a*mE):Ua("Not playing VR content")};
1465
+ function lE(a){if(a.m)if(a.u.displayInVrMode||a.l){var b=a.l||a.u.defaultVrProjectionMode;a.g?a.g.A!=b&&(a.h.mb(),a.g.release(),nE(a,b)):(a.m.style.display="",nE(a,b),a.dispatchEvent(new Q("vrstatuschanged",(new Map).set("newStatus",a.Nb()))))}else a.u.displayInVrMode||a.l||!a.g||(a.m.style.display="none",a.h.mb(),a.g.release(),a.g=null,a.dispatchEvent(new Q("vrstatuschanged",(new Map).set("newStatus",a.Nb()))))}function nE(a,b){a.G&&a.m&&(a.g=new YD(a.L,a.K,a.m,a.G,b),oE(a))}
1466
+ function kE(a){if(!a.m||Vb()||Yb()||Tb()||dc()||ec()||Ub("AFT")||Ub("PC=EOS")||Ub("PC=APL")||Ub("VirginMedia")||cc()||Ub("WPE")||Zb()||fc())return null;for(var b=u(["webgl2","webgl"]),c=b.next();!c.done;c=b.next())if(c=a.m.getContext(c.value))return c;return null}
1467
+ function oE(a){a.h.s(a.i,"mousedown",function(d){if(!a.j){var e=d.clientX;d=d.clientY;a.j=!0;a.A=e;a.F=d}});0<navigator.maxTouchPoints&&a.h.s(a.i,"touchstart",function(d){if(!a.j){var e=d.touches[0].clientX;d=d.touches[0].clientY;a.j=!0;a.A=e;a.F=d}});a.h.s(a.i,"wheel",function(d){if(!a.j){var e=a.g,f=d.deltaY;f/=50;20<=e.i&&100>=e.i&&(e.i+=f);20>e.i?e.i=20:100<e.i&&(e.i=100);$D(e,!1);d.preventDefault();d.stopPropagation()}});a.h.s(a.i,"mousemove",function(d){a.j&&pE(a,d.clientX,d.clientY)});0<navigator.maxTouchPoints&&
1468
+ a.h.s(a.i,"touchmove",function(d){a.j&&pE(a,d.touches[0].clientX,d.touches[0].clientY);d.preventDefault()});a.h.s(a.i,"mouseleave",function(){a.j=!1});a.h.s(a.i,"mouseup",function(){a.j=!1});0<navigator.maxTouchPoints&&a.h.s(a.i,"touchend",function(){a.j=!1});var b=!1;if(window.DeviceOrientationEvent)if("function"==typeof DeviceMotionEvent.requestPermission){var c=function(){DeviceMotionEvent.requestPermission().then(function(d){"granted"!==d||b||(b=!0,qE(a))})};DeviceMotionEvent.requestPermission().then(function(d){a.h.Ya(a.i,
1469
+ "click",c);a.h.Ya(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Ya(a.i,"touchend",c);"granted"!==d?(a.h.na(a.i,"click",c),a.h.na(a.i,"mouseup",c),0<navigator.maxTouchPoints&&a.h.na(a.i,"touchend",c)):(b=!0,qE(a))}).catch(function(){a.h.Ya(a.i,"click",c);a.h.Ya(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Ya(a.i,"touchend",c);a.h.na(a.i,"click",c);a.h.na(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.na(a.i,"touchend",c)})}else b=!0,qE(a)}
1470
+ function qE(a){a.h.s(window,"deviceorientation",function(b){var c=(b.alpha||0)-a.H,d=(b.beta||0)-a.I,e=(b.gamma||0)-a.J;if(10<Math.abs(c)||10<Math.abs(d)||5<Math.abs(e))d=e=c=0;a.H=b.alpha||0;a.I=b.beta||0;a.J=b.gamma||0;b=screen.orientation.angle;90==b||-90==b?hE(a.g,c*mE*-1,e*mE*-1,0):hE(a.g,c*mE*-1,d*mE,0)})}function pE(a,b,c){var d=-.6*Math.PI/180;hE(a.g,(b-a.A)*d,-1*(c-a.F)*d,0);a.A=b;a.F=c}var mE=Math.PI/180;function Z(a,b,c,d,e){bb.call(this);var f=this;this.S=!0;this.g=e;this.F=new lq(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.qa=!0;this.A=this.F.jc();this.o=c;this.G=this.F.Wc();this.oa=a;this.j=b;this.Xb=d;this.Ja=this.G.ue();this.l=this.m=null;this.Y=!1;this.J=[];this.Gb=[];this.$a=!1;this.P=new Ob(function(){f.j.style.cursor="none";f.$a=!1;rE(f)});this.aa=new Ob(function(){f.h.removeAttribute("shown");f.K.V(2)});this.K=new Ob(function(){for(var g=u(f.J),h=g.next();!h.done;h=
1471
+ g.next())pD(h.value,!1)});this.Fa=new Ob(function(){f.kc()&&sE(f)});this.I=null;this.H=[];this.ra=tE();this.i=new cd;this.u=null;this.configure(this.g);uE(this);this.ma=new Set;vE(this);this.Fa.ya(this.g.refreshTickInSeconds);this.i.s(this.ra,"locale-changed",function(g){f.Ja.setLocale(g.locales[0])})}na(Z,bb);q=Z.prototype;
1472
+ q.destroy=function(){var a=this;return L(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.o){b.B(2);break}return D(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.P&&(a.P.stop(),a.P=null);a.aa&&(a.aa.stop(),a.aa=null);a.K&&(a.K.stop(),a.K=null);a.Fa&&(a.Fa.stop(),a.Fa=null);a.u&&(a.u.release(),a.u=null);wE(a);a.h&&(a.j.removeChild(a.h),a.h=null);if(!a.F){b.B(4);break}return D(b,a.F.destroy(),5);case 5:a.F=null;case 4:if(!a.oa){b.B(6);break}return D(b,
1473
+ a.oa.destroy(),7);case 7:a.oa=null;case 6:a.G=null,a.o=null,a.A=null,a.ra=null,a.ma.clear(),bb.prototype.release.call(a),G(b)}})};function wE(a){for(var b=u(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function xE(a,b){yE.set(a,b)}q.ni=function(a){this.qa=a;vE(this)};q.wj=function(){rE(this)};
1474
+ q.configure=function(a){this.g=a;this.F.eh(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.Za&&(this.Za=null);this.Ka&&(this.Ka=null);this.u&&this.u.configure(a);this.h?(Rm(this.h),wE(this)):(zE(this),AE(this),this.u=new jE(this.h,this.Xb,this.o,this.G,this.g));this.j.classList.add("shaka-video-container");this.o.classList.add("shaka-video");BE(this);this.g.addBigPlayButton&&CE(this);this.g.customContextMenu&&(this.Ka=new yD(this.X,this),this.H.push(this.Ka));this.$||
1475
+ DE(this);this.g.seekOnTaps&&(EE(this),FE(this));this.Ua=T("div");this.Ua.classList.add("shaka-server-side-ad-container");this.h.appendChild(this.Ua);GE(this);this.J=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.J.push.apply(this.J,w(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));HE(this);this.Gb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));rE(this);a=u(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=
1476
+ a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.i.s(b,"click",c);this.i.s(b,"dblclick",c)}};q.Eg=function(a){(this.S=a)?(this.j.setAttribute("shaka-controls","true"),this.o.tabIndex=-1,this.o.controls=!1):this.j.removeAttribute("shaka-controls");rE(this)};q.Oh=function(a){this.o.controls=a;this.o.tabIndex=a?0:-1;a&&this.Eg(!1)};q.getAd=function(){return this.m};q.Ei=function(){return this.F};q.Ri=function(){return this.ra};q.hj=function(){return this.j};q.jc=function(){return this.A};
1477
+ q.Qi=function(){return this.o};q.Wc=function(){return this.G};q.Pi=function(){return this.oa};q.Ji=function(){return this.h};q.Zi=function(){return this.Ua};q.Gi=function(){return this.O};q.Hi=function(){return this.g};q.tj=function(){return this.Y};q.Hg=function(a){this.Y=a};q.nj=function(){return this.qa};q.Wf=function(){return this.l?this.l.getValue():this.A.currentTime};q.Qh=function(a){this.I=a};q.Bd=function(){return this.J.some(function(a){return!a.classList.contains("shaka-hidden")})};
1475
1478
  q.yc=function(){this.K.Ia()};q.Pd=function(){return document.fullscreenEnabled||this.o.webkitSupportsFullscreen?!0:!1};q.Zc=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.o;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1476
- function FE(a){var b,c,d;return L(function(e){switch(e.g){case 1:ra(e,2);if(!document.fullscreenEnabled){b=a.o;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();e.D(4);break}if(!document.pictureInPictureElement){e.D(5);break}return D(e,document.exitPictureInPicture(),5);case 5:return c=a.g.fullScreenElement,D(e,c.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.g.forceLandscapeOnFullscreen||!screen.orientation){e.D(4);break}ra(e,9);return D(e,screen.orientation.lock("landscape"),11);case 11:ta(e,
1477
- 4,2);break;case 9:ua(e,2);case 4:ta(e,0);break;case 2:d=ua(e),a.dispatchEvent(new Q("error",(new Map).set("detail",d))),G(e)}})}function GE(a){var b;return L(function(c){if(!document.fullscreenEnabled)return b=a.o,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.D(0);screen.orientation&&screen.orientation.unlock();return D(c,document.exitFullscreen(),0)})}q.cf=function(){var a=this;return L(function(b){return a.Zc()?D(b,GE(a),0):D(b,FE(a),0)})};
1479
+ function IE(a){var b,c,d;return L(function(e){switch(e.g){case 1:ra(e,2);if(!document.fullscreenEnabled){b=a.o;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();e.B(4);break}if(!document.pictureInPictureElement){e.B(5);break}return D(e,document.exitPictureInPicture(),5);case 5:return c=a.g.fullScreenElement,D(e,c.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.g.forceLandscapeOnFullscreen||!screen.orientation){e.B(4);break}ra(e,9);return D(e,screen.orientation.lock("landscape"),11);case 11:ta(e,
1480
+ 4,2);break;case 9:ua(e,2);case 4:ta(e,0);break;case 2:d=ua(e),a.dispatchEvent(new Q("error",(new Map).set("detail",d))),G(e)}})}function JE(a){var b;return L(function(c){if(!document.fullscreenEnabled)return b=a.o,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.B(0);screen.orientation&&screen.orientation.unlock();return D(c,document.exitFullscreen(),0)})}q.cf=function(){var a=this;return L(function(b){return a.Zc()?D(b,JE(a),0):D(b,IE(a),0)})};
1478
1481
  q.De=function(){return this.F.Ga()?!1:"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture||document.pictureInPictureEnabled?!this.o.disablePictureInPicture:!1};q.Ee=function(){return"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture?!!window.documentPictureInPicture.window:!!document.pictureInPictureElement};
1479
- q.$d=function(){var a=this,b,c;return L(function(d){if(1==d.g)return ra(d,2),"documentPictureInPicture"in window&&a.g.preferDocumentPictureInPicture?D(d,HE(a),5):document.pictureInPictureElement?D(d,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),b=a.o,D(d,b.requestPictureInPicture(),5));if(2!=d.g)return ta(d,0);c=ua(d);a.dispatchEvent(new Q("error",(new Map).set("detail",c)));G(d)})};
1480
- function HE(a){var b,c,d,e,f,g;return L(function(h){if(1==h.g){if(window.documentPictureInPicture.window)return window.documentPictureInPicture.window.close(),h.return();b=a.j;c=b.getBoundingClientRect();return D(h,window.documentPictureInPicture.requestWindow({width:c.width,height:c.height}),2)}d=h.h;IE(d);e=b.parentNode||document.body;f=a.j.cloneNode(!0);f.style.visibility="hidden";f.style.height=getComputedStyle(b).height;e.appendChild(f);g=document.createElement("style");g.append("[data-shaka-player-container] {\n width: 100% !important; max-height: 100%}");
1482
+ q.$d=function(){var a=this,b,c;return L(function(d){if(1==d.g)return ra(d,2),"documentPictureInPicture"in window&&a.g.preferDocumentPictureInPicture?D(d,KE(a),5):document.pictureInPictureElement?D(d,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),b=a.o,D(d,b.requestPictureInPicture(),5));if(2!=d.g)return ta(d,0);c=ua(d);a.dispatchEvent(new Q("error",(new Map).set("detail",c)));G(d)})};
1483
+ function KE(a){var b,c,d,e,f,g;return L(function(h){if(1==h.g){if(window.documentPictureInPicture.window)return window.documentPictureInPicture.window.close(),h.return();b=a.j;c=b.getBoundingClientRect();return D(h,window.documentPictureInPicture.requestWindow({width:c.width,height:c.height}),2)}d=h.h;LE(d);e=b.parentNode||document.body;f=a.j.cloneNode(!0);f.style.visibility="hidden";f.style.height=getComputedStyle(b).height;e.appendChild(f);g=document.createElement("style");g.append("[data-shaka-player-container] {\n width: 100% !important; max-height: 100%}");
1481
1484
  d.document.head.append(g);d.document.body.append(b);a.i.na(d,"pagehide",function(){f.replaceWith(b)});G(h)})}
1482
- function IE(a){var b=[].concat(y(document.styleSheets)).map(function(d){try{return[].concat(y(d.cssRules)).map(function(f){return f.cssText}).join("")}catch(f){var e=document.createElement("link");e.rel="stylesheet";e.type=d.type;e.media=d.media;e.href=d.href;a.document.head.appendChild(e)}return""}).filter(Boolean).join("\n"),c=document.createElement("style");c.textContent=b;a.document.head.appendChild(c)}q.Th=function(){mD(this.L,!0);mD(this.O,!0);this.h.setAttribute("ad-active","true")};
1483
- q.qh=function(){mD(this.L,!1);mD(this.O,!1);this.h.removeAttribute("ad-active")};function tD(a){a.S&&a.A.duration&&(a.G.Qc(),a.A.paused&&!a.Y?a.A.play():a.A.pause())}function sD(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1484
- function wE(a){a.h=T("div");a.h.classList.add("shaka-controls-container");a.j.appendChild(a.h);a.j.setAttribute("shaka-controls","true");a.i.s(a.h,"touchstart",function(b){a.A.duration&&(a.kc()?a.I=Date.now():(JE(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.i.s(a.h,"click",function(){KE(a)});a.i.s(a.h,"dblclick",function(){a.g.doubleClickForFullscreen&&a.Pd()&&a.cf()})}
1485
- function zE(a){var b=T("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.Za=new uD(b,a);a.H.push(a.Za)}function yE(a){var b=T("div");b.classList.add("shaka-scrim-container");a.h.appendChild(b)}function LE(a){a.L=T("div");a.L.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();mD(a.L,b);a.M.appendChild(a.L);b=new pD(a.L,a);a.H.push(b);b=new oD(a.L,a);a.H.push(b)}
1486
- function AE(a){a.$=T("div");a.$.classList.add("shaka-spinner-container");a.j.appendChild(a.$);var b=T("div");b.classList.add("shaka-spinner");a.$.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");b.setAttribute("fill",
1487
- "none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}function BE(a){var b=T("div");b.classList.add("shaka-hidden-fast-forward-container");a.h.appendChild(b);a.Vb=new AD(b,a);a.H.push(a.Vb)}function CE(a){var b=T("div");b.classList.add("shaka-hidden-rewind-container");a.h.appendChild(b);a.Wb=new BD(b,a);a.H.push(a.Wb)}
1488
- function DE(a){a.M=T("div");a.M.classList.add("shaka-bottom-controls");a.M.classList.add("shaka-no-propagation");a.h.appendChild(a.M);a.i.s(a.M,"click",function(d){d.target.closest(".shaka-overflow-button")||a.yc()});LE(a);a.X=T("div");a.X.classList.add("shaka-controls-button-panel");a.X.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.X.classList.add("shaka-tooltips-on");a.M.appendChild(a.X);for(var b=u(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,vE.get(c)?
1489
- (c=vE.get(c).create(a.X,a),a.H.push(c)):Ua("Unrecognized control panel element requested:",c)}function EE(a){if(a.g.addSeekBar)a.l=ME.create(a.M,a),a.H.push(a.l);else{a=u(a.J);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function xE(a){a.O=T("div");a.O.classList.add("shaka-client-side-ad-container");mD(a.O,!1);a.i.s(a.O,"click",function(){KE(a)});a.j.appendChild(a.O)}
1490
- function rE(a){a.i.s(a.G,"buffering",function(){a.S&&mD(a.$,a.G.Od())});a.S&&mD(a.$,a.G.Od());a.i.s(window,"keydown",function(b){NE(a,b)});a.i.s(window,"click",function(){return a.yc()});a.i.s(a,"submenuopen",function(){a.yc()});a.i.s(a.A,"play",function(){oE(a)});a.i.s(a.A,"pause",function(){oE(a)});a.i.s(a.j,"mousemove",function(b){JE(a,b)});a.i.s(a.j,"touchmove",function(b){JE(a,b)},{passive:!0});a.i.s(a.j,"touchend",function(b){JE(a,b)},{passive:!0});a.i.s(a.j,"mouseleave",function(){a.I||a.P.Ia()});
1491
- a.i.s(a.F,"caststatuschanged",function(){sE(a)});a.i.s(a.u,"vrstatuschanged",function(){a.dispatchEvent(new Q("vrstatuschanged"))});a.i.s(a.j,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.h.contains(c)&&JE(a,b);if(a.g.enableKeyboardPlaybackControls){c=a.g.keyboardSeekDistance;var f=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.l&&e&&!d&&0<c&&(b.preventDefault(),
1492
- OE(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&e&&!d&&0<c&&(b.preventDefault(),OE(a,a.l.getValue()+c));break;case "PageDown":a.l&&e&&0<c&&(b.preventDefault(),OE(a,a.l.getValue()-f));break;case "PageUp":a.l&&e&&0<c&&(b.preventDefault(),OE(a,a.l.getValue()+f));break;case "Home":a.l&&OE(a,a.G.Pa().start);break;case "End":a.l&&OE(a,a.G.Pa().end);break;case "f":a.Pd()&&a.cf();break;case "m":a.m&&a.m.isLinear()?a.m.setMuted(!a.m.isMuted()):a.o.muted=!a.o.muted;break;case "p":a.De()&&a.$d();break;
1493
- case " ":e&&PE(a)}}});a.i.s(a.j,"keyup",function(b){a.ma.delete(b.key)});a.i.s(a.Ja,"ad-started",function(b){a.m=b.ad;a.Th()});a.i.s(a.Ja,"ad-stopped",function(){a.m=null;a.qh()});screen.orientation&&a.i.s(screen.orientation,"change",function(){return L(function(b){return D(b,QE(a),0)})})}
1494
- function QE(a){return L(function(b){return a.A&&0!=a.A.readyState&&!a.F.Ga()&&a.g.enableFullscreenOnRotation&&a.Pd()?screen.orientation.type.includes("landscape")&&!a.Zc()?D(b,FE(a),0):screen.orientation.type.includes("portrait")&&a.Zc()?D(b,GE(a),0):b.D(0):b.return()})}
1495
- function JE(a,b){"mousemove"==b.type&&(a.h.classList.remove("shaka-keyboard-navigation"),oE(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.I=Date.now():a.I+1E3<Date.now()&&(a.I=null);a.I&&"mousemove"==b.type||(a.j.style.cursor="",a.$a=!0,a.K.stop(),a.kc()||(pE(a),oE(a)),a.P.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.I||a.P.V(3))}function RE(a){return window.matchMedia("hover: hover").matches?a.Gb.some(function(b){return b.matches(":hover")}):!1}
1496
- function oE(a){var b=a.m?a.m.isPaused():!1,c=a.A.paused&&!a.Y,d=a.h.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.$a||d||RE(a)?(pE(a),a.h.setAttribute("shown","true"),a.aa.stop()):a.aa.V(a.g.fadeDelay)}function KE(a){a.S&&!a.Nb()&&(a.Bd()?a.K.Ia():a.g.singleClickForPlayAndPause&&PE(a))}function PE(a){a.m&&a.m.isLinear()?sD(a):tD(a)}
1497
- function sE(a){var b=a.F.Ga();a.dispatchEvent(new Q("caststatuschanged",(new Map).set("newStatus",b)));b?a.h.setAttribute("casting","true"):a.h.removeAttribute("casting")}q.kc=function(){return this.S?null!=this.h.getAttribute("shown")||null!=this.h.getAttribute("casting"):!1};function OE(a,b){a.l.changeTo(b);a.kc()&&pE(a)}
1498
- function pE(a){if(a.l)if(a.l.setValue(a.A.currentTime),a.l.update(),a.l.isShowing())for(var b=u(a.J),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=u(a.J),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new Q("timeandseekrangeupdated"))}
1499
- function NE(a,b){a.ma.add(b.key);var c=a.Bd();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),oE(a),a.i.s(window,"mousedown",function(){a.i.Ya(window,"mousedown")}));"Escape"==b.key&&a.K.Ia();c&&a.ma.has("Tab")&&SE(a,b)}
1500
- function SE(a,b){var c=a.J.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ma.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1501
- q.hk=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});JE(this,a)};q.mj=function(){this.I||this.P.Ia()};q.Cf=function(){return this.u.Cf()};q.Nb=function(){return this.u.Nb()};
1502
- q.fj=function(){var a=this.u;if(a.g){a=a.g;RD(a.h,a.G);var b=a.h;a=b[0];var c=b[1],d=b[2];b=b[3];var e=d*d,f=b*b;var g=a*a+c*c+e+f;var h=a*b-c*d;h>.499995*g?(g=Math.PI/2,a=2*Math.atan2(c,a)):h<-.499995*g?(g=-Math.PI/2,a=2*Math.atan2(c,a)):(g=Math.asin(2*(a*d-b*c)),a=Math.atan2(2*(a*b+c*d),1-2*(e+f)));a=180*Math.acos(Math.cos(a)*Math.cos(g))/Math.PI}else Ua("Not playing VR content"),a=null;return a};q.ej=function(){var a=this.u;a.g?a=a.g.i:(Ua("Not playing VR content"),a=null);return a};
1503
- q.gk=function(a){var b=this.u;b.g?(0>a?(Ua("Field of view should be greater than 0"),a=0):100<a&&(Ua("Field of view should be less than 100"),a=100),b=b.g,b.i=a,XD(b,!1)):Ua("Not playing VR content")};q.hd=function(){this.u.hd()};q.eg=function(a){this.u.eg(a)};q.cg=function(a){this.u.cg(a)};q.dg=function(a){this.u.dg(a)};
1504
- function qE(){var a=new Vc("en");a.Da("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1485
+ function LE(a){var b=[].concat(w(document.styleSheets)).map(function(d){try{return[].concat(w(d.cssRules)).map(function(f){return f.cssText}).join("")}catch(f){var e=document.createElement("link");e.rel="stylesheet";e.type=d.type;e.media=d.media;e.href=d.href;a.document.head.appendChild(e)}return""}).filter(Boolean).join("\n"),c=document.createElement("style");c.textContent=b;a.document.head.appendChild(c)}q.Vh=function(){pD(this.L,!0);pD(this.O,!0);this.h.setAttribute("ad-active","true")};
1486
+ q.sh=function(){pD(this.L,!1);pD(this.O,!1);this.h.removeAttribute("ad-active")};function wD(a){a.S&&a.A.duration&&(a.G.Qc(),a.A.paused&&!a.Y?a.A.play():a.A.pause())}function vD(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1487
+ function zE(a){a.h=T("div");a.h.classList.add("shaka-controls-container");a.j.appendChild(a.h);a.j.setAttribute("shaka-controls","true");a.i.s(a.h,"touchstart",function(b){a.A.duration&&(a.kc()?a.I=Date.now():(ME(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.i.s(a.h,"click",function(){NE(a)});a.i.s(a.h,"dblclick",function(){a.g.doubleClickForFullscreen&&a.Pd()&&a.cf()})}
1488
+ function CE(a){var b=T("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.Za=new xD(b,a);a.H.push(a.Za)}function BE(a){var b=T("div");b.classList.add("shaka-scrim-container");a.h.appendChild(b)}function OE(a){a.L=T("div");a.L.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();pD(a.L,b);a.M.appendChild(a.L);b=new sD(a.L,a);a.H.push(b);b=new rD(a.L,a);a.H.push(b)}
1489
+ function DE(a){a.$=T("div");a.$.classList.add("shaka-spinner-container");a.j.appendChild(a.$);var b=T("div");b.classList.add("shaka-spinner");a.$.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");b.setAttribute("fill",
1490
+ "none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}function EE(a){var b=T("div");b.classList.add("shaka-hidden-fast-forward-container");a.h.appendChild(b);a.Vb=new DD(b,a);a.H.push(a.Vb)}function FE(a){var b=T("div");b.classList.add("shaka-hidden-rewind-container");a.h.appendChild(b);a.Wb=new ED(b,a);a.H.push(a.Wb)}
1491
+ function GE(a){a.M=T("div");a.M.classList.add("shaka-bottom-controls");a.M.classList.add("shaka-no-propagation");a.h.appendChild(a.M);a.i.s(a.M,"click",function(d){d.target.closest(".shaka-overflow-button")||a.yc()});OE(a);a.X=T("div");a.X.classList.add("shaka-controls-button-panel");a.X.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.X.classList.add("shaka-tooltips-on");a.M.appendChild(a.X);for(var b=u(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,yE.get(c)?
1492
+ (c=yE.get(c).create(a.X,a),a.H.push(c)):Ua("Unrecognized control panel element requested:",c)}function HE(a){if(a.g.addSeekBar)a.l=PE.create(a.M,a),a.H.push(a.l);else{a=u(a.J);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function AE(a){a.O=T("div");a.O.classList.add("shaka-client-side-ad-container");pD(a.O,!1);a.i.s(a.O,"click",function(){NE(a)});a.j.appendChild(a.O)}
1493
+ function uE(a){a.i.s(a.G,"buffering",function(){a.S&&pD(a.$,a.G.Od())});a.S&&pD(a.$,a.G.Od());a.i.s(window,"keydown",function(b){QE(a,b)});a.i.s(window,"click",function(){return a.yc()});a.i.s(a,"submenuopen",function(){a.yc()});a.i.s(a.A,"play",function(){rE(a)});a.i.s(a.A,"pause",function(){rE(a)});a.i.s(a.j,"mousemove",function(b){ME(a,b)});a.i.s(a.j,"touchmove",function(b){ME(a,b)},{passive:!0});a.i.s(a.j,"touchend",function(b){ME(a,b)},{passive:!0});a.i.s(a.j,"mouseleave",function(){a.I||a.P.Ia()});
1494
+ a.i.s(a.F,"caststatuschanged",function(){vE(a)});a.i.s(a.u,"vrstatuschanged",function(){a.dispatchEvent(new Q("vrstatuschanged"))});a.i.s(a.j,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.h.contains(c)&&ME(a,b);if(a.g.enableKeyboardPlaybackControls){c=a.g.keyboardSeekDistance;var f=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.l&&e&&!d&&0<c&&(b.preventDefault(),
1495
+ RE(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&e&&!d&&0<c&&(b.preventDefault(),RE(a,a.l.getValue()+c));break;case "PageDown":a.l&&e&&0<c&&(b.preventDefault(),RE(a,a.l.getValue()-f));break;case "PageUp":a.l&&e&&0<c&&(b.preventDefault(),RE(a,a.l.getValue()+f));break;case "Home":a.l&&RE(a,a.G.Pa().start);break;case "End":a.l&&RE(a,a.G.Pa().end);break;case "f":a.Pd()&&a.cf();break;case "m":a.m&&a.m.isLinear()?a.m.setMuted(!a.m.isMuted()):a.o.muted=!a.o.muted;break;case "p":a.De()&&a.$d();break;
1496
+ case " ":e&&SE(a)}}});a.i.s(a.j,"keyup",function(b){a.ma.delete(b.key)});a.i.s(a.Ja,"ad-started",function(b){a.m=b.ad;a.Vh()});a.i.s(a.Ja,"ad-stopped",function(){a.m=null;a.sh()});screen.orientation&&a.i.s(screen.orientation,"change",function(){return L(function(b){return D(b,TE(a),0)})})}
1497
+ function TE(a){return L(function(b){return a.A&&0!=a.A.readyState&&!a.F.Ga()&&a.g.enableFullscreenOnRotation&&a.Pd()?screen.orientation.type.includes("landscape")&&!a.Zc()?D(b,IE(a),0):screen.orientation.type.includes("portrait")&&a.Zc()?D(b,JE(a),0):b.B(0):b.return()})}
1498
+ function ME(a,b){"mousemove"==b.type&&(a.h.classList.remove("shaka-keyboard-navigation"),rE(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.I=Date.now():a.I+1E3<Date.now()&&(a.I=null);a.I&&"mousemove"==b.type||(a.j.style.cursor="",a.$a=!0,a.K.stop(),a.kc()||(sE(a),rE(a)),a.P.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.I||a.P.V(3))}function UE(a){return window.matchMedia("hover: hover").matches?a.Gb.some(function(b){return b.matches(":hover")}):!1}
1499
+ function rE(a){var b=a.m?a.m.isPaused():!1,c=a.A.paused&&!a.Y,d=a.h.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.$a||d||UE(a)?(sE(a),a.h.setAttribute("shown","true"),a.aa.stop()):a.aa.V(a.g.fadeDelay)}function NE(a){a.S&&!a.Nb()&&(a.Bd()?a.K.Ia():a.g.singleClickForPlayAndPause&&SE(a))}function SE(a){a.m&&a.m.isLinear()?vD(a):wD(a)}
1500
+ function vE(a){var b=a.F.Ga();a.dispatchEvent(new Q("caststatuschanged",(new Map).set("newStatus",b)));b?a.h.setAttribute("casting","true"):a.h.removeAttribute("casting")}q.kc=function(){return this.S?null!=this.h.getAttribute("shown")||null!=this.h.getAttribute("casting"):!1};function RE(a,b){a.l.changeTo(b);a.kc()&&sE(a)}
1501
+ function sE(a){if(a.l)if(a.l.setValue(a.A.currentTime),a.l.update(),a.l.isShowing())for(var b=u(a.J),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=u(a.J),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new Q("timeandseekrangeupdated"))}
1502
+ function QE(a,b){a.ma.add(b.key);var c=a.Bd();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),rE(a),a.i.s(window,"mousedown",function(){a.i.Ya(window,"mousedown")}));"Escape"==b.key&&a.K.Ia();c&&a.ma.has("Tab")&&VE(a,b)}
1503
+ function VE(a,b){var c=a.J.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ma.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1504
+ q.hk=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});ME(this,a)};q.mj=function(){this.I||this.P.Ia()};q.Cf=function(){return this.u.Cf()};q.Nb=function(){return this.u.Nb()};
1505
+ q.fj=function(){var a=this.u;if(a.g){a=a.g;UD(a.h,a.G);var b=a.h;a=b[0];var c=b[1],d=b[2];b=b[3];var e=d*d,f=b*b;var g=a*a+c*c+e+f;var h=a*b-c*d;h>.499995*g?(g=Math.PI/2,a=2*Math.atan2(c,a)):h<-.499995*g?(g=-Math.PI/2,a=2*Math.atan2(c,a)):(g=Math.asin(2*(a*d-b*c)),a=Math.atan2(2*(a*b+c*d),1-2*(e+f)));a=180*Math.acos(Math.cos(a)*Math.cos(g))/Math.PI}else Ua("Not playing VR content"),a=null;return a};q.ej=function(){var a=this.u;a.g?a=a.g.i:(Ua("Not playing VR content"),a=null);return a};
1506
+ q.gk=function(a){var b=this.u;b.g?(0>a?(Ua("Field of view should be greater than 0"),a=0):100<a&&(Ua("Field of view should be less than 100"),a=100),b=b.g,b.i=a,$D(b,!1)):Ua("Not playing VR content")};q.hd=function(){this.u.hd()};q.eg=function(a){this.u.eg(a)};q.cg=function(a){this.u.cg(a)};q.dg=function(a){this.u.dg(a)};
1507
+ function tE(){var a=new Vc("en");a.Da("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1505
1508
  ["ENTER_LOOP_MODE","\u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],["ENTER_PICTURE_IN_PICTURE",'\u0627\u0644\u062f\u062e\u0648\u0644 \u0641\u064a \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["EXIT_FULL_SCREEN","\u0625\u0646\u0647\u0627\u0621 \u0648\u0636\u0639 \u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["EXIT_LOOP_MODE","\u0625\u064a\u0642\u0627\u0641 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],
1506
1509
  ["EXIT_PICTURE_IN_PICTURE",'\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["FAST_FORWARD","\u062a\u0642\u062f\u064a\u0645 \u0633\u0631\u064a\u0639"],["FULL_SCREEN","\u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["LANGUAGE","\u0627\u0644\u0644\u063a\u0629"],["LIVE","\u0645\u0628\u0627\u0634\u0631"],["LOOP","\u062a\u0643\u0631\u0627\u0631"],["MORE_SETTINGS","\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a"],
1507
1510
  ["MULTIPLE_LANGUAGES","\u0644\u063a\u0627\u062a \u0645\u062a\u0639\u062f\u062f\u0629"],["MUTE","\u0643\u062a\u0645 \u0627\u0644\u0635\u0648\u062a"],["NOT_APPLICABLE","\u063a\u064a\u0631 \u0633\u0627\u0631\u064d"],["OFF","\u0625\u064a\u0642\u0627\u0641"],["ON","\u062a\u0634\u063a\u064a\u0644"],["PAUSE","\u0625\u064a\u0642\u0627\u0641 \u0645\u0624\u0642\u062a"],["PICTURE_IN_PICTURE","\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0627\u0644\u0646\u0627\u0641\u0630\u0629"],["PLAY","\u0627\u0644\u062a\u0634\u063a\u064a\u0644"],
@@ -1560,92 +1563,92 @@ a.Da("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [
1560
1563
  "\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.Da("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY",
1561
1564
  "\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["ENTER_LOOP_MODE","\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["ENTER_PICTURE_IN_PICTURE","\u9032\u5165\u5b50\u6bcd\u756b\u9762"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u87a2\u5e55\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["EXIT_PICTURE_IN_PICTURE","\u96e2\u958b\u5b50\u6bcd\u756b\u9762"],["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN",
1562
1565
  "\u5168\u87a2\u5e55"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],["MORE_SETTINGS","\u986f\u793a\u66f4\u591a\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u7a2e\u8a9e\u8a00"],["MUTE","\u975c\u97f3"],["NOT_APPLICABLE","\u4e0d\u9069\u7528"],["OFF","\u95dc\u9589"],["ON","\u958b\u555f"],["PAUSE","\u66ab\u505c"],["PICTURE_IN_PICTURE","\u5b50\u6bcd\u756b\u9762"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u89e3\u6790\u5ea6"],
1563
- ["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.ah(navigator.languages||[]);return a}N("shaka.ui.Controls",Z);Z.prototype.incrementRoll=Z.prototype.dg;Z.prototype.incrementPitch=Z.prototype.cg;Z.prototype.incrementYaw=Z.prototype.eg;
1564
- Z.prototype.toggleStereoscopicMode=Z.prototype.hd;Z.prototype.setVRFieldOfView=Z.prototype.gk;Z.prototype.getVRFieldOfView=Z.prototype.ej;Z.prototype.getVRNorth=Z.prototype.fj;Z.prototype.isPlayingVR=Z.prototype.Nb;Z.prototype.canPlayVR=Z.prototype.Cf;Z.prototype.hideUI=Z.prototype.mj;Z.prototype.showUI=Z.prototype.hk;Z.prototype.isOpaque=Z.prototype.kc;Z.prototype.hideAdUI=Z.prototype.qh;Z.prototype.showAdUI=Z.prototype.Th;Z.prototype.togglePiP=Z.prototype.$d;Z.prototype.isPiPEnabled=Z.prototype.Ee;
1565
- Z.prototype.isPiPAllowed=Z.prototype.De;Z.prototype.toggleFullScreen=Z.prototype.cf;Z.prototype.isFullScreenEnabled=Z.prototype.Zc;Z.prototype.isFullScreenSupported=Z.prototype.Pd;Z.prototype.hideSettingsMenus=Z.prototype.yc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.Bd;Z.prototype.setLastTouchEventTime=Z.prototype.Oh;Z.prototype.getDisplayTime=Z.prototype.Wf;Z.prototype.isCastAllowed=Z.prototype.nj;Z.prototype.setSeeking=Z.prototype.Hg;Z.prototype.isSeeking=Z.prototype.tj;
1566
- Z.prototype.getConfig=Z.prototype.Gi;Z.prototype.getClientSideAdContainer=Z.prototype.Fi;Z.prototype.getServerSideAdContainer=Z.prototype.Zi;Z.prototype.getControlsContainer=Z.prototype.Ii;Z.prototype.getLocalPlayer=Z.prototype.Pi;Z.prototype.getPlayer=Z.prototype.Wc;Z.prototype.getLocalVideo=Z.prototype.Qi;Z.prototype.getVideo=Z.prototype.jc;Z.prototype.getVideoContainer=Z.prototype.hj;Z.prototype.getLocalization=Z.prototype.Ri;Z.prototype.getCastProxy=Z.prototype.Di;Z.prototype.getAd=Z.prototype.getAd;
1567
- Z.prototype.setEnabledNativeControls=Z.prototype.Mh;Z.prototype.setEnabledShakaControls=Z.prototype.Eg;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.wj;Z.prototype.allowCast=Z.prototype.mi;Z.registerSeekBar=function(a){ME=a};Z.registerElement=uE;Z.prototype.destroy=Z.prototype.destroy;var vE=new Map,ME=new ND;function TE(a,b){hD.call(this,a,b);var c=this;this.l=this.controls.g;this.j=this.controls.h;this.i=[];this.g=Qm();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=T("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1568
- this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);UE(this);this.eventManager.s(this.localization,"locale-updated",function(){VE(c)});this.eventManager.s(this.localization,"locale-changed",function(){VE(c)});this.eventManager.s(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&mD(c.g,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){mD(c.g,!0)});this.eventManager.s(this.controls,"submenuopen",function(){mD(c.h,!1)});this.eventManager.s(this.h,"touchstart",function(d){c.controls.Oh(Date.now());
1569
- d.stopPropagation()});this.eventManager.s(this.g,"click",function(){WE(c)});VE(this);this.ad&&this.ad.isLinear()&&mD(this.g,!1)}na(TE,hD);TE.prototype.release=function(){this.j=null;for(var a=u(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];hD.prototype.release.call(this)};function XE(a,b){YE.set(a,b)}
1570
- function UE(a){for(var b=u(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,YE.get(c)?(c=YE.get(c),a.i.push(c.create(a.h,a.controls))):Ua("Unrecognized overflow menu element requested:",c)}function WE(a){if(a.controls.Bd())a.controls.yc();else{mD(a.h,!0);oE(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};fb(a.h.childNodes,b)&&gb(a.h.childNodes,b)[0].focus()}}function VE(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1571
- N("shaka.ui.OverflowMenu",TE);TE.registerElement=XE;function ZE(){}ZE.prototype.create=function(a,b){return new TE(a,b)};uE("overflow_menu",new ZE);var YE=new Map;function $E(a,b){hD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=T("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");a.appendChild(this.j);
1572
- this.i=T("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);aF(this);bF(this);this.eventManager.s(this.localization,"locale-updated",function(){aF(c)});this.eventManager.s(this.localization,"locale-changed",function(){aF(c)});this.eventManager.s(this.g,"click",function(){c.controls.jc().webkitShowPlaybackTargetPicker()});a=this.controls.jc();this.eventManager.s(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1573
- c.player.Id()==Po;mD(c.g,"available"==d.availability&&e)});this.eventManager.s(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){bF(c)})}na($E,hD);function bF(a){var b=a.controls.jc();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function aF(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}N("shaka.ui.AirPlayButton",$E);function cF(){}cF.prototype.create=function(a,b){return new $E(a,b)};XE("airplay",new cF);
1574
- uE("airplay",new cF);function dF(a,b,c,d){d=void 0===d?null:d;this.i=a;this.j=b;this.h=eF(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.gg()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,d,this.h);this.configure({});c.controls||a.Ig(b);b.ui=this;c.ui=this}q=dF.prototype;q.destroy=function(){var a=this;return L(function(b){if(1==b.g)return a.g?D(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?D(b,a.i.destroy(),4):b.D(4);a.i=null;G(b)})};
1575
- q.gg=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:bc()&&1<navigator.maxTouchPoints};q.getConfiguration=function(){var a=eF(this);$l(a,this.h,eF(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=am(a,b));$l(this.h,a,eF(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new Q("uiupdated"))};q.Hi=function(){return this.g};
1566
+ ["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.dh(navigator.languages||[]);return a}N("shaka.ui.Controls",Z);Z.prototype.incrementRoll=Z.prototype.dg;Z.prototype.incrementPitch=Z.prototype.cg;Z.prototype.incrementYaw=Z.prototype.eg;
1567
+ Z.prototype.toggleStereoscopicMode=Z.prototype.hd;Z.prototype.setVRFieldOfView=Z.prototype.gk;Z.prototype.getVRFieldOfView=Z.prototype.ej;Z.prototype.getVRNorth=Z.prototype.fj;Z.prototype.isPlayingVR=Z.prototype.Nb;Z.prototype.canPlayVR=Z.prototype.Cf;Z.prototype.hideUI=Z.prototype.mj;Z.prototype.showUI=Z.prototype.hk;Z.prototype.isOpaque=Z.prototype.kc;Z.prototype.hideAdUI=Z.prototype.sh;Z.prototype.showAdUI=Z.prototype.Vh;Z.prototype.togglePiP=Z.prototype.$d;Z.prototype.isPiPEnabled=Z.prototype.Ee;
1568
+ Z.prototype.isPiPAllowed=Z.prototype.De;Z.prototype.toggleFullScreen=Z.prototype.cf;Z.prototype.isFullScreenEnabled=Z.prototype.Zc;Z.prototype.isFullScreenSupported=Z.prototype.Pd;Z.prototype.hideSettingsMenus=Z.prototype.yc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.Bd;Z.prototype.setLastTouchEventTime=Z.prototype.Qh;Z.prototype.getDisplayTime=Z.prototype.Wf;Z.prototype.isCastAllowed=Z.prototype.nj;Z.prototype.setSeeking=Z.prototype.Hg;Z.prototype.isSeeking=Z.prototype.tj;
1569
+ Z.prototype.getConfig=Z.prototype.Hi;Z.prototype.getClientSideAdContainer=Z.prototype.Gi;Z.prototype.getServerSideAdContainer=Z.prototype.Zi;Z.prototype.getControlsContainer=Z.prototype.Ji;Z.prototype.getLocalPlayer=Z.prototype.Pi;Z.prototype.getPlayer=Z.prototype.Wc;Z.prototype.getLocalVideo=Z.prototype.Qi;Z.prototype.getVideo=Z.prototype.jc;Z.prototype.getVideoContainer=Z.prototype.hj;Z.prototype.getLocalization=Z.prototype.Ri;Z.prototype.getCastProxy=Z.prototype.Ei;Z.prototype.getAd=Z.prototype.getAd;
1570
+ Z.prototype.setEnabledNativeControls=Z.prototype.Oh;Z.prototype.setEnabledShakaControls=Z.prototype.Eg;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.wj;Z.prototype.allowCast=Z.prototype.ni;Z.registerSeekBar=function(a){PE=a};Z.registerElement=xE;Z.prototype.destroy=Z.prototype.destroy;var yE=new Map,PE=new QD;function WE(a,b){kD.call(this,a,b);var c=this;this.l=this.controls.g;this.j=this.controls.h;this.i=[];this.g=Qm();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=T("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1571
+ this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);XE(this);this.eventManager.s(this.localization,"locale-updated",function(){YE(c)});this.eventManager.s(this.localization,"locale-changed",function(){YE(c)});this.eventManager.s(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&pD(c.g,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){pD(c.g,!0)});this.eventManager.s(this.controls,"submenuopen",function(){pD(c.h,!1)});this.eventManager.s(this.h,"touchstart",function(d){c.controls.Qh(Date.now());
1572
+ d.stopPropagation()});this.eventManager.s(this.g,"click",function(){ZE(c)});YE(this);this.ad&&this.ad.isLinear()&&pD(this.g,!1)}na(WE,kD);WE.prototype.release=function(){this.j=null;for(var a=u(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];kD.prototype.release.call(this)};function $E(a,b){aF.set(a,b)}
1573
+ function XE(a){for(var b=u(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,aF.get(c)?(c=aF.get(c),a.i.push(c.create(a.h,a.controls))):Ua("Unrecognized overflow menu element requested:",c)}function ZE(a){if(a.controls.Bd())a.controls.yc();else{pD(a.h,!0);rE(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};fb(a.h.childNodes,b)&&gb(a.h.childNodes,b)[0].focus()}}function YE(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1574
+ N("shaka.ui.OverflowMenu",WE);WE.registerElement=$E;function bF(){}bF.prototype.create=function(a,b){return new WE(a,b)};xE("overflow_menu",new bF);var aF=new Map;function cF(a,b){kD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=T("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");a.appendChild(this.j);
1575
+ this.i=T("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);dF(this);eF(this);this.eventManager.s(this.localization,"locale-updated",function(){dF(c)});this.eventManager.s(this.localization,"locale-changed",function(){dF(c)});this.eventManager.s(this.g,"click",function(){c.controls.jc().webkitShowPlaybackTargetPicker()});a=this.controls.jc();this.eventManager.s(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1576
+ c.player.Id()==Po;pD(c.g,"available"==d.availability&&e)});this.eventManager.s(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){eF(c)})}na(cF,kD);function eF(a){var b=a.controls.jc();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function dF(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}N("shaka.ui.AirPlayButton",cF);function fF(){}fF.prototype.create=function(a,b){return new cF(a,b)};$E("airplay",new fF);
1577
+ xE("airplay",new fF);function gF(a,b,c,d){d=void 0===d?null:d;this.i=a;this.j=b;this.h=hF(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.gg()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,d,this.h);this.configure({});c.controls||a.Ig(b);b.ui=this;c.ui=this}q=gF.prototype;q.destroy=function(){var a=this;return L(function(b){if(1==b.g)return a.g?D(b,a.g.destroy(),2):b.B(2);if(4!=b.g)return a.g=null,a.i?D(b,a.i.destroy(),4):b.B(4);a.i=null;G(b)})};
1578
+ q.gg=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:bc()&&1<navigator.maxTouchPoints};q.getConfiguration=function(){var a=hF(this);$l(a,this.h,hF(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=am(a,b));$l(this.h,a,hF(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new Q("uiupdated"))};q.Ii=function(){return this.g};
1576
1579
  q.dk=function(a){this.g.Eg(a)};
1577
- function eF(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate recenter_vr toggle_stereoscopic".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent bytesDownloaded".split(" "),contextMenuElements:["loop",
1580
+ function hF(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate recenter_vr toggle_stereoscopic".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent bytesDownloaded".split(" "),contextMenuElements:["loop",
1578
1581
  "picture_in_picture","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)"},
1579
- trackLabelFormat:fF,textTrackLabelFormat:fF,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5,keyboardLargeSeekDistance:60,fullScreenElement:a.j,preferDocumentPictureInPicture:!0,showAudioChannelCountVariants:!0,seekOnTaps:!0,tapSeekDistance:10,refreshTickInSeconds:.125,displayInVrMode:!1,defaultVrProjectionMode:"equirectangular"};"remote"in HTMLMediaElement.prototype?
1582
+ trackLabelFormat:iF,textTrackLabelFormat:iF,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5,keyboardLargeSeekDistance:60,fullScreenElement:a.j,preferDocumentPictureInPicture:!0,showAudioChannelCountVariants:!0,seekOnTaps:!0,tapSeekDistance:10,refreshTickInSeconds:.125,displayInVrMode:!1,defaultVrProjectionMode:"equirectangular"};"remote"in HTMLMediaElement.prototype?
1580
1583
  b.overflowMenuButtons.push("remote"):window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.gg()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1581
- function gF(){var a,b,c,d,e,f,g,h,k,l,m,n,r,p,t,x,w,B,v,A,z;return L(function(C){switch(C.g){case 1:pz();if(!ao())return hF("shaka-ui-load-failed",iF),C.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");d=document.querySelectorAll("[data-shaka-player-vr-canvas]");if(!b.length&&!a.length){C.D(2);break}if(b.length&&!a.length){e=u(b);for(f=e.next();!f.done;f=e.next())g=f.value,
1582
- g.ui||(h=document.createElement("div"),k=g.parentElement,k.replaceChild(h,g),h.appendChild(g),l=jF(h,c,d),m=l.xh,n=l.ai,kF(h,g,m,n));C.D(2);break}r=u(a);p=r.next();case 4:if(p.done){C.D(2);break}t=p.value;if(t.ui){C.D(5);break}x=null;w=u(b);for(f=w.next();!f.done;f=w.next())if(B=f.value,B.parentElement==t){x=B;break}x||(x=document.createElement("video"),x.setAttribute("playsinline",""),t.appendChild(x));v=jF(t,c,d);A=v.xh;z=v.ai;ra(C,7);return D(C,kF(t,x,A,z),9);case 9:ta(C,5);break;case 7:return ua(C),
1583
- hF("shaka-ui-load-failed",lF),C.return();case 5:p=r.next();C.D(4);break;case 2:hF("shaka-ui-loaded"),G(C)}})}function hF(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1584
- function kF(a,b,c,d){var e,f,g,h,k,l,m,n,r;return L(function(p){switch(p.g){case 1:e=new U;f=new dF(e,a,b,d);e.Xg(c);g="";h=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(g=a.dataset.shakaPlayerCastReceiverId,h="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(g=b.dataset.shakaPlayerCastReceiverId,h="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);g.length&&f.configure({castReceiverAppId:g,castAndroidReceiverCompatible:h});
1585
- b.controls&&f.g.Mh(!0);if(k=b.getAttribute("src"))l=document.createElement("source"),l.setAttribute("src",k),b.appendChild(l),b.removeAttribute("src");m=u(b.querySelectorAll("source"));n=m.next();case 2:if(n.done){p.D(4);break}r=n.value;ra(p,5);return D(p,f.g.Wc().load(r.getAttribute("src")),7);case 7:p.D(4);break;case 5:ua(p);case 3:n=m.next();p.D(2);break;case 4:return D(p,e.Pc(b),0)}})}
1586
- function jF(a,b,c){var d=null,e=u(b);for(b=e.next();!b.done;b=e.next())if(b=b.value,b.parentElement==a){d=b;break}d||(d=document.createElement("canvas"),d.classList.add("shaka-canvas-container"),a.appendChild(d));e=null;c=u(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.parentElement==a){e=b;break}e||(e=document.createElement("canvas"),e.classList.add("shaka-vr-canvas-container"),a.appendChild(e));return{xh:d,ai:e}}N("shaka.ui.Overlay",dF);dF.prototype.setEnabled=dF.prototype.dk;
1587
- dF.prototype.getControls=dF.prototype.Hi;dF.prototype.configure=dF.prototype.configure;dF.prototype.getConfiguration=dF.prototype.getConfiguration;dF.prototype.isMobile=dF.prototype.gg;dF.prototype.destroy=dF.prototype.destroy;var fF=0;dF.TrackLabelFormat={LANGUAGE:fF,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var iF=0,lF=1;dF.FailReasonCode={NO_BROWSER_SUPPORT:iF,PLAYER_FAILED_TO_LOAD:lF};
1588
- "complete"==document.readyState?L(function(a){if(1==a.g)return D(a,Promise.resolve(),2);gF();G(a)}):window.addEventListener("load",gF);function mF(a,b,c,d,e,f,g,h){function k(H){var J="";5<=H&&(J=" "+f.resolve("SURROUND"));return J}function l(H,J,F,I){H=[H,J];h&&null!=I&&H.push(I);F&&3==g&&H.push(F);return H.join(": ")}function m(H){return"variant"==H.type?H.audioRoles?H.audioRoles.join(", "):void 0:H.roles.join(", ")}var n=a.find(function(H){return 1==H.active}),r=iD(b);Rm(b);b.appendChild(r);r=new Map;for(var p=u(a),t=p.next();!t.done;t=p.next())t=t.value,r.has(t.language)||r.set(t.language,new Set),r.get(t.language).add(m(t));
1589
- r=new Set;n=n?l(n.language,m(n),n.label,n.channelsCount):"";p={};a=u(a);for(t=a.next();!t.done;p={Eb:p.Eb},t=a.next()){p.Eb=t.value;t=p.Eb.language;var x=p.Eb.forced,w=f.resolve("SUBTITLE_FORCED"),B=m(p.Eb),v=p.Eb.label,A=p.Eb.channelsCount,z=l(t,B,v,A);if(!r.has(z)){r.add(z);var C=Qm();C.addEventListener("click",function(H){return function(){c(H.Eb)}}(p));var E=T("span");C.appendChild(E);E.textContent=nF(t,f);switch(g){case fF:h&&(E.textContent+=k(A));x&&(E.textContent+=" ("+w+")");break;case 1:h&&
1590
- (E.textContent+=k(A));B?E.textContent=B:(Ua("Track #"+p.Eb.id+" does not have a role, but the UI is configured to only show role."),E.textContent="?");x&&(E.textContent+=" ("+w+")");break;case 2:h&&(E.textContent+=k(A));B&&(E.textContent+=": "+B);x&&(E.textContent+=" ("+w+")");break;case 3:v?E.textContent=v:(Ua("Track #"+p.Eb.id+" does not have a label, but the UI is configured to only show labels."),E.textContent="?")}d&&z==n&&(C.appendChild(lD()),E.classList.add("shaka-chosen-item"),C.ariaSelected=
1591
- "true",e.textContent=E.textContent);b.appendChild(C)}}}function nF(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=Rc(a);return a in dD?dD[a].B:c in dD?dD[c].B+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function oF(a,b,c){hD.call(this,a,b);var d=this;pF(this,c);qF(this);rF(this);this.eventManager.s(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new Q("submenuopen")),mD(d.menu,!0),kD(d.menu)):mD(d.menu,!1)})}na(oF,hD);
1592
- function pF(a,b){a.button=Qm();a.button.classList.add("shaka-overflow-button");a.icon=T("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=T("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=T("span");b.appendChild(a.nameSpan);a.currentSelection=T("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
1593
- function qF(a){a.menu=T("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=Qm();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.s(a.backButton,"click",function(){a.controls.yc()});var b=T("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1594
- T("span");a.backButton.appendChild(a.backSpan);a.controls.h.appendChild(a.menu)}function rF(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.s(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}mD(a.parent,!0);fb(a.parent.childNodes,b)&&gb(a.parent.childNodes,b)[0].focus();oE(a.controls)}))}N("shaka.ui.SettingsMenu",oF);function sF(a,b){oF.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.s(this.localization,"locale-updated",function(){tF(c)});this.eventManager.s(this.localization,"locale-changed",function(){tF(c)});this.eventManager.s(this.player,"trackschanged",function(){var d=0<c.player.rb().length;mD(c.button,d);uF(c)});this.eventManager.s(this.player,"variantchanged",
1595
- function(){uF(c)});tF(this);uF(this)}na(sF,oF);
1596
- function uF(a){var b=a.player.rb();mF(b,a.menu,function(c){c.channelsCount&&a.controls.g.showAudioChannelCountVariants?a.player.Xe(c.language,c.roles[0],c.channelsCount):a.player.Xe(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);kD(a.menu);a.controls.dispatchEvent(new Q("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText);mD(a.button,2<a.menu.getElementsByTagName("button").length)}
1597
- function tF(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}N("shaka.ui.AudioLanguageSelection",sF);function vF(){}vF.prototype.create=function(a,b){return new sF(a,b)};XE("language",new vF);uE("language",new vF);function wF(a,b){hD.call(this,a,b);var c=this;this.h=this.controls.F;this.g=Qm();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=T("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=T("span");a.appendChild(this.l);this.j=T("span");this.j.classList.add("shaka-current-selection-span");
1598
- a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);xF(this);yF(this);this.eventManager.s(this.localization,"locale-updated",function(){xF(c)});this.eventManager.s(this.localization,"locale-changed",function(){xF(c)});this.eventManager.s(this.g,"click",function(){zF(c)});this.eventManager.s(this.controls,"caststatuschanged",function(){yF(c)})}na(wF,hD);
1599
- function zF(a){var b;L(function(c){if(1==c.g){if(a.h.Ga())return a.h.Uh(),c.D(0);ra(c,3);a.g.disabled=!0;return D(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,ta(c,0);b=ua(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new Q("error",(new Map).set("detail",b)));G(c)})}function yF(a){var b=a.h.Bf()&&a.controls.qa,c=a.h.Ga();mD(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");AF(a)}
1600
- function AF(a){a.j.textContent=a.h.Ga()?a.h.Ue():a.localization.resolve("OFF")}function xF(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");AF(a)}N("shaka.ui.CastButton",wF);function BF(){}BF.prototype.create=function(a,b){return new wF(a,b)};XE("cast",new BF);uE("cast",new BF);function CF(a,b){hD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);DF(this);this.h=this.controls.g.fastForwardRates;this.eventManager.s(this.localization,"locale-updated",function(){DF(c)});this.eventManager.s(this.localization,"locale-changed",function(){DF(c)});
1601
- this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Ra())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Hc(d);c.g.setAttribute("shaka-status",d+"x")}})}na(CF,hD);function DF(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}N("shaka.ui.FastForwardButton",CF);function EF(){}EF.prototype.create=function(a,b){return new CF(a,b)};uE("fast_forward",new EF);function FF(a,b){hD.call(this,a,b);var c=this;this.h=this.controls.o;this.g=Qm();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");GF(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);HF(this);this.eventManager.s(this.localization,"locale-updated",function(){HF(c)});this.eventManager.s(this.localization,"locale-changed",function(){HF(c)});this.eventManager.s(this.g,"click",function(){return L(function(d){return D(d,
1602
- c.controls.cf(),0)})});this.eventManager.s(document,"fullscreenchange",function(){c.g.textContent=c.controls.Zc()?"fullscreen_exit":"fullscreen";HF(c)});this.eventManager.s(this.h,"loadedmetadata",function(){GF(c)});this.eventManager.s(this.h,"loadeddata",function(){GF(c)})}na(FF,hD);function GF(a){a.controls.Pd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function HF(a){a.g.ariaLabel=a.localization.resolve(a.controls.Zc()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1603
- N("shaka.ui.FullscreenButton",FF);function IF(){}IF.prototype.create=function(a,b){return new FF(a,b)};uE("fullscreen",new IF);function JF(a,b){hD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=T("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.l=T("span");this.l.classList.add("shaka-current-selection-span");
1604
- a.appendChild(this.l);this.g.appendChild(a);KF(this);this.parent.appendChild(this.g);this.eventManager.s(this.localization,"locale-updated",function(){KF(c)});this.eventManager.s(this.localization,"locale-changed",function(){KF(c)});this.eventManager.s(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Ia();c.h.ya(1)});this.m=this.video.loop;this.h=new Ob(function(){c.m!=c.video.loop&&(KF(c),c.m=c.video.loop)});this.h.ya(1)}na(JF,hD);
1605
- JF.prototype.release=function(){this.h.stop();this.h=null;hD.prototype.release.call(this)};function KF(a){a.j.textContent=a.localization.resolve("LOOP");a.l.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}N("shaka.ui.LoopButton",JF);function LF(){}LF.prototype.create=function(a,b){return new JF(a,b)};XE("loop",new LF);uE("loop",new LF);xD("loop",new LF);function MF(a,b){hD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);NF(this);OF(this);this.eventManager.s(this.localization,"locale-updated",function(){NF(c)});this.eventManager.s(this.localization,"locale-changed",function(){NF(c)});this.eventManager.s(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1606
- this.eventManager.s(this.video,"volumechange",function(){NF(c);OF(c)});this.eventManager.s(this.adManager,"ad-volume-changed",function(){NF(c);OF(c)});this.eventManager.s(this.adManager,"ad-muted",function(){NF(c);OF(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null;NF(c);OF(c)})}na(MF,hD);function NF(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1607
- function OF(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}N("shaka.ui.MuteButton",MF);function PF(){}PF.prototype.create=function(a,b){return new MF(a,b)};uE("mute",new PF);function QF(a,b){hD.call(this,a,b);var c=this;this.l=this.controls.o;this.g=Qm();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=T("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
1608
- T("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);RF(this);this.parent.appendChild(this.g);this.controls.De()||mD(this.g,!1);this.eventManager.s(this.localization,"locale-updated",function(){RF(c)});this.eventManager.s(this.localization,"locale-changed",function(){RF(c)});this.eventManager.s(this.g,"click",function(){c.controls.$d()});this.eventManager.s(this.l,"enterpictureinpicture",function(){SF(c)});this.eventManager.s(this.l,"leavepictureinpicture",
1609
- function(){TF(c)});this.eventManager.s(this.controls,"caststatuschanged",function(){UF(c)});this.eventManager.s(this.player,"trackschanged",function(){UF(c)});"documentPictureInPicture"in window&&this.eventManager.s(window.documentPictureInPicture,"enter",function(d){SF(c);c.eventManager.na(d.window,"pagehide",function(){TF(c)})})}na(QF,hD);
1610
- function SF(a){a.i.textContent="branding_watermark";a.g.ariaLabel=a.localization.resolve("EXIT_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("ON")}function TF(a){a.i.textContent="picture_in_picture_alt";a.g.ariaLabel=a.localization.resolve("ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("OFF")}
1611
- function RF(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var b=a.controls.Ee();a.g.ariaLabel=a.localization.resolve(b?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(b?"ON":"OFF")}function UF(a){L(function(b){if(!a.controls.De())return mD(a.g,!1),a.controls.Ee()?D(b,a.controls.$d(),0):b.D(0);if(!a.player||!a.player.Yc())return mD(a.g,!0),b.D(0);mD(a.g,!1);return a.controls.Ee()?D(b,a.controls.$d(),0):b.D(0)})}N("shaka.ui.PipButton",QF);
1612
- function VF(){}VF.prototype.create=function(a,b){return new QF(a,b)};XE("picture_in_picture",new VF);uE("picture_in_picture",new VF);xD("picture_in_picture",new VF);function WF(a,b){oF.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.s(this.localization,"locale-updated",function(){XF(c)});this.eventManager.s(this.localization,"locale-changed",function(){XF(c)});this.eventManager.s(this.player,"loaded",function(){YF(c,c.player.Ra())});this.eventManager.s(this.player,"ratechange",function(){YF(c,
1613
- c.player.Ra())});this.g=new Map(this.controls.g.playbackRates.map(function(d){return[d+"x",d]}));XF(this);ZF(this);YF(this,this.player.Ra())}na(WF,oF);function XF(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("PLAYBACK_RATE");a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
1614
- function YF(a,b){var c=jD(a.menu,"material-icons-round shaka-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");d.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item");d.removeChild(c)}if(c=Array.from(a.menu.querySelectorAll("span")).find(function(e){return a.g.get(e.textContent)==b}))d=c.parentElement,d.appendChild(lD()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1615
- "x")}function ZF(a){for(var b={},c=u(a.g.keys()),d=c.next();!d.done;b={qd:b.qd},d=c.next()){b.qd=d.value;d=Qm();var e=T("span");e.textContent=b.qd;d.appendChild(e);a.eventManager.s(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.qd);a.video.defaultPlaybackRate=a.g.get(f.qd)}}(b));a.menu.appendChild(d)}kD(a.menu)}N("shaka.ui.PlaybackRateSelection",WF);function $F(){}$F.prototype.create=function(a,b){return new WF(a,b)};XE("playback_rate",new $F);uE("playback_rate",new $F);function aG(a,b){hD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("shaka-current-time");bG(this,"0:00");this.parent.appendChild(this.g);this.eventManager.s(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.Pa().end)});this.eventManager.s(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.Y,e=c.controls.Wf(),f=c.player.Pa(),g=f.end-f.start;c.player.U()?(e=Math.max(0,Math.floor(f.end-e)),g=3600<=g,1<=e||d?(bG(c,"- "+nD(e,g)),c.g.disabled=!1):(bG(c,c.localization.resolve("LIVE")),
1616
- c.g.disabled=!0)):(d=3600<=g,e=nD(Math.max(0,e-f.start),d),g&&(e+=" / "+nD(g,d)),bG(c,e),c.g.disabled=!0)});this.eventManager.s(this.player,"trackschanged",function(){c.player.U()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}na(aG,hD);function bG(a,b){b!=a.g.textContent&&(a.g.textContent=b)}N("shaka.ui.PresentationTimeTracker",aG);function cG(){}cG.prototype.create=function(a,b){return new aG(a,b)};uE("time_and_duration",new cG);function lG(a,b){hD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("shaka-recenter-vr-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=T("i");this.h.classList.add("material-icons-round");this.h.textContent="control_camera";this.g.appendChild(this.h);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");a.appendChild(this.j);this.i=T("span");this.i.classList.add("shaka-current-selection-span");
1617
- a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);mG(this);this.eventManager.s(this.localization,"locale-updated",function(){mG(c)});this.eventManager.s(this.localization,"locale-changed",function(){mG(c)});var d=this.controls.u;this.eventManager.s(this.g,"click",function(){d.g?fE(d.g):Ua("Not playing VR content")});this.eventManager.s(d,"vrstatuschanged",function(){mD(c.g,c.controls.Nb())});mD(this.g,this.controls.Nb())}na(lG,hD);
1618
- function mG(a){a.g.ariaLabel=a.localization.resolve("RECENTER_VR");a.j.textContent=a.localization.resolve("RECENTER_VR")}N("shaka.ui.RecenterVRButton",lG);function nG(){}nG.prototype.create=function(a,b){return new lG(a,b)};XE("recenter_vr",new nG);uE("recenter_vr",new nG);function oG(a,b){hD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("shaka-remote-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=T("i");this.i.classList.add("material-icons-round");a="cast";(b=gc())&&13<=b&&(a="airplay");this.i.textContent=a;this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=T("span");a.appendChild(this.l);this.j=T("span");this.j.classList.add("shaka-current-selection-span");
1619
- a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);this.h=-1;pG(this);mD(this.g,!1);!this.video.remote||this.video.disableRemotePlayback?this.g.classList.add("shaka-hidden"):(this.eventManager.s(this.localization,"locale-updated",function(){pG(c)}),this.eventManager.s(this.localization,"locale-changed",function(){pG(c)}),this.eventManager.s(this.controls,"caststatuschanged",function(){qG(c)}),this.eventManager.s(this.g,"click",function(){c.video.remote.prompt()}),this.eventManager.s(this.video.remote,
1620
- "connect",function(){qG(c)}),this.eventManager.s(this.video.remote,"connecting",function(){qG(c)}),this.eventManager.s(this.video.remote,"disconnect",function(){qG(c)}),this.eventManager.s(this.player,"loaded",function(){qG(c)}),qG(this))}na(oG,hD);oG.prototype.release=function(){this.video.remote&&-1!=this.h&&this.video.remote.cancelWatchAvailability(this.h).catch(function(){});hD.prototype.release.call(this)};
1621
- function qG(a){var b,c;L(function(d){switch(d.g){case 1:if(a.controls.F.Bf()&&a.controls.qa){mD(a.g,!1);-1!=a.h&&(a.video.remote.cancelWatchAvailability(a.h),a.h=-1);d.D(0);break}if("disconnected"==a.video.remote.state){b=function(e){a.player?mD(a.g,a.player.Id()==Po&&e):mD(a.g,!1)};ra(d,7);if(-1==a.h){d.D(9);break}return D(d,a.video.remote.cancelWatchAvailability(a.h),10)}if(-1==a.h){d.D(0);break}return D(d,a.video.remote.cancelWatchAvailability(a.h),6);case 6:a.h=-1;d.D(0);break;case 10:a.h=-1;
1622
- case 9:ta(d,8);break;case 7:ua(d);case 8:return ra(d,11),D(d,a.video.remote.watchAvailability(b),13);case 13:c=d.h;a.h=c;ta(d,0);break;case 11:ua(d),b(!0),G(d)}})}function pG(a){var b=a.localization.resolve("CAST"),c=gc();c&&13<=c&&(b=a.localization.resolve("AIRPLAY"));a.g.ariaLabel=b;a.l.textContent=b}N("shaka.ui.RemoteButton",oG);function rG(){}rG.prototype.create=function(a,b){return new oG(a,b)};XE("remote",new rG);uE("remote",new rG);function sG(a,b){oF.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.eventManager.s(this.localization,"locale-updated",function(){tG(c)});this.eventManager.s(this.localization,"locale-changed",function(){tG(c)});this.eventManager.s(this.player,"variantchanged",function(){uG(c)});this.eventManager.s(this.player,"trackschanged",function(){uG(c)});this.eventManager.s(this.player,
1623
- "abrstatuschanged",function(){uG(c)});uG(this)}na(sG,oF);
1624
- function uG(a){var b=[];a.player.Id()!=Po&&(b=a.player.rb());var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){if(k.language!=c.language||a.controls.g.showAudioChannelCountVariants&&k.channelsCount!=c.channelsCount)return!1;var l=a.controls.g.trackLabelFormat;return(1==l||2==l)&&JSON.stringify(k.audioRoles)!=JSON.stringify(c.audioRoles)||3==l&&k.label!=c.label?!1:!0}));b=b.filter(function(k,l){var m=-1;m=a.player.Yc()?b.findIndex(function(n){return n.bandwidth==k.bandwidth}):b.findIndex(function(n){return n.height==
1625
- k.height&&n.videoBandwidth==k.videoBandwidth&&n.frameRate==k.frameRate&&n.hdr==k.hdr&&n.videoLayout==k.videoLayout});return m==l});a.player.Yc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=iD(a.menu);Rm(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=u(b),g=f.next();!g.done;e={Rb:e.Rb},g=f.next()){e.Rb=g.value;g=Qm();g.classList.add("explicit-resolution");a.eventManager.s(g,"click",function(k){return function(){var l=
1626
- k.Rb;a.player.configure({abr:{enabled:!1}});a.player.Ye(l,a.controls.g.clearBufferOnQualityChange)}}(e));var h=T("span");h.textContent=a.player.Yc()&&e.Rb.bandwidth?Math.round(e.Rb.bandwidth/1E3)+" kbits/s":e.Rb.height&&e.Rb.width?vG(e.Rb):"Unknown";g.appendChild(h);d||e.Rb!=c||(g.ariaSelected="true",g.appendChild(lD()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=Qm();e.classList.add("shaka-enable-abr-button");a.eventManager.s(e,"click",
1627
- function(){a.player.configure({abr:{enabled:!0}});uG(a)});a.g=T("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(lD()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);kD(a.menu);a.controls.dispatchEvent(new Q("resolutionselectionupdated"));
1628
- tG(a);mD(a.button,1<b.length)}function vG(a){var b=a.height||0,c=a.width||0,d=b;c/b>16/9&&(d=Math.round(9*c/16));b=d+"p";2160==d&&(b="4K");(d=a.frameRate)&&(50<=d||20>=d)&&(b+=Math.round(a.frameRate));if("PQ"==a.hdr||"HLG"==a.hdr)b+=" (HDR)";"CH-STEREO"==a.videoLayout&&(b+=" (3D)");return b}
1629
- function tG(a){var b=a.player.Yc()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}N("shaka.ui.ResolutionSelection",sG);function wG(){}
1630
- wG.prototype.create=function(a,b){return new sG(a,b)};XE("quality",new wG);uE("quality",new wG);function xG(a,b){hD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);yG(this);this.h=this.controls.g.rewindRates;this.eventManager.s(this.localization,"locale-updated",function(){yG(c)});this.eventManager.s(this.localization,"locale-changed",function(){yG(c)});
1631
- this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Ra())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Hc(d);c.g.setAttribute("shaka-status",d+"x")}})}na(xG,hD);function yG(a){a.g.ariaLabel=a.localization.resolve("REWIND")}N("shaka.ui.RewindButton",xG);function zG(){}zG.prototype.create=function(a,b){return new xG(a,b)};uE("rewind",new zG);function AG(a,b){hD.call(this,a,b);var c=this;this.j=T("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=T("div");this.h.classList.add("shaka-skip-ad-counter");mD(this.h,!1);this.j.appendChild(this.h);this.g=Qm();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;mD(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);BG(this);this.i=new Ob(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1632
- d:(c.i.stop(),mD(c.h,!1))});this.eventManager.s(this.localization,"locale-updated",function(){BG(c)});this.eventManager.s(this.localization,"locale-changed",function(){BG(c)});this.eventManager.s(this.adManager,"ad-started",function(){CG(c)});this.eventManager.s(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),mD(c.h,!1))});this.eventManager.s(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;mD(c.g,!1);mD(c.h,!1)});this.eventManager.s(this.g,
1633
- "click",function(){c.ad.skip()});this.ad&&CG(this)}na(AG,hD);AG.prototype.release=function(){this.i.stop();this.i=null;hD.prototype.release.call(this)};function BG(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function CG(a){a.ad.isSkippable()&&(mD(a.g,!0),mD(a.h,!0),a.h.textContent="",a.i.Ia(),a.i.ya(.5))}N("shaka.ui.SkipAdButton",AG);function DG(a,b){rD.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}na(DG,rD);DG.prototype.h=function(){this.isEnded()?this.button.textContent="replay":this.button.textContent=this.isPaused()?"play_arrow":"pause"};
1634
- DG.prototype.g=function(){if(this.isEnded())this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};N("shaka.ui.SmallPlayButton",DG);function EG(){}EG.prototype.create=function(a,b){return new DG(a,b)};uE("play_pause",new EG);function FG(a,b){hD.call(this,a,b);a=T("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}na(FG,hD);N("shaka.ui.Spacer",FG);function GG(){}GG.prototype.create=function(a,b){return new FG(a,b)};uE("spacer",new GG);function HG(a,b){function c(k){return nD(h.g[k],!1)+" (m)"}function d(k){return Math.round(h.g[k]/1E3)+" (kbits/s)"}function e(k){return h.g[k].toFixed(2)+" (s)"}function f(k){return h.g[k]+" (frames)"}function g(k){return h.g[k]+" (px)"}hD.call(this,a,b);var h=this;this.i=Qm();this.i.classList.add("shaka-statistics-button");this.j=T("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=T("label");a.classList.add("shaka-overflow-button-label");
1584
+ function jF(){var a,b,c,d,e,f,g,h,k,l,m,n,r,p,t,y,x,A,v,B,z;return L(function(C){switch(C.g){case 1:pz();if(!ao())return kF("shaka-ui-load-failed",lF),C.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");d=document.querySelectorAll("[data-shaka-player-vr-canvas]");if(!b.length&&!a.length){C.B(2);break}if(b.length&&!a.length){e=u(b);for(f=e.next();!f.done;f=e.next())g=f.value,
1585
+ g.ui||(h=document.createElement("div"),k=g.parentElement,k.replaceChild(h,g),h.appendChild(g),l=mF(h,c,d),m=l.Ah,n=l.ci,nF(h,g,m,n));C.B(2);break}r=u(a);p=r.next();case 4:if(p.done){C.B(2);break}t=p.value;if(t.ui){C.B(5);break}y=null;x=u(b);for(f=x.next();!f.done;f=x.next())if(A=f.value,A.parentElement==t){y=A;break}y||(y=document.createElement("video"),y.setAttribute("playsinline",""),t.appendChild(y));v=mF(t,c,d);B=v.Ah;z=v.ci;ra(C,7);return D(C,nF(t,y,B,z),9);case 9:ta(C,5);break;case 7:return ua(C),
1586
+ kF("shaka-ui-load-failed",oF),C.return();case 5:p=r.next();C.B(4);break;case 2:kF("shaka-ui-loaded"),G(C)}})}function kF(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1587
+ function nF(a,b,c,d){var e,f,g,h,k,l,m,n,r;return L(function(p){switch(p.g){case 1:e=new U;f=new gF(e,a,b,d);e.Zg(c);g="";h=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(g=a.dataset.shakaPlayerCastReceiverId,h="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(g=b.dataset.shakaPlayerCastReceiverId,h="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);g.length&&f.configure({castReceiverAppId:g,castAndroidReceiverCompatible:h});
1588
+ b.controls&&f.g.Oh(!0);if(k=b.getAttribute("src"))l=document.createElement("source"),l.setAttribute("src",k),b.appendChild(l),b.removeAttribute("src");m=u(b.querySelectorAll("source"));n=m.next();case 2:if(n.done){p.B(4);break}r=n.value;ra(p,5);return D(p,f.g.Wc().load(r.getAttribute("src")),7);case 7:p.B(4);break;case 5:ua(p);case 3:n=m.next();p.B(2);break;case 4:return D(p,e.Pc(b),0)}})}
1589
+ function mF(a,b,c){var d=null,e=u(b);for(b=e.next();!b.done;b=e.next())if(b=b.value,b.parentElement==a){d=b;break}d||(d=document.createElement("canvas"),d.classList.add("shaka-canvas-container"),a.appendChild(d));e=null;c=u(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.parentElement==a){e=b;break}e||(e=document.createElement("canvas"),e.classList.add("shaka-vr-canvas-container"),a.appendChild(e));return{Ah:d,ci:e}}N("shaka.ui.Overlay",gF);gF.prototype.setEnabled=gF.prototype.dk;
1590
+ gF.prototype.getControls=gF.prototype.Ii;gF.prototype.configure=gF.prototype.configure;gF.prototype.getConfiguration=gF.prototype.getConfiguration;gF.prototype.isMobile=gF.prototype.gg;gF.prototype.destroy=gF.prototype.destroy;var iF=0;gF.TrackLabelFormat={LANGUAGE:iF,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var lF=0,oF=1;gF.FailReasonCode={NO_BROWSER_SUPPORT:lF,PLAYER_FAILED_TO_LOAD:oF};
1591
+ "complete"==document.readyState?L(function(a){if(1==a.g)return D(a,Promise.resolve(),2);jF();G(a)}):window.addEventListener("load",jF);function pF(a,b,c,d,e,f,g,h){function k(H){var J="";5<=H&&(J=" "+f.resolve("SURROUND"));return J}function l(H,J,F,I){H=[H,J];h&&null!=I&&H.push(I);F&&3==g&&H.push(F);return H.join(": ")}function m(H){return"variant"==H.type?H.audioRoles?H.audioRoles.join(", "):void 0:H.roles.join(", ")}var n=a.find(function(H){return 1==H.active}),r=lD(b);Rm(b);b.appendChild(r);r=new Map;for(var p=u(a),t=p.next();!t.done;t=p.next())t=t.value,r.has(t.language)||r.set(t.language,new Set),r.get(t.language).add(m(t));
1592
+ r=new Set;n=n?l(n.language,m(n),n.label,n.channelsCount):"";p={};a=u(a);for(t=a.next();!t.done;p={Eb:p.Eb},t=a.next()){p.Eb=t.value;t=p.Eb.language;var y=p.Eb.forced,x=f.resolve("SUBTITLE_FORCED"),A=m(p.Eb),v=p.Eb.label,B=p.Eb.channelsCount,z=l(t,A,v,B);if(!r.has(z)){r.add(z);var C=Qm();C.addEventListener("click",function(H){return function(){c(H.Eb)}}(p));var E=T("span");C.appendChild(E);E.textContent=qF(t,f);switch(g){case iF:h&&(E.textContent+=k(B));y&&(E.textContent+=" ("+x+")");break;case 1:h&&
1593
+ (E.textContent+=k(B));A?E.textContent=A:(Ua("Track #"+p.Eb.id+" does not have a role, but the UI is configured to only show role."),E.textContent="?");y&&(E.textContent+=" ("+x+")");break;case 2:h&&(E.textContent+=k(B));A&&(E.textContent+=": "+A);y&&(E.textContent+=" ("+x+")");break;case 3:v?E.textContent=v:(Ua("Track #"+p.Eb.id+" does not have a label, but the UI is configured to only show labels."),E.textContent="?")}d&&z==n&&(C.appendChild(oD()),E.classList.add("shaka-chosen-item"),C.ariaSelected=
1594
+ "true",e.textContent=E.textContent);b.appendChild(C)}}}function qF(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=Rc(a);return a in gD?gD[a].C:c in gD?gD[c].C+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function rF(a,b,c){kD.call(this,a,b);var d=this;sF(this,c);tF(this);uF(this);this.eventManager.s(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new Q("submenuopen")),pD(d.menu,!0),nD(d.menu)):pD(d.menu,!1)})}na(rF,kD);
1595
+ function sF(a,b){a.button=Qm();a.button.classList.add("shaka-overflow-button");a.icon=T("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=T("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=T("span");b.appendChild(a.nameSpan);a.currentSelection=T("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
1596
+ function tF(a){a.menu=T("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=Qm();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.s(a.backButton,"click",function(){a.controls.yc()});var b=T("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1597
+ T("span");a.backButton.appendChild(a.backSpan);a.controls.h.appendChild(a.menu)}function uF(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.s(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}pD(a.parent,!0);fb(a.parent.childNodes,b)&&gb(a.parent.childNodes,b)[0].focus();rE(a.controls)}))}N("shaka.ui.SettingsMenu",rF);function vF(a,b){rF.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.s(this.localization,"locale-updated",function(){wF(c)});this.eventManager.s(this.localization,"locale-changed",function(){wF(c)});this.eventManager.s(this.player,"trackschanged",function(){var d=0<c.player.rb().length;pD(c.button,d);xF(c)});this.eventManager.s(this.player,"variantchanged",
1598
+ function(){xF(c)});wF(this);xF(this)}na(vF,rF);
1599
+ function xF(a){var b=a.player.rb();pF(b,a.menu,function(c){c.channelsCount&&a.controls.g.showAudioChannelCountVariants?a.player.Xe(c.language,c.roles[0],c.channelsCount):a.player.Xe(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);nD(a.menu);a.controls.dispatchEvent(new Q("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText);pD(a.button,2<a.menu.getElementsByTagName("button").length)}
1600
+ function wF(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}N("shaka.ui.AudioLanguageSelection",vF);function yF(){}yF.prototype.create=function(a,b){return new vF(a,b)};$E("language",new yF);xE("language",new yF);function zF(a,b){kD.call(this,a,b);var c=this;this.h=this.controls.F;this.g=Qm();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=T("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=T("span");a.appendChild(this.l);this.j=T("span");this.j.classList.add("shaka-current-selection-span");
1601
+ a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);AF(this);BF(this);this.eventManager.s(this.localization,"locale-updated",function(){AF(c)});this.eventManager.s(this.localization,"locale-changed",function(){AF(c)});this.eventManager.s(this.g,"click",function(){CF(c)});this.eventManager.s(this.controls,"caststatuschanged",function(){BF(c)})}na(zF,kD);
1602
+ function CF(a){var b;L(function(c){if(1==c.g){if(a.h.Ga())return a.h.Wh(),c.B(0);ra(c,3);a.g.disabled=!0;return D(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,ta(c,0);b=ua(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new Q("error",(new Map).set("detail",b)));G(c)})}function BF(a){var b=a.h.Bf()&&a.controls.qa,c=a.h.Ga();pD(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");DF(a)}
1603
+ function DF(a){a.j.textContent=a.h.Ga()?a.h.Ue():a.localization.resolve("OFF")}function AF(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");DF(a)}N("shaka.ui.CastButton",zF);function EF(){}EF.prototype.create=function(a,b){return new zF(a,b)};$E("cast",new EF);xE("cast",new EF);function FF(a,b){kD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);GF(this);this.h=this.controls.g.fastForwardRates;this.eventManager.s(this.localization,"locale-updated",function(){GF(c)});this.eventManager.s(this.localization,"locale-changed",function(){GF(c)});
1604
+ this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Ra())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Hc(d);c.g.setAttribute("shaka-status",d+"x")}})}na(FF,kD);function GF(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}N("shaka.ui.FastForwardButton",FF);function HF(){}HF.prototype.create=function(a,b){return new FF(a,b)};xE("fast_forward",new HF);function IF(a,b){kD.call(this,a,b);var c=this;this.h=this.controls.o;this.g=Qm();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");JF(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);KF(this);this.eventManager.s(this.localization,"locale-updated",function(){KF(c)});this.eventManager.s(this.localization,"locale-changed",function(){KF(c)});this.eventManager.s(this.g,"click",function(){return L(function(d){return D(d,
1605
+ c.controls.cf(),0)})});this.eventManager.s(document,"fullscreenchange",function(){c.g.textContent=c.controls.Zc()?"fullscreen_exit":"fullscreen";KF(c)});this.eventManager.s(this.h,"loadedmetadata",function(){JF(c)});this.eventManager.s(this.h,"loadeddata",function(){JF(c)})}na(IF,kD);function JF(a){a.controls.Pd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function KF(a){a.g.ariaLabel=a.localization.resolve(a.controls.Zc()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1606
+ N("shaka.ui.FullscreenButton",IF);function LF(){}LF.prototype.create=function(a,b){return new IF(a,b)};xE("fullscreen",new LF);function MF(a,b){kD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=T("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.l=T("span");this.l.classList.add("shaka-current-selection-span");
1607
+ a.appendChild(this.l);this.g.appendChild(a);NF(this);this.parent.appendChild(this.g);this.eventManager.s(this.localization,"locale-updated",function(){NF(c)});this.eventManager.s(this.localization,"locale-changed",function(){NF(c)});this.eventManager.s(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Ia();c.h.ya(1)});this.m=this.video.loop;this.h=new Ob(function(){c.m!=c.video.loop&&(NF(c),c.m=c.video.loop)});this.h.ya(1)}na(MF,kD);
1608
+ MF.prototype.release=function(){this.h.stop();this.h=null;kD.prototype.release.call(this)};function NF(a){a.j.textContent=a.localization.resolve("LOOP");a.l.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}N("shaka.ui.LoopButton",MF);function OF(){}OF.prototype.create=function(a,b){return new MF(a,b)};$E("loop",new OF);xE("loop",new OF);AD("loop",new OF);function PF(a,b){kD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);QF(this);RF(this);this.eventManager.s(this.localization,"locale-updated",function(){QF(c)});this.eventManager.s(this.localization,"locale-changed",function(){QF(c)});this.eventManager.s(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1609
+ this.eventManager.s(this.video,"volumechange",function(){QF(c);RF(c)});this.eventManager.s(this.adManager,"ad-volume-changed",function(){QF(c);RF(c)});this.eventManager.s(this.adManager,"ad-muted",function(){QF(c);RF(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null;QF(c);RF(c)})}na(PF,kD);function QF(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1610
+ function RF(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}N("shaka.ui.MuteButton",PF);function SF(){}SF.prototype.create=function(a,b){return new PF(a,b)};xE("mute",new SF);function TF(a,b){kD.call(this,a,b);var c=this;this.l=this.controls.o;this.g=Qm();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=T("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
1611
+ T("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);UF(this);this.parent.appendChild(this.g);this.controls.De()||pD(this.g,!1);this.eventManager.s(this.localization,"locale-updated",function(){UF(c)});this.eventManager.s(this.localization,"locale-changed",function(){UF(c)});this.eventManager.s(this.g,"click",function(){c.controls.$d()});this.eventManager.s(this.l,"enterpictureinpicture",function(){VF(c)});this.eventManager.s(this.l,"leavepictureinpicture",
1612
+ function(){WF(c)});this.eventManager.s(this.controls,"caststatuschanged",function(){XF(c)});this.eventManager.s(this.player,"trackschanged",function(){XF(c)});"documentPictureInPicture"in window&&this.eventManager.s(window.documentPictureInPicture,"enter",function(d){VF(c);c.eventManager.na(d.window,"pagehide",function(){WF(c)})})}na(TF,kD);
1613
+ function VF(a){a.i.textContent="branding_watermark";a.g.ariaLabel=a.localization.resolve("EXIT_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("ON")}function WF(a){a.i.textContent="picture_in_picture_alt";a.g.ariaLabel=a.localization.resolve("ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("OFF")}
1614
+ function UF(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var b=a.controls.Ee();a.g.ariaLabel=a.localization.resolve(b?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(b?"ON":"OFF")}function XF(a){L(function(b){if(!a.controls.De())return pD(a.g,!1),a.controls.Ee()?D(b,a.controls.$d(),0):b.B(0);if(!a.player||!a.player.Yc())return pD(a.g,!0),b.B(0);pD(a.g,!1);return a.controls.Ee()?D(b,a.controls.$d(),0):b.B(0)})}N("shaka.ui.PipButton",TF);
1615
+ function YF(){}YF.prototype.create=function(a,b){return new TF(a,b)};$E("picture_in_picture",new YF);xE("picture_in_picture",new YF);AD("picture_in_picture",new YF);function ZF(a,b){rF.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.s(this.localization,"locale-updated",function(){$F(c)});this.eventManager.s(this.localization,"locale-changed",function(){$F(c)});this.eventManager.s(this.player,"loaded",function(){aG(c,c.player.Ra())});this.eventManager.s(this.player,"ratechange",function(){aG(c,
1616
+ c.player.Ra())});this.g=new Map(this.controls.g.playbackRates.map(function(d){return[d+"x",d]}));$F(this);bG(this);aG(this,this.player.Ra())}na(ZF,rF);function $F(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("PLAYBACK_RATE");a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
1617
+ function aG(a,b){var c=mD(a.menu,"material-icons-round shaka-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");d.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item");d.removeChild(c)}if(c=Array.from(a.menu.querySelectorAll("span")).find(function(e){return a.g.get(e.textContent)==b}))d=c.parentElement,d.appendChild(oD()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1618
+ "x")}function bG(a){for(var b={},c=u(a.g.keys()),d=c.next();!d.done;b={qd:b.qd},d=c.next()){b.qd=d.value;d=Qm();var e=T("span");e.textContent=b.qd;d.appendChild(e);a.eventManager.s(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.qd);a.video.defaultPlaybackRate=a.g.get(f.qd)}}(b));a.menu.appendChild(d)}nD(a.menu)}N("shaka.ui.PlaybackRateSelection",ZF);function cG(){}cG.prototype.create=function(a,b){return new ZF(a,b)};$E("playback_rate",new cG);xE("playback_rate",new cG);function dG(a,b){kD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("shaka-current-time");eG(this,"0:00");this.parent.appendChild(this.g);this.eventManager.s(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.Pa().end)});this.eventManager.s(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.Y,e=c.controls.Wf(),f=c.player.Pa(),g=f.end-f.start;c.player.U()?(e=Math.max(0,Math.floor(f.end-e)),g=3600<=g,1<=e||d?(eG(c,"- "+qD(e,g)),c.g.disabled=!1):(eG(c,c.localization.resolve("LIVE")),
1619
+ c.g.disabled=!0)):(d=3600<=g,e=qD(Math.max(0,e-f.start),d),g&&(e+=" / "+qD(g,d)),eG(c,e),c.g.disabled=!0)});this.eventManager.s(this.player,"trackschanged",function(){c.player.U()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}na(dG,kD);function eG(a,b){b!=a.g.textContent&&(a.g.textContent=b)}N("shaka.ui.PresentationTimeTracker",dG);function fG(){}fG.prototype.create=function(a,b){return new dG(a,b)};xE("time_and_duration",new fG);function oG(a,b){kD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("shaka-recenter-vr-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=T("i");this.h.classList.add("material-icons-round");this.h.textContent="control_camera";this.g.appendChild(this.h);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");a.appendChild(this.j);this.i=T("span");this.i.classList.add("shaka-current-selection-span");
1620
+ a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);pG(this);this.eventManager.s(this.localization,"locale-updated",function(){pG(c)});this.eventManager.s(this.localization,"locale-changed",function(){pG(c)});var d=this.controls.u;this.eventManager.s(this.g,"click",function(){d.g?iE(d.g):Ua("Not playing VR content")});this.eventManager.s(d,"vrstatuschanged",function(){pD(c.g,c.controls.Nb())});pD(this.g,this.controls.Nb())}na(oG,kD);
1621
+ function pG(a){a.g.ariaLabel=a.localization.resolve("RECENTER_VR");a.j.textContent=a.localization.resolve("RECENTER_VR")}N("shaka.ui.RecenterVRButton",oG);function qG(){}qG.prototype.create=function(a,b){return new oG(a,b)};$E("recenter_vr",new qG);xE("recenter_vr",new qG);function rG(a,b){kD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("shaka-remote-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=T("i");this.i.classList.add("material-icons-round");a="cast";(b=gc())&&13<=b&&(a="airplay");this.i.textContent=a;this.g.appendChild(this.i);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=T("span");a.appendChild(this.l);this.j=T("span");this.j.classList.add("shaka-current-selection-span");
1622
+ a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);this.h=-1;sG(this);pD(this.g,!1);!this.video.remote||this.video.disableRemotePlayback?this.g.classList.add("shaka-hidden"):(this.eventManager.s(this.localization,"locale-updated",function(){sG(c)}),this.eventManager.s(this.localization,"locale-changed",function(){sG(c)}),this.eventManager.s(this.controls,"caststatuschanged",function(){tG(c)}),this.eventManager.s(this.g,"click",function(){c.video.remote.prompt()}),this.eventManager.s(this.video.remote,
1623
+ "connect",function(){tG(c)}),this.eventManager.s(this.video.remote,"connecting",function(){tG(c)}),this.eventManager.s(this.video.remote,"disconnect",function(){tG(c)}),this.eventManager.s(this.player,"loaded",function(){tG(c)}),tG(this))}na(rG,kD);rG.prototype.release=function(){this.video.remote&&-1!=this.h&&this.video.remote.cancelWatchAvailability(this.h).catch(function(){});kD.prototype.release.call(this)};
1624
+ function tG(a){var b,c;L(function(d){switch(d.g){case 1:if(a.controls.F.Bf()&&a.controls.qa){pD(a.g,!1);-1!=a.h&&(a.video.remote.cancelWatchAvailability(a.h),a.h=-1);d.B(0);break}if("disconnected"==a.video.remote.state){b=function(e){a.player?pD(a.g,a.player.Id()==Po&&e):pD(a.g,!1)};ra(d,7);if(-1==a.h){d.B(9);break}return D(d,a.video.remote.cancelWatchAvailability(a.h),10)}if(-1==a.h){d.B(0);break}return D(d,a.video.remote.cancelWatchAvailability(a.h),6);case 6:a.h=-1;d.B(0);break;case 10:a.h=-1;
1625
+ case 9:ta(d,8);break;case 7:ua(d);case 8:return ra(d,11),D(d,a.video.remote.watchAvailability(b),13);case 13:c=d.h;a.h=c;ta(d,0);break;case 11:ua(d),b(!0),G(d)}})}function sG(a){var b=a.localization.resolve("CAST"),c=gc();c&&13<=c&&(b=a.localization.resolve("AIRPLAY"));a.g.ariaLabel=b;a.l.textContent=b}N("shaka.ui.RemoteButton",rG);function uG(){}uG.prototype.create=function(a,b){return new rG(a,b)};$E("remote",new uG);xE("remote",new uG);function vG(a,b){rF.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.eventManager.s(this.localization,"locale-updated",function(){wG(c)});this.eventManager.s(this.localization,"locale-changed",function(){wG(c)});this.eventManager.s(this.player,"variantchanged",function(){xG(c)});this.eventManager.s(this.player,"trackschanged",function(){xG(c)});this.eventManager.s(this.player,
1626
+ "abrstatuschanged",function(){xG(c)});xG(this)}na(vG,rF);
1627
+ function xG(a){var b=[];a.player.Id()!=Po&&(b=a.player.rb());var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){if(k.language!=c.language||a.controls.g.showAudioChannelCountVariants&&k.channelsCount!=c.channelsCount)return!1;var l=a.controls.g.trackLabelFormat;return(1==l||2==l)&&JSON.stringify(k.audioRoles)!=JSON.stringify(c.audioRoles)||3==l&&k.label!=c.label?!1:!0}));b=b.filter(function(k,l){var m=-1;m=a.player.Yc()?b.findIndex(function(n){return n.bandwidth==k.bandwidth}):b.findIndex(function(n){return n.height==
1628
+ k.height&&n.videoBandwidth==k.videoBandwidth&&n.frameRate==k.frameRate&&n.hdr==k.hdr&&n.videoLayout==k.videoLayout});return m==l});a.player.Yc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=lD(a.menu);Rm(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e={},f=u(b),g=f.next();!g.done;e={Rb:e.Rb},g=f.next()){e.Rb=g.value;g=Qm();g.classList.add("explicit-resolution");a.eventManager.s(g,"click",function(k){return function(){var l=
1629
+ k.Rb;a.player.configure({abr:{enabled:!1}});a.player.Ye(l,a.controls.g.clearBufferOnQualityChange)}}(e));var h=T("span");h.textContent=a.player.Yc()&&e.Rb.bandwidth?Math.round(e.Rb.bandwidth/1E3)+" kbits/s":e.Rb.height&&e.Rb.width?yG(e.Rb):"Unknown";g.appendChild(h);d||e.Rb!=c||(g.ariaSelected="true",g.appendChild(oD()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=Qm();e.classList.add("shaka-enable-abr-button");a.eventManager.s(e,"click",
1630
+ function(){a.player.configure({abr:{enabled:!0}});xG(a)});a.g=T("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(oD()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);nD(a.menu);a.controls.dispatchEvent(new Q("resolutionselectionupdated"));
1631
+ wG(a);pD(a.button,1<b.length)}function yG(a){var b=a.height||0,c=a.width||0,d=b;c/b>16/9&&(d=Math.round(9*c/16));b=d+"p";2160==d&&(b="4K");(d=a.frameRate)&&(50<=d||20>=d)&&(b+=Math.round(a.frameRate));if("PQ"==a.hdr||"HLG"==a.hdr)b+=" (HDR)";"CH-STEREO"==a.videoLayout&&(b+=" (3D)");return b}
1632
+ function wG(a){var b=a.player.Yc()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}N("shaka.ui.ResolutionSelection",vG);function zG(){}
1633
+ zG.prototype.create=function(a,b){return new vG(a,b)};$E("quality",new zG);xE("quality",new zG);function AG(a,b){kD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);BG(this);this.h=this.controls.g.rewindRates;this.eventManager.s(this.localization,"locale-updated",function(){BG(c)});this.eventManager.s(this.localization,"locale-changed",function(){BG(c)});
1634
+ this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Ra())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Hc(d);c.g.setAttribute("shaka-status",d+"x")}})}na(AG,kD);function BG(a){a.g.ariaLabel=a.localization.resolve("REWIND")}N("shaka.ui.RewindButton",AG);function CG(){}CG.prototype.create=function(a,b){return new AG(a,b)};xE("rewind",new CG);function DG(a,b){kD.call(this,a,b);var c=this;this.j=T("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=T("div");this.h.classList.add("shaka-skip-ad-counter");pD(this.h,!1);this.j.appendChild(this.h);this.g=Qm();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;pD(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);EG(this);this.i=new Ob(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1635
+ d:(c.i.stop(),pD(c.h,!1))});this.eventManager.s(this.localization,"locale-updated",function(){EG(c)});this.eventManager.s(this.localization,"locale-changed",function(){EG(c)});this.eventManager.s(this.adManager,"ad-started",function(){FG(c)});this.eventManager.s(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),pD(c.h,!1))});this.eventManager.s(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;pD(c.g,!1);pD(c.h,!1)});this.eventManager.s(this.g,
1636
+ "click",function(){c.ad.skip()});this.ad&&FG(this)}na(DG,kD);DG.prototype.release=function(){this.i.stop();this.i=null;kD.prototype.release.call(this)};function EG(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function FG(a){a.ad.isSkippable()&&(pD(a.g,!0),pD(a.h,!0),a.h.textContent="",a.i.Ia(),a.i.ya(.5))}N("shaka.ui.SkipAdButton",DG);function GG(a,b){uD.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}na(GG,uD);GG.prototype.h=function(){this.isEnded()?this.button.textContent="replay":this.button.textContent=this.isPaused()?"play_arrow":"pause"};
1637
+ GG.prototype.g=function(){if(this.isEnded())this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};N("shaka.ui.SmallPlayButton",GG);function HG(){}HG.prototype.create=function(a,b){return new GG(a,b)};xE("play_pause",new HG);function IG(a,b){kD.call(this,a,b);a=T("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}na(IG,kD);N("shaka.ui.Spacer",IG);function JG(){}JG.prototype.create=function(a,b){return new IG(a,b)};xE("spacer",new JG);function KG(a,b){function c(k){return qD(h.g[k],!1)+" (m)"}function d(k){return Math.round(h.g[k]/1E3)+" (kbits/s)"}function e(k){return h.g[k].toFixed(2)+" (s)"}function f(k){return h.g[k]+" (frames)"}function g(k){return h.g[k]+" (px)"}kD.call(this,a,b);var h=this;this.i=Qm();this.i.classList.add("shaka-statistics-button");this.j=T("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=T("label");a.classList.add("shaka-overflow-button-label");
1635
1638
  this.o=T("span");a.appendChild(this.o);this.m=T("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);this.parent.appendChild(this.i);this.h=T("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.h.appendChild(this.h);this.F=[];this.G=["stateHistory","switchHistory"];this.g=this.player.getStats();
1636
1639
  this.u={};this.A={width:g,height:g,completionPercent:function(k){return h.g[k]+" (%)"},bufferingTime:e,drmTimeSeconds:e,licenseTime:e,liveLatency:e,loadLatency:e,manifestTimeSeconds:e,estimatedBandwidth:d,streamBandwidth:d,maxSegmentDuration:c,pauseTime:c,playTime:c,corruptedFrames:f,decodedFrames:f,droppedFrames:f,stallsDetected:function(k){return h.g[k]+" (stalls)"},gapsJumped:function(k){return h.g[k]+" (gaps)"},bytesDownloaded:function(k){k=parseInt(h.g[k],10);return 1E6<k?(k/1E6).toFixed(2)+
1637
- "MB":1E3<k?(k/1E3).toFixed(2)+"KB":k+"B"}};this.l=new Ob(function(){h.g=h.player.getStats();for(var k=u(h.F),l=k.next();!l.done;l=k.next())l=l.value,h.u[l].textContent=h.A[l](l)});IG(this);JG(this);this.eventManager.s(this.localization,"locale-updated",function(){IG(h)});this.eventManager.s(this.localization,"locale-changed",function(){IG(h)});this.eventManager.s(this.i,"click",function(){mD(h.parent,!1);h.h.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ya(.1),mD(h.h,!0)):
1638
- (h.j.textContent="insert_chart_outlined",h.l.stop(),mD(h.h,!1));IG(h)})}na(HG,hD);function IG(a){a.o.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.h.classList.contains("shaka-hidden")?"OFF":"ON")}
1639
- function JG(a){for(var b=u(a.controls.g.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.g&&!a.G.includes(c)){var d=a.h,e=d.appendChild,f=a,g=T("div"),h=T("label");h.textContent=c+":";g.appendChild(h);h=T("span");h.textContent=f.A[c](c);g.appendChild(h);f.u[c]=h;e.call(d,g);a.F.push(c)}else Ua("Unrecognized statistic element:",c)}HG.prototype.release=function(){this.l.stop();this.l=null;hD.prototype.release.call(this)};N("shaka.ui.StatisticsButton",HG);function KG(){}
1640
- KG.prototype.create=function(a,b){return new HG(a,b)};XE("statistics",new KG);xD("statistics",new KG);function LG(a,b){oF.call(this,a,b,"closed_caption");var c=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.Bc()?this.button.ariaPressed="true":this.button.ariaPressed="false";MG(this);this.eventManager.s(this.localization,"locale-updated",function(){NG(c);OG(c)});this.eventManager.s(this.localization,"locale-changed",function(){NG(c);OG(c)});this.eventManager.s(this.player,
1641
- "texttrackvisibility",function(){PG(c);OG(c)});this.eventManager.s(this.player,"textchanged",function(){OG(c)});this.eventManager.s(this.player,"trackschanged",function(){QG(c)});PG(this);NG(this);OG(this);QG(this)}na(LG,oF);function MG(a){var b=Qm();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(lD());a.g=T("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1642
- function PG(a){a.player.Bc()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new Q("captionselectionupdated"))}
1643
- function OG(a){var b=a.player.ic();mF(b,a.menu,function(c){return RG(a,c)},a.player.Bc(),a.currentSelection,a.localization,a.controls.g.textTrackLabelFormat,a.controls.g.showAudioChannelCountVariants);b=Qm();b.classList.add("shaka-turn-captions-off-button");a.eventManager.s(b,"click",function(){a.player.bf(!1);OG(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Bc()||(b.ariaSelected="true",b.appendChild(lD()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));
1644
- a.button.setAttribute("shaka-status",a.currentSelection.textContent);kD(a.menu);a.controls.dispatchEvent(new Q("captionselectionupdated"))}function RG(a,b){return L(function(c){a.player.Bg(b);return D(c,a.player.bf(!0),0)})}
1645
- function NG(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}function QG(a){var b=0<a.player.ic().length;mD(a.button,b);OG(a)}N("shaka.ui.TextSelection",LG);function SG(){}SG.prototype.create=function(a,b){return new LG(a,b)};XE("captions",new SG);uE("captions",new SG);function TG(a,b){hD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("shaka-toggle-stereoscopic-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=T("i");this.h.classList.add("material-icons-round");this.h.textContent="3d_rotation";this.g.appendChild(this.h);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");a.appendChild(this.j);this.i=T("span");this.i.classList.add("shaka-current-selection-span");
1646
- a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);UG(this);this.eventManager.s(this.localization,"locale-updated",function(){UG(c)});this.eventManager.s(this.localization,"locale-changed",function(){UG(c)});var d=this.controls.u;this.eventManager.s(this.g,"click",function(){d.hd()});this.eventManager.s(d,"vrstatuschanged",function(){mD(c.g,c.controls.Nb())});mD(this.g,this.controls.Nb())}na(TG,hD);
1647
- function UG(a){a.g.ariaLabel=a.localization.resolve("TOGGLE_STEREOSCOPIC");a.j.textContent=a.localization.resolve("TOGGLE_STEREOSCOPIC")}N("shaka.ui.ToggleStereoscopicButton",TG);function VG(){}VG.prototype.create=function(a,b){return new TG(a,b)};XE("toggle_stereoscopic",new VG);uE("toggle_stereoscopic",new VG);function WG(a,b){CD.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.g=this.controls.g;this.setRange(0,100);this.eventManager.s(this.video,"volumechange",function(){return XG(c)});this.eventManager.s(this.adManager,"ad-volume-changed",function(){return YG(c)});this.eventManager.s(this.adManager,"ad-muted",function(){return YG(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){return XG(c)});this.eventManager.s(this.localization,"locale-updated",function(){return ZG(c)});
1648
- this.eventManager.s(this.localization,"locale-changed",function(){return ZG(c)});XG(this);ZG(this);if(this.ad)this.onChange()}na(WG,CD);WG.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()/100):(this.video.volume=this.getValue()/100,this.video.muted=0==this.video.volume?!0:!1)};function XG(a){a.video.muted?a.setValue(0):a.setValue(100*a.video.volume);$G(a)}function YG(a){var b=a.ad.getVolume();a.setValue(100*b);$G(a)}
1649
- function $G(a){var b=a.g.volumeBarColors,c=["to right"];c.push(b.level+a.getValue()+"%");c.push(b.base+a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function ZG(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}N("shaka.ui.VolumeBar",WG);function aH(){}aH.prototype.create=function(a,b){return new WG(a,b)};uE("volume",new aH);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})();
1640
+ "MB":1E3<k?(k/1E3).toFixed(2)+"KB":k+"B"}};this.l=new Ob(function(){h.g=h.player.getStats();for(var k=u(h.F),l=k.next();!l.done;l=k.next())l=l.value,h.u[l].textContent=h.A[l](l)});LG(this);MG(this);this.eventManager.s(this.localization,"locale-updated",function(){LG(h)});this.eventManager.s(this.localization,"locale-changed",function(){LG(h)});this.eventManager.s(this.i,"click",function(){pD(h.parent,!1);h.h.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ya(.1),pD(h.h,!0)):
1641
+ (h.j.textContent="insert_chart_outlined",h.l.stop(),pD(h.h,!1));LG(h)})}na(KG,kD);function LG(a){a.o.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.h.classList.contains("shaka-hidden")?"OFF":"ON")}
1642
+ function MG(a){for(var b=u(a.controls.g.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.g&&!a.G.includes(c)){var d=a.h,e=d.appendChild,f=a,g=T("div"),h=T("label");h.textContent=c+":";g.appendChild(h);h=T("span");h.textContent=f.A[c](c);g.appendChild(h);f.u[c]=h;e.call(d,g);a.F.push(c)}else Ua("Unrecognized statistic element:",c)}KG.prototype.release=function(){this.l.stop();this.l=null;kD.prototype.release.call(this)};N("shaka.ui.StatisticsButton",KG);function NG(){}
1643
+ NG.prototype.create=function(a,b){return new KG(a,b)};$E("statistics",new NG);AD("statistics",new NG);function OG(a,b){rF.call(this,a,b,"closed_caption");var c=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.Bc()?this.button.ariaPressed="true":this.button.ariaPressed="false";PG(this);this.eventManager.s(this.localization,"locale-updated",function(){QG(c);RG(c)});this.eventManager.s(this.localization,"locale-changed",function(){QG(c);RG(c)});this.eventManager.s(this.player,
1644
+ "texttrackvisibility",function(){SG(c);RG(c)});this.eventManager.s(this.player,"textchanged",function(){RG(c)});this.eventManager.s(this.player,"trackschanged",function(){TG(c)});SG(this);QG(this);RG(this);TG(this)}na(OG,rF);function PG(a){var b=Qm();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(oD());a.g=T("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1645
+ function SG(a){a.player.Bc()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new Q("captionselectionupdated"))}
1646
+ function RG(a){var b=a.player.ic();pF(b,a.menu,function(c){return UG(a,c)},a.player.Bc(),a.currentSelection,a.localization,a.controls.g.textTrackLabelFormat,a.controls.g.showAudioChannelCountVariants);b=Qm();b.classList.add("shaka-turn-captions-off-button");a.eventManager.s(b,"click",function(){a.player.bf(!1);RG(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Bc()||(b.ariaSelected="true",b.appendChild(oD()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));
1647
+ a.button.setAttribute("shaka-status",a.currentSelection.textContent);nD(a.menu);a.controls.dispatchEvent(new Q("captionselectionupdated"))}function UG(a,b){return L(function(c){a.player.Bg(b);return D(c,a.player.bf(!0),0)})}
1648
+ function QG(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}function TG(a){var b=0<a.player.ic().length;pD(a.button,b);RG(a)}N("shaka.ui.TextSelection",OG);function VG(){}VG.prototype.create=function(a,b){return new OG(a,b)};$E("captions",new VG);xE("captions",new VG);function WG(a,b){kD.call(this,a,b);var c=this;this.g=Qm();this.g.classList.add("shaka-toggle-stereoscopic-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=T("i");this.h.classList.add("material-icons-round");this.h.textContent="3d_rotation";this.g.appendChild(this.h);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");a.appendChild(this.j);this.i=T("span");this.i.classList.add("shaka-current-selection-span");
1649
+ a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);XG(this);this.eventManager.s(this.localization,"locale-updated",function(){XG(c)});this.eventManager.s(this.localization,"locale-changed",function(){XG(c)});var d=this.controls.u;this.eventManager.s(this.g,"click",function(){d.hd()});this.eventManager.s(d,"vrstatuschanged",function(){pD(c.g,c.controls.Nb())});pD(this.g,this.controls.Nb())}na(WG,kD);
1650
+ function XG(a){a.g.ariaLabel=a.localization.resolve("TOGGLE_STEREOSCOPIC");a.j.textContent=a.localization.resolve("TOGGLE_STEREOSCOPIC")}N("shaka.ui.ToggleStereoscopicButton",WG);function YG(){}YG.prototype.create=function(a,b){return new WG(a,b)};$E("toggle_stereoscopic",new YG);xE("toggle_stereoscopic",new YG);function ZG(a,b){FD.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.g=this.controls.g;this.setRange(0,100);this.eventManager.s(this.video,"volumechange",function(){return $G(c)});this.eventManager.s(this.adManager,"ad-volume-changed",function(){return aH(c)});this.eventManager.s(this.adManager,"ad-muted",function(){return aH(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){return $G(c)});this.eventManager.s(this.localization,"locale-updated",function(){return bH(c)});
1651
+ this.eventManager.s(this.localization,"locale-changed",function(){return bH(c)});$G(this);bH(this);if(this.ad)this.onChange()}na(ZG,FD);ZG.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()/100):(this.video.volume=this.getValue()/100,this.video.muted=0==this.video.volume?!0:!1)};function $G(a){a.video.muted?a.setValue(0):a.setValue(100*a.video.volume);cH(a)}function aH(a){var b=a.ad.getVolume();a.setValue(100*b);cH(a)}
1652
+ function cH(a){var b=a.g.volumeBarColors,c=["to right"];c.push(b.level+a.getValue()+"%");c.push(b.base+a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function bH(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}N("shaka.ui.VolumeBar",ZG);function dH(){}dH.prototype.create=function(a,b){return new ZG(a,b)};xE("volume",new dH);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})();
1650
1653
 
1651
1654
  //# sourceMappingURL=shaka-player.ui.map