shaka-player 4.2.0 → 4.2.1

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.
@@ -9,33 +9,33 @@
9
9
  Copyright The Closure Library Authors.
10
10
  SPDX-License-Identifier: Apache-2.0
11
11
  */
12
- var q;function ba(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ca="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
13
- function da(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 ea=da(this);function fa(a,b){if(b)a:{for(var c=ea,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];if(!(f in c))break a;c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&ca(c,d,{configurable:!0,writable:!0,value:f})}}
14
- fa("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;ca(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
- fa("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=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ca(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(ba(this))}})}return a});function ia(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
16
- function t(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ba(a)}}function ja(a){if(!(a instanceof Array)){a=t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var la="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ma;
17
- if("function"==typeof Object.setPrototypeOf)ma=Object.setPrototypeOf;else{var na;a:{var oa={a:!0},pa={};try{pa.__proto__=oa;na=pa.a;break a}catch(a){}na=!1}ma=na?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var qa=ma;
18
- function u(a,b){a.prototype=la(b.prototype);a.prototype.constructor=a;if(qa)qa(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.bj=b.prototype}function ra(){this.A=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function sa(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}ra.prototype.B=function(a){this.h=a};
19
- function ta(a,b){a.i={nf:b,yf:!0};a.g=a.m||a.j}ra.prototype["return"]=function(a){this.i={"return":a};this.g=this.j};function z(a,b,c){a.g=c;return{value:b}}ra.prototype.D=function(a){this.g=a};function A(a){a.g=0}function F(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a){a.m=0;a.j=2}function va(a,b,c){a.g=b;a.m=c||0}function I(a,b){a.m=b||0;var c=a.i.nf;a.i=null;return c}function wa(a){a.C=[a.i];a.m=0;a.j=0}
20
- function ya(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.yf?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 za(a){this.g=new ra;this.h=a}function Aa(a,b){sa(a.g);var c=a.g.l;if(c)return Ba(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g["return"]);a.g["return"](b);return Ca(a)}
12
+ var q;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
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 fa(a,b){if(b)a:{for(var c=da,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];if(!(f in c))break a;c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&ba(c,d,{configurable:!0,writable:!0,value:f})}}
14
+ fa("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
+ fa("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 ha(aa(this))}})}return a});function ha(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
16
+ function t(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function ia(a){if(!(a instanceof Array)){a=t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ja="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},la;
17
+ if("function"==typeof Object.setPrototypeOf)la=Object.setPrototypeOf;else{var ma;a:{var na={a:!0},oa={};try{oa.__proto__=na;ma=oa.a;break a}catch(a){}ma=!1}la=ma?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var pa=la;
18
+ function qa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(pa)pa(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.bj=b.prototype}function ra(){this.A=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function sa(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}ra.prototype.B=function(a){this.h=a};
19
+ function ta(a,b){a.i={nf:b,yf:!0};a.g=a.m||a.j}ra.prototype["return"]=function(a){this.i={"return":a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}ra.prototype.D=function(a){this.g=a};function z(a){a.g=0}function A(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a){a.m=0;a.j=2}function va(a,b,c){a.g=b;a.m=c||0}function F(a,b){a.m=b||0;var c=a.i.nf;a.i=null;return c}function wa(a){a.C=[a.i];a.m=0;a.j=0}
20
+ function xa(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.yf?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 ya(a){this.g=new ra;this.h=a}function za(a,b){sa(a.g);var c=a.g.l;if(c)return Ba(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g["return"]);a.g["return"](b);return Ca(a)}
21
21
  function Ba(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.A=!1,e;var f=e.value}catch(g){return a.g.l=null,ta(a.g,g),Ca(a)}a.g.l=null;d.call(a.g,f);return Ca(a)}
22
22
  function Ca(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.A=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,ta(a.g,c)}a.g.A=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.yf)throw b.nf;return{value:b["return"],done:!0}}return{value:void 0,done:!0}}
23
- function Da(a){this.next=function(b){sa(a.g);a.g.l?b=Ba(a,a.g.l.next,b,a.g.B):(a.g.B(b),b=Ca(a));return b};this["throw"]=function(b){sa(a.g);a.g.l?b=Ba(a,a.g.l["throw"],b,a.g.B):(ta(a.g,b),b=Ca(a));return b};this["return"]=function(b){return Aa(a,b)};this[Symbol.iterator]=function(){return this}}
24
- 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())})}function J(a){return Ea(new Da(new za(a)))}function Fa(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
25
- fa("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.A=!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=ea.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=
23
+ function Da(a){this.next=function(b){sa(a.g);a.g.l?b=Ba(a,a.g.l.next,b,a.g.B):(a.g.B(b),b=Ca(a));return b};this["throw"]=function(b){sa(a.g);a.g.l?b=Ba(a,a.g.l["throw"],b,a.g.B):(ta(a.g,b),b=Ca(a));return b};this["return"]=function(b){return za(a,b)};this[Symbol.iterator]=function(){return this}}
24
+ 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())})}function I(a){return Ea(new Da(new ya(a)))}function Fa(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
25
+ fa("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.A=!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=
26
26
  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)}};
27
- 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.B(2,g)};b.prototype.m=function(g){this.B(1,g)};b.prototype.B=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.C()};b.prototype.I=function(){var g=this;e(function(){if(g.F()){var h=ea.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.F=
28
- function(){if(this.A)return!1;var g=ea.CustomEvent,h=ea.Event,k=ea.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=ea.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.i;return k(g)};b.prototype.C=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;
27
+ 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.B(2,g)};b.prototype.m=function(g){this.B(1,g)};b.prototype.B=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.C()};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=
28
+ function(){if(this.A)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.C=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;
29
29
  b.prototype.J=function(g){var h=this.j();g.gd(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(p,r){return"function"==typeof p?function(v){try{l(p(v))}catch(y){m(y)}}:r}var l,m,n=new b(function(p,r){l=p;m=r});this.gd(k(g,l),k(h,m));return n};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.gd=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
30
30
  break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.A=!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=t(g),m=l.next();!m.done;m=l.next())d(m.value).gd(h,k)})};b.all=function(g){var h=t(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(v){return function(y){p[v]=y;r--;0==r&&l(p)}}var p=[],r=0;do p.push(void 0),r++,d(k.value).gd(n(p.length-1),m),k=h.next();
31
- while(!k.done)})};return b});function Ha(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
32
- fa("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(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(!Ha(k,g)){var l=new c;ca(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({}),
33
- 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(!Ha(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ha(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&
34
- Ha(k,g)&&Ha(k[g],this.g)};b.prototype["delete"]=function(k){return d(k)&&Ha(k,g)&&Ha(k[g],this.g)?delete k[g][this.g]:!1};return b});
35
- fa("Map",function(a){function b(){var h={};return h.pb=h.next=h.head=h}function c(h,k){var l=h.g;return ia(function(){if(l){for(;l.head!=h.g;)l=l.pb;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ha(h.h,l))for(var n=0;n<m.length;n++){var p=m[n];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:n,wa:p}}return{id:l,
36
- list:m,index:-1,wa:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=t(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(t([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x||
37
- "t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.wa?l.wa.value=k:(l.wa={next:this.g,pb:this.g.pb,head:this.g,key:h,value:k},l.list.push(l.wa),this.g.pb.next=l.wa,this.g.pb=l.wa,this.size++);return this};e.prototype["delete"]=function(h){h=d(this,h);return h.wa&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.wa.pb.next=h.wa.next,h.wa.next.pb=h.wa.pb,
38
- h.wa.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.pb=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).wa};e.prototype.get=function(h){return(h=d(this,h).wa)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=function(h,k){for(var l=this.entries(),
31
+ while(!k.done)})};return b});function Ga(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
32
+ fa("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(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({}),
33
+ 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)&&
34
+ Ga(k,g)&&Ga(k[g],this.g)};b.prototype["delete"]=function(k){return d(k)&&Ga(k,g)&&Ga(k[g],this.g)?delete k[g][this.g]:!1};return b});
35
+ fa("Map",function(a){function b(){var h={};return h.pb=h.next=h.head=h}function c(h,k){var l=h.g;return ha(function(){if(l){for(;l.head!=h.g;)l=l.pb;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ga(h.h,l))for(var n=0;n<m.length;n++){var p=m[n];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:n,va:p}}return{id:l,
36
+ list:m,index:-1,va:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=t(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(t([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x||
37
+ "t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.va?l.va.value=k:(l.va={next:this.g,pb:this.g.pb,head:this.g,key:h,value:k},l.list.push(l.va),this.g.pb.next=l.va,this.g.pb=l.va,this.size++);return this};e.prototype["delete"]=function(h){h=d(this,h);return h.va&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.va.pb.next=h.va.next,h.va.next.pb=h.va.pb,
38
+ h.va.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.pb=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).va};e.prototype.get=function(h){return(h=d(this,h).va)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=function(h,k){for(var l=this.entries(),
39
39
  m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e});function Ja(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}fa("Array.prototype.keys",function(a){return a?a:function(){return Ja(this,function(b){return b})}});
40
40
  fa("Set",function(a){function b(c){this.g=new Map;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
41
41
  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;
@@ -43,20 +43,20 @@ b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d
43
43
  function Ka(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{wf:e,v:f}}return{wf:-1,v:void 0}}fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ka(this,b,c).wf}});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
44
44
  fa("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var g=d[f];if(g===b||Object.is(g,b))return!0}return!1}});function La(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+""}
45
45
  fa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==La(this,b,"includes").indexOf(b,c||0)}});fa("Array.prototype.find",function(a){return a?a:function(b,c){return Ka(this,b,c).v}});fa("String.prototype.startsWith",function(a){return a?a:function(b,c){for(var d=La(this,b,"startsWith"),e=d.length,f=b.length,g=Math.max(0,Math.min(c|0,d.length)),h=0;h<f&&g<e;)if(d[g++]!=b[h++])return!1;return h>=f}});
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)Ha(d,e)&&(a[e]=d[e])}return a};fa("Object.assign",function(a){return a||Ma});fa("Array.prototype.values",function(a){return a?a:function(){return Ja(this,function(b,c){return c})}});
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};fa("Object.assign",function(a){return a||Ma});fa("Array.prototype.values",function(a){return a?a:function(){return Ja(this,function(b,c){return c})}});
47
47
  fa("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;})})}});fa("Array.prototype.entries",function(a){return a?a:function(){return Ja(this,function(b,c){return[b,c]})}});
48
- fa("String.prototype.repeat",function(a){return a?a:function(b){var c=La(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});fa("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});fa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ha(b,d)&&c.push(b[d]);return c}});fa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
49
- fa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ha(b,d)&&c.push([d,b[d]]);return c}});var Oa=this||self;
50
- function M(a,b){var c=a.split("."),d=Oa;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};/*
48
+ fa("String.prototype.repeat",function(a){return a?a:function(b){var c=La(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});fa("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});fa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ga(b,d)&&c.push(b[d]);return c}});fa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
49
+ fa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ga(b,d)&&c.push([d,b[d]]);return c}});var Pa=this||self;
50
+ function J(a,b){var c=a.split("."),d=Pa;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};/*
51
51
  @license
52
52
  Shaka Player
53
53
  Copyright 2016 Google LLC
54
54
  SPDX-License-Identifier: Apache-2.0
55
55
  */
56
- function O(a,b){if(b)if(b instanceof Map)for(var c=t(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
- function Pa(a){var b=new O(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}O.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};O.prototype.stopImmediatePropagation=function(){this.g=!0};O.prototype.stopPropagation=function(){};M("shaka.util.FakeEvent",O);
58
- var Qa={Eh:"abrstatuschanged",Fh:"adaptation",Gh:"buffering",Kh:"downloadfailed",Lh:"downloadheadersreceived",Mh:"drmsessionupdate",Th:"emsg",Error:"error",Uh:"expirationupdated",Xh:"gapjumped",ai:"loaded",bi:"loading",ii:"manifestparsed",ji:"mediaqualitychanged",Metadata:"metadata",oi:"onstatechange",pi:"onstateidle",Ci:"ratechange",Ii:"sessiondata",Ji:"stalldetected",Ki:"streaming",Li:"textchanged",Mi:"texttrackvisibility",Ni:"timelineregionadded",Oi:"timelineregionenter",Pi:"timelineregionexit",
59
- Qi:"trackschanged",Vi:"unloading",Xi:"variantchanged"};function Ra(){}function Ta(){}function Ua(){}function Va(a){var b=Fa.apply(1,arguments);Wa.has(a)||(Wa.add(a),Ua.apply(Ra,ja(b)))}function Xa(){}function Ya(){}function Za(){}function ab(){}var Wa=new Set;if(window.console&&window.console.log.bind){var bb={},cb=(bb[1]=console.error.bind(console),bb[2]=console.warn.bind(console),bb[3]=console.info.bind(console),bb[4]=console.log.bind(console),bb[5]=console.debug.bind(console),bb[6]=console.debug.bind(console),bb);Ua=cb[2];Ta=cb[1]};function db(){this.g={}}q=db.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])};function eb(a,b){for(var c in a.g)b(c,a.g[c])}q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function fb(){this.ua=new db;this.sd=this}fb.prototype.addEventListener=function(a,b){this.ua&&this.ua.push(a,b)};fb.prototype.removeEventListener=function(a,b){this.ua&&this.ua.remove(a,b)};fb.prototype.dispatchEvent=function(a){if(!this.ua)return!0;var b=this.ua.get(a.type)||[],c=this.ua.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.sd;a.currentTarget=this.sd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
56
+ function M(a,b){if(b)if(b instanceof Map)for(var c=t(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
+ function Qa(a){var b=new M(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}M.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};M.prototype.stopImmediatePropagation=function(){this.g=!0};M.prototype.stopPropagation=function(){};J("shaka.util.FakeEvent",M);
58
+ var Ra={Eh:"abrstatuschanged",Fh:"adaptation",Gh:"buffering",Kh:"downloadfailed",Lh:"downloadheadersreceived",Mh:"drmsessionupdate",Th:"emsg",Error:"error",Uh:"expirationupdated",Xh:"gapjumped",ai:"loaded",bi:"loading",ii:"manifestparsed",ji:"mediaqualitychanged",Metadata:"metadata",oi:"onstatechange",pi:"onstateidle",Ci:"ratechange",Ii:"sessiondata",Ji:"stalldetected",Ki:"streaming",Li:"textchanged",Mi:"texttrackvisibility",Ni:"timelineregionadded",Oi:"timelineregionenter",Pi:"timelineregionexit",
59
+ Qi:"trackschanged",Vi:"unloading",Xi:"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,ia(b)))}function Xa(){}function Ya(){}function Za(){}function ab(){}var Wa=new Set;if(window.console&&window.console.log.bind){var bb={},cb=(bb[1]=console.error.bind(console),bb[2]=console.warn.bind(console),bb[3]=console.info.bind(console),bb[4]=console.log.bind(console),bb[5]=console.debug.bind(console),bb[6]=console.debug.bind(console),bb);Ua=cb[2];Ta=cb[1]};function db(){this.g={}}q=db.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])};function eb(a,b){for(var c in a.g)b(c,a.g[c])}q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function fb(){this.ua=new db;this.sd=this}fb.prototype.addEventListener=function(a,b){this.ua&&this.ua.push(a,b)};fb.prototype.removeEventListener=function(a,b){this.ua&&this.ua.remove(a,b)};fb.prototype.dispatchEvent=function(a){if(!this.ua)return!0;var b=this.ua.get(a.type)||[],c=this.ua.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.sd;a.currentTarget=this.sd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
60
60
  fb.prototype.release=function(){this.ua=null};function gb(a,b){for(var c=[],d=t(a),e=d.next();!e.done;e=d.next())c.push(b(e.value));return c}function hb(a,b){for(var c=t(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0}function ib(a,b){for(var c=t(a),d=c.next();!d.done;d=c.next())if(b(d.value))return!0;return!1}function jb(a,b){for(var c=[],d=t(a),e=d.next();!e.done;e=d.next())e=e.value,b(e)&&c.push(e);return c};/*
61
61
  @license
62
62
  Copyright 2008 The Closure Library Authors
@@ -67,500 +67,500 @@ var kb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=
67
67
  Copyright 2006 The Closure Library Authors
68
68
  SPDX-License-Identifier: Apache-2.0
69
69
  */
70
- function lb(a){var b;a instanceof lb?(mb(this,a.Wa),this.Sb=a.Sb,this.Za=a.Za,nb(this,a.mc),this.Ka=a.Ka,ob(this,a.g.clone()),this.Hb=a.Hb):a&&(b=String(a).match(kb))?(mb(this,b[1]||"",!0),this.Sb=pb(b[2]||""),this.Za=pb(b[3]||"",!0),nb(this,b[4]),this.Ka=pb(b[5]||"",!0),ob(this,b[6]||"",!0),this.Hb=pb(b[7]||"")):this.g=new qb(null)}q=lb.prototype;q.Wa="";q.Sb="";q.Za="";q.mc=null;q.Ka="";q.Hb="";
71
- q.toString=function(){var a=[],b=this.Wa;b&&a.push(sb(b,tb,!0),":");if(b=this.Za){a.push("//");var c=this.Sb;c&&a.push(sb(c,tb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.mc;null!=b&&a.push(":",String(b))}if(b=this.Ka)this.Za&&"/"!=b.charAt(0)&&a.push("/"),a.push(sb(b,"/"==b.charAt(0)?ub:vb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Hb)&&a.push("#",sb(b,wb));return a.join("")};
72
- q.resolve=function(a){var b=this.clone();"data"===b.Wa&&(b=new lb);var c=!!a.Wa;c?mb(b,a.Wa):c=!!a.Sb;c?b.Sb=a.Sb:c=!!a.Za;c?b.Za=a.Za:c=null!=a.mc;var d=a.Ka;if(c)nb(b,a.mc);else if(c=!!a.Ka){if("/"!=d.charAt(0))if(this.Za&&!this.Ka)d="/"+d;else{var e=b.Ka.lastIndexOf("/");-1!=e&&(d=b.Ka.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
73
- h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ka=d:c=""!==a.g.toString();c?ob(b,a.g.clone()):c=!!a.Hb;c&&(b.Hb=a.Hb);return b};q.clone=function(){return new lb(this)};function mb(a,b,c){a.Wa=c?pb(b,!0):b;a.Wa&&(a.Wa=a.Wa.replace(/:$/,""))}function nb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.mc=b}else a.mc=null}function ob(a,b,c){b instanceof qb?a.g=b:(c||(b=sb(b,xb)),a.g=new qb(b))}
74
- function pb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function sb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,yb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function yb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var tb=/[#\/\?@]/g,vb=/[#\?:]/g,ub=/[#\?]/g,xb=/[#\?@]/g,wb=/#/g;function qb(a){this.g=a||null}
75
- function zb(a){if(!a.Ea&&(a.Ea={},a.jd=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}q=qb.prototype;q.Ea=null;q.jd=null;q.add=function(a,b){zb(this);this.g=null;var c=this.Ea.hasOwnProperty(a)&&this.Ea[a];c||(this.Ea[a]=c=[]);c.push(b);this.jd++;return this};
76
- q.set=function(a,b){zb(this);this.g=null;this.Ea.hasOwnProperty(a)?this.Ea[a]=[b]:this.add(a,b);return this};q.toString=function(){if(this.g)return this.g;if(!this.Ea)return"";var a=[],b;for(b in this.Ea)for(var c=encodeURIComponent(b),d=this.Ea[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};q.clone=function(){var a=new qb;a.g=this.g;if(this.Ea){var b={},c;for(c in this.Ea)b[c]=this.Ea[c].concat();a.Ea=b;a.jd=this.jd}return a};function P(a,b,c){var d=Fa.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1}P.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};M("shaka.util.Error",P);P.Severity={RECOVERABLE:1,CRITICAL:2};P.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
77
- P.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,
70
+ function lb(a){var b;a instanceof lb?(mb(this,a.Wa),this.Sb=a.Sb,this.Za=a.Za,nb(this,a.mc),this.Ja=a.Ja,ob(this,a.g.clone()),this.Hb=a.Hb):a&&(b=String(a).match(kb))?(mb(this,b[1]||"",!0),this.Sb=pb(b[2]||""),this.Za=pb(b[3]||"",!0),nb(this,b[4]),this.Ja=pb(b[5]||"",!0),ob(this,b[6]||"",!0),this.Hb=pb(b[7]||"")):this.g=new qb(null)}q=lb.prototype;q.Wa="";q.Sb="";q.Za="";q.mc=null;q.Ja="";q.Hb="";
71
+ q.toString=function(){var a=[],b=this.Wa;b&&a.push(rb(b,sb,!0),":");if(b=this.Za){a.push("//");var c=this.Sb;c&&a.push(rb(c,sb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.mc;null!=b&&a.push(":",String(b))}if(b=this.Ja)this.Za&&"/"!=b.charAt(0)&&a.push("/"),a.push(rb(b,"/"==b.charAt(0)?tb:ub,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Hb)&&a.push("#",rb(b,vb));return a.join("")};
72
+ q.resolve=function(a){var b=this.clone();"data"===b.Wa&&(b=new lb);var c=!!a.Wa;c?mb(b,a.Wa):c=!!a.Sb;c?b.Sb=a.Sb:c=!!a.Za;c?b.Za=a.Za:c=null!=a.mc;var d=a.Ja;if(c)nb(b,a.mc);else if(c=!!a.Ja){if("/"!=d.charAt(0))if(this.Za&&!this.Ja)d="/"+d;else{var e=b.Ja.lastIndexOf("/");-1!=e&&(d=b.Ja.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
73
+ h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ja=d:c=""!==a.g.toString();c?ob(b,a.g.clone()):c=!!a.Hb;c&&(b.Hb=a.Hb);return b};q.clone=function(){return new lb(this)};function mb(a,b,c){a.Wa=c?pb(b,!0):b;a.Wa&&(a.Wa=a.Wa.replace(/:$/,""))}function nb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.mc=b}else a.mc=null}function ob(a,b,c){b instanceof qb?a.g=b:(c||(b=rb(b,wb)),a.g=new qb(b))}
74
+ function pb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function rb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,xb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function xb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var sb=/[#\/\?@]/g,ub=/[#\?:]/g,tb=/[#\?]/g,wb=/[#\?@]/g,vb=/#/g;function qb(a){this.g=a||null}
75
+ function yb(a){if(!a.Da&&(a.Da={},a.jd=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}q=qb.prototype;q.Da=null;q.jd=null;q.add=function(a,b){yb(this);this.g=null;var c=this.Da.hasOwnProperty(a)&&this.Da[a];c||(this.Da[a]=c=[]);c.push(b);this.jd++;return this};
76
+ q.set=function(a,b){yb(this);this.g=null;this.Da.hasOwnProperty(a)?this.Da[a]=[b]:this.add(a,b);return this};q.toString=function(){if(this.g)return this.g;if(!this.Da)return"";var a=[],b;for(b in this.Da)for(var c=encodeURIComponent(b),d=this.Da[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};q.clone=function(){var a=new qb;a.g=this.g;if(this.Da){var b={},c;for(c in this.Da)b[c]=this.Da[c].concat();a.Da=b;a.jd=this.jd}return a};function O(a,b,c){var d=Fa.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1}O.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};J("shaka.util.Error",O);O.Severity={RECOVERABLE:1,CRITICAL:2};O.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
77
+ O.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,
78
78
  CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,
79
79
  WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,
80
80
  DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,
81
- HLS_AES_128_ENCRYPTION_NOT_SUPPORTED:4034,HLS_INTERNAL_SKIP_STREAM:4035,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,NO_WEB_CRYPTO_API:4042,HLS_AES_128_INVALID_IV_LENGTH:4043,HLS_AES_128_INVALID_KEY_LENGTH:4044,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,
82
- FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,
83
- CAST_API_UNAVAILABLE:8E3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9E3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,
84
- STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,CS_IMA_SDK_MISSING:1E4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};function Ab(a,b){return a.concat(b)}function Bb(){}function Cb(a){return null!=a};function Db(a,b){if(0==b.length)return a;var c=b.map(function(d){return new lb(d)});return a.map(function(d){return new lb(d)}).map(function(d){return c.map(function(e){return d.resolve(e)})}).reduce(Ab,[]).map(function(d){return d.toString()})}function Eb(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}
85
- function Fb(a,b){if(1==b.length)return b[0];var c=Gb(a,b);if(null!=c)return c;throw new P(2,4,4025,b);}function Gb(a,b){for(var c=t(Hb[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Ib?"":null}var Ib="text",Jb={Ma:"video",Fb:"audio",ha:Ib,zc:"image",Bh:"application"},Hb={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Kb(){}function Lb(a,b){a=Mb(a);b=Mb(b);return a.split("-")[0]==b.split("-")[0]}function Nb(a,b){a=Mb(a);b=Mb(b);var c=a.split("-"),d=b.split("-");return c[0]==d[0]&&1==c.length&&2==d.length}function Ob(a,b){a=Mb(a);b=Mb(b);var c=a.split("-"),d=b.split("-");return 2==c.length&&2==d.length&&c[0]==d[0]}function Mb(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Pb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Qb(a,b){var c=Rb(a),d=Rb(b);return a!=c&&b!=d&&c==d}
81
+ NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,NO_WEB_CRYPTO_API:4042,HLS_AES_128_INVALID_IV_LENGTH:4043,HLS_AES_128_INVALID_KEY_LENGTH:4044,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,
82
+ FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8E3,NO_CAST_RECEIVERS:8001,
83
+ ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9E3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,
84
+ MODIFY_OPERATION_NOT_SUPPORTED:9016,CS_IMA_SDK_MISSING:1E4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};function zb(a,b){return a.concat(b)}function Ab(){}function Cb(a){return null!=a};function Db(a,b){if(0==b.length)return a;var c=b.map(function(d){return new lb(d)});return a.map(function(d){return new lb(d)}).map(function(d){return c.map(function(e){return d.resolve(e)})}).reduce(zb,[]).map(function(d){return d.toString()})}function Eb(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}
85
+ function Fb(a,b){if(1==b.length)return b[0];var c=Gb(a,b);if(null!=c)return c;throw new O(2,4,4025,b);}function Gb(a,b){for(var c=t(Hb[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Ib?"":null}var Ib="text",Jb={Ma:"video",Fb:"audio",ha:Ib,zc:"image",Bh:"application"},Hb={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Kb(){}function Lb(a,b){a=Mb(a);b=Mb(b);return a.split("-")[0]==b.split("-")[0]}function Nb(a,b){a=Mb(a);b=Mb(b);var c=a.split("-"),d=b.split("-");return c[0]==d[0]&&1==c.length&&2==d.length}function Ob(a,b){a=Mb(a);b=Mb(b);var c=a.split("-"),d=b.split("-");return 2==c.length&&2==d.length&&c[0]==d[0]}function Mb(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Pb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Qb(a,b){var c=Rb(a),d=Rb(b);return a!=c&&b!=d&&c==d}
86
86
  function Sb(a,b){a=Mb(a);b=Mb(b);return b==a?4:Nb(b,a)?3:Ob(b,a)?2:Nb(a,b)?1:0}function Rb(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Pb.get(a)||a}function Tb(a){return a.language?Mb(a.language):a.audio&&a.audio.language?Mb(a.audio.language):a.video&&a.video.language?Mb(a.video.language):"und"}
87
- function Ub(a,b){for(var c=Mb(a),d=new Set,e=t(b),f=e.next();!f.done;f=e.next())d.add(Mb(f.value));e=t(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,f==c)return f;e=t(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Nb(f,c))return f;e=t(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Ob(f,c))return f;d=t(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,Nb(c,f))return f;return null}M("shaka.util.LanguageUtils",Kb);Kb.findClosestLocale=Ub;Kb.getLocaleForVariant=Tb;
87
+ function Ub(a,b){for(var c=Mb(a),d=new Set,e=t(b),f=e.next();!f.done;f=e.next())d.add(Mb(f.value));e=t(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,f==c)return f;e=t(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Nb(f,c))return f;e=t(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Ob(f,c))return f;d=t(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,Nb(c,f))return f;return null}J("shaka.util.LanguageUtils",Kb);Kb.findClosestLocale=Ub;Kb.getLocaleForVariant=Tb;
88
88
  Kb.getLocaleForText=function(a){return Mb(a.language||"und")};Kb.getBase=Rb;Kb.relatedness=Sb;Kb.areSiblings=Qb;Kb.normalize=Mb;Kb.isSiblingOf=Ob;Kb.isParentOf=Nb;Kb.areLanguageCompatible=Lb;Kb.areLocaleCompatible=function(a,b){a=Mb(a);b=Mb(b);return a==b};
89
89
  var Pb=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze",
90
90
  "cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice",
91
91
  "is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao",
92
92
  "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",
93
93
  "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",
94
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Vb(a){fb.call(this);this.j=Mb(a);this.i=new Map;this.g=new Set;this.h=new Map}u(Vb,fb);q=Vb.prototype;q.release=function(){fb.prototype.release.call(this)};
95
- q.ef=function(a){var b=this;this.g.clear();a=t(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Mb(c.value));Wb(this);a=jb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new O("unknown-locales",(new Map).set("locales",a)));a=jb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new O("locale-changed",a))};
96
- q.ia=function(a,b,c){a=Mb(a);void 0===c&&(c=Xb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Xb||d.set(f,e)});this.h.set(a,d);Wb(this);this.dispatchEvent(new O("locale-updated"));return this};q.ih=function(a){for(var b=t(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 O("unknown-localization",a));return""};
94
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Vb(a){fb.call(this);this.j=Mb(a);this.i=new Map;this.g=new Set;this.h=new Map}qa(Vb,fb);q=Vb.prototype;q.release=function(){fb.prototype.release.call(this)};
95
+ q.ef=function(a){var b=this;this.g.clear();a=t(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Mb(c.value));Wb(this);a=jb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new M("unknown-locales",(new Map).set("locales",a)));a=jb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new M("locale-changed",a))};
96
+ q.ia=function(a,b,c){a=Mb(a);void 0===c&&(c=Xb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Xb||d.set(f,e)});this.h.set(a,d);Wb(this);this.dispatchEvent(new M("locale-updated"));return this};q.ih=function(a){for(var b=t(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 M("unknown-localization",a));return""};
97
97
  function Wb(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=t(d),h=g.next();!h.done;f={Xb:f.Xb},h=g.next()){f.Xb=h.value;e.add(f.Xb);e.add(Rb(f.Xb));h=jb(b.keys(),function(l){return function(m){return Qb(m,l.Xb)}}(f));h.sort();var k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=jb(b.keys(),function(l){return function(m){return Rb(m)==l.Xb}}(f));h.sort();k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=t(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
98
- c.reverse();a.i.clear();b=t(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=t(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,Yb(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new O("missing-localizations",d)))}function Yb(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}M("shaka.ui.Localization",Vb);Vb.prototype.resolve=Vb.prototype.resolve;
99
- Vb.prototype.resolveDictionary=Vb.prototype.ih;Vb.prototype.insert=Vb.prototype.ia;Vb.prototype.changeLocale=Vb.prototype.ef;Vb.prototype.release=Vb.prototype.release;var Xb=1;Vb.ConflictResolution={USE_OLD:0,USE_NEW:Xb};Vb.UNKNOWN_LOCALES="unknown-locales";Vb.UNKNOWN_LOCALIZATION="unknown-localization";Vb.MISSING_LOCALIZATIONS="missing-localizations";Vb.LOCALE_CHANGED="locale-changed";Vb.LOCALE_UPDATED="locale-updated";var Zb={Fi:"SKIP_TO_LIVE",Rh:"EXIT_LOOP_MODE",Wh:"FULL_SCREEN",ri:"PAUSE",Ai:"RESOLUTION",Ih:"CAST",wi:"PLAYBACK_RATE",Wi:"VOLUME",Ah:"AIRPLAY",Ti:"UNMUTE",Zh:"LANGUAGE",ti:"PLAY",zi:"REPLAY",BACK:"BACK",Sf:"SUBTITLE_FORCED",Sh:"EXIT_PICTURE_IN_PICTURE",Bi:"REWIND",Ch:"AUTO_QUALITY",xh:"AD_DURATION",mi:"ON",Di:"SEEK",Nh:"ENTER_LOOP_MODE",yh:"AD_TIME",si:"PICTURE_IN_PICTURE",Hh:"CAPTIONS",ki:"NOT_APPLICABLE",Ze:"LIVE",Vh:"FAST_FORWARD",Ei:"SKIP_AD",xi:"QUALITY",Si:"UNDETERMINED_LANGUAGE",Qh:"EXIT_FULL_SCREEN",
100
- ei:"MULTIPLE_LANGUAGES",li:"OFF",Ui:"UNRECOGNIZED_LANGUAGE",Oh:"ENTER_PICTURE_IN_PICTURE",di:"MORE_SETTINGS",gi:"MUTE",AD_PROGRESS:"AD_PROGRESS",$h:"LOOP",Hi:"STATISTICS"};function $b(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}$b.prototype.sample=function(a,b){var c=Math.pow(this.g,a);c=b*(1-c)+c*this.h;isNaN(c)||(this.h=c,this.i+=a)};function ac(a){return a.h/(1-Math.pow(a.g,a.i))};function bc(){this.h=new $b(2);this.j=new $b(5);this.g=0;this.i=128E3;this.l=16E3}bc.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)};bc.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a,d=a/1E3;this.g+=b;this.h.sample(d,c);this.j.sample(d,c)}};bc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(ac(this.h),ac(this.j))};function cc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function dc(a,b){var c=a.indexOf(b);-1<c&&a.splice(c,1)}function ec(a,b,c){c||(c=cc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={Nd:d.Nd},e=a.next()){d.Nd=e.value;e=b.findIndex(function(f){return function(g){return c(f.Nd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
101
- function fc(a,b,c){c||(c=cc);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 gc(a,b,c){this.startTime=a;this.direction=hc;this.endTime=b;this.payload=c;this.region=new ic;this.position=null;this.positionAlign=jc;this.size=0;this.textAlign=kc;this.writingMode=lc;this.lineInterpretation=mc;this.line=null;this.lineHeight="";this.lineAlign=nc;this.displayAlign=oc;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=pc;this.fontStyle=qc;this.linePadding=this.letterSpacing=
102
- this.fontFamily="";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}gc.prototype.clone=function(){var a=new gc(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
103
- function rc(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(!fc(a.nestedCues,b.nestedCues,rc))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(!fc(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}M("shaka.text.Cue",gc);var jc="auto";
104
- gc.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:jc};var kc="center",sc={LEFT:"left",RIGHT:"right",CENTER:kc,START:"start",END:"end"};gc.textAlign=sc;var oc="after",tc={BEFORE:"before",CENTER:"center",AFTER:oc};gc.displayAlign=tc;var hc="ltr";gc.direction={HORIZONTAL_LEFT_TO_RIGHT:hc,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var lc="horizontal-tb";gc.writingMode={HORIZONTAL_TOP_TO_BOTTOM:lc,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var mc=0;
105
- gc.lineInterpretation={LINE_NUMBER:mc,PERCENTAGE:1};var nc="start",wc={CENTER:"center",START:nc,END:"end"};gc.lineAlign=wc;var xc={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};gc.defaultTextColor=xc;var yc={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};gc.defaultTextBackgroundColor=yc;var pc=400;gc.fontWeight={NORMAL:pc,BOLD:700};
106
- var qc="normal",zc={NORMAL:qc,ITALIC:"italic",OBLIQUE:"oblique"};gc.fontStyle=zc;gc.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function ic(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Ac;this.scroll=Bc}M("shaka.text.CueRegion",ic);var Ac=1;ic.units={PX:0,PERCENTAGE:Ac,LINES:2};var Bc="";ic.scrollMode={NONE:Bc,UP:"up"};function Cc(){}function Dc(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Ec(a)==Ec(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=Fc(a),d=Fc(b),e=0;e<a.byteLength;e++)if(c[e]!=d[e])return!1;return!0}function Ec(a){return a instanceof ArrayBuffer?a:a.buffer}function Gc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
107
- function Fc(a,b,c){c=void 0===c?Infinity:c;return Hc(a,void 0===b?0:b,c,Uint8Array)}function Ic(a,b,c){c=void 0===c?Infinity:c;return Hc(a,void 0===b?0:b,c,DataView)}function Hc(a,b,c,d){var e=(a.byteOffset||0)+a.byteLength;b=Math.max(0,Math.min((a.byteOffset||0)+b,e));return new d(Ec(a),b,Math.min(b+Math.max(c,0),e)-b)}M("shaka.util.BufferUtils",Cc);Cc.toDataView=Ic;Cc.toUint8=Fc;Cc.toArrayBuffer=Gc;Cc.equal=Dc;function Jc(){}M("shaka.dependencies",Jc);Jc.has=function(a){return Kc.has(a)};Jc.add=function(a,b){if(!Lc[a])throw Error(a+" is not supported");Kc.set(a,function(){return b})};var Lc={muxjs:"muxjs"};Jc.Allowed=Lc;var Kc=new Map([["muxjs",function(){return window.muxjs}]]);function Mc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Mc.prototype.resolve=function(){};Mc.prototype.reject=function(){};function Nc(a){this.h=a;this.g=void 0}Nc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Oc(a){this.h=a;this.g=null}Oc.prototype.T=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Oc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Q(a){this.h=a;this.g=null}Q.prototype.ya=function(){this.stop();this.h();return this};Q.prototype.T=function(a){var b=this;this.stop();this.g=(new Oc(function(){b.h()})).T(a);return this};Q.prototype.ka=function(a){var b=this;this.stop();this.g=(new Oc(function(){b.g.T(a);b.h()})).T(a);return this};Q.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};M("shaka.util.Timer",Q);Q.prototype.stop=Q.prototype.stop;Q.prototype.tickEvery=Q.prototype.ka;Q.prototype.tickAfter=Q.prototype.T;
108
- Q.prototype.tickNow=Q.prototype.ya;function Pc(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Qc(a){return""!=Rc().canPlayType(a)}function Sc(){return Tc("Xbox One")}function Wc(){return Tc("Tizen")}function Xc(){return Tc("Web0S")&&Tc("Chrome/38.0.2125.122 Safari/537.36")}function Yc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Wc()&&!Tc("PC=EOS")&&!Zc()&&!Tc("AFT")}function Zc(){return Tc("PlayStation 4")}
109
- function $c(){if(!Yc())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 Tc(a){return(navigator.userAgent||"").includes(a)}function Rc(){if(ad)return ad;bd||(bd=new Q(function(){ad=null}));(ad=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(ad=document.createElement("video"));bd.T(1);return ad}var bd=null,ad=null;function cd(){}
110
- function dd(a){if(!a)return"";a=Fc(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!Zc())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
+ c.reverse();a.i.clear();b=t(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=t(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,Yb(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new M("missing-localizations",d)))}function Yb(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}J("shaka.ui.Localization",Vb);Vb.prototype.resolve=Vb.prototype.resolve;
99
+ Vb.prototype.resolveDictionary=Vb.prototype.ih;Vb.prototype.insert=Vb.prototype.ia;Vb.prototype.changeLocale=Vb.prototype.ef;Vb.prototype.release=Vb.prototype.release;var Xb=1;Vb.ConflictResolution={USE_OLD:0,USE_NEW:Xb};Vb.UNKNOWN_LOCALES="unknown-locales";Vb.UNKNOWN_LOCALIZATION="unknown-localization";Vb.MISSING_LOCALIZATIONS="missing-localizations";Vb.LOCALE_CHANGED="locale-changed";Vb.LOCALE_UPDATED="locale-updated";var Zb={Fi:"SKIP_TO_LIVE",mi:"ON",gi:"MUTE",Ah:"AIRPLAY",xi:"QUALITY",Hi:"STATISTICS",Sf:"SUBTITLE_FORCED",yh:"AD_TIME",li:"OFF",AD_PROGRESS:"AD_PROGRESS",ei:"MULTIPLE_LANGUAGES",Qh:"EXIT_FULL_SCREEN",Wh:"FULL_SCREEN",ri:"PAUSE",Ze:"LIVE",Hh:"CAPTIONS",BACK:"BACK",ti:"PLAY",di:"MORE_SETTINGS",ki:"NOT_APPLICABLE",Zh:"LANGUAGE",wi:"PLAYBACK_RATE",Vh:"FAST_FORWARD",Rh:"EXIT_LOOP_MODE",Ai:"RESOLUTION",Di:"SEEK",Ui:"UNRECOGNIZED_LANGUAGE",Ti:"UNMUTE",si:"PICTURE_IN_PICTURE",Ch:"AUTO_QUALITY",Wi:"VOLUME",
100
+ $h:"LOOP",Nh:"ENTER_LOOP_MODE",Bi:"REWIND",Si:"UNDETERMINED_LANGUAGE",zi:"REPLAY",xh:"AD_DURATION",Oh:"ENTER_PICTURE_IN_PICTURE",Ei:"SKIP_AD",Ih:"CAST",Sh:"EXIT_PICTURE_IN_PICTURE"};function $b(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}$b.prototype.sample=function(a,b){var c=Math.pow(this.g,a);c=b*(1-c)+c*this.h;isNaN(c)||(this.h=c,this.i+=a)};function ac(a){return a.h/(1-Math.pow(a.g,a.i))};function bc(){this.h=new $b(2);this.j=new $b(5);this.g=0;this.i=128E3;this.l=16E3}bc.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)};bc.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a,d=a/1E3;this.g+=b;this.h.sample(d,c);this.j.sample(d,c)}};bc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(ac(this.h),ac(this.j))};function cc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function dc(a,b){var c=a.indexOf(b);-1<c&&a.splice(c,1)}function fc(a,b,c){c||(c=cc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={Nd:d.Nd},e=a.next()){d.Nd=e.value;e=b.findIndex(function(f){return function(g){return c(f.Nd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
101
+ function gc(a,b,c){c||(c=cc);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 hc(a,b,c){this.startTime=a;this.direction=ic;this.endTime=b;this.payload=c;this.region=new jc;this.position=null;this.positionAlign=kc;this.size=0;this.textAlign=lc;this.writingMode=mc;this.lineInterpretation=nc;this.line=null;this.lineHeight="";this.lineAlign=oc;this.displayAlign=pc;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=qc;this.fontStyle=rc;this.linePadding=this.letterSpacing=
102
+ this.fontFamily="";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}hc.prototype.clone=function(){var a=new hc(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
103
+ function sc(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(!gc(a.nestedCues,b.nestedCues,sc))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(!gc(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}J("shaka.text.Cue",hc);var kc="auto";
104
+ hc.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:kc};var lc="center",tc={LEFT:"left",RIGHT:"right",CENTER:lc,START:"start",END:"end"};hc.textAlign=tc;var pc="after",uc={BEFORE:"before",CENTER:"center",AFTER:pc};hc.displayAlign=uc;var ic="ltr";hc.direction={HORIZONTAL_LEFT_TO_RIGHT:ic,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var mc="horizontal-tb";hc.writingMode={HORIZONTAL_TOP_TO_BOTTOM:mc,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var nc=0;
105
+ hc.lineInterpretation={LINE_NUMBER:nc,PERCENTAGE:1};var oc="start",vc={CENTER:"center",START:oc,END:"end"};hc.lineAlign=vc;var wc={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};hc.defaultTextColor=wc;var xc={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};hc.defaultTextBackgroundColor=xc;var qc=400;hc.fontWeight={NORMAL:qc,BOLD:700};
106
+ var rc="normal",yc={NORMAL:rc,ITALIC:"italic",OBLIQUE:"oblique"};hc.fontStyle=yc;hc.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function jc(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=zc;this.scroll=Ac}J("shaka.text.CueRegion",jc);var zc=1;jc.units={PX:0,PERCENTAGE:zc,LINES:2};var Ac="";jc.scrollMode={NONE:Ac,UP:"up"};function Bc(){}function Cc(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Dc(a)==Dc(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=Ec(a),d=Ec(b),e=0;e<a.byteLength;e++)if(c[e]!=d[e])return!1;return!0}function Dc(a){return a instanceof ArrayBuffer?a:a.buffer}function Fc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
107
+ function Ec(a,b,c){c=void 0===c?Infinity:c;return Gc(a,void 0===b?0:b,c,Uint8Array)}function Hc(a,b,c){c=void 0===c?Infinity:c;return Gc(a,void 0===b?0:b,c,DataView)}function Gc(a,b,c,d){var e=(a.byteOffset||0)+a.byteLength;b=Math.max(0,Math.min((a.byteOffset||0)+b,e));return new d(Dc(a),b,Math.min(b+Math.max(c,0),e)-b)}J("shaka.util.BufferUtils",Bc);Bc.toDataView=Hc;Bc.toUint8=Ec;Bc.toArrayBuffer=Fc;Bc.equal=Cc;function Ic(){}J("shaka.dependencies",Ic);Ic.has=function(a){return Jc.has(a)};Ic.add=function(a,b){if(!Kc[a])throw Error(a+" is not supported");Jc.set(a,function(){return b})};var Kc={muxjs:"muxjs"};Ic.Allowed=Kc;var Jc=new Map([["muxjs",function(){return window.muxjs}]]);function Lc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Lc.prototype.resolve=function(){};Lc.prototype.reject=function(){};function Mc(a){this.h=a;this.g=void 0}Mc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Nc(a){this.h=a;this.g=null}Nc.prototype.T=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Nc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function P(a){this.h=a;this.g=null}P.prototype.xa=function(){this.stop();this.h();return this};P.prototype.T=function(a){var b=this;this.stop();this.g=(new Nc(function(){b.h()})).T(a);return this};P.prototype.ka=function(a){var b=this;this.stop();this.g=(new Nc(function(){b.g.T(a);b.h()})).T(a);return this};P.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};J("shaka.util.Timer",P);P.prototype.stop=P.prototype.stop;P.prototype.tickEvery=P.prototype.ka;P.prototype.tickAfter=P.prototype.T;
108
+ P.prototype.tickNow=P.prototype.xa;function Oc(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Pc(a){return""!=Qc().canPlayType(a)}function Rc(){return Sc("Xbox One")}function Wc(){return Sc("Tizen")}function Xc(){return Sc("Web0S")&&Sc("Chrome/38.0.2125.122 Safari/537.36")}function Yc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Wc()&&!Sc("PC=EOS")&&!Zc()&&!Sc("AFT")}function Zc(){return Sc("PlayStation 4")}
109
+ function $c(){if(!Yc())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 Sc(a){return(navigator.userAgent||"").includes(a)}function Qc(){if(ad)return ad;bd||(bd=new P(function(){ad=null}));(ad=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(ad=document.createElement("video"));bd.T(1);return ad}var bd=null,ad=null;function cd(){}
110
+ function dd(a){if(!a)return"";a=Ec(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!Zc())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==
111
111
  (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}
112
- function ed(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new P(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Ic(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return fd.value()(d)}
113
- function gd(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=Fc(a);if(239==c[0]&&187==c[1]&&191==c[2])return dd(c);if(254==c[0]&&255==c[1])return ed(c.subarray(2),!1);if(255==c[0]&&254==c[1])return ed(c.subarray(2),!0);if(0==c[0]&&0==c[2])return ed(a,!1);if(0==c[1]&&0==c[3])return ed(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return dd(a);throw new P(2,2,2003);}
114
- function hd(a){if(window.TextEncoder&&!Zc()){var b=new TextEncoder;return Gc(b.encode(a))}a=encodeURIComponent(a);a=unescape(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;c++)b[c]=a[c].charCodeAt(0);return Gc(b)}function id(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c}M("shaka.util.StringUtils",cd);cd.resetFromCharCode=function(){fd.g=void 0};cd.toUTF16=id;cd.toUTF8=hd;cd.fromBytesAutoDetect=gd;cd.fromUTF16=ed;
115
- cd.fromUTF8=dd;var fd=new Nc(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={ub:65536};0<b.ub;b={ub:b.ub},b.ub/=2)if(a(b.ub))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.ub)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.ub));return e}}(b);return null});function jd(){}function kd(a){a=Fc(a);a=fd.value()(a);return btoa(a)}function ld(a,b){b=void 0==b?!0:b;var c=kd(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")}function md(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b}function nd(a){for(var b=a.length/2,c=new Uint8Array(b),d=0;d<b;d++)c[d]=window.parseInt(a.substr(2*d,2),16);return c}
116
- function od(a){var b=Fc(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function pd(){for(var a=Fa.apply(0,arguments),b=0,c=t(a),d=c.next();!d.done;d=c.next())b+=d.value.byteLength;b=new Uint8Array(b);c=0;a=t(a);for(d=a.next();!d.done;d=a.next())d=d.value,b.set(Fc(d),c),c+=d.byteLength;return b}M("shaka.util.Uint8ArrayUtils",jd);jd.concat=pd;jd.toHex=od;jd.fromHex=nd;jd.fromBase64=md;jd.toBase64=ld;jd.toStandardBase64=kd;function qd(){var a=this;this.A=Kc.get("muxjs")();this.g=new this.A.mp4.Transmuxer({keepOriginalTimestamps:!0});this.h=null;this.m=[];this.j=[];this.i=[];this.l=!1;this.g.on("data",function(b){a.j=b.captions;a.i=b.metadata;a.m.push(pd(b.initSegment,b.data))});this.g.on("done",function(){var b={data:pd.apply(jd,ja(a.m)),captions:a.j,metadata:a.i};a.h.resolve(b);a.l=!1})}qd.prototype.destroy=function(){this.g.dispose();this.g=null;return Promise.resolve()};
117
- function rd(a,b){if(!Kc.get("muxjs")()||!sd(a))return!1;if(b)return MediaSource.isTypeSupported(td(b,a));var c=td("audio",a),d=td("video",a);return MediaSource.isTypeSupported(c)||MediaSource.isTypeSupported(d)}function sd(a){return"mp2t"==a.toLowerCase().split(";")[0].split("/")[1]}
118
- function td(a,b){var c=b.replace(/mp2t/i,"mp4");"audio"==a&&(c=c.replace("video","audio"));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"==f?e+"4200":"77"==f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c}function ud(a,b){a.l=!0;a.h=new Mc;a.m=[];a.j=[];a.i=[];var c=Fc(b);a.g.push(c);a.g.flush();a.l&&a.h.reject(new P(2,3,3018));return a.h};function vd(){}function wd(a,b){var c=a;b&&(c+='; codecs="'+b+'"');return c}function xd(a,b,c){a=wd(a,b);if(sd(a)){if(Kc.get("muxjs")())return td(c,a)}else if("audio"==c)return a.replace("video","audio");return a}
112
+ function ed(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new O(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Hc(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return fd.value()(d)}
113
+ function gd(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=Ec(a);if(239==c[0]&&187==c[1]&&191==c[2])return dd(c);if(254==c[0]&&255==c[1])return ed(c.subarray(2),!1);if(255==c[0]&&254==c[1])return ed(c.subarray(2),!0);if(0==c[0]&&0==c[2])return ed(a,!1);if(0==c[1]&&0==c[3])return ed(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return dd(a);throw new O(2,2,2003);}
114
+ function hd(a){if(window.TextEncoder&&!Zc()){var b=new TextEncoder;return Fc(b.encode(a))}a=encodeURIComponent(a);a=unescape(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;c++)b[c]=a[c].charCodeAt(0);return Fc(b)}function id(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c}J("shaka.util.StringUtils",cd);cd.resetFromCharCode=function(){fd.g=void 0};cd.toUTF16=id;cd.toUTF8=hd;cd.fromBytesAutoDetect=gd;cd.fromUTF16=ed;
115
+ cd.fromUTF8=dd;var fd=new Mc(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={ub:65536};0<b.ub;b={ub:b.ub},b.ub/=2)if(a(b.ub))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.ub)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.ub));return e}}(b);return null});function jd(){}function kd(a){a=Ec(a);a=fd.value()(a);return btoa(a)}function ld(a,b){b=void 0==b?!0:b;var c=kd(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")}function md(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b}function nd(a){for(var b=a.length/2,c=new Uint8Array(b),d=0;d<b;d++)c[d]=window.parseInt(a.substr(2*d,2),16);return c}
116
+ function od(a){var b=Ec(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function pd(){for(var a=Fa.apply(0,arguments),b=0,c=t(a),d=c.next();!d.done;d=c.next())b+=d.value.byteLength;b=new Uint8Array(b);c=0;a=t(a);for(d=a.next();!d.done;d=a.next())d=d.value,b.set(Ec(d),c),c+=d.byteLength;return b}J("shaka.util.Uint8ArrayUtils",jd);jd.concat=pd;jd.toHex=od;jd.fromHex=nd;jd.fromBase64=md;jd.toBase64=ld;jd.toStandardBase64=kd;function qd(){var a=this;this.A=Jc.get("muxjs")();this.g=new this.A.mp4.Transmuxer({keepOriginalTimestamps:!0});this.h=null;this.m=[];this.j=[];this.i=[];this.l=!1;this.g.on("data",function(b){a.j=b.captions;a.i=b.metadata;a.m.push(pd(b.initSegment,b.data))});this.g.on("done",function(){var b={data:pd.apply(jd,ia(a.m)),captions:a.j,metadata:a.i};a.h.resolve(b);a.l=!1})}qd.prototype.destroy=function(){this.g.dispose();this.g=null;return Promise.resolve()};
117
+ function rd(a,b){if(!Jc.get("muxjs")()||!sd(a))return!1;if(b)return MediaSource.isTypeSupported(td(b,a));var c=td("audio",a),d=td("video",a);return MediaSource.isTypeSupported(c)||MediaSource.isTypeSupported(d)}function sd(a){return"mp2t"==a.toLowerCase().split(";")[0].split("/")[1]}
118
+ function td(a,b){var c=b.replace(/mp2t/i,"mp4");"audio"==a&&(c=c.replace("video","audio"));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"==f?e+"4200":"77"==f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c}function ud(a,b){a.l=!0;a.h=new Lc;a.m=[];a.j=[];a.i=[];var c=Ec(b);a.g.push(c);a.g.flush();a.l&&a.h.reject(new O(2,3,3018));return a.h};function vd(){}function wd(a,b){var c=a;b&&(c+='; codecs="'+b+'"');return c}function xd(a,b,c){a=wd(a,b);if(sd(a)){if(Jc.get("muxjs")())return td(c,a)}else if("audio"==c)return a.replace("video","audio");return a}
119
119
  function yd(a){var b=zd(a);a=b[0];b=b[1].toLowerCase();switch(!0){case "mp4a"===a&&"69"===b:case "mp4a"===a&&"6b"===b:return"mp3";case "mp4a"===a&&"66"===b:case "mp4a"===a&&"67"===b:case "mp4a"===a&&"68"===b:case "mp4a"===a&&"40.2"===b:case "mp4a"===a&&"40.02"===b:case "mp4a"===a&&"40.5"===b:case "mp4a"===a&&"40.05"===b:case "mp4a"===a&&"40.29"===b:case "mp4a"===a&&"40.42"===b:return"aac";case "mp4a"===a&&"a5"===b:return"ac-3";case "mp4a"===a&&"a6"===b:return"ec-3";case "mp4a"===a&&"b2"===b:return"dtsx";
120
- case "mp4a"===a&&"a9"===b:return"dtsc";case "avc1"===a:case "avc3"===a:return"avc";case "hvc1"===a:case "hev1"===a:return"hevc";case "dvh1"===a:case "dvhe"===a:return"dovi"}return a}function Ad(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}function zd(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}M("shaka.util.MimeUtils",vd);vd.getFullType=wd;
120
+ case "mp4a"===a&&"a9"===b:return"dtsc";case "avc1"===a:case "avc3"===a:return"avc";case "hvc1"===a:case "hev1"===a:return"hevc";case "dvh1"===a:case "dvhe"===a:return"dovi"}return a}function Ad(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}function zd(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}J("shaka.util.MimeUtils",vd);vd.getFullType=wd;
121
121
  (new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function Bd(a){this.j=null;this.i=a;this.C=!1;this.l=this.B=0;this.m=Infinity;this.h=this.g=null;this.F="";this.A=new Map}function Cd(a){return Dd[a]||"application/cea-608"==a||"application/cea-708"==a?!0:!1}Bd.prototype.destroy=function(){this.i=this.j=null;this.A.clear();return Promise.resolve()};
122
- function Ed(a,b,c,d){var e,f,g,h;return J(function(k){if(1==k.g)return z(k,Promise.resolve(),2);if(!a.j||!a.i)return k["return"]();if(null==c||null==d)return a.j.parseInit(Fc(b)),k["return"]();e=a.C?c:a.B;f={periodStart:a.B,segmentStart:c,segmentEnd:d,vttOffset:e};g=a.j.parseMedia(Fc(b),f);h=g.filter(function(l){return l.startTime>=a.l&&l.startTime<a.m});a.i.append(h);null==a.g&&(a.g=Math.max(c,a.l));a.h=Math.min(d,a.m);A(k)})}
123
- Bd.prototype.remove=function(a,b){var c=this;return J(function(d){if(1==d.g)return z(d,Promise.resolve(),2);!c.i||!c.i.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));A(d)})};function Fd(a,b,c){a.l=b;a.m=c}function Gd(a,b,c){a.F=b;if(b=a.A.get(b))for(var d=t(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.i.append(e)}
124
- function Kd(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({stream:c.stream,cue:new gc(c.startTime,c.endTime,c.text)});return b}function Ld(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Ld(a,d.value,c)}
125
- function Md(a,b,c,d,e){var f=c+" "+d,g=new Map;b=t(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,[]);Ld(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.F&&a.i.append([k]))}e=t(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.A.has(f)||a.A.set(f,new Map),b=t(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.A.get(f).set(h,k);a.g=null==a.g?Math.max(c,
126
- a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}M("shaka.text.TextEngine",Bd);Bd.prototype.destroy=Bd.prototype.destroy;Bd.findParser=function(a){return Dd[a]};Bd.unregisterParser=function(a){delete Dd[a]};Bd.registerParser=function(a,b){Dd[a]=b};var Dd={};function Nd(a,b,c,d,e){var f=a.variants;if(b.length||c.length)f=Od(f,b,c);f=Pd(f,d);b=Qd(f);b=Rd(b);var g=Sd(b,e);a.variants=a.variants.filter(function(h){return Td(h)==g?!0:!1})}function Qd(a){var b=new db;a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Td(c);b.push(d,c)}return b}
127
- function Rd(a){var b=0,c=new Map,d=a.size();eb(a,function(e,f){for(var g=t(f),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.video;if(k&&k.width&&k.height){k=k.width*k.height*(k.frameRate||1);c.has(k)||c.set(k,new db);var l=c.get(k);l.push(e,h);l.size()===d&&(b=Math.max(b,k))}}});return b?c.get(b):a}
128
- function Od(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={Yd:d.Yd},e=b.next())if(d.Yd=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.Yd)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={Kd:d.Kd},b=c.next())if(d.Kd=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Kd)}}(d)),b.length){a=b;break}return a}
129
- function Sd(a,b){for(var c=t(b),d=c.next();!d.done;d=c.next())if(d=d.value,d==Ud||d==Vd){if(a=Wd(a,d),1==a.size())return a.keys()[0]}else if(d==Xd)break;return Yd(a)}function Wd(a,b){var c=0,d=new db;eb(a,function(e,f){for(var g=0,h=0,k=t(f),l=k.next();!l.done;l=k.next())l=l.value,l.decodingInfos.length&&(g+=l.decodingInfos[0][b]?1:0,h++);g/=h;g>c?(d.g={},d.push(e,f),c=g):g==c&&d.push(e,f)});return d}
130
- function Yd(a){var b="",c=Infinity;eb(a,function(d,e){for(var f=0,g=0,h=t(e),k=h.next();!k.done;k=h.next())f+=k.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}function Td(a){var b="";a.video&&(b=yd(a.video.codecs));var c="";a.audio&&(c=yd(a.audio.codecs));return b+"-"+c}function Zd(a,b,c){a.variants=a.variants.filter(function(d){return $d(d,b,c)})}
131
- function $d(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;if(0!=a.disabledUntilTime){if(a.disabledUntilTime>Date.now()/1E3)return!1;a.disabledUntilTime=0}return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
132
- function ae(a,b,c){var d=!1;a=t(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=$d(e,b,c);f!=e.allowedByApplication&&(d=!0)}return d}function be(a,b){return J(function(c){if(1==c.g)return z(c,ce(b,0<b.offlineSessionIds.length),2);de(a,b);ee(b);return z(c,fe(b),0)})}
133
- function ce(a,b){return J(function(c){if(1==c.g)return z(c,ge(a.variants,b,!1),2);a.variants=a.variants.filter(function(d){var e=d.video;if(e){var f=he(e.codecs);if(e.codecs.includes(",")){var g=e.codecs.split(",");f=Fb("video",g);g=Fb("audio",g);g=xd(e.mimeType,g,"audio");if(!MediaSource.isTypeSupported(g))return!1}f=xd(e.mimeType,f,"video");if(!MediaSource.isTypeSupported(f))return!1}if(f=d.audio)if(g=ie(f.codecs),f=xd(f.mimeType,g,"audio"),!MediaSource.isTypeSupported(f))return!1;if(Sc()&&e&&(e.width&&
134
- 1920<e.width||e.height&&1080<e.height)&&e.codecs.includes("avc1."))return Ya(je(d)),!1;(e=d.decodingInfos.some(function(h){return h.supported}))||Ya(je(d));return e});A(c)})}
135
- function ge(a,b,c){var d,e,f,g,h,k,l,m,n,p,r;return J(function(v){if(d=a.some(function(y){return y.decodingInfos.length}))return v["return"]();e=navigator.mediaCapabilities;f=[];g=function(y,x){var w;return J(function(D){if(1==D.g)return F(D,2),z(D,e.decodingInfo(x),4);if(2!=D.g)return w=D.h,y.decodingInfos.push(w),va(D,0);I(D);JSON.stringify(x);A(D)})};h=t(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=ke(l,b,c),n=t(m),p=n.next();!p.done;p=n.next())r=p.value,f.push(g(l,r));return z(v,Promise.all(f),
122
+ function Ed(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g)return u(k,Promise.resolve(),2);if(!a.j||!a.i)return k["return"]();if(null==c||null==d)return a.j.parseInit(Ec(b)),k["return"]();e=a.C?c:a.B;f={periodStart:a.B,segmentStart:c,segmentEnd:d,vttOffset:e};g=a.j.parseMedia(Ec(b),f);h=g.filter(function(l){return l.startTime>=a.l&&l.startTime<a.m});a.i.append(h);null==a.g&&(a.g=Math.max(c,a.l));a.h=Math.min(d,a.m);z(k)})}
123
+ Bd.prototype.remove=function(a,b){var c=this;return I(function(d){if(1==d.g)return u(d,Promise.resolve(),2);!c.i||!c.i.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));z(d)})};function Fd(a,b,c){a.l=b;a.m=c}function Gd(a,b,c){a.F=b;if(b=a.A.get(b))for(var d=t(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.i.append(e)}
124
+ function Kd(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({stream:c.stream,cue:new hc(c.startTime,c.endTime,c.text)});return b}function Md(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Md(a,d.value,c)}
125
+ function Nd(a,b,c,d,e){var f=c+" "+d,g=new Map;b=t(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,[]);Md(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.F&&a.i.append([k]))}e=t(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.A.has(f)||a.A.set(f,new Map),b=t(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.A.get(f).set(h,k);a.g=null==a.g?Math.max(c,
126
+ a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}J("shaka.text.TextEngine",Bd);Bd.prototype.destroy=Bd.prototype.destroy;Bd.findParser=function(a){return Dd[a]};Bd.unregisterParser=function(a){delete Dd[a]};Bd.registerParser=function(a,b){Dd[a]=b};var Dd={};function Od(a,b,c,d,e){var f=a.variants;if(b.length||c.length)f=Pd(f,b,c);f=Qd(f,d);b=Rd(f);b=Sd(b);var g=Td(b,e);a.variants=a.variants.filter(function(h){return Ud(h)==g?!0:!1})}function Rd(a){var b=new db;a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Ud(c);b.push(d,c)}return b}
127
+ function Sd(a){var b=0,c=new Map,d=a.size();eb(a,function(e,f){for(var g=t(f),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.video;if(k&&k.width&&k.height){k=k.width*k.height*(k.frameRate||1);c.has(k)||c.set(k,new db);var l=c.get(k);l.push(e,h);l.size()===d&&(b=Math.max(b,k))}}});return b?c.get(b):a}
128
+ function Pd(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={Yd:d.Yd},e=b.next())if(d.Yd=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.Yd)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={Kd:d.Kd},b=c.next())if(d.Kd=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Kd)}}(d)),b.length){a=b;break}return a}
129
+ function Td(a,b){for(var c=t(b),d=c.next();!d.done;d=c.next())if(d=d.value,d==Vd||d==Wd){if(a=Xd(a,d),1==a.size())return a.keys()[0]}else if(d==Yd)break;return Zd(a)}function Xd(a,b){var c=0,d=new db;eb(a,function(e,f){for(var g=0,h=0,k=t(f),l=k.next();!l.done;l=k.next())l=l.value,l.decodingInfos.length&&(g+=l.decodingInfos[0][b]?1:0,h++);g/=h;g>c?(d.g={},d.push(e,f),c=g):g==c&&d.push(e,f)});return d}
130
+ function Zd(a){var b="",c=Infinity;eb(a,function(d,e){for(var f=0,g=0,h=t(e),k=h.next();!k.done;k=h.next())f+=k.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}function Ud(a){var b="";a.video&&(b=yd(a.video.codecs));var c="";a.audio&&(c=yd(a.audio.codecs));return b+"-"+c}function $d(a,b,c){a.variants=a.variants.filter(function(d){return ae(d,b,c)})}
131
+ function ae(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;if(0!=a.disabledUntilTime){if(a.disabledUntilTime>Date.now()/1E3)return!1;a.disabledUntilTime=0}return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
132
+ function be(a,b,c){var d=!1;a=t(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=ae(e,b,c);f!=e.allowedByApplication&&(d=!0)}return d}function ce(a,b){return I(function(c){if(1==c.g)return u(c,de(b,0<b.offlineSessionIds.length),2);ee(a,b);fe(b);return u(c,ge(b),0)})}
133
+ function de(a,b){return I(function(c){if(1==c.g)return u(c,he(a.variants,b,!1),2);a.variants=a.variants.filter(function(d){var e=d.video;if(e){var f=ie(e.codecs);if(e.codecs.includes(",")){var g=e.codecs.split(",");f=Fb("video",g);g=Fb("audio",g);g=xd(e.mimeType,g,"audio");if(!MediaSource.isTypeSupported(g))return!1}f=xd(e.mimeType,f,"video");if(!MediaSource.isTypeSupported(f))return!1}if(f=d.audio)if(g=je(f.codecs),f=xd(f.mimeType,g,"audio"),!MediaSource.isTypeSupported(f))return!1;if(Rc()&&e&&(e.width&&
134
+ 1920<e.width||e.height&&1080<e.height)&&e.codecs.includes("avc1."))return Ya(ke(d)),!1;(e=d.decodingInfos.some(function(h){return h.supported}))||Ya(ke(d));return e});z(c)})}
135
+ function he(a,b,c){var d,e,f,g,h,k,l,m,n,p,r;return I(function(v){if(d=a.some(function(y){return y.decodingInfos.length}))return v["return"]();e=navigator.mediaCapabilities;f=[];g=function(y,x){var w;return I(function(D){if(1==D.g)return A(D,2),u(D,e.decodingInfo(x),4);if(2!=D.g)return w=D.h,y.decodingInfos.push(w),va(D,0);F(D);JSON.stringify(x);z(D)})};h=t(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=le(l,b,c),n=t(m),p=n.next();!p.done;p=n.next())r=p.value,f.push(g(l,r));return u(v,Promise.all(f),
136
136
  0)})}
137
- function ke(a,b,c){var d=a.audio,e=a.video;c={type:c?"file":"media-source"};if(e){var f=e.codecs;if(e.codecs.includes(",")){var g=e.codecs.split(",");f=Fb("video",g);f=he(f);g=Fb("audio",g);g=xd(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=he(f);f=xd(e.mimeType,f,"video");c.video={contentType:f,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":c.video.transferFunction="srgb";
138
- break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=ie(d.codecs),f=xd(d.mimeType,f,"audio"),c.audio={contentType:f,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[c];a=[];f=new Map;g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;f.get(k.keySystem)||f.set(k.keySystem,[]);
137
+ function le(a,b,c){var d=a.audio,e=a.video;c={type:c?"file":"media-source"};if(e){var f=e.codecs;if(e.codecs.includes(",")){var g=e.codecs.split(",");f=Fb("video",g);f=ie(f);g=Fb("audio",g);g=xd(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=ie(f);f=xd(e.mimeType,f,"video");c.video={contentType:f,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":c.video.transferFunction="srgb";
138
+ break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=je(d.codecs),f=xd(d.mimeType,f,"audio"),c.audio={contentType:f,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[c];a=[];f=new Map;g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;f.get(k.keySystem)||f.set(k.keySystem,[]);
139
139
  f.get(k.keySystem).push(k)}g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];k=t(f.keys());for(var l=k.next();!l.done;l=k.next()){var m=l.value;l=Object.assign({},c);var n=f.get(m);m={keySystem:m,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b};n=t(n);for(h=n.next();!h.done;h=n.next()){h=h.value;if(h.initData&&h.initData.length){for(var p=new Set,r=t(h.initData),v=r.next();!v.done;v=r.next())p.add(v.value.initDataType);m.initDataType=h.initData[0].initDataType}h.distinctiveIdentifierRequired&&
140
- (m.distinctiveIdentifier="required");h.persistentStateRequired&&(m.persistentState="required");h.sessionType&&(m.sessionTypes=[h.sessionType]);d&&(m.audio?m.audio.robustness=m.audio.robustness||h.audioRobustness:m.audio={robustness:h.audioRobustness});e&&(m.video?m.video.robustness=m.video.robustness||h.videoRobustness:m.video={robustness:h.videoRobustness})}l.keySystemConfiguration=m;a.push(l)}return a}function ie(a){return Wc()?"ac-3"==a.toLowerCase()?"ec-3":a:a}
141
- function he(a){return"vp9"==a?"vp09.00.41.08":a}function de(a,b){b.variants=b.variants.filter(function(c){var d=c.audio;c=c.video;return d&&a&&a.audio&&!le(d,a.audio)||c&&a&&a.video&&!le(c,a.video)?!1:!0})}function ee(a){a.textStreams=a.textStreams.filter(function(b){return Cd(wd(b.mimeType,b.codecs))})}
142
- function fe(a){var b,c,d,e,f,g,h,k;return J(function(l){switch(l.g){case 1:b=[],c=t(a.imageStreams),d=c.next();case 2:if(d.done){l.D(4);break}e=d.value;f=e.mimeType;if(me.has(f)){l.D(5);break}g=ne.get(f);if(!g){me.set(f,!1);l.D(5);break}return z(l,oe(g),7);case 7:h=l.h,me.set(f,h);case 5:(k=me.get(f))&&b.push(e);d=c.next();l.D(2);break;case 4:a.imageStreams=b,A(l)}})}
143
- function oe(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)}})}function le(a,b){return a.mimeType!=b.mimeType||a.codecs.split(".")[0]!=b.codecs.split(".")[0]?!1:!0}
144
- function pe(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=t(b.roles),p=n.next();!p.done;p=n.next())m.add(p.value);if(c)for(n=t(c.roles),p=n.next();!p.done;p=n.next())m.add(p.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,
140
+ (m.distinctiveIdentifier="required");h.persistentStateRequired&&(m.persistentState="required");h.sessionType&&(m.sessionTypes=[h.sessionType]);d&&(m.audio?m.audio.robustness=m.audio.robustness||h.audioRobustness:m.audio={robustness:h.audioRobustness});e&&(m.video?m.video.robustness=m.video.robustness||h.videoRobustness:m.video={robustness:h.videoRobustness})}l.keySystemConfiguration=m;a.push(l)}return a}function je(a){return Wc()?"ac-3"==a.toLowerCase()?"ec-3":a:a}
141
+ function ie(a){return"vp9"==a?"vp09.00.41.08":a}function ee(a,b){b.variants=b.variants.filter(function(c){var d=c.audio;c=c.video;return d&&a&&a.audio&&!me(d,a.audio)||c&&a&&a.video&&!me(c,a.video)?!1:!0})}function fe(a){a.textStreams=a.textStreams.filter(function(b){return Cd(wd(b.mimeType,b.codecs))})}
142
+ function ge(a){var b,c,d,e,f,g,h,k;return I(function(l){switch(l.g){case 1:b=[],c=t(a.imageStreams),d=c.next();case 2:if(d.done){l.D(4);break}e=d.value;f=e.mimeType;if(ne.has(f)){l.D(5);break}g=oe.get(f);if(!g){ne.set(f,!1);l.D(5);break}return u(l,pe(g),7);case 7:h=l.h,ne.set(f,h);case 5:(k=ne.get(f))&&b.push(e);d=c.next();l.D(2);break;case 4:a.imageStreams=b,z(l)}})}
143
+ function pe(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)}})}function me(a,b){return a.mimeType!=b.mimeType||a.codecs.split(".")[0]!=b.codecs.split(".")[0]?!1:!0}
144
+ function qe(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=t(b.roles),p=n.next();!p.done;p=n.next())m.add(p.value);if(c)for(n=t(c.roles),p=n.next();!p.done;p=n.next())m.add(p.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,
145
145
  kind:l,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr: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};c&&(a.videoId=c.id,a.originalVideoId=c.originalId,
146
146
  a.width=c.width||null,a.height=c.height||null,a.frameRate=c.frameRate||null,a.pixelAspectRatio=c.pixelAspectRatio||null,a.videoBandwidth=c.bandwidth||null);b&&(a.audioId=b.id,a.originalAudioId=b.originalId,a.channelsCount=b.channelsCount,a.audioSamplingRate=b.audioSamplingRate,a.audioBandwidth=b.bandwidth||null,a.spatialAudio=b.spatialAudio,a.label=b.label,a.audioRoles=b.roles);return a}
147
- function qe(a){return{id:a.id,active:!1,type:Ib,bandwidth:0,language:a.language,label:a.label,kind:a.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:a.codecs||null,audioCodec:null,videoCodec:null,primary:a.primary,roles:a.roles,audioRoles:null,forced:a.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,
147
+ function re(a){return{id:a.id,active:!1,type:Ib,bandwidth:0,language:a.language,label:a.label,kind:a.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:a.codecs||null,audioCodec:null,videoCodec:null,primary:a.primary,roles:a.roles,audioRoles:null,forced:a.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,
148
148
  originalAudioId:null,originalTextId:a.originalId,originalImageId:null}}
149
- function re(a){var b=a.width||null,c=a.height||null,d=null;a.segmentIndex&&(d=a.segmentIndex.get(0));var e=a.tilesLayout;d&&(e=d.tilesLayout||e);e&&null!=b&&(b/=Number(e.split("x")[0]));e&&null!=c&&(c/=Number(e.split("x")[1]));return{id:a.id,active:!1,type:"image",bandwidth:a.bandwidth||0,language:"",label:null,kind:null,width:b,height:c,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],
150
- audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:e||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:a.originalId}}function se(a){a.__shaka_id||(a.__shaka_id=te++);return a.__shaka_id}
151
- function ue(a){var b=ve(a);b.active="disabled"!=a.mode;b.type="text";b.originalTextId=a.id;"captions"==a.kind&&(b.mimeType="application/cea-608");a.kind&&(b.roles=[a.kind]);"forced"==a.kind&&(b.forced=!0);return b}function we(a){var b=ve(a);b.active=a.enabled;b.type="variant";b.originalAudioId=a.id;"main"==a.kind&&(b.primary=!0);a.kind&&(b.roles=[a.kind],b.audioRoles=[a.kind],b.label=a.label);return b}
152
- function ve(a){return{id:se(a),active:!1,type:"",bandwidth:0,language:Mb(a.language),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,
153
- originalTextId:null,originalImageId:null}}function xe(a){return a.allowedByApplication&&a.allowedByKeySystem}function ye(a){return a.filter(function(b){return xe(b)})}
154
- function Pd(a,b){var c=a.filter(function(g){return g.audio&&g.audio.channelsCount}),d=new Map;c=t(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.audio.channelsCount;d.has(f)||d.set(f,[]);d.get(f).push(e)}c=Array.from(d.keys());if(0==c.length)return a;e=c.filter(function(g){return g<=b});return e.length?d.get(Math.max.apply(Math,ja(e))):d.get(Math.min.apply(Math,ja(c)))}
155
- function ze(a,b,c,d){var e=a,f=a.filter(function(k){return k.primary});f.length&&(e=f);var g=e.length?e[0].language:"";e=e.filter(function(k){return k.language==g});if(b){var h=Ub(Mb(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return Mb(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=Ae(e,c),a.length)return a}else if(a=e.filter(function(k){return 0==k.roles.length}),a.length)return a;a=e.map(function(k){return k.roles}).reduce(Ab,[]);return a.length?
156
- Ae(e,a[0]):e}function Ae(a,b){return a.filter(function(c){return c.roles.includes(b)})}function je(a){var b=[];a.audio&&b.push(Be(a.audio));a.video&&b.push(Be(a.video));return b.join(", ")}
157
- function Be(a){return"audio"==a.type?"type=audio codecs="+a.codecs+" bandwidth="+a.bandwidth+" channelsCount="+a.channelsCount+" audioSamplingRate="+a.audioSamplingRate:"video"==a.type?"type=video codecs="+a.codecs+" bandwidth="+a.bandwidth+" frameRate="+a.frameRate+" width="+a.width+" height="+a.height:"unexpected stream type"}
158
- var te=0,Ud="smooth",Vd="powerEfficient",Xd="bandwidth",me=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),ne=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Ce(){var a=this;this.m=null;this.l=!1;this.i=new bc;navigator.connection&&navigator.connection.addEventListener("change",function(){if(a.g.useNetworkInformation&&a.l){a.i=new bc;a.g&&a.i.configure(a.g.advanced);var b=a.chooseVariant();b&&a.m(b)}});this.A=[];this.C=1;this.F=!1;this.h=this.j=this.g=this.B=null;this.G=new Q(function(){if(a.g.restrictToElementSize){var b=a.chooseVariant();b&&a.m(b)}})}q=Ce.prototype;
149
+ function se(a){var b=a.width||null,c=a.height||null,d=null;a.segmentIndex&&(d=a.segmentIndex.get(0));var e=a.tilesLayout;d&&(e=d.tilesLayout||e);e&&null!=b&&(b/=Number(e.split("x")[0]));e&&null!=c&&(c/=Number(e.split("x")[1]));return{id:a.id,active:!1,type:"image",bandwidth:a.bandwidth||0,language:"",label:null,kind:null,width:b,height:c,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],
150
+ audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:e||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:a.originalId}}function te(a){a.__shaka_id||(a.__shaka_id=ue++);return a.__shaka_id}
151
+ function ve(a){var b=we(a);b.active="disabled"!=a.mode;b.type="text";b.originalTextId=a.id;"captions"==a.kind&&(b.mimeType="application/cea-608");a.kind&&(b.roles=[a.kind]);"forced"==a.kind&&(b.forced=!0);return b}function xe(a){var b=we(a);b.active=a.enabled;b.type="variant";b.originalAudioId=a.id;"main"==a.kind&&(b.primary=!0);a.kind&&(b.roles=[a.kind],b.audioRoles=[a.kind],b.label=a.label);return b}
152
+ function we(a){return{id:te(a),active:!1,type:"",bandwidth:0,language:Mb(a.language),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,
153
+ originalTextId:null,originalImageId:null}}function ye(a){return a.allowedByApplication&&a.allowedByKeySystem}function ze(a){return a.filter(function(b){return ye(b)})}
154
+ function Qd(a,b){var c=a.filter(function(g){return g.audio&&g.audio.channelsCount}),d=new Map;c=t(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.audio.channelsCount;d.has(f)||d.set(f,[]);d.get(f).push(e)}c=Array.from(d.keys());if(0==c.length)return a;e=c.filter(function(g){return g<=b});return e.length?d.get(Math.max.apply(Math,ia(e))):d.get(Math.min.apply(Math,ia(c)))}
155
+ function Ae(a,b,c,d){var e=a,f=a.filter(function(k){return k.primary});f.length&&(e=f);var g=e.length?e[0].language:"";e=e.filter(function(k){return k.language==g});if(b){var h=Ub(Mb(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return Mb(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=Be(e,c),a.length)return a}else if(a=e.filter(function(k){return 0==k.roles.length}),a.length)return a;a=e.map(function(k){return k.roles}).reduce(zb,[]);return a.length?
156
+ Be(e,a[0]):e}function Be(a,b){return a.filter(function(c){return c.roles.includes(b)})}function ke(a){var b=[];a.audio&&b.push(Ce(a.audio));a.video&&b.push(Ce(a.video));return b.join(", ")}
157
+ function Ce(a){return"audio"==a.type?"type=audio codecs="+a.codecs+" bandwidth="+a.bandwidth+" channelsCount="+a.channelsCount+" audioSamplingRate="+a.audioSamplingRate:"video"==a.type?"type=video codecs="+a.codecs+" bandwidth="+a.bandwidth+" frameRate="+a.frameRate+" width="+a.width+" height="+a.height:"unexpected stream type"}
158
+ var ue=0,Vd="smooth",Wd="powerEfficient",Yd="bandwidth",ne=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),oe=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function De(){var a=this;this.m=null;this.l=!1;this.i=new bc;navigator.connection&&navigator.connection.addEventListener("change",function(){if(a.g.useNetworkInformation&&a.l){a.i=new bc;a.g&&a.i.configure(a.g.advanced);var b=a.chooseVariant();b&&a.m(b)}});this.A=[];this.C=1;this.F=!1;this.h=this.j=this.g=this.B=null;this.G=new P(function(){if(a.g.restrictToElementSize){var b=a.chooseVariant();b&&a.m(b)}})}q=De.prototype;
159
159
  q.stop=function(){this.m=null;this.l=!1;this.A=[];this.C=1;this.j=this.B=null;this.h&&(this.h.disconnect(),this.h=null);this.G.stop()};q.init=function(a){this.m=a};
160
- q.chooseVariant=function(){var a=Infinity,b=Infinity;this.h&&this.g.restrictToElementSize&&(b=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio,a=this.j.clientWidth*b,b*=this.j.clientHeight);a=De(this.g.restrictions,this.A,a,b);b=this.i.getBandwidthEstimate(Ee(this));this.A.length&&!a.length&&(a=De(null,this.A,Infinity,Infinity),a=[a[0]]);for(var c=a[0]||null,d=0;d<a.length;d++){for(var e=a[d],f=isNaN(this.C)?1:Math.abs(this.C),g=f*e.bandwidth/this.g.bandwidthDowngradeTarget,h={bandwidth:Infinity},
160
+ q.chooseVariant=function(){var a=Infinity,b=Infinity;this.h&&this.g.restrictToElementSize&&(b=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio,a=this.j.clientWidth*b,b*=this.j.clientHeight);a=Ee(this.g.restrictions,this.A,a,b);b=this.i.getBandwidthEstimate(Fe(this));this.A.length&&!a.length&&(a=Ee(null,this.A,Infinity,Infinity),a=[a[0]]);for(var c=a[0]||null,d=0;d<a.length;d++){for(var e=a[d],f=isNaN(this.C)?1:Math.abs(this.C),g=f*e.bandwidth/this.g.bandwidthDowngradeTarget,h={bandwidth:Infinity},
161
161
  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.B=Date.now();return c};q.enable=function(){this.l=!0};q.disable=function(){this.l=!1};
162
- q.segmentDownloaded=function(a,b){this.i.sample(a,b);if(null!=this.B&&this.l)a:{if(!this.F){var c=this.i;if(!(c.g>=c.i))break a;this.F=!0}else if(Date.now()-this.B<1E3*this.g.switchInterval)break a;c=this.chooseVariant();this.i.getBandwidthEstimate(Ee(this));c&&this.m(c)}};q.getBandwidthEstimate=function(){return this.i.getBandwidthEstimate(Ee(this))};q.setVariants=function(a){this.A=a};q.playbackRateChanged=function(a){this.C=a};
163
- q.setMediaElement=function(a){var b=this;this.j=a;this.h&&(this.h.disconnect(),this.h=null);this.j&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.G.T(Fe)}),this.h.observe(this.j))};q.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)};function Ee(a){var b=a.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&a.g.useNetworkInformation&&(b=1E6*navigator.connection.downlink);return b}
164
- function De(a,b,c,d){a&&(b=b.filter(function(e){return $d(e,a,{width:d,height:c})}));return b.sort(function(e,f){return e.bandwidth-f.bandwidth})}M("shaka.abr.SimpleAbrManager",Ce);Ce.prototype.configure=Ce.prototype.configure;Ce.prototype.setMediaElement=Ce.prototype.setMediaElement;Ce.prototype.playbackRateChanged=Ce.prototype.playbackRateChanged;Ce.prototype.setVariants=Ce.prototype.setVariants;Ce.prototype.getBandwidthEstimate=Ce.prototype.getBandwidthEstimate;Ce.prototype.segmentDownloaded=Ce.prototype.segmentDownloaded;
165
- Ce.prototype.disable=Ce.prototype.disable;Ce.prototype.enable=Ce.prototype.enable;Ce.prototype.chooseVariant=Ce.prototype.chooseVariant;Ce.prototype.init=Ce.prototype.init;Ce.prototype.stop=Ce.prototype.stop;var Fe=1;function He(a,b){this.g=a;this.h=b}He.prototype.toString=function(){return"v"+this.g+"."+this.h};function Ie(){var a=new He(5,0),b=Je,c=b.g,d=a.h-c.h;(0<(a.g-c.g||d)?b.i:b.h)(b.g,a,"AbrManager","Please use an AbrManager with setMediaElement function.")}function Ke(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 Le(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 Je=null;function Me(a,b){this.h=a;this.g=new Set([a]);b=b||[];for(var c=t(b),d=c.next();!d.done;d=c.next())this.add(d.value)}Me.prototype.add=function(a){return Ne(this.h,a)?(this.g.add(a),!0):!1};
162
+ q.segmentDownloaded=function(a,b){this.i.sample(a,b);if(null!=this.B&&this.l)a:{if(!this.F){var c=this.i;if(!(c.g>=c.i))break a;this.F=!0}else if(Date.now()-this.B<1E3*this.g.switchInterval)break a;c=this.chooseVariant();this.i.getBandwidthEstimate(Fe(this));c&&this.m(c)}};q.getBandwidthEstimate=function(){return this.i.getBandwidthEstimate(Fe(this))};q.setVariants=function(a){this.A=a};q.playbackRateChanged=function(a){this.C=a};
163
+ q.setMediaElement=function(a){var b=this;this.j=a;this.h&&(this.h.disconnect(),this.h=null);this.j&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.G.T(Ge)}),this.h.observe(this.j))};q.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)};function Fe(a){var b=a.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&a.g.useNetworkInformation&&(b=1E6*navigator.connection.downlink);return b}
164
+ function Ee(a,b,c,d){a&&(b=b.filter(function(e){return ae(e,a,{width:d,height:c})}));return b.sort(function(e,f){return e.bandwidth-f.bandwidth})}J("shaka.abr.SimpleAbrManager",De);De.prototype.configure=De.prototype.configure;De.prototype.setMediaElement=De.prototype.setMediaElement;De.prototype.playbackRateChanged=De.prototype.playbackRateChanged;De.prototype.setVariants=De.prototype.setVariants;De.prototype.getBandwidthEstimate=De.prototype.getBandwidthEstimate;De.prototype.segmentDownloaded=De.prototype.segmentDownloaded;
165
+ De.prototype.disable=De.prototype.disable;De.prototype.enable=De.prototype.enable;De.prototype.chooseVariant=De.prototype.chooseVariant;De.prototype.init=De.prototype.init;De.prototype.stop=De.prototype.stop;var Ge=1;function He(a,b){this.g=a;this.h=b}He.prototype.toString=function(){return"v"+this.g+"."+this.h};function Ie(){var a=new He(5,0),b=Je,c=b.g,d=a.h-c.h;(0<(a.g-c.g||d)?b.i:b.h)(b.g,a,"AbrManager","Please use an AbrManager with setMediaElement function.")}function Ke(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 Le(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 Je=null;function Me(a,b){this.h=a;this.g=new Set([a]);b=b||[];for(var c=t(b),d=c.next();!d.done;d=c.next())this.add(d.value)}Me.prototype.add=function(a){return Ne(this.h,a)?(this.g.add(a),!0):!1};
166
166
  function Ne(a,b){var c;if(!(c=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(c=a.audio&&b.audio)){c=a.audio;var d=b.audio;c=!((!(!c.channelsCount||!d.channelsCount||2<c.channelsCount||2<d.channelsCount)||c.channelsCount==d.channelsCount)&&Oe(c,d)&&Pe(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(c=a.video,d=b.video,c=!(Oe(c,d)&&Pe(c.roles,d.roles)));return c?!1:!0}Me.prototype.values=function(){return this.g.values()};
167
167
  function Oe(a,b){if(a.mimeType!=b.mimeType)return!1;var c=a.codecs.split(",").map(function(f){return zd(f)[0]}),d=b.codecs.split(",").map(function(f){return zd(f)[0]});if(c.length!=d.length)return!1;c.sort();d.sort();for(var e=0;e<c.length;e++)if(c[e]!=d[e])return!1;return!0}function Pe(a,b){var c=new Set(a),d=new Set(b);c["delete"]("main");d["delete"]("main");if(c.size!=d.size)return!1;c=t(c);for(var e=c.next();!e.done;e=c.next())if(!d.has(e.value))return!1;return!0};function Qe(a){this.g=a;this.h=new Re(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}Qe.prototype.create=function(a){var b=this,c=a.filter(function(d){return Ne(b.g,d)});return c.length?new Me(c[0],c):this.h.create(a)};function Re(a,b,c,d){this.i=a;this.j=b;this.g=c;this.h=void 0===d?"":d}
168
- Re.prototype.create=function(a){var b=[];b=Se(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=Te(b,this.j);a.length&&(b=a);this.g&&(a=Pd(b,this.g),a.length&&(b=a));this.h&&(a=Ue(b,this.h),a.length&&(b=a));a=new Me(b[0]);b=t(b);for(c=b.next();!c.done;c=b.next())c=c.value,Ne(a.h,c)&&a.add(c);return a};function Se(a,b){var c=Mb(b),d=Ub(c,a.map(function(e){return Tb(e)}));return d?a.filter(function(e){return d==Tb(e)}):[]}
168
+ Re.prototype.create=function(a){var b=[];b=Se(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=Te(b,this.j);a.length&&(b=a);this.g&&(a=Qd(b,this.g),a.length&&(b=a));this.h&&(a=Ue(b,this.h),a.length&&(b=a));a=new Me(b[0]);b=t(b);for(c=b.next();!c.done;c=b.next())c=c.value,Ne(a.h,c)&&a.add(c);return a};function Se(a,b){var c=Mb(b),d=Ub(c,a.map(function(e){return Tb(e)}));return d?a.filter(function(e){return d==Tb(e)}):[]}
169
169
  function Te(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function Ue(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function Ve(){this.g=We;this.h=(new Map).set(We,2).set(Xe,1)}function Ye(a,b,c){a.h.set(We,c).set(Xe,b)}var Xe=0,We=1;function Ze(a,b){var c=$e();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.A=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1}
170
- function af(a){var b,c;return J(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new P(2,7,1010);b=a.g;a.g++;if(0==b)return d["return"]();c=a.h*(1+(2*Math.random()-1)*a.A);return z(d,new Promise(function(e){(new Q(e)).T(c/1E3)}),2)}a.h*=a.m;A(d)})}function $e(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function bf(a,b){this.promise=a;this.i=b;this.g=!1}function cf(a){return new bf(Promise.reject(a),function(){return Promise.resolve()})}function df(){var a=Promise.reject(new P(2,7,7001));a["catch"](function(){});return new bf(a,function(){return Promise.resolve()})}function ef(a){return new bf(Promise.resolve(a),function(){return Promise.resolve()})}function ff(a){return new bf(a,function(){return a["catch"](function(){})})}bf.prototype.abort=function(){this.g=!0;return this.i()};
170
+ function af(a){var b,c;return I(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new O(2,7,1010);b=a.g;a.g++;if(0==b)return d["return"]();c=a.h*(1+(2*Math.random()-1)*a.A);return u(d,new Promise(function(e){(new P(e)).T(c/1E3)}),2)}a.h*=a.m;z(d)})}function $e(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function bf(a,b){this.promise=a;this.i=b;this.g=!1}function cf(a){return new bf(Promise.reject(a),function(){return Promise.resolve()})}function df(){var a=Promise.reject(new O(2,7,7001));a["catch"](function(){});return new bf(a,function(){return Promise.resolve()})}function ef(a){return new bf(Promise.resolve(a),function(){return Promise.resolve()})}function ff(a){return new bf(a,function(){return a["catch"](function(){})})}bf.prototype.abort=function(){this.g=!0;return this.i()};
171
171
  function gf(a){return new bf(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}bf.prototype["finally"]=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
172
- bf.prototype.na=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=hf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Mc,g=new P(2,7,7001);this.promise.then(c(!0),c(!1));return new bf(f,function(){return d()})};
173
- function hf(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()}}}M("shaka.util.AbortableOperation",bf);bf.prototype.chain=bf.prototype.na;bf.prototype["finally"]=bf.prototype["finally"];bf.all=gf;bf.prototype.abort=bf.prototype.abort;bf.notAbortable=ff;bf.completed=ef;bf.aborted=df;bf.failed=cf;function jf(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 Set;return b(a)}function kf(a){var b={},c;for(c in a)b[c]=a[c];return b};function lf(){this.g=[]}function mf(a,b){a.g.push(b["finally"](function(){dc(a.g,b)}))}lf.prototype.destroy=function(){for(var a=[],b=t(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 nf(a,b,c){fb.call(this);this.i=!1;this.m=new lf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.A=!1}u(nf,fb);q=nf.prototype;q.Fe=function(a){this.A=a};function of(a,b,c,d){c=c||pf;var e=qf[a];if(!e||c>=e.priority)qf[a]={priority:c,Zg:b,$g:void 0===d?!1:d}}q.ah=function(a){this.g.add(a)};q.rh=function(a){this.g["delete"](a)};q.$f=function(){this.g.clear()};q.bh=function(a){this.h.add(a)};q.sh=function(a){this.h["delete"](a)};q.ag=function(){this.h.clear()};
172
+ bf.prototype.na=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=hf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Lc,g=new O(2,7,7001);this.promise.then(c(!0),c(!1));return new bf(f,function(){return d()})};
173
+ function hf(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()}}}J("shaka.util.AbortableOperation",bf);bf.prototype.chain=bf.prototype.na;bf.prototype["finally"]=bf.prototype["finally"];bf.all=gf;bf.prototype.abort=bf.prototype.abort;bf.notAbortable=ff;bf.completed=ef;bf.aborted=df;bf.failed=cf;function jf(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 Set;return b(a)}function kf(a){var b={},c;for(c in a)b[c]=a[c];return b};function lf(){this.g=[]}function mf(a,b){a.g.push(b["finally"](function(){dc(a.g,b)}))}lf.prototype.destroy=function(){for(var a=[],b=t(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 nf(a,b,c){fb.call(this);this.i=!1;this.m=new lf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.A=!1}qa(nf,fb);q=nf.prototype;q.Fe=function(a){this.A=a};function of(a,b,c,d){c=c||pf;var e=qf[a];if(!e||c>=e.priority)qf[a]={priority:c,Zg:b,$g:void 0===d?!1:d}}q.ah=function(a){this.g.add(a)};q.rh=function(a){this.g["delete"](a)};q.$f=function(){this.g.clear()};q.bh=function(a){this.h.add(a)};q.sh=function(a){this.h["delete"](a)};q.ag=function(){this.h.clear()};
174
174
  function rf(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();fb.prototype.release.call(this);return this.m.destroy()};
175
- q.request=function(a,b){var c=this,d=new sf;if(this.i){var e=Promise.reject(new P(2,7,7001));e["catch"](function(){});return new tf(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?jf(b.retryParameters):$e();b.uris=jf(b.uris);e=uf(this,a,b);var f=e.na(function(){return vf(c,a,b,new Ze(b.retryParameters,!1),0,null,d)}),g=f.na(function(n){return wf(c,a,n)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
175
+ q.request=function(a,b){var c=this,d=new sf;if(this.i){var e=Promise.reject(new O(2,7,7001));e["catch"](function(){});return new tf(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?jf(b.retryParameters):$e();b.uris=jf(b.uris);e=uf(this,a,b);var f=e.na(function(){return vf(c,a,b,new Ze(b.retryParameters,!1),0,null,d)}),g=f.na(function(n){return wf(c,a,n)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
176
176
  var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.na(function(n){var p=Date.now()-l,r=n.response;r.timeMs+=k;r.timeMs+=p;n.Mg||!c.l||r.fromCache||a!=xf||c.l(r.timeMs,r.data.byteLength);return r},function(n){n&&(n.severity=2);throw n;});e=new tf(m.promise,function(){return m.abort()},d);mf(this.m,e);return e};
177
- function uf(a,b,c){var d=ef(void 0),e={};a=t(a.g);for(var f=a.next();!f.done;e={Td:e.Td},f=a.next())e.Td=f.value,d=d.na(function(g){return function(){c.body&&(c.body=Gc(c.body));return g.Td(b,c)}}(e));return d.na(void 0,function(g){if(g instanceof P&&7001==g.code)throw g;throw new P(2,1,1006,g);})}
178
- function vf(a,b,c,d,e,f,g){a.A&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new lb(c.uris[e]),k=h.Wa,l=!1;k||(k=location.protocol,k=k.slice(0,-1),mb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=qf[k])?k.Zg:null;if(!m)return cf(new P(2,1,1E3,h));var n=k.$g,p=null,r=null,v=!1,y=!1,x;return ff(af(d)).na(function(){if(a.i)return df();x=Date.now();var w=m(c.uris[e],c,b,function(C,G,E){p&&p.stop();r&&r.T(B/1E3);a.l&&b==xf&&(a.l(C,G),l=!0,g.g=E)},function(C){a.j&&a.j(C,c,b);y=!0});
179
- if(!n)return w;var D=c.retryParameters.connectionTimeout;D&&(p=new Q(function(){v=!0;w.abort()}),p.T(D/1E3));var B=c.retryParameters.stallTimeout;B&&(r=new Q(function(){v=!0;w.abort()}));return w}).na(function(w){p&&p.stop();r&&r.stop();void 0==w.timeMs&&(w.timeMs=Date.now()-x);var D={response:w,Mg:l};!y&&a.j&&a.j(w.headers,c,b);return D},function(w){p&&p.stop();r&&r.stop();if(a.B){var D=null,B=0;w instanceof P&&(D=w,1001==w.code&&(B=w.data[1]));a.B(c,D,B,v)}if(a.i)return df();v&&(w=new P(1,1,1003,
180
- c.uris[e],b));if(w instanceof P){if(7001==w.code)throw w;if(1010==w.code)throw f;if(1==w.severity)return D=(new Map).set("error",w),D=new O("retry",D),a.dispatchEvent(D),e=(e+1)%c.uris.length,vf(a,b,c,d,e,w,g)}throw w;})}
181
- function wf(a,b,c){var d=ef(void 0),e={};a=t(a.h);for(var f=a.next();!f.done;e={Ud:e.Ud},f=a.next())e.Ud=f.value,d=d.na(function(g){return function(){var h=c.response;h.data&&(h.data=Gc(h.data));return g.Ud(b,h)}}(e));return d.na(function(){return c},function(g){var h=2;if(g instanceof P){if(7001==g.code)throw g;h=g.severity}throw new P(h,1,1007,g);})}M("shaka.net.NetworkingEngine",nf);nf.prototype.request=nf.prototype.request;nf.prototype.destroy=nf.prototype.destroy;nf.makeRequest=rf;
177
+ function uf(a,b,c){var d=ef(void 0),e={};a=t(a.g);for(var f=a.next();!f.done;e={Td:e.Td},f=a.next())e.Td=f.value,d=d.na(function(g){return function(){c.body&&(c.body=Fc(c.body));return g.Td(b,c)}}(e));return d.na(void 0,function(g){if(g instanceof O&&7001==g.code)throw g;throw new O(2,1,1006,g);})}
178
+ function vf(a,b,c,d,e,f,g){a.A&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new lb(c.uris[e]),k=h.Wa,l=!1;k||(k=location.protocol,k=k.slice(0,-1),mb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=qf[k])?k.Zg:null;if(!m)return cf(new O(2,1,1E3,h));var n=k.$g,p=null,r=null,v=!1,y=!1,x;return ff(af(d)).na(function(){if(a.i)return df();x=Date.now();var w=m(c.uris[e],c,b,function(C,G,E){p&&p.stop();r&&r.T(B/1E3);a.l&&b==xf&&(a.l(C,G),l=!0,g.g=E)},function(C){a.j&&a.j(C,c,b);y=!0});
179
+ if(!n)return w;var D=c.retryParameters.connectionTimeout;D&&(p=new P(function(){v=!0;w.abort()}),p.T(D/1E3));var B=c.retryParameters.stallTimeout;B&&(r=new P(function(){v=!0;w.abort()}));return w}).na(function(w){p&&p.stop();r&&r.stop();void 0==w.timeMs&&(w.timeMs=Date.now()-x);var D={response:w,Mg:l};!y&&a.j&&a.j(w.headers,c,b);return D},function(w){p&&p.stop();r&&r.stop();if(a.B){var D=null,B=0;w instanceof O&&(D=w,1001==w.code&&(B=w.data[1]));a.B(c,D,B,v)}if(a.i)return df();v&&(w=new O(1,1,1003,
180
+ c.uris[e],b));if(w instanceof O){if(7001==w.code)throw w;if(1010==w.code)throw f;if(1==w.severity)return D=(new Map).set("error",w),D=new M("retry",D),a.dispatchEvent(D),e=(e+1)%c.uris.length,vf(a,b,c,d,e,w,g)}throw w;})}
181
+ function wf(a,b,c){var d=ef(void 0),e={};a=t(a.h);for(var f=a.next();!f.done;e={Ud:e.Ud},f=a.next())e.Ud=f.value,d=d.na(function(g){return function(){var h=c.response;h.data&&(h.data=Fc(h.data));return g.Ud(b,h)}}(e));return d.na(function(){return c},function(g){var h=2;if(g instanceof O){if(7001==g.code)throw g;h=g.severity}throw new O(h,1,1007,g);})}J("shaka.net.NetworkingEngine",nf);nf.prototype.request=nf.prototype.request;nf.prototype.destroy=nf.prototype.destroy;nf.makeRequest=rf;
182
182
  nf.defaultRetryParameters=function(){return $e()};nf.prototype.clearAllResponseFilters=nf.prototype.ag;nf.prototype.unregisterResponseFilter=nf.prototype.sh;nf.prototype.registerResponseFilter=nf.prototype.bh;nf.prototype.clearAllRequestFilters=nf.prototype.$f;nf.prototype.unregisterRequestFilter=nf.prototype.rh;nf.prototype.registerRequestFilter=nf.prototype.ah;nf.unregisterScheme=function(a){delete qf[a]};nf.registerScheme=of;nf.prototype.setForceHTTPS=nf.prototype.Fe;function sf(){this.g=0}
183
- nf.NumBytesRemainingClass=sf;function tf(a,b,c){bf.call(this,a,b);this.h=c}u(tf,bf);nf.PendingRequest=tf;var xf=1;nf.RequestType={MANIFEST:0,SEGMENT:xf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var pf=3;nf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:pf};var qf={};function yf(a){this.g=!1;this.h=new Mc;this.i=a}yf.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 zf(a,b){if(a.g){if(b instanceof P&&7003==b.code)throw b;throw new P(2,7,7003,b);}};function Af(){this.g=new db}q=Af.prototype;q.release=function(){this.Qb();this.g=null};q.o=function(a,b,c,d){this.g&&(a=new Bf(a,b,c,d),this.g.push(b,a))};q.Fa=function(a,b,c,d){function e(g){f.qc(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};q.qc=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.qc(),this.g.remove(b,e))}};
184
- q.Qb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ja(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.qc();this.g.g={}}};M("shaka.util.EventManager",Af);Af.prototype.removeAll=Af.prototype.Qb;Af.prototype.unlisten=Af.prototype.qc;Af.prototype.listenOnce=Af.prototype.Fa;Af.prototype.listen=Af.prototype.o;Af.prototype.release=Af.prototype.release;function Bf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=Cf(a,d);this.target.addEventListener(b,c,this.g)}
183
+ nf.NumBytesRemainingClass=sf;function tf(a,b,c){bf.call(this,a,b);this.h=c}qa(tf,bf);nf.PendingRequest=tf;var xf=1;nf.RequestType={MANIFEST:0,SEGMENT:xf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var pf=3;nf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:pf};var qf={};function yf(a){this.g=!1;this.h=new Lc;this.i=a}yf.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 zf(a,b){if(a.g){if(b instanceof O&&7003==b.code)throw b;throw new O(2,7,7003,b);}};function Af(){this.g=new db}q=Af.prototype;q.release=function(){this.Qb();this.g=null};q.o=function(a,b,c,d){this.g&&(a=new Bf(a,b,c,d),this.g.push(b,a))};q.Ea=function(a,b,c,d){function e(g){f.qc(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};q.qc=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.qc(),this.g.remove(b,e))}};
184
+ q.Qb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ia(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.qc();this.g.g={}}};J("shaka.util.EventManager",Af);Af.prototype.removeAll=Af.prototype.Qb;Af.prototype.unlisten=Af.prototype.qc;Af.prototype.listenOnce=Af.prototype.Ea;Af.prototype.listen=Af.prototype.o;Af.prototype.release=Af.prototype.release;function Bf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=Cf(a,d);this.target.addEventListener(b,c,this.g)}
185
185
  Bf.prototype.qc=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function Cf(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 Df(a)?b:b.capture||!1}
186
- function Df(a){var b=Ef;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}Ef=b}return b||!1}var Ef=void 0;function Ff(a){for(var b=new Map,c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Gf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Hf(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;for(var c=t(a),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;if(!b.has(d))return!1;d=b.get(d);if(d!=e||void 0==d)return!1}return!0};function If(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.l=this.B=null;this.ba=this.$=!1;this.J=0;this.g=null;this.A=new Af;this.i=new Map;this.F=[];this.C=new Mc;this.h=null;this.m=function(d){c.C.reject(d);a.onError(d)};this.ea=new Map;this.ua=new Map;this.S=new Q(function(){return Jf(c)});this.N=!1;this.K=[];this.P=!1;this.aa=(new Q(function(){Kf(c)})).ka(b);this.C["catch"](function(){});this.j=new yf(function(){return Lf(c)});this.X=!1;this.H=null}q=If.prototype;q.destroy=function(){return this.j.destroy()};
187
- function Lf(a){return J(function(b){switch(b.g){case 1:return a.A.release(),a.A=null,a.C.reject(),a.aa.stop(),a.aa=null,a.S.stop(),a.S=null,z(b,Mf(a),2);case 2:if(!a.l){b.D(3);break}F(b,4);return z(b,a.l.setMediaKeys(null),6);case 6:va(b,5);break;case 4:I(b);case 5:a.l=null;case 3:a.g=null,a.I.clear(),a.B=null,a.F=[],a.h=null,a.m=function(){},a.G=null,a.X=!1,a.H=null,A(b)}})}q.configure=function(a){this.h=a};function Nf(a,b,c){a.ba=!0;a.F=[];a.N=c;return Of(a,b)}
186
+ function Df(a){var b=Ef;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}Ef=b}return b||!1}var Ef=void 0;function Ff(a){for(var b=new Map,c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Gf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Hf(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;for(var c=t(a),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;if(!b.has(d))return!1;d=b.get(d);if(d!=e||void 0==d)return!1}return!0};function If(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.l=this.B=null;this.ba=this.$=!1;this.J=0;this.g=null;this.A=new Af;this.i=new Map;this.F=[];this.C=new Lc;this.h=null;this.m=function(d){c.C.reject(d);a.onError(d)};this.ea=new Map;this.ua=new Map;this.S=new P(function(){return Jf(c)});this.N=!1;this.K=[];this.P=!1;this.aa=(new P(function(){Kf(c)})).ka(b);this.C["catch"](function(){});this.j=new yf(function(){return Lf(c)});this.X=!1;this.H=null}q=If.prototype;q.destroy=function(){return this.j.destroy()};
187
+ function Lf(a){return I(function(b){switch(b.g){case 1:return a.A.release(),a.A=null,a.C.reject(),a.aa.stop(),a.aa=null,a.S.stop(),a.S=null,u(b,Mf(a),2);case 2:if(!a.l){b.D(3);break}A(b,4);return u(b,a.l.setMediaKeys(null),6);case 6:va(b,5);break;case 4:F(b);case 5:a.l=null;case 3:a.g=null,a.I.clear(),a.B=null,a.F=[],a.h=null,a.m=function(){},a.G=null,a.X=!1,a.H=null,z(b)}})}q.configure=function(a){this.h=a};function Nf(a,b,c){a.ba=!0;a.F=[];a.N=c;return Of(a,b)}
188
188
  function Pf(a,b,c){a.F=c;a.N=0<c.length;return Of(a,b)}function Qf(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 Rf(a,g,[])}
189
- function Of(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,v,y;return J(function(x){if(1==x.g){if(c=Sf(a))for(d=t(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(w){return w.video&&w.video.drmInfos.length||w.audio&&w.audio.drmInfos.length?!0:!1});g||(h=Ff(a.h.servers),Tf(b,h));k=t(b);for(e=k.next();!e.done;e=k.next())for(l=e.value,m=Uf(l),n=t(m),p=n.next();!p.done;p=n.next())r=p.value,Vf(r,Ff(a.h.servers),Ff(a.h.advanced||{}),a.h.keySystemsMapping);
190
- return z(x,ge(b,a.N,a.X),2)}v=g||Object.keys(a.h.servers).length;if(!v)return a.$=!0,x["return"](Promise.resolve());y=Rf(a,void 0,b);return x["return"](g?y:y["catch"](function(){}))})}function Wf(a){var b;return J(function(c){switch(c.g){case 1:if(a.l.mediaKeys)return c["return"]();if(!a.H){c.D(2);break}return z(c,a.H,3);case 3:return c["return"]();case 2:return F(c,4),a.H=a.l.setMediaKeys(a.B),z(c,a.H,6);case 6:va(c,5);break;case 4:b=I(c),a.m(new P(2,6,6003,b.message));case 5:zf(a.j),A(c)}})}
191
- function Xf(a,b){return J(function(c){if(1==c.g)return z(c,Wf(a),2);Yf(a,b.initDataType,Fc(b.initData));A(c)})}
192
- q.Ac=function(a){var b=this,c;return J(function(d){if(1==d.g){if(!b.B)return b.A.Fa(a,"encrypted",function(){b.m(new P(2,6,6010))}),d["return"]();b.l=a;b.A.Fa(b.l,"play",function(){for(var e=t(b.K),f=e.next();!f.done;f=e.next())Zf(b,f.value);b.P=!0;b.K=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.A.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Mf(b)});return(c=b.g.initData.find(function(e){return 0<e.initData.length}))||window.shakaMediaKeysPolyfill||b.F.length?z(d,
193
- Wf(b),2):d.D(2)}$f(b);c||b.F.length||b.A.o(b.l,"encrypted",function(e){return Xf(b,e)});A(d)})};
194
- function ag(a){var b,c,d,e,f;return J(function(g){switch(g.g){case 1:if(!a.B||!a.g)return g["return"]();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=rf([a.g.serverCertificateUri],a.h.retryParameters);F(g,3);c=a.G.Ob.request(5,b);return z(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Fc(d.data);va(g,4);break;case 3:throw e=I(g),new P(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"]();
195
- F(g,6);return z(g,a.B.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=I(g),new P(2,6,6004,f.message);}})}function bg(a,b){var c,d,e;return J(function(f){if(1==f.g)return z(f,cg(a,b),2);if(3!=f.g){c=f.h;if(!c)return f["return"]();d=[];if(e=a.i.get(c))e.cb=new Mc,d.push(e.cb);d.push(c.remove());return z(f,Promise.all(d),3)}a.i["delete"](c);A(f)})}
196
- function $f(a){for(var b=(a.g?a.g.initData:[])||[],c=t(b),d=c.next();!d.done;d=c.next())d=d.value,Yf(a,d.initDataType,d.initData);c=t(a.F);for(d=c.next();!d.done;d=c.next())cg(a,d.value);b.length||a.F.length||a.C.resolve();return a.C}function Yf(a,b,c){if(c.length){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(Dc(c,e.value.initData)&&!Tc("Tizen 2"))return;dg(a,b,c,a.g.sessionType)}}function eg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}
189
+ function Of(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,v,y;return I(function(x){if(1==x.g){if(c=Sf(a))for(d=t(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(w){return w.video&&w.video.drmInfos.length||w.audio&&w.audio.drmInfos.length?!0:!1});g||(h=Ff(a.h.servers),Tf(b,h));k=t(b);for(e=k.next();!e.done;e=k.next())for(l=e.value,m=Uf(l),n=t(m),p=n.next();!p.done;p=n.next())r=p.value,Vf(r,Ff(a.h.servers),Ff(a.h.advanced||{}),a.h.keySystemsMapping);
190
+ return u(x,he(b,a.N,a.X),2)}v=g||Object.keys(a.h.servers).length;if(!v)return a.$=!0,x["return"](Promise.resolve());y=Rf(a,void 0,b);return x["return"](g?y:y["catch"](function(){}))})}function Wf(a){var b;return I(function(c){switch(c.g){case 1:if(a.l.mediaKeys)return c["return"]();if(!a.H){c.D(2);break}return u(c,a.H,3);case 3:return c["return"]();case 2:return A(c,4),a.H=a.l.setMediaKeys(a.B),u(c,a.H,6);case 6:va(c,5);break;case 4:b=F(c),a.m(new O(2,6,6003,b.message));case 5:zf(a.j),z(c)}})}
191
+ function Xf(a,b){return I(function(c){if(1==c.g)return u(c,Wf(a),2);Yf(a,b.initDataType,Ec(b.initData));z(c)})}
192
+ q.Ac=function(a){var b=this,c;return I(function(d){if(1==d.g){if(!b.B)return b.A.Ea(a,"encrypted",function(){b.m(new O(2,6,6010))}),d["return"]();b.l=a;b.A.Ea(b.l,"play",function(){for(var e=t(b.K),f=e.next();!f.done;f=e.next())Zf(b,f.value);b.P=!0;b.K=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.A.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Mf(b)});return(c=b.g.initData.find(function(e){return 0<e.initData.length}))||window.shakaMediaKeysPolyfill||b.F.length?u(d,
193
+ Wf(b),2):d.D(2)}$f(b);c||b.F.length||b.A.o(b.l,"encrypted",function(e){return Xf(b,e)});z(d)})};
194
+ function ag(a){var b,c,d,e,f;return I(function(g){switch(g.g){case 1:if(!a.B||!a.g)return g["return"]();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=rf([a.g.serverCertificateUri],a.h.retryParameters);A(g,3);c=a.G.Ob.request(5,b);return u(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Ec(d.data);va(g,4);break;case 3:throw e=F(g),new O(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"]();
195
+ A(g,6);return u(g,a.B.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=F(g),new O(2,6,6004,f.message);}})}function bg(a,b){var c,d,e;return I(function(f){if(1==f.g)return u(f,cg(a,b),2);if(3!=f.g){c=f.h;if(!c)return f["return"]();d=[];if(e=a.i.get(c))e.cb=new Lc,d.push(e.cb);d.push(c.remove());return u(f,Promise.all(d),3)}a.i["delete"](c);z(f)})}
196
+ function $f(a){for(var b=(a.g?a.g.initData:[])||[],c=t(b),d=c.next();!d.done;d=c.next())d=d.value,Yf(a,d.initDataType,d.initData);c=t(a.F);for(d=c.next();!d.done;d=c.next())cg(a,d.value);b.length||a.F.length||a.C.resolve();return a.C}function Yf(a,b,c){if(c.length){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(Cc(c,e.value.initData)&&!Sc("Tizen 2"))return;dg(a,b,c,a.g.sessionType)}}function eg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}
197
197
  function fg(a){a=a.i.keys();a=gb(a,function(b){return b.sessionId});return Array.from(a)}q.Fc=function(){var a=Infinity,b=this.i.keys();b=t(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.md=function(){return Gf(this.ua)};
198
- function Rf(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,v,y;return J(function(x){switch(x.g){case 1:d=new Map;if(c.length){e=gg(a,c,d);x.D(2);break}return z(x,hg(a,b),3);case 3:e=x.h;case 2:f=e;if(!f)throw new P(2,6,6001);zf(a.j);F(x,4);a.I.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=t(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.I.add(n.contentType.toLowerCase());p=t(k);for(m=p.next();!m.done;m=p.next())r=m.value,a.I.add(r.contentType.toLowerCase());if(c.length){var w=
198
+ function Rf(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,v,y;return I(function(x){switch(x.g){case 1:d=new Map;if(c.length){e=gg(a,c,d);x.D(2);break}return u(x,hg(a,b),3);case 3:e=x.h;case 2:f=e;if(!f)throw new O(2,6,6001);zf(a.j);A(x,4);a.I.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=t(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.I.add(n.contentType.toLowerCase());p=t(k);for(m=p.next();!m.done;m=p.next())r=m.value,a.I.add(r.contentType.toLowerCase());if(c.length){var w=
199
199
  f.keySystem;var D=d.get(f.keySystem);var B=[],C=[],G=[],E=[],H=new Set;ig(D,B,G,C,E,H);var L=a.N?"persistent-license":"temporary";w={keySystem:w,licenseServerUri:B[0],distinctiveIdentifierRequired:D[0].distinctiveIdentifierRequired,persistentStateRequired:D[0].persistentStateRequired,sessionType:D[0].sessionType||L,audioRobustness:D[0].audioRobustness||"",videoRobustness:D[0].videoRobustness||"",serverCertificate:G[0],serverCertificateUri:C[0],initData:E,keyIds:H};D=t(D);for(B=D.next();!B.done;B=
200
200
  D.next())B=B.value,B.distinctiveIdentifierRequired&&(w.distinctiveIdentifierRequired=B.distinctiveIdentifierRequired),B.persistentStateRequired&&(w.persistentStateRequired=B.persistentStateRequired);D=w}else D=f.keySystem,w=b.get(f.keySystem),B=[],C=[],G=[],E=[],H=new Set,ig(w.drmInfos,B,G,C,E,H),D={keySystem:D,licenseServerUri:B[0],distinctiveIdentifierRequired:"required"==w.distinctiveIdentifier,persistentStateRequired:"required"==w.persistentState,sessionType:w.sessionTypes[0]||"temporary",audioRobustness:(w.audioCapabilities?
201
- w.audioCapabilities[0].robustness:"")||"",videoRobustness:(w.videoCapabilities?w.videoCapabilities[0].robustness:"")||"",serverCertificate:G[0],serverCertificateUri:C[0],initData:E,keyIds:H};a.g=D;if(!a.g.licenseServerUri)throw new P(2,6,6012,a.g.keySystem);return z(x,f.createMediaKeys(),6);case 6:return v=x.h,zf(a.j),a.B=v,a.$=!0,z(x,ag(a),7);case 7:zf(a.j);va(x,0);break;case 4:y=I(x);zf(a.j,y);a.g=null;a.I.clear();if(y instanceof P)throw y;throw new P(2,6,6002,y.message);}})}
202
- function gg(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){var f=t(Uf(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 P(2,6,6E3);d={};a=t(a.h.preferredKeySystems);for(e=a.next();!e.done;d={Rd:d.Rd},e=a.next())for(d.Rd=e.value,f=t(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==
201
+ w.audioCapabilities[0].robustness:"")||"",videoRobustness:(w.videoCapabilities?w.videoCapabilities[0].robustness:"")||"",serverCertificate:G[0],serverCertificateUri:C[0],initData:E,keyIds:H};a.g=D;if(!a.g.licenseServerUri)throw new O(2,6,6012,a.g.keySystem);return u(x,f.createMediaKeys(),6);case 6:return v=x.h,zf(a.j),a.B=v,a.$=!0,u(x,ag(a),7);case 7:zf(a.j);va(x,0);break;case 4:y=F(x);zf(a.j,y);a.g=null;a.I.clear();if(y instanceof O)throw y;throw new O(2,6,6002,y.message);}})}
202
+ function gg(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){var f=t(Uf(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 O(2,6,6E3);d={};a=t(a.h.preferredKeySystems);for(e=a.next();!e.done;d={Rd:d.Rd},e=a.next())for(d.Rd=e.value,f=t(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==
203
203
  l.Rd}}(d)))return e.keySystemAccess;a=t([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=t(b),e=f.next();!e.done;e=f.next()){var g=t(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=t(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
204
- function hg(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,v,y,x;return J(function(w){switch(w.g){case 1:if(1==b.size&&b.has(""))throw new P(2,6,6E3);d=t(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=t(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){w.D(4);break}k=h.value;if(!b.has(k)){w.D(3);break}l=b.get(k);F(w,6);return z(w,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
205
- w.h,w["return"](c);case 6:I(w);case 7:zf(a.j);case 3:h=g.next();w.D(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){w.D(11);break}p=n.value;r=t(b.keys());h=r.next();case 12:if(h.done){n=m.next();w.D(9);break}v=h.value;y=b.get(v);x=y.drmInfos.some(function(D){return!!D.licenseServerUri});if(x!=p){w.D(13);break}F(w,15);return z(w,navigator.requestMediaKeySystemAccess(v,[y]),17);case 17:return c=w.h,w["return"](c);case 15:I(w);case 16:zf(a.j);case 13:h=r.next();w.D(12);break;case 11:return w["return"](c)}})}
206
- function Sf(a){a=Ff(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=nd(f),h=nd(e);g={kty:"oct",kid:ld(g,!1),k:ld(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:Fc(hd(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
204
+ function hg(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,v,y,x;return I(function(w){switch(w.g){case 1:if(1==b.size&&b.has(""))throw new O(2,6,6E3);d=t(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=t(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){w.D(4);break}k=h.value;if(!b.has(k)){w.D(3);break}l=b.get(k);A(w,6);return u(w,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
205
+ w.h,w["return"](c);case 6:F(w);case 7:zf(a.j);case 3:h=g.next();w.D(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){w.D(11);break}p=n.value;r=t(b.keys());h=r.next();case 12:if(h.done){n=m.next();w.D(9);break}v=h.value;y=b.get(v);x=y.drmInfos.some(function(D){return!!D.licenseServerUri});if(x!=p){w.D(13);break}A(w,15);return u(w,navigator.requestMediaKeySystemAccess(v,[y]),17);case 17:return c=w.h,w["return"](c);case 15:F(w);case 16:zf(a.j);case 13:h=r.next();w.D(12);break;case 11:return w["return"](c)}})}
206
+ function Sf(a){a=Ff(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=nd(f),h=nd(e);g={kty:"oct",kid:ld(g,!1),k:ld(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:Ec(hd(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
207
207
  serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}
208
- function cg(a,b){var c,d,e,f,g;return J(function(h){switch(h.g){case 1:try{c=a.B.createSession("persistent-license")}catch(k){return d=new P(2,6,6005,k.message),a.m(d),h["return"](Promise.reject(d))}a.A.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(k):Zf(a,k)});a.A.o(c,"keystatuseschange",function(k){return jg(a,k)});e={initData:null,initDataType:null,loaded:!1,qe:Infinity,cb:null,type:"persistent-license"};a.i.set(c,e);F(h,2);return z(h,c.load(b),4);
209
- case 4:f=h.h;zf(a.j);if(!f)return a.i["delete"](c),a.m(new P(2,6,6013)),h["return"](Promise.resolve());e.loaded=!0;mg(a)&&a.C.resolve();return h["return"](c);case 2:g=I(h),zf(a.j,g),a.i["delete"](c),a.m(new P(2,6,6005,g.message));case 3:return h["return"](Promise.resolve())}})}
210
- function dg(a,b,c,d){try{var e=a.B.createSession(d)}catch(f){a.m(new P(2,6,6005,f.message));return}a.A.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(f):Zf(a,f)});a.A.o(e,"keystatuseschange",function(f){return jg(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,qe:Infinity,cb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof P||(b=new P(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&ld(c);e.generateRequest(b,c)["catch"](function(f){if(!a.j.g){a.i["delete"](e);
211
- 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.m(new P(2,6,6006,f.message,f,h))}})}
212
- function Zf(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,v,y;J(function(x){switch(x.g){case 1:return c=b.target,a.h.logLicenseExchange&&ld(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=rf([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),
213
- eg(a.g.keySystem)&&ng(g),h=Date.now(),F(x,2),l=a.G.Ob.request(2,g),z(x,l.promise,4);case 4:k=x.h;va(x,3);break;case 2:return m=I(x),n=new P(2,6,6007,m),a.m(n),d&&d.cb&&d.cb.reject(n),x["return"]();case 3:if(a.j.g)return x["return"]();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&ld(k.data);F(x,5);return z(x,c.update(k.data),7);case 7:va(x,6);break;case 5:return p=I(x),r=new P(2,6,6008,p.message),a.m(r),d&&d.cb&&d.cb.reject(r),x["return"]();case 6:if(a.j.g)return x["return"]();v=new O("drmsessionupdate");
214
- a.G.onEvent(v);d&&(d.cb&&d.cb.resolve(),y=new Q(function(){d.loaded=!0;mg(a)&&a.C.resolve()}),y.T(og));A(x)}})}
208
+ function cg(a,b){var c,d,e,f,g;return I(function(h){switch(h.g){case 1:try{c=a.B.createSession("persistent-license")}catch(k){return d=new O(2,6,6005,k.message),a.m(d),h["return"](Promise.reject(d))}a.A.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(k):Zf(a,k)});a.A.o(c,"keystatuseschange",function(k){return jg(a,k)});e={initData:null,initDataType:null,loaded:!1,qe:Infinity,cb:null,type:"persistent-license"};a.i.set(c,e);A(h,2);return u(h,c.load(b),4);
209
+ case 4:f=h.h;zf(a.j);if(!f)return a.i["delete"](c),a.m(new O(2,6,6013)),h["return"](Promise.resolve());e.loaded=!0;mg(a)&&a.C.resolve();return h["return"](c);case 2:g=F(h),zf(a.j,g),a.i["delete"](c),a.m(new O(2,6,6005,g.message));case 3:return h["return"](Promise.resolve())}})}
210
+ function dg(a,b,c,d){try{var e=a.B.createSession(d)}catch(f){a.m(new O(2,6,6005,f.message));return}a.A.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(f):Zf(a,f)});a.A.o(e,"keystatuseschange",function(f){return jg(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,qe:Infinity,cb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof O||(b=new O(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&ld(c);e.generateRequest(b,c)["catch"](function(f){if(!a.j.g){a.i["delete"](e);
211
+ 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.m(new O(2,6,6006,f.message,f,h))}})}
212
+ function Zf(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,v,y;I(function(x){switch(x.g){case 1:return c=b.target,a.h.logLicenseExchange&&ld(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=rf([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),
213
+ eg(a.g.keySystem)&&ng(g),h=Date.now(),A(x,2),l=a.G.Ob.request(2,g),u(x,l.promise,4);case 4:k=x.h;va(x,3);break;case 2:return m=F(x),n=new O(2,6,6007,m),a.m(n),d&&d.cb&&d.cb.reject(n),x["return"]();case 3:if(a.j.g)return x["return"]();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&ld(k.data);A(x,5);return u(x,c.update(k.data),7);case 7:va(x,6);break;case 5:return p=F(x),r=new O(2,6,6008,p.message),a.m(r),d&&d.cb&&d.cb.reject(r),x["return"]();case 6:if(a.j.g)return x["return"]();v=new M("drmsessionupdate");
214
+ a.G.onEvent(v);d&&(d.cb&&d.cb.resolve(),y=new P(function(){d.loaded=!0;mg(a)&&a.C.resolve()}),y.T(og));z(x)}})}
215
215
  function ng(a){var b=ed(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=(new DOMParser).parseFromString(b,"application/xml");for(var c=t(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=md(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
216
- function jg(a,b){var c=b.target,d=a.i.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if("string"==typeof h){var k=h;h=g;g=k}if(eg(a.g.keySystem)&&16==h.byteLength&&(navigator.userAgent.match(/Edge?\//)||Zc())){k=Ic(h);var l=k.getUint32(0,!0),m=k.getUint16(4,!0),n=k.getUint16(6,!0);k.setUint32(0,l,!1);k.setUint16(4,m,!1);k.setUint16(6,n,!1)}"status-pending"!=g&&(d.loaded=!0);"expired"==g&&(e=!0);k=od(h);a.ea.set(k,g)});var f=c.expiration-Date.now();(0>f||e&&1E3>f)&&d&&!d.cb&&(a.i["delete"](c),c.close()["catch"](function(){}));
217
- mg(a)&&(a.C.resolve(),a.S.T(pg))}function Jf(a){var b=a.ea,c=a.ua;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.m(new P(2,6,6014));a.G.xd(Gf(c))}
218
- function qg(){var a,b,c,d,e,f,g,h;return J(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 com.adobe.primetime".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,
219
- p;return J(function(r){switch(r.g){case 1:F(r,2);if("org.w3.clearkey"===l&&$c())throw Error("Unsupported keySystem");return z(r,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=r.h,p=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Tc("Tizen 3")&&(p=!1),f.set(l,{persistentState:p}),z(r,m.createMediaKeys(),5);case 5:va(r,0);break;case 2:I(r),f.set(l,null),A(r)}})},h=a.map(function(l){return g(l)}),z(k,Promise.all(h),2)):k["return"](Gf(f))})}
220
- function rg(a){var b;return J(function(c){if(1==c.g)return b=new Promise(function(d,e){(new Q(e)).T(sg)}),F(c,2),z(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return va(c,0);I(c);A(c)})}
221
- function Mf(a){var b;return J(function(c){b=Array.from(a.i.entries());a.i.clear();return z(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return J(function(g){if(1==g.g)return F(g,2),a.ba||a.F.includes(e.sessionId)||"persistent-license"!==f.type?z(g,rg(e),5):z(g,e.remove(),5);if(2!=g.g)return va(g,0);I(g);A(g)})})),0)})}
222
- function tg(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=t(a),e=d.next();!e.done;e=d.next()){e=e.value;for(var f={},g=t(b),h=g.next();!h.done;f={Ua:f.Ua},h=g.next())if(h=h.value,e.keySystem==h.keySystem){f.Ua=[];f.Ua=f.Ua.concat(e.initData||[]);f.Ua=f.Ua.concat(h.initData||[]);f.Ua=f.Ua.filter(function(k){return function(l,m){return void 0===l.keyId||m===k.Ua.findIndex(function(n){return n.keyId===l.keyId})}}(f));g=e.keyIds&&h.keyIds?new Set([].concat(ja(e.keyIds),ja(h.keyIds))):
216
+ function jg(a,b){var c=b.target,d=a.i.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if("string"==typeof h){var k=h;h=g;g=k}if(eg(a.g.keySystem)&&16==h.byteLength&&(navigator.userAgent.match(/Edge?\//)||Zc())){k=Hc(h);var l=k.getUint32(0,!0),m=k.getUint16(4,!0),n=k.getUint16(6,!0);k.setUint32(0,l,!1);k.setUint16(4,m,!1);k.setUint16(6,n,!1)}"status-pending"!=g&&(d.loaded=!0);"expired"==g&&(e=!0);k=od(h);a.ea.set(k,g)});var f=c.expiration-Date.now();(0>f||e&&1E3>f)&&d&&!d.cb&&(a.i["delete"](c),c.close()["catch"](function(){}));
217
+ mg(a)&&(a.C.resolve(),a.S.T(pg))}function Jf(a){var b=a.ea,c=a.ua;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.m(new O(2,6,6014));a.G.xd(Gf(c))}
218
+ function qg(){var a,b,c,d,e,f,g,h;return I(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 com.adobe.primetime".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,
219
+ p;return I(function(r){switch(r.g){case 1:A(r,2);if("org.w3.clearkey"===l&&$c())throw Error("Unsupported keySystem");return u(r,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=r.h,p=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Sc("Tizen 3")&&(p=!1),f.set(l,{persistentState:p}),u(r,m.createMediaKeys(),5);case 5:va(r,0);break;case 2:F(r),f.set(l,null),z(r)}})},h=a.map(function(l){return g(l)}),u(k,Promise.all(h),2)):k["return"](Gf(f))})}
220
+ function rg(a){var b;return I(function(c){if(1==c.g)return b=new Promise(function(d,e){(new P(e)).T(sg)}),A(c,2),u(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return va(c,0);F(c);z(c)})}
221
+ function Mf(a){var b;return I(function(c){b=Array.from(a.i.entries());a.i.clear();return u(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return I(function(g){if(1==g.g)return A(g,2),a.ba||a.F.includes(e.sessionId)||"persistent-license"!==f.type?u(g,rg(e),5):u(g,e.remove(),5);if(2!=g.g)return va(g,0);F(g);z(g)})})),0)})}
222
+ function tg(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=t(a),e=d.next();!e.done;e=d.next()){e=e.value;for(var f={},g=t(b),h=g.next();!h.done;f={Ua:f.Ua},h=g.next())if(h=h.value,e.keySystem==h.keySystem){f.Ua=[];f.Ua=f.Ua.concat(e.initData||[]);f.Ua=f.Ua.concat(h.initData||[]);f.Ua=f.Ua.filter(function(k){return function(l,m){return void 0===l.keyId||m===k.Ua.findIndex(function(n){return n.keyId===l.keyId})}}(f));g=e.keyIds&&h.keyIds?new Set([].concat(ia(e.keyIds),ia(h.keyIds))):
223
223
  e.keyIds||h.keyIds;c.push({keySystem:e.keySystem,licenseServerUri:e.licenseServerUri||h.licenseServerUri,distinctiveIdentifierRequired:e.distinctiveIdentifierRequired||h.distinctiveIdentifierRequired,persistentStateRequired:e.persistentStateRequired||h.persistentStateRequired,videoRobustness:e.videoRobustness||h.videoRobustness,audioRobustness:e.audioRobustness||h.audioRobustness,serverCertificate:e.serverCertificate||h.serverCertificate,serverCertificateUri:e.serverCertificateUri||h.serverCertificateUri,
224
224
  initData:f.Ua,keyIds:g});break}}return c}function Uf(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function Kf(a){a.i.forEach(function(b,c){var d=b.qe,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.qe=e)})}function mg(a){a=a.i.values();return hb(a,function(b){return b.loaded})}
225
225
  function Tf(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});for(var d=t(a),e=d.next();!e.done;e=d.next())e=e.value,e.video&&(e.video.drmInfos=c),e.audio&&(e.audio.drmInfos=c)}
226
- function ig(a,b,c,d,e,f){var g={};a=t(a);for(var h=a.next();!h.done;g={Ha:g.Ha},h=a.next()){g.Ha=h.value;b.includes(g.Ha.licenseServerUri)||b.push(g.Ha.licenseServerUri);d.includes(g.Ha.serverCertificateUri)||d.push(g.Ha.serverCertificateUri);g.Ha.serverCertificate&&(c.some(function(m){return function(n){return Dc(n,m.Ha.serverCertificate)}}(g))||c.push(g.Ha.serverCertificate));if(g.Ha.initData){h={};for(var k=t(g.Ha.initData),l=k.next();!l.done;h={Zc:h.Zc},l=k.next())h.Zc=l.value,e.some(function(m){return function(n){var p=
227
- m.Zc;return n.keyId&&n.keyId==p.keyId?!0:n.initDataType==p.initDataType&&Dc(n.initData,p.initData)}}(h))||e.push(h.Zc)}if(g.Ha.keyIds)for(h=t(g.Ha.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
226
+ function ig(a,b,c,d,e,f){var g={};a=t(a);for(var h=a.next();!h.done;g={Ga:g.Ga},h=a.next()){g.Ga=h.value;b.includes(g.Ga.licenseServerUri)||b.push(g.Ga.licenseServerUri);d.includes(g.Ga.serverCertificateUri)||d.push(g.Ga.serverCertificateUri);g.Ga.serverCertificate&&(c.some(function(m){return function(n){return Cc(n,m.Ga.serverCertificate)}}(g))||c.push(g.Ga.serverCertificate));if(g.Ga.initData){h={};for(var k=t(g.Ga.initData),l=k.next();!l.done;h={Zc:h.Zc},l=k.next())h.Zc=l.value,e.some(function(m){return function(n){var p=
227
+ m.Zc;return n.keyId&&n.keyId==p.keyId?!0:n.initDataType==p.initDataType&&Cc(n.initData,p.initData)}}(h))||e.push(h.Zc)}if(g.Ga.keyIds)for(h=t(g.Ga.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
228
228
  function Vf(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=
229
- 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 sg=1,og=5,pg=.5,ug=new Nc(function(){return Gc(new Uint8Array([0]))});function vg(){}function wg(a,b,c,d){var e,f,g,h;return J(function(k){if(1==k.g){if(d&&(e=xg[d.toLowerCase()]))return k["return"](e);if(f=yg(a))if(g=zg[f])return k["return"](g);return d?k.D(2):z(k,Ag(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=xg[d]))return k["return"](h);throw new P(2,4,4E3,a);})}
230
- function Ag(a,b,c){var d,e,f;return J(function(g){if(1==g.g)return d=rf([a],c),d.method="HEAD",z(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g["return"](f?f.toLowerCase().split(";").shift():"")})}function yg(a){a=(new lb(a)).Ka.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}M("shaka.media.ManifestParser",vg);vg.unregisterParserByMime=function(a){delete xg[a]};vg.registerParserByMime=function(a,b){xg[a]=b};
231
- vg.registerParserByExtension=function(a,b){zg[a]=b};var xg={},zg={};function Bg(a,b){this.W=Ic(a);this.h=b==Cg;this.g=0}q=Bg.prototype;q.Da=function(){return this.g<this.W.byteLength};q.oa=function(){return this.g};q.sg=function(){return this.W.byteLength};q.qb=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw Dg();}};q.ue=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw Dg();}};q.R=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw Dg();}};
232
- q.Df=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw Dg();}};q.nc=function(){try{if(this.h){var a=this.W.getUint32(this.g,!0);var b=this.W.getUint32(this.g+4,!0)}else b=this.W.getUint32(this.g,!1),a=this.W.getUint32(this.g+4,!1)}catch(c){throw Dg();}if(2097151<b)throw new P(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Cb=function(a){if(this.g+a>this.W.byteLength)throw Dg();var b=Fc(this.W,this.g,a);this.g+=a;return b};
233
- q.skip=function(a){if(this.g+a>this.W.byteLength)throw Dg();this.g+=a};q.jh=function(a){if(this.g<a)throw Dg();this.g-=a};q.seek=function(a){if(0>a||a>this.W.byteLength)throw Dg();this.g=a};q.Rc=function(){for(var a=this.g;this.Da()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Fc(this.W,a,this.g-a);this.g+=1;return dd(a)};function Dg(){return new P(2,3,3E3)}M("shaka.util.DataViewReader",Bg);Bg.prototype.readTerminatedString=Bg.prototype.Rc;Bg.prototype.seek=Bg.prototype.seek;Bg.prototype.rewind=Bg.prototype.jh;
234
- Bg.prototype.skip=Bg.prototype.skip;Bg.prototype.readBytes=Bg.prototype.Cb;Bg.prototype.readUint64=Bg.prototype.nc;Bg.prototype.readInt32=Bg.prototype.Df;Bg.prototype.readUint32=Bg.prototype.R;Bg.prototype.readUint16=Bg.prototype.ue;Bg.prototype.readUint8=Bg.prototype.qb;Bg.prototype.getLength=Bg.prototype.sg;Bg.prototype.getPosition=Bg.prototype.oa;Bg.prototype.hasMoreData=Bg.prototype.Da;var Cg=1;Bg.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Cg};function Eg(){this.i=[];this.h=[];this.g=!1}q=Eg.prototype;q.box=function(a,b){var c=Fg(a);this.i[c]=Gg;this.h[c]=b;return this};q.Y=function(a,b){var c=Fg(a);this.i[c]=Hg;this.h[c]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Bg(a,0);for(this.g=!1;a.Da()&&!this.g;)this.zd(0,a,b,c)};
229
+ 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 sg=1,og=5,pg=.5,ug=new Mc(function(){return Fc(new Uint8Array([0]))});function vg(){}function wg(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g){if(d&&(e=xg[d.toLowerCase()]))return k["return"](e);if(f=yg(a))if(g=zg[f])return k["return"](g);return d?k.D(2):u(k,Ag(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=xg[d]))return k["return"](h);throw new O(2,4,4E3,a);})}
230
+ function Ag(a,b,c){var d,e,f;return I(function(g){if(1==g.g)return d=rf([a],c),d.method="HEAD",u(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g["return"](f?f.toLowerCase().split(";").shift():"")})}function yg(a){a=(new lb(a)).Ja.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}J("shaka.media.ManifestParser",vg);vg.unregisterParserByMime=function(a){delete xg[a]};vg.registerParserByMime=function(a,b){xg[a]=b};
231
+ vg.registerParserByExtension=function(a,b){zg[a]=b};var xg={},zg={};function Bg(a,b){this.W=Hc(a);this.h=b==Cg;this.g=0}q=Bg.prototype;q.Ca=function(){return this.g<this.W.byteLength};q.oa=function(){return this.g};q.sg=function(){return this.W.byteLength};q.qb=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw Dg();}};q.ue=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw Dg();}};q.R=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw Dg();}};
232
+ q.Df=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw Dg();}};q.nc=function(){try{if(this.h){var a=this.W.getUint32(this.g,!0);var b=this.W.getUint32(this.g+4,!0)}else b=this.W.getUint32(this.g,!1),a=this.W.getUint32(this.g+4,!1)}catch(c){throw Dg();}if(2097151<b)throw new O(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Cb=function(a){if(this.g+a>this.W.byteLength)throw Dg();var b=Ec(this.W,this.g,a);this.g+=a;return b};
233
+ q.skip=function(a){if(this.g+a>this.W.byteLength)throw Dg();this.g+=a};q.jh=function(a){if(this.g<a)throw Dg();this.g-=a};q.seek=function(a){if(0>a||a>this.W.byteLength)throw Dg();this.g=a};q.Rc=function(){for(var a=this.g;this.Ca()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Ec(this.W,a,this.g-a);this.g+=1;return dd(a)};function Dg(){return new O(2,3,3E3)}J("shaka.util.DataViewReader",Bg);Bg.prototype.readTerminatedString=Bg.prototype.Rc;Bg.prototype.seek=Bg.prototype.seek;Bg.prototype.rewind=Bg.prototype.jh;
234
+ Bg.prototype.skip=Bg.prototype.skip;Bg.prototype.readBytes=Bg.prototype.Cb;Bg.prototype.readUint64=Bg.prototype.nc;Bg.prototype.readInt32=Bg.prototype.Df;Bg.prototype.readUint32=Bg.prototype.R;Bg.prototype.readUint16=Bg.prototype.ue;Bg.prototype.readUint8=Bg.prototype.qb;Bg.prototype.getLength=Bg.prototype.sg;Bg.prototype.getPosition=Bg.prototype.oa;Bg.prototype.hasMoreData=Bg.prototype.Ca;var Cg=1;Bg.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Cg};function Eg(){this.i=[];this.h=[];this.g=!1}q=Eg.prototype;q.box=function(a,b){var c=Fg(a);this.i[c]=Gg;this.h[c]=b;return this};q.Y=function(a,b){var c=Fg(a);this.i[c]=Hg;this.h[c]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Bg(a,0);for(this.g=!1;a.Ca()&&!this.g;)this.zd(0,a,b,c)};
235
235
  q.zd=function(a,b,c,d){var e=b.oa();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.R(),g=b.R(),h=!1;switch(f){case 0:f=b.W.byteLength-e;break;case 1:if(d&&b.oa()+8>b.W.byteLength){this.g=!0;return}f=b.nc();h=!0}var k=this.h[g];if(k){var l=null,m=null;if(this.i[g]==Hg){if(d&&b.oa()+4>b.W.byteLength){this.g=!0;return}m=b.R();l=m>>>24;m&=16777215}g=e+f;c&&g>b.W.byteLength&&(g=b.W.byteLength);d&&g>b.W.byteLength?this.g=!0:(d=g-b.oa(),b=0<d?b.Cb(d):new Uint8Array(0),b=new Bg(b,0),k({parser:this,partialOkay:c||
236
- !1,version:l,flags:m,reader:b,size:f,start:e+a,has64BitSize:h}))}else b.skip(Math.min(e+f-b.oa(),b.W.byteLength-b.oa()))}};function Ig(a){for(var b=Jg(a);a.reader.Da()&&!a.parser.g;)a.parser.zd(a.start+b,a.reader,a.partialOkay)}function Kg(a){for(var b=Jg(a),c=a.reader.R(),d=0;d<c&&(a.parser.zd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Lg(a){return function(b){a(b.reader.Cb(b.reader.W.byteLength-b.reader.oa()))}}
237
- function Fg(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Mg(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Jg(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}M("shaka.util.Mp4Parser",Eg);Eg.headerSize=Jg;Eg.typeToString=Mg;Eg.allData=Lg;Eg.sampleDescription=Kg;Eg.children=Ig;Eg.prototype.parseNext=Eg.prototype.zd;Eg.prototype.parse=Eg.prototype.parse;Eg.prototype.stop=Eg.prototype.stop;
238
- Eg.prototype.fullBox=Eg.prototype.Y;Eg.prototype.box=Eg.prototype.box;var Gg=0,Hg=1;function Ng(a){function b(){d=!0}function c(l){f.push(l);Ig(l)}a=Fc(a);var d=!1,e,f=[],g=[];(new Eg).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).Y("stsd",function(l){e=l;f.push(l);Kg(l)}).Y("encv",b).Y("enca",b).Y("avc1",function(l){g.push({box:l,Pc:1701733238})}).Y("avc3",function(l){g.push({box:l,Pc:1701733238})}).Y("ac-3",function(l){g.push({box:l,Pc:1701733217})}).Y("ec-3",function(l){g.push({box:l,Pc:1701733217})}).Y("mp4a",function(l){g.push({box:l,Pc:1701733217})}).parse(a);
239
- if(d)return a;if(0==g.length||!e)throw ab(od(a)),new P(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,a=Og(a,e,k.box,f,k.Pc);return a}
240
- function Og(a,b,c,d,e){var f=Pg.value(),g=a.subarray(c.start,c.start+c.size),h=Ic(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Ic(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Qg(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Sc()?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=t(d);for(d=a.next();!d.done;d=a.next())d=d.value,Qg(e,d.start,d.size+k.byteLength);k=Ic(e,b.start);b=Jg(b);a=k.getUint32(b);
241
- k.setUint32(b,a+1);return e}function Qg(a,b,c){a=Ic(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 Pg=new Nc(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 Rg(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(C){return null!=C&&""!=C.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(C){return null!=C&&""!=C.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=Sg(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],r=-1,v=-1,y=0;y<p.length;y++)if(null!=p[y]&&""!==p[y].g.trim()){r=y;break}for(y=p.length-1;0<=y;y--)if(null!=p[y]&&""!==p[y].g.trim()){v=y;break}if(-1===
236
+ !1,version:l,flags:m,reader:b,size:f,start:e+a,has64BitSize:h}))}else b.skip(Math.min(e+f-b.oa(),b.W.byteLength-b.oa()))}};function Ig(a){for(var b=Jg(a);a.reader.Ca()&&!a.parser.g;)a.parser.zd(a.start+b,a.reader,a.partialOkay)}function Kg(a){for(var b=Jg(a),c=a.reader.R(),d=0;d<c&&(a.parser.zd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Lg(a){return function(b){a(b.reader.Cb(b.reader.W.byteLength-b.reader.oa()))}}
237
+ function Fg(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Mg(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Jg(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}J("shaka.util.Mp4Parser",Eg);Eg.headerSize=Jg;Eg.typeToString=Mg;Eg.allData=Lg;Eg.sampleDescription=Kg;Eg.children=Ig;Eg.prototype.parseNext=Eg.prototype.zd;Eg.prototype.parse=Eg.prototype.parse;Eg.prototype.stop=Eg.prototype.stop;
238
+ Eg.prototype.fullBox=Eg.prototype.Y;Eg.prototype.box=Eg.prototype.box;var Gg=0,Hg=1;function Ng(a){function b(){d=!0}function c(l){f.push(l);Ig(l)}a=Ec(a);var d=!1,e,f=[],g=[];(new Eg).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).Y("stsd",function(l){e=l;f.push(l);Kg(l)}).Y("encv",b).Y("enca",b).Y("avc1",function(l){g.push({box:l,Pc:1701733238})}).Y("avc3",function(l){g.push({box:l,Pc:1701733238})}).Y("ac-3",function(l){g.push({box:l,Pc:1701733217})}).Y("ec-3",function(l){g.push({box:l,Pc:1701733217})}).Y("mp4a",function(l){g.push({box:l,Pc:1701733217})}).parse(a);
239
+ if(d)return a;if(0==g.length||!e)throw ab(od(a)),new O(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,a=Og(a,e,k.box,f,k.Pc);return a}
240
+ function Og(a,b,c,d,e){var f=Pg.value(),g=a.subarray(c.start,c.start+c.size),h=Hc(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Hc(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Qg(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Rc()?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=t(d);for(d=a.next();!d.done;d=a.next())d=d.value,Qg(e,d.start,d.size+k.byteLength);k=Hc(e,b.start);b=Jg(b);a=k.getUint32(b);
241
+ k.setUint32(b,a+1);return e}function Qg(a,b,c){a=Hc(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 Pg=new Mc(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 Rg(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(C){return null!=C&&""!=C.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(C){return null!=C&&""!=C.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=Sg(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],r=-1,v=-1,y=0;y<p.length;y++)if(null!=p[y]&&""!==p[y].g.trim()){r=y;break}for(y=p.length-1;0<=y;y--)if(null!=p[y]&&""!==p[y].g.trim()){v=y;break}if(-1===
242
242
  r||-1===v)p=Tg(d,e),a.nestedCues.push(p);else{for(;r<=v;r++)if(y=p[r]){var x=y.l,w=y.i,D=y.j,B=y.h;if(x!=h||w!=k||D!=l||B!=m)n.payload&&a.nestedCues.push(n),n=Sg(d,e,x,w,D,B),h=x,k=w,l=D,m=B;n.payload+=y.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=Tg(d,e),a.nestedCues.push(n));n=Sg(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
243
- function Sg(a,b,c,d,e,f){a=new gc(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function Tg(a,b){var c=new gc(a,b,"");c.lineBreak=!0;return c}function Ug(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function Vg(a,b){this.i=[];this.g=1;this.h=0;this.C=a;this.B=b;this.j=this.m=!1;this.l="white";this.A="black";Wg(this)}function Xg(a,b,c){return Rg(new gc(b,c,""),"CC"+(a.C<<1|a.B+1),a.i,b,c)}function Wg(a){Yg(a,0,15);a.g=1}function Zg(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case $g:d=ah.has(c)?ah.get(c):String.fromCharCode(c);break;case bh:d=ch.get(c);break;case dh:a.i[a.g].pop();d=eh.get(c);break;case fh:a.i[a.g].pop(),d=gh.get(c)}d&&a.i[a.g].push(new Ug(d,a.m,a.j,a.A,a.l))}}
243
+ function Sg(a,b,c,d,e,f){a=new hc(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function Tg(a,b){var c=new hc(a,b,"");c.lineBreak=!0;return c}function Ug(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function Vg(a,b){this.i=[];this.g=1;this.h=0;this.C=a;this.B=b;this.j=this.m=!1;this.l="white";this.A="black";Wg(this)}function Xg(a,b,c){return Rg(new hc(b,c,""),"CC"+(a.C<<1|a.B+1),a.i,b,c)}function Wg(a){Yg(a,0,15);a.g=1}function Zg(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case $g:d=ah.has(c)?ah.get(c):String.fromCharCode(c);break;case bh:d=ch.get(c);break;case dh:a.i[a.g].pop();d=eh.get(c);break;case fh:a.i[a.g].pop(),d=gh.get(c)}d&&a.i[a.g].push(new Ug(d,a.m,a.j,a.A,a.l))}}
244
244
  function hh(a,b,c,d){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 Yg(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
245
245
  var $g=0,bh=1,dh=2,fh=3,ah=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"]]),ch=new Map([[48,"\u00ae"],[49,"\u00b0"],[50,"\u00bd"],[51,"\u00bf"],[52,"\u2122"],[53,"\u00a2"],[54,"\u00a3"],[55,"\u266a"],[56,"\u00e0"],[57,"\u2800"],[58,"\u00e8"],[59,"\u00e2"],[60,"\u00ea"],[61,"\u00ee"],[62,"\u00f4"],[63,"\u00fb"]]),eh=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],
246
246
  [35,"\u00da"],[36,"\u00dc"],[37,"\u00fc"],[38,"\u2018"],[39,"\u00a1"],[40,"*"],[41,"'"],[42,"\u2500"],[43,"\u00a9"],[44,"\u2120"],[45,"\u00b7"],[46,"\u201c"],[47,"\u201d"],[48,"\u00c0"],[49,"\u00c2"],[50,"\u00c7"],[51,"\u00c8"],[52,"\u00ca"],[53,"\u00cb"],[54,"\u00eb"],[55,"\u00ce"],[56,"\u00cf"],[57,"\u00ef"],[58,"\u00d4"],[59,"\u00d9"],[60,"\u00f9"],[61,"\u00db"],[62,"\u00ab"],[63,"\u00bb"]]),gh=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
247
247
  [39,"\u00d5"],[40,"\u00f5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\u00c4"],[49,"\u00e4"],[50,"\u00d6"],[51,"\u00f6"],[52,"\u00df"],[53,"\u00a5"],[54,"\u00a4"],[55,"\u2502"],[56,"\u00c5"],[57,"\u00e5"],[58,"\u00d8"],[59,"\u00f8"],[60,"\u250c"],[61,"\u2510"],[62,"\u2514"],[63,"\u2518"]]);function ih(a,b){this.h=jh;this.A=new Vg(a,b);this.i=new Vg(a,b);this.l=new Vg(a,b);this.g=this.i;this.j=0;this.m=null}function kh(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==lh&&a.h!==mh&&(e=Xg(d,a.j,c),c=a.i,c.g=0<c.h?c.h:0,Yg(c,0,15),c=a.l,c.g=0<c.h?c.h:0,Yg(c,0,15),d.g=15);a.h=lh;d.h=b;return e}function nh(a){a.h=oh;a.g=a.l;a.g.h=0}function ph(a){Va("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.A;a.h=mh}
248
248
  var jh=0,oh=1,lh=3,mh=4,qh="black green blue cyan red yellow magenta black".split(" "),rh="white green blue cyan red yellow magenta white_italics".split(" ");function sh(){this.l=!1;this.F=this.H=0;this.G=th;this.i=[];this.g=this.h=this.j=0;this.C=this.A=!1;this.B="white";this.m="black";uh(this)}function uh(a){a.i=[];for(var b=0;15>b;b++)a.i.push(vh())}function vh(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function wh(a,b){xh(a)&&(a.i[a.h][a.g]=new Ug(b,a.C,a.A,a.m,a.B),a.g++)}function xh(a){var b=a.g<a.F&&0<=a.g;return a.h<a.H&&0<=a.h&&b}sh.prototype.isVisible=function(){return this.l};
249
- function yh(a,b,c){var d=new gc(a.j,b,"");d.textAlign=a.G===zh?"left":a.G===Ah?"right":kc;if(c=Rg(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var zh=0,Ah=1,th=2;function Bh(){this.i=[];this.h=null;this.g=0}function Ch(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new Dh(a.h)),a.h=null,a.g=0))}function Dh(a){this.g=0;this.h=a}Dh.prototype.Da=function(){return this.g<this.h.length};Dh.prototype.oa=function(){return this.g};function Eh(a){if(!a.Da())throw new P(2,2,3E3);return a.h[a.g++]}Dh.prototype.skip=function(a){if(this.g+a>this.h.length)throw new P(2,2,3E3);this.g+=a};function Fh(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
249
+ function yh(a,b,c){var d=new hc(a.j,b,"");d.textAlign=a.G===zh?"left":a.G===Ah?"right":lc;if(c=Rg(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var zh=0,Ah=1,th=2;function Bh(){this.i=[];this.h=null;this.g=0}function Ch(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new Dh(a.h)),a.h=null,a.g=0))}function Dh(a){this.g=0;this.h=a}Dh.prototype.Ca=function(){return this.g<this.h.length};Dh.prototype.oa=function(){return this.g};function Eh(a){if(!a.Ca())throw new O(2,2,3E3);return a.h[a.g++]}Dh.prototype.skip=function(a){if(this.g+a>this.h.length)throw new O(2,2,3E3);this.g+=a};function Fh(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
250
250
  function Gh(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=Eh(b).value;b=null;c=t(Hh(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=yh(e,d,a.i)),uh(e);return b}if(137===c)for(b=Eh(b).value,b=t(Hh(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.l=!0;else{if(138===c){c=Eh(b).value;b=null;c=t(Hh(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=yh(e,d,a.i)),e.l=!1;return b}if(139===c){c=Eh(b).value;
251
251
  b=null;c=t(Hh(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=yh(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=Eh(b).value,Ih(a,b,d);if(143===c)return d=Ih(a,255,d),Jh(a),d;if(144===c)b.skip(1),d=Eh(b).value,a.g&&(a.g.A=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=Eh(b).value,c=Eh(b).value,b.skip(1),a.g&&(b=Kh((c&48)>>4,(c&12)>>2,c&3),a.g.B=Kh((d&48)>>4,(d&12)>>2,d&3),a.g.m=b);else if(146===c)d=Eh(b).value,b=Eh(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
252
252
  b.skip(1),d=Eh(b).value,b.skip(1),a.g&&(a.g.G=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new sh;f.j=d;a.h[c]=f}d=Eh(b).value;Eh(b);Eh(b);f=Eh(b).value;var g=Eh(b).value;b=Eh(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.A=!1,b.B="white",b.m="black");b=a.h[c];b.l=0<(d&32);b.H=(f&15)+1;b.F=(g&63)+1;a.g=a.h[c]}}}return null}function Hh(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}
253
253
  function Ih(a,b,c){var d=null;b=t(Hh(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=yh(f,c,a.i));a.h[e]=null}return d}function Jh(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function Kh(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return Lh[a<<2|b<<1|c]}
254
254
  var Mh=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"]]),Lh="black blue green cyan red magenta yellow white".split(" ");function Nh(){this.h=[];this.g=[];this.i=new Bh;this.l=0;this.B=new Map([["CC1",new ih(0,0)],["CC2",new ih(0,1)],["CC3",new ih(1,0)],["CC4",new ih(1,1)]]);this.A=this.m=0;this.j=new Map;Oh(this)}function Oh(a){a.m=0;a.A=0;a=t(a.B.values());for(var b=a.next();!b.done;b=a.next())b=b.value,b.h=2,b.g=b.i,b.m=null,Wg(b.i),Wg(b.l),Wg(b.A)}
255
- function Ph(a){function b(f,g){return f.pts-g.pts||f.order-g.order}var c=[];a.h.sort(b);a.g.sort(b);for(var d=t(a.h),e=d.next();!e.done;e=d.next())(e=Qh(a,e.value))&&c.push(e);d=t(a.g);for(e=d.next();!e.done;e=d.next())Ch(a.i,e.value);d=t(a.i.i);for(e=d.next();!e.done;e=d.next())e=Rh(a,e.value),c.push.apply(c,ja(e));a.i.i=[];a.h=[];a.g=[];return c}
255
+ function Ph(a){function b(f,g){return f.pts-g.pts||f.order-g.order}var c=[];a.h.sort(b);a.g.sort(b);for(var d=t(a.h),e=d.next();!e.done;e=d.next())(e=Qh(a,e.value))&&c.push(e);d=t(a.g);for(e=d.next();!e.done;e=d.next())Ch(a.i,e.value);d=t(a.i.i);for(e=d.next();!e.done;e=d.next())e=Rh(a,e.value),c.push.apply(c,ia(e));a.i.i=[];a.h=[];a.g=[];return c}
256
256
  function Qh(a,b){var c=b.type;if(16===(b.Oa&112)){var d=b.Oa>>3&1;0===c?a.m=d:a.A=d}c=a.B.get("CC"+(c<<1|(c?a.A:a.m)+1));if(255===b.Oa&&255===b.jb||!b.Oa&&!b.jb||!Sh(b.Oa)||!Sh(b.jb))return 45<=++a.l&&Oh(a),null;a.l=0;b.Oa&=127;b.jb&=127;if(!b.Oa&&!b.jb)return null;d=null;if(16===(b.Oa&112))a:{var e=b.Oa;d=b.jb;if(c.m===(e<<8|d))c.m=null;else if(c.m=e<<8|d,16===(e&240)&&64===(d&192)){e=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(e&7)<<1|d>>5&1];var f=(d&30)>>1,g="white",h=!1;7>f?g=rh[f]:7===f&&(h=!0);
257
257
  d=1===(d&1);if(c.h!==mh){f=c.g;if(c.h===lh&&e!==f.g){var k=1+e-f.h;hh(f,k,1+f.g-f.h,f.h);Yg(f,0,k-1);Yg(f,e+1,15-e)}f.g=e;c.g.m=d;c.g.j=h;c.g.l=g;c.g.A="black"}}else if(17===(e&247)&&32===(d&240))c.g.m=!1,c.g.j=!1,c.g.l="white",Zg(c.g,$g,32),g=!1,e=rh[(d&14)>>1],"white_italics"===e&&(e="white",g=!0),c.g.m=1===(d&1),c.g.j=g,c.g.l=e;else if(16===(e&247)&&32===(d&240)||23===(e&247)&&45===(d&255))g="black",0===(e&7)&&(g=qh[(d&14)>>1]),c.g.A=g;else if(17===(e&247)&&48===(d&240))Zg(c.g,bh,d);else if(18===
258
258
  (e&246)&&32===(d&224))Zg(c.g,e&1?fh:dh,d);else if(20===(e&246)&&32===(d&240)){d=b.pts;e=null;switch(b.jb){case 32:nh(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:e=kh(c,2,d);break;case 38:e=kh(c,3,d);break;case 39:e=kh(c,4,d);break;case 40:Zg(c.g,$g,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.j=d;break;case 42:Wg(c.A);ph(c);break;case 43:ph(c);break;case 44:e=c.i;g=null;c.h!==mh&&(g=Xg(e,c.j,d));Yg(e,0,15);e=g;break;case 45:e=c.g;c.h!==lh?e=null:(g=Xg(e,c.j,d),h=e.g-e.h+1,hh(e,h-1,h,e.h),Yg(e,
259
259
  0,h-1),Yg(e,e.g,15-e.g),c.j=d,e=g);break;case 46:Yg(c.l,0,15);break;case 47:e=null,c.h!==mh&&(e=Xg(c.i,c.j,d)),g=c.l,c.l=c.i,c.i=g,nh(c),c.j=d}d=e;break a}d=null}else e=b.jb,Zg(c.g,$g,b.Oa),Zg(c.g,$g,e);return d}
260
- function Rh(a,b){var c=[];try{for(;b.Da();){var d=Eh(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Eh(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new Fh(e));for(var g=a.j.get(e),h=b.oa();b.oa()-h<f;){e=b;var k=Eh(e),l=k.value,m=k.pts;if(16===l){var n=Eh(e);l=l<<16|n.value}if(0<=l&&31>=l){var p=m;if(g.g){var r=g.g;e=null;switch(l){case 8:!xh(r)||0>=r.g&&0>=r.h||(0>=r.g?(r.g=r.F-1,r.h--):r.g--,r.i[r.h][r.g]=null);break;case 13:r.isVisible()&&(e=yh(r,p,g.i));if(r.h+1>=r.H){p=r;for(var v=0,y=1;15>y;y++,
260
+ function Rh(a,b){var c=[];try{for(;b.Ca();){var d=Eh(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Eh(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new Fh(e));for(var g=a.j.get(e),h=b.oa();b.oa()-h<f;){e=b;var k=Eh(e),l=k.value,m=k.pts;if(16===l){var n=Eh(e);l=l<<16|n.value}if(0<=l&&31>=l){var p=m;if(g.g){var r=g.g;e=null;switch(l){case 8:!xh(r)||0>=r.g&&0>=r.h||(0>=r.g?(r.g=r.F-1,r.h--):r.g--,r.i[r.h][r.g]=null);break;case 13:r.isVisible()&&(e=yh(r,p,g.i));if(r.h+1>=r.H){p=r;for(var v=0,y=1;15>y;y++,
261
261
  v++)p.i[v]=p.i[y];for(y=0;1>y;y++,v++)p.i[v]=vh()}else r.h++;r.g=0;break;case 14:r.isVisible()&&(e=yh(r,p,g.i));r.i[r.h]=vh();r.g=0;break;case 12:r.isVisible()&&(e=yh(r,p,g.i)),uh(r),p=r,p.h=0,p.g=0}var x=e}else x=null}else if(128<=l&&159>=l)x=Gh(g,e,l,m);else{if(4096<=l&&4127>=l)p=l&255,8<=p&&15>=p?e.skip(1):16<=p&&23>=p?e.skip(2):24<=p&&31>=p&&e.skip(3);else if(4224<=l&&4255>=l)p=l&255,128<=p&&135>=p?e.skip(4):136<=p&&143>=p&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?wh(g.g,"\u266a"):wh(g.g,
262
- String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&wh(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Mh.has(e)){var w=Mh.get(e);wh(g.g,w)}else wh(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?wh(g.g,"_"):wh(g.g,"[CC]"));x=null}(e=x)&&c.push(e)}}}}catch(D){if(D instanceof P&&3E3===D.code)Va("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw D;}return c}function Sh(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function Th(a,b){var c=null,d=null,e=a.R();b&1&&a.skip(8);b&2&&a.skip(4);b&8&&(c=a.R());b&16&&(d=a.R());return{trackId:e,lf:c,eg:d}}function Uh(a,b){return{$e:1==b?a.nc():a.R()}}function Vh(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.R()}}
262
+ String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&wh(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Mh.has(e)){var w=Mh.get(e);wh(g.g,w)}else wh(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?wh(g.g,"_"):wh(g.g,"[CC]"));x=null}(e=x)&&c.push(e)}}}}catch(D){if(D instanceof O&&3E3===D.code)Va("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw D;}return c}function Sh(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function Th(a,b){var c=null,d=null,e=a.R();b&1&&a.skip(8);b&2&&a.skip(4);b&8&&(c=a.R());b&16&&(d=a.R());return{trackId:e,lf:c,eg:d}}function Uh(a,b){return{$e:1==b?a.nc():a.R()}}function Vh(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.R()}}
263
263
  function Wh(a,b,c){var d=a.R(),e=[];c&1&&a.skip(4);c&4&&a.skip(4);for(var f=0;f<d;f++){var g={ye:null,sampleSize:null,Ed:null};c&256&&(g.ye=a.R());c&512&&(g.sampleSize=a.R());c&1024&&a.skip(4);c&2048&&(g.Ed=0==b?a.R():a.Df());e.push(g)}return{aj:d,Ff:e}};function Xh(){this.i=new Map;this.h=this.g=0}
264
- Xh.prototype.init=function(a){var b=this,c=[],d=[];(new Eg).box("moov",Ig).box("mvex",Ig).Y("trex",function(e){var f=e.reader;f.skip(4);f.skip(4);e=f.R();f=f.R();b.g=e;b.h=f}).box("trak",Ig).Y("tkhd",function(e){var f=e.reader;1==e.version?(f.skip(8),f.skip(8)):(f.skip(4),f.skip(4));e=f.R();c.push(e)}).box("mdia",Ig).Y("mdhd",function(e){e=Vh(e.reader,e.version);d.push(e.timescale)}).parse(a,!0);if(!c.length||!d.length||c.length!=d.length)throw new P(2,2,2010);c.forEach(function(e,f){b.i.set(e,d[f])})};
265
- Xh.prototype.parse=function(a){var b=this,c=[],d=this.g,e=this.h,f=[],g=null,h=9E4;(new Eg).box("moof",Ig).box("traf",Ig).Y("trun",function(k){f=Wh(k.reader,k.version,k.flags).Ff}).Y("tfhd",function(k){k=Th(k.reader,k.flags);d=k.lf||b.g;e=k.eg||b.h;k=k.trackId;b.i.has(k)&&(h=b.i.get(k))}).Y("tfdt",function(k){g=Uh(k.reader,k.version).$e}).box("mdat",function(k){if(null===g)throw new P(2,2,2010);k=k.reader;var l=g,m=h,n=d,p=e,r=f,v=0,y=p;for(r.length&&(y=r[0].sampleSize||p);k.Da();){var x=k.R();if(6==
266
- (k.qb()&31)){var w=0;r.length>v&&(w=r[v].Ed||0);w=(l+w)/m;for(var D=[],B,C=k.Cb(x-1),G=B=0;G<C.length;)2==B&&3==C[G]?(B=0,C=[].concat(ja(C)),C.splice(G,1),C=new Uint8Array(C)):0==C[G]?B++:B=0,G++;B=C;for(G=0;G<B.length;){for(C=0;255==B[G];)C+=255,G++;C+=B[G++];for(var E=0;255==B[G];)E+=255,G++;E+=B[G++];4==C&&D.push(B.subarray(G,G+E));G+=E}D=t(D);for(B=D.next();!B.done;B=D.next())c.push({Yg:B.value,pts:w})}else try{k.skip(x-1)}catch(H){break}y-=x+4;0==y&&(l=r.length>v?l+(r[v].ye||n):l+n,v++,y=r.length>
264
+ Xh.prototype.init=function(a){var b=this,c=[],d=[];(new Eg).box("moov",Ig).box("mvex",Ig).Y("trex",function(e){var f=e.reader;f.skip(4);f.skip(4);e=f.R();f=f.R();b.g=e;b.h=f}).box("trak",Ig).Y("tkhd",function(e){var f=e.reader;1==e.version?(f.skip(8),f.skip(8)):(f.skip(4),f.skip(4));e=f.R();c.push(e)}).box("mdia",Ig).Y("mdhd",function(e){e=Vh(e.reader,e.version);d.push(e.timescale)}).parse(a,!0);if(!c.length||!d.length||c.length!=d.length)throw new O(2,2,2010);c.forEach(function(e,f){b.i.set(e,d[f])})};
265
+ Xh.prototype.parse=function(a){var b=this,c=[],d=this.g,e=this.h,f=[],g=null,h=9E4;(new Eg).box("moof",Ig).box("traf",Ig).Y("trun",function(k){f=Wh(k.reader,k.version,k.flags).Ff}).Y("tfhd",function(k){k=Th(k.reader,k.flags);d=k.lf||b.g;e=k.eg||b.h;k=k.trackId;b.i.has(k)&&(h=b.i.get(k))}).Y("tfdt",function(k){g=Uh(k.reader,k.version).$e}).box("mdat",function(k){if(null===g)throw new O(2,2,2010);k=k.reader;var l=g,m=h,n=d,p=e,r=f,v=0,y=p;for(r.length&&(y=r[0].sampleSize||p);k.Ca();){var x=k.R();if(6==
266
+ (k.qb()&31)){var w=0;r.length>v&&(w=r[v].Ed||0);w=(l+w)/m;for(var D=[],B,C=k.Cb(x-1),G=B=0;G<C.length;)2==B&&3==C[G]?(B=0,C=[].concat(ia(C)),C.splice(G,1),C=new Uint8Array(C)):0==C[G]?B++:B=0,G++;B=C;for(G=0;G<B.length;){for(C=0;255==B[G];)C+=255,G++;C+=B[G++];for(var E=0;255==B[G];)E+=255,G++;E+=B[G++];4==C&&D.push(B.subarray(G,G+E));G+=E}D=t(D);for(B=D.next();!B.done;B=D.next())c.push({Yg:B.value,pts:w})}else try{k.skip(x-1)}catch(H){break}y-=x+4;0==y&&(l=r.length>v?l+(r[v].ye||n):l+n,v++,y=r.length>
267
267
  v?r[v].sampleSize||p:p)}}).parse(a,!1);return c};function Yh(){this.h=new Xh;this.g=new Nh}Yh.prototype.init=function(a){this.h.init(a)};
268
- function Zh(a,b){var c=a.h.parse(b);c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=Fc(e.Yg);if(0<f.length&&(d=a.g,e=e.pts,f=new Bg(f,0),181===f.qb()&&49===f.ue()&&1195456820===f.R()&&3===f.qb())){var g=f.qb();if(0!==(g&64)){g&=31;f.skip(1);for(var h=0;h<g;h++){var k=f.qb(),l=(k&4)>>2,m=f.qb(),n=f.qb();l&&(k&=3,0===k||1===k?d.h.push({pts:e,type:k,Oa:m,jb:n,order:d.h.length}):(d.g.push({pts:e,type:k,value:m,order:d.g.length}),d.g.push({pts:e,type:2,value:n,order:d.g.length})))}}}}return Ph(a.g)}
269
- ;function $h(a,b,c,d){this.Pa=a;this.Ta=b;this.Ca=c;this.le=void 0===d?null:d}$h.prototype.Ic=function(){return this.Ta};$h.prototype.Ec=function(){return this.Ca};function ai(a,b){return a&&b?a.Ic()==b.Ic()&&a.Ec()==b.Ec()&&fc(a.Pa(),b.Pa()):a==b}M("shaka.media.InitSegmentReference",$h);$h.prototype.getEndByte=$h.prototype.Ec;$h.prototype.getStartByte=$h.prototype.Ic;
270
- function bi(a,b,c,d,e,f,g,h,k,l,m,n,p,r,v){l=void 0===l?[]:l;r=void 0===r?ci:r;this.startTime=a;this.j=this.endTime=b;this.A=c;this.Ta=d;this.Ca=e;this.i=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.h=l;this.tilesLayout=void 0===m?"":m;this.m=void 0===n?null:n;this.g=void 0===p?null:p;this.status=r;this.l=void 0===v?null:v}q=bi.prototype;q.Pa=function(){return this.A()};q.getStartTime=function(){return this.startTime};q.qg=function(){return this.endTime};q.Ic=function(){return this.Ta};
271
- q.Ec=function(){return this.Ca};q.Jg=function(){return this.tilesLayout};q.Ig=function(){return this.m};q.ec=function(){return this.status};q.Sg=function(){this.status=di};M("shaka.media.SegmentReference",bi);bi.prototype.markAsUnavailable=bi.prototype.Sg;bi.prototype.getStatus=bi.prototype.ec;bi.prototype.getTileDuration=bi.prototype.Ig;bi.prototype.getTilesLayout=bi.prototype.Jg;bi.prototype.getEndByte=bi.prototype.Ec;bi.prototype.getStartByte=bi.prototype.Ic;bi.prototype.getEndTime=bi.prototype.qg;
268
+ function Zh(a,b){var c=a.h.parse(b);c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=Ec(e.Yg);if(0<f.length&&(d=a.g,e=e.pts,f=new Bg(f,0),181===f.qb()&&49===f.ue()&&1195456820===f.R()&&3===f.qb())){var g=f.qb();if(0!==(g&64)){g&=31;f.skip(1);for(var h=0;h<g;h++){var k=f.qb(),l=(k&4)>>2,m=f.qb(),n=f.qb();l&&(k&=3,0===k||1===k?d.h.push({pts:e,type:k,Oa:m,jb:n,order:d.h.length}):(d.g.push({pts:e,type:k,value:m,order:d.g.length}),d.g.push({pts:e,type:2,value:n,order:d.g.length})))}}}}return Ph(a.g)}
269
+ ;function $h(a,b,c,d){this.Pa=a;this.Ta=b;this.Ba=c;this.le=void 0===d?null:d}$h.prototype.Ic=function(){return this.Ta};$h.prototype.Ec=function(){return this.Ba};function ai(a,b){return a&&b?a.Ic()==b.Ic()&&a.Ec()==b.Ec()&&gc(a.Pa(),b.Pa()):a==b}J("shaka.media.InitSegmentReference",$h);$h.prototype.getEndByte=$h.prototype.Ec;$h.prototype.getStartByte=$h.prototype.Ic;
270
+ function bi(a,b,c,d,e,f,g,h,k,l,m,n,p,r,v){l=void 0===l?[]:l;r=void 0===r?ci:r;this.startTime=a;this.j=this.endTime=b;this.A=c;this.Ta=d;this.Ba=e;this.i=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.h=l;this.tilesLayout=void 0===m?"":m;this.m=void 0===n?null:n;this.g=void 0===p?null:p;this.status=r;this.l=void 0===v?null:v}q=bi.prototype;q.Pa=function(){return this.A()};q.getStartTime=function(){return this.startTime};q.qg=function(){return this.endTime};q.Ic=function(){return this.Ta};
271
+ q.Ec=function(){return this.Ba};q.Jg=function(){return this.tilesLayout};q.Ig=function(){return this.m};q.ec=function(){return this.status};q.Sg=function(){this.status=di};J("shaka.media.SegmentReference",bi);bi.prototype.markAsUnavailable=bi.prototype.Sg;bi.prototype.getStatus=bi.prototype.ec;bi.prototype.getTileDuration=bi.prototype.Ig;bi.prototype.getTilesLayout=bi.prototype.Jg;bi.prototype.getEndByte=bi.prototype.Ec;bi.prototype.getStartByte=bi.prototype.Ic;bi.prototype.getEndTime=bi.prototype.qg;
272
272
  bi.prototype.getStartTime=bi.prototype.getStartTime;bi.prototype.getUris=bi.prototype.Pa;var ci=0,di=1;bi.Status={Dh:ci,Ri:di,ci:2};function ei(a){return!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}function fi(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function gi(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)}
273
- function hi(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;for(var c=0,d=t(ii(a)),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.start;f=f.end;f>b&&(c+=f-Math.max(e,b))}return c}function ji(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=ii(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function ii(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};function ki(a,b,c,d){var e=this;this.j=a;this.m=c;this.h={};this.N={};this.K={};this.g=null;this.H=!1;this.S=d||function(){};this.i={};this.A=new Af;this.C={};this.F=b;this.I=new Mc;this.l=li(this,this.I);this.G=new yf(function(){return mi(e)});this.J="";this.B=!1;this.P=new Mc}function li(a,b){var c=new MediaSource;a.A.Fa(c,"sourceopen",function(){URL.revokeObjectURL(a.J);b.resolve()});a.J=ni(c);a.j.src=a.J;return c}q=ki.prototype;q.destroy=function(){return this.G.destroy()};
274
- function mi(a){var b,c,d,e,f,g,h,k;return J(function(l){if(1==l.g){b=[];for(c in a.i)for(d=a.i[c],e=d[0],a.i[c]=d.slice(0,1),e&&b.push(e.p["catch"](Bb)),f=t(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new P(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.m&&b.push(a.m.destroy());for(k in a.C)b.push(a.C[k].destroy());return z(l,Promise.all(b),2)}a.A&&(a.A.release(),a.A=null);a.j&&(a.j.removeAttribute("src"),a.j.load(),a.j=null);a.l=null;a.g=null;a.m=null;a.h={};a.C={};a.F=null;a.i=
275
- {};A(l)})}
276
- q.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m;return J(function(n){if(1==n.g)return e=Jb,z(n,d.I,2);d.B=c;f={};g=t(a.keys());for(h=g.next();!h.done;f={Ga:f.Ga},h=g.next())f.Ga=h.value,k=a.get(f.Ga),l=wd(k.mimeType,k.codecs),f.Ga==e.ha?oi(d,l,c):(!b&&MediaSource.isTypeSupported(l)||!rd(l,f.Ga)||(d.C[f.Ga]=new qd,l=td(f.Ga,l)),m=d.l.addSourceBuffer(l),d.A.o(m,"error",function(p){return function(){d.i[p.Ga][0].p.reject(new P(2,3,3014,d.j.error?d.j.error.code:0))}}(f)),d.A.o(m,"updateend",
277
- function(p){return function(){return pi(d,p.Ga)}}(f)),d.h[f.Ga]=m,d.N[f.Ga]=l,d.i[f.Ga]=[],d.K[f.Ga]=!!k.drmInfos.length);A(n)})};function oi(a,b,c){a.g||(a.g=new Bd(a.m));var d=a.g;a=a.H;"application/cea-608"!=b&&"application/cea-708"!=b&&(d.j=(0,Dd[b])(),d.j.setSequenceMode?d.j.setSequenceMode(c):Ua('Text parsers should have a "setSequenceMode" method!'),d.C=a)}function qi(a){return a.l?"ended"==a.l.readyState:!0}function ri(a,b){return b==Ib?a.g.g:ei(si(a,b))}
273
+ function hi(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;for(var c=0,d=t(ii(a)),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.start;f=f.end;f>b&&(c+=f-Math.max(e,b))}return c}function ji(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=ii(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function ii(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};function ki(a,b,c,d){var e=this;this.j=a;this.m=c;this.h={};this.N={};this.K={};this.g=null;this.H=!1;this.S=d||function(){};this.i={};this.A=new Af;this.C={};this.F=b;this.I=new Lc;this.l=li(this,this.I);this.G=new yf(function(){return mi(e)});this.J="";this.B=!1;this.P=new Lc}function li(a,b){var c=new MediaSource;a.A.Ea(c,"sourceopen",function(){URL.revokeObjectURL(a.J);b.resolve()});a.J=ni(c);a.j.src=a.J;return c}q=ki.prototype;q.destroy=function(){return this.G.destroy()};
274
+ function mi(a){var b,c,d,e,f,g,h,k;return I(function(l){if(1==l.g){b=[];for(c in a.i)for(d=a.i[c],e=d[0],a.i[c]=d.slice(0,1),e&&b.push(e.p["catch"](Ab)),f=t(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new O(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.m&&b.push(a.m.destroy());for(k in a.C)b.push(a.C[k].destroy());return u(l,Promise.all(b),2)}a.A&&(a.A.release(),a.A=null);a.j&&(a.j.removeAttribute("src"),a.j.load(),a.j=null);a.l=null;a.g=null;a.m=null;a.h={};a.C={};a.F=null;a.i=
275
+ {};z(l)})}
276
+ q.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m;return I(function(n){if(1==n.g)return e=Jb,u(n,d.I,2);d.B=c;f={};g=t(a.keys());for(h=g.next();!h.done;f={Fa:f.Fa},h=g.next())f.Fa=h.value,k=a.get(f.Fa),l=wd(k.mimeType,k.codecs),f.Fa==e.ha?oi(d,l,c):(!b&&MediaSource.isTypeSupported(l)||!rd(l,f.Fa)||(d.C[f.Fa]=new qd,l=td(f.Fa,l)),m=d.l.addSourceBuffer(l),d.A.o(m,"error",function(p){return function(){d.i[p.Fa][0].p.reject(new O(2,3,3014,d.j.error?d.j.error.code:0))}}(f)),d.A.o(m,"updateend",
277
+ function(p){return function(){return pi(d,p.Fa)}}(f)),d.h[f.Fa]=m,d.N[f.Fa]=l,d.i[f.Fa]=[],d.K[f.Fa]=!!k.drmInfos.length);z(n)})};function oi(a,b,c){a.g||(a.g=new Bd(a.m));var d=a.g;a=a.H;"application/cea-608"!=b&&"application/cea-708"!=b&&(d.j=(0,Dd[b])(),d.j.setSequenceMode?d.j.setSequenceMode(c):Ua('Text parsers should have a "setSequenceMode" method!'),d.C=a)}function qi(a){return a.l?"ended"==a.l.readyState:!0}function ri(a,b){return b==Ib?a.g.g:ei(si(a,b))}
278
278
  function ti(a,b){return b==Ib?a.g.h:fi(si(a,b))}function ui(a,b,c){if(b==Ib)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=si(a,b);return hi(a,c)}q.kb=function(){var a={total:ii(this.j.buffered),audio:ii(si(this,"audio")),video:ii(si(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 si(a,b){try{return a.h[b].buffered}catch(c){return null}}
279
- function vi(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,v,y,x,w,D,B,C,G;return J(function(E){switch(E.g){case 1:g=Jb;if(b!=g.ha){E.D(2);break}if(!a.B){E.D(3);break}return z(E,a.P,4);case 4:h=E.h,a.g.B=h;case 3:return z(E,Ed(a.g,c,d?d.startTime:null,d?d.endTime:null),5);case 5:return E["return"]();case 2:if(!a.C[b]){e&&(a.g||oi(a,"text/vtt",a.B),d?(k=Zh(a.F,c),k.length&&(l=a.h[g.Ma].timestampOffset,Md(a.g,k,d.startTime,d.endTime,l))):a.F.init(c));E.D(6);break}return z(E,ud(a.C[b],c),7);case 7:m=E.h,a.g||oi(a,
280
- "text/vtt",a.B),m.metadata&&(n=a.h[b].timestampOffset,a.S(m.metadata,n,d?d.endTime:null)),m.captions&&m.captions.length&&(p=a.h[g.Ma].timestampOffset,r=Kd(m.captions),Md(a.g,r,d?d.startTime:null,d?d.endTime:null,p)),c=m.data;case 6:c=wi(a,c,d?d.startTime:null,b);v=a.h[b];y=xi;if(!a.B||v.mode==y||!d){E.D(8);break}x=b==g.Ma||!(g.Ma in a.h);if(!x){E.D(9);break}w=[v.appendWindowStart,v.appendWindowEnd];v.appendWindowStart=0;v.appendWindowEnd=Infinity;D=v.timestampOffset;v.timestampOffset=0;return z(E,
281
- yi(a,b,function(){a.h[b].appendBuffer(c)}),10);case 10:return v.timestampOffset=D,v.appendWindowStart=w[0],v.appendWindowEnd=w[1],B=ei(si(a,b)),C=(d.startTime||0)-(B||0),a.P.resolve(C),z(E,yi(a,b,function(){return zi(a,b,0,a.l.duration)}),9);case 9:v.mode=y;case 8:return d&&a.B&&b!=g.ha&&f&&(G=d.startTime,yi(a,b,function(){var H=G;0>H&&(H+=.001);a.h[b].timestampOffset=H;pi(a,b)})),z(E,yi(a,b,function(){a.h[b].appendBuffer(c)}),12);case 12:A(E)}})}
282
- function Ai(a,b){var c=ti(a,"video")||0;Gd(a.g,b,c)}function Bi(a){a.g&&Gd(a.g,"",0)}q.remove=function(a,b,c){var d=this,e;return J(function(f){e=Jb;return a==e.ha?z(f,d.g.remove(b,c),0):z(f,yi(d,a,function(){return zi(d,a,b,c)}),0)})};function Ci(a,b){var c;return J(function(d){c=Jb;return b==c.ha?a.g?z(d,a.g.remove(0,Infinity),0):d["return"]():z(d,yi(a,b,function(){return zi(a,b,0,a.l.duration)}),0)})}
283
- q.flush=function(a){var b=this,c;return J(function(d){c=Jb;return a==c.ha?d["return"]():z(d,yi(b,a,function(){b.j.currentTime-=.001;pi(b,a)}),0)})};
284
- function Di(a,b,c,d,e,f){var g;return J(function(h){g=Jb;return b==g.ha?(f||(a.g.B=c),Fd(a.g,d,e),h["return"]()):z(h,Promise.all([yi(a,b,function(){var k=a.h[b].appendWindowStart,l=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=k;a.h[b].appendWindowEnd=l;pi(a,b)}),f?Promise.resolve():yi(a,b,function(){var k=c;0>k&&(k+=.001);a.h[b].timestampOffset=k;pi(a,b)}),yi(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;pi(a,b)})]),0)})}
285
- q.endOfStream=function(a){var b=this;return J(function(c){return z(c,Ei(b,function(){qi(b)||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};q.bb=function(a){var b=this;return J(function(c){return z(c,Ei(b,function(){b.l.duration=a}),0)})};q.getDuration=function(){return this.l.duration};function zi(a,b,c,d){d<=c?pi(a,b):a.h[b].remove(c,d)}function pi(a,b){var c=a.i[b][0];c&&(c.p.resolve(),Fi(a,b))}
286
- function yi(a,b,c){zf(a.G);c={start:c,p:new Mc};a.i[b].push(c);1==a.i[b].length&&Gi(a,b);return c.p}
287
- function Ei(a,b){var c,d,e,f,g,h;return J(function(k){switch(k.g){case 1:zf(a.G);c=[];d={};for(e in a.h)d.xc=new Mc,f={start:function(l){return function(){return l.xc.resolve()}}(d),p:d.xc},a.i[e].push(f),c.push(d.xc),1==a.i[e].length&&f.start(),d={xc:d.xc};F(k,2);return z(k,Promise.all(c),4);case 4:va(k,3);break;case 2:throw g=I(k),g;case 3:try{b()}catch(l){throw new P(2,3,3015,l);}finally{for(h in a.h)Fi(a,h)}A(k)}})}function Fi(a,b){a.i[b].shift();Gi(a,b)}
288
- function Gi(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new P(2,3,3017,b)):c.p.reject(new P(2,3,3015,d)),Fi(a,b)}}function wi(a,b,c,d){var e=a.K[d];null==c&&e&&(Wc()||Sc())&&"mp4"==a.N[d].split(";")[0].split("/")[1]&&(b=Ng(b));return b}var ni=window.URL.createObjectURL,xi="sequence",Hi=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function R(a,b,c){this.l=a;this.Bd=b;this.m=this.i=Infinity;this.g=1;this.h=this.j=null;this.A=0;this.B=!0;this.C=0;this.F=void 0===c?!0:c;this.G=0;this.H=!1}q=R.prototype;q.getDuration=function(){return this.i};q.zg=function(){return this.g};q.bb=function(a){this.i=a};q.Dg=function(){return this.l};q.Hf=function(a){this.A=a};q.Wc=function(a){this.B=a};q.Je=function(a){this.m=a};q.ph=function(a){this.Bd=a};q.pg=function(){return this.Bd};
279
+ function vi(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,v,y,x,w,D,B,C,G;return I(function(E){switch(E.g){case 1:g=Jb;if(b!=g.ha){E.D(2);break}if(!a.B){E.D(3);break}return u(E,a.P,4);case 4:h=E.h,a.g.B=h;case 3:return u(E,Ed(a.g,c,d?d.startTime:null,d?d.endTime:null),5);case 5:return E["return"]();case 2:if(!a.C[b]){e&&(a.g||oi(a,"text/vtt",a.B),d?(k=Zh(a.F,c),k.length&&(l=a.h[g.Ma].timestampOffset,Nd(a.g,k,d.startTime,d.endTime,l))):a.F.init(c));E.D(6);break}return u(E,ud(a.C[b],c),7);case 7:m=E.h,a.g||oi(a,
280
+ "text/vtt",a.B),m.metadata&&(n=a.h[b].timestampOffset,a.S(m.metadata,n,d?d.endTime:null)),m.captions&&m.captions.length&&(p=a.h[g.Ma].timestampOffset,r=Kd(m.captions),Nd(a.g,r,d?d.startTime:null,d?d.endTime:null,p)),c=m.data;case 6:c=wi(a,c,d?d.startTime:null,b);v=a.h[b];y=xi;if(!a.B||v.mode==y||!d){E.D(8);break}x=b==g.Ma||!(g.Ma in a.h);if(!x){E.D(9);break}w=[v.appendWindowStart,v.appendWindowEnd];v.appendWindowStart=0;v.appendWindowEnd=Infinity;D=v.timestampOffset;v.timestampOffset=0;return u(E,
281
+ yi(a,b,function(){a.h[b].appendBuffer(c)}),10);case 10:return v.timestampOffset=D,v.appendWindowStart=w[0],v.appendWindowEnd=w[1],B=ei(si(a,b)),C=(d.startTime||0)-(B||0),a.P.resolve(C),u(E,yi(a,b,function(){return zi(a,b,0,a.l.duration)}),9);case 9:v.mode=y;case 8:return d&&a.B&&b!=g.ha&&f&&(G=d.startTime,yi(a,b,function(){var H=G;0>H&&(H+=.001);a.h[b].timestampOffset=H;pi(a,b)})),u(E,yi(a,b,function(){a.h[b].appendBuffer(c)}),12);case 12:z(E)}})}
282
+ function Ai(a,b){var c=ti(a,"video")||0;Gd(a.g,b,c)}function Bi(a){a.g&&Gd(a.g,"",0)}q.remove=function(a,b,c){var d=this,e;return I(function(f){e=Jb;return a==e.ha?u(f,d.g.remove(b,c),0):u(f,yi(d,a,function(){return zi(d,a,b,c)}),0)})};function Ci(a,b){var c;return I(function(d){c=Jb;return b==c.ha?a.g?u(d,a.g.remove(0,Infinity),0):d["return"]():u(d,yi(a,b,function(){return zi(a,b,0,a.l.duration)}),0)})}
283
+ q.flush=function(a){var b=this,c;return I(function(d){c=Jb;return a==c.ha?d["return"]():u(d,yi(b,a,function(){b.j.currentTime-=.001;pi(b,a)}),0)})};
284
+ function Di(a,b,c,d,e,f){var g;return I(function(h){g=Jb;return b==g.ha?(f||(a.g.B=c),Fd(a.g,d,e),h["return"]()):u(h,Promise.all([yi(a,b,function(){var k=a.h[b].appendWindowStart,l=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=k;a.h[b].appendWindowEnd=l;pi(a,b)}),f?Promise.resolve():yi(a,b,function(){var k=c;0>k&&(k+=.001);a.h[b].timestampOffset=k;pi(a,b)}),yi(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;pi(a,b)})]),0)})}
285
+ q.endOfStream=function(a){var b=this;return I(function(c){return u(c,Ei(b,function(){qi(b)||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};q.bb=function(a){var b=this;return I(function(c){return u(c,Ei(b,function(){b.l.duration=a}),0)})};q.getDuration=function(){return this.l.duration};function zi(a,b,c,d){d<=c?pi(a,b):a.h[b].remove(c,d)}function pi(a,b){var c=a.i[b][0];c&&(c.p.resolve(),Fi(a,b))}
286
+ function yi(a,b,c){zf(a.G);c={start:c,p:new Lc};a.i[b].push(c);1==a.i[b].length&&Gi(a,b);return c.p}
287
+ function Ei(a,b){var c,d,e,f,g,h;return I(function(k){switch(k.g){case 1:zf(a.G);c=[];d={};for(e in a.h)d.xc=new Lc,f={start:function(l){return function(){return l.xc.resolve()}}(d),p:d.xc},a.i[e].push(f),c.push(d.xc),1==a.i[e].length&&f.start(),d={xc:d.xc};A(k,2);return u(k,Promise.all(c),4);case 4:va(k,3);break;case 2:throw g=F(k),g;case 3:try{b()}catch(l){throw new O(2,3,3015,l);}finally{for(h in a.h)Fi(a,h)}z(k)}})}function Fi(a,b){a.i[b].shift();Gi(a,b)}
288
+ function Gi(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new O(2,3,3017,b)):c.p.reject(new O(2,3,3015,d)),Fi(a,b)}}function wi(a,b,c,d){var e=a.K[d];null==c&&e&&(Wc()||Rc())&&"mp4"==a.N[d].split(";")[0].split("/")[1]&&(b=Ng(b));return b}var ni=window.URL.createObjectURL,xi="sequence",Hi=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function Q(a,b,c){this.l=a;this.Bd=b;this.m=this.i=Infinity;this.g=1;this.h=this.j=null;this.A=0;this.B=!0;this.C=0;this.F=void 0===c?!0:c;this.G=0;this.H=!1}q=Q.prototype;q.getDuration=function(){return this.i};q.zg=function(){return this.g};q.bb=function(a){this.i=a};q.Dg=function(){return this.l};q.Hf=function(a){this.A=a};q.Wc=function(a){this.B=a};q.Je=function(a){this.m=a};q.ph=function(a){this.Bd=a};q.pg=function(){return this.Bd};
289
289
  q.kc=function(a){if(0!=a.length){var b=a[a.length-1].endTime;this.pe(a[0].startTime);this.g=a.reduce(function(c,d){return Math.max(c,d.endTime-d.startTime)},this.g);this.h=Math.max(this.h,b);null!=this.l&&this.F&&!this.H&&(this.l=(Date.now()+this.A)/1E3-this.h-this.g)}};q.je=function(){this.H=!0};q.pe=function(a){this.j=null==this.j?a:Math.min(this.j,a)};q.oe=function(a){this.g=Math.max(this.g,a)};q.offset=function(a){null!=this.j&&(this.j+=a);null!=this.h&&(this.h+=a)};
290
290
  q.U=function(){return Infinity==this.i&&!this.B};q.Lb=function(){return Infinity!=this.i&&!this.B};q.ob=function(){return Math.max(this.C,this.Ib()-this.m)};q.Kf=function(a){this.C=a};q.Ib=function(){return this.U()||this.Lb()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.l)+this.G,this.i):this.h?Math.min(this.h,this.i):this.i};q.Hc=function(a){var b=Math.max(this.j,this.C);return Infinity==this.m?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Ib()-this.m+a,this.mb()))};q.dc=function(){return this.Hc(0)};
291
- q.mb=function(){return Math.max(0,this.Ib()-(this.U()||this.Lb()?this.Bd:0))};q.Of=function(){return null==this.l||null!=this.h&&this.F?!1:!0};q.Gf=function(a){this.G=a};M("shaka.media.PresentationTimeline",R);R.prototype.setAvailabilityTimeOffset=R.prototype.Gf;R.prototype.usingPresentationStartTime=R.prototype.Of;R.prototype.getSeekRangeEnd=R.prototype.mb;R.prototype.getSeekRangeStart=R.prototype.dc;R.prototype.getSafeSeekRangeStart=R.prototype.Hc;R.prototype.getSegmentAvailabilityEnd=R.prototype.Ib;
292
- R.prototype.setUserSeekStart=R.prototype.Kf;R.prototype.getSegmentAvailabilityStart=R.prototype.ob;R.prototype.isInProgress=R.prototype.Lb;R.prototype.isLive=R.prototype.U;R.prototype.offset=R.prototype.offset;R.prototype.notifyMaxSegmentDuration=R.prototype.oe;R.prototype.notifyMinSegmentStartTime=R.prototype.pe;R.prototype.lockStartTime=R.prototype.je;R.prototype.notifySegments=R.prototype.kc;R.prototype.getDelay=R.prototype.pg;R.prototype.setDelay=R.prototype.ph;
293
- R.prototype.setSegmentAvailabilityDuration=R.prototype.Je;R.prototype.setStatic=R.prototype.Wc;R.prototype.setClockOffset=R.prototype.Hf;R.prototype.getPresentationStartTime=R.prototype.Dg;R.prototype.setDuration=R.prototype.bb;R.prototype.getMaxSegmentDuration=R.prototype.zg;R.prototype.getDuration=R.prototype.getDuration;function Ii(a,b,c){this.l=c;this.j=a;this.B=Ji(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.A=0;this.C=b;this.i=function(){}}Ii.prototype.release=function(){this.l=this.j=null;this.i=function(){}};function Ki(a,b){a.i=b}function Li(a){this.g=a}function Ji(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(ii(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 Mi(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.B=b;this.G=c;this.i=new Af;this.m=!1;this.F=a.readyState;this.C=0;this.h=d;this.l=!1;this.i.o(a,"waiting",function(){return Ni(f)});this.j=(new Q(function(){Ni(f)})).ka(.25)}Mi.prototype.release=function(){this.i&&(this.i.release(),this.i=null);null!=this.j&&(this.j.stop(),this.j=null);this.h&&(this.h.release(),this.h=null);this.g=this.B=this.A=null};Mi.prototype.re=function(){this.l=!0;Ni(this)};
294
- function Ni(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.m)return}else a.m=!1;if(!a.g.paused||0==a.g.currentTime&&(a.g.autoplay||0!=a.g.currentTime)){a.g.readyState!=a.F&&(a.F=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.j,d=Ji(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.B!=d)b.m=f,b.g=e,b.B=d,b.h=!1;e=f-b.m;if(d=e>=b.C&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.A++,b.l(new O("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=ji(c,b,a.G.gapDetectionThreshold),null==
295
- d||0==d&&!a.l||(e=c.start(d),e>=a.B.mb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,a.C++,a.A(new O("gapjumped")))))}}};function Oi(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Pi.value().get(b),c.Fa(a,b,d))}var Pi=new Nc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Qi(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.m=!1;this.h=new Af;this.i=new Ri(a);Oi(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Si(d,d.j)})}Qi.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.l=function(){};this.g=null};function Ti(a){return a.m?a.g.currentTime:a.j}function Ui(a,b){0<a.g.readyState?Vi(a.i,b):Oi(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Si(a,a.j)})}
296
- function Si(a,b){.001>Math.abs(a.g.currentTime-b)?Wi(a):(a.h.Fa(a.g,"seeking",function(){Wi(a)}),Vi(a.i,0==a.g.currentTime?b:a.g.currentTime))}function Wi(a){a.m=!0;a.h.o(a.g,"seeking",function(){return a.l()})}function Ri(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new Q(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Ri.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
297
- function Vi(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ka(.1)};function Xi(a){function b(){null==c.h||0==c.h?c.j=!0:(c.i.Fa(c.g,"seeking",function(){c.j=!0}),c.g.currentTime=Math.max(0,c.g.currentTime+c.h))}var c=this;this.g=a;this.j=!1;this.h=null;this.i=new Af;Oi(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){b()})}q=Xi.prototype;q.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};q.Zd=function(a){this.h=this.j?this.h:a};q.dd=function(){return(this.j?this.g.currentTime:this.h)||0};q.Ye=function(){return 0};q.Xe=function(){return 0};
291
+ q.mb=function(){return Math.max(0,this.Ib()-(this.U()||this.Lb()?this.Bd:0))};q.Of=function(){return null==this.l||null!=this.h&&this.F?!1:!0};q.Gf=function(a){this.G=a};J("shaka.media.PresentationTimeline",Q);Q.prototype.setAvailabilityTimeOffset=Q.prototype.Gf;Q.prototype.usingPresentationStartTime=Q.prototype.Of;Q.prototype.getSeekRangeEnd=Q.prototype.mb;Q.prototype.getSeekRangeStart=Q.prototype.dc;Q.prototype.getSafeSeekRangeStart=Q.prototype.Hc;Q.prototype.getSegmentAvailabilityEnd=Q.prototype.Ib;
292
+ Q.prototype.setUserSeekStart=Q.prototype.Kf;Q.prototype.getSegmentAvailabilityStart=Q.prototype.ob;Q.prototype.isInProgress=Q.prototype.Lb;Q.prototype.isLive=Q.prototype.U;Q.prototype.offset=Q.prototype.offset;Q.prototype.notifyMaxSegmentDuration=Q.prototype.oe;Q.prototype.notifyMinSegmentStartTime=Q.prototype.pe;Q.prototype.lockStartTime=Q.prototype.je;Q.prototype.notifySegments=Q.prototype.kc;Q.prototype.getDelay=Q.prototype.pg;Q.prototype.setDelay=Q.prototype.ph;
293
+ Q.prototype.setSegmentAvailabilityDuration=Q.prototype.Je;Q.prototype.setStatic=Q.prototype.Wc;Q.prototype.setClockOffset=Q.prototype.Hf;Q.prototype.getPresentationStartTime=Q.prototype.Dg;Q.prototype.setDuration=Q.prototype.bb;Q.prototype.getMaxSegmentDuration=Q.prototype.zg;Q.prototype.getDuration=Q.prototype.getDuration;function Ii(a,b,c){this.l=c;this.j=a;this.B=Ji(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.A=0;this.C=b;this.i=function(){}}Ii.prototype.release=function(){this.l=this.j=null;this.i=function(){}};function Ki(a,b){a.i=b}function Li(a){this.g=a}function Ji(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(ii(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 Mi(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.B=b;this.G=c;this.i=new Af;this.m=!1;this.F=a.readyState;this.C=0;this.h=d;this.l=!1;this.i.o(a,"waiting",function(){return Ni(f)});this.j=(new P(function(){Ni(f)})).ka(.25)}Mi.prototype.release=function(){this.i&&(this.i.release(),this.i=null);null!=this.j&&(this.j.stop(),this.j=null);this.h&&(this.h.release(),this.h=null);this.g=this.B=this.A=null};Mi.prototype.re=function(){this.l=!0;Ni(this)};
294
+ function Ni(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.m)return}else a.m=!1;if(!a.g.paused||0==a.g.currentTime&&(a.g.autoplay||0!=a.g.currentTime)){a.g.readyState!=a.F&&(a.F=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.j,d=Ji(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.B!=d)b.m=f,b.g=e,b.B=d,b.h=!1;e=f-b.m;if(d=e>=b.C&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.A++,b.l(new M("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=ji(c,b,a.G.gapDetectionThreshold),null==
295
+ d||0==d&&!a.l||(e=c.start(d),e>=a.B.mb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,a.C++,a.A(new M("gapjumped")))))}}};function Oi(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Pi.value().get(b),c.Ea(a,b,d))}var Pi=new Mc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Qi(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.m=!1;this.h=new Af;this.i=new Ri(a);Oi(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Si(d,d.j)})}Qi.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.l=function(){};this.g=null};function Ti(a){return a.m?a.g.currentTime:a.j}function Ui(a,b){0<a.g.readyState?Vi(a.i,b):Oi(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Si(a,a.j)})}
296
+ function Si(a,b){.001>Math.abs(a.g.currentTime-b)?Wi(a):(a.h.Ea(a.g,"seeking",function(){Wi(a)}),Vi(a.i,0==a.g.currentTime?b:a.g.currentTime))}function Wi(a){a.m=!0;a.h.o(a.g,"seeking",function(){return a.l()})}function Ri(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new P(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Ri.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
297
+ function Vi(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ka(.1)};function Xi(a){function b(){null==c.h||0==c.h?c.j=!0:(c.i.Ea(c.g,"seeking",function(){c.j=!0}),c.g.currentTime=Math.max(0,c.g.currentTime+c.h))}var c=this;this.g=a;this.j=!1;this.h=null;this.i=new Af;Oi(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){b()})}q=Xi.prototype;q.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};q.Zd=function(a){this.h=this.j?this.h:a};q.dd=function(){return(this.j?this.g.currentTime:this.h)||0};q.Ye=function(){return 0};q.Xe=function(){return 0};
298
298
  q.Bf=function(){};
299
- function Yi(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.B=e;this.A=null;this.C=Zi(a,c,f);this.j=new Mi(a,b.presentationTimeline,c,this.C,f);this.h=new Qi(a,function(){a:{var h=g.j;h.m=!0;h.l=!1;var k=Ti(g.h);h=$i(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.A||g.A<k-1)){g.A=k;Ui(g.h,h);h=void 0;break a}g.B();h=void 0}return h},aj(this,d));this.m=(new Q(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Ti(g.h),k=g.g.dc(),l=g.g.mb();3>
299
+ function Yi(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.B=e;this.A=null;this.C=Zi(a,c,f);this.j=new Mi(a,b.presentationTimeline,c,this.C,f);this.h=new Qi(a,function(){a:{var h=g.j;h.m=!0;h.l=!1;var k=Ti(g.h);h=$i(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.A||g.A<k-1)){g.A=k;Ui(g.h,h);h=void 0;break a}g.B();h=void 0}return h},aj(this,d));this.m=(new P(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Ti(g.h),k=g.g.dc(),l=g.g.mb();3>
300
300
  l-k&&(k=l-3);h<k&&(h=$i(g,h),g.i.currentTime=h)}})).ka(.25)}q=Yi.prototype;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.B=function(){}};q.Zd=function(a){Ui(this.h,a)};q.dd=function(){var a=Ti(this.h);return 0<this.i.readyState&&!this.i.paused?bj(this,a):a};q.Ye=function(){return this.C.A};q.Xe=function(){return this.j.C};
301
301
  function aj(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.dc():a.g.mb():0>b&&(b=a.g.mb()+b);return cj(a,bj(a,b))}q.Bf=function(){this.j.re()};function cj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function $i(a,b){var c=Math.max(a.F,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.dc(),f=a.g.mb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Hc(c),k=a.g.Hc(d);c=a.g.Hc(c+d);return b>=g?cj(a,b):b>f?f:b<e?gi(a.i.buffered,k)?k:c:b>=h||gi(a.i.buffered,b)?b:c}
302
302
  function bj(a,b){var c=a.g.dc();if(b<c)return c;c=a.g.mb();return b>c?c:b}function Zi(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new Ii(new Li(a),b.stallThreshold,c);Ki(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function dj(a){this.M=a;this.g=null;this.h=0;this.i=!1}q=dj.prototype;q.release=function(){this.i||(this.M=[],this.g&&this.g.stop(),this.g=null)};q.Tg=function(){this.i=!0};q.find=function(a){for(var b=this.M.length-1,c=b;0<=c;--c){var d=this.M[c],e=c<b?this.M[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.h}return this.M.length&&a<this.M[0].startTime?this.h:null};q.get=function(a){if(0==this.M.length)return null;a-=this.h;return 0>a||a>=this.M.length?null:this.M[a]};
303
- q.offset=function(a){if(!this.i)for(var b=t(this.M),c=b.next();!c.done;c=b.next()){c=c.value;c.startTime+=a;c.endTime+=a;c.j+=a;c=t(c.h);for(var d=c.next();!d.done;d=c.next())d=d.value,d.startTime+=a,d.endTime+=a,d.j+=a}};q.Oc=function(a){!this.i&&a.length&&(this.M=this.M.filter(function(b){return b.startTime<a[0].startTime}),this.M.push.apply(this.M,ja(a)))};q.jc=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.M.length||d.endTime>c.M[0].startTime)});this.Oc(a);this.Gb(b)};
303
+ q.offset=function(a){if(!this.i)for(var b=t(this.M),c=b.next();!c.done;c=b.next()){c=c.value;c.startTime+=a;c.endTime+=a;c.j+=a;c=t(c.h);for(var d=c.next();!d.done;d=c.next())d=d.value,d.startTime+=a,d.endTime+=a,d.j+=a}};q.Oc=function(a){!this.i&&a.length&&(this.M=this.M.filter(function(b){return b.startTime<a[0].startTime}),this.M.push.apply(this.M,ia(a)))};q.jc=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.M.length||d.endTime>c.M[0].startTime)});this.Oc(a);this.Gb(b)};
304
304
  q.Gb=function(a){if(!this.i){var b=this.M.length;this.M=this.M.filter(function(c){return c.endTime>a});this.h+=b-this.M.length}};
305
- q.yb=function(a,b,c){c=void 0===c?!1:c;if(!this.i){for(;this.M.length;)if(this.M[this.M.length-1].startTime>=b)this.M.pop();else break;for(;this.M.length;)if(this.M[0].endTime<=a)this.M.shift(),c||this.h++;else break;0!=this.M.length&&(a=this.M[this.M.length-1],this.M[this.M.length-1]=new bi(a.startTime,b,a.A,a.Ta,a.Ca,a.i,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.h,a.tilesLayout,a.m,a.g))}};
306
- q.Gd=function(a,b){var c=this;this.i||(this.g&&this.g.stop(),this.g=new Q(function(){var d=b();d?c.M.push.apply(c.M,ja(d)):(c.g.stop(),c.g=null)}),this.g.ka(a))};dj.prototype[Symbol.iterator]=function(){return this.bc(0)};dj.prototype.bc=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.h.length)for(var e=c.h.length-1;0<=e;--e){var f=c.h[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new ej(this,b,d)};
307
- function fj(a,b,c){return new dj([new bi(a,a+b,function(){return c},0,null,null,a,a,a+b)])}M("shaka.media.SegmentIndex",dj);dj.forSingleSegment=fj;dj.prototype.getIteratorForTime=dj.prototype.bc;dj.prototype.updateEvery=dj.prototype.Gd;dj.prototype.fit=dj.prototype.yb;dj.prototype.evict=dj.prototype.Gb;dj.prototype.mergeAndEvict=dj.prototype.jc;dj.prototype.offset=dj.prototype.offset;dj.prototype.get=dj.prototype.get;dj.prototype.find=dj.prototype.find;dj.prototype.markImmutable=dj.prototype.Tg;
305
+ q.yb=function(a,b,c){c=void 0===c?!1:c;if(!this.i){for(;this.M.length;)if(this.M[this.M.length-1].startTime>=b)this.M.pop();else break;for(;this.M.length;)if(this.M[0].endTime<=a)this.M.shift(),c||this.h++;else break;0!=this.M.length&&(a=this.M[this.M.length-1],this.M[this.M.length-1]=new bi(a.startTime,b,a.A,a.Ta,a.Ba,a.i,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.h,a.tilesLayout,a.m,a.g))}};
306
+ q.Gd=function(a,b){var c=this;this.i||(this.g&&this.g.stop(),this.g=new P(function(){var d=b();d?c.M.push.apply(c.M,ia(d)):(c.g.stop(),c.g=null)}),this.g.ka(a))};dj.prototype[Symbol.iterator]=function(){return this.bc(0)};dj.prototype.bc=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.h.length)for(var e=c.h.length-1;0<=e;--e){var f=c.h[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new ej(this,b,d)};
307
+ function fj(a,b,c){return new dj([new bi(a,a+b,function(){return c},0,null,null,a,a,a+b)])}J("shaka.media.SegmentIndex",dj);dj.forSingleSegment=fj;dj.prototype.getIteratorForTime=dj.prototype.bc;dj.prototype.updateEvery=dj.prototype.Gd;dj.prototype.fit=dj.prototype.yb;dj.prototype.evict=dj.prototype.Gb;dj.prototype.mergeAndEvict=dj.prototype.jc;dj.prototype.offset=dj.prototype.offset;dj.prototype.get=dj.prototype.get;dj.prototype.find=dj.prototype.find;dj.prototype.markImmutable=dj.prototype.Tg;
308
308
  dj.prototype.release=dj.prototype.release;function ej(a,b,c){this.i=a;this.g=b;this.h=c}ej.prototype.dg=function(){return this.g};ej.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.h.length&&a.Pa().length&&this.h>=a.h.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.h.length?a.h[this.h]:a};
309
- ej.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.h.length?(this.h++,a.Pa().length&&this.h==a.h.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};M("shaka.media.SegmentIterator",ej);ej.prototype.next=ej.prototype.next;ej.prototype.current=ej.prototype.current;ej.prototype.currentPosition=ej.prototype.dg;function gj(){dj.call(this,[]);this.j=[]}u(gj,dj);q=gj.prototype;q.clone=function(){var a=new gj;a.j=this.j.slice();return a};
309
+ ej.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.h.length?(this.h++,a.Pa().length&&this.h==a.h.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};J("shaka.media.SegmentIterator",ej);ej.prototype.next=ej.prototype.next;ej.prototype.current=ej.prototype.current;ej.prototype.currentPosition=ej.prototype.dg;function gj(){dj.call(this,[]);this.j=[]}qa(gj,dj);q=gj.prototype;q.clone=function(){var a=new gj;a.j=this.j.slice();return a};
310
310
  q.release=function(){for(var a=t(this.j),b=a.next();!b.done;b=a.next())b.value.release();this.j=[]};q.find=function(a){for(var b=0,c=t(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.h+d.M.length}return null};q.get=function(a){for(var b=0,c=t(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.h+d.M.length}return null};q.offset=function(){};q.Oc=function(){};q.Gb=function(){};q.jc=function(){};q.yb=function(){};q.Gd=function(){};
311
- M("shaka.media.MetaSegmentIndex",gj);gj.prototype.updateEvery=gj.prototype.Gd;gj.prototype.fit=gj.prototype.yb;gj.prototype.mergeAndEvict=gj.prototype.jc;gj.prototype.evict=gj.prototype.Gb;gj.prototype.merge=gj.prototype.Oc;gj.prototype.offset=gj.prototype.offset;gj.prototype.get=gj.prototype.get;gj.prototype.find=gj.prototype.find;gj.prototype.release=gj.prototype.release;function hj(a){var b=this;this.g=a;this.j=!1;this.i=this.g.od();this.h=new Q(function(){b.g.Af(.25*b.i)})}hj.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};hj.prototype.set=function(a){this.i=a;ij(this)};hj.prototype.ld=function(){return this.g.ld()};function ij(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.od()!=b&&a.g.He(b);return}catch(c){}a.h.ka(.25);0!=a.g.od()&&a.g.He(0)};function jj(a){var b=this;this.h=a;this.g=new Set;this.i=(new Q(function(){kj(b,!1)})).ka(.25)}jj.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function kj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function lj(a){fb.call(this);this.g=new Map;this.h=a}u(lj,fb);lj.prototype.release=function(){this.g.clear();fb.prototype.release.call(this)};function mj(a,b){var c=a.g.get(b);c||(c={Qc:[],jf:null,contentType:b},a.g.set(b,c));return c}function nj(a,b,c){var d=mj(a,b.contentType);oj(a,d);a={le:b,position:c};d=d.Qc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
311
+ J("shaka.media.MetaSegmentIndex",gj);gj.prototype.updateEvery=gj.prototype.Gd;gj.prototype.fit=gj.prototype.yb;gj.prototype.mergeAndEvict=gj.prototype.jc;gj.prototype.evict=gj.prototype.Gb;gj.prototype.merge=gj.prototype.Oc;gj.prototype.offset=gj.prototype.offset;gj.prototype.get=gj.prototype.get;gj.prototype.find=gj.prototype.find;gj.prototype.release=gj.prototype.release;function hj(a){var b=this;this.g=a;this.j=!1;this.i=this.g.od();this.h=new P(function(){b.g.Af(.25*b.i)})}hj.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};hj.prototype.set=function(a){this.i=a;ij(this)};hj.prototype.ld=function(){return this.g.ld()};function ij(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.od()!=b&&a.g.He(b);return}catch(c){}a.h.ka(.25);0!=a.g.od()&&a.g.He(0)};function jj(a){var b=this;this.h=a;this.g=new Set;this.i=(new P(function(){kj(b,!1)})).ka(.25)}jj.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function kj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function lj(a){fb.call(this);this.g=new Map;this.h=a}qa(lj,fb);lj.prototype.release=function(){this.g.clear();fb.prototype.release.call(this)};function mj(a,b){var c=a.g.get(b);c||(c={Qc:[],jf:null,contentType:b},a.g.set(b,c));return c}function nj(a,b,c){var d=mj(a,b.contentType);oj(a,d);a={le:b,position:c};d=d.Qc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
312
312
  lj.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Qc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.le;break a}}d=null}if(e=d)e=c.jf,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);
313
- 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.jf=d,JSON.stringify(d),c=new O("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function oj(a,b){var c=a.h()[b.contentType];if(c&&0<c.length){var d=c[0].start,e=c[c.length-1].end,f=b.Qc;b.Qc=f.filter(function(g,h){return g.position<=d&&h+1<f.length&&f[h+1].position<=d||g.position>=e?!1:!0})}else b.Qc=[]};function pj(a){fb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Q(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g["delete"](e),e=new O("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ka(2)}u(pj,fb);pj.prototype.release=function(){this.g.clear();this.h.stop();fb.prototype.release.call(this)};function qj(a){fb.call(this);var b=this;this.i=a;this.g=new Map;this.l=[{Vb:null,Ub:rj,Kb:function(c,d){return sj(b,"enter",c,d)}},{Vb:tj,Ub:rj,Kb:function(c,d){return sj(b,"enter",c,d)}},{Vb:uj,Ub:rj,Kb:function(c,d){return sj(b,"enter",c,d)}},{Vb:rj,Ub:tj,Kb:function(c,d){return sj(b,"exit",c,d)}},{Vb:rj,Ub:uj,Kb:function(c,d){return sj(b,"exit",c,d)}},{Vb:tj,Ub:uj,Kb:function(c,d){return sj(b,"skip",c,d)}},{Vb:uj,Ub:tj,Kb:function(c,d){return sj(b,"skip",c,d)}}];this.h=new Af;this.h.o(this.i,"regionremove",
314
- function(c){b.g["delete"](c.region)})}u(qj,fb);qj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;fb.prototype.release.call(this)};qj.prototype.j=function(a,b){for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?tj:a>d.endTime?uj:rj;this.g.set(d,f);for(var g=t(this.l),h=g.next();!h.done;h=g.next())h=h.value,h.Vb==e&&h.Ub==f&&h.Kb(d,b)}};
315
- function sj(a,b,c,d){b=new O(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var tj=1,rj=2,uj=3;function vj(a,b,c,d,e){a=rf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function wj(a,b){var c=this;this.g=b;this.m=a;this.j=null;this.C=1;this.A=this.l=null;this.i=new Map;this.F=!1;this.G=null;this.B=!1;this.h=new yf(function(){return xj(c)})}wj.prototype.destroy=function(){return this.h.destroy()};function xj(a){var b,c,d,e;return J(function(f){if(1==f.g){b=[];c=t(a.i.values());for(d=c.next();!d.done;d=c.next())e=d.value,yj(e),b.push(zj(e));return z(f,Promise.all(b),2)}a.i.clear();a.g=null;a.m=null;a.j=null;A(f)})}
316
- wj.prototype.configure=function(a){this.j=a;this.G=new Ze({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)};wj.prototype.start=function(){var a=this;return J(function(b){if(1==b.g)return z(b,Aj(a),2);zf(a.h);a.F=!0;A(b)})};
317
- function Bj(a,b){var c,d,e,f,g,h;J(function(k){switch(k.g){case 1:return c=Jb,F(k,2),z(k,Ci(a.g.V,c.ha),4);case 4:va(k,3);break;case 2:if(d=I(k),a.g)a.g.onError(d);case 3:e=wd(b.mimeType,b.codecs);oi(a.g.V,e,a.m.sequenceMode);f=a.g.V.m;if(g=f.isTextVisible()||a.j.alwaysStreamText)h=Cj(b),a.i.set(c.ha,h),Dj(a,h,0);A(k)}})}function Ej(a){var b=a.i.get(Ib);b&&(yj(b),zj(b)["catch"](function(){}),a.i["delete"](Ib));a.A=null}
313
+ 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.jf=d,JSON.stringify(d),c=new M("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function oj(a,b){var c=a.h()[b.contentType];if(c&&0<c.length){var d=c[0].start,e=c[c.length-1].end,f=b.Qc;b.Qc=f.filter(function(g,h){return g.position<=d&&h+1<f.length&&f[h+1].position<=d||g.position>=e?!1:!0})}else b.Qc=[]};function pj(a){fb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new P(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g["delete"](e),e=new M("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ka(2)}qa(pj,fb);pj.prototype.release=function(){this.g.clear();this.h.stop();fb.prototype.release.call(this)};function qj(a){fb.call(this);var b=this;this.i=a;this.g=new Map;this.l=[{Vb:null,Ub:rj,Kb:function(c,d){return sj(b,"enter",c,d)}},{Vb:tj,Ub:rj,Kb:function(c,d){return sj(b,"enter",c,d)}},{Vb:uj,Ub:rj,Kb:function(c,d){return sj(b,"enter",c,d)}},{Vb:rj,Ub:tj,Kb:function(c,d){return sj(b,"exit",c,d)}},{Vb:rj,Ub:uj,Kb:function(c,d){return sj(b,"exit",c,d)}},{Vb:tj,Ub:uj,Kb:function(c,d){return sj(b,"skip",c,d)}},{Vb:uj,Ub:tj,Kb:function(c,d){return sj(b,"skip",c,d)}}];this.h=new Af;this.h.o(this.i,"regionremove",
314
+ function(c){b.g["delete"](c.region)})}qa(qj,fb);qj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;fb.prototype.release.call(this)};qj.prototype.j=function(a,b){for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?tj:a>d.endTime?uj:rj;this.g.set(d,f);for(var g=t(this.l),h=g.next();!h.done;h=g.next())h=h.value,h.Vb==e&&h.Ub==f&&h.Kb(d,b)}};
315
+ function sj(a,b,c,d){b=new M(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var tj=1,rj=2,uj=3;function vj(a,b,c,d,e){a=rf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function wj(a,b){var c=this;this.g=b;this.m=a;this.j=null;this.C=1;this.A=this.l=null;this.i=new Map;this.F=!1;this.G=null;this.B=!1;this.h=new yf(function(){return xj(c)})}wj.prototype.destroy=function(){return this.h.destroy()};function xj(a){var b,c,d,e;return I(function(f){if(1==f.g){b=[];c=t(a.i.values());for(d=c.next();!d.done;d=c.next())e=d.value,yj(e),b.push(zj(e));return u(f,Promise.all(b),2)}a.i.clear();a.g=null;a.m=null;a.j=null;z(f)})}
316
+ wj.prototype.configure=function(a){this.j=a;this.G=new Ze({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)};wj.prototype.start=function(){var a=this;return I(function(b){if(1==b.g)return u(b,Aj(a),2);zf(a.h);a.F=!0;z(b)})};
317
+ function Bj(a,b){var c,d,e,f,g,h;I(function(k){switch(k.g){case 1:return c=Jb,A(k,2),u(k,Ci(a.g.V,c.ha),4);case 4:va(k,3);break;case 2:if(d=F(k),a.g)a.g.onError(d);case 3:e=wd(b.mimeType,b.codecs);oi(a.g.V,e,a.m.sequenceMode);f=a.g.V.m;if(g=f.isTextVisible()||a.j.alwaysStreamText)h=Cj(b),a.i.set(c.ha,h),Dj(a,h,0);z(k)}})}function Ej(a){var b=a.i.get(Ib);b&&(yj(b),zj(b)["catch"](function(){}),a.i["delete"](Ib));a.A=null}
318
318
  function Fj(a,b){var c=a.i.get("video");if(c){var d=c.stream;if(d)if(b){var e=d.trickModeVideo;e&&!c.Rb&&(Gj(a,e,!1,0,!1),c.Rb=d)}else if(d=c.Rb)c.Rb=null,Gj(a,d,!0,0,!1)}}function Hj(a,b,c,d,e){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;a.l=b;a.F&&(b.video&&Gj(a,b.video,c,d,e),b.audio&&Gj(a,b.audio,c,d,e))}function Ij(a,b){a.A=b;a.F&&Gj(a,b,!0,0,!1)}
319
319
  function Gj(a,b,c,d,e){var f=a.i.get(b.type);f||b.type!=Ib?f&&(f.Rb&&(b.trickModeVideo?(f.Rb=b,b=b.trickModeVideo):f.Rb=null),f.stream!=b||e)&&(b.type==Ib&&oi(a.g.V,wd(b.mimeType,b.codecs),a.m.sequenceMode),f.stream.closeSegmentIndex&&f.stream.closeSegmentIndex(),f.stream=b,f.sa=null,c&&(f.Bc?f.Jd=!0:f.ab?(f.Tb=!0,f.hd=d,f.Jd=!0):(yj(f),Jj(a,f,!0,d)["catch"](function(g){if(a.g)a.g.onError(g)}))),Kj(a,f)["catch"](function(g){if(a.g)a.g.onError(g)})):Bj(a,b)}
320
- function Kj(a,b){var c,d;return J(function(e){if(1==e.g){if(!b.Ja)return e["return"]();c=b.stream;d=b.Ja;return c.segmentIndex?e.D(2):z(e,c.createSegmentIndex(),2)}if(b.Ja!=d||b.stream!=c)return e["return"]();var f=a.g.nd();var g=ti(a.g.V,b.type),h=b.stream.segmentIndex.find(b.Ra?b.Ra.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Ca?k.Ca-k.Ta:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.i)&&(h+=(k.Ca?k.Ca-k.Ta:null)||0),k=a.g.getBandwidthEstimate(),
321
- f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.j.rebufferingGoal)||b.Ja.h.g>h?!0:!1):f=!1;f&&b.Ja.abort();A(e)})}
322
- wj.prototype.Tc=function(){for(var a=this.g.nd(),b=t(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);c.sa=null;var e=this.g.V;d==Ib?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=si(e,d),e=gi(e,a));if(!e){(null!=ti(this.g.V,d)||c.ab)&&Lj(this,c);c.Ja&&(c.Ja.abort(),c.Ja=null);if(d===Ib)for(d=this.g.V.F.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,Oh(d),d=t(d.j.values()),e=d.next();!e.done;e=d.next())Jh(e.value);c.Tc=!0}}};
320
+ function Kj(a,b){var c,d;return I(function(e){if(1==e.g){if(!b.Ia)return e["return"]();c=b.stream;d=b.Ia;return c.segmentIndex?e.D(2):u(e,c.createSegmentIndex(),2)}if(b.Ia!=d||b.stream!=c)return e["return"]();var f=a.g.nd();var g=ti(a.g.V,b.type),h=b.stream.segmentIndex.find(b.Ra?b.Ra.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Ba?k.Ba-k.Ta:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.i)&&(h+=(k.Ba?k.Ba-k.Ta:null)||0),k=a.g.getBandwidthEstimate(),
321
+ f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.j.rebufferingGoal)||b.Ia.h.g>h?!0:!1):f=!1;f&&b.Ia.abort();z(e)})}
322
+ wj.prototype.Tc=function(){for(var a=this.g.nd(),b=t(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);c.sa=null;var e=this.g.V;d==Ib?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=si(e,d),e=gi(e,a));if(!e){(null!=ti(this.g.V,d)||c.ab)&&Lj(this,c);c.Ia&&(c.Ia.abort(),c.Ia=null);if(d===Ib)for(d=this.g.V.F.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,Oh(d),d=t(d.j.values()),e=d.next();!e.done;e=d.next())Jh(e.value);c.Tc=!0}}};
323
323
  function Lj(a,b){b.Bc||b.Tb||(b.ab?(b.Tb=!0,b.hd=0):null==ri(a.g.V,b.type)?null==b.eb&&Dj(a,b,0):(yj(b),Jj(a,b,!1,0)["catch"](function(c){if(a.g)a.g.onError(c)})))}
324
- function Aj(a){var b,c,d,e,f,g,h,k,l,m;return J(function(n){if(1==n.g){b=Jb;if(!a.l)throw new P(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.Fb,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.Ma,a.l.video),d.add(a.l.video));a.A&&(c.set(b.ha,a.A),d.add(a.A));e=a.g.V;f=a.j.forceTransmuxTS;return z(n,e.init(c,f,a.m.sequenceMode),2)}zf(a.h);var p=a.m.presentationTimeline.getDuration();Infinity>p?a.g.V.bb(p):a.g.V.bb(Math.pow(2,32));g=t(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),
325
- a.i.has(k)||(m=Cj(l),a.i.set(k,m),Dj(a,m,0));A(n)})}function Cj(a){return{stream:a,type:a.type,sa:null,Ra:null,rd:null,ie:null,ge:null,fe:null,Rb:null,endOfStream:!1,ab:!1,eb:null,Tb:!1,hd:0,Jd:!1,Bc:!1,Tc:!0,ve:!1,Kc:!1,Ja:null}}
326
- function Mj(a,b){var c,d,e,f,g;return J(function(h){switch(h.g){case 1:zf(a.h);if(b.ab||null==b.eb||b.Bc)return h["return"]();b.eb=null;if(!b.Tb){h.D(2);break}return z(h,Jj(a,b,b.Jd,b.hd),3);case 3:return h["return"]();case 2:if(b.stream.segmentIndex){h.D(4);break}c=b.stream;return z(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),null==b.eb&&Dj(a,b,0),h["return"]();case 4:F(h,6);d=Nj(a,b);null!=d&&(Dj(a,b,d),b.Kc=!1);va(h,7);break;case 6:return e=
327
- I(h),z(h,Oj(a,e),8);case 8:return h["return"]();case 7:f=Array.from(a.i.values());if(!a.F||!f.every(function(k){return k.endOfStream})){h.D(0);break}return z(h,a.g.V.endOfStream(),10);case 10:zf(a.h),g=a.g.V.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.bb(g),A(h)}})}
324
+ function Aj(a){var b,c,d,e,f,g,h,k,l,m;return I(function(n){if(1==n.g){b=Jb;if(!a.l)throw new O(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.Fb,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.Ma,a.l.video),d.add(a.l.video));a.A&&(c.set(b.ha,a.A),d.add(a.A));e=a.g.V;f=a.j.forceTransmuxTS;return u(n,e.init(c,f,a.m.sequenceMode),2)}zf(a.h);var p=a.m.presentationTimeline.getDuration();Infinity>p?a.g.V.bb(p):a.g.V.bb(Math.pow(2,32));g=t(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),
325
+ a.i.has(k)||(m=Cj(l),a.i.set(k,m),Dj(a,m,0));z(n)})}function Cj(a){return{stream:a,type:a.type,sa:null,Ra:null,rd:null,ie:null,ge:null,fe:null,Rb:null,endOfStream:!1,ab:!1,eb:null,Tb:!1,hd:0,Jd:!1,Bc:!1,Tc:!0,ve:!1,Kc:!1,Ia:null}}
326
+ function Mj(a,b){var c,d,e,f,g;return I(function(h){switch(h.g){case 1:zf(a.h);if(b.ab||null==b.eb||b.Bc)return h["return"]();b.eb=null;if(!b.Tb){h.D(2);break}return u(h,Jj(a,b,b.Jd,b.hd),3);case 3:return h["return"]();case 2:if(b.stream.segmentIndex){h.D(4);break}c=b.stream;return u(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),null==b.eb&&Dj(a,b,0),h["return"]();case 4:A(h,6);d=Nj(a,b);null!=d&&(Dj(a,b,d),b.Kc=!1);va(h,7);break;case 6:return e=
327
+ F(h),u(h,Oj(a,e),8);case 8:return h["return"]();case 7:f=Array.from(a.i.values());if(!a.F||!f.every(function(k){return k.endOfStream})){h.D(0);break}return u(h,a.g.V.endOfStream(),10);case 10:zf(a.h),g=a.g.V.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.bb(g),z(h)}})}
328
328
  function Nj(a,b){if(Pj(b))return Ai(a.g.V,b.stream.originalId||""),null;b.type==Ib&&Bi(a.g.V);var c=a.g.nd(),d=b.Ra?b.Ra.endTime:c,e=ui(a.g.V,b.type,c),f=Math.max(a.m.minBufferTime||0,a.j.rebufferingGoal,a.j.bufferingGoal)*a.C;if(1E-6>a.m.presentationTimeline.getDuration()-d)return b.endOfStream=!0,"video"==b.type&&(c=a.i.get(Ib))&&Pj(c)&&(c.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.j.updateIntervalSeconds/2;e=ti(a.g.V,b.type);e=Qj(a,b,c,e);if(!e)return a.j.updateIntervalSeconds;f=Infinity;
329
329
  var g=Array.from(a.i.values());g=t(g);for(var h=g.next();!h.done;h=g.next())h=h.value,Pj(h)||h.sa&&!h.sa.current()||(f=Math.min(f,h.Ra?h.Ra.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.j.updateIntervalSeconds;Rj(a,b,c,e)["catch"](function(){});return null}
330
330
  function Qj(a,b,c,d){if(b.sa)return b.sa.current();if(b.Ra||d)return b.sa=b.stream.segmentIndex.bc(b.Ra?b.Ra.endTime:d),b.sa&&b.sa.next().value;a=a.j.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.sa=b.stream.segmentIndex.bc(d),e=b.sa&&b.sa.next().value);e||(b.sa=b.stream.segmentIndex.bc(c),e=b.sa&&b.sa.next().value);return e}
331
- function Rj(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,v,y;return J(function(x){switch(x.g){case 1:e=Jb;f=b.stream;g=b.sa;b.ab=!0;F(x,2);if(2==d.ec())throw new P(1,1,1011);return z(x,Sj(a,b,d),4);case 4:zf(a.h);if(a.B)return x["return"]();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.j.lowLatencyMode&&k&&h&&!d.l)return n=new Uint8Array(0),p=function(w){var D,B,C;return J(function(G){zf(a.h);if(a.B)return G["return"]();n=Tj(n,w);D=!1;B=0;(new Eg).box("mdat",function(E){B=E.size+
332
- E.start;D=!0}).parse(n,!1,!0);if(!D)return G.D(0);C=n.subarray(0,B);n=n.subarray(B);return z(G,Uj(a,b,c,f,d,C),0)})},z(x,Vj(a,b,d,p),6);l=Vj(a,b,d);return z(x,l,7);case 7:m=x.h;zf(a.h);if(a.B)return x["return"]();if(!d.l){x.D(8);break}return z(x,Wj(m,d,g),9);case 9:m=x.h;case 8:return zf(a.h),b.Tb?(b.ab=!1,Dj(a,b,0),x["return"]()):z(x,Uj(a,b,c,f,d,m),6);case 6:zf(a.h);if(a.B)return x["return"]();b.Ra=d;g.next();b.ab=!1;b.ve=!1;r=a.g.V.kb();v=r[b.type];Za(JSON.stringify(v));b.Tb||a.g.re();Dj(a,b,0);
333
- va(x,0);break;case 2:y=I(x);zf(a.h,y);if(a.B)return x["return"]();b.ab=!1;if(7001==y.code)b.ab=!1,b.eb=null,Dj(a,b,0),x.D(0);else if(b.type==e.ha&&a.j.ignoreTextStreamFailures)a.i["delete"](e.ha),x.D(0);else if(3017==y.code)Xj(a,b,y),x.D(0);else if(1001==y.code&&y.data&&404==y.data[1])b.ab=!1,b.eb=null,Dj(a,b,1),x.D(0);else return b.Kc=!0,y.severity=2,z(x,Oj(a,y),0)}})}
334
- function Wj(a,b,c){var d,e,f,g;return J(function(h){if(1==h.g)return d=b.l,d.cryptoKey?h.D(2):z(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=Fc(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c.g,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;return h["return"](window.crypto.subtle.decrypt({name:"AES-CBC",iv:e},d.cryptoKey,a))})}function Tj(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
331
+ function Rj(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,v,y;return I(function(x){switch(x.g){case 1:e=Jb;f=b.stream;g=b.sa;b.ab=!0;A(x,2);if(2==d.ec())throw new O(1,1,1011);return u(x,Sj(a,b,d),4);case 4:zf(a.h);if(a.B)return x["return"]();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.j.lowLatencyMode&&k&&h&&!d.l)return n=new Uint8Array(0),p=function(w){var D,B,C;return I(function(G){zf(a.h);if(a.B)return G["return"]();n=Tj(n,w);D=!1;B=0;(new Eg).box("mdat",function(E){B=E.size+
332
+ E.start;D=!0}).parse(n,!1,!0);if(!D)return G.D(0);C=n.subarray(0,B);n=n.subarray(B);return u(G,Uj(a,b,c,f,d,C),0)})},u(x,Vj(a,b,d,p),6);l=Vj(a,b,d);return u(x,l,7);case 7:m=x.h;zf(a.h);if(a.B)return x["return"]();if(!d.l){x.D(8);break}return u(x,Wj(m,d,g),9);case 9:m=x.h;case 8:return zf(a.h),b.Tb?(b.ab=!1,Dj(a,b,0),x["return"]()):u(x,Uj(a,b,c,f,d,m),6);case 6:zf(a.h);if(a.B)return x["return"]();b.Ra=d;g.next();b.ab=!1;b.ve=!1;r=a.g.V.kb();v=r[b.type];Za(JSON.stringify(v));b.Tb||a.g.re();Dj(a,b,0);
333
+ va(x,0);break;case 2:y=F(x);zf(a.h,y);if(a.B)return x["return"]();b.ab=!1;if(7001==y.code)b.ab=!1,b.eb=null,Dj(a,b,0),x.D(0);else if(b.type==e.ha&&a.j.ignoreTextStreamFailures)a.i["delete"](e.ha),x.D(0);else if(3017==y.code)Xj(a,b,y),x.D(0);else if(1001==y.code&&y.data&&404==y.data[1])b.ab=!1,b.eb=null,Dj(a,b,1),x.D(0);else return b.Kc=!0,y.severity=2,u(x,Oj(a,y),0)}})}
334
+ function Wj(a,b,c){var d,e,f,g;return I(function(h){if(1==h.g)return d=b.l,d.cryptoKey?h.D(2):u(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=Ec(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c.g,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;return h["return"](window.crypto.subtle.decrypt({name:"AES-CBC",iv:e},d.cryptoKey,a))})}function Tj(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
335
335
  function Xj(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.ve})){var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.Kc=!0;a.B=!0;a.g.onError(c);return}b.ve=!0}Dj(a,b,4)}
336
- function Sj(a,b,c){var d,e,f,g,h,k,l;return J(function(m){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.ie||e!=b.ge||f!=b.fe)h=function(){var n;return J(function(p){if(1==p.g)return F(p,2),b.ge=e,b.fe=f,b.ie=g,z(p,Di(a.g.V,b.type,g,e,f,a.m.sequenceMode),4);if(2!=p.g)return va(p,0);n=I(p);b.ge=null;b.fe=null;b.ie=null;throw n;})},d.push(h());!ai(c.i,b.rd)&&(b.rd=c.i)&&(k=Vj(a,b,c.i),l=function(){var n,p,r;return J(function(v){switch(v.g){case 1:return F(v,
337
- 2),z(v,k,4);case 4:return n=v.h,zf(a.h),p=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,z(v,vi(a.g.V,b.type,n,null,p),5);case 5:va(v,0);break;case 2:throw r=I(v),b.rd=null,r;}})},a.g.Wg(c.startTime,c.i),d.push(l()));return z(m,Promise.all(d),0)})}
338
- function Uj(a,b,c,d,e,f){var g,h;return J(function(k){if(1==k.g)return g=d.closedCaptions&&0<d.closedCaptions.size,(null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.j.dispatchAllEmsgBoxes)&&(new Eg).Y("emsg",function(l){var m=d.emsgSchemeIdUris;if(0===l.version){var n=l.reader.Rc();var p=l.reader.Rc();var r=l.reader.R();var v=l.reader.R();var y=l.reader.R();var x=l.reader.R();var w=e.startTime+v/r}else r=l.reader.R(),w=l.reader.nc()/r+e.timestampOffset,v=w-e.startTime,y=l.reader.R(),x=l.reader.R(),
339
- n=l.reader.Rc(),p=l.reader.Rc();l=l.reader.Cb(l.reader.W.byteLength-l.reader.oa());if(m&&m.includes(n)||a.j.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==n?a.g.Xg():(m=(new Map).set("detail",{startTime:w,endTime:w+y/r,schemeIdUri:n,value:p,timescale:r,presentationTimeDelta:v,eventDuration:y,id:x,messageData:l}),m=new O("emsg",m),a.g.onEvent(m))}).parse(f),z(k,Yj(a,b,c),2);if(3!=k.g)return zf(a.h),h=b.Tc,b.Tc=!1,z(k,vi(a.g.V,b.type,f,e,g,h),3);zf(a.h);A(k)})}
340
- function Yj(a,b,c){var d,e,f,g;return J(function(h){if(1==h.g){d=Math.max(a.j.bufferBehind,a.m.presentationTimeline.g);e=ri(a.g.V,b.type);if(null==e)return h["return"]();f=c-e;g=f-d;return.01>=g?h["return"]():z(h,a.g.V.remove(b.type,e,e+g),2)}zf(a.h);A(h)})}function Pj(a){return a&&a.type==Ib&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
341
- function Vj(a,b,c,d){var e,f,g,h,k;return J(function(l){if(1==l.g)return e=xf,f=vj(c.Pa(),c.Ta,c.Ca,a.j.retryParameters,d),g=b.stream,a.g.modifySegmentRequest(f,{type:g.type,init:c instanceof $h,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.g.Ob.request(e,f),b.Ja=h,z(l,h.promise,2);k=l.h;b.Ja=null;return l["return"](k.data)})}
342
- function Jj(a,b,c,d){var e,f;return J(function(g){if(1==g.g)return b.Tb=!1,b.Jd=!1,b.hd=0,b.Bc=!0,b.Ra=null,b.rd=null,b.sa=null,d?(e=a.g.nd(),f=a.g.V.getDuration(),z(g,a.g.V.remove(b.type,e+d,f),3)):z(g,Ci(a.g.V,b.type),4);if(3!=g.g)return zf(a.h),c?z(g,a.g.V.flush(b.type),3):g.D(3);zf(a.h);b.Bc=!1;b.endOfStream=!1;Dj(a,b,0);A(g)})}
343
- function Dj(a,b,c){var d=b.type;if(d!=Ib||a.i.has(d))b.eb=(new Oc(function(){var e;return J(function(f){if(1==f.g)return F(f,2),z(f,Mj(a,b),4);if(2!=f.g)return va(f,0);e=I(f);if(a.g)a.g.onError(e);A(f)})})).T(c)}function yj(a){null!=a.eb&&(a.eb.stop(),a.eb=null)}function zj(a){return J(function(b){return a.Ja?z(b,a.Ja.abort(),0):b.D(0)})}function Oj(a,b){return J(function(c){if(1==c.g)return z(c,af(a.G),2);zf(a.h);a.g.onError(b);b.handled||a.j.failureCallback(b);A(c)})};function Zj(a,b){var c=ak(),d=this;this.j=b;this.i=a;this.l=c;this.A=null;this.m=[];this.h=this.g=null;this.C=Promise.resolve().then(function(){return bk(d)});this.B=new yf(function(){return ck(d)})}Zj.prototype.destroy=function(){return this.B.destroy()};function ck(a){var b,c,d;return J(function(e){if(1==e.g)return a.h&&a.h.abort(),dk(a),z(e,a.C,2);a.g&&a.g.$a.Pb();b=t(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.$a.Pb();a.g=null;a.m=[];a.j=null;A(e)})}
336
+ function Sj(a,b,c){var d,e,f,g,h,k,l;return I(function(m){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.ie||e!=b.ge||f!=b.fe)h=function(){var n;return I(function(p){if(1==p.g)return A(p,2),b.ge=e,b.fe=f,b.ie=g,u(p,Di(a.g.V,b.type,g,e,f,a.m.sequenceMode),4);if(2!=p.g)return va(p,0);n=F(p);b.ge=null;b.fe=null;b.ie=null;throw n;})},d.push(h());!ai(c.i,b.rd)&&(b.rd=c.i)&&(k=Vj(a,b,c.i),l=function(){var n,p,r;return I(function(v){switch(v.g){case 1:return A(v,
337
+ 2),u(v,k,4);case 4:return n=v.h,zf(a.h),p=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,u(v,vi(a.g.V,b.type,n,null,p),5);case 5:va(v,0);break;case 2:throw r=F(v),b.rd=null,r;}})},a.g.Wg(c.startTime,c.i),d.push(l()));return u(m,Promise.all(d),0)})}
338
+ function Uj(a,b,c,d,e,f){var g,h;return I(function(k){if(1==k.g)return g=d.closedCaptions&&0<d.closedCaptions.size,(null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.j.dispatchAllEmsgBoxes)&&(new Eg).Y("emsg",function(l){var m=d.emsgSchemeIdUris;if(0===l.version){var n=l.reader.Rc();var p=l.reader.Rc();var r=l.reader.R();var v=l.reader.R();var y=l.reader.R();var x=l.reader.R();var w=e.startTime+v/r}else r=l.reader.R(),w=l.reader.nc()/r+e.timestampOffset,v=w-e.startTime,y=l.reader.R(),x=l.reader.R(),
339
+ n=l.reader.Rc(),p=l.reader.Rc();l=l.reader.Cb(l.reader.W.byteLength-l.reader.oa());if(m&&m.includes(n)||a.j.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==n?a.g.Xg():(m=(new Map).set("detail",{startTime:w,endTime:w+y/r,schemeIdUri:n,value:p,timescale:r,presentationTimeDelta:v,eventDuration:y,id:x,messageData:l}),m=new M("emsg",m),a.g.onEvent(m))}).parse(f),u(k,Yj(a,b,c),2);if(3!=k.g)return zf(a.h),h=b.Tc,b.Tc=!1,u(k,vi(a.g.V,b.type,f,e,g,h),3);zf(a.h);z(k)})}
340
+ function Yj(a,b,c){var d,e,f,g;return I(function(h){if(1==h.g){d=Math.max(a.j.bufferBehind,a.m.presentationTimeline.g);e=ri(a.g.V,b.type);if(null==e)return h["return"]();f=c-e;g=f-d;return.01>=g?h["return"]():u(h,a.g.V.remove(b.type,e,e+g),2)}zf(a.h);z(h)})}function Pj(a){return a&&a.type==Ib&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
341
+ function Vj(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=xf,f=vj(c.Pa(),c.Ta,c.Ba,a.j.retryParameters,d),g=b.stream,a.g.modifySegmentRequest(f,{type:g.type,init:c instanceof $h,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.g.Ob.request(e,f),b.Ia=h,u(l,h.promise,2);k=l.h;b.Ia=null;return l["return"](k.data)})}
342
+ function Jj(a,b,c,d){var e,f;return I(function(g){if(1==g.g)return b.Tb=!1,b.Jd=!1,b.hd=0,b.Bc=!0,b.Ra=null,b.rd=null,b.sa=null,d?(e=a.g.nd(),f=a.g.V.getDuration(),u(g,a.g.V.remove(b.type,e+d,f),3)):u(g,Ci(a.g.V,b.type),4);if(3!=g.g)return zf(a.h),c?u(g,a.g.V.flush(b.type),3):g.D(3);zf(a.h);b.Bc=!1;b.endOfStream=!1;Dj(a,b,0);z(g)})}
343
+ function Dj(a,b,c){var d=b.type;if(d!=Ib||a.i.has(d))b.eb=(new Nc(function(){var e;return I(function(f){if(1==f.g)return A(f,2),u(f,Mj(a,b),4);if(2!=f.g)return va(f,0);e=F(f);if(a.g)a.g.onError(e);z(f)})})).T(c)}function yj(a){null!=a.eb&&(a.eb.stop(),a.eb=null)}function zj(a){return I(function(b){return a.Ia?u(b,a.Ia.abort(),0):b.D(0)})}function Oj(a,b){return I(function(c){if(1==c.g)return u(c,af(a.G),2);zf(a.h);a.g.onError(b);b.handled||a.j.failureCallback(b);z(c)})};function Zj(a,b){var c=ak(),d=this;this.j=b;this.i=a;this.l=c;this.A=null;this.m=[];this.h=this.g=null;this.C=Promise.resolve().then(function(){return bk(d)});this.B=new yf(function(){return ck(d)})}Zj.prototype.destroy=function(){return this.B.destroy()};function ck(a){var b,c,d;return I(function(e){if(1==e.g)return a.h&&a.h.abort(),dk(a),u(e,a.C,2);a.g&&a.g.$a.Pb();b=t(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.$a.Pb();a.g=null;a.m=[];a.j=null;z(e)})}
344
344
  function ek(a,b){var c={lc:function(){},wd:function(){},Pb:function(){},onError:function(){},yd:function(){},$i:function(){}};a.m.push({create:b,$a:c});a.h&&a.h.abort();dk(a);return c}
345
- function bk(a){return J(function(b){if(a.B.g)b=b.D(0);else{if(0==a.m.length||a.g&&!a.g.Jb)var c=!1;else{a.g&&(a.g.$a.Pb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.$a.lc(),a.g={node:d.node,payload:d.payload,Jb:d.Jb,$a:c.$a}):c.$a.yd();c=!0}c?c=Promise.resolve():a.g?c=fk(a):(a.j.Vg(a.i),a.A=new Mc,c=a.A);b=z(b,c,1)}return b})}
346
- function fk(a){var b,c;return J(function(d){switch(d.g){case 1:return a.i=a.j.Bg(a.i,a.l,a.g.node,a.g.payload),F(d,2),a.h=a.j.fg(a.i,a.l,a.g.payload),z(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.$a.wd(),a.g=null);va(d,0);break;case 2:b=I(d);if(7001==b.code)a.g.$a.Pb();else a.g.$a.onError(b);a.g=null;a.h=null;c=a;return z(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,A(d)}})}function dk(a){a.A&&(a.A.resolve(),a.A=null)};function gk(a){this.g=null;for(var b=t(Array.from(a.textTracks)),c=b.next();!c.done;c=b.next())c=c.value,c.mode="disabled","Shaka Player TextTrack"==c.label&&(this.g=c);this.g||(this.g=a.addTextTrack("subtitles","Shaka Player TextTrack"));this.g.mode="hidden"}q=gk.prototype;q.remove=function(a,b){if(!this.g)return!1;hk(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
345
+ function bk(a){return I(function(b){if(a.B.g)b=b.D(0);else{if(0==a.m.length||a.g&&!a.g.Jb)var c=!1;else{a.g&&(a.g.$a.Pb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.$a.lc(),a.g={node:d.node,payload:d.payload,Jb:d.Jb,$a:c.$a}):c.$a.yd();c=!0}c?c=Promise.resolve():a.g?c=fk(a):(a.j.Vg(a.i),a.A=new Lc,c=a.A);b=u(b,c,1)}return b})}
346
+ function fk(a){var b,c;return I(function(d){switch(d.g){case 1:return a.i=a.j.Bg(a.i,a.l,a.g.node,a.g.payload),A(d,2),a.h=a.j.fg(a.i,a.l,a.g.payload),u(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.$a.wd(),a.g=null);va(d,0);break;case 2:b=F(d);if(7001==b.code)a.g.$a.Pb();else a.g.$a.onError(b);a.g=null;a.h=null;c=a;return u(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,z(d)}})}function dk(a){a.A&&(a.A.resolve(),a.A=null)};function gk(a){this.g=null;for(var b=t(Array.from(a.textTracks)),c=b.next();!c.done;c=b.next())c=c.value,c.mode="disabled","Shaka Player TextTrack"==c.label&&(this.g=c);this.g||(this.g=a.addTextTrack("subtitles","Shaka Player TextTrack"));this.g.mode="hidden"}q=gk.prototype;q.remove=function(a,b){if(!this.g)return!1;hk(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
347
347
  q.append=function(a){function b(h,k){for(var l=t(h),m=l.next();!m.done;m=l.next())if(m=m.value,m.isContainer)b(m.nestedCues,k);else{var n=m.clone();n.nestedCues=[];n.payload=c(m);k.push(n)}return k}function c(h){var k=[],l=700<=h.fontWeight,m="italic"==h.fontStyle,n=h.textDecoration.includes("underline");l&&k.push("b");m&&k.push("i");n&&k.push("u");l=k.reduce(function(p,r){return p+"<"+r+">"},"");k=k.reduceRight(function(p,r){return p+"</"+r+">"},"");return h.lineBreak?"\n":h.nestedCues.length?h.nestedCues.map(c).join(""):
348
348
  l+h.payload+k}var d=b(a,[]),e=[];a=this.g.cues?Array.from(this.g.cues):[];var f={};d=t(d);for(var g=d.next();!g.done;f={Wb:f.Wb},g=d.next())f.Wb=g.value,a.some(function(h){return function(k){return k.startTime==h.Wb.startTime&&k.endTime==h.Wb.endTime&&k.text==h.Wb.payload?!0:!1}}(f))||(g=ik(f.Wb))&&e.push(g);a=e.slice().sort(function(h,k){return h.startTime!=k.startTime?h.startTime-k.startTime:h.endTime!=k.endTime?h.endTime-k.startTime:"line"in VTTCue.prototype?e.indexOf(k)-e.indexOf(h):e.indexOf(h)-
349
349
  e.indexOf(k)});a=t(a);for(f=a.next();!f.done;f=a.next())this.g.addCue(f.value)};q.destroy=function(){this.g&&(hk(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"};
350
350
  function ik(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}
351
- function hk(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}M("shaka.text.SimpleTextDisplayer",gk);gk.prototype.setTextVisibility=gk.prototype.setTextVisibility;gk.prototype.isTextVisible=gk.prototype.isTextVisible;gk.prototype.destroy=gk.prototype.destroy;gk.prototype.append=gk.prototype.append;gk.prototype.remove=gk.prototype.remove;function jk(){}function S(a){return document.createElement(a)}function kk(){return document.createElement("button")}function lk(a){for(;a.firstChild;)a.removeChild(a.firstChild)}M("shaka.util.Dom",jk);jk.removeAllChildren=lk;function mk(a,b){var c=this;this.j=!1;this.i=[];this.F=a;this.m=b;this.g=S("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.m.appendChild(this.g);this.C=(new Q(function(){nk(c)})).ka(.25);this.h=new Map;this.B=new Af;this.B.o(document,"fullscreenchange",function(){nk(c,!0)});this.l=null;"ResizeObserver"in window&&(this.l=new ResizeObserver(function(){nk(c,
352
- !0)}),this.l.observe(this.g));this.A=new Map}q=mk.prototype;q.append=function(a){var b=[].concat(ja(this.i)),c={};a=t(a);for(var d=a.next();!d.done;c={Yc:c.Yc},d=a.next())c.Yc=d.value,b.some(function(e){return function(f){return rc(f,e.Yc)}}(c))||this.i.push(c.Yc);nk(this)};q.destroy=function(){this.m.removeChild(this.g);this.g=null;this.j=!1;this.i=[];this.C&&this.C.stop();this.h.clear();this.B&&(this.B.release(),this.B=null);this.l&&(this.l.disconnect(),this.l=null)};
351
+ function hk(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}J("shaka.text.SimpleTextDisplayer",gk);gk.prototype.setTextVisibility=gk.prototype.setTextVisibility;gk.prototype.isTextVisible=gk.prototype.isTextVisible;gk.prototype.destroy=gk.prototype.destroy;gk.prototype.append=gk.prototype.append;gk.prototype.remove=gk.prototype.remove;function jk(){}function R(a){return document.createElement(a)}function kk(){return document.createElement("button")}function lk(a){for(;a.firstChild;)a.removeChild(a.firstChild)}J("shaka.util.Dom",jk);jk.removeAllChildren=lk;function mk(a,b){var c=this;this.j=!1;this.i=[];this.F=a;this.m=b;this.g=R("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.m.appendChild(this.g);this.C=(new P(function(){nk(c)})).ka(.25);this.h=new Map;this.B=new Af;this.B.o(document,"fullscreenchange",function(){nk(c,!0)});this.l=null;"ResizeObserver"in window&&(this.l=new ResizeObserver(function(){nk(c,
352
+ !0)}),this.l.observe(this.g));this.A=new Map}q=mk.prototype;q.append=function(a){var b=[].concat(ia(this.i)),c={};a=t(a);for(var d=a.next();!d.done;c={Yc:c.Yc},d=a.next())c.Yc=d.value,b.some(function(e){return function(f){return sc(f,e.Yc)}}(c))||this.i.push(c.Yc);nk(this)};q.destroy=function(){this.m.removeChild(this.g);this.g=null;this.j=!1;this.i=[];this.C&&this.C.stop();this.h.clear();this.B&&(this.B.release(),this.B=null);this.l&&(this.l.disconnect(),this.l=null)};
353
353
  q.remove=function(a,b){if(!this.g)return!1;var c=this.i.length;this.i=this.i.filter(function(d){return d.startTime<a||d.endTime>=b});nk(this,c>this.i.length);return!0};q.isTextVisible=function(){return this.j};q.setTextVisibility=function(a){this.j=a};
354
354
  function ok(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Pf:null;l&&(g.push(l.$d),l.Sc&&g.push(l.Sc),m||(f=!0,a.h["delete"](k),l=null));m&&(h.push(k),l||(pk(a,k,e),l=a.h.get(k),n=l.Pf,f=!0));0<k.nestedCues.length&&n&&ok(a,k.nestedCues,n,d,e);e.pop()}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(p,r){return p.startTime!=r.startTime?
355
355
  p.startTime-r.startTime:p.endTime-r.endTime});h=t(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Sc?(c.appendChild(d.Sc),d.Sc.appendChild(d.$d)):c.appendChild(d.$d)}}function nk(a,b){if(a.g){var c=a.F.currentTime;if(!a.j||(void 0===b?0:b)){for(var d=t(a.A.values()),e=d.next();!e.done;e=d.next())lk(e.value);lk(a.g);a.h.clear();a.A.clear()}if(a.j){d=new Map;e=t(a.h.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,d.set(f,a.h.get(f));ok(a,a.i,a.g,c,[])}}}
356
- function pk(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");d=!d&&0<b.nestedCues.length;var f=S(e);"br"!=e&&qk(a,f,b,c,d);c=null;if(b.region&&b.region.id)if(c=b.region,a.A.has(c.id))c=a.A.get(c.id);else{e=S("span");var g=c.heightUnits==Ac?"%":"px",h=c.widthUnits==Ac?"%":"px",k=c.viewportAnchorUnits==Ac?"%":"px";e.id="shaka-text-region---"+c.id;e.classList.add("shaka-text-region");e.style.height=c.height+g;e.style.width=c.width+h;e.style.position="absolute";e.style.top=c.viewportAnchorY+
357
- k;e.style.left=c.viewportAnchorX+k;e.style.display="flex";e.style.flexDirection="column";e.style.alignItems="center";e.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.A.set(c.id,e);c=e}e=f;d&&(e=S("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,f.appendChild(e));a.h.set(b,{$d:f,Pf:e,Sc:c})}
356
+ function pk(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");d=!d&&0<b.nestedCues.length;var f=R(e);"br"!=e&&qk(a,f,b,c,d);c=null;if(b.region&&b.region.id)if(c=b.region,a.A.has(c.id))c=a.A.get(c.id);else{e=R("span");var g=c.heightUnits==zc?"%":"px",h=c.widthUnits==zc?"%":"px",k=c.viewportAnchorUnits==zc?"%":"px";e.id="shaka-text-region---"+c.id;e.classList.add("shaka-text-region");e.style.height=c.height+g;e.style.width=c.width+h;e.style.position="absolute";e.style.top=c.viewportAnchorY+
357
+ k;e.style.left=c.viewportAnchorX+k;e.style.display="flex";e.style.flexDirection="column";e.style.alignItems="center";e.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.A.set(c.id,e);c=e}e=f;d&&(e=R("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,f.appendChild(e));a.h.set(b,{$d:f,Pf:e,Sc:c})}
358
358
  function qk(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=rk(c.linePadding,c,a.m);f.paddingRight=rk(c.linePadding,c,a.m);f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage="url('"+c.backgroundImage+"')",f.backgroundRepeat=
359
- "no-repeat",f.backgroundSize="contain",f.backgroundPosition="center";else{if(c.nestedCues.length)var l=b;else l=S("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=sk(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));k&&(l.textContent=k)}h&&!d[d.length-1].isContainer?f.display="inline":(f.display="flex",f.flexDirection="column",f.alignItems="center",f.justifyContent="before"==c.displayAlign?"flex-start":"center"==
360
- c.displayAlign?"center":"flex-end");g||(f.margin="0");f.fontFamily=c.fontFamily;f.fontWeight=c.fontWeight.toString();f.fontStyle=c.fontStyle;f.letterSpacing=c.letterSpacing;f.fontSize=rk(c.fontSize,c,a.m);c.line&&1==c.lineInterpretation&&(f.position="absolute",f.left="0",f.top="0",c.writingMode==lc?(f.width="100%",c.lineAlign==nc?f.top=c.line+"%":"end"==c.lineAlign&&(f.bottom=c.line+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==nc?f.left=c.line+"%":"end"==c.lineAlign&&(f.right=
361
- c.line+"%")):(f.height="100%",c.lineAlign==nc?f.right=c.line+"%":"end"==c.lineAlign&&(f.left=c.line+"%")));f.lineHeight=c.lineHeight;c.position&&(c.writingMode==lc?f.paddingLeft=c.position:f.paddingTop=c.position);"line-left"==c.positionAlign?f.cssFloat="left":"line-right"==c.positionAlign&&(f.cssFloat="right");f.textAlign=c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==c.writingMode||(f.webkitWritingMode=
362
- c.writingMode);c.size&&(c.writingMode==lc?f.width=c.size+"%":f.height=c.size+"%")}function rk(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(d[1]),unit:d[2]}:null;if(!d)return a;var e=d.value;switch(d.unit){case "%":return e/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*e/b.cellResolution.rows+"px";default:return a}}function sk(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}
363
- M("shaka.text.UITextDisplayer",mk);mk.prototype.setTextVisibility=mk.prototype.setTextVisibility;mk.prototype.isTextVisible=mk.prototype.isTextVisible;mk.prototype.remove=mk.prototype.remove;mk.prototype.destroy=mk.prototype.destroy;mk.prototype.append=mk.prototype.append;function tk(a,b){function c(h){for(var k=h,l=t(b),m=l.next();!m.done;m=l.next())m=m.value,m.end&&m.start<h&&(k+=m.end-m.start);h=Math.floor(k/3600);l=Math.floor(k/60%60);m=Math.floor(k%60);k=Math.floor(1E3*k%1E3);return(10>h?"0":"")+h+":"+(10>l?"0":"")+l+":"+(10>m?"0":"")+m+"."+(100>k?10>k?"00":"0":"")+k}function d(h){var k=[],l=700<=h.fontWeight,m="italic"==h.fontStyle,n=h.textDecoration.includes("underline");l&&k.push("b");m&&k.push("i");n&&k.push("u");l=k.reduce(function(p,r){return p+"<"+r+">"},
364
- "");k=k.reduceRight(function(p,r){return p+"</"+r+">"},"");return h.lineBreak?"\n":h.nestedCues.length?h.nestedCues.map(d).join(""):l+h.payload+k}var e=a.map(function(h){if(h.nestedCues.length){var k=h.clone();k.nestedCues=[];k.payload=d(h);return k}return h}),f="WEBVTT\n\n";e=t(e);for(var g=e.next();!g.done;g=e.next())g=g.value,f+=c(g.startTime)+" --\x3e "+c(g.endTime)+function(h){var k=[];switch(h.textAlign){case "left":k.push("align:left");break;case "right":k.push("align:right");break;case kc:k.push("align:middle");
365
- break;case "start":k.push("align:start");break;case "end":k.push("align:end")}switch(h.writingMode){case "vertical-lr":k.push("vertical:lr");break;case "vertical-rl":k.push("vertical:rl")}return k.length?" "+k.join(" "):""}(g)+"\n",f+=g.payload+"\n\n";return f}M("shaka.text.WebVttGenerator",function(){});function uk(a,b){this.h=a;this.g=b;this.j="";this.A=void 0;this.i=!1;this.m=!0;this.l=!1}function vk(a,b,c){try{if(a.g.enabled){var d={d:1E3*c.duration,st:a.h.U()?wk:xk};d.ot=yk(c);var e=d.ot===zk||d.ot===Ak||d.ot===Bk||d.ot===Ck;e&&(d.bl=Dk(a,c.type));c.bandwidth&&(d.br=c.bandwidth/1E3);e&&d.ot!==Ck&&(d.tb=Ek(a,d.ot)/1E3);Fk(a,b,d)}}catch(f){Va("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",f)}}
359
+ "no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=R("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=sk(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));k&&(l.textContent=k)}h&&!d[d.length-1].isContainer?f.display="inline":(f.display="flex",f.flexDirection="column",f.alignItems="center",f.justifyContent="before"==c.displayAlign?
360
+ "flex-start":"center"==c.displayAlign?"center":"flex-end");g||(f.margin="0");f.fontFamily=c.fontFamily;f.fontWeight=c.fontWeight.toString();f.fontStyle=c.fontStyle;f.letterSpacing=c.letterSpacing;f.fontSize=rk(c.fontSize,c,a.m);c.line&&1==c.lineInterpretation&&(f.position="absolute",f.left="0",f.top="0",c.writingMode==mc?(f.width="100%",c.lineAlign==oc?f.top=c.line+"%":"end"==c.lineAlign&&(f.bottom=c.line+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==oc?f.left=c.line+"%":"end"==
361
+ c.lineAlign&&(f.right=c.line+"%")):(f.height="100%",c.lineAlign==oc?f.right=c.line+"%":"end"==c.lineAlign&&(f.left=c.line+"%")));f.lineHeight=c.lineHeight;c.position&&(c.writingMode==mc?f.paddingLeft=c.position:f.paddingTop=c.position);"line-left"==c.positionAlign?f.cssFloat="left":"line-right"==c.positionAlign&&(f.cssFloat="right");f.textAlign=c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==c.writingMode||
362
+ (f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==mc?f.width=c.size+"%":f.height=c.size+"%")}function rk(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(d[1]),unit:d[2]}:null;if(!d)return a;var e=d.value;switch(d.unit){case "%":return e/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*e/b.cellResolution.rows+"px";default:return a}}function sk(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}
363
+ J("shaka.text.UITextDisplayer",mk);mk.prototype.setTextVisibility=mk.prototype.setTextVisibility;mk.prototype.isTextVisible=mk.prototype.isTextVisible;mk.prototype.remove=mk.prototype.remove;mk.prototype.destroy=mk.prototype.destroy;mk.prototype.append=mk.prototype.append;function tk(a,b){function c(h){for(var k=h,l=t(b),m=l.next();!m.done;m=l.next())m=m.value,m.end&&m.start<h&&(k+=m.end-m.start);h=Math.floor(k/3600);l=Math.floor(k/60%60);m=Math.floor(k%60);k=Math.floor(1E3*k%1E3);return(10>h?"0":"")+h+":"+(10>l?"0":"")+l+":"+(10>m?"0":"")+m+"."+(100>k?10>k?"00":"0":"")+k}function d(h){var k=[],l=700<=h.fontWeight,m="italic"==h.fontStyle,n=h.textDecoration.includes("underline");l&&k.push("b");m&&k.push("i");n&&k.push("u");l=k.reduce(function(p,r){return p+"<"+r+">"},
364
+ "");k=k.reduceRight(function(p,r){return p+"</"+r+">"},"");return h.lineBreak?"\n":h.nestedCues.length?h.nestedCues.map(d).join(""):l+h.payload+k}var e=a.map(function(h){if(h.nestedCues.length){var k=h.clone();k.nestedCues=[];k.payload=d(h);return k}return h}),f="WEBVTT\n\n";e=t(e);for(var g=e.next();!g.done;g=e.next())g=g.value,f+=c(g.startTime)+" --\x3e "+c(g.endTime)+function(h){var k=[];switch(h.textAlign){case "left":k.push("align:left");break;case "right":k.push("align:right");break;case lc:k.push("align:middle");
365
+ break;case "start":k.push("align:start");break;case "end":k.push("align:end")}switch(h.writingMode){case "vertical-lr":k.push("vertical:lr");break;case "vertical-rl":k.push("vertical:rl")}return k.length?" "+k.join(" "):""}(g)+"\n",f+=g.payload+"\n\n";return f}J("shaka.text.WebVttGenerator",function(){});function uk(a,b){this.h=a;this.g=b;this.j="";this.A=void 0;this.i=!1;this.m=!0;this.l=!1}function vk(a,b,c){try{if(a.g.enabled){var d={d:1E3*c.duration,st:a.h.U()?wk:xk};d.ot=yk(c);var e=d.ot===zk||d.ot===Ak||d.ot===Bk||d.ot===Ck;e&&(d.bl=Dk(a,c.type));c.bandwidth&&(d.br=c.bandwidth/1E3);e&&d.ot!==Ck&&(d.tb=Ek(a,d.ot)/1E3);Fk(a,b,d)}}catch(f){Va("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",f)}}
366
366
  function Gk(a,b,c){try{if(!a.g.enabled)return b;var d=Hk(a);a:{switch(c){case "video/webm":case "video/mp4":var e=Bk;break a;case "application/x-mpegurl":e=Ik;break a}e=void 0}d.ot=e;d.su=!0;var f=Jk(d);return Kk(b,f)}catch(g){return Va("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function Hk(a){a.j||(a.j=a.g.sessionId||window.crypto.randomUUID());return{v:1,sf:a.A,sid:a.j,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}
367
367
  function Fk(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,Hk(a));c.pr=a.h.zb();var e=c.ot===zk||c.ot===Bk;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=Lk(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=Jk(c);f&&(b.uris=b.uris.map(function(g){return Kk(g,f)}))}}}
368
368
  function yk(a){var b=a.type;if(a.init)return Mk;if("video"==b)return a.codecs.includes(",")?Bk:zk;if("audio"==b)return Ak;if("text"==b)return"application/mp4"===a.mimeType?Ck:Nk}function Dk(a,b){var c=a.h.kb()[b];if(!c.length)return NaN;var d=a.h.getCurrentTime();return(c=c.find(function(e){return e.start<=d&&e.end>=d}))?1E3*(c.end-d):NaN}
369
369
  function Ek(a,b){var c=a.h.Qa();if(!c.length)return NaN;var d=c[0];c=t(c);for(var e=c.next();!e.done;e=c.next())e=e.value,"variant"===e.type&&e.bandwidth>d.bandwidth&&(d=e);switch(b){case zk:return d.videoBandwidth||NaN;case Ak:return d.audioBandwidth||NaN;default:return d.bandwidth}}
370
370
  function Jk(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=t(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"===
371
371
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function Lk(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=t(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=Jk(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
372
- function Kk(a,b){if(!b||a.includes("offline:"))return a;var c=new lb(a);c.g.set("CMCD",b);return c.toString()}var Ik="m",Ak="a",zk="v",Bk="av",Mk="i",Nk="c",Ck="tt",xk="v",wk="l";M("shaka.util.CmcdManager.StreamingFormat",{Jh:"d",Yh:"h",Gi:"s",ni:"o"});function Ok(){}
372
+ function Kk(a,b){if(!b||a.includes("offline:"))return a;var c=new lb(a);c.g.set("CMCD",b);return c.toString()}var Ik="m",Ak="a",zk="v",Bk="av",Mk="i",Nk="c",Ck="tt",xk="v",wk="l";J("shaka.util.CmcdManager.StreamingFormat",{Jh:"d",Yh:"h",Gi:"s",ni:"o"});function Ok(){}
373
373
  function Pk(a,b,c,d,e){var f=e in d,g=!0,h;for(h in b){var k=e+"."+h,l=f?d[e]:c[h];f||h in c?void 0===b[h]?void 0===l||f?delete a[h]:a[h]=jf(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=jf(l)),k=Pk(a[h],b[h],l,d,k),g=g&&k):typeof b[h]!=typeof l||null==b[h]||"function"!=typeof b[h]&&b[h].constructor!=l.constructor?(Ta("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Ua("Unexpected number of arguments for "+k),a[h]=b[h]):(Ta("Invalid config, unrecognized key "+
374
- k),g=!1)}return g}function Qk(a,b){for(var c={},d=c,e=0,f=0;;){e=a.indexOf(".",e);if(0>e)break;if(0==e||"\\"!=a[e-1])f=a.substring(f,e).replace(/\\\./g,"."),d[f]={},d=d[f],f=e+1;e+=1}d[a.substring(f).replace(/\\\./g,".")]=b;return c}function Rk(a,b){return a&&b}M("shaka.util.ConfigUtils",Ok);Ok.convertToConfigObject=Qk;Ok.mergeConfigObjects=Pk;function Sk(){}
374
+ k),g=!1)}return g}function Qk(a,b){for(var c={},d=c,e=0,f=0;;){e=a.indexOf(".",e);if(0>e)break;if(0==e||"\\"!=a[e-1])f=a.substring(f,e).replace(/\\\./g,"."),d[f]={},d=d[f],f=e+1;e+=1}d[a.substring(f).replace(/\\\./g,".")]=b;return c}function Rk(a,b){return a&&b}J("shaka.util.ConfigUtils",Ok);Ok.convertToConfigObject=Qk;Ok.mergeConfigObjects=Pk;function Sk(){}
375
375
  function Tk(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:$e(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:function(g,h,k){return Rk([g,h,k],g)},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{}},c={retryParameters:$e(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,dash:{clockSyncUri:"",
376
376
  ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready",
377
377
  "urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(g){return Rk([g],g)}},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"'}},d={retryParameters:$e(),failureCallback:function(g){return Rk([g],void 0)},
378
- rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30};if(Tc("Web0S")||Wc()||Tc("CrKey"))d.stallSkip=
379
- 0;var e={trackSelectionCallback:function(g){return J(function(h){return h["return"](g)})},downloadSizeCallback:function(g){var h;return J(function(k){if(1==k.g)return navigator.storage&&navigator.storage.estimate?z(k,navigator.storage.estimate(),3):k["return"](!0);h=k.h;return k["return"](h.usage+g<.95*h.quota)})},progressCallback:function(g,h){return Rk([g,h],void 0)},usePersistentLicense:!0,numberOfParallelDownloads:5},f={drm:b,manifest:c,streaming:d,offline:e,abrFactory:function(){return new Ce},
378
+ rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30};if(Sc("Web0S")||Wc()||Sc("CrKey"))d.stallSkip=
379
+ 0;var e={trackSelectionCallback:function(g){return I(function(h){return h["return"](g)})},downloadSizeCallback:function(g){var h;return I(function(k){if(1==k.g)return navigator.storage&&navigator.storage.estimate?u(k,navigator.storage.estimate(),3):k["return"](!0);h=k.h;return k["return"](h.usage+g<.95*h.quota)})},progressCallback:function(g,h){return Rk([g,h],void 0)},usePersistentLicense:!0,numberOfParallelDownloads:5},f={drm:b,manifest:c,streaming:d,offline:e,abrFactory:function(){return new De},
380
380
  abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},advanced:{minTotalBytes:128E3,minBytes:16E3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,ignoreDevicePixelRatio:!1},preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",
381
- preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},playRangeStart:0,playRangeEnd:Infinity,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1}};e.trackSelectionCallback=function(g){return J(function(h){return h["return"](Uk(g,
382
- f.preferredAudioLanguage))})};return f}function Vk(a,b,c){var d={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return Pk(a,b,c||Tk(),d,"")}
381
+ preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},playRangeStart:0,playRangeEnd:Infinity,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1}};e.trackSelectionCallback=function(g){return I(function(h){return h["return"](Uk(g,
382
+ f.preferredAudioLanguage))})};return f}function Vk(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 Pk(a,b,c||Tk(),d,"")}
383
383
  function Uk(a,b){var c=a.filter(function(h){return"variant"==h.type}),d=[],e=Ub(b,c.map(function(h){return h.language}));e&&(d=c.filter(function(h){return Mb(h.language)==e}));0==d.length&&(d=c.filter(function(h){return h.primary}));0==d.length&&(c.map(function(h){return h.language}),d=c);var f=d.filter(function(h){return h.height&&480>=h.height});f.length&&(f.sort(function(h,k){return k.height-h.height}),d=f.filter(function(h){return h.height==f[0].height}));c=[];if(d.length){var g=Math.floor(d.length/
384
- 2);d.sort(function(h,k){return h.bandwidth-k.bandwidth});c.push(d[g])}d=t(a);for(g=d.next();!g.done;g=d.next())g=g.value,g.type!=Ib&&"image"!=g.type||c.push(g);return c}M("shaka.util.PlayerConfiguration",Sk);Sk.mergeConfigObjects=Vk;Sk.createDefault=Tk;function Wk(){this.g=null;this.h=[]}function Xk(a,b){if(null==a.g)a.g={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.g.duration=c-a.g.timestamp;a.g.state!=b&&(a.h.push(a.g),a.g={timestamp:c,state:b,duration:0})}}function Yk(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);for(var d=t(a.h),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c}
385
- function Zk(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(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 $k(){this.i=this.h=null;this.g=[]}function al(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 bl(){this.A=this.B=this.H=this.F=this.m=this.j=this.G=this.l=this.i=this.N=this.P=this.I=this.J=this.K=this.C=this.S=NaN;this.g=new Wk;this.h=new $k};function T(a,b){fb.call(this);var c=this;this.l=cl;this.pd=this.g=null;this.ba=!1;this.td=new Af;this.hb=new Af;this.A=new Af;this.se=this.C=this.gb=this.i=this.vd=this.J=this.j=this.ea=this.S=this.Cd=this.N=this.qd=this.I=this.Xa=this.F=this.K=this.m=this.H=null;this.Rf=1E9;this.h=dl(this);this.Dc={width:Infinity,height:Infinity};this.B=null;this.va=new Re(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.za=this.h.preferredTextLanguage;this.wb=this.h.preferredTextRole;
384
+ 2);d.sort(function(h,k){return h.bandwidth-k.bandwidth});c.push(d[g])}d=t(a);for(g=d.next();!g.done;g=d.next())g=g.value,g.type!=Ib&&"image"!=g.type||c.push(g);return c}J("shaka.util.PlayerConfiguration",Sk);Sk.mergeConfigObjects=Vk;Sk.createDefault=Tk;function Wk(){this.g=null;this.h=[]}function Xk(a,b){if(null==a.g)a.g={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.g.duration=c-a.g.timestamp;a.g.state!=b&&(a.h.push(a.g),a.g={timestamp:c,state:b,duration:0})}}function Yk(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);for(var d=t(a.h),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c}
385
+ function Zk(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(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 $k(){this.i=this.h=null;this.g=[]}function al(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 bl(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.P=this.S=this.J=this.K=this.N=this.l=this.A=NaN;this.g=new Wk;this.h=new $k};function S(a,b){fb.call(this);var c=this;this.l=cl;this.pd=this.g=null;this.ba=!1;this.td=new Af;this.hb=new Af;this.B=new Af;this.se=this.C=this.gb=this.i=this.vd=this.J=this.j=this.ea=this.S=this.Cd=this.N=this.qd=this.I=this.Xa=this.F=this.K=this.m=this.H=null;this.Rf=1E9;this.h=dl(this);this.Dc={width:Infinity,height:Infinity};this.A=null;this.ya=new Re(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.Ka=this.h.preferredTextLanguage;this.wb=this.h.preferredTextRole;
386
386
  this.ib=this.h.preferForcedSubs;this.fb=[];this.Jc=null;b&&b(this);this.H=el(this);this.H.Fe(this.h.streaming.forceHTTPS);this.G=null;fl&&(this.G=fl());this.td.o(window,"online",function(){c.we()});this.P={name:"detach"};this.X={name:"attach"};this.aa={name:"unload"};this.Ve={name:"manifest-parser"};this.Ue={name:"manifest"};this.La={name:"media-source"};this.xe={name:"drm-engine"};this.$={name:"load"};this.We={name:"src-equals-drm-engine"};this.Ya={name:"src-equals"};var d=new Map;d.set(this.X,function(e,
387
387
  f){return ff(gl(c,e,f))});d.set(this.P,function(e){e.O&&(c.hb.Qb(),e.O=null);c.G&&c.G.release();c.g=null;e=Promise.resolve();return ff(e)});d.set(this.aa,function(e){return ff(hl(c,e))});d.set(this.La,function(e){e=il(c,e);return ff(e)});d.set(this.Ve,function(e,f){var g=jl(c,e,f);return ff(g)});d.set(this.Ue,function(e){return kl(c,e)});d.set(this.xe,function(e){e=ll(c,e);return ff(e)});d.set(this.$,function(e,f){return ff(ml(c,e,f))});d.set(this.We,function(e,f){var g=nl(c,e,f);return ff(g)});d.set(this.Ya,
388
388
  function(e,f){return ol(c,e,f)});this.ma=new Zj(this.P,{Bg:function(e,f,g,h){var k=null;e==c.P&&(k=g==c.P?c.P:c.X);e==c.X&&(k=g==c.P||f.O!=h.O?c.P:g==c.X?c.X:g==c.La||g==c.$?c.La:g==c.Ya?c.We:null);e==c.La&&(k=g==c.$&&f.O==h.O?c.Ve:c.aa);e==c.Ve&&(k=pl(c.$,c.Ue,c.aa,g,f,h));e==c.Ue&&(k=pl(c.$,c.xe,c.aa,g,f,h));e==c.xe&&(k=pl(c.$,c.$,c.aa,g,f,h));e==c.We&&(k=g==c.Ya&&f.O==h.O?c.Ya:c.aa);if(e==c.$||e==c.Ya)k=c.aa;e==c.aa&&(k=h.O&&f.O==h.O?c.X:c.P);return k},fg:function(e,f,g){c.dispatchEvent(ql("onstatechange",
389
- (new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return J(function(f){return 1==f.g?z(f,hl(c,e),2):f["return"](e.O?c.X:c.P)})},Vg:function(e){c.dispatchEvent(ql("onstateidle",(new Map).set("state",e.name)))}});this.Qf=new Q(function(){ae(c.i.variants,c.h.restrictions,c.Dc)&&rl(c)});a&&this.Ac(a,!0)}u(T,fb);function ql(a,b){return new O(a,b)}q=T.prototype;
390
- q.destroy=function(){var a=this,b;return J(function(c){switch(c.g){case 1:if(a.l==sl)return c["return"]();a.l=sl;b=ek(a.ma,function(){return{node:a.P,payload:ak(),Jb:!1}});return z(c,new Promise(function(d){b.lc=function(){};b.wd=function(){d()};b.Pb=function(){d()};b.onError=function(){d()};b.yd=function(){d()}}),2);case 2:return z(c,a.ma.destroy(),3);case 3:a.td&&(a.td.release(),a.td=null);a.hb&&(a.hb.release(),a.hb=null);a.A&&(a.A.release(),a.A=null);a.se=null;a.C=null;a.h=null;a.B=null;a.pd=null;
391
- a.S=null;if(!a.H){c.D(4);break}return z(c,a.H.destroy(),5);case 5:a.H=null;case 4:fb.prototype.release.call(a),A(c)}})};
392
- function tl(){window.Promise||Ua("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Tc("Trident/"))return!1;var a=$c();return a&&13>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Pc()?!0:Qc("application/x-mpegurl")}
393
- q.Ac=function(a,b){b=void 0===b?!0:b;if(this.l==sl)return Promise.reject(ul());var c=ak();c.O=a;Pc()||(b=!1);var d=b?this.La:this.X,e=ek(this.ma,function(){return{node:d,payload:c,Jb:!1}});e.lc=function(){};return vl(e)};q.detach=function(){var a=this;if(this.l==sl)return Promise.reject(ul());var b=ek(this.ma,function(){return{node:a.P,payload:ak(),Jb:!1}});b.lc=function(){};return vl(b)};
394
- q.Se=function(a){var b=this;a=void 0===a?!0:a;if(this.l==sl)return Promise.reject(ul());Pc()||(a=!1);var c=ak(),d=ek(this.ma,function(e){var f=e.O&&a?b.La:e.O?b.X:b.P;c.O=e.O;return{node:f,payload:c,Jb:!1}});d.lc=function(){};return vl(d)};q.wh=function(a){this.Jc=a};
395
- q.load=function(a,b,c){var d=this;this.Jc=null;if(this.l==sl)return Promise.reject(ul());this.dispatchEvent(ql("loading"));var e=ak();e.uri=a;e.Me=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=wl(this,e)?this.Ya:this.$,g=ek(this.ma,function(h){if(null==h.O)return null;e.O=h.O;return{node:f,payload:e,Jb:!0}});this.B=new bl;this.S=xl(this);g.lc=function(){};return new Promise(function(h,k){g.yd=function(){return k(new P(2,7,7002))};g.wd=function(){h();d.dispatchEvent(ql("loaded"))};
396
- g.Pb=function(){return k(ul())};g.onError=function(l){return k(l)}})};function wl(a,b){if(!Pc())return!0;var c=b.mimeType,d=b.uri||"";c||(c=yg(d),c=yl[c]);if(c){if(""==(b.O||Rc()).canPlayType(c))return!1;if(!Pc()||!(c in xg||yg(d)in zg)||a.h.streaming.preferNativeHls)return!0;if(Yc())return a.h.streaming.useNativeHlsOnSafari}return!1}function gl(a,b,c){null==b.O&&(b.O=c.O,a.hb.o(b.O,"error",function(){var d=zl(a);d&&Al(a,d)}));a.g=b.O;return Promise.resolve()}
397
- function hl(a,b){var c,d,e,f,g,h,k,l,m;return J(function(n){switch(n.g){case 1:return a.l!=sl&&(a.l=cl),c=a.fb.map(function(p){return p()}),a.fb=[],z(n,Promise.all(c),2);case 2:a.dispatchEvent(ql("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;b.O&&a.A.Qb();a.Qf.stop();a.Xa&&(a.Xa.release(),a.Xa=null);a.qd&&(a.qd.stop(),a.qd=null);if(!a.J){n.D(3);break}return z(n,a.J.stop(),4);case 4:a.J=null,a.vd=null;case 3:if(!a.C){n.D(5);break}return z(n,a.C.stop(),5);case 5:if(!a.j){n.D(7);break}return z(n,
398
- a.j.destroy(),8);case 8:a.j=null;case 7:a.I&&(a.I.release(),a.I=null);a.F&&(a.F.release(),a.F=null);if(!a.K){n.D(9);break}return z(n,a.K.destroy(),10);case 10:a.K=null;case 9:if(a.G)a.G.onAssetUnload();if(!b.O||!b.O.src){n.D(11);break}return z(n,new Promise(function(p){return(new Q(p)).T(.1)}),12);case 12:for(b.O.removeAttribute("src"),b.O.load();b.O.lastChild;)b.O.removeChild(b.O.firstChild);case 11:if(!a.m){n.D(13);break}return z(n,a.m.destroy(),14);case 14:a.m=null;case 13:a.gb=null;a.N=null;if(a.i){d=
399
- t(a.i.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=t([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=t(a.i.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.i=null;a.B=new bl;a.Re=null;Bl(a);A(n)}})}
400
- function il(a,b){var c,d,e,f,g,h;return J(function(k){if(1==k.g)return c=new Yh,d=a.h.textDisplayFactory,e=d(),a.Re=d,f=Cl(b.O,c,e,function(l,m,n){l=t(l);for(var p=l.next();!p.done;p=l.next())if(p=p.value,p.data&&p.cueTime&&p.frames){for(var r=p.cueTime+m,v=n,y=t(p.frames),x=y.next();!x.done;x=y.next())Dl(a,r,v,"ID3",x.value);if(a.G)a.G.onHlsTimedMetadata(p,r)}}),g=a.h.manifest,h=g.segmentRelativeVttTiming,f.H=h,z(k,f.I,2);a.K=f;A(k)})}
401
- function jl(a,b,c){var d,e,f,g;return J(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.H,a.gb=d,f=a,z(h,wg(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.vd=h.h;a.J=a.vd();g=jf(a.h.manifest);c.O&&"AUDIO"===c.O.nodeName&&(g.disableVideo=!0);a.J.configure(g);A(h)})}
402
- function kl(a,b){var c=b.uri,d=a.H;a.Cd=new pj(function(){return a.Ia()});a.Cd.addEventListener("regionadd",function(g){g=g.region;El(a,"timelineregionadded",g);if(a.G)a.G.onDashTimedMetadata(g)});a.ea=null;a.h.streaming.observeQualityChanges&&(a.ea=new lj(function(){return a.kb()}),a.ea.addEventListener("qualitychange",function(g){var h=g.quality;g=g.position;h=(new Map).set("mediaQuality",{bandwidth:h.bandwidth,audioSamplingRate:h.audioSamplingRate,codecs:h.codecs,contentType:h.contentType,frameRate:h.frameRate,
389
+ (new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return I(function(f){return 1==f.g?u(f,hl(c,e),2):f["return"](e.O?c.X:c.P)})},Vg:function(e){c.dispatchEvent(ql("onstateidle",(new Map).set("state",e.name)))}});this.Qf=new P(function(){be(c.i.variants,c.h.restrictions,c.Dc)&&rl(c)});a&&this.Ac(a,!0)}qa(S,fb);function ql(a,b){return new M(a,b)}q=S.prototype;
390
+ q.destroy=function(){var a=this,b;return I(function(c){switch(c.g){case 1:if(a.l==sl)return c["return"]();a.l=sl;b=ek(a.ma,function(){return{node:a.P,payload:ak(),Jb:!1}});return u(c,new Promise(function(d){b.lc=function(){};b.wd=function(){d()};b.Pb=function(){d()};b.onError=function(){d()};b.yd=function(){d()}}),2);case 2:return u(c,a.ma.destroy(),3);case 3:a.td&&(a.td.release(),a.td=null);a.hb&&(a.hb.release(),a.hb=null);a.B&&(a.B.release(),a.B=null);a.se=null;a.C=null;a.h=null;a.A=null;a.pd=null;
391
+ a.S=null;if(!a.H){c.D(4);break}return u(c,a.H.destroy(),5);case 5:a.H=null;case 4:fb.prototype.release.call(a),z(c)}})};
392
+ function tl(){window.Promise||Ua("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Sc("Trident/"))return!1;var a=$c();return a&&13>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Oc()?!0:Pc("application/x-mpegurl")}
393
+ q.Ac=function(a,b){b=void 0===b?!0:b;if(this.l==sl)return Promise.reject(ul());var c=ak();c.O=a;Oc()||(b=!1);var d=b?this.La:this.X,e=ek(this.ma,function(){return{node:d,payload:c,Jb:!1}});e.lc=function(){};return vl(e)};q.detach=function(){var a=this;if(this.l==sl)return Promise.reject(ul());var b=ek(this.ma,function(){return{node:a.P,payload:ak(),Jb:!1}});b.lc=function(){};return vl(b)};
394
+ q.Se=function(a){var b=this;a=void 0===a?!0:a;if(this.l==sl)return Promise.reject(ul());Oc()||(a=!1);var c=ak(),d=ek(this.ma,function(e){var f=e.O&&a?b.La:e.O?b.X:b.P;c.O=e.O;return{node:f,payload:c,Jb:!1}});d.lc=function(){};return vl(d)};q.wh=function(a){this.Jc=a};
395
+ q.load=function(a,b,c){var d=this;this.Jc=null;if(this.l==sl)return Promise.reject(ul());this.dispatchEvent(ql("loading"));var e=ak();e.uri=a;e.Me=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=wl(this,e)?this.Ya:this.$,g=ek(this.ma,function(h){if(null==h.O)return null;e.O=h.O;return{node:f,payload:e,Jb:!0}});this.A=new bl;this.S=xl(this);g.lc=function(){};return new Promise(function(h,k){g.yd=function(){return k(new O(2,7,7002))};g.wd=function(){h();d.dispatchEvent(ql("loaded"))};
396
+ g.Pb=function(){return k(ul())};g.onError=function(l){return k(l)}})};function wl(a,b){if(!Oc())return!0;var c=b.mimeType,d=b.uri||"";c||(c=yg(d),c=yl[c]);if(c){if(""==(b.O||Qc()).canPlayType(c))return!1;if(!Oc()||!(c in xg||yg(d)in zg)||a.h.streaming.preferNativeHls)return!0;if(Yc())return a.h.streaming.useNativeHlsOnSafari}return!1}function gl(a,b,c){null==b.O&&(b.O=c.O,a.hb.o(b.O,"error",function(){var d=zl(a);d&&Al(a,d)}));a.g=b.O;return Promise.resolve()}
397
+ function hl(a,b){var c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:return a.l!=sl&&(a.l=cl),c=a.fb.map(function(p){return p()}),a.fb=[],u(n,Promise.all(c),2);case 2:a.dispatchEvent(ql("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;b.O&&a.B.Qb();a.Qf.stop();a.Xa&&(a.Xa.release(),a.Xa=null);a.qd&&(a.qd.stop(),a.qd=null);if(!a.J){n.D(3);break}return u(n,a.J.stop(),4);case 4:a.J=null,a.vd=null;case 3:if(!a.C){n.D(5);break}return u(n,a.C.stop(),5);case 5:if(!a.j){n.D(7);break}return u(n,
398
+ a.j.destroy(),8);case 8:a.j=null;case 7:a.I&&(a.I.release(),a.I=null);a.F&&(a.F.release(),a.F=null);if(!a.K){n.D(9);break}return u(n,a.K.destroy(),10);case 10:a.K=null;case 9:if(a.G)a.G.onAssetUnload();if(!b.O||!b.O.src){n.D(11);break}return u(n,new Promise(function(p){return(new P(p)).T(.1)}),12);case 12:for(b.O.removeAttribute("src"),b.O.load();b.O.lastChild;)b.O.removeChild(b.O.firstChild);case 11:if(!a.m){n.D(13);break}return u(n,a.m.destroy(),14);case 14:a.m=null;case 13:a.gb=null;a.N=null;if(a.i){d=
399
+ t(a.i.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=t([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=t(a.i.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.i=null;a.A=new bl;a.Re=null;Bl(a);z(n)}})}
400
+ function il(a,b){var c,d,e,f,g,h;return I(function(k){if(1==k.g)return c=new Yh,d=a.h.textDisplayFactory,e=d(),a.Re=d,f=Cl(b.O,c,e,function(l,m,n){l=t(l);for(var p=l.next();!p.done;p=l.next())if(p=p.value,p.data&&p.cueTime&&p.frames){for(var r=p.cueTime+m,v=n,y=t(p.frames),x=y.next();!x.done;x=y.next())Dl(a,r,v,"ID3",x.value);if(a.G)a.G.onHlsTimedMetadata(p,r)}}),g=a.h.manifest,h=g.segmentRelativeVttTiming,f.H=h,u(k,f.I,2);a.K=f;z(k)})}
401
+ function jl(a,b,c){var d,e,f,g;return I(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.H,a.gb=d,f=a,u(h,wg(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.vd=h.h;a.J=a.vd();g=jf(a.h.manifest);c.O&&"AUDIO"===c.O.nodeName&&(g.disableVideo=!0);a.J.configure(g);z(h)})}
402
+ function kl(a,b){var c=b.uri,d=a.H;a.Cd=new pj(function(){return a.Ha()});a.Cd.addEventListener("regionadd",function(g){g=g.region;El(a,"timelineregionadded",g);if(a.G)a.G.onDashTimedMetadata(g)});a.ea=null;a.h.streaming.observeQualityChanges&&(a.ea=new lj(function(){return a.kb()}),a.ea.addEventListener("qualitychange",function(g){var h=g.quality;g=g.position;h=(new Map).set("mediaQuality",{bandwidth:h.bandwidth,audioSamplingRate:h.audioSamplingRate,codecs:h.codecs,contentType:h.contentType,frameRate:h.frameRate,
403
403
  height:h.height,mimeType:h.mimeType,channelsCount:h.channelsCount,pixelAspectRatio:h.pixelAspectRatio,width:h.width}).set("position",g);a.dispatchEvent(ql("mediaqualitychanged",h))}));var e={networkingEngine:d,modifyManifestRequest:function(g,h){var k=a.S;try{k.g.enabled&&(k.A=h.format,Fk(k,g,{ot:Ik,su:!k.i}))}catch(l){Va("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",l)}},modifySegmentRequest:function(g,h){vk(a.S,g,h)},filter:function(g){return Fl(a,g)},makeTextStreamsForClosedCaptions:function(g){return Gl(a,
404
- g)},onTimelineRegionAdded:function(g){var h=a.Cd;a:{var k=t(h.g);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.schemeIdUri==g.schemeIdUri&&l.id==g.id&&l.startTime==g.startTime&&l.endTime==g.endTime){k=l;break a}k=null}null==k&&(h.g.add(g),g=new O("regionadd",new Map([["region",g]])),h.dispatchEvent(g))},onEvent:function(g){return a.dispatchEvent(g)},onError:function(g){return Al(a,g)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
405
- enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)}},f=Date.now()/1E3;return new bf(function(){var g,h,k,l;return J(function(m){if(1==m.g)return g=a,z(m,a.J.start(c,e),2);g.i=m.h;h=ql("manifestparsed");a.dispatchEvent(h);if(0==a.i.variants.length)throw new P(2,4,4036);Hl(a.i);k=Date.now()/1E3;l=k-f;a.B.G=l;A(m)})}(),function(){return a.J.stop()})}
406
- function ll(a,b){var c,d;return J(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.m=Il(a,{Ob:a.H,onError:function(f){Al(a,f)},xd:function(f){Jl(a,f)},onExpirationUpdated:function(f,g){Kl(a,f,g)},onEvent:function(f){a.dispatchEvent(f);"drmsessionupdate"==f.type&&d&&(d=!1,a.B.j=Date.now()/1E3-c)}}),a.m.configure(a.h.drm),z(e,Pf(a.m,a.i.variants,a.i.offlineSessionIds),2)):3!=e.g?z(e,a.m.Ac(b.O),3):z(e,Fl(a,a.i),0)})}
407
- function ml(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,v;return J(function(y){switch(y.g){case 1:b.startTime=c.startTime;null!=a.Jc&&(b.startTime=a.Jc,a.Jc=null);d=b.O;e=b.uri;a.gb=e;a.I=new hj({od:function(){return d.playbackRate},ld:function(){return d.defaultPlaybackRate},He:function(x){d.playbackRate=x},Af:function(x){d.currentTime+=x}});f=function(){return Ll(a)};g=function(){return Ml(a)};a.A.o(d,"playing",f);a.A.o(d,"pause",f);a.A.o(d,"ended",f);a.A.o(d,"ratechange",g);h=a.h.abrFactory;a.C&&a.se==h||
408
- (a.se=h,a.C=h(),"function"!=typeof a.C.setMediaElement&&(Ie(),a.C.setMediaElement=function(){}),a.C.configure(a.h.abr));a.va=new Re(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.za=a.h.preferredTextLanguage;a.wb=a.h.preferredTextRole;a.ib=a.h.preferForcedSubs;Nl(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C.init(function(x,w,D){a.j&&x!=a.j.l&&Ol(a,x,!0,void 0===w?!1:w,void 0===D?0:D)});a.C.setMediaElement(d);a.F=Pl(a,b.startTime);a.Xa=Ql(a);
409
- k=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);Rl(a,k);Nd(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=Sl(a);a.j.configure(a.h.streaming);a.l=Tl;d.textTracks&&a.A.o(d.textTracks,"addtrack",function(x){if(x.track)switch(x=x.track,x.kind){case "chapters":Ul(a,x)}});a.dispatchEvent(ql("streaming"));l=null;if(m=a.Qa().find(function(x){return x.active})){y.D(2);break}l=rl(a);Ol(a,l,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){y.D(3);
410
- break}n=a.F.dd();return z(y,Vl(l,n),4);case 4:p=y.h,a.F.Zd(p);case 3:Wl(a,null,pe(l));case 2:return r=a.Ab().find(function(x){return x.active}),r||((v=ze(a.i.textStreams,a.za,a.wb,a.ib)[0]||null)&&al(a.B.h,v,!0),l&&(v?(l.audio&&Xl(a,l.audio,v)&&(a.ba=!0),a.ba&&a.K.m.setTextVisibility(!0),Yl(a)):a.ba=!1),v&&(a.h.streaming.alwaysStreamText||a.Nb())&&Ij(a.j,v)),z(y,a.j.start(),5);case 5:a.h.abr.enabled&&(a.C.enable(),Zl(a)),de(a.j?a.j.l:null,a.i),$l(a.i),am(a),bm(a),a.i.variants.some(function(x){return x.primary}),
411
- a.A.Fa(d,"loadedmetadata",function(){a.B.l=Date.now()/1E3-c.Me}),A(y)}})}
412
- function nl(a,b,c){var d,e,f,g,h,k,l;return J(function(m){return 1==m.g?(d=Jb,e=Date.now()/1E3,f=!0,a.m=Il(a,{Ob:a.H,onError:function(n){Al(a,n)},xd:function(n){Jl(a,n)},onExpirationUpdated:function(n,p){Kl(a,n,p)},onEvent:function(n){a.dispatchEvent(n);"drmsessionupdate"==n.type&&f&&(f=!1,a.B.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=yg(g),k=yl[h],"application/x-mpegurl"==k&&Yc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,
404
+ g)},onTimelineRegionAdded:function(g){var h=a.Cd;a:{var k=t(h.g);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.schemeIdUri==g.schemeIdUri&&l.id==g.id&&l.startTime==g.startTime&&l.endTime==g.endTime){k=l;break a}k=null}null==k&&(h.g.add(g),g=new M("regionadd",new Map([["region",g]])),h.dispatchEvent(g))},onEvent:function(g){return a.dispatchEvent(g)},onError:function(g){return Al(a,g)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
405
+ enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)}},f=Date.now()/1E3;return new bf(function(){var g,h,k,l;return I(function(m){if(1==m.g)return g=a,u(m,a.J.start(c,e),2);g.i=m.h;h=ql("manifestparsed");a.dispatchEvent(h);if(0==a.i.variants.length)throw new O(2,4,4036);Hl(a.i);k=Date.now()/1E3;l=k-f;a.A.H=l;z(m)})}(),function(){return a.J.stop()})}
406
+ function ll(a,b){var c,d;return I(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.m=Il(a,{Ob:a.H,onError:function(f){Al(a,f)},xd:function(f){Jl(a,f)},onExpirationUpdated:function(f,g){Kl(a,f,g)},onEvent:function(f){a.dispatchEvent(f);"drmsessionupdate"==f.type&&d&&(d=!1,a.A.j=Date.now()/1E3-c)}}),a.m.configure(a.h.drm),u(e,Pf(a.m,a.i.variants,a.i.offlineSessionIds),2)):3!=e.g?u(e,a.m.Ac(b.O),3):u(e,Fl(a,a.i),0)})}
407
+ function ml(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,v;return I(function(y){switch(y.g){case 1:b.startTime=c.startTime;null!=a.Jc&&(b.startTime=a.Jc,a.Jc=null);d=b.O;e=b.uri;a.gb=e;a.I=new hj({od:function(){return d.playbackRate},ld:function(){return d.defaultPlaybackRate},He:function(x){d.playbackRate=x},Af:function(x){d.currentTime+=x}});f=function(){return Ll(a)};g=function(){return Ml(a)};a.B.o(d,"playing",f);a.B.o(d,"pause",f);a.B.o(d,"ended",f);a.B.o(d,"ratechange",g);h=a.h.abrFactory;a.C&&a.se==h||
408
+ (a.se=h,a.C=h(),"function"!=typeof a.C.setMediaElement&&(Ie(),a.C.setMediaElement=function(){}),a.C.configure(a.h.abr));a.ya=new Re(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.Ka=a.h.preferredTextLanguage;a.wb=a.h.preferredTextRole;a.ib=a.h.preferForcedSubs;Nl(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C.init(function(x,w,D){a.j&&x!=a.j.l&&Ol(a,x,!0,void 0===w?!1:w,void 0===D?0:D)});a.C.setMediaElement(d);a.F=Pl(a,b.startTime);a.Xa=Ql(a);
409
+ k=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);Rl(a,k);Od(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=Sl(a);a.j.configure(a.h.streaming);a.l=Tl;d.textTracks&&a.B.o(d.textTracks,"addtrack",function(x){if(x.track)switch(x=x.track,x.kind){case "chapters":Ul(a,x)}});a.dispatchEvent(ql("streaming"));l=null;if(m=a.Qa().find(function(x){return x.active})){y.D(2);break}l=rl(a);Ol(a,l,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){y.D(3);
410
+ break}n=a.F.dd();return u(y,Vl(l,n),4);case 4:p=y.h,a.F.Zd(p);case 3:Wl(a,null,qe(l));case 2:return r=a.Ab().find(function(x){return x.active}),r||((v=Ae(a.i.textStreams,a.Ka,a.wb,a.ib)[0]||null)&&al(a.A.h,v,!0),l&&(v?(l.audio&&Xl(a,l.audio,v)&&(a.ba=!0),a.ba&&a.K.m.setTextVisibility(!0),Yl(a)):a.ba=!1),v&&(a.h.streaming.alwaysStreamText||a.Nb())&&Ij(a.j,v)),u(y,a.j.start(),5);case 5:a.h.abr.enabled&&(a.C.enable(),Zl(a)),ee(a.j?a.j.l:null,a.i),$l(a.i),am(a),bm(a),a.i.variants.some(function(x){return x.primary}),
411
+ a.B.Ea(d,"loadedmetadata",function(){a.A.m=Date.now()/1E3-c.Me}),z(y)}})}
412
+ function nl(a,b,c){var d,e,f,g,h,k,l;return I(function(m){return 1==m.g?(d=Jb,e=Date.now()/1E3,f=!0,a.m=Il(a,{Ob:a.H,onError:function(n){Al(a,n)},xd:function(n){Jl(a,n)},onExpirationUpdated:function(n,p){Kl(a,n,p)},onEvent:function(n){a.dispatchEvent(n);"drmsessionupdate"==n.type&&f&&(f=!1,a.A.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=yg(g),k=yl[h],"application/x-mpegurl"==k&&Yc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,
413
413
  primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?Ad(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Ma,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},
414
- a.m.X=!0,z(m,Pf(a.m,[l],[]),2)):z(m,a.m.Ac(b.O),0)})}
415
- function ol(a,b,c){function d(){return Ll(a)}b.uri=c.uri;b.startTime=c.startTime;a.gb=b.uri;var e=b.O;a.F=new Xi(e);var f=!1;a.fb.push(function(){f=!0});null!=b.startTime&&a.F.Zd(b.startTime);a.I=new hj({od:function(){return e.playbackRate},ld:function(){return e.defaultPlaybackRate},He:function(k){e.playbackRate=k},Af:function(k){e.currentTime+=k}});Rl(a,a.h.streaming.rebufferingGoal);a.A.o(e,"playing",d);a.A.o(e,"pause",d);a.A.o(e,"ended",d);a.A.o(e,"ratechange",function(){return Ml(a)});"none"!=
416
- e.preload&&a.A.Fa(e,"loadedmetadata",function(){a.B.l=Date.now()/1E3-c.Me});e.audioTracks&&(a.A.o(e.audioTracks,"addtrack",function(){return am(a)}),a.A.o(e.audioTracks,"removetrack",function(){return am(a)}),a.A.o(e.audioTracks,"change",function(){return am(a)}));e.textTracks&&(a.A.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":cm(a,k);break;case "chapters":Ul(a,k);break;default:am(a)}}),a.A.o(e.textTracks,"removetrack",function(){return am(a)}),a.A.o(e.textTracks,
417
- "change",function(){return am(a)}));var g=yg(b.uri);e.src=Gk(a.S,b.uri,yl[g]);(Wc()||Tc("Web0S"))&&e.load();a.l=dm;a.dispatchEvent(ql("streaming"));var h=new Mc;Oi(e,HTMLMediaElement.HAVE_METADATA,a.A,function(){h.resolve()});Oi(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.A,function(){var k;return J(function(l){if(1==l.g)return em(a),k=fm(a),k.find(function(m){return"disabled"!=m.mode})?l.D(2):z(l,new Promise(function(m){a.A.Fa(e.textTracks,"change",m);(new Q(m)).T(1)}),2);if(f)return l["return"]();gm(a);
418
- A(l)})});e.error?h.reject(zl(a)):"none"==e.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.'),h.resolve());a.A.Fa(e,"error",function(){h.reject(zl(a))});return new bf(h,function(){h.reject(new P(2,7,7001));return Promise.resolve()})}
414
+ a.m.X=!0,u(m,Pf(a.m,[l],[]),2)):u(m,a.m.Ac(b.O),0)})}
415
+ function ol(a,b,c){function d(){return Ll(a)}b.uri=c.uri;b.startTime=c.startTime;a.gb=b.uri;var e=b.O;a.F=new Xi(e);var f=!1;a.fb.push(function(){f=!0});null!=b.startTime&&a.F.Zd(b.startTime);a.I=new hj({od:function(){return e.playbackRate},ld:function(){return e.defaultPlaybackRate},He:function(k){e.playbackRate=k},Af:function(k){e.currentTime+=k}});Rl(a,a.h.streaming.rebufferingGoal);a.B.o(e,"playing",d);a.B.o(e,"pause",d);a.B.o(e,"ended",d);a.B.o(e,"ratechange",function(){return Ml(a)});"none"!=
416
+ e.preload&&a.B.Ea(e,"loadedmetadata",function(){a.A.m=Date.now()/1E3-c.Me});e.audioTracks&&(a.B.o(e.audioTracks,"addtrack",function(){return am(a)}),a.B.o(e.audioTracks,"removetrack",function(){return am(a)}),a.B.o(e.audioTracks,"change",function(){return am(a)}));e.textTracks&&(a.B.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":cm(a,k);break;case "chapters":Ul(a,k);break;default:am(a)}}),a.B.o(e.textTracks,"removetrack",function(){return am(a)}),a.B.o(e.textTracks,
417
+ "change",function(){return am(a)}));var g=yg(b.uri);e.src=Gk(a.S,b.uri,yl[g]);(Wc()||Sc("Web0S"))&&e.load();a.l=dm;a.dispatchEvent(ql("streaming"));var h=new Lc;Oi(e,HTMLMediaElement.HAVE_METADATA,a.B,function(){h.resolve()});Oi(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.B,function(){var k;return I(function(l){if(1==l.g)return em(a),k=fm(a),k.find(function(m){return"disabled"!=m.mode})?l.D(2):u(l,new Promise(function(m){a.B.Ea(e.textTracks,"change",m);(new P(m)).T(1)}),2);if(f)return l["return"]();gm(a);
418
+ z(l)})});e.error?h.reject(zl(a)):"none"==e.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.'),h.resolve());a.B.Ea(e,"error",function(){h.reject(zl(a))});return new bf(h,function(){h.reject(new O(2,7,7001));return Promise.resolve()})}
419
419
  function em(a){var b=a.h.preferredAudioLanguage;if(""!=b){a.Fd(b);var c=a.h.preferredVariantRole;""!=c&&a.Fd(b,c)}}function gm(a){var b=a.h.preferredTextLanguage,c=a.h.preferForcedSubs;if(""!=b){a.Ae(b,"",c);var d=a.h.preferredTextRole;""!=d&&a.Ae(b,d,c)}}
420
- function cm(a,b){if("metadata"==b.kind){b.mode="hidden";a.A.o(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,Dl(a,e.startTime,e.endTime,e.type,e.value),a.G)a.G.onCueMetadataChange(e.value)});var c=(new Q(function(){var d=hm(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).ya().T(.5);a.fb.push(function(){c.stop()})}}
421
- function Dl(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(ql("metadata",b))}function Ul(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new Q(function(){b.mode="hidden"})).ya().T(.5);a.fb.push(function(){c.stop()})}}function Hl(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))}function Il(a,b){return new If(b,a.h.drm.updateExpirationTime)}
420
+ function cm(a,b){if("metadata"==b.kind){b.mode="hidden";a.B.o(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,Dl(a,e.startTime,e.endTime,e.type,e.value),a.G)a.G.onCueMetadataChange(e.value)});var c=(new P(function(){var d=hm(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).xa().T(.5);a.fb.push(function(){c.stop()})}}
421
+ function Dl(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(ql("metadata",b))}function Ul(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new P(function(){b.mode="hidden"})).xa().T(.5);a.fb.push(function(){c.stop()})}}function Hl(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))}function Il(a,b){return new If(b,a.h.drm.updateExpirationTime)}
422
422
  function el(a){return new nf(function(b,c){a.C&&a.C.segmentDownloaded(b,c)},function(b,c,d){b=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(ql("downloadheadersreceived",b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(ql("downloadfailed",b))})}
423
423
  function Pl(a,b){return new Yi(a.g,a.i,a.h.streaming,b,function(){a.Xa&&kj(a.Xa,!0);a.j&&a.j.Tc();a.N&&im(a)},function(c){return a.dispatchEvent(c)})}
424
- function Ql(a){var b=new qj(a.Cd);b.addEventListener("enter",function(d){El(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){El(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(El(a,"timelineregionenter",e),El(a,"timelineregionexit",e))});var c=new jj(a.g);c.g.add(b);a.ea&&c.g.add(a.ea);return c}function Rl(a,b){a.N=new Ve;a.N.g=Xe;Ye(a.N,b,Math.min(.5,b/2));Bl(a);a.qd=(new Q(function(){im(a)})).ka(.25)}
424
+ function Ql(a){var b=new qj(a.Cd);b.addEventListener("enter",function(d){El(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){El(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(El(a,"timelineregionenter",e),El(a,"timelineregionexit",e))});var c=new jj(a.g);c.g.add(b);a.ea&&c.g.add(a.ea);return c}function Rl(a,b){a.N=new Ve;a.N.g=Xe;Ye(a.N,b,Math.min(.5,b/2));Bl(a);a.qd=(new P(function(){im(a)})).ka(.25)}
425
425
  function im(a){switch(a.l){case dm:if(a.g.ended)var b=!0;else{var c=fi(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Tl:a:if(a.g.ended||qi(a.K))b=!0;else{if(a.i.presentationTimeline.U()){c=a.i.presentationTimeline.Ib();var d=fi(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=hi(a.g.buffered,a.g.currentTime);c=a.N;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?We:Xe;c.g=d;b!=d&&Bl(a)}function Cl(a,b,c,d){return new ki(a,b,c,d)}
426
426
  function xl(a){return new uk({getBandwidthEstimate:function(){return a.C?a.C.getBandwidthEstimate():NaN},kb:function(){return a.kb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Qa:function(){return a.Qa()},zb:function(){return a.zb()},U:function(){return a.U()}},a.h.cmcd)}
427
427
  function Sl(a){return new wj(a.i,{nd:function(){return a.F.dd()},getBandwidthEstimate:function(){return a.C.getBandwidthEstimate()},modifySegmentRequest:function(b,c){vk(a.S,b,c)},V:a.K,Ob:a.H,onError:function(b){return Al(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Xg:function(){a.J&&a.J.update&&a.J.update()},re:function(){a.F&&a.F.Bf();im(a)},Wg:function(b,c){var d=c.le;d&&a.ea&&nj(a.ea,d,b)}})}
428
428
  q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Qk(a,b));a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=.01));var c=Vk(this.h,a,dl(this));jm(this);return c};
429
429
  function jm(a){if(a.J){var b=jf(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.J.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{km(a,a.i)}catch(f){Al(a,f)}a.C&&bm(a);b=a.j.l;!b||b.allowedByApplication&&b.allowedByKeySystem||lm(a)}a.H&&a.H.Fe(a.h.streaming.forceHTTPS);if(a.K&&(a.K.H=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Re!=b)){var c=b(),d=a.K,e=d.m;d.m=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.g&&(d.g.i=
430
430
  c);a.Re=b;a.j&&(b=a.j,(c=b.i.get(Ib))&&Gj(b,c.stream,!0,0,!0))}a.C&&(a.C.configure(a.h.abr),a.h.abr.enabled?a.C.enable():a.C.disable(),Zl(a));a.N&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Ye(a.N,b,Math.min(.5,b/2)));a.i&&Nl(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd)}q.getConfiguration=function(){var a=dl(this);Vk(a,this.h,dl(this));return a};
431
- q.ig=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.Ia().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.hh=function(){for(var a in this.h)delete this.h[a];Vk(this.h,dl(this),dl(this));jm(this)};q.tf=function(){return this.l};q.Ag=function(){return this.g};q.Gc=function(){return this.H};q.ae=function(){return this.gb};
431
+ q.ig=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.Ha().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.hh=function(){for(var a in this.h)delete this.h[a];Vk(this.h,dl(this),dl(this));jm(this)};q.tf=function(){return this.l};q.Ag=function(){return this.g};q.Gc=function(){return this.H};q.ae=function(){return this.gb};
432
432
  q.kd=function(){return this.G?this.G:null};q.U=function(){return this.i?this.i.presentationTimeline.U():this.g&&this.g.src?Infinity==this.g.duration:!1};q.Lb=function(){return this.i?this.i.presentationTimeline.Lb():!1};q.hc=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};
433
- q.Ia=function(){if(this.i){var a=this.i.presentationTimeline;return{start:a.dc(),end:a.mb()}}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.Lg=function(){this.U()&&(this.g.currentTime=this.Ia().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.m?this.m.g:null};q.Fc=function(){return this.m?this.m.Fc():Infinity};q.md=function(){return this.m?this.m.md():{}};
433
+ q.Ha=function(){if(this.i){var a=this.i.presentationTimeline;return{start:a.dc(),end:a.mb()}}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.Lg=function(){this.U()&&(this.g.currentTime=this.Ha().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.m?this.m.g:null};q.Fc=function(){return this.m?this.m.Fc():Infinity};q.md=function(){return this.m?this.m.md():{}};
434
434
  q.Mc=function(){return this.N?this.N.g==Xe:!1};q.zb=function(){return this.g?this.I?this.I.i:1:0};q.Qe=function(a){0==a?Ua("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.I.set(a),this.l==Tl&&(this.C.playbackRateChanged(a),Fj(this.j,1<Math.abs(a))))};q.cf=function(){var a=this.I.ld();this.l==dm&&this.I.set(a);this.l==Tl&&(this.I.set(a),this.C.playbackRateChanged(a),Fj(this.j,!1))};
435
- q.Qa=function(){if(this.i){for(var a=this.j?this.j.l:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,xe(e)){var f=pe(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 we(g)}):[]};
436
- q.Ab=function(){if(this.i){for(var a=this.j?this.j.A:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=qe(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?fm(this).map(function(f){return ue(f)}):[]};q.rg=function(){return this.i?this.i.imageStreams.map(function(a){return re(a)}):[]};
437
- q.Hg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,v,y,x,w,D,B,C;return J(function(G){if(1==G.g)return c.i?(d=c.i.imageStreams.find(function(E){return E.id==a}))?d.segmentIndex?G.D(3):z(G,d.createSegmentIndex(),3):G["return"](null):G.D(2);if(2!=G.g){e=d.segmentIndex.find(b);if(null==e)return G["return"](null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return G["return"](null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);n=parseInt(h[2],10);p=k/m;r=l/n;
435
+ q.Qa=function(){if(this.i){for(var a=this.j?this.j.l:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,ye(e)){var f=qe(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 xe(g)}):[]};
436
+ q.Ab=function(){if(this.i){for(var a=this.j?this.j.A:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=re(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?fm(this).map(function(f){return ve(f)}):[]};q.rg=function(){return this.i?this.i.imageStreams.map(function(a){return se(a)}):[]};
437
+ q.Hg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,v,y,x,w,D,B,C;return I(function(G){if(1==G.g)return c.i?(d=c.i.imageStreams.find(function(E){return E.id==a}))?d.segmentIndex?G.D(3):u(G,d.createSegmentIndex(),3):G["return"](null):G.D(2);if(2!=G.g){e=d.segmentIndex.find(b);if(null==e)return G["return"](null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return G["return"](null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);n=parseInt(h[2],10);p=k/m;r=l/n;
438
438
  v=m*n;y=f.j-f.startTime;x=f.m||y/v;w=f.startTime;B=D=0;1<v&&(C=Math.floor((b-f.startTime)/x),w=f.startTime+C*x,D=C%m*p,B=Math.floor(C/m)*r);return G["return"]({imageHeight:l,imageWidth:k,height:r,positionX:D,positionY:B,startTime:w,duration:x,uris:f.Pa(),width:p})}return G["return"](null)})};
439
- q.Be=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.A&&(al(this.B.h,b,!1),Ij(this.j,b),mm(this),this.za=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=fm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,se(c)==a.id?c.mode=this.ba?"showing":"hidden":c.mode="disabled";mm(this)}};
440
- q.Ce=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&&xe(d)&&(Ol(this,d,!1,b,c),this.va=new Qe(d),bm(this))}else if(this.g&&this.g.audioTracks)for(b=Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,
441
- se(c)==a.id){nm(this,c);break}};q.hg=function(){return om(this.Qa())};q.Gg=function(){return om(this.Ab())};q.gg=function(){return Array.from(pm(this.Qa()))};q.Fg=function(){return Array.from(pm(this.Ab()))};
442
- q.Fd=function(a,b){if(this.i&&this.F){this.va=new Re(a,b||"",0,"");var c=function(k,l){return k.video||l.video?k.video&&l.video?Math.abs((k.video.height||0)-(l.video.height||0))+Math.abs((k.video.width||0)-(l.video.width||0)):Infinity:0},d=this.j.l,e=this.va.create(this.i.variants),f=null;e=t(e.values());for(var g=e.next();!g.done;g=e.next())if(g=g.value,!f||c(f,d)>c(g,d))f=g;f?(c=pe(f),this.Ce(c,!0)):lm(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);c=Mb(a);f=d=null;e=
443
- t(e);for(g=e.next();!g.done;g=e.next()){g=g.value;var h=we(g);Mb(h.language)==c&&(d=g,b?h.roles.includes(b)&&(f=g):0==h.roles.length&&(f=g))}f?nm(this,f):d&&nm(this,d)}};
444
- q.Ae=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.za=a,this.wb=b||"",this.ib=c,(a=ze(this.i.textStreams,this.za,this.wb,this.ib)[0]||null)&&a!=this.j.A&&(al(this.B.h,a,!1),this.h.streaming.alwaysStreamText||this.Nb()))Ij(this.j,a),mm(this)}else{var d=Mb(a);(a=this.Ab().find(function(e){return Mb(e.language)==d&&(!b||e.roles.includes(b))&&e.forced==c}))&&this.Be(a)}};
445
- q.kh=function(a){if(this.i&&this.F){for(var b=null,c=t(this.i.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.va=new Re(b.language,"",0,a),lm(this))}};q.Nb=function(){var a=this.ba;return this.K?this.K.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?fm(this).some(function(b){return"showing"==b.mode}):a};q.qf=function(){return this.g&&this.g.src&&this.g.textTracks?qm(this).map(function(a){return ue(a)}):[]};
439
+ q.Be=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.A&&(al(this.A.h,b,!1),Ij(this.j,b),mm(this),this.Ka=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=fm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,te(c)==a.id?c.mode=this.ba?"showing":"hidden":c.mode="disabled";mm(this)}};
440
+ q.Ce=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&&ye(d)&&(Ol(this,d,!1,b,c),this.ya=new Qe(d),bm(this))}else if(this.g&&this.g.audioTracks)for(b=Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,
441
+ te(c)==a.id){nm(this,c);break}};q.hg=function(){return om(this.Qa())};q.Gg=function(){return om(this.Ab())};q.gg=function(){return Array.from(pm(this.Qa()))};q.Fg=function(){return Array.from(pm(this.Ab()))};
442
+ q.Fd=function(a,b){if(this.i&&this.F){this.ya=new Re(a,b||"",0,"");var c=function(k,l){return k.video||l.video?k.video&&l.video?Math.abs((k.video.height||0)-(l.video.height||0))+Math.abs((k.video.width||0)-(l.video.width||0)):Infinity:0},d=this.j.l,e=this.ya.create(this.i.variants),f=null;e=t(e.values());for(var g=e.next();!g.done;g=e.next())if(g=g.value,!f||c(f,d)>c(g,d))f=g;f?(c=qe(f),this.Ce(c,!0)):lm(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);c=Mb(a);f=d=null;e=
443
+ t(e);for(g=e.next();!g.done;g=e.next()){g=g.value;var h=xe(g);Mb(h.language)==c&&(d=g,b?h.roles.includes(b)&&(f=g):0==h.roles.length&&(f=g))}f?nm(this,f):d&&nm(this,d)}};
444
+ q.Ae=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.Ka=a,this.wb=b||"",this.ib=c,(a=Ae(this.i.textStreams,this.Ka,this.wb,this.ib)[0]||null)&&a!=this.j.A&&(al(this.A.h,a,!1),this.h.streaming.alwaysStreamText||this.Nb()))Ij(this.j,a),mm(this)}else{var d=Mb(a);(a=this.Ab().find(function(e){return Mb(e.language)==d&&(!b||e.roles.includes(b))&&e.forced==c}))&&this.Be(a)}};
445
+ q.kh=function(a){if(this.i&&this.F){for(var b=null,c=t(this.i.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.ya=new Re(b.language,"",0,a),lm(this))}};q.Nb=function(){var a=this.ba;return this.K?this.K.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?fm(this).some(function(b){return"showing"==b.mode}):a};q.qf=function(){return this.g&&this.g.src&&this.g.textTracks?qm(this).map(function(a){return ve(a)}):[]};
446
446
  q.kg=function(a){var b=Mb(a),c=qm(this).filter(function(g){return Mb(g.language)==b});if(!c||!c.length)return[];a=[];c=t(c);for(var d=c.next();!d.done;d=c.next())if((d=d.value)&&d.cues){d=t(d.cues);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.id;f&&""!=f||(f=e.startTime+"-"+e.endTime+"-"+e.text);a.push({id:f,title:e.text,startTime:e.startTime,endTime:e.endTime})}}return a};
447
447
  function fm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function hm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function qm(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
448
- q.Ke=function(a){a=!!a;if(this.ba!=a){this.ba=a;if(this.l==Tl)this.K.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.A||(a=ze(this.i.textStreams,this.za,this.wb,this.ib),0<a.length&&(Ij(this.j,a[0]),mm(this))):Ej(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=fm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Yl(this)}};
448
+ q.Ke=function(a){a=!!a;if(this.ba!=a){this.ba=a;if(this.l==Tl)this.K.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.A||(a=Ae(this.i.textStreams,this.Ka,this.wb,this.ib),0<a.length&&(Ij(this.j,a[0]),mm(this))):Ej(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=fm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Yl(this)}};
449
449
  q.Cg=function(){if(!this.U())return null;var a=this.ma.l,b=0;if(this.F)b=this.F.dd();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.i?new Date(1E3*(this.i.presentationTimeline.l+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
450
450
  q.uf=function(){if(!this.U())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.l);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};q.kb=function(){if(this.l==Tl)return this.K.kb();var a={total:[],audio:[],video:[],text:[]};this.l==dm&&(a.total=ii(this.g.buffered));return a};
451
- q.getStats=function(){if(this.l!=Tl&&this.l!=dm)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,switchHistory:[],stateHistory:[]};Ll(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.B;b=
452
- Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.F&&(this.B.N=this.F.Xe(),this.B.P=this.F.Ye());a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),c=this.B,b=Number(a.totalVideoFrames),c.K=Number(a.droppedVideoFrames),c.J=b,this.B.I=Number(a.corruptedVideoFrames));this.m?(a=this.m,a=a.J?a.J:NaN):a=NaN;this.B.m=a;if(this.l==Tl){if(a=this.j.l)this.B.B=(this.I?this.I.i:1)*a.bandwidth;a&&a.video&&(c=this.B,b=a.video.height||NaN,c.S=a.video.width||NaN,c.C=b);this.U()&&(a=this.uf().valueOf()+
453
- 1E3*this.Ia().end,this.B.F=(Date.now()-a)/1E3);this.i&&this.i.presentationTimeline&&(this.B.H=this.i.presentationTimeline.g);a=this.C.getBandwidthEstimate();this.B.A=a}var d=this.B;a=d.S;c=d.C;b=d.B;var e=d.J,f=d.K,g=d.I,h=d.P,k=d.N,l=d.A,m=d.i,n=d.l,p=d.G,r=d.j,v=Yk(d.g,"playing"),y=Yk(d.g,"paused"),x=Yk(d.g,"buffering"),w=d.m,D=d.F,B=d.H,C=Zk(d.g),G=[];d=t(d.h.g);for(var E=d.next();!E.done;E=d.next())E=E.value,G.push({timestamp:E.timestamp,id:E.id,type:E.type,fromAdaptation:E.fromAdaptation,bandwidth:E.bandwidth});
454
- return{width:a,height:c,streamBandwidth:b,decodedFrames:e,droppedFrames:f,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:p,drmTimeSeconds:r,playTime:v,pauseTime:y,bufferingTime:x,licenseTime:w,liveLatency:D,maxSegmentDuration:B,stateHistory:C,switchHistory:G}};
455
- q.Wf=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,r,v,y,x,w,D;return J(function(B){switch(B.g){case 1:if(h.l!=Tl&&h.l!=dm)throw new P(1,7,7004);if(d){B.D(2);break}return z(B,rm(h,a),3);case 3:d=B.h;case 2:k=[];if(h.G)try{k=h.G.getServerSideCuePoints()}catch(C){}if(h.l!=dm){B.D(4);break}g&&(c="forced");return z(B,sm(h,a,b,c,d,f||"",k),5);case 5:l=h.Ab();if(m=l.find(function(C){return C.language==b&&C.label==(f||"")&&C.kind==c}))return am(h),B["return"](m);throw new P(1,2,2012);case 4:n=
456
- Jb;p=h.i.presentationTimeline.getDuration();if(Infinity==p)throw new P(1,4,4033);if(!k.length){B.D(6);break}return z(B,tm(h,a,h.H,h.h.streaming.retryParameters),7);case 7:r=B.h,v=um(h,r,d,k),y=new Blob([v],{type:"text/vtt"}),a=ni(y),d="text/vtt";case 6:x={id:h.Rf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:fj(0,p,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:n.ha,primary:!1,trickModeVideo:null,
457
- emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};w=wd(x.mimeType,x.codecs);D=Cd(w);if(!D)throw new P(2,2,2014,d);h.i.textStreams.push(x);am(h);return B["return"](qe(x))}})};
458
- q.Vf=function(a,b,c){var d=this,e,f,g,h;return J(function(k){switch(k.g){case 1:if(d.l!=Tl&&d.l!=dm)throw new P(1,7,7004);if(c){k.D(2);break}return z(k,rm(d,a),3);case 3:c=k.h;case 2:e=[];if(d.G)try{e=d.G.getServerSideCuePoints()}catch(l){}return z(k,sm(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.qf();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return z(k,new Promise(function(l,m){d.A.Fa(f,"load",l);d.A.Fa(f,"error",function(){m(new P(1,2,2015))})}),6);case 6:return k["return"](h);
459
- case 5:throw new P(1,2,2012);}})};function rm(a,b){var c,d;return J(function(e){switch(e.g){case 1:c=yg(b);if(d=vm[c])return e["return"](d);F(e,2);return z(e,Ag(b,a.H,a.h.streaming.retryParameters),4);case 4:d=e.h;va(e,3);break;case 2:I(e);case 3:if(d)return e["return"](d);throw new P(1,2,2011,c);}})}
460
- function sm(a,b,c,d,e,f,g){var h,k,l,m;return J(function(n){if(1==n.g)return"text/vtt"!=e||g.length?z(n,tm(a,b,a.H,a.h.streaming.retryParameters),3):n.D(2);2!=n.g&&(h=n.h,k=um(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=ni(l),e="text/vtt");m=document.createElement("track");var p=a.S,r=b;try{if(p.g.enabled){var v=Hk(p);v.ot=Nk;v.su=!0;var y=Jk(v);var x=Kk(r,y)}else x=r}catch(w){Va("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",w),x=r}m.src=x;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
461
- a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n["return"](m)})}function tm(a,b,c,d){var e,f,g;return J(function(h){if(1==h.g){e=xf;f=rf([b],d);f.method="GET";var k=a.S;try{k.g.enabled&&Fk(k,f,{ot:Nk,su:!0})}catch(l){Va("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return z(h,c.request(e,f).promise,2)}g=h.h;return h["return"](g.data)})}
462
- function um(a,b,c,d){var e=Dd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Fc(b),b=c.parseMedia(b,a),tk(b,d);throw new P(2,2,2014,c);}q.Ge=function(a,b){this.Dc.width=a;this.Dc.height=b};q.we=function(){if(this.l==Tl){var a=this.j;if(a.h.g)a=!1;else if(a.B)a=!1;else{for(var b=t(a.i.values()),c=b.next();!c.done;c=b.next())c=c.value,c.Kc&&(c.Kc=!1,Dj(a,c,.1));a=!0}}else a=!1;return a};
451
+ q.getStats=function(){if(this.l!=Tl&&this.l!=dm)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,switchHistory:[],stateHistory:[]};Ll(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.A;b=
452
+ Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.F&&(this.A.P=this.F.Xe(),this.A.S=this.F.Ye());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.A;var d=Number(c.totalVideoFrames);b.N=Number(c.droppedVideoFrames);b.K=d;this.A.J=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.J?c.J:NaN):c=NaN;this.A.B=c;if(this.l==Tl){if(c=this.j.l)this.A.F=(this.I?this.I.i:1)*c.bandwidth;c&&c.video&&(b=this.A,d=c.video.height||NaN,b.A=c.video.width||NaN,b.l=d);this.U()&&(c=this.uf().valueOf()+
453
+ 1E3*this.Ha().end,this.A.G=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.A.I=this.i.presentationTimeline.g);c=this.C.getBandwidthEstimate();this.A.C=c}this.l==dm&&(c=this.A,b=a.videoHeight||NaN,c.A=a.videoWidth||NaN,c.l=b);var e=this.A;a=e.A;c=e.l;b=e.F;d=e.K;var f=e.N,g=e.J,h=e.S,k=e.P,l=e.C,m=e.i,n=e.m,p=e.H,r=e.j,v=Yk(e.g,"playing"),y=Yk(e.g,"paused"),x=Yk(e.g,"buffering"),w=e.B,D=e.G,B=e.I,C=Zk(e.g),G=[];e=t(e.h.g);for(var E=e.next();!E.done;E=e.next())E=E.value,G.push({timestamp:E.timestamp,
454
+ id:E.id,type:E.type,fromAdaptation:E.fromAdaptation,bandwidth:E.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:f,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:p,drmTimeSeconds:r,playTime:v,pauseTime:y,bufferingTime:x,licenseTime:w,liveLatency:D,maxSegmentDuration:B,stateHistory:C,switchHistory:G}};
455
+ q.Wf=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,r,v,y,x,w,D;return I(function(B){switch(B.g){case 1:if(h.l!=Tl&&h.l!=dm)throw new O(1,7,7004);if(d){B.D(2);break}return u(B,rm(h,a),3);case 3:d=B.h;case 2:k=[];if(h.G)try{k=h.G.getServerSideCuePoints()}catch(C){}if(h.l!=dm){B.D(4);break}g&&(c="forced");return u(B,sm(h,a,b,c,d,f||"",k),5);case 5:l=h.Ab();if(m=l.find(function(C){return C.language==b&&C.label==(f||"")&&C.kind==c}))return am(h),B["return"](m);throw new O(1,2,2012);case 4:n=
456
+ Jb;p=h.i.presentationTimeline.getDuration();if(Infinity==p)throw new O(1,4,4033);if(!k.length){B.D(6);break}return u(B,tm(h,a,h.H,h.h.streaming.retryParameters),7);case 7:r=B.h,v=um(h,r,d,k),y=new Blob([v],{type:"text/vtt"}),a=ni(y),d="text/vtt";case 6:x={id:h.Rf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:fj(0,p,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:n.ha,primary:!1,trickModeVideo:null,
457
+ emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};w=wd(x.mimeType,x.codecs);D=Cd(w);if(!D)throw new O(2,2,2014,d);h.i.textStreams.push(x);am(h);return B["return"](re(x))}})};
458
+ q.Vf=function(a,b,c){var d=this,e,f,g,h;return I(function(k){switch(k.g){case 1:if(d.l!=Tl&&d.l!=dm)throw new O(1,7,7004);if(c){k.D(2);break}return u(k,rm(d,a),3);case 3:c=k.h;case 2:e=[];if(d.G)try{e=d.G.getServerSideCuePoints()}catch(l){}return u(k,sm(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.qf();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return u(k,new Promise(function(l,m){d.B.Ea(f,"load",l);d.B.Ea(f,"error",function(){m(new O(1,2,2015))})}),6);case 6:return k["return"](h);
459
+ case 5:throw new O(1,2,2012);}})};function rm(a,b){var c,d;return I(function(e){switch(e.g){case 1:c=yg(b);if(d=vm[c])return e["return"](d);A(e,2);return u(e,Ag(b,a.H,a.h.streaming.retryParameters),4);case 4:d=e.h;va(e,3);break;case 2:F(e);case 3:if(d)return e["return"](d);throw new O(1,2,2011,c);}})}
460
+ function sm(a,b,c,d,e,f,g){var h,k,l,m;return I(function(n){if(1==n.g)return"text/vtt"!=e||g.length?u(n,tm(a,b,a.H,a.h.streaming.retryParameters),3):n.D(2);2!=n.g&&(h=n.h,k=um(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=ni(l),e="text/vtt");m=document.createElement("track");var p=a.S,r=b;try{if(p.g.enabled){var v=Hk(p);v.ot=Nk;v.su=!0;var y=Jk(v);var x=Kk(r,y)}else x=r}catch(w){Va("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",w),x=r}m.src=x;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
461
+ a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n["return"](m)})}function tm(a,b,c,d){var e,f,g;return I(function(h){if(1==h.g){e=xf;f=rf([b],d);f.method="GET";var k=a.S;try{k.g.enabled&&Fk(k,f,{ot:Nk,su:!0})}catch(l){Va("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return u(h,c.request(e,f).promise,2)}g=h.h;return h["return"](g.data)})}
462
+ function um(a,b,c,d){var e=Dd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Ec(b),b=c.parseMedia(b,a),tk(b,d);throw new O(2,2,2014,c);}q.Ge=function(a,b){this.Dc.width=a;this.Dc.height=b};q.we=function(){if(this.l==Tl){var a=this.j;if(a.h.g)a=!1;else if(a.B)a=!1;else{for(var b=t(a.i.values()),c=b.next();!c.done;c=b.next())c=c.value,c.Kc&&(c.Kc=!1,Dj(a,c,.1));a=!0}}else a=!1;return a};
463
463
  q.xg=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.yg=function(){return this.vd};
464
464
  function dl(a){var b=Tk();b.streaming.failureCallback=function(c){var d=[1001,1002,1003];a.U()&&d.includes(c.code)&&(c.severity=1,a.we())};b.textDisplayFactory=function(){return a.pd?new mk(a.g,a.pd):new gk(a.g)};return b}q.Le=function(a){this.pd=a};
465
465
  function Gl(a,b){for(var c=new Set,d=t(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=t(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=t(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 gj;h={id:a.Rf++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
466
- segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:e.closedCaptions.get(g),label:null,type:Ib,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};b.textStreams.push(h);c.add(g)}}function Fl(a,b){return J(function(c){if(1==c.g)return z(c,wm(a,b),2);km(a,b);A(c)})}
467
- function wm(a,b){var c;return J(function(d){if(1==d.g)return c=a.j?a.j.l:null,z(d,be(c,b),2);$l(b);A(d)})}
468
- function km(a,b){if(a.l!=sl){ae(b.variants,a.h.restrictions,a.Dc)&&a.j&&am(a);var c=a.m?a.m.g:null;if(c&&a.m.B)for(var d=t(b.variants),e=d.next();!e.done;e=d.next()){e=e.value;e=t((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]));for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.keySystem==c.keySystem){f=t(f.initData||[]);for(var g=f.next();!g.done;g=f.next())g=g.value,Yf(a.m,g.initDataType,g.initData)}}xm(a,b)}}
469
- function Vl(a,b){var c,d,e,f,g;return J(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,p;return J(function(r){if(1==r.g)return k?z(r,k.createSegmentIndex(),2):r["return"](null);n=(m=k.segmentIndex.bc(l))?m.next().value:null;if(!n)return r["return"](null);p=n.startTime;return r["return"](p)})},z(h,e(c,b),2);if(3!=h.g)return f=h.h,z(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)})}
470
- function Bl(a){var b=a.Mc();if(a.B&&a.N&&a.F){var c=a.I;c.j=b;ij(c);a.S&&(c=a.S,b||c.i||(c.i=!0),c.i&&b&&(c.l=!0),c.m=b);Ll(a)}b=(new Map).set("buffering",b);a.dispatchEvent(ql("buffering",b))}function Ml(a){var b=a.g.playbackRate;0!=b&&(a.I&&a.I.set(b),b=ql("ratechange"),a.dispatchEvent(b))}function Ll(a){if(a.B&&a.N){var b=a.B.g;a.N.g==Xe?Xk(b,"buffering"):a.g.paused?Xk(b,"paused"):a.g.ended?Xk(b,"ended"):Xk(b,"playing")}}
471
- function bm(a){try{xm(a,a.i)}catch(c){return Al(a,c),!1}var b=a.i.variants.filter(function(c){return xe(c)});b=a.va.create(b);a.C.setVariants(Array.from(b.values()));return!0}function rl(a){return bm(a)?a.C.chooseVariant():null}function lm(a){var b=rl(a);b&&Ol(a,b,!0,!0,0)}
472
- function Ol(a,b,c,d,e){var f=a.j.l;if(b==f)d&&Hj(a.j,b,d,e,!0);else{var g=a.B.h;g.h!=b&&(g.h=b,g.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));Hj(a.j,b,d,e);d=null;f&&(d=pe(f));b=pe(b);c?Wl(a,d,b):ym(a,d,b)}}function nm(a,b){var c=Array.from(a.g.audioTracks).find(function(e){return e.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=we(c);var d=we(b);ym(a,c,d)}
466
+ segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:e.closedCaptions.get(g),label:null,type:Ib,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};b.textStreams.push(h);c.add(g)}}function Fl(a,b){return I(function(c){if(1==c.g)return u(c,wm(a,b),2);km(a,b);z(c)})}
467
+ function wm(a,b){var c;return I(function(d){if(1==d.g)return c=a.j?a.j.l:null,u(d,ce(c,b),2);$l(b);z(d)})}
468
+ function km(a,b){if(a.l!=sl){be(b.variants,a.h.restrictions,a.Dc)&&a.j&&am(a);var c=a.m?a.m.g:null;if(c&&a.m.B)for(var d=t(b.variants),e=d.next();!e.done;e=d.next()){e=e.value;e=t((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]));for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.keySystem==c.keySystem){f=t(f.initData||[]);for(var g=f.next();!g.done;g=f.next())g=g.value,Yf(a.m,g.initDataType,g.initData)}}xm(a,b)}}
469
+ function Vl(a,b){var c,d,e,f,g;return I(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,p;return I(function(r){if(1==r.g)return k?u(r,k.createSegmentIndex(),2):r["return"](null);n=(m=k.segmentIndex.bc(l))?m.next().value:null;if(!n)return r["return"](null);p=n.startTime;return r["return"](p)})},u(h,e(c,b),2);if(3!=h.g)return f=h.h,u(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)})}
470
+ function Bl(a){var b=a.Mc();if(a.A&&a.N&&a.F){var c=a.I;c.j=b;ij(c);a.S&&(c=a.S,b||c.i||(c.i=!0),c.i&&b&&(c.l=!0),c.m=b);Ll(a)}b=(new Map).set("buffering",b);a.dispatchEvent(ql("buffering",b))}function Ml(a){var b=a.g.playbackRate;0!=b&&(a.I&&a.I.set(b),b=ql("ratechange"),a.dispatchEvent(b))}function Ll(a){if(a.A&&a.N){var b=a.A.g;a.N.g==Xe?Xk(b,"buffering"):a.g.paused?Xk(b,"paused"):a.g.ended?Xk(b,"ended"):Xk(b,"playing")}}
471
+ function bm(a){try{xm(a,a.i)}catch(c){return Al(a,c),!1}var b=a.i.variants.filter(function(c){return ye(c)});b=a.ya.create(b);a.C.setVariants(Array.from(b.values()));return!0}function rl(a){return bm(a)?a.C.chooseVariant():null}function lm(a){var b=rl(a);b&&Ol(a,b,!0,!0,0)}
472
+ function Ol(a,b,c,d,e){var f=a.j.l;if(b==f)d&&Hj(a.j,b,d,e,!0);else{var g=a.A.h;g.h!=b&&(g.h=b,g.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));Hj(a.j,b,d,e);d=null;f&&(d=qe(f));b=qe(b);c?Wl(a,d,b):ym(a,d,b)}}function nm(a,b){var c=Array.from(a.g.audioTracks).find(function(e){return e.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=xe(c);var d=xe(b);ym(a,c,d)}
473
473
  function Xl(a,b,c){a=Mb(a.h.preferredTextLanguage);b=Mb(b.language);c=Mb(c.language);return Lb(c,a)&&!Lb(b,c)}function Wl(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);b=ql("adaptation",b);zm(a,b)}function am(a){var b=ql("trackschanged");zm(a,b)}function ym(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);b=ql("variantchanged",b);zm(a,b)}function mm(a){var b=ql("textchanged");zm(a,b)}function Yl(a){var b=ql("texttrackvisibility");zm(a,b)}
474
474
  function Zl(a){var b=(new Map).set("newStatus",a.h.abr.enabled);zm(a,ql("abrstatuschanged",b))}
475
- function Am(a,b){if(1002!=b.code&&1011!=b.code||1!=b.category)return!1;var c=a.h.streaming.maxDisabledTime;if(0==c)if(1011==b.code)c=1;else return!1;for(var d=a.Qa().find(function(h){return h.active}),e=a.i,f=t(e.variants),g=f.next();!g.done;g=f.next())g=g.value,g.id===d.id&&(g.disabledUntilTime=Date.now()/1E3+c);ae(e.variants,a.h.restrictions,a.Dc);d=rl(a);if(!d)return!1;e=a.kb().video.reduce(function(h,k){return h+k.end-k.start},0);Ol(a,d,!1,!0,e);a.Qf.T(c);return!0}
475
+ function Am(a,b){if(1002!=b.code&&1011!=b.code||1!=b.category||!navigator.onLine)return!1;var c=a.h.streaming.maxDisabledTime;if(0==c)if(1011==b.code)c=1;else return!1;for(var d=a.Qa().find(function(h){return h.active}),e=a.i,f=t(e.variants),g=f.next();!g.done;g=f.next())g=g.value,g.id===d.id&&(g.disabledUntilTime=Date.now()/1E3+c);be(e.variants,a.h.restrictions,a.Dc);d=rl(a);if(!d)return!1;e=a.kb().video.reduce(function(h,k){return h+k.end-k.start},0);Ol(a,d,!1,!0,e);a.Qf.T(c);return!0}
476
476
  function Al(a,b){if(a.l!=sl)if(Am(a,b))b.handled=!0;else{var c=ql("error",(new Map).set("detail",b));a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}function El(a,b,c){c=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement});a.dispatchEvent(ql(b,c))}
477
- function zl(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 P(2,3,3016,b,c,a.g.error.message)}
477
+ function zl(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 O(2,3,3016,b,c,a.g.error.message)}
478
478
  function Jl(a,b){if(a.j){var c=Object.keys(b),d=1==c.length&&"00"==c[0],e=!1;if(c.length){c=t(a.i.variants);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=f.allowedByKeySystem;if(k.keyIds.size){f.allowedByKeySystem=!0;k=t(k.keyIds);for(var l=k.next();!l.done;l=k.next())l=l.value,l=b[d?"00":l],f.allowedByKeySystem=f.allowedByKeySystem&&!!l&&!Bm.includes(l)}h!=f.allowedByKeySystem&&
479
479
  (e=!0)}}}if(!e||bm(a))(d=a.j.l)&&!d.allowedByKeySystem&&lm(a),e&&am(a)}}function Kl(a,b,c){if(a.J&&a.J.onExpirationUpdated)a.J.onExpirationUpdated(b,c);b=ql("expirationupdated");a.dispatchEvent(b)}function Nl(a,b,c){0<b&&(a.U()||a.Kf(b));b=a.getDuration();c<b&&(a.U()||a.bb(c))}
480
480
  function xm(a,b){var c=a.m?a.m.md():{},d=Object.keys(c);d=d.length&&"00"==d[0];for(var e=!1,f=!1,g=new Set,h=new Set,k=t(b.variants),l=k.next();!l.done;l=k.next()){l=l.value;var m=[];l.audio&&m.push(l.audio);l.video&&m.push(l.video);m=t(m);for(var n=m.next();!n.done;n=m.next())if(n=n.value,n.keyIds.size){n=t(n.keyIds);for(var p=n.next();!p.done;p=n.next()){p=p.value;var r=c[d?"00":p];r?Bm.includes(r)&&h.add(r):g.add(p)}}l.allowedByApplication?l.allowedByKeySystem&&(e=!0):f=!0}if(!e)throw c={hasAppRestrictions:f,
481
- missingKeys:Array.from(g),restrictedKeyStatuses:Array.from(h)},new P(2,4,4012,c);}function $l(a){if(!a.variants.some(xe))throw new P(2,4,4032);}function zm(a,b){J(function(c){if(1==c.g)return z(c,Promise.resolve(),2);a.l!=sl&&a.dispatchEvent(b);A(c)})}function pm(a){var b=new Set;a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Mb(c.language)):b.add("und");return b}
481
+ missingKeys:Array.from(g),restrictedKeyStatuses:Array.from(h)},new O(2,4,4012,c);}function $l(a){if(!a.variants.some(ye))throw new O(2,4,4032);}function zm(a,b){I(function(c){if(1==c.g)return u(c,Promise.resolve(),2);a.l!=sl&&a.dispatchEvent(b);z(c)})}function pm(a){var b=new Set;a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Mb(c.language)):b.add("und");return b}
482
482
  function om(a){var b=new Map,c=new Map;a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=Mb(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=t(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){for(var m=t(k),n=m.next();!n.done;n=m.next()){n=n.value;var p=null;c.has(l)&&c.get(l).has(n)&&(p=c.get(l).get(n));
483
- h.push({language:l,role:n,label:p})}});return h}function ul(){return new P(2,7,7E3)}function pl(a,b,c,d,e,f){return d==a&&e.O==f.O&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function ak(){return{O:null,mimeType:null,startTime:null,Me:NaN,uri:null}}function vl(a){return new Promise(function(b,c){a.Pb=function(){return c(ul())};a.wd=function(){return b()};a.onError=function(d){return c(d)};a.yd=function(){return c(ul())}})}M("shaka.Player",T);T.prototype.setVideoContainer=T.prototype.Le;
484
- T.prototype.getManifestParserFactory=T.prototype.yg;T.prototype.getManifest=T.prototype.xg;T.prototype.retryStreaming=T.prototype.we;T.prototype.setMaxHardwareResolution=T.prototype.Ge;T.prototype.addChaptersTrack=T.prototype.Vf;T.prototype.addTextTrackAsync=T.prototype.Wf;T.prototype.getStats=T.prototype.getStats;T.prototype.getBufferedInfo=T.prototype.kb;T.prototype.getPresentationStartTimeAsDate=T.prototype.uf;T.prototype.getPlayheadTimeAsDate=T.prototype.Cg;
485
- T.prototype.setTextTrackVisibility=T.prototype.Ke;T.prototype.getChapters=T.prototype.kg;T.prototype.getChaptersTracks=T.prototype.qf;T.prototype.isTextTrackVisible=T.prototype.Nb;T.prototype.selectVariantsByLabel=T.prototype.kh;T.prototype.selectTextLanguage=T.prototype.Ae;T.prototype.selectAudioLanguage=T.prototype.Fd;T.prototype.getTextLanguages=T.prototype.Fg;T.prototype.getAudioLanguages=T.prototype.gg;T.prototype.getTextLanguagesAndRoles=T.prototype.Gg;
486
- T.prototype.getAudioLanguagesAndRoles=T.prototype.hg;T.prototype.selectVariantTrack=T.prototype.Ce;T.prototype.selectTextTrack=T.prototype.Be;T.prototype.getThumbnails=T.prototype.Hg;T.prototype.getImageTracks=T.prototype.rg;T.prototype.getTextTracks=T.prototype.Ab;T.prototype.getVariantTracks=T.prototype.Qa;T.prototype.cancelTrickPlay=T.prototype.cf;T.prototype.trickPlay=T.prototype.Qe;T.prototype.getPlaybackRate=T.prototype.zb;T.prototype.isBuffering=T.prototype.Mc;T.prototype.getKeyStatuses=T.prototype.md;
487
- T.prototype.getExpiration=T.prototype.Fc;T.prototype.drmInfo=T.prototype.drmInfo;T.prototype.keySystem=T.prototype.keySystem;T.prototype.goToLive=T.prototype.Lg;T.prototype.seekRange=T.prototype.Ia;T.prototype.isAudioOnly=T.prototype.hc;T.prototype.isInProgress=T.prototype.Lb;T.prototype.isLive=T.prototype.U;T.prototype.getAdManager=T.prototype.kd;T.prototype.getAssetUri=T.prototype.ae;T.prototype.getNetworkingEngine=T.prototype.Gc;T.prototype.getMediaElement=T.prototype.Ag;
488
- T.prototype.getLoadMode=T.prototype.tf;T.prototype.resetConfiguration=T.prototype.hh;T.prototype.getBufferFullness=T.prototype.ig;T.prototype.getConfiguration=T.prototype.getConfiguration;T.prototype.configure=T.prototype.configure;T.prototype.load=T.prototype.load;T.prototype.updateStartTime=T.prototype.wh;T.prototype.unload=T.prototype.Se;T.prototype.detach=T.prototype.detach;T.prototype.attach=T.prototype.Ac;
489
- T.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return J(function(h){if(1==h.g)return b={},a?z(h,qg(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(Pc()){for(var l in xg)k[l]=!0;for(var m in zg)k[m]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};m=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var n=m.next();!n.done;n=m.next())n=n.value,k[n]=Pc()?!!xg[n]:Qc(n);for(var p in l)k[p]=
490
- Pc()?!!zg[p]:Qc(l[p]);c=k;p='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",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",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(ja(Hi));
491
- k={};p=t(p);for(l=p.next();!l.done;l=p.next())l=l.value,k[l]=Pc()?Cd(l)?!0:MediaSource.isTypeSupported(l)||rd(l):Qc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=Cm;for(g in f)e[g]=f[g]();return h["return"](e)})};T.isBrowserSupported=tl;T.setAdManagerFactory=function(a){fl=a};T.registerSupportPlugin=function(a,b){Cm[a]=b};T.prototype.destroy=T.prototype.destroy;var sl=0,cl=1,Tl=2,dm=3;T.LoadMode={DESTROYED:sl,NOT_LOADED:cl,MEDIA_SOURCE:Tl,SRC_EQUALS:dm};T.version="v4.2.0";
483
+ h.push({language:l,role:n,label:p})}});return h}function ul(){return new O(2,7,7E3)}function pl(a,b,c,d,e,f){return d==a&&e.O==f.O&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function ak(){return{O:null,mimeType:null,startTime:null,Me:NaN,uri:null}}function vl(a){return new Promise(function(b,c){a.Pb=function(){return c(ul())};a.wd=function(){return b()};a.onError=function(d){return c(d)};a.yd=function(){return c(ul())}})}J("shaka.Player",S);S.prototype.setVideoContainer=S.prototype.Le;
484
+ S.prototype.getManifestParserFactory=S.prototype.yg;S.prototype.getManifest=S.prototype.xg;S.prototype.retryStreaming=S.prototype.we;S.prototype.setMaxHardwareResolution=S.prototype.Ge;S.prototype.addChaptersTrack=S.prototype.Vf;S.prototype.addTextTrackAsync=S.prototype.Wf;S.prototype.getStats=S.prototype.getStats;S.prototype.getBufferedInfo=S.prototype.kb;S.prototype.getPresentationStartTimeAsDate=S.prototype.uf;S.prototype.getPlayheadTimeAsDate=S.prototype.Cg;
485
+ S.prototype.setTextTrackVisibility=S.prototype.Ke;S.prototype.getChapters=S.prototype.kg;S.prototype.getChaptersTracks=S.prototype.qf;S.prototype.isTextTrackVisible=S.prototype.Nb;S.prototype.selectVariantsByLabel=S.prototype.kh;S.prototype.selectTextLanguage=S.prototype.Ae;S.prototype.selectAudioLanguage=S.prototype.Fd;S.prototype.getTextLanguages=S.prototype.Fg;S.prototype.getAudioLanguages=S.prototype.gg;S.prototype.getTextLanguagesAndRoles=S.prototype.Gg;
486
+ S.prototype.getAudioLanguagesAndRoles=S.prototype.hg;S.prototype.selectVariantTrack=S.prototype.Ce;S.prototype.selectTextTrack=S.prototype.Be;S.prototype.getThumbnails=S.prototype.Hg;S.prototype.getImageTracks=S.prototype.rg;S.prototype.getTextTracks=S.prototype.Ab;S.prototype.getVariantTracks=S.prototype.Qa;S.prototype.cancelTrickPlay=S.prototype.cf;S.prototype.trickPlay=S.prototype.Qe;S.prototype.getPlaybackRate=S.prototype.zb;S.prototype.isBuffering=S.prototype.Mc;S.prototype.getKeyStatuses=S.prototype.md;
487
+ S.prototype.getExpiration=S.prototype.Fc;S.prototype.drmInfo=S.prototype.drmInfo;S.prototype.keySystem=S.prototype.keySystem;S.prototype.goToLive=S.prototype.Lg;S.prototype.seekRange=S.prototype.Ha;S.prototype.isAudioOnly=S.prototype.hc;S.prototype.isInProgress=S.prototype.Lb;S.prototype.isLive=S.prototype.U;S.prototype.getAdManager=S.prototype.kd;S.prototype.getAssetUri=S.prototype.ae;S.prototype.getNetworkingEngine=S.prototype.Gc;S.prototype.getMediaElement=S.prototype.Ag;
488
+ S.prototype.getLoadMode=S.prototype.tf;S.prototype.resetConfiguration=S.prototype.hh;S.prototype.getBufferFullness=S.prototype.ig;S.prototype.getConfiguration=S.prototype.getConfiguration;S.prototype.configure=S.prototype.configure;S.prototype.load=S.prototype.load;S.prototype.updateStartTime=S.prototype.wh;S.prototype.unload=S.prototype.Se;S.prototype.detach=S.prototype.detach;S.prototype.attach=S.prototype.Ac;
489
+ S.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return I(function(h){if(1==h.g)return b={},a?u(h,qg(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(Oc()){for(var l in xg)k[l]=!0;for(var m in zg)k[m]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};m=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var n=m.next();!n.done;n=m.next())n=n.value,k[n]=Oc()?!!xg[n]:Pc(n);for(var p in l)k[p]=
490
+ Oc()?!!zg[p]:Pc(l[p]);c=k;p='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",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",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(ia(Hi));
491
+ k={};p=t(p);for(l=p.next();!l.done;l=p.next())l=l.value,k[l]=Oc()?Cd(l)?!0:MediaSource.isTypeSupported(l)||rd(l):Pc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=Cm;for(g in f)e[g]=f[g]();return h["return"](e)})};S.isBrowserSupported=tl;S.setAdManagerFactory=function(a){fl=a};S.registerSupportPlugin=function(a,b){Cm[a]=b};S.prototype.destroy=S.prototype.destroy;var sl=0,cl=1,Tl=2,dm=3;S.LoadMode={DESTROYED:sl,NOT_LOADED:cl,MEDIA_SOURCE:Tl,SRC_EQUALS:dm};S.version="v4.2.1";
492
492
  var Dm=["4","2"];Je=new function(a){this.g=a;this.i=Ke;this.h=Le}(new He(Number(Dm[0]),Number(Dm[1])));
493
493
  var Bm=["output-restricted","internal-error"],Cm={},fl=null,yl={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",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},vm={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",
494
494
  ssa:"text/x-ssa",ass:"text/x-ssa"};function Em(){this.h=[];this.j=this.i=this.g=0};function Fm(a,b,c){var d=this;this.h=a;this.g=b;this.m=c;this.i=!1;this.l=this.g.getVolume();this.j=new Af;this.j.o(this.g,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.j.o(this.g,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=Fm.prototype;q.getDuration=function(){return this.h.getDuration()};q.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()};q.getRemainingTime=function(){return this.g.getRemainingTime()};q.isPaused=function(){return this.i};
495
495
  q.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()};q.getTimeUntilSkippable=function(){var a=this.h.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};q.canSkipNow=function(){return this.g.getAdSkippableState()};q.skip=function(){return this.g.skip()};q.pause=function(){return this.g.pause()};q.play=function(){return this.g.resume()};q.getVolume=function(){return this.g.getVolume()};q.setVolume=function(a){return this.g.setVolume(a)};q.isMuted=function(){return 0==this.g.getVolume()};
496
496
  q.isLinear=function(){return this.h.isLinear()};q.resize=function(a,b){var c=!1,d=this.m;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.g.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};q.setMuted=function(a){a?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)};q.getSequenceLength=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getTotalAds()};
497
- q.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};q.release=function(){this.g=this.h=null};M("shaka.ads.ClientSideAd",Fm);Fm.prototype.release=Fm.prototype.release;Fm.prototype.getPositionInSequence=Fm.prototype.getPositionInSequence;Fm.prototype.getSequenceLength=Fm.prototype.getSequenceLength;Fm.prototype.setMuted=Fm.prototype.setMuted;Fm.prototype.resize=Fm.prototype.resize;Fm.prototype.isLinear=Fm.prototype.isLinear;Fm.prototype.isMuted=Fm.prototype.isMuted;
497
+ q.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};q.release=function(){this.g=this.h=null};J("shaka.ads.ClientSideAd",Fm);Fm.prototype.release=Fm.prototype.release;Fm.prototype.getPositionInSequence=Fm.prototype.getPositionInSequence;Fm.prototype.getSequenceLength=Fm.prototype.getSequenceLength;Fm.prototype.setMuted=Fm.prototype.setMuted;Fm.prototype.resize=Fm.prototype.resize;Fm.prototype.isLinear=Fm.prototype.isLinear;Fm.prototype.isMuted=Fm.prototype.isMuted;
498
498
  Fm.prototype.setVolume=Fm.prototype.setVolume;Fm.prototype.getVolume=Fm.prototype.getVolume;Fm.prototype.play=Fm.prototype.play;Fm.prototype.pause=Fm.prototype.pause;Fm.prototype.skip=Fm.prototype.skip;Fm.prototype.canSkipNow=Fm.prototype.canSkipNow;Fm.prototype.getTimeUntilSkippable=Fm.prototype.getTimeUntilSkippable;Fm.prototype.isSkippable=Fm.prototype.isSkippable;Fm.prototype.isPaused=Fm.prototype.isPaused;Fm.prototype.getRemainingTime=Fm.prototype.getRemainingTime;
499
- Fm.prototype.getMinSuggestedDuration=Fm.prototype.getMinSuggestedDuration;Fm.prototype.getDuration=Fm.prototype.getDuration;function Gm(a,b,c,d){var e=this;this.A=a;this.i=b;this.B=null;this.C=NaN;this.l=d;this.j=null;this.h=new Af;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.A,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.2.0");this.g=null;this.h.Fa(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){Hm(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
500
- function(f){Im(e,f)});this.i.onended=function(){e.m.contentComplete()}}Gm.prototype.stop=function(){this.g&&this.g.stop();this.A&&lk(this.A)};Gm.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function Im(a,b){b.getError();Jm(a,null);a.l(new O("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
501
- function Hm(a,b){a.l(new O("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.C)));a.g=b.getAdsManager(a.i);a.l(new O("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){var d=[];c=t(c);for(var e=c.next();!e.done;e=c.next())d.push({start:e.value,end:null});a.l(new O("ad-cue-points-changed",(new Map).set("cuepoints",d)))}Km(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,Lm(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.o(a.i,"loadeddata",
499
+ Fm.prototype.getMinSuggestedDuration=Fm.prototype.getMinSuggestedDuration;Fm.prototype.getDuration=Fm.prototype.getDuration;function Gm(a,b,c,d){var e=this;this.A=a;this.i=b;this.B=null;this.C=NaN;this.l=d;this.j=null;this.h=new Af;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.A,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.2.1");this.g=null;this.h.Ea(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){Hm(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
500
+ function(f){Im(e,f)});this.i.onended=function(){e.m.contentComplete()}}Gm.prototype.stop=function(){this.g&&this.g.stop();this.A&&lk(this.A)};Gm.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function Im(a,b){b.getError();Jm(a,null);a.l(new M("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
501
+ function Hm(a,b){a.l(new M("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.C)));a.g=b.getAdsManager(a.i);a.l(new M("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){var d=[];c=t(c);for(var e=c.next();!e.done;e=c.next())d.push({start:e.value,end:null});a.l(new M("ad-cue-points-changed",(new Map).set("cuepoints",d)))}Km(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,Lm(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.o(a.i,"loadeddata",
502
502
  function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Lm(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window&&(a.B=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Lm(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.i)),a.g.start()}catch(f){Jm(a,null)}}function Lm(a){if(document.fullscreenEnabled)return!!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1}
503
- function Km(a){function b(c,d){var e=(new Map).set("originalEvent",c);a.l(new O(d,e))}a.h.o(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){Im(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){Mm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.STARTED,function(c){Mm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.o(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE,
503
+ function Km(a){function b(c,d){var e=(new Map).set("originalEvent",c);a.l(new M(d,e))}a.h.o(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){Im(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){Mm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.STARTED,function(c){Mm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.o(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE,
504
504
  function(c){b(c,"ad-third-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){Jm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){Jm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")});
505
505
  a.h.o(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j.i=!0;b(c,"ad-paused")});a.h.o(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j.i=!1;b(c,"ad-resumed")});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){b(c,"ad-skip-state-changed")});a.h.o(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.o(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")});a.h.o(a.g,
506
506
  google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.o(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.o(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.o(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.o(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.o(a.g,google.ima.AdEvent.Type.AD_METADATA,
507
- function(c){b(c,"ad-metadata")});a.h.o(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.o(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})}function Mm(a,b){var c=b.getAd();a.j=new Fm(c,a.g,a.i);c=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b);a.l(new O("ad-started",c));a.j.isLinear()&&(a.A.setAttribute("ad-active","true"),a.i.pause())}
508
- function Jm(a,b){a.l(new O("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.A.removeAttribute("ad-active"),a.i.play())};function Nm(a,b){this.i=a;this.h=null;this.g=b}q=Nm.prototype;q.getDuration=function(){return this.h?this.h.duration:-1};q.getMinSuggestedDuration=function(){return this.getDuration()};q.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1};q.isPaused=function(){return this.g.paused};q.isSkippable=function(){return this.i.isSkippable()};q.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
507
+ function(c){b(c,"ad-metadata")});a.h.o(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.o(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})}function Mm(a,b){var c=b.getAd();a.j=new Fm(c,a.g,a.i);c=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b);a.l(new M("ad-started",c));a.j.isLinear()&&(a.A.setAttribute("ad-active","true"),a.i.pause())}
508
+ function Jm(a,b){a.l(new M("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.A.removeAttribute("ad-active"),a.i.play())};function Nm(a,b){this.i=a;this.h=null;this.g=b}q=Nm.prototype;q.getDuration=function(){return this.h?this.h.duration:-1};q.getMinSuggestedDuration=function(){return this.getDuration()};q.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1};q.isPaused=function(){return this.g.paused};q.isSkippable=function(){return this.i.isSkippable()};q.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
509
509
  q.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};q.skip=function(){this.g.currentTime+=this.getRemainingTime()};q.pause=function(){return this.g.pause()};q.play=function(){return this.g.play()};q.getVolume=function(){return this.g.volume};q.setVolume=function(a){this.g.volume=a};q.isMuted=function(){return this.g.muted};q.isLinear=function(){return!0};q.resize=function(){};q.setMuted=function(a){this.g.muted=a};
510
- q.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};q.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};q.release=function(){this.g=this.h=this.i=null};M("shaka.ads.ServerSideAd",Nm);Nm.prototype.release=Nm.prototype.release;Nm.prototype.getPositionInSequence=Nm.prototype.getPositionInSequence;Nm.prototype.getSequenceLength=Nm.prototype.getSequenceLength;Nm.prototype.setMuted=Nm.prototype.setMuted;
510
+ q.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};q.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};q.release=function(){this.g=this.h=this.i=null};J("shaka.ads.ServerSideAd",Nm);Nm.prototype.release=Nm.prototype.release;Nm.prototype.getPositionInSequence=Nm.prototype.getPositionInSequence;Nm.prototype.getSequenceLength=Nm.prototype.getSequenceLength;Nm.prototype.setMuted=Nm.prototype.setMuted;
511
511
  Nm.prototype.resize=Nm.prototype.resize;Nm.prototype.isLinear=Nm.prototype.isLinear;Nm.prototype.isMuted=Nm.prototype.isMuted;Nm.prototype.setVolume=Nm.prototype.setVolume;Nm.prototype.getVolume=Nm.prototype.getVolume;Nm.prototype.play=Nm.prototype.play;Nm.prototype.pause=Nm.prototype.pause;Nm.prototype.skip=Nm.prototype.skip;Nm.prototype.canSkipNow=Nm.prototype.canSkipNow;Nm.prototype.getTimeUntilSkippable=Nm.prototype.getTimeUntilSkippable;Nm.prototype.isSkippable=Nm.prototype.isSkippable;
512
- Nm.prototype.isPaused=Nm.prototype.isPaused;Nm.prototype.getRemainingTime=Nm.prototype.getRemainingTime;Nm.prototype.getMinSuggestedDuration=Nm.prototype.getMinSuggestedDuration;Nm.prototype.getDuration=Nm.prototype.getDuration;function Om(a,b,c,d){var e=this;this.B=a;this.l=b;this.j=null;this.I=NaN;this.i=d;this.H=!1;this.C=this.m=this.A=null;this.F="";this.G=[];this.h=new Af;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.B,a);this.i(new O("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){Pm(e,f)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.F.length?
513
- e.j.resolve(e.F):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new Nm(f,e.l);e.C&&(e.m.h=e.C);e.i(new O("ad-started",(new Map).set("ad",e.m)));e.B.setAttribute("ad-active","true")});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.B.removeAttribute("ad-active");
514
- var f=e.l.currentTime;e.A&&e.A>f&&(e.l.currentTime=e.A,e.A=null)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.C=f.getStreamData().adProgressData;e.m&&(e.m.h=e.C)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new O("ad-first-quartile"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new O("ad-midpoint"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new O("ad-third-quartile"))});
515
- this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new O("ad-complete"));e.i(new O("ad-stopped"));e.B.removeAttribute("ad-active");e.m=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new O("ad-skipped"));e.i(new O("ad-stopped"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=t(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push({start:h.start,end:h.end});e.G=
516
- f;e.i(new O("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}Om.prototype.stop=function(){this.F="";this.A=null;this.G=[]};Om.prototype.release=function(){this.stop();this.h&&this.h.release()};Om.prototype.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};
517
- function Pm(a,b){a.i(new O("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));var c=b.getStreamData().url;a.j.resolve(c);a.j=null;a.H||a.h.o(a.l,"seeked",function(){var d=a.l.currentTime;if(0!=d){a.g.streamTimeForContentTime(d);var e=a.g.previousCuePointForStreamTime(d);e&&!e.played&&(a.A=d,a.l.currentTime=e.start)}})};function U(){fb.call(this);this.g=this.i=null;this.h=new Em;this.j=navigator.language}u(U,fb);q=U.prototype;q.setLocale=function(a){this.j=a};q.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new P(2,10,1E4);this.i&&this.i.release();this.i=new Gm(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
518
- q.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);fb.prototype.release.call(this)};q.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new O("ad-stopped"));this.h=new Em};q.requestClientSideAds=function(a){if(!this.i)throw new P(1,10,10001);var b=this.i;b.C=Date.now()/1E3;b.m.requestAds(a)};
519
- q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new P(2,10,10002);this.g&&this.g.release();this.g=new Om(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
520
- q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new P(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.2.0";c=this.g;var d=b;c.j?c=Promise.reject(new P(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
521
- (c.H=!0),c.j=new Mc,c.g.requestStream(a),c.F=d||"",c.I=Date.now()/1E3,c=c.j);return c};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new P(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.2.0";this.g.g.replaceAdTagParameters(a)};q.getServerSideCuePoints=function(){if(!this.g)throw new P(1,10,10003);return this.g.G};
522
- q.getStats=function(){var a=this.h;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};q.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(b,c,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)};M("shaka.ads.AdManager",U);
523
- U.prototype.onCueMetadataChange=U.prototype.onCueMetadataChange;U.prototype.onHlsTimedMetadata=U.prototype.onHlsTimedMetadata;U.prototype.onDashTimedMetadata=U.prototype.onDashTimedMetadata;U.prototype.getStats=U.prototype.getStats;U.prototype.getServerSideCuePoints=U.prototype.getServerSideCuePoints;U.prototype.replaceServerSideAdTagParameters=U.prototype.replaceServerSideAdTagParameters;U.prototype.requestServerSideStream=U.prototype.requestServerSideStream;U.prototype.initServerSide=U.prototype.initServerSide;
524
- U.prototype.requestClientSideAds=U.prototype.requestClientSideAds;U.prototype.onAssetUnload=U.prototype.onAssetUnload;U.prototype.release=U.prototype.release;U.prototype.initClientSide=U.prototype.initClientSide;U.prototype.setLocale=U.prototype.setLocale;U.ADS_LOADED="ads-loaded";U.AD_STARTED="ad-started";U.AD_FIRST_QUARTILE="ad-first-quartile";U.AD_MIDPOINT="ad-midpoint";U.AD_THIRD_QUARTILE="ad-third-quartile";U.AD_COMPLETE="ad-complete";U.AD_STOPPED="ad-stopped";U.AD_SKIPPED="ad-skipped";
525
- U.AD_VOLUME_CHANGED="ad-volume-changed";U.AD_MUTED="ad-muted";U.AD_PAUSED="ad-paused";U.AD_RESUMED="ad-resumed";U.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";U.CUEPOINTS_CHANGED="ad-cue-points-changed";U.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";U.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";U.AD_CLICKED="ad-clicked";U.AD_PROGRESS="ad-progress";U.AD_BUFFERING="ad-buffering";U.AD_IMPRESSION="ad-impression";U.AD_DURATION_CHANGED="ad-duration-changed";U.AD_CLOSED="ad-closed";
526
- U.AD_LOADED="ad-loaded";U.ALL_ADS_COMPLETED="all-ads-completed";U.AD_LINEAR_CHANGED="ad-linear-changed";U.AD_METADATA="ad-metadata";U.AD_RECOVERABLE_ERROR="ad-recoverable-error";U.AD_BREAK_READY="ad-break-ready";U.AD_INTERACTION="ad-interaction";fl=function(){return new U};function Qm(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof O){var d={};for(f in c){var e=c[f];e&&"object"==typeof e?"detail"==f&&(d[f]=e):f in Event||(d[f]=e)}return d}if(c instanceof Error){var f=new Set(["name","message","stack"]);for(d in c)f.add(d);e=t(Object.getOwnPropertyNames(c));for(d=e.next();!d.done;d=e.next())f.add(d.value);e={};f=t(f);for(d=f.next();!d.done;d=f.next())d=d.value,e[d]=c[d];f={__type__:"Error",contents:e}}else if(c instanceof
512
+ Nm.prototype.isPaused=Nm.prototype.isPaused;Nm.prototype.getRemainingTime=Nm.prototype.getRemainingTime;Nm.prototype.getMinSuggestedDuration=Nm.prototype.getMinSuggestedDuration;Nm.prototype.getDuration=Nm.prototype.getDuration;function Om(a,b,c,d){var e=this;this.B=a;this.l=b;this.j=null;this.I=NaN;this.i=d;this.H=!1;this.C=this.m=this.A=null;this.F="";this.G=[];this.h=new Af;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.B,a);this.i(new M("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){Pm(e,f)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.F.length?
513
+ e.j.resolve(e.F):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new Nm(f,e.l);e.C&&(e.m.h=e.C);e.i(new M("ad-started",(new Map).set("ad",e.m)));e.B.setAttribute("ad-active","true")});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.B.removeAttribute("ad-active");
514
+ var f=e.l.currentTime;e.A&&e.A>f&&(e.l.currentTime=e.A,e.A=null)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.C=f.getStreamData().adProgressData;e.m&&(e.m.h=e.C)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new M("ad-first-quartile"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new M("ad-midpoint"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new M("ad-third-quartile"))});
515
+ this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new M("ad-complete"));e.i(new M("ad-stopped"));e.B.removeAttribute("ad-active");e.m=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new M("ad-skipped"));e.i(new M("ad-stopped"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=t(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push({start:h.start,end:h.end});e.G=
516
+ f;e.i(new M("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}Om.prototype.stop=function(){this.F="";this.A=null;this.G=[]};Om.prototype.release=function(){this.stop();this.h&&this.h.release()};Om.prototype.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};
517
+ function Pm(a,b){a.i(new M("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));var c=b.getStreamData().url;a.j.resolve(c);a.j=null;a.H||a.h.o(a.l,"seeked",function(){var d=a.l.currentTime;if(0!=d){a.g.streamTimeForContentTime(d);var e=a.g.previousCuePointForStreamTime(d);e&&!e.played&&(a.A=d,a.l.currentTime=e.start)}})};function T(){fb.call(this);this.g=this.i=null;this.h=new Em;this.j=navigator.language}qa(T,fb);q=T.prototype;q.setLocale=function(a){this.j=a};q.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new O(2,10,1E4);this.i&&this.i.release();this.i=new Gm(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
518
+ q.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);fb.prototype.release.call(this)};q.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new M("ad-stopped"));this.h=new Em};q.requestClientSideAds=function(a){if(!this.i)throw new O(1,10,10001);var b=this.i;b.C=Date.now()/1E3;b.m.requestAds(a)};
519
+ q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new O(2,10,10002);this.g&&this.g.release();this.g=new Om(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
520
+ q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new O(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.2.1";c=this.g;var d=b;c.j?c=Promise.reject(new O(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
521
+ (c.H=!0),c.j=new Lc,c.g.requestStream(a),c.F=d||"",c.I=Date.now()/1E3,c=c.j);return c};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new O(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.2.1";this.g.g.replaceAdTagParameters(a)};q.getServerSideCuePoints=function(){if(!this.g)throw new O(1,10,10003);return this.g.G};
522
+ q.getStats=function(){var a=this.h;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};q.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(b,c,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)};J("shaka.ads.AdManager",T);
523
+ T.prototype.onCueMetadataChange=T.prototype.onCueMetadataChange;T.prototype.onHlsTimedMetadata=T.prototype.onHlsTimedMetadata;T.prototype.onDashTimedMetadata=T.prototype.onDashTimedMetadata;T.prototype.getStats=T.prototype.getStats;T.prototype.getServerSideCuePoints=T.prototype.getServerSideCuePoints;T.prototype.replaceServerSideAdTagParameters=T.prototype.replaceServerSideAdTagParameters;T.prototype.requestServerSideStream=T.prototype.requestServerSideStream;T.prototype.initServerSide=T.prototype.initServerSide;
524
+ T.prototype.requestClientSideAds=T.prototype.requestClientSideAds;T.prototype.onAssetUnload=T.prototype.onAssetUnload;T.prototype.release=T.prototype.release;T.prototype.initClientSide=T.prototype.initClientSide;T.prototype.setLocale=T.prototype.setLocale;T.ADS_LOADED="ads-loaded";T.AD_STARTED="ad-started";T.AD_FIRST_QUARTILE="ad-first-quartile";T.AD_MIDPOINT="ad-midpoint";T.AD_THIRD_QUARTILE="ad-third-quartile";T.AD_COMPLETE="ad-complete";T.AD_STOPPED="ad-stopped";T.AD_SKIPPED="ad-skipped";
525
+ T.AD_VOLUME_CHANGED="ad-volume-changed";T.AD_MUTED="ad-muted";T.AD_PAUSED="ad-paused";T.AD_RESUMED="ad-resumed";T.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";T.CUEPOINTS_CHANGED="ad-cue-points-changed";T.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";T.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";T.AD_CLICKED="ad-clicked";T.AD_PROGRESS="ad-progress";T.AD_BUFFERING="ad-buffering";T.AD_IMPRESSION="ad-impression";T.AD_DURATION_CHANGED="ad-duration-changed";T.AD_CLOSED="ad-closed";
526
+ T.AD_LOADED="ad-loaded";T.ALL_ADS_COMPLETED="all-ads-completed";T.AD_LINEAR_CHANGED="ad-linear-changed";T.AD_METADATA="ad-metadata";T.AD_RECOVERABLE_ERROR="ad-recoverable-error";T.AD_BREAK_READY="ad-break-ready";T.AD_INTERACTION="ad-interaction";fl=function(){return new T};function Qm(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof M){var d={};for(f in c){var e=c[f];e&&"object"==typeof e?"detail"==f&&(d[f]=e):f in Event||(d[f]=e)}return d}if(c instanceof Error){var f=new Set(["name","message","stack"]);for(d in c)f.add(d);e=t(Object.getOwnPropertyNames(c));for(d=e.next();!d.done;d=e.next())f.add(d.value);e={};f=t(f);for(d=f.next();!d.done;d=f.next())d=d.value,e[d]=c[d];f={__type__:"Error",contents:e}}else if(c instanceof
527
527
  TimeRanges)for(f={__type__:"TimeRanges",length:c.length,start:[],end:[]},d=t(ii(c)),e=d.next();!e.done;e=d.next()){e=e.value;var g=e.end;f.start.push(e.start);f.end.push(g)}else f=c instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return f}})}
528
528
  function Rm(a){return JSON.parse(a,function(b,c){if("NaN"==c)var d=NaN;else if("-Infinity"==c)d=-Infinity;else if("Infinity"==c)d=Infinity;else if(c&&"object"==typeof c&&"TimeRanges"==c.__type__)d=Sm(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){d=c.contents;var e=Error(d.message),f;for(f in d)e[f]=d[f];d=e}else d=c;return d})}
529
529
  function Sm(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}}
530
530
  var Tm="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Um="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Vm=["loop","playbackRate"],Wm=["pause","play"],Xm={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getConfiguration:4,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getTextTracks:2,
531
531
  getStats:5,getVariantTracks:2,getImageTracks:2,getThumbnails:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},Ym={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},Zm=[["getConfiguration","configure"]],$m=[["isTextTrackVisible","setTextTrackVisibility"]],an="addChaptersTrack addTextTrackAsync cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
532
- bn=["attach","detach","load","unload"];function cn(a,b,c,d,e,f,g){var h=this;this.I=a;this.P=g;this.j=new Q(b);this.S=c;this.C=!1;this.B=d;this.H=e;this.K=f;this.h=this.m=!1;this.N="";this.A=null;this.F=function(){return dn(h)};this.G=function(k,l){var m=Rm(l);switch(m.type){case "event":var n=m.targetName;m=Pa(m.event);h.B(n,m);break;case "update":n=m.update;for(var p in n){m=h.g[p]||{};for(var r in n[p])m[r]=n[p][r]}h.C&&(h.S(),h.C=!1);break;case "asyncComplete":if(p=m.id,m=m.error,r=h.i[p],delete h.i[p],r)if(m){p=new P(m.severity,m.category,
532
+ bn=["attach","detach","load","unload"];function cn(a,b,c,d,e,f,g){var h=this;this.I=a;this.P=g;this.j=new P(b);this.S=c;this.C=!1;this.B=d;this.H=e;this.K=f;this.h=this.m=!1;this.N="";this.A=null;this.F=function(){return dn(h)};this.G=function(k,l){var m=Rm(l);switch(m.type){case "event":var n=m.targetName;m=Qa(m.event);h.B(n,m);break;case "update":n=m.update;for(var p in n){m=h.g[p]||{};for(var r in n[p])m[r]=n[p][r]}h.C&&(h.S(),h.C=!1);break;case "asyncComplete":if(p=m.id,m=m.error,r=h.i[p],delete h.i[p],r)if(m){p=new O(m.severity,m.category,
533
533
  m.code);for(n in m)p[n]=m[n];r.reject(p)}else r.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.l=null;en.add(this)}q=cn.prototype;q.destroy=function(){en["delete"](this);fn(this);gn&&hn(this);this.j&&(this.j.stop(),this.j=null);this.H=this.B=null;this.h=this.m=!1;this.G=this.F=this.l=this.i=this.g=this.A=null;return Promise.resolve()};q.qa=function(){return this.h};q.Dd=function(){return this.N};
534
- q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.ya();var a=new chrome.cast.SessionRequest(this.I,[],null,this.P,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(en),d=c.next();!d.done;d=c.next())jn(d.value,b)},function(b){for(var c=t(en),d=c.next();!d.done;d=c.next())d=d.value,kn="available"==b,d.j.ya()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});kn&&this.j.T(ln);(a=gn)&&a.status!=chrome.cast.SessionStatus.STOPPED?
534
+ q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.xa();var a=new chrome.cast.SessionRequest(this.I,[],null,this.P,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(en),d=c.next();!d.done;d=c.next())jn(d.value,b)},function(b){for(var c=t(en),d=c.next();!d.done;d=c.next())d=d.value,kn="available"==b,d.j.xa()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});kn&&this.j.T(ln);(a=gn)&&a.status!=chrome.cast.SessionStatus.STOPPED?
535
535
  jn(this,a):gn=null}else window.__onGCastApiAvailable||(window.__onGCastApiAvailable=mn),window.__onGCastApiAvailable!=mn&&Ua("A global Cast SDK hook is already installed! Shaka Player will be unable to receive a notification when the Cast SDK is ready.")};q.De=function(a){this.A=a;this.h&&nn(this,{type:"appData",appData:this.A})};
536
- q.cast=function(a){var b=this;return J(function(c){if(!b.m)throw new P(1,8,8E3);if(!kn)throw new P(1,8,8001);if(b.h)throw new P(1,8,8002);b.l=new Mc;chrome.cast.requestSession(function(d){return on(b,a,d)},function(d){return pn(b,d)});return z(c,b.l,0)})};function qn(a){if(a.h){var b=a.K();chrome.cast.requestSession(function(c){return on(a,b,c)},function(c){return pn(a,c)})}}q.$b=function(){if(this.h){fn(this);if(gn){hn(this);try{gn.stop(function(){},function(){})}catch(a){}gn=null}dn(this)}};
537
- q.get=function(a,b){var c=this;if("video"==a){if(Wm.includes(b))return function(){return c.Ef.apply(c,[a,b].concat(ja(Fa.apply(0,arguments))))}}else if("player"==a){if(Ym[b]&&!this.get("player","isLive")())return function(){};if(an.includes(b))return function(){return c.Ef.apply(c,[a,b].concat(ja(Fa.apply(0,arguments))))};if(bn.includes(b))return function(){return c.eh.apply(c,[a,b].concat(ja(Fa.apply(0,arguments))))};if(Xm[b])return function(){return c.g[a][b]}}return this.g[a][b]};
538
- q.set=function(a,b,c){this.g[a][b]=c;nn(this,{type:"set",targetName:a,property:b,value:c})};function on(a,b,c){gn=c;c.addUpdateListener(a.F);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);dn(a);nn(a,{type:"init",initState:b,appData:a.A});a.l.resolve()}function pn(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.l.reject(new P(2,8,c,b))}
539
- q.Ef=function(a,b){nn(this,{type:"call",targetName:a,methodName:b,args:Fa.apply(2,arguments)})};q.eh=function(a,b){var c=Fa.apply(2,arguments),d=new Mc,e=this.J.toString();this.J++;this.i[e]=d;try{nn(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function jn(a,b){var c=a.K();a.l=new Mc;a.C=!0;on(a,c,b)}function hn(a){var b=gn;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
540
- function dn(a){var b=gn?"connected"==gn.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};fn(a)}a.h=b;a.N=b?gn.receiver.friendlyName:"";a.j.ya()}function fn(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new P(1,7,7E3))}}function nn(a,b){var c=Qm(b),d=gn;try{d.sendMessage("urn:x-cast:com.google.shaka.v2",c,function(){},Xa)}catch(e){throw c=new P(2,8,8005,e),d=new O("error",(new Map).set("detail",c)),a.B("player",d),a.$b(),c;}}var ln=.02,kn=!1,gn=null,en=new Set;
541
- function mn(a){if(a){a=t(en);for(var b=a.next();!b.done;b=a.next())b.value.init()}};function rn(a,b,c,d){d=void 0===d?!1:d;fb.call(this);var e=this;this.i=a;this.h=b;this.m=this.A=this.j=this.B=this.l=null;this.G=c;this.F=d;this.C=new Map;this.g=new cn(c,function(){return sn(e)},function(){return tn(e)},function(f,g){return un(e,f,g)},function(){return vn(e)},function(){return wn(e)},d);xn(this)}u(rn,fb);q=rn.prototype;
536
+ q.cast=function(a){var b=this;return I(function(c){if(!b.m)throw new O(1,8,8E3);if(!kn)throw new O(1,8,8001);if(b.h)throw new O(1,8,8002);b.l=new Lc;chrome.cast.requestSession(function(d){return on(b,a,d)},function(d){return pn(b,d)});return u(c,b.l,0)})};function qn(a){if(a.h){var b=a.K();chrome.cast.requestSession(function(c){return on(a,b,c)},function(c){return pn(a,c)})}}q.$b=function(){if(this.h){fn(this);if(gn){hn(this);try{gn.stop(function(){},function(){})}catch(a){}gn=null}dn(this)}};
537
+ q.get=function(a,b){var c=this;if("video"==a){if(Wm.includes(b))return function(){return c.Ef.apply(c,[a,b].concat(ia(Fa.apply(0,arguments))))}}else if("player"==a){if(Ym[b]&&!this.get("player","isLive")())return function(){};if(an.includes(b))return function(){return c.Ef.apply(c,[a,b].concat(ia(Fa.apply(0,arguments))))};if(bn.includes(b))return function(){return c.eh.apply(c,[a,b].concat(ia(Fa.apply(0,arguments))))};if(Xm[b])return function(){return c.g[a][b]}}return this.g[a][b]};
538
+ q.set=function(a,b,c){this.g[a][b]=c;nn(this,{type:"set",targetName:a,property:b,value:c})};function on(a,b,c){gn=c;c.addUpdateListener(a.F);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);dn(a);nn(a,{type:"init",initState:b,appData:a.A});a.l.resolve()}function pn(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.l.reject(new O(2,8,c,b))}
539
+ q.Ef=function(a,b){nn(this,{type:"call",targetName:a,methodName:b,args:Fa.apply(2,arguments)})};q.eh=function(a,b){var c=Fa.apply(2,arguments),d=new Lc,e=this.J.toString();this.J++;this.i[e]=d;try{nn(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function jn(a,b){var c=a.K();a.l=new Lc;a.C=!0;on(a,c,b)}function hn(a){var b=gn;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
540
+ function dn(a){var b=gn?"connected"==gn.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};fn(a)}a.h=b;a.N=b?gn.receiver.friendlyName:"";a.j.xa()}function fn(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new O(1,7,7E3))}}function nn(a,b){var c=Qm(b),d=gn;try{d.sendMessage("urn:x-cast:com.google.shaka.v2",c,function(){},Xa)}catch(e){throw c=new O(2,8,8005,e),d=new M("error",(new Map).set("detail",c)),a.B("player",d),a.$b(),c;}}var ln=.02,kn=!1,gn=null,en=new Set;
541
+ function mn(a){if(a){a=t(en);for(var b=a.next();!b.done;b=a.next())b.value.init()}};function rn(a,b,c,d){d=void 0===d?!1:d;fb.call(this);var e=this;this.i=a;this.h=b;this.m=this.A=this.j=this.B=this.l=null;this.G=c;this.F=d;this.C=new Map;this.g=new cn(c,function(){return sn(e)},function(){return tn(e)},function(f,g){return un(e,f,g)},function(){return vn(e)},function(){return wn(e)},d);xn(this)}qa(rn,fb);q=rn.prototype;
542
542
  q.destroy=function(a){a&&this.g.$b();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.B=this.l=this.i=null;fb.prototype.release.call(this);return Promise.all(a)};q.Bb=function(){return this.l};q.cc=function(){return this.B};q.bf=function(){return this.g.m&&kn};q.qa=function(){return this.g.qa()};q.Dd=function(){return this.g.Dd()};
543
- q.cast=function(){var a=this,b;return J(function(c){return 1==c.g?(b=wn(a),z(c,a.g.cast(b),2)):a.h?z(c,a.h.Se(),0):c["return"]()})};q.De=function(a){this.g.De(a)};q.Mf=function(){qn(this.g)};q.$b=function(){this.g.$b()};
544
- q.gf=function(a,b){b=void 0===b?!1:b;var c=this;return J(function(d){if(1==d.g){if(a==c.G&&b==c.F)return d["return"]();c.G=a;c.F=b;c.g.$b();return z(d,c.g.destroy(),2)}c.g=null;c.g=new cn(a,function(){return sn(c)},function(){return tn(c)},function(e,f){return un(c,e,f)},function(){return vn(c)},function(){return wn(c)},b);c.g.init();A(d)})};
545
- function xn(a){a.g.init();a.m=new Af;for(var b=t(Tm),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.qa()||(f=Pa(f),a.j.dispatchEvent(f))});for(var d in Qa)a.m.o(a.h,Qa[d],function(f){a.g.qa()||a.A.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.uc=e,Object.defineProperty(a.l,b.uc,{configurable:!1,enumerable:!0,get:function(f){return function(){return yn(a,f.uc)}}(b),set:function(f){return function(g){var h=f.uc;a.g.qa()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={uc:b.uc};a.B={};zn(a,
543
+ q.cast=function(){var a=this,b;return I(function(c){return 1==c.g?(b=wn(a),u(c,a.g.cast(b),2)):a.h?u(c,a.h.Se(),0):c["return"]()})};q.De=function(a){this.g.De(a)};q.Mf=function(){qn(this.g)};q.$b=function(){this.g.$b()};
544
+ q.gf=function(a,b){b=void 0===b?!1:b;var c=this;return I(function(d){if(1==d.g){if(a==c.G&&b==c.F)return d["return"]();c.G=a;c.F=b;c.g.$b();return u(d,c.g.destroy(),2)}c.g=null;c.g=new cn(a,function(){return sn(c)},function(){return tn(c)},function(e,f){return un(c,e,f)},function(){return vn(c)},function(){return wn(c)},b);c.g.init();z(d)})};
545
+ function xn(a){a.g.init();a.m=new Af;for(var b=t(Tm),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.qa()||(f=Qa(f),a.j.dispatchEvent(f))});for(var d in Ra)a.m.o(a.h,Ra[d],function(f){a.g.qa()||a.A.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.uc=e,Object.defineProperty(a.l,b.uc,{configurable:!1,enumerable:!0,get:function(f){return function(){return yn(a,f.uc)}}(b),set:function(f){return function(g){var h=f.uc;a.g.qa()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={uc:b.uc};a.B={};zn(a,
546
546
  function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return An(a,f)}})});Bn(a);a.j=new fb;a.j.sd=a.l;a.A=new fb;a.A.sd=a.B}function Bn(a){var b=new Map;zn(a,function(c,d){if(b.has(d)){var e=b.get(d);c.length<e.length?a.C.set(c,e):a.C.set(e,c)}else b.set(d,c)})}
547
547
  function zn(a,b){function c(l){return"constructor"==l||"function"!=typeof d[l]?!1:!e.has(l)}var d=a.h,e=new Set;for(f in d)c(f)&&(e.add(f),b(f,d[f]));var f=Object.getPrototypeOf(d);for(var g=Object.getPrototypeOf({});f&&f!=g;){for(var h=t(Object.getOwnPropertyNames(f)),k=h.next();!k.done;k=h.next())k=k.value,c(k)&&(e.add(k),b(k,d[k]));f=Object.getPrototypeOf(f)}}
548
- function wn(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.ae(),startTime:null};a.i.pause();for(var c=t(Vm),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=t(Zm);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=t($m);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function sn(a){var b=new O("caststatuschanged");a.dispatchEvent(b)}
549
- function tn(a){var b=new O(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
548
+ function wn(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.ae(),startTime:null};a.i.pause();for(var c=t(Vm),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=t(Zm);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=t($m);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function sn(a){var b=new M("caststatuschanged");a.dispatchEvent(b)}
549
+ function tn(a){var b=new M(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
550
550
  function vn(a){for(var b=t(Zm),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d)}var e=a.g.get("player","getAssetUri")();c=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;d=null;c||(d=a.g.get("video","currentTime"));e&&(a.i.autoplay=!1,b=a.h.load(e,d));var g={};c=t(Vm);for(d=c.next();!d.done;d=c.next())d=d.value,g[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var h=t(Vm),k=h.next();!k.done;k=h.next())k=k.value,a.i[k]=g[k];h=t($m);for(k=
551
- h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.h[k](l)}a.i.autoplay=f;e&&a.i.play()}},function(h){h=(new Map).set("detail",h);h=new O("error",h);a.h.dispatchEvent(h)})}
551
+ h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.h[k](l)}a.i.autoplay=f;e&&a.i.play()}},function(h){h=(new Map).set("detail",h);h=new M("error",h);a.h.dispatchEvent(h)})}
552
552
  function yn(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.qa()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.qa()?a.g.get("video",b):(c=a.i[b],"function"==typeof c&&(c=c.bind(a.i)),c)}
553
553
  function An(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.A.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.A.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.Gc()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.kd()};
554
554
  if("setVideoContainer"==b)return function(c){return a.h.Le(c)};if(a.g.qa()){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.qa()&&0==Object.keys(a.g.g.video).length&&Xm[b]||!a.g.qa()?a.h[b].bind(a.h):a.g.get("player",b)}function un(a,b,c){a.g.qa()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.A.dispatchEvent(c))}
555
- M("shaka.cast.CastProxy",rn);rn.prototype.changeReceiverId=rn.prototype.gf;rn.prototype.forceDisconnect=rn.prototype.$b;rn.prototype.suggestDisconnect=rn.prototype.Mf;rn.prototype.setAppData=rn.prototype.De;rn.prototype.cast=rn.prototype.cast;rn.prototype.receiverName=rn.prototype.Dd;rn.prototype.isCasting=rn.prototype.qa;rn.prototype.canCast=rn.prototype.bf;rn.prototype.getPlayer=rn.prototype.cc;rn.prototype.getVideo=rn.prototype.Bb;rn.prototype.destroy=rn.prototype.destroy;function Cn(a,b,c,d){fb.call(this);var e=this;this.g=a;this.h=b;this.j=new Af;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.A=!0;this.m=0;this.F=!1;this.C=!0;this.B=this.l=null;this.I=new Q(function(){Dn(e)});En(this)}u(Cn,fb);q=Cn.prototype;q.isConnected=function(){return this.H};q.Og=function(){return this.A};q.nh=function(a){this.i=a};q.cg=function(){this.i=null};
555
+ J("shaka.cast.CastProxy",rn);rn.prototype.changeReceiverId=rn.prototype.gf;rn.prototype.forceDisconnect=rn.prototype.$b;rn.prototype.suggestDisconnect=rn.prototype.Mf;rn.prototype.setAppData=rn.prototype.De;rn.prototype.cast=rn.prototype.cast;rn.prototype.receiverName=rn.prototype.Dd;rn.prototype.isCasting=rn.prototype.qa;rn.prototype.canCast=rn.prototype.bf;rn.prototype.getPlayer=rn.prototype.cc;rn.prototype.getVideo=rn.prototype.Bb;rn.prototype.destroy=rn.prototype.destroy;function Cn(a,b,c,d){fb.call(this);var e=this;this.g=a;this.h=b;this.j=new Af;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.A=!0;this.m=0;this.F=!1;this.C=!0;this.B=this.l=null;this.I=new P(function(){Dn(e)});En(this)}qa(Cn,fb);q=Cn.prototype;q.isConnected=function(){return this.H};q.Og=function(){return this.A};q.nh=function(a){this.i=a};q.cg=function(){this.i=null};
556
556
  q.oh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.mh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.lh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
557
- q.destroy=function(){var a=this,b,c;return J(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.A=!0,a.l=null,a.B=null,fb.prototype.release.call(a),z(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();A(d)})};
557
+ q.destroy=function(){var a=this,b,c;return I(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.A=!0,a.l=null,a.B=null,fb.prototype.release.call(a),u(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();z(d)})};
558
558
  function En(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return Fn(a)};b.onSenderDisconnected=function(){return Fn(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&Gn(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);Gn(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.B=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.B.onMessage=function(e){return Hn(a,
559
- e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return In(a,e)};b.start();b=t(Tm);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return Jn(a,"video",e)});for(var d in Qa)a.j.o(a.h,Qa[d],function(e){return Jn(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.Ge(3840,2160):a.h.Ge(1920,1080);a.j.o(a.g,"loadeddata",function(){a.F=!0});a.j.o(a.h,"loading",function(){a.A=
560
- !1;Kn(a)});a.j.o(a.g,"playing",function(){a.A=!1;Kn(a)});a.j.o(a.g,"pause",function(){Kn(a)});a.j.o(a.h,"unloading",function(){a.A=!0;Kn(a)});a.j.o(a.g,"ended",function(){(new Q(function(){a.g&&a.g.ended&&(a.A=!0,Kn(a))})).T(Ln)})}function Fn(a){a.m=0;a.C=!0;a.H=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;Kn(a)}
561
- function Kn(a){var b;J(function(c){if(1==c.g)return z(c,Promise.resolve(),2);if(!a.h)return c["return"]();b=new O("caststatuschanged");a.dispatchEvent(b);Mn(a)||Nn(a);A(c)})}
562
- function On(a,b,c){var d,e,f,g,h,k,l,m,n,p;J(function(r){switch(r.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.G(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,F(r,5),z(r,a.h.load(b.manifest,b.startTime),7)):z(r,Promise.resolve(),3);case 7:va(r,3);break;case 5:return g=I(r),h=(new Map).set("detail",g),k=new O("error",h),a.h&&a.h.dispatchEvent(k),r["return"]();case 3:if(!a.h)return r["return"]();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)p=b.playerAfterLoad[n],
563
- a.h[n](p);a.g.autoplay=f;b.manifest&&(a.g.play(),Nn(a));A(r)}})}function Jn(a,b,c){a.h&&(Dn(a),Gn(a,{type:"event",targetName:b,event:c},a.l))}
559
+ e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return In(a,e)};b.start();b=t(Tm);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return Jn(a,"video",e)});for(var d in Ra)a.j.o(a.h,Ra[d],function(e){return Jn(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.Ge(3840,2160):a.h.Ge(1920,1080);a.j.o(a.g,"loadeddata",function(){a.F=!0});a.j.o(a.h,"loading",function(){a.A=
560
+ !1;Kn(a)});a.j.o(a.g,"playing",function(){a.A=!1;Kn(a)});a.j.o(a.g,"pause",function(){Kn(a)});a.j.o(a.h,"unloading",function(){a.A=!0;Kn(a)});a.j.o(a.g,"ended",function(){(new P(function(){a.g&&a.g.ended&&(a.A=!0,Kn(a))})).T(Ln)})}function Fn(a){a.m=0;a.C=!0;a.H=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;Kn(a)}
561
+ function Kn(a){var b;I(function(c){if(1==c.g)return u(c,Promise.resolve(),2);if(!a.h)return c["return"]();b=new M("caststatuschanged");a.dispatchEvent(b);Mn(a)||Nn(a);z(c)})}
562
+ function On(a,b,c){var d,e,f,g,h,k,l,m,n,p;I(function(r){switch(r.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.G(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,A(r,5),u(r,a.h.load(b.manifest,b.startTime),7)):u(r,Promise.resolve(),3);case 7:va(r,3);break;case 5:return g=F(r),h=(new Map).set("detail",g),k=new M("error",h),a.h&&a.h.dispatchEvent(k),r["return"]();case 3:if(!a.h)return r["return"]();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)p=b.playerAfterLoad[n],
563
+ a.h[n](p);a.g.autoplay=f;b.manifest&&(a.g.play(),Nn(a));z(r)}})}function Jn(a,b,c){a.h&&(Dn(a),Gn(a,{type:"event",targetName:b,event:c},a.l))}
564
564
  function Dn(a){a.I.T(Pn);for(var b={video:{},player:{}},c=t(Um),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.U())for(var e in Ym)0==a.m%Ym[e]&&(b.player[e]=a.h[e]());for(var f in Xm)0==a.m%Xm[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;a.F&&(a.m+=1);Gn(a,{type:"update",update:b},a.l);Mn(a)}function Mn(a){return a.C&&(a.g.duration||a.h.U())?(Qn(a),a.C=!1,!0):!1}
565
565
  function Qn(a,b){var c={contentId:a.h.ae(),streamType:a.h.U()?"LIVE":"BUFFERED",contentType:""};a.h.U()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);Nn(a,void 0===b?0:b,c)}
566
566
  function In(a,b){var c=Rm(b.data);switch(c.type){case "init":a.m=0;a.F=!1;a.C=!0;On(a,c.initState,c.appData);Dn(a);break;case "appData":a.G(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d){var f=cast.receiver.CastReceiverManager.getInstance();if("volume"==e){f.setSystemVolumeLevel(c);break}else if("muted"==e){f.setSystemVolumeMuted(c);break}}a.J[d][e]=c;break;case "call":d=a.J[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=
@@ -568,66 +568,66 @@ c.methodName;"player"==d&&"load"==e&&(a.m=0,a.F=!1);var g=c.id,h=b.senderId;f=a.
568
568
  function Hn(a,b){var c=Rm(b.data);switch(c.type){case "PLAY":a.g.play();Nn(a);break;case "PAUSE":a.g.pause();Nn(a);break;case "SEEK":var d=c.currentTime,e=c.resumeState;null!=d&&(a.g.currentTime=Number(d));e&&"PLAYBACK_START"==e?(a.g.play(),Nn(a)):e&&"PLAYBACK_PAUSE"==e&&(a.g.pause(),Nn(a));break;case "STOP":a.h.Se().then(function(){a.h&&Nn(a)});break;case "GET_STATUS":Qn(a,Number(c.requestId));break;case "VOLUME":e=c.volume;d=e.level;e=e.muted;var f=a.g.volume,g=a.g.muted;null!=d&&(a.g.volume=Number(d));
569
569
  null!=e&&(a.g.muted=e);f==a.g.volume&&g==a.g.muted||Nn(a);break;case "LOAD":a.m=0;a.F=!1;a.C=!1;d=c.media;e=c.currentTime;f=a.K(d.contentId);g=c.autoplay||!0;a.G(d.customData);g&&(a.g.autoplay=!0);a.h.load(f,e).then(function(){a.h&&Qn(a)})["catch"](function(h){var k="LOAD_FAILED";7==h.category&&7E3==h.code&&(k="LOAD_CANCELLED");Gn(a,{requestId:Number(c.requestId),type:k},a.B)});break;default:Gn(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
570
570
  function Rn(a,b,c,d){a.h&&Gn(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function Gn(a,b,c,d){a.H&&(a=Qm(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Nn(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.A?Sn:a.h.Mc()?Tn:a.g.paused?Un:Vn,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);Gn(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
571
- M("shaka.cast.CastReceiver",Cn);Cn.prototype.destroy=Cn.prototype.destroy;Cn.prototype.setContentArtist=Cn.prototype.lh;Cn.prototype.setContentImage=Cn.prototype.mh;Cn.prototype.setContentTitle=Cn.prototype.oh;Cn.prototype.clearContentMetadata=Cn.prototype.cg;Cn.prototype.setContentMetadata=Cn.prototype.nh;Cn.prototype.isIdle=Cn.prototype.Og;Cn.prototype.isConnected=Cn.prototype.isConnected;var Pn=.5,Ln=5,Sn="IDLE",Vn="PLAYING",Tn="BUFFERING",Un="PAUSED";function Wn(a){var b=this;this.g=[];this.h=[];this.data=[];(new Eg).box("moov",Ig).Y("pssh",function(c){if(!(1<c.version)){var d=Fc(c.reader.W,-12,c.size);b.data.push(d);b.g.push(od(c.reader.Cb(16)));if(0<c.version){d=c.reader.R();for(var e=0;e<d;e++){var f=od(c.reader.Cb(16));b.h.push(f)}}}}).parse(a)}
572
- function Xn(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=Ic(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=t(c),c=b.next();!c.done;c=b.next())c=nd(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function Yn(a,b){var c=Zn(a,b);return 1!=c.length?null:c[0]}function $n(a,b,c){a=ao(a,b,c);return 1!=a.length?null:a[0]}function Zn(a,b){for(var c=[],d=t(a.childNodes),e=d.next();!e.done;e=d.next())e=e.value,e instanceof Element&&e.tagName==b&&c.push(e);return c}function bo(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
571
+ J("shaka.cast.CastReceiver",Cn);Cn.prototype.destroy=Cn.prototype.destroy;Cn.prototype.setContentArtist=Cn.prototype.lh;Cn.prototype.setContentImage=Cn.prototype.mh;Cn.prototype.setContentTitle=Cn.prototype.oh;Cn.prototype.clearContentMetadata=Cn.prototype.cg;Cn.prototype.setContentMetadata=Cn.prototype.nh;Cn.prototype.isIdle=Cn.prototype.Og;Cn.prototype.isConnected=Cn.prototype.isConnected;var Pn=.5,Ln=5,Sn="IDLE",Vn="PLAYING",Tn="BUFFERING",Un="PAUSED";function Wn(a){var b=this;this.g=[];this.h=[];this.data=[];(new Eg).box("moov",Ig).Y("pssh",function(c){if(!(1<c.version)){var d=Ec(c.reader.W,-12,c.size);b.data.push(d);b.g.push(od(c.reader.Cb(16)));if(0<c.version){d=c.reader.R();for(var e=0;e<d;e++){var f=od(c.reader.Cb(16));b.h.push(f)}}}}).parse(a)}
572
+ function Xn(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=Hc(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=t(c),c=b.next();!c.done;c=b.next())c=nd(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function Yn(a,b){var c=Zn(a,b);return 1!=c.length?null:c[0]}function $n(a,b,c){a=ao(a,b,c);return 1!=a.length?null:a[0]}function Zn(a,b){for(var c=[],d=t(a.childNodes),e=d.next();!e.done;e=d.next())e=e.value,e instanceof Element&&e.tagName==b&&c.push(e);return c}function bo(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
573
573
  function ao(a,b,c){var d=[];a=t(a.childNodes);for(var e=a.next();!e.done;e=a.next())e=e.value,e instanceof Element&&e.localName==c&&e.namespaceURI==b&&d.push(e);return d}function co(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}function eo(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,a.hasAttributeNS(d,c))return a.getAttributeNS(d,c);return null}function fo(a){return Array.from(a.childNodes).every(go)?a.textContent.trim():null}
574
574
  function go(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE}function ho(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.getAttribute(b);null!=a&&(e=c(a));return null==e?d:e}function io(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}
575
575
  function jo(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}
576
576
  function ko(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 lo(a){a=Number(a);return 0===a%1?a:null}function mo(a){a=Number(a);return 0===a%1&&0<a?a:null}function no(a){a=Number(a);return 0===a%1&&0<=a?a:null}function oo(a){a=Number(a);return isNaN(a)?null:a}function po(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
577
- function qo(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,"text/xml")}catch(e){return null}c=d.documentElement;return!c||c.getElementsByTagName("parsererror").length||d.documentElement.tagName!=b?null:c}function ro(a,b){try{var c=dd(a);return qo(c,b)}catch(d){return null}};function so(a,b,c){var d=to(a),e=null;a=[];var f=[],g=new Set(d.map(function(h){return h.keyId}));g["delete"](null);if(1<g.size)throw new P(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.ze?(e=h.init||e,!1):!0}),f.length&&(a=uo(e,f,c,g),0==a.length&&(a=[Eb("",e)])));if(d.length&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Eb(c,e));if(g=Array.from(g)[0]||null)for(b=t(a),c=b.next();!c.done;c=b.next())for(c=
578
- t(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{kf:g,Yi:e,drmInfos:a,pf:!0}}function vo(a,b,c,d){var e=so(a,c,d);if(b.pf){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.pf=!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 P(2,4,4008);return e.kf||b.kf}
579
- function wo(a){var b=0,c=Ic(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=Fc(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
577
+ function qo(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,"text/xml")}catch(e){return null}c=d.documentElement;return!c||c.getElementsByTagName("parsererror").length||d.documentElement.tagName!=b?null:c}function ro(a,b){try{var c=dd(a);return qo(c,b)}catch(d){return null}};function so(a,b,c){var d=to(a),e=null;a=[];var f=[],g=new Set(d.map(function(h){return h.keyId}));g["delete"](null);if(1<g.size)throw new O(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.ze?(e=h.init||e,!1):!0}),f.length&&(a=uo(e,f,c,g),0==a.length&&(a=[Eb("",e)])));if(d.length&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Eb(c,e));if(g=Array.from(g)[0]||null)for(b=t(a),c=b.next();!c.done;c=b.next())for(c=
578
+ t(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{kf:g,Yi:e,drmInfos:a,pf:!0}}function vo(a,b,c,d){var e=so(a,c,d);if(b.pf){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.pf=!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 O(2,4,4008);return e.kf||b.kf}
579
+ function wo(a){var b=0,c=Hc(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=Ec(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
580
580
  function xo(a){a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=t(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}function yo(a){a=$n(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=md(a.textContent);a=wo(a).filter(function(b){return b.type===zo})[0];if(!a)return"";a=ed(a.value,!0);return(a=qo(a,"WRMHEADER"))?xo(a):""}
581
581
  function uo(a,b,c,d){var e=[];b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.ze];if(g){var h;if(h=$n(f.node,"urn:microsoft:playready","pro")){h=md(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:Xn(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.ze)if(k=d,0==k.size)k=null;else{var l=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,
582
582
  226,251,75]),m=new Uint8Array([]);k=[{initData:Xn(m,l,k,1),initDataType:"cenc",keyId:f.keyId}]}h=Eb(g,f.init||a||h||k);if(g=Ao.get(g))h.licenseServerUri=g(f);e.push(h)}}return e}function to(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=Bo(c.value))&&b.push(c);return b}
583
- function Bo(a){var b=a.getAttribute("schemeIdUri"),c=co(a,"urn:mpeg:cenc:2013","default_KID"),d=ao(a,"urn:mpeg:cenc:2013","pssh").map(fo);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new P(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:md(f),keyId:null}})}catch(f){throw new P(2,4,4007);}return{node:a,ze:b,keyId:c,init:0<e.length?e:null}}
583
+ function Bo(a){var b=a.getAttribute("schemeIdUri"),c=co(a,"urn:mpeg:cenc:2013","default_KID"),d=ao(a,"urn:mpeg:cenc:2013","pssh").map(fo);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new O(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:md(f),keyId:null}})}catch(f){throw new O(2,4,4007);}return{node:a,ze:b,keyId:c,init:0<e.length?e:null}}
584
584
  var zo=1,Ao=(new Map).set("com.widevine.alpha",function(a){return(a=$n(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",yo).set("com.microsoft.playready.recommendation",yo).set("com.microsoft.playready.software",yo).set("com.microsoft.playready.hardware",yo).set("org.w3.clearkey",function(a){return(a=$n(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function Co(a,b,c,d,e){var f={RepresentationID:b,Number:c,Bandwidth:d,Time:e};return a.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(g,h,k,l){if("$$"==g)return"$";var m=f[h];if(null==m)return g;"RepresentationID"==h&&k&&(k=void 0);"Time"==h&&(m=Math.round(m));switch(l){case void 0:case "d":case "i":case "u":g=m.toString();break;case "o":g=m.toString(8);break;case "x":g=m.toString(16);break;case "X":g=m.toString(16).toUpperCase();break;default:g=m.toString()}k=
585
585
  window.parseInt(k,10)||1;return Array(Math.max(0,k-g.length)+1).join("0")+g})}
586
586
  function Do(a,b){var c=Eo(a,b,"timescale"),d=1;c&&(d=mo(c)||1);var e=Eo(a,b,"duration");c=mo(e||"");"image"==a.L.contentType&&(c=oo(e||""));c&&(c/=d);var f=Eo(a,b,"startNumber");e=Number(Eo(a,b,"presentationTimeOffset"))||0;var g=no(f||"");if(null==f||null==g)g=1;var h=Fo(a,b,"SegmentTimeline");f=null;if(h){f=d;var k=a.Z.duration||Infinity;h=Zn(h,"S");for(var l=[],m=-e,n=0;n<h.length;++n){var p=h[n],r=h[n+1],v=ho(p,"t",no),y=ho(p,"d",no);p=ho(p,"r",lo);null!=v&&(v-=e);if(!y)break;v=null!=v?v:m;p=
587
- p||0;if(0>p)if(r){r=ho(r,"t",no);if(null==r)break;else if(v>=r)break;p=Math.ceil((r-v)/y)-1}else{if(Infinity==k)break;else if(v/f>=k)break;p=Math.ceil((k*f-v)/y)-1}0<l.length&&v!=m&&(l[l.length-1].end=v/f);for(r=0;r<=p;++r)m=v+y,l.push({start:v/f,end:m/f,uh:v}),v=m}f=l}return{timescale:d,xa:c,pc:g,rb:e/d||0,Te:e,timeline:f}}function Eo(a,b,c){return[b(a.L),b(a.Aa),b(a.ra)].filter(Cb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
588
- function Fo(a,b,c){return[b(a.L),b(a.Aa),b(a.ra)].filter(Cb).map(function(d){return Yn(d,c)}).reduce(function(d,e){return d||e})}
589
- function Go(a,b,c,d,e,f){for(var g=co(a,"http://www.w3.org/1999/xlink","href"),h=co(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return cf(new P(2,4,4028));if("onLoad"!=h)return cf(new P(2,4,4027));var m=Db([d],[g]);return e.request(0,rf(m,b)).na(function(n){n=ro(n.data,a.tagName);if(!n)return cf(new P(2,4,4001,g));
587
+ p||0;if(0>p)if(r){r=ho(r,"t",no);if(null==r)break;else if(v>=r)break;p=Math.ceil((r-v)/y)-1}else{if(Infinity==k)break;else if(v/f>=k)break;p=Math.ceil((k*f-v)/y)-1}0<l.length&&v!=m&&(l[l.length-1].end=v/f);for(r=0;r<=p;++r)m=v+y,l.push({start:v/f,end:m/f,uh:v}),v=m}f=l}return{timescale:d,wa:c,pc:g,rb:e/d||0,Te:e,timeline:f}}function Eo(a,b,c){return[b(a.L),b(a.za),b(a.ra)].filter(Cb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
588
+ function Fo(a,b,c){return[b(a.L),b(a.za),b(a.ra)].filter(Cb).map(function(d){return Yn(d,c)}).reduce(function(d,e){return d||e})}
589
+ function Go(a,b,c,d,e,f){for(var g=co(a,"http://www.w3.org/1999/xlink","href"),h=co(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return cf(new O(2,4,4028));if("onLoad"!=h)return cf(new O(2,4,4027));var m=Db([d],[g]);return e.request(0,rf(m,b)).na(function(n){n=ro(n.data,a.tagName);if(!n)return cf(new O(2,4,4001,g));
590
590
  for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var p=n.childNodes[0];n.removeChild(p);a.appendChild(p)}n=t(Array.from(n.attributes));for(p=n.next();!p.done;p=n.next())a.setAttributeNode(p.value.cloneNode(!1));return Ho(a,b,c,m[0],e,f+1)})}
591
- function Ho(a,b,c,d,e,f){f=void 0===f?0:f;if(co(a,"http://www.w3.org/1999/xlink","href")){var g=Go(a,b,c,d,e,f);c&&(g=g.na(void 0,function(){return Ho(a,b,c,d,e,f)}));return g}g=[];for(var h=t(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==co(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(Ho(k,b,c,d,e,f)));return gf(g).na(function(){return a})};function Io(a,b,c,d,e,f,g){var h,k=(new Eg).Y("sidx",function(l){h=Jo(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new P(2,3,3004);}
592
- function Jo(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.R();if(0==k)throw new P(2,3,3005);if(0==g.version){var l=g.reader.R();var m=g.reader.R()}else l=g.reader.nc(),m=g.reader.nc();g.reader.skip(2);var n=g.reader.ue();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.R(),r=(p&2147483648)>>>31;p&=2147483647;var v=g.reader.R();g.reader.skip(4);if(1==r)throw new P(2,3,3006);h.push(new bi(l/k+c,(l+v)/k+c,function(){return f},a,a+p-1,b,c,d,e));l+=v;a+=p}g.parser.stop();return h};function Ko(a){this.h=Ic(a);this.g=new Bg(this.h,0)}Ko.prototype.Da=function(){return this.g.Da()};
593
- function Lo(a){var b=Mo(a);if(7<b.length)throw new P(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=Mo(a);a:{d=t(No);for(var e=d.next();!e.done;e=d.next())if(Dc(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.oa();else{if(8==b.length&&b[1]&224)throw new P(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.oa()+b<=a.h.byteLength?b:a.h.byteLength-a.g.oa();d=Ic(a.h,a.g.oa(),b);a.g.skip(b);return new Oo(c,
594
- d)}function Mo(a){var b=a.g.oa(),c=a.g.qb();if(0==c)throw new P(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Fc(a.h,b,c)}var No=[[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 Oo(a,b){this.id=a;this.g=b}
595
- function Po(a){if(8<a.g.byteLength)throw new P(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new P(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 Qo(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Ko(a.g);for(var n=null,p=null;a.Da();){var r=Lo(a);if(187==r.id){var v=Ro(r);v&&(r=c*v.vh,v=b+v.dh,null!=n&&m.push(new bi(n+g,r+g,l,p,v-1,f,g,h,k)),n=r,p=v)}}null!=n&&m.push(new bi(n+g,d+g,l,p,null,f,g,h,k));return m}
596
- function Ro(a){var b=new Ko(a.g);a=Lo(b);if(179!=a.id)throw new P(2,3,3013);a=Po(a);b=Lo(b);if(183!=b.id)throw new P(2,3,3012);b=new Ko(b.g);for(var c=0;b.Da();){var d=Lo(b);if(241==d.id){c=Po(d);break}}return{vh:a,dh:c}};function So(a,b){var c=Fo(a,b,"Initialization");if(!c)return null;var d=a.L.Na,e=c.getAttribute("sourceURL");e&&(d=Db(a.L.Na,[e]));e=0;var f=null;if(c=ho(c,"range",ko))e=c.start,f=c.end;return new $h(function(){return d},e,f,To(a))}
591
+ function Ho(a,b,c,d,e,f){f=void 0===f?0:f;if(co(a,"http://www.w3.org/1999/xlink","href")){var g=Go(a,b,c,d,e,f);c&&(g=g.na(void 0,function(){return Ho(a,b,c,d,e,f)}));return g}g=[];for(var h=t(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==co(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(Ho(k,b,c,d,e,f)));return gf(g).na(function(){return a})};function Io(a,b,c,d,e,f,g){var h,k=(new Eg).Y("sidx",function(l){h=Jo(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new O(2,3,3004);}
592
+ function Jo(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.R();if(0==k)throw new O(2,3,3005);if(0==g.version){var l=g.reader.R();var m=g.reader.R()}else l=g.reader.nc(),m=g.reader.nc();g.reader.skip(2);var n=g.reader.ue();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.R(),r=(p&2147483648)>>>31;p&=2147483647;var v=g.reader.R();g.reader.skip(4);if(1==r)throw new O(2,3,3006);h.push(new bi(l/k+c,(l+v)/k+c,function(){return f},a,a+p-1,b,c,d,e));l+=v;a+=p}g.parser.stop();return h};function Ko(a){this.h=Hc(a);this.g=new Bg(this.h,0)}Ko.prototype.Ca=function(){return this.g.Ca()};
593
+ function Lo(a){var b=Mo(a);if(7<b.length)throw new O(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=Mo(a);a:{d=t(No);for(var e=d.next();!e.done;e=d.next())if(Cc(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.oa();else{if(8==b.length&&b[1]&224)throw new O(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.oa()+b<=a.h.byteLength?b:a.h.byteLength-a.g.oa();d=Hc(a.h,a.g.oa(),b);a.g.skip(b);return new Oo(c,
594
+ d)}function Mo(a){var b=a.g.oa(),c=a.g.qb();if(0==c)throw new O(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Ec(a.h,b,c)}var No=[[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 Oo(a,b){this.id=a;this.g=b}
595
+ function Po(a){if(8<a.g.byteLength)throw new O(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new O(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 Qo(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Ko(a.g);for(var n=null,p=null;a.Ca();){var r=Lo(a);if(187==r.id){var v=Ro(r);v&&(r=c*v.vh,v=b+v.dh,null!=n&&m.push(new bi(n+g,r+g,l,p,v-1,f,g,h,k)),n=r,p=v)}}null!=n&&m.push(new bi(n+g,d+g,l,p,null,f,g,h,k));return m}
596
+ function Ro(a){var b=new Ko(a.g);a=Lo(b);if(179!=a.id)throw new O(2,3,3013);a=Po(a);b=Lo(b);if(183!=b.id)throw new O(2,3,3012);b=new Ko(b.g);for(var c=0;b.Ca();){var d=Lo(b);if(241==d.id){c=Po(d);break}}return{vh:a,dh:c}};function So(a,b){var c=Fo(a,b,"Initialization");if(!c)return null;var d=a.L.Na,e=c.getAttribute("sourceURL");e&&(d=Db(a.L.Na,[e]));e=0;var f=null;if(c=ho(c,"range",ko))e=c.start,f=c.end;return new $h(function(){return d},e,f,To(a))}
597
597
  function Uo(a,b){var c=Number(Eo(a,Vo,"presentationTimeOffset"))||0,d=Eo(a,Vo,"timescale"),e=1;d&&(e=mo(d)||1);var f=c/e||0,g=So(a,Vo);Wo(a,g);var h=kf(a);return{ac:function(){var k=Fo(h,Vo,"RepresentationIndex"),l=h.L.Na;k&&(k=k.getAttribute("sourceURL"))&&(l=Db(h.L.Na,[k]));k=Yo(h);return Zo(h,b,g,l,k.start,k.end,f)}}}
598
- function Zo(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,v,y,x,w,D,B,C,G;return J(function(E){if(1==E.g)return h=a.presentationTimeline,k=!a.xb||!a.Z.zf,l=a.Z.start,m=a.Z.duration,n=a.L.mimeType.split("/")[1],p=b,r=null,v=[p(d,e,f),"webm"==n?p(c.Pa(),c.Ta,c.Ca):null],p=null,z(E,Promise.all(v),2);y=E.h;x=y[0];w=y[1]||null;D=null;B=l-g;C=l;G=m?l+m:Infinity;if("mp4"==n)var H=Io(x,e,d,c,B,C,G);else{H=new Ko(w);if(440786851!=Lo(H).id)throw new P(2,3,3008);var L=Lo(H);if(408125543!=L.id)throw new P(2,3,3009);H=L.g.byteOffset;
599
- L=new Ko(L.g);for(var K=null;L.Da();){var N=Lo(L);if(357149030==N.id){K=N;break}}if(!K)throw new P(2,3,3010);K=new Ko(K.g);N=1E6;for(L=null;K.Da();){var V=Lo(K);if(2807729==V.id)N=Po(V);else if(17545==V.id)if(4==V.g.byteLength)L=V.g.getFloat32(0);else if(8==V.g.byteLength)L=V.g.getFloat64(0);else throw new P(2,3,3003);}if(null==L)throw new P(2,3,3011);K=N/1E9;L*=K;N=Lo(new Ko(x));if(475249515!=N.id)throw new P(2,3,3007);H=Qo(N,H,K,L,d,c,B,C,G)}D=H;h.kc(D);r=new dj(D);k&&r.yb(C,G,!0);return E["return"](r)})}
600
- function Vo(a){return a.Uc}function Yo(a){var b=Fo(a,Vo,"RepresentationIndex");a=Eo(a,Vo,"indexRange");a=ko(a||"");b&&(a=ho(b,"range",ko,a));return a}function Wo(a,b){$o(a,b);if(!Yo(a))throw new P(2,4,4002);}function $o(a,b){var c=a.L.mimeType.split("/")[1];if(a.L.contentType!=Ib&&"mp4"!=c&&"webm"!=c)throw new P(2,4,4006);if("webm"==c&&!b)throw new P(2,4,4005);}
601
- function To(a){var b=a.L;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.ud,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function ap(a,b){var c=So(a,bp),d=cp(a);if(!d.xa&&!d.timeline&&1<d.ic.length)throw new P(2,4,4002);if(!d.xa&&!a.Z.duration&&!d.timeline&&1==d.ic.length)throw new P(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new P(2,4,4002);var e=null,f=null;a.ra.id&&a.L.id&&(f=b[a.ra.id+","+a.L.id])&&(e=f.segmentIndex);var g=dp(a.Z.start,a.Z.duration,a.L.Na,d,c);c=!e;e?e.jc(g,a.presentationTimeline.ob()):e=new dj(g);a.presentationTimeline.kc(g);a.xb&&a.Z.zf||e.yb(a.Z.start,a.Z.duration?a.Z.start+a.Z.duration:
602
- Infinity,c);f&&(f.segmentIndex=e);return{ac:function(){e&&0!=e.M.length||e.Oc(g);return Promise.resolve(e)}}}function bp(a){return a.Db}function cp(a){var b=ep(a);a=Do(a,bp);var c=a.pc;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,pc:c,rb:a.rb,timeline:a.timeline,ic:b}}
603
- function dp(a,b,c,d,e){var f=d.ic.length;d.timeline&&d.timeline.length!=d.ic.length&&(f=Math.min(d.timeline.length,d.ic.length));for(var g=a-d.rb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},n=0;n<f;m={Pd:m.Pd},n++){var p=d.ic[n];m.Pd=Db(c,[p.Ug]);var r=void 0;r=null!=d.xa?l+d.xa:d.timeline?d.timeline[n].end:l+b;k.push(new bi(a+l,a+r,function(v){return function(){return v.Pd}}(m),p.start,p.end,e,g,a,h));l=r}return k}
604
- function ep(a){return[a.L.Db,a.Aa.Db,a.ra.Db].filter(Cb).map(function(b){return Zn(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.xf&&(a.xf=!0);var c=b.getAttribute("media");b=ho(b,"mediaRange",ko,{start:0,end:null});return{Ug:c,start:b.start,end:b.end}})};function fp(a,b,c,d,e,f){var g=gp(a),h=hp(a);ip(h);var k=kf(a);if(h.Lc)return $o(a,g),{ac:function(){var r=Co(h.Lc,k.L.id,null,k.bandwidth||null,null);r=Db(k.L.Na,[r]);return Zo(k,b,g,r,0,null,h.rb)}};if(h.xa)return d||(a.presentationTimeline.oe(h.xa),a.presentationTimeline.pe(a.Z.start)),{ac:function(){return jp(k,h,e,g,f)}};var l=null;d=d=null;a.ra.id&&a.L.id&&(d=a.ra.id+","+a.L.id,d=c[d])&&(l=d.segmentIndex);var m=kp(k,h,g);c=a.Z.start;var n=a.Z.duration?a.Z.start+a.Z.duration:Infinity,p=Infinity!=
605
- n;l?(p&&(new dj(m)).yb(c,n,!0),l.jc(m,a.presentationTimeline.ob())):l=new dj(m);a.presentationTimeline.kc(m);p&&l.yb(c,n);d&&a.xb&&(d.segmentIndex=l);return{ac:function(){l&&0!=l.M.length||l.Oc(m);return Promise.resolve(l)}}}function lp(a){return a.Vc}function hp(a){var b=Do(a,lp),c=Eo(a,lp,"media");a=Eo(a,lp,"index");return{xa:b.xa,timescale:b.timescale,pc:b.pc,rb:b.rb,Te:b.Te,timeline:b.timeline,me:c,Lc:a}}
606
- function ip(a){var b=a.Lc?1:0;b+=a.timeline?1:0;b+=a.xa?1:0;if(0==b)throw new P(2,4,4002);1!=b&&(a.Lc&&(a.timeline=null),a.xa=null);if(!a.Lc&&!a.me)throw new P(2,4,4002);}
607
- function jp(a,b,c,d,e){function f(K){var N=(K-r)*p,V=N+b.rb,aa=N+l;N=aa+p;var ha=Math.min(N,h());aa=new bi(aa,ha,function(){var ka=Co(y,w,K,x,V*v);return Db(D,[ka])},0,null,d,B,l,h());aa.j=N;return aa}function g(){var K=[Math.max(k.ob(),l),Math.min(k.Ib(),h())].map(function(N){return N-l});return[Math.ceil(K[0]/p),Math.ceil(K[1]/p)-1].map(function(N){return N+r})}function h(){var K=null!=m&&e[m]||n;return K?l+K:Infinity}var k=a.presentationTimeline,l=a.Z.start,m=a.ra.id,n=a.Z.duration,p=b.xa,r=b.pc,
608
- v=b.timescale,y=b.me,x=a.bandwidth||null,w=a.L.id,D=a.L.Na,B=l-b.rb,C=g();a=a.xb?Math.max(C[0],C[1]-c+1):C[0];C=C[1];c=[];for(var G=a;G<=C;++G){var E=f(G);c.push(E)}var H=new dj(c);c=k.Ib()<h();G=k.U();if(c||G){var L=Math.max(a,C+1);H.Gd(p,function(){var K=k.ob();H.Gb(K);var N=t(g());N.next();N=N.next().value;for(var V=[];L<=N;){var aa=f(L);V.push(aa);L++}return K>h()&&!V.length?null:V})}return Promise.resolve(H)}
598
+ function Zo(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,v,y,x,w,D,B,C,G;return I(function(E){if(1==E.g)return h=a.presentationTimeline,k=!a.xb||!a.Z.zf,l=a.Z.start,m=a.Z.duration,n=a.L.mimeType.split("/")[1],p=b,r=null,v=[p(d,e,f),"webm"==n?p(c.Pa(),c.Ta,c.Ba):null],p=null,u(E,Promise.all(v),2);y=E.h;x=y[0];w=y[1]||null;D=null;B=l-g;C=l;G=m?l+m:Infinity;if("mp4"==n)var H=Io(x,e,d,c,B,C,G);else{H=new Ko(w);if(440786851!=Lo(H).id)throw new O(2,3,3008);var L=Lo(H);if(408125543!=L.id)throw new O(2,3,3009);H=L.g.byteOffset;
599
+ L=new Ko(L.g);for(var K=null;L.Ca();){var N=Lo(L);if(357149030==N.id){K=N;break}}if(!K)throw new O(2,3,3010);K=new Ko(K.g);N=1E6;for(L=null;K.Ca();){var V=Lo(K);if(2807729==V.id)N=Po(V);else if(17545==V.id)if(4==V.g.byteLength)L=V.g.getFloat32(0);else if(8==V.g.byteLength)L=V.g.getFloat64(0);else throw new O(2,3,3003);}if(null==L)throw new O(2,3,3011);K=N/1E9;L*=K;N=Lo(new Ko(x));if(475249515!=N.id)throw new O(2,3,3007);H=Qo(N,H,K,L,d,c,B,C,G)}D=H;h.kc(D);r=new dj(D);k&&r.yb(C,G,!0);return E["return"](r)})}
600
+ function Vo(a){return a.Uc}function Yo(a){var b=Fo(a,Vo,"RepresentationIndex");a=Eo(a,Vo,"indexRange");a=ko(a||"");b&&(a=ho(b,"range",ko,a));return a}function Wo(a,b){$o(a,b);if(!Yo(a))throw new O(2,4,4002);}function $o(a,b){var c=a.L.mimeType.split("/")[1];if(a.L.contentType!=Ib&&"mp4"!=c&&"webm"!=c)throw new O(2,4,4006);if("webm"==c&&!b)throw new O(2,4,4005);}
601
+ function To(a){var b=a.L;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.ud,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function ap(a,b){var c=So(a,bp),d=cp(a);if(!d.wa&&!d.timeline&&1<d.ic.length)throw new O(2,4,4002);if(!d.wa&&!a.Z.duration&&!d.timeline&&1==d.ic.length)throw new O(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new O(2,4,4002);var e=null,f=null;a.ra.id&&a.L.id&&(f=b[a.ra.id+","+a.L.id])&&(e=f.segmentIndex);var g=dp(a.Z.start,a.Z.duration,a.L.Na,d,c);c=!e;e?e.jc(g,a.presentationTimeline.ob()):e=new dj(g);a.presentationTimeline.kc(g);a.xb&&a.Z.zf||e.yb(a.Z.start,a.Z.duration?a.Z.start+a.Z.duration:
602
+ Infinity,c);f&&(f.segmentIndex=e);return{ac:function(){e&&0!=e.M.length||e.Oc(g);return Promise.resolve(e)}}}function bp(a){return a.Db}function cp(a){var b=ep(a);a=Do(a,bp);var c=a.pc;0==c&&(c=1);var d=0;a.wa?d=a.wa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{wa:a.wa,startTime:d,pc:c,rb:a.rb,timeline:a.timeline,ic:b}}
603
+ function dp(a,b,c,d,e){var f=d.ic.length;d.timeline&&d.timeline.length!=d.ic.length&&(f=Math.min(d.timeline.length,d.ic.length));for(var g=a-d.rb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},n=0;n<f;m={Pd:m.Pd},n++){var p=d.ic[n];m.Pd=Db(c,[p.Ug]);var r=void 0;r=null!=d.wa?l+d.wa:d.timeline?d.timeline[n].end:l+b;k.push(new bi(a+l,a+r,function(v){return function(){return v.Pd}}(m),p.start,p.end,e,g,a,h));l=r}return k}
604
+ function ep(a){return[a.L.Db,a.za.Db,a.ra.Db].filter(Cb).map(function(b){return Zn(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.xf&&(a.xf=!0);var c=b.getAttribute("media");b=ho(b,"mediaRange",ko,{start:0,end:null});return{Ug:c,start:b.start,end:b.end}})};function fp(a,b,c,d,e,f){var g=gp(a),h=hp(a);ip(h);var k=kf(a);if(h.Lc)return $o(a,g),{ac:function(){var r=Co(h.Lc,k.L.id,null,k.bandwidth||null,null);r=Db(k.L.Na,[r]);return Zo(k,b,g,r,0,null,h.rb)}};if(h.wa)return d||(a.presentationTimeline.oe(h.wa),a.presentationTimeline.pe(a.Z.start)),{ac:function(){return jp(k,h,e,g,f)}};var l=null;d=d=null;a.ra.id&&a.L.id&&(d=a.ra.id+","+a.L.id,d=c[d])&&(l=d.segmentIndex);var m=kp(k,h,g);c=a.Z.start;var n=a.Z.duration?a.Z.start+a.Z.duration:Infinity,p=Infinity!=
605
+ n;l?(p&&(new dj(m)).yb(c,n,!0),l.jc(m,a.presentationTimeline.ob())):l=new dj(m);a.presentationTimeline.kc(m);p&&l.yb(c,n);d&&a.xb&&(d.segmentIndex=l);return{ac:function(){l&&0!=l.M.length||l.Oc(m);return Promise.resolve(l)}}}function lp(a){return a.Vc}function hp(a){var b=Do(a,lp),c=Eo(a,lp,"media");a=Eo(a,lp,"index");return{wa:b.wa,timescale:b.timescale,pc:b.pc,rb:b.rb,Te:b.Te,timeline:b.timeline,me:c,Lc:a}}
606
+ function ip(a){var b=a.Lc?1:0;b+=a.timeline?1:0;b+=a.wa?1:0;if(0==b)throw new O(2,4,4002);1!=b&&(a.Lc&&(a.timeline=null),a.wa=null);if(!a.Lc&&!a.me)throw new O(2,4,4002);}
607
+ function jp(a,b,c,d,e){function f(K){var N=(K-r)*p,V=N+b.rb,Z=N+l;N=Z+p;var ea=Math.min(N,h());Z=new bi(Z,ea,function(){var ka=Co(y,w,K,x,V*v);return Db(D,[ka])},0,null,d,B,l,h());Z.j=N;return Z}function g(){var K=[Math.max(k.ob(),l),Math.min(k.Ib(),h())].map(function(N){return N-l});return[Math.ceil(K[0]/p),Math.ceil(K[1]/p)-1].map(function(N){return N+r})}function h(){var K=null!=m&&e[m]||n;return K?l+K:Infinity}var k=a.presentationTimeline,l=a.Z.start,m=a.ra.id,n=a.Z.duration,p=b.wa,r=b.pc,v=b.timescale,
608
+ y=b.me,x=a.bandwidth||null,w=a.L.id,D=a.L.Na,B=l-b.rb,C=g();a=a.xb?Math.max(C[0],C[1]-c+1):C[0];C=C[1];c=[];for(var G=a;G<=C;++G){var E=f(G);c.push(E)}var H=new dj(c);c=k.Ib()<h();G=k.U();if(c||G){var L=Math.max(a,C+1);H.Gd(p,function(){var K=k.ob();H.Gb(K);var N=t(g());N.next();N=N.next().value;for(var V=[];L<=N;){var Z=f(L);V.push(Z);L++}return K>h()&&!V.length?null:V})}return Promise.resolve(H)}
609
609
  function kp(a,b,c){var d=a.Z.start,e=a.Z.duration,f=d-b.rb;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={Od:h.Od,Sd:h.Sd,Vd:h.Vd,Ld:h.Ld,Xd:h.Xd,Md:h.Md},k++){var l=b.timeline[k],m=l.start,n=l.uh;l=l.end;h.Vd=k+b.pc;h.Xd=n+b.Te;h.Sd=a.L.id;h.Ld=a.bandwidth||null;h.Od=b.me;h.Md=a.L.Na;g.push(new bi(d+m,d+l,function(p){return function(){var r=Co(p.Od,p.Sd,p.Vd,p.Ld||null,p.Xd);return Db(p.Md,[r]).map(function(v){return v.toString()})}}(h),0,null,c,f,d,e))}return g}
610
610
  function gp(a){var b=Eo(a,lp,"initialization");if(!b)return null;var c=a.L.id,d=a.bandwidth||null,e=a.L.Na;return new $h(function(){var f=Co(b,c,null,d,null);return Db(e,[f])},0,null,To(a))};function mp(){this.l=[];this.g=[];this.h=[];this.j=[];this.i=[];this.m=new Set}mp.prototype.release=function(){for(var a=t(this.g.concat(this.h,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.g=[];this.h=[];this.j=[];this.i=[];this.l=[]};
611
- function np(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,v,y,x,w,D,B,C,G,E,H,L,K,N,V,aa,ha,ka,xa,Na;return J(function(Ga){switch(Ga.g){case 1:d=Jb;op(b);pp(b);qp(b);rp(b);if(!c&&1==b.length){e=b[0];a.g=e.fd;a.h=e.Id;a.j=e.textStreams;a.i=e.imageStreams;Ga.D(2);break}f=-1;for(g=0;g<b.length;g++)h=b[g],a.m.has(h.id)||(a.m.add(h.id),-1==f&&(f=g));if(-1==f)return Ga["return"]();k=b.map(function(Sa){return Sa.fd});l=b.map(function(Sa){return Sa.Id});m=b.map(function(Sa){return Sa.textStreams});n=b.map(function(Sa){return Sa.imageStreams});
612
- p=t(m);for(r=p.next();!r.done;r=p.next())v=r.value,v.push(sp(d.ha));y=t(n);for(x=y.next();!x.done;x=y.next())w=x.value,w.push(sp(d.zc));return z(Ga,tp(a.g,k,f,up,vp),3);case 3:return z(Ga,tp(a.h,l,f,up,vp),4);case 4:return z(Ga,tp(a.j,m,f,up,vp),5);case 5:return z(Ga,tp(a.i,n,f,up,vp),2);case 2:D=0;B=[];if(a.h.length&&a.g.length)for(K=t(a.g),N=K.next();!N.done;N=K.next())for(V=N.value,aa=t(a.h),ha=aa.next();!ha.done;ha=aa.next())ka=ha.value,xa=tg(V.drmInfos,ka.drmInfos),V.drmInfos.length&&ka.drmInfos.length&&
613
- !xa.length||(Na=D++,B.push({id:Na,language:V.language,primary:V.primary,audio:V,video:ka,bandwidth:(V.bandwidth||0)+(ka.bandwidth||0),drmInfos:xa,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(C=a.h.concat(a.g),G=t(C),E=G.next();!E.done;E=G.next())H=E.value,L=D++,B.push({id:L,language:H.language,primary:H.primary,audio:H.type==d.Fb?H:null,video:H.type==d.Ma?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});
614
- a.l=B;A(Ga)}})}function op(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.fd),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.channelsCount==h.channelsCount&&e.language==h.language&&e.bandwidth==h.bandwidth&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&ec(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.fd=c}}
615
- function qp(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.textStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.language==h.language&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.bandwidth==h.bandwidth&&ec(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
616
- function pp(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.Id),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.frameRate==h.frameRate&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.label==h.label&&ec(e.roles,h.roles)&&Hf(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.Id=c}}
611
+ function np(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,v,y,x,w,D,B,C,G,E,H,L,K,N,V,Z,ea,ka,Aa,Ha;return I(function(Ia){switch(Ia.g){case 1:d=Jb;op(b);pp(b);qp(b);rp(b);if(!c&&1==b.length){e=b[0];a.g=e.fd;a.h=e.Id;a.j=e.textStreams;a.i=e.imageStreams;Ia.D(2);break}f=-1;for(g=0;g<b.length;g++)h=b[g],a.m.has(h.id)||(a.m.add(h.id),-1==f&&(f=g));if(-1==f)return Ia["return"]();k=b.map(function(Na){return Na.fd});l=b.map(function(Na){return Na.Id});m=b.map(function(Na){return Na.textStreams});n=b.map(function(Na){return Na.imageStreams});
612
+ p=t(m);for(r=p.next();!r.done;r=p.next())v=r.value,v.push(sp(d.ha));y=t(n);for(x=y.next();!x.done;x=y.next())w=x.value,w.push(sp(d.zc));return u(Ia,tp(a.g,k,f,up,vp),3);case 3:return u(Ia,tp(a.h,l,f,up,vp),4);case 4:return u(Ia,tp(a.j,m,f,up,vp),5);case 5:return u(Ia,tp(a.i,n,f,up,vp),2);case 2:D=0;B=[];if(a.h.length&&a.g.length)for(K=t(a.g),N=K.next();!N.done;N=K.next())for(V=N.value,Z=t(a.h),ea=Z.next();!ea.done;ea=Z.next())ka=ea.value,Aa=tg(V.drmInfos,ka.drmInfos),V.drmInfos.length&&ka.drmInfos.length&&
613
+ !Aa.length||(Ha=D++,B.push({id:Ha,language:V.language,primary:V.primary,audio:V,video:ka,bandwidth:(V.bandwidth||0)+(ka.bandwidth||0),drmInfos:Aa,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(C=a.h.concat(a.g),G=t(C),E=G.next();!E.done;E=G.next())H=E.value,L=D++,B.push({id:L,language:H.language,primary:H.primary,audio:H.type==d.Fb?H:null,video:H.type==d.Ma?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});
614
+ a.l=B;z(Ia)}})}function op(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.fd),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.channelsCount==h.channelsCount&&e.language==h.language&&e.bandwidth==h.bandwidth&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&fc(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.fd=c}}
615
+ function qp(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.textStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.language==h.language&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.bandwidth==h.bandwidth&&fc(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
616
+ function pp(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.Id),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.frameRate==h.frameRate&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.label==h.label&&fc(e.roles,h.roles)&&Hf(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.Id=c}}
617
617
  function rp(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.imageStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&(f=!0);f||c.push(e)}b.imageStreams=c}}
618
- function wp(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,v,y,x,w,D,B,C,G,E,H,L,K,N,V;return J(function(aa){switch(aa.g){case 1:b=Jb;if(1==a.length)return aa["return"](a[0]);c=a.map(function(ha){return ha.filter(function(ka){return ka.type==b.Fb})});d=a.map(function(ha){return ha.filter(function(ka){return ka.type==b.Ma})});e=a.map(function(ha){return ha.filter(function(ka){return ka.type==b.ha})});f=a.map(function(ha){return ha.filter(function(ka){return ka.type==b.zc})});g=t(e);for(h=g.next();!h.done;h=g.next())k=
619
- h.value,k.push(xp(b.ha));l=t(f);for(m=l.next();!m.done;m=l.next())n=m.value,n.push(xp(b.zc));return z(aa,tp([],c,0,yp,zp),2);case 2:return p=aa.h,z(aa,tp([],d,0,yp,zp),3);case 3:return r=aa.h,z(aa,tp([],e,0,yp,zp),4);case 4:return v=aa.h,z(aa,tp([],f,0,yp,zp),5);case 5:y=aa.h;x=0;if(r.length&&p.length)for(G=t(p),E=G.next();!E.done;E=G.next())for(H=E.value,L=t(r),K=L.next();!K.done;K=L.next())N=K.value,V=x++,N.variantIds.push(V),H.variantIds.push(V);else for(w=r.concat(p),D=t(w),B=D.next();!B.done;B=
620
- D.next())C=B.value,C.variantIds=[x++];return aa["return"](r.concat(p).concat(v).concat(y))}})}
621
- function tp(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,v,y,x,w,D,B,C,G,E,H,L,K;return J(function(N){switch(N.g){case 1:f=Jb;g=[];for(h=0;h<b.length;h++)h>=c?g.push(new Set(b[h])):g.push(new Set);k=t(a);l=k.next();case 2:if(l.done){N.D(4);break}m=l.value;return z(N,Ap(m,b,c,e,g),5);case 5:n=N.h;if(!n)throw new P(2,4,4037);l=k.next();N.D(2);break;case 4:p=t(g);for(r=p.next();!r.done;r=p.next())for(v=r.value,y=t(v),x=y.next();!x.done;x=y.next())w=x.value,(D=Bp(w,b,d,e,g))&&a.push(D);B=t(g);for(r=B.next();!r.done;r=
622
- B.next())for(C=r.value,G={},E=t(C),x=E.next();!x.done;G={vb:G.vb},x=E.next())if(G.vb=x.value,H=G.vb.type==f.ha&&!G.vb.language,L=G.vb.type==f.zc&&!G.vb.tilesLayout,!H&&!L&&(K=a.some(function(V){return function(aa){return aa.mimeType==V.vb.mimeType&&yd(aa.codecs)==yd(V.vb.codecs)}}(G))))throw new P(2,4,4037);return N["return"](a)}})}
623
- function Ap(a,b,c,d,e){return J(function(f){if(1==f.g)return Cp(b,a),a.matchedStreams?a.segmentIndex?z(f,Dp(a,c),2):f.D(2):f["return"](!1);Ep(a,c,d,e);return f["return"](!0)})}
624
- function Dp(a,b){var c,d,e,f,g,h,k;return J(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=t(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 z(l,Promise.all(c),2)}if(a.segmentIndex instanceof gj)for(h=0;h<d.length;h++)k=d[h],k.segmentIndex&&h>=b&&a.segmentIndex.j.push(k.segmentIndex);A(l)})}
625
- function Bp(a,b,c,d,e){var f=c(a);Cp(b,f);f.createSegmentIndex&&(f.createSegmentIndex=function(){return J(function(g){if(f.segmentIndex)return g.D(0);f.segmentIndex=new gj;return z(g,Dp(f,0),0)})});if(!f.matchedStreams)return null;Ep(f,0,d,e);return f}function Ep(a,b,c,d){for(var e=a.matchedStreams,f=0;f<e.length;f++)if(f>=b){var g=e[f];c(a,g);var h=!0;"audio"==a.type&&0==Sb(a.language,g.language)&&(h=!1);h&&d[f]["delete"](g)}}
618
+ function wp(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,v,y,x,w,D,B,C,G,E,H,L,K,N,V;return I(function(Z){switch(Z.g){case 1:b=Jb;if(1==a.length)return Z["return"](a[0]);c=a.map(function(ea){return ea.filter(function(ka){return ka.type==b.Fb})});d=a.map(function(ea){return ea.filter(function(ka){return ka.type==b.Ma})});e=a.map(function(ea){return ea.filter(function(ka){return ka.type==b.ha})});f=a.map(function(ea){return ea.filter(function(ka){return ka.type==b.zc})});g=t(e);for(h=g.next();!h.done;h=g.next())k=
619
+ h.value,k.push(xp(b.ha));l=t(f);for(m=l.next();!m.done;m=l.next())n=m.value,n.push(xp(b.zc));return u(Z,tp([],c,0,yp,zp),2);case 2:return p=Z.h,u(Z,tp([],d,0,yp,zp),3);case 3:return r=Z.h,u(Z,tp([],e,0,yp,zp),4);case 4:return v=Z.h,u(Z,tp([],f,0,yp,zp),5);case 5:y=Z.h;x=0;if(r.length&&p.length)for(G=t(p),E=G.next();!E.done;E=G.next())for(H=E.value,L=t(r),K=L.next();!K.done;K=L.next())N=K.value,V=x++,N.variantIds.push(V),H.variantIds.push(V);else for(w=r.concat(p),D=t(w),B=D.next();!B.done;B=D.next())C=
620
+ B.value,C.variantIds=[x++];return Z["return"](r.concat(p).concat(v).concat(y))}})}
621
+ function tp(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,v,y,x,w,D,B,C,G,E,H,L,K;return I(function(N){switch(N.g){case 1:f=Jb;g=[];for(h=0;h<b.length;h++)h>=c?g.push(new Set(b[h])):g.push(new Set);k=t(a);l=k.next();case 2:if(l.done){N.D(4);break}m=l.value;return u(N,Ap(m,b,c,e,g),5);case 5:n=N.h;if(!n)throw new O(2,4,4037);l=k.next();N.D(2);break;case 4:p=t(g);for(r=p.next();!r.done;r=p.next())for(v=r.value,y=t(v),x=y.next();!x.done;x=y.next())w=x.value,(D=Bp(w,b,d,e,g))&&a.push(D);B=t(g);for(r=B.next();!r.done;r=
622
+ B.next())for(C=r.value,G={},E=t(C),x=E.next();!x.done;G={vb:G.vb},x=E.next())if(G.vb=x.value,H=G.vb.type==f.ha&&!G.vb.language,L=G.vb.type==f.zc&&!G.vb.tilesLayout,!H&&!L&&(K=a.some(function(V){return function(Z){return Z.mimeType==V.vb.mimeType&&yd(Z.codecs)==yd(V.vb.codecs)}}(G))))throw new O(2,4,4037);return N["return"](a)}})}
623
+ function Ap(a,b,c,d,e){return I(function(f){if(1==f.g)return Cp(b,a),a.matchedStreams?a.segmentIndex?u(f,Dp(a,c),2):f.D(2):f["return"](!1);Ep(a,c,d,e);return f["return"](!0)})}
624
+ function Dp(a,b){var c,d,e,f,g,h,k;return I(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=t(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 u(l,Promise.all(c),2)}if(a.segmentIndex instanceof gj)for(h=0;h<d.length;h++)k=d[h],k.segmentIndex&&h>=b&&a.segmentIndex.j.push(k.segmentIndex);z(l)})}
625
+ function Bp(a,b,c,d,e){var f=c(a);Cp(b,f);f.createSegmentIndex&&(f.createSegmentIndex=function(){return I(function(g){if(f.segmentIndex)return g.D(0);f.segmentIndex=new gj;return u(g,Dp(f,0),0)})});if(!f.matchedStreams)return null;Ep(f,0,d,e);return f}function Ep(a,b,c,d){for(var e=a.matchedStreams,f=0;f<e.length;f++)if(f>=b){var g=e[f];c(a,g);var h=!0;"audio"==a.type&&0==Sb(a.language,g.language)&&(h=!1);h&&d[f]["delete"](g)}}
626
626
  function up(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=t(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=null;b.trickModeVideo=null;return b}
627
627
  function yp(a){a=Object.assign({},a);a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
628
- function vp(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=Array.from(new Set(a.emsgSchemeIdUris.concat(b.emsgSchemeIdUris))));a.keyIds=function(f,g){return new Set([].concat(ja(f),ja(g)))}(a.keyIds,b.keyIds);null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");var c=tg(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new P(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions){a.closedCaptions||
628
+ function vp(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=Array.from(new Set(a.emsgSchemeIdUris.concat(b.emsgSchemeIdUris))));a.keyIds=function(f,g){return new Set([].concat(ia(f),ia(g)))}(a.keyIds,b.keyIds);null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");var c=tg(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new O(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions){a.closedCaptions||
629
629
  (a.closedCaptions=new Map);c=t(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=up(b.trickModeVideo),a.trickModeVideo.createSegmentIndex=function(){a.trickModeVideo.segmentIndex=a.segmentIndex.clone();return Promise.resolve()}),vp(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&vp(a.trickModeVideo,b)}
630
- function zp(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));var c=b.keyIds;c=new Set([].concat(ja(a.keyIds),ja(c)));a.keyIds=c;a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,ja(b.segments));if(b.closedCaptions){a.closedCaptions||(a.closedCaptions=new Map);c=t(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}}
630
+ function zp(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));var c=b.keyIds;c=new Set([].concat(ia(a.keyIds),ia(c)));a.keyIds=c;a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,ia(b.segments));if(b.closedCaptions){a.closedCaptions||(a.closedCaptions=new Map);c=t(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}}
631
631
  function Cp(a,b){for(var c=[],d=t(a),e=d.next();!e.done;e=d.next()){var f=b,g={audio:Fp,video:Fp,text:Gp,image:Hp}[f.type],h={audio:Ip,video:Jp,text:Kp,image:Lp}[f.type],k=null;e=t(e.value);for(var l=e.next();!l.done;l=e.next())l=l.value,!g(f,l)||k&&!h(f,k,l)||(k=l);f=k;if(!f)return;c.push(f)}b.matchedStreams=c}function Fp(a,b){var c;if(!(c=b.mimeType!=a.mimeType||yd(b.codecs)!=yd(a.codecs))&&(c=a.drmInfos)){c=a.drmInfos;var d=b.drmInfos;c=!(c.length&&d.length?0<tg(c,d).length:1)}return c?!1:!0}
632
632
  function Gp(a,b){return a.language?b.language?0==Sb(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}function Hp(a){return a.tilesLayout?!0:!1}
633
633
  function Ip(a,b,c){if(a.id==c.id)return!0;var d=Sb(a.language,b.language),e=Sb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;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;if(c.roles.length&&!b.roles.length)return!1;
@@ -636,232 +636,230 @@ function Jp(a,b,c){if(a.id==c.id)return!0;var d=Mp(a.width*a.height,b.width*b.he
636
636
  function Kp(a,b,c){if(a.id==c.id)return!0;var d=Sb(a.language,b.language),e=Sb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!=
637
637
  a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function Lp(a,b,c){return a.id==c.id?!0:Mp(a.width*a.height,b.width*b.height,c.width*c.height)==Np?!0:!1}function xp(a){return{id:0,originalId:"",primary:!1,type:a,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}
638
638
  function sp(a){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new dj([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}
639
- function Mp(a,b,c){if(b==a&&a!=c)return Op;if(c==a&&a!=b)return Np;if(b>a){if(c<=a||c-a<b-a)return Np;if(c-a>b-a)return Op}else{if(c>a)return Op;if(a-c<a-b)return Np;if(a-c>a-b)return Op}return Qp}function Pp(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?Np:b<a?Op:Qp}var Np=1,Qp=0,Op=-1;function Rp(){var a=this;this.h=this.g=null;this.m=[];this.i=null;this.I=1;this.l={};this.N={};this.j=new mp;this.H=0;this.J=new $b(5);this.G=new Q(function(){Sp(a)});this.A=new lf;this.B=null;this.K=[];this.C=Infinity;this.F=!1}q=Rp.prototype;q.configure=function(a){this.g=a};q.start=function(a,b){var c=this,d;return J(function(e){if(1==e.g)return c.F=b.isLowLatencyMode(),c.m=[a],c.h=b,z(e,Tp(c),2);d=e.h;c.h&&Up(c,d);if(!c.h)throw new P(2,7,7001);return e["return"](c.i)})};
640
- q.stop=function(){for(var a=t(Object.values(this.l)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.j&&this.j.release();this.g=this.h=null;this.m=[];this.i=null;this.l={};this.j=null;null!=this.G&&(this.G.stop(),this.G=null);return this.A.destroy()};q.update=function(){var a=this,b;return J(function(c){if(1==c.g)return F(c,2),z(c,Tp(a),4);if(2!=c.g)return va(c,0);b=I(c);if(!a.h||!b)return c["return"]();a.h.onError(b);A(c)})};q.onExpirationUpdated=function(){};
641
- function Tp(a){var b,c,d,e,f,g,h;return J(function(k){if(1==k.g)return b=rf(a.m,a.g.retryParameters),c=a.h.networkingEngine,a.h.modifyManifestRequest(b,{format:"d"}),d=Date.now(),e=c.request(0,b),mf(a.A,e),z(k,e.promise,2);if(3!=k.g){f=k.h;if(!a.h)return k["return"](0);f.uri&&!a.m.includes(f.uri)&&a.m.unshift(f.uri);return z(k,Vp(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;a.J.sample(1,h);return k["return"](h)})}
642
- function Vp(a,b,c){var d,e,f,g,h;return J(function(k){if(1==k.g){d=ro(b,"MPD");if(!d)throw new P(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k["return"](Wp(a,d,c));f=a.g.dash.xlinkFailGracefully;g=Ho(d,a.g.retryParameters,f,c,a.h.networkingEngine);mf(a.A,g);return z(k,g.promise,2)}h=k.h;return k["return"](Wp(a,h,c))})}
643
- function Wp(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,v,y,x,w,D,B,C,G,E,H,L,K,N,V,aa,ha,ka,xa,Na,Ga,Sa;return J(function(Ia){switch(Ia.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=Zn(b,"Location").map(fo).filter(Cb);0<f.length&&(g=Db(e,f),e=a.m=g);h=Zn(b,"BaseURL");k=h.map(fo);l=Db(e,k);m=0;h&&h.length&&(m=ho(h[0],"availabilityTimeOffset",oo)||0);n=a.g.dash.ignoreMinBufferTime;p=0;n||(p=ho(b,"minBufferTime",jo)||0);a.H=ho(b,"minimumUpdatePeriod",jo,-1);r=ho(b,"availabilityStartTime",io);v=ho(b,
644
- "timeShiftBufferDepth",jo);y=a.g.dash.ignoreSuggestedPresentationDelay;x=null;y||(x=ho(b,"suggestedPresentationDelay",jo));w=a.g.dash.ignoreMaxSegmentDuration;D=null;w||(D=ho(b,"maxSegmentDuration",jo));B=b.getAttribute("type")||"static";if(a.i)for(C=a.i.presentationTimeline,G=t(Object.values(a.l)),E=G.next();!E.done;E=G.next())H=E.value,H.segmentIndex&&H.segmentIndex.Gb(C.ob());else L=a.g.defaultPresentationDelay||1.5*p,K=null!=x?x:L,C=new R(r,K,a.g.dash.autoCorrectDrift);C.Wc("static"==B);(N=C.U())&&
645
- !isNaN(a.g.availabilityWindowOverride)&&(v=a.g.availabilityWindowOverride);null==v&&(v=Infinity);C.Je(v);V=b.getAttribute("profiles")||"";aa={xb:"static"!=B,presentationTimeline:C,ra:null,Z:null,Aa:null,L:null,bandwidth:0,xf:!1,Zb:m,profiles:V.split(",")};ha=Xp(a,aa,l,b);ka=ha.duration;xa=ha.periods;"static"!=B&&ha.mf||C.bb(ka||Infinity);a.C&&!a.F&&(Na=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.F=a.h.isLowLatencyMode());a.F?C.Gf(a.C):a.C&&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.");
646
- C.oe(D||1);return z(Ia,np(a.j,xa,aa.xb),2);case 2:if(a.i){a.i.variants=a.j.l;a.i.textStreams=a.j.j.slice();a.i.imageStreams=a.j.i;a.h.filter(a.i);Ia.D(3);break}a.i={presentationTimeline:C,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:p||0,sequenceMode:!1};if(!C.Of()){Ia.D(4);break}Ga=Zn(b,"UTCTiming");return z(Ia,Yp(a,l,Ga),5);case 5:Sa=Ia.h;if(!a.h)return Ia["return"]();C.Hf(Sa);case 4:C.je();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),A(Ia)}})}
639
+ function Mp(a,b,c){if(b==a&&a!=c)return Op;if(c==a&&a!=b)return Np;if(b>a){if(c<=a||c-a<b-a)return Np;if(c-a>b-a)return Op}else{if(c>a)return Op;if(a-c<a-b)return Np;if(a-c>a-b)return Op}return Qp}function Pp(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?Np:b<a?Op:Qp}var Np=1,Qp=0,Op=-1;function Rp(){var a=this;this.h=this.g=null;this.m=[];this.i=null;this.I=1;this.l={};this.N={};this.j=new mp;this.H=0;this.J=new $b(5);this.G=new P(function(){Sp(a)});this.A=new lf;this.B=null;this.K=[];this.C=Infinity;this.F=!1}q=Rp.prototype;q.configure=function(a){this.g=a};q.start=function(a,b){var c=this,d;return I(function(e){if(1==e.g)return c.F=b.isLowLatencyMode(),c.m=[a],c.h=b,u(e,Tp(c),2);d=e.h;c.h&&Up(c,d);if(!c.h)throw new O(2,7,7001);return e["return"](c.i)})};
640
+ q.stop=function(){for(var a=t(Object.values(this.l)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.j&&this.j.release();this.g=this.h=null;this.m=[];this.i=null;this.l={};this.j=null;null!=this.G&&(this.G.stop(),this.G=null);return this.A.destroy()};q.update=function(){var a=this,b;return I(function(c){if(1==c.g)return A(c,2),u(c,Tp(a),4);if(2!=c.g)return va(c,0);b=F(c);if(!a.h||!b)return c["return"]();a.h.onError(b);z(c)})};q.onExpirationUpdated=function(){};
641
+ function Tp(a){var b,c,d,e,f,g,h;return I(function(k){if(1==k.g)return b=rf(a.m,a.g.retryParameters),c=a.h.networkingEngine,a.h.modifyManifestRequest(b,{format:"d"}),d=Date.now(),e=c.request(0,b),mf(a.A,e),u(k,e.promise,2);if(3!=k.g){f=k.h;if(!a.h)return k["return"](0);f.uri&&!a.m.includes(f.uri)&&a.m.unshift(f.uri);return u(k,Vp(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;a.J.sample(1,h);return k["return"](h)})}
642
+ function Vp(a,b,c){var d,e,f,g,h;return I(function(k){if(1==k.g){d=ro(b,"MPD");if(!d)throw new O(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k["return"](Wp(a,d,c));f=a.g.dash.xlinkFailGracefully;g=Ho(d,a.g.retryParameters,f,c,a.h.networkingEngine);mf(a.A,g);return u(k,g.promise,2)}h=k.h;return k["return"](Wp(a,h,c))})}
643
+ function Wp(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,v,y,x,w,D,B,C,G,E,H,L,K,N,V,Z,ea,ka,Aa,Ha,Ia,Na;return I(function(Oa){switch(Oa.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=Zn(b,"Location").map(fo).filter(Cb);0<f.length&&(g=Db(e,f),e=a.m=g);h=Zn(b,"BaseURL");k=h.map(fo);l=Db(e,k);m=0;h&&h.length&&(m=ho(h[0],"availabilityTimeOffset",oo)||0);n=a.g.dash.ignoreMinBufferTime;p=0;n||(p=ho(b,"minBufferTime",jo)||0);a.H=ho(b,"minimumUpdatePeriod",jo,-1);r=ho(b,"availabilityStartTime",io);v=ho(b,
644
+ "timeShiftBufferDepth",jo);y=a.g.dash.ignoreSuggestedPresentationDelay;x=null;y||(x=ho(b,"suggestedPresentationDelay",jo));w=a.g.dash.ignoreMaxSegmentDuration;D=null;w||(D=ho(b,"maxSegmentDuration",jo));B=b.getAttribute("type")||"static";if(a.i)for(C=a.i.presentationTimeline,G=t(Object.values(a.l)),E=G.next();!E.done;E=G.next())H=E.value,H.segmentIndex&&H.segmentIndex.Gb(C.ob());else L=a.g.defaultPresentationDelay||1.5*p,K=null!=x?x:L,C=new Q(r,K,a.g.dash.autoCorrectDrift);C.Wc("static"==B);(N=C.U())&&
645
+ !isNaN(a.g.availabilityWindowOverride)&&(v=a.g.availabilityWindowOverride);null==v&&(v=Infinity);C.Je(v);V=b.getAttribute("profiles")||"";Z={xb:"static"!=B,presentationTimeline:C,ra:null,Z:null,za:null,L:null,bandwidth:0,xf:!1,Zb:m,profiles:V.split(",")};ea=Xp(a,Z,l,b);ka=ea.duration;Aa=ea.periods;"static"!=B&&ea.mf||C.bb(ka||Infinity);a.C&&!a.F&&(Ha=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.F=a.h.isLowLatencyMode());a.F?C.Gf(a.C):a.C&&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.");
646
+ C.oe(D||1);return u(Oa,np(a.j,Aa,Z.xb),2);case 2:if(a.i){a.i.variants=a.j.l;a.i.textStreams=a.j.j.slice();a.i.imageStreams=a.j.i;a.h.filter(a.i);Oa.D(3);break}a.i={presentationTimeline:C,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:p||0,sequenceMode:!1};if(!C.Of()){Oa.D(4);break}Ia=Zn(b,"UTCTiming");return u(Oa,Yp(a,l,Ia),5);case 5:Na=Oa.h;if(!a.h)return Oa["return"]();C.Hf(Na);case 4:C.je();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),z(Oa)}})}
647
647
  function Xp(a,b,c,d){var e=ho(d,"mediaPresentationDuration",jo),f=[],g=0;d=Zn(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=ho(k,"start",jo,g),n=k.id,p=ho(k,"duration",jo),r=null;if(l){var v=ho(l,"start",jo);null!=v&&(r=v-m)}else null!=e&&(r=e-m);null==r&&(r=p);if(!(null!==a.B&&null!==n&&null!==m&&m<a.B)||a.K.includes(n)||h+1==d.length){null!==m&&(null===a.B||m>a.B)&&(a.B=m);g=Zp(a,b,c,{start:m,duration:r,node:k,zf:null==r||!l});f.push(g);b.ra.id&&r&&(a.N[b.ra.id]=r);if(null==r){g=
648
648
  null;break}g=m+r}}a.K=f.map(function(y){return y.id});return null!=e?{periods:f,duration:e,mf:!1}:{periods:f,duration:g,mf:!0}}
649
- function Zp(a,b,c,d){b.ra=$p(d.node,null,c);b.Z=d;b.ra.Zb=b.Zb;b.ra.id||(b.ra.id="__shaka_period_"+d.start);var e=Zn(d.node,"EventStream");c=b.presentationTimeline.ob();e=t(e);for(var f=e.next();!f.done;f=e.next())aq(a,d.start,d.duration,f.value,c);c=Zn(d.node,"AdaptationSet").map(function(m){return bq(a,b,m)}).filter(Cb);if(b.xb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.gh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new P(2,4,4018);
649
+ function Zp(a,b,c,d){b.ra=$p(d.node,null,c);b.Z=d;b.ra.Zb=b.Zb;b.ra.id||(b.ra.id="__shaka_period_"+d.start);var e=Zn(d.node,"EventStream");c=b.presentationTimeline.ob();e=t(e);for(var f=e.next();!f.done;f=e.next())aq(a,d.start,d.duration,f.value,c);c=Zn(d.node,"AdaptationSet").map(function(m){return bq(a,b,m)}).filter(Cb);if(b.xb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.gh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new O(2,4,4018);
650
650
  }d=c.filter(function(m){return!m.Pe});c=c.filter(function(m){return m.Pe});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.Pe.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=t(k.streams);for(var l=k.next();!l.done;h={cd:h.cd},l=k.next())h.cd=l.value,h.cd.trickModeVideo=e.streams.find(function(m){return function(n){return yd(m.cd.codecs)==yd(n.codecs)}}(h))}}}e=a.g.disableAudio?[]:cq(d,"audio");g=a.g.disableVideo?[]:cq(d,"video");f=a.g.disableText?
651
- []:cq(d,Ib);c=a.g.disableThumbnails?[]:cq(d,"image");if(!g.length&&!e.length)throw new P(2,4,4004);d=[];e=t(e);for(h=e.next();!h.done;h=e.next())d.push.apply(d,ja(h.value.streams));e=[];g=t(g);for(h=g.next();!h.done;h=g.next())e.push.apply(e,ja(h.value.streams));g=[];f=t(f);for(h=f.next();!h.done;h=f.next())g.push.apply(g,ja(h.value.streams));f=[];c=t(c);for(h=c.next();!h.done;h=c.next())f.push.apply(f,ja(h.value.streams));return{id:b.ra.id,fd:d,Id:e,textStreams:g,imageStreams:f}}
651
+ []:cq(d,Ib);c=a.g.disableThumbnails?[]:cq(d,"image");if(!g.length&&!e.length)throw new O(2,4,4004);d=[];e=t(e);for(h=e.next();!h.done;h=e.next())d.push.apply(d,ia(h.value.streams));e=[];g=t(g);for(h=g.next();!h.done;h=g.next())e.push.apply(e,ia(h.value.streams));g=[];f=t(f);for(h=f.next();!h.done;h=f.next())g.push.apply(g,ia(h.value.streams));f=[];c=t(c);for(h=c.next();!h.done;h=c.next())f.push.apply(f,ia(h.value.streams));return{id:b.ra.id,fd:d,Id:e,textStreams:g,imageStreams:f}}
652
652
  function cq(a,b){return a.filter(function(c){return c.contentType==b})}
653
- function bq(a,b,c){function d(E){switch(E){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.Aa=$p(c,b.ra,null);var e=!1,f=Zn(c,"Role"),g=f.map(function(E){return E.getAttribute("value")}).filter(Cb),h=void 0,k=b.Aa.contentType==Ib;k&&(h="subtitle");f=t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
653
+ function bq(a,b,c){function d(E){switch(E){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.za=$p(c,b.ra,null);var e=!1,f=Zn(c,"Role"),g=f.map(function(E){return E.getAttribute("value")}).filter(Cb),h=void 0,k=b.za.contentType==Ib;k&&(h="subtitle");f=t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
654
654
  l}}var n;m=Zn(c,"EssentialProperty");f=null;l=!1;m=t(m);for(var p=m.next();!p.done;p=m.next()){p=p.value;var r=p.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==r?f=p.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==r?n=d(parseInt(p.getAttribute("value"),10)):l=!0}m=Zn(c,"SupplementalProperty");m=t(m);for(p=m.next();!p.done;p=m.next())p=p.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==p.getAttribute("schemeIdUri")&&(n=d(parseInt(p.getAttribute("value"),
655
655
  10)));m=Zn(c,"Accessibility");var v=new Map;m=t(m);for(p=m.next();!p.done;p=m.next())if(r=p.value,p=r.getAttribute("schemeIdUri"),r=r.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=r){r=r.split(";");for(var y=t(r),x=y.next();!x.done;x=y.next()){var w=x.value,D=x=void 0;w.includes("=")?(w=w.split("="),x=w[0].startsWith("CC")?w[0]:"CC"+w[0],D=w[1]||"und"):(x="CC"+p,2==r.length?p+=2:p++,D=w);v.set(x,Mb(D))}}else v.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=
656
656
  1,null!=r)for(r=t(r.split(";")),x=r.next();!x.done;x=r.next())x=x.value,w=y=void 0,x.includes("=")?(x=x.split("="),y="svc"+x[0],w=x[1].split(",")[0].split(":").pop()):(y="svc"+p,p++,w=x),v.set(y,Mb(w));else v.set("svc1","und");else"urn:mpeg:dash:role:2011"==p&&null!=r&&(g.push(r),"captions"==r&&(h="caption"));if(l)return null;l=Zn(c,"ContentProtection");var B=so(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),C=Mb(c.getAttribute("lang")||"und"),G=c.getAttribute("label");(l=Zn(c,"Label"))&&l.length&&
657
- (l=l[0],l.textContent&&(G=l.textContent));l=Zn(c,"Representation");c=l.map(function(E){if(E=dq(a,b,B,h,C,G,e,g,v,E))E.hdr=E.hdr||n;return E}).filter(function(E){return!!E});if(0==c.length){f="image"==b.Aa.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new P(2,4,4003);}if(!b.Aa.contentType||"application"==b.Aa.contentType)for(b.Aa.contentType=eq(c[0].mimeType,c[0].codecs),k=t(c),m=k.next();!m.done;m=k.next())m.value.type=b.Aa.contentType;k=t(c);for(m=k.next();!m.done;m=k.next())for(m=
658
- m.value,p=t(B.drmInfos),r=p.next();!r.done;r=p.next())r=r.value,r.keyIds=r.keyIds&&m.keyIds?new Set([].concat(ja(r.keyIds),ja(m.keyIds))):r.keyIds||m.keyIds;k=l.map(function(E){return E.getAttribute("id")}).filter(Cb);return{id:b.Aa.id||"__fake__"+a.I++,contentType:b.Aa.contentType,language:C,Zi:e,streams:c,drmInfos:B.drmInfos,Pe:f,gh:k}}
659
- function dq(a,b,c,d,e,f,g,h,k,l){b.L=$p(l,b.Aa,null);a.C=Math.min(a.C,b.L.Zb);if(!fq(b.L))return null;var m=b.Z.start;b.bandwidth=ho(l,"bandwidth",mo)||0;var n=b.L.contentType,p=n==Ib||"application"==n;n="image"==n;try{var r=function(H,L,K){return gq(a,H,L,K)};if(b.L.Uc)var v=Uo(b,r);else if(b.L.Db)v=ap(b,a.l);else if(b.L.Vc)v=fp(b,r,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.N);else{var y=b.L.Na,x=b.Z.duration||0;v={ac:function(){return Promise.resolve(fj(m,x,y))}}}}catch(H){if((p||n)&&4002==H.code)return null;
657
+ (l=l[0],l.textContent&&(G=l.textContent));l=Zn(c,"Representation");c=l.map(function(E){if(E=dq(a,b,B,h,C,G,e,g,v,E))E.hdr=E.hdr||n;return E}).filter(function(E){return!!E});if(0==c.length){f="image"==b.za.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new O(2,4,4003);}if(!b.za.contentType||"application"==b.za.contentType)for(b.za.contentType=eq(c[0].mimeType,c[0].codecs),k=t(c),m=k.next();!m.done;m=k.next())m.value.type=b.za.contentType;k=t(c);for(m=k.next();!m.done;m=k.next())for(m=
658
+ m.value,p=t(B.drmInfos),r=p.next();!r.done;r=p.next())r=r.value,r.keyIds=r.keyIds&&m.keyIds?new Set([].concat(ia(r.keyIds),ia(m.keyIds))):r.keyIds||m.keyIds;k=l.map(function(E){return E.getAttribute("id")}).filter(Cb);return{id:b.za.id||"__fake__"+a.I++,contentType:b.za.contentType,language:C,Zi:e,streams:c,drmInfos:B.drmInfos,Pe:f,gh:k}}
659
+ function dq(a,b,c,d,e,f,g,h,k,l){b.L=$p(l,b.za,null);a.C=Math.min(a.C,b.L.Zb);if(!fq(b.L))return null;var m=b.Z.start;b.bandwidth=ho(l,"bandwidth",mo)||0;var n=b.L.contentType,p=n==Ib||"application"==n;n="image"==n;try{var r=function(H,L,K){return gq(a,H,L,K)};if(b.L.Uc)var v=Uo(b,r);else if(b.L.Db)v=ap(b,a.l);else if(b.L.Vc)v=fp(b,r,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.N);else{var y=b.L.Na,x=b.Z.duration||0;v={ac:function(){return Promise.resolve(fj(m,x,y))}}}}catch(H){if((p||n)&&4002==H.code)return null;
660
660
  throw H;}r=Zn(l,"ContentProtection");r=vo(r,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);r=new Set(r?[r]:[]);var w=!1;Zn(l,"SupplementalProperty").some(function(H){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==H.getAttribute("schemeIdUri")&&"JOC"==H.getAttribute("value")})&&(w=!0);var D=!1;p&&(D=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var B;if(n&&((l=Zn(l,"EssentialProperty").find(function(H){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(H.getAttribute("schemeIdUri"))}))&&
661
- (B=l.getAttribute("value")),!B))return null;var C;l=b.L.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"))&&(C="PQ");var G=b.L.id?b.ra.id+","+b.L.id:"",E={id:a.I++,originalId:b.L.id,createSegmentIndex:function(){var H,L,K;return J(function(N){if(1==N.g){L=(H=G&&b.xb&&a.l[G])?a.l[G]:E;if(L.segmentIndex)return N.D(0);K=L;return z(N,v.ac(),3)}K.segmentIndex=N.h;A(N)})},closeSegmentIndex:function(){E.segmentIndex&&
662
- (E.segmentIndex.release(),E.segmentIndex=null)},segmentIndex:null,mimeType:b.L.mimeType,codecs:b.L.codecs,frameRate:b.L.frameRate,pixelAspectRatio:b.L.pixelAspectRatio,bandwidth:b.bandwidth,width:b.L.width,height:b.L.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:r,language:e,label:f,type:b.Aa.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.L.emsgSchemeIdUris,roles:h,forced:D,channelsCount:b.L.ud,audioSamplingRate:b.L.audioSamplingRate,spatialAudio:w,closedCaptions:k,
663
- hdr:C,tilesLayout:B,matchedStreams:[]};G&&b.xb&&!a.l[G]&&(a.l[G]=E);return E}function Sp(a){var b,c;J(function(d){switch(d.g){case 1:return b=0,F(d,2),z(d,Tp(a),4);case 4:b=d.h;va(d,3);break;case 2:c=I(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d["return"]();Up(a,b);A(d)}})}function Up(a,b){0>a.H||a.G.T(Math.max(3,a.H-b,ac(a.J)))}
661
+ (B=l.getAttribute("value")),!B))return null;var C;l=b.L.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"))&&(C="PQ");var G=b.L.id?b.ra.id+","+b.L.id:"",E={id:a.I++,originalId:b.L.id,createSegmentIndex:function(){var H,L,K;return I(function(N){if(1==N.g){L=(H=G&&b.xb&&a.l[G])?a.l[G]:E;if(L.segmentIndex)return N.D(0);K=L;return u(N,v.ac(),3)}K.segmentIndex=N.h;z(N)})},closeSegmentIndex:function(){E.segmentIndex&&
662
+ (E.segmentIndex.release(),E.segmentIndex=null)},segmentIndex:null,mimeType:b.L.mimeType,codecs:b.L.codecs,frameRate:b.L.frameRate,pixelAspectRatio:b.L.pixelAspectRatio,bandwidth:b.bandwidth,width:b.L.width,height:b.L.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:r,language:e,label:f,type:b.za.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.L.emsgSchemeIdUris,roles:h,forced:D,channelsCount:b.L.ud,audioSamplingRate:b.L.audioSamplingRate,spatialAudio:w,closedCaptions:k,
663
+ hdr:C,tilesLayout:B,matchedStreams:[]};G&&b.xb&&!a.l[G]&&(a.l[G]=E);return E}function Sp(a){var b,c;I(function(d){switch(d.g){case 1:return b=0,A(d,2),u(d,Tp(a),4);case 4:b=d.h;va(d,3);break;case 2:c=F(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d["return"]();Up(a,b);z(d)}})}function Up(a,b){0>a.H||a.G.T(Math.max(3,a.H-b,ac(a.J)))}
664
664
  function $p(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,ud:null,audioSamplingRate:null,Zb:0};c=c||b.Na;var d=Zn(a,"BaseURL"),e=d.map(fo),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=ho(a,"frameRate",po)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=Zn(a,"InbandEventStream"),n=b.emsgSchemeIdUris.slice();m=t(m);for(var p=m.next();!p.done;p=
665
665
  m.next())p=p.value.getAttribute("schemeIdUri"),n.includes(p)||n.push(p);m=Zn(a,"AudioChannelConfiguration");m=hq(m)||b.ud;p=ho(a,"audioSamplingRate",no)||b.audioSamplingRate;f||(f=eq(g,h));var r=Yn(a,"SegmentBase"),v=Yn(a,"SegmentTemplate"),y=r?ho(r,"availabilityTimeOffset",oo)||0:0,x=v?ho(v,"availabilityTimeOffset",oo)||0:0;d=d&&d.length?ho(d[0],"availabilityTimeOffset",oo)||0:0;d=b.Zb+d+y+x;return{Na:Db(c,e),Uc:r||b.Uc,Db:Yn(a,"SegmentList")||b.Db,Vc:v||b.Vc,width:ho(a,"width",no)||b.width,height:ho(a,
666
666
  "height",no)||b.height,contentType:f,mimeType:g,codecs:h,frameRate:k,pixelAspectRatio:l,emsgSchemeIdUris:n,id:a.getAttribute("id"),ud:m,audioSamplingRate:p,Zb:d}}
667
667
  function hq(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("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=
668
668
  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 fq(a){var b=a.Uc?1:0;b+=a.Db?1:0;b+=a.Vc?1:0;if(0==b)return a.contentType==Ib||"application"==a.contentType?!0:!1;1!=b&&(a.Uc&&(a.Db=null),a.Vc=null);return!0}
669
- function iq(a,b,c,d){var e,f,g,h,k,l;return J(function(m){if(1==m.g)return e=Db(b,[c]),f=rf(e,a.g.retryParameters),f.method=d,g=a.h.networkingEngine.request(4,f),mf(a.A,g),z(m,g.promise,2);h=m.h;if("HEAD"==d){if(!h.headers||!h.headers.date)return m["return"](0);k=h.headers.date}else k=dd(h.data);l=Date.parse(k);return isNaN(l)?m["return"](0):m["return"](l-Date.now())})}
670
- function Yp(a,b,c){var d,e,f,g,h,k,l,m;return J(function(n){switch(n.g){case 1:d=c.map(function(p){return{scheme:p.getAttribute("schemeIdUri"),value:p.getAttribute("value")}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){n.D(4);break}h=g.value;F(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);
671
- 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 z(n,iq(a,b,l,"HEAD"),10);case 10:return n["return"](n.h);case 8:return z(n,iq(a,b,l,"GET"),11);case 11:return n["return"](n.h);
672
- case 9:va(n,3);break;case 5:I(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)}})}
669
+ function iq(a,b,c,d){var e,f,g,h,k,l;return I(function(m){if(1==m.g)return e=Db(b,[c]),f=rf(e,a.g.retryParameters),f.method=d,g=a.h.networkingEngine.request(4,f),mf(a.A,g),u(m,g.promise,2);h=m.h;if("HEAD"==d){if(!h.headers||!h.headers.date)return m["return"](0);k=h.headers.date}else k=dd(h.data);l=Date.parse(k);return isNaN(l)?m["return"](0):m["return"](l-Date.now())})}
670
+ function Yp(a,b,c){var d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:d=c.map(function(p){return{scheme:p.getAttribute("schemeIdUri"),value:p.getAttribute("value")}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){n.D(4);break}h=g.value;A(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);
671
+ 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 u(n,iq(a,b,l,"HEAD"),10);case 10:return n["return"](n.h);case 8:return u(n,iq(a,b,l,"GET"),11);case 11:return n["return"](n.h);
672
+ case 9:va(n,3);break;case 5:F(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)}})}
673
673
  function aq(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute("value")||"",h=ho(d,"timescale",no)||1;d=t(Zn(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=ho(k,"presentationTime",no)||0,m=ho(k,"duration",no)||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.getAttribute("id")||"",eventElement:k},a.h.onTimelineRegionAdded(k))}}
674
- function gq(a,b,c,d){var e,f,g,h,k;return J(function(l){if(1==l.g)return e=xf,f=vj(b,c,d,a.g.retryParameters),g=a.h.networkingEngine,h=g.request(e,f),mf(a.A,h),z(l,h.promise,2);k=l.h;return l["return"](k.data)})}function eq(a,b){return Cd(wd(a,b))?Ib:a.split("/")[0]}M("shaka.dash.DashParser",Rp);zg.mpd=function(){return new Rp};xg["application/dash+xml"]=function(){return new Rp};xg["video/vnd.mpeg.dash.mpd"]=function(){return new Rp};function jq(a,b,c,d){this.h=a;this.type=b;this.g=c;this.segments=d||null}function kq(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}kq.prototype.toString=function(){function a(d){return d.name+"="+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.g?this.g.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};
675
- kq.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function W(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function lq(a,b){var c=a.getAttribute(b);if(!c)throw new P(2,4,4023,b);return c.value}function mq(a,b,c){c=void 0===c?[]:c;this.g=b;this.i=a;this.h=c}function nq(a,b){this.name=a;this.value=b};function oq(a,b){return a.filter(function(c){return c.name==b})}function pq(a,b){return a.filter(function(c){return lq(c,"TYPE")==b})}function qq(a,b){var c=oq(a,b);return c.length?c[0]:null}function rq(a){var b=0;b=void 0===b?0:b;return(a=qq(a,"EXT-X-MEDIA-SEQUENCE"))?Number(a.value):b}function sq(a,b){return Db([a],[b])[0]};function tq(a){this.h=a;this.g=0}function uq(a){vq(a,/[ \t]+/gm)}function vq(a,b){b.lastIndex=a.g;var c=b.exec(a.h);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.g==a.h.length||null==c||c.position!=a.g)return null;a.g+=c.length;return c.results}function wq(a){return a.g==a.h.length?null:(a=vq(a,/[^ \t\n]*/gm))?a[0]:null};function xq(){this.g=0}
676
- function yq(a,b,c){b=dd(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(d[0]))throw new P(2,4,4015);b=0;for(var e=!0,f=t(d),g=f.next();!g.done;g=f.next())if(g=g.value,/^#(?!EXT)/m.test(g)||e)e=!1;else if(g=zq(a,g),--a.g,Aq.includes(g.name)){b=1;break}else"EXT-X-STREAM-INF"==g.name&&(e=!0);f=[];e=!0;for(g=0;g<d.length;g++){var h=d[g],k=d[g+1];if(/^#(?!EXT)/m.test(h)||e)e=!1;else{h=zq(a,h);if(Bq.includes(h.name)){if(1!=b)throw new P(2,4,4017);
677
- var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=t(l);for(var m=l.next();!m.done;m=l.next())m=m.value,/^(#EXT)/.test(m)?(m=zq(a,m),Aq.includes(m.name)?f.push(m):"EXT-X-MAP"==m.name?h=m:"EXT-X-PART"==m.name?k.push(m):"EXT-X-PRELOAD-HINT"==m.name?"PART"==W(m,"TYPE")?k.push(m):"MAP"==W(m,"TYPE")&&(m.name="EXT-X-MAP",h=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=sq(d,m.trim()),h&&g.push(h),e.push(new mq(m,g,k)),g=[],k=[]);k.length&&(h&&g.push(h),e.push(new mq("",g,k)));return new jq(c,b,f,e)}f.push(h);
678
- "EXT-X-STREAM-INF"==h.name&&(h.g.push(new nq("URI",k)),e=!0)}}return new jq(c,b,f)}function zq(a,b){var c=a.g++,d=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!d)throw new P(2,4,4016,b);var e=d[1],f=d[2];d=[];var g;if(f){f=new tq(f);var h;(h=vq(f,/^([^,=]+)(?:,|$)/g))&&(g=h[1]);for(var k=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;h=vq(f,k);)d.push(new nq(h[1],h[2]||h[3])),uq(f)}return new kq(c,e,d,g)}
679
- var Aq="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".split(" "),Bq="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Cq(){}function Dq(a){try{var b=Eq(a);return ef({uri:a,Cf:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return cf(c)}}function Eq(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new P(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new P(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=md(a):e=hd(a);return{data:e,contentType:c}}
680
- M("shaka.net.DataUriPlugin",Cq);Cq.parse=Dq;of("data",Dq);function Fq(){var a=this;this.h=this.j=null;this.za=1;this.A=new Map;this.C=new Map;this.va=new Set;this.g=new Map;this.i=null;this.K="";this.ua=new xq;this.ma=0;this.S=!1;this.N=null;this.F=new Q(function(){Gq(a)});this.m=Hq;this.I=null;this.ba=0;this.H=Infinity;this.$=this.ea=0;this.G=new lf;this.P=[];this.J=new Map;this.X=!1;this.B=new Map;this.aa=new Map;this.l=!1}q=Fq.prototype;q.configure=function(a){this.h=a};
681
- q.start=function(a,b){var c=this,d,e;return J(function(f){if(1==f.g)return c.j=b,c.l=b.isLowLatencyMode(),z(f,Iq(c,a),2);if(3!=f.g)return d=f.h,c.K=d.uri,z(f,Jq(c,d.data,a),3);e=c.ma;0<e&&c.F.T(e);return f["return"](c.I)})};q.stop=function(){this.F&&(this.F.stop(),this.F=null);var a=[];this.G&&(a.push(this.G.destroy()),this.G=null);this.h=this.j=null;this.va.clear();this.I=null;this.g.clear();this.C.clear();this.B.clear();this.A.clear();return Promise.all(a)};
682
- q.update=function(){var a=this,b,c,d;return J(function(e){if(1==e.g){if(a.m==Hq)return e["return"]();b=[];c=Array.from(a.g.values());return c.length?z(e,Kq(a,c[0]),2):e.D(2)}for(d=1;d<c.length;d++)b.push(Kq(a,c[d]));return z(e,Promise.all(b),0)})};
683
- function Kq(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,v;return J(function(y){if(1==y.g)return c=Lq,d=b.Uf,e=new lb(d),a.l&&b.Zf&&ob(e,new qb("_HLS_skip=YES")),z(y,Iq(a,e.toString()),2);f=y.h;g=yq(a.ua,f.data,f.uri);if(1!=g.type)throw new P(2,4,4017);h=oq(g.g,"EXT-X-DEFINE");k=Mq(a,h);l=b.stream;m=Nq(a,g,l.type,b.Nc,k);l.segmentIndex.jc(m,a.i.ob());m.length&&(n=rq(g.g),p=b.Nc.get(n),l.segmentIndex.Gb(p));r=m[m.length-1];if(v=qq(g.g,"EXT-X-ENDLIST"))Oq(a,c.Tf),a.i.bb(r.endTime);A(y)})}
684
- q.onExpirationUpdated=function(){};
674
+ function gq(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=xf,f=vj(b,c,d,a.g.retryParameters),g=a.h.networkingEngine,h=g.request(e,f),mf(a.A,h),u(l,h.promise,2);k=l.h;return l["return"](k.data)})}function eq(a,b){return Cd(wd(a,b))?Ib:a.split("/")[0]}J("shaka.dash.DashParser",Rp);zg.mpd=function(){return new Rp};xg["application/dash+xml"]=function(){return new Rp};xg["video/vnd.mpeg.dash.mpd"]=function(){return new Rp};function jq(a,b,c,d){this.h=a;this.type=b;this.g=c;this.segments=d||null}function kq(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}kq.prototype.toString=function(){function a(d){return d.name+"="+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.g?this.g.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};
675
+ kq.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function U(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function lq(a,b){var c=a.getAttribute(b);if(!c)throw new O(2,4,4023,b);return c.value}function mq(a,b,c){c=void 0===c?[]:c;this.g=b;this.i=a;this.h=c}function nq(a,b){this.name=a;this.value=b};function oq(a,b){return a.filter(function(c){return c.name==b})}function pq(a,b){return a.filter(function(c){return lq(c,"TYPE")==b})}function qq(a,b){var c=oq(a,b);return c.length?c[0]:null}function rq(a){var b=0;b=void 0===b?0:b;return(a=qq(a,"EXT-X-MEDIA-SEQUENCE"))?Number(a.value):b}function sq(a,b){return Db([a],[b])[0]};function tq(a){this.h=a;this.g=0}function uq(a){vq(a,/[ \t]+/gm)}function vq(a,b){b.lastIndex=a.g;var c=b.exec(a.h);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.g==a.h.length||null==c||c.position!=a.g)return null;a.g+=c.length;return c.results}function wq(a){return a.g==a.h.length?null:(a=vq(a,/[^ \t\n]*/gm))?a[0]:null};function xq(){this.g=0}
676
+ function yq(a,b,c){b=dd(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(d[0]))throw new O(2,4,4015);b=0;for(var e=!0,f=t(d),g=f.next();!g.done;g=f.next())if(g=g.value,/^#(?!EXT)/m.test(g)||e)e=!1;else if(g=zq(a,g),--a.g,Aq.includes(g.name)){b=1;break}else"EXT-X-STREAM-INF"==g.name&&(e=!0);f=[];e=!0;for(g=0;g<d.length;g++){var h=d[g],k=d[g+1];if(/^#(?!EXT)/m.test(h)||e)e=!1;else{h=zq(a,h);if(Bq.includes(h.name)){if(1!=b)throw new O(2,4,4017);
677
+ var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=t(l);for(var m=l.next();!m.done;m=l.next())m=m.value,/^(#EXT)/.test(m)?(m=zq(a,m),Aq.includes(m.name)?f.push(m):"EXT-X-MAP"==m.name?h=m:"EXT-X-PART"==m.name?k.push(m):"EXT-X-PRELOAD-HINT"==m.name?"PART"==U(m,"TYPE")?k.push(m):"MAP"==U(m,"TYPE")&&(m.name="EXT-X-MAP",h=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=sq(d,m.trim()),h&&g.push(h),e.push(new mq(m,g,k)),g=[],k=[]);k.length&&(h&&g.push(h),e.push(new mq("",g,k)));return new jq(c,b,f,e)}f.push(h);
678
+ "EXT-X-STREAM-INF"==h.name&&(h.g.push(new nq("URI",k)),e=!0)}}return new jq(c,b,f)}function zq(a,b){var c=a.g++,d=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!d)throw new O(2,4,4016,b);var e=d[1],f=d[2];d=[];var g;if(f){f=new tq(f);var h;(h=vq(f,/^([^,=]+)(?:,|$)/g))&&(g=h[1]);for(var k=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;h=vq(f,k);)d.push(new nq(h[1],h[2]||h[3])),uq(f)}return new kq(c,e,d,g)}
679
+ var Aq="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".split(" "),Bq="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Cq(){}function Dq(a){try{var b=Eq(a);return ef({uri:a,Cf:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return cf(c)}}function Eq(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new O(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new O(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=md(a):e=hd(a);return{data:e,contentType:c}}
680
+ J("shaka.net.DataUriPlugin",Cq);Cq.parse=Dq;of("data",Dq);function Fq(){var a=this;this.h=this.j=null;this.ya=1;this.A=new Map;this.C=new Map;this.ma=new Set;this.g=new Map;this.i=null;this.K="";this.$=new xq;this.ea=0;this.S=!1;this.N=null;this.F=new P(function(){Gq(a)});this.m=Hq;this.I=null;this.aa=0;this.H=Infinity;this.X=this.ba=0;this.G=new lf;this.P=[];this.J=new Map;this.B=new Map;this.ua=new Map;this.l=!1}q=Fq.prototype;q.configure=function(a){this.h=a};
681
+ q.start=function(a,b){var c=this,d,e;return I(function(f){if(1==f.g)return c.j=b,c.l=b.isLowLatencyMode(),u(f,Iq(c,a),2);if(3!=f.g)return d=f.h,c.K=d.uri,u(f,Jq(c,d.data,a),3);e=c.ea;0<e&&c.F.T(e);return f["return"](c.I)})};q.stop=function(){this.F&&(this.F.stop(),this.F=null);var a=[];this.G&&(a.push(this.G.destroy()),this.G=null);this.h=this.j=null;this.ma.clear();this.I=null;this.g.clear();this.C.clear();this.B.clear();this.A.clear();return Promise.all(a)};
682
+ q.update=function(){var a=this,b,c,d;return I(function(e){if(1==e.g){if(a.m==Hq)return e["return"]();b=[];c=Array.from(a.g.values());return c.length?u(e,Kq(a,c[0]),2):e.D(2)}for(d=1;d<c.length;d++)b.push(Kq(a,c[d]));return u(e,Promise.all(b),0)})};
683
+ function Kq(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,v;return I(function(y){if(1==y.g)return c=Lq,d=b.Uf,e=new lb(d),a.l&&b.Zf&&ob(e,new qb("_HLS_skip=YES")),u(y,Iq(a,e.toString()),2);f=y.h;g=yq(a.$,f.data,f.uri);if(1!=g.type)throw new O(2,4,4017);h=oq(g.g,"EXT-X-DEFINE");k=Mq(a,h);l=b.stream;m=Nq(a,g,l.type,b.Nc,k);l.segmentIndex.jc(m,a.i.ob());m.length&&(n=rq(g.g),p=b.Nc.get(n),l.segmentIndex.Gb(p));r=m[m.length-1];if(v=qq(g.g,"EXT-X-ENDLIST"))Oq(a,c.Tf),a.i.bb(r.endTime);z(y)})}q.onExpirationUpdated=function(){};
685
684
  function Pq(a){if(!a.S){for(var b=-1,c=new Map,d=t(a.g.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex;if(f&&(f=f.M[0]||null))for(var g=t(e.Nc),h=g.next();!h.done;h=g.next()){h=t(h.value);var k=h.next().value;if(h.next().value==f.startTime){c.set(e,k);b=Math.max(b,k);break}}}if(!(0>b)){a.N=b;b=t(a.g.values());for(e=b.next();!e.done;e=b.next())if(d=e.value,e=d.stream.segmentIndex)f=a.N-c.get(d),e.M.splice(0,f),(e=e.M[0]||null)&&Qq(d,-e.startTime);a.S=!0}}}
686
685
  function Rq(a){if(!a.S){for(var b=Infinity,c=t(a.g.values()),d=c.next();!d.done;d=c.next())if(d=d.value.stream.segmentIndex)d=d.M[0]||null,null!=d&&null!=d.g&&(b=Math.min(b,d.g));if(Infinity!=b){c=t(a.g.values());for(d=c.next();!d.done;d=c.next()){d=d.value;var e=d.stream.segmentIndex;null!=e&&(e=e.M[0]||null,null==e.g?Ta("Missing EXT-X-PROGRAM-DATE-TIME for stream",d.Hd,"Expect AV sync issues!"):Qq(d,e.g-b-e.startTime))}a.S=!0}}}
687
686
  function Qq(a,b){a.stream.segmentIndex.offset(b);a.ke+=b;for(var c=t(a.Nc),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;a.Nc.set(d,e+b)}}
688
- function Jq(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,v,y,x,w,D,B,C,G,E,H,L,K,N,V,aa,ha,ka,xa,Na,Ga,Sa,Ia,uc,Uc,Hd,Id,rb,Jd,vc,Ge;return J(function($a){switch($a.g){case 1:d=yq(a.ua,b,a.K);e=oq(d.g,"EXT-X-DEFINE");Sq(a,e);f=[];g=[];h=[];if(1==d.type)return G=a.h.hls.mediaPlaylistFullMimeType,E=G.split(";")[0],H=E.split("/")[0],L=Ad(G),K=new Map,z($a,Tq(a,d,c,c,L,H,"",!0,"Media Playlist",null,K,null,!1,!1,E),8);k=oq(d.g,"EXT-X-MEDIA");l=oq(d.g,"EXT-X-STREAM-INF");m=oq(d.g,"EXT-X-IMAGE-STREAM-INF");Uq(a,l);
689
- n=oq(d.g,"EXT-X-SESSION-DATA");p=t(n);for(r=p.next();!r.done;r=p.next())if(v=r.value,y=W(v,"DATA-ID"),x=W(v,"URI"),w=W(v,"LANGUAGE"),D=W(v,"VALUE"),B=(new Map).set("id",y),x&&B.set("uri",sq(a.K,x)),w&&B.set("language",w),D&&B.set("value",D),C=new O("sessiondata",B),a.j)a.j.onEvent(C);return z($a,Vq(a,k),4);case 4:return Wq(a,k),z($a,Xq(a,l),5);case 5:return f=$a.h,z($a,Yq(a,k),6);case 6:return g=$a.h,z($a,Zq(a,m),7);case 7:h=$a.h;$a.D(3);break;case 8:N=$a.h,a.g.set(c,N),f.push({id:0,language:"und",
690
- disabledUntilTime:0,primary:!0,audio:"audio"==H?N.stream:null,video:"video"==H?N.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.j)throw new P(2,7,7001);a.h.hls.ignoreManifestProgramDateTime?Pq(a):Rq(a);if(a.X&&0==f.length)throw new P(2,4,4034);V=Infinity;aa=t(a.g.values());for(ha=aa.next();!ha.done;ha=aa.next())ka=ha.value,"text"!=ka.stream.type&&(V=Math.min(V,ka.ke));a.m!=Hq?(a.i=new R(0,a.h.defaultPresentationDelay?a.h.defaultPresentationDelay:
691
- a.$?a.$:3*a.ba),a.i.Wc(!1)):(a.i=new R(null,0),a.i.Wc(!0));if(a.m!=Hq)a.ma=a.H,xa=Lq,a.m==xa.Ze&&(Na=a.i.Bd,isNaN(a.h.availabilityWindowOverride)||(Na=a.h.availabilityWindowOverride),a.i.Je(Na));else for(a.i.bb(V),Ga=t(a.g.values()),ha=Ga.next();!ha.done;ha=Ga.next())Sa=ha.value,Sa.stream.segmentIndex.yb(0,V);a.P=[];Ia=[];uc=t(f);for(Uc=uc.next();!Uc.done;Uc=uc.next())for(Hd=Uc.value,Id=t([Hd.video,Hd.audio]),rb=Id.next();!rb.done;rb=Id.next())(Jd=rb.value)&&Ia.push(Jd);return z($a,Promise.all(Ia.map(function(kg){return J(function(lg){return z(lg,
692
- kg.createSegmentIndex(),0)})})),9);case 9:vc=t(Ia);for(rb=vc.next();!rb.done;rb=vc.next())Ge=rb.value,a.P.push(Ge.segmentIndex.M);$q(a);a.i.je();a.I={presentationTimeline:a.i,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.j.makeTextStreamsForClosedCaptions(a.I);A($a)}})}function Sq(a,b){for(var c=t(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=W(e,"NAME");e=W(e,"VALUE");d&&e&&(a.A.has(d)||a.A.set(d,e))}}
693
- function Mq(a,b){for(var c=new Map,d=t(b),e=d.next();!e.done;e=d.next()){var f=e.value;e=W(f,"NAME");var g=W(f,"VALUE");f=W(f,"IMPORT");e&&g&&c.set(e,g);f&&(e=a.A.get(f))&&c.set(f,e)}return c}function Uq(a,b){for(var c=t(b),d=c.next();!d.done;d=c.next()){var e=d.value,f=W(e,"AUDIO");d=W(e,"VIDEO");var g=W(e,"SUBTITLES");e=ar(a,e);if(g){var h=Gb(Ib,e);a.B.set(g,h);dc(e,h)}f&&(g=Fb("audio",e),a.B.set(f,g));d&&(f=Fb("video",e),a.B.set(d,f))}}
694
- function Yq(a,b){var c,d,e,f,g,h,k,l,m,n,p,r;return J(function(v){if(1==v.g)return c=pq(b,"SUBTITLES"),d=c.map(function(y){var x,w,D;return J(function(B){if(1==B.g){if(x=a.h.disableText)return B["return"](null);F(B,2);return z(B,br(a,y),4)}if(2!=B.g)return w=B.h,B["return"](w.stream);D=I(B);if(a.h.hls.ignoreTextStreamFailures)return B["return"](null);throw D;})}),z(v,Promise.all(d),2);e=v.h;f=t(c);for(g=f.next();!g.done;g=f.next())if(h=g.value,k=lq(h,"GROUP-ID"),l=a.B.get(k))if(m=a.C.get(k))for(n=
687
+ function Jq(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,v,y,x,w,D,B,C,G,E,H,L,K,N,V,Z,ea,ka,Aa,Ha,Ia,Na,Oa,Tc,ec,Hd,Id,Bb,Jd,Uc,Vc;return I(function($a){switch($a.g){case 1:d=yq(a.$,b,a.K);e=oq(d.g,"EXT-X-DEFINE");Sq(a,e);f=[];g=[];h=[];if(1==d.type)return G=a.h.hls.mediaPlaylistFullMimeType,E=G.split(";")[0],H=E.split("/")[0],L=Ad(G),K=new Map,u($a,Tq(a,d,c,c,L,H,"",!0,"Media Playlist",null,K,null,!1,!1,E),8);k=oq(d.g,"EXT-X-MEDIA");l=oq(d.g,"EXT-X-STREAM-INF");m=oq(d.g,"EXT-X-IMAGE-STREAM-INF");Uq(a,l);n=
688
+ oq(d.g,"EXT-X-SESSION-DATA");p=t(n);for(r=p.next();!r.done;r=p.next())if(v=r.value,y=U(v,"DATA-ID"),x=U(v,"URI"),w=U(v,"LANGUAGE"),D=U(v,"VALUE"),B=(new Map).set("id",y),x&&B.set("uri",sq(a.K,x)),w&&B.set("language",w),D&&B.set("value",D),C=new M("sessiondata",B),a.j)a.j.onEvent(C);return u($a,Vq(a,k),4);case 4:return Wq(a,k),u($a,Xq(a,l),5);case 5:return f=$a.h,u($a,Yq(a,k),6);case 6:return g=$a.h,u($a,Zq(a,m),7);case 7:h=$a.h;$a.D(3);break;case 8:N=$a.h,a.g.set(c,N),f.push({id:0,language:"und",
689
+ disabledUntilTime:0,primary:!0,audio:"audio"==H?N.stream:null,video:"video"==H?N.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.j)throw new O(2,7,7001);a.h.hls.ignoreManifestProgramDateTime?Pq(a):Rq(a);V=Infinity;Z=t(a.g.values());for(ea=Z.next();!ea.done;ea=Z.next())ka=ea.value,"text"!=ka.stream.type&&(V=Math.min(V,ka.ke));a.m!=Hq?(a.i=new Q(0,a.h.defaultPresentationDelay?a.h.defaultPresentationDelay:a.X?a.X:3*a.aa),a.i.Wc(!1)):(a.i=new Q(null,
690
+ 0),a.i.Wc(!0));if(a.m!=Hq)a.ea=a.H,Aa=Lq,a.m==Aa.Ze&&(Ha=a.i.Bd,isNaN(a.h.availabilityWindowOverride)||(Ha=a.h.availabilityWindowOverride),a.i.Je(Ha));else for(a.i.bb(V),Ia=t(a.g.values()),ea=Ia.next();!ea.done;ea=Ia.next())Na=ea.value,Na.stream.segmentIndex.yb(0,V);a.P=[];Oa=[];Tc=t(f);for(ec=Tc.next();!ec.done;ec=Tc.next())for(Hd=ec.value,Id=t([Hd.video,Hd.audio]),Bb=Id.next();!Bb.done;Bb=Id.next())(Jd=Bb.value)&&Oa.push(Jd);return u($a,Promise.all(Oa.map(function(kg){return I(function(lg){return u(lg,
691
+ kg.createSegmentIndex(),0)})})),9);case 9:Uc=t(Oa);for(Bb=Uc.next();!Bb.done;Bb=Uc.next())Vc=Bb.value,a.P.push(Vc.segmentIndex.M);$q(a);a.i.je();a.I={presentationTimeline:a.i,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.j.makeTextStreamsForClosedCaptions(a.I);z($a)}})}function Sq(a,b){for(var c=t(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=U(e,"NAME");e=U(e,"VALUE");d&&e&&(a.A.has(d)||a.A.set(d,e))}}
692
+ function Mq(a,b){for(var c=new Map,d=t(b),e=d.next();!e.done;e=d.next()){var f=e.value;e=U(f,"NAME");var g=U(f,"VALUE");f=U(f,"IMPORT");e&&g&&c.set(e,g);f&&(e=a.A.get(f))&&c.set(f,e)}return c}function Uq(a,b){for(var c=t(b),d=c.next();!d.done;d=c.next()){var e=d.value,f=U(e,"AUDIO");d=U(e,"VIDEO");var g=U(e,"SUBTITLES");e=ar(a,e);if(g){var h=Gb(Ib,e);a.B.set(g,h);dc(e,h)}f&&(g=Fb("audio",e),a.B.set(f,g));d&&(f=Fb("video",e),a.B.set(d,f))}}
693
+ function Yq(a,b){var c,d,e,f,g,h,k,l,m,n,p,r;return I(function(v){if(1==v.g)return c=pq(b,"SUBTITLES"),d=c.map(function(y){var x,w,D;return I(function(B){if(1==B.g){if(x=a.h.disableText)return B["return"](null);A(B,2);return u(B,br(a,y),4)}if(2!=B.g)return w=B.h,B["return"](w.stream);D=F(B);if(a.h.hls.ignoreTextStreamFailures)return B["return"](null);throw D;})}),u(v,Promise.all(d),2);e=v.h;f=t(c);for(g=f.next();!g.done;g=f.next())if(h=g.value,k=lq(h,"GROUP-ID"),l=a.B.get(k))if(m=a.C.get(k))for(n=
695
694
  t(m),p=n.next();!p.done;p=n.next())r=p.value,r.stream.codecs=l;return v["return"](e.filter(function(y){return y}))})}
696
- function Zq(a,b){var c,d;return J(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return J(function(l){if(1==l.g){if(g=a.h.disableThumbnails)return l["return"](null);F(l,2);return z(l,cr(a,f),4)}if(2!=l.g)return h=l.h,l["return"](h.stream);k=I(l);if(a.h.hls.ignoreImageStreamFailures)return l["return"](null);throw k;})}),z(e,Promise.all(c),2);d=e.h;return e["return"](d.filter(function(f){return f}))})}
697
- function Vq(a,b){var c;return J(function(d){b=b.filter(function(e){var f=W(e,"URI")||"";return"SUBTITLES"!=W(e,"TYPE")&&""!=f});c=b.map(function(e){return br(a,e)});return z(d,Promise.all(c),0)})}
698
- function Xq(a,b){var c,d,e;return J(function(f){if(1==f.g)return c=b.map(function(g){var h,k,l,m,n,p,r,v;return J(function(y){if(1==y.g)return h=W(g,"FRAME-RATE"),k=Number(W(g,"AVERAGE-BANDWIDTH"))||Number(lq(g,"BANDWIDTH")),l=W(g,"RESOLUTION"),m=t(l?l.split("x"):[null,null]),n=m.next().value,p=m.next().value,r=W(g,"VIDEO-RANGE"),z(y,dr(a,g),2);if(v=y.h){for(var x=y["return"],w=v.audio,D=v.video,B=t(D),C=B.next();!C.done;C=B.next())if(C=C.value.stream)C.width=Number(n)||void 0,C.height=Number(p)||
699
- void 0,C.frameRate=Number(h)||void 0,C.hdr=r||void 0;B=a.h.disableAudio;if(!w.length||B)w=[null];B=a.h.disableVideo;if(!D.length||B)D=[null];B=[];w=t(w);for(C=w.next();!C.done;C=w.next()){C=C.value;for(var G=t(D),E=G.next();!E.done;E=G.next()){var H=E.value;E=C?C.stream:null;var L=H?H.stream:null,K=C?C.stream.drmInfos:null,N=H?H.stream.drmInfos:null;H=(H?H.Hd:"")+" - "+(C?C.Hd:"");E&&L&&K.length&&N.length&&!(0<tg(K,N).length)||a.va.has(H)||(E={id:a.za++,language:E?E.language:"und",primary:!!E&&E.primary||
700
- !!L&&L.primary,audio:E,video:L,bandwidth:k,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},B.push(E),a.va.add(H))}}y=x.call(y,B)}else y=y["return"]([]);return y})}),z(f,Promise.all(c),2);d=f.h;e=d.reduce(Ab,[]);e=e.filter(function(g){return null!=g});return f["return"](e)})}
701
- function dr(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,v,y;return J(function(x){if(1==x.g)return c=Jb,d=ar(a,b),e=W(b,"AUDIO"),f=W(b,"VIDEO"),h=(g=e||f)&&a.C.has(g)?a.C.get(g):[],k={audio:e?h:[],video:f?h:[]},m=!1,n=lq(b,"URI"),p=k.audio.find(function(w){return w&&w.Hd==n}),r=Gb(c.Ma,d),(v=Gb(c.Fb,d))&&!r?l=c.Fb:!h.length&&v&&r?(l=c.Ma,d=[[r,v].join()]):k.audio.length&&p?(l=c.Fb,m=!0):l=k.video.length?c.Fb:c.Ma,m?x.D(2):z(x,er(a,b,d,l),3);2!=x.g&&(y=x.h);if(y)k[y.stream.type]=[y];else if(null===y)return x["return"](null);
702
- fr(k);return x["return"](k)})}function ar(a,b){var c=[];a.h.disableVideo||c.push(a.h.hls.defaultVideoCodec);a.h.disableAudio||c.push(a.h.hls.defaultAudioCodec);var d=W(b,"CODECS",c.join(",")).split(/\s*,\s*/);c=new Set;var e=[];d=t(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=zd(f)[0];c.has(g)||(e.push(f),c.add(g))}return e}function gr(a){a=W(a,"LANGUAGE")||"und";return Mb(a)}
695
+ function Zq(a,b){var c,d;return I(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return I(function(l){if(1==l.g){if(g=a.h.disableThumbnails)return l["return"](null);A(l,2);return u(l,cr(a,f),4)}if(2!=l.g)return h=l.h,l["return"](h.stream);k=F(l);if(a.h.hls.ignoreImageStreamFailures)return l["return"](null);throw k;})}),u(e,Promise.all(c),2);d=e.h;return e["return"](d.filter(function(f){return f}))})}
696
+ function Vq(a,b){var c;return I(function(d){b=b.filter(function(e){var f=U(e,"URI")||"";return"SUBTITLES"!=U(e,"TYPE")&&""!=f});c=b.map(function(e){return br(a,e)});return u(d,Promise.all(c),0)})}
697
+ function Xq(a,b){var c,d,e;return I(function(f){if(1==f.g)return c=b.map(function(g){var h,k,l,m,n,p,r,v;return I(function(y){if(1==y.g)return h=U(g,"FRAME-RATE"),k=Number(U(g,"AVERAGE-BANDWIDTH"))||Number(lq(g,"BANDWIDTH")),l=U(g,"RESOLUTION"),m=t(l?l.split("x"):[null,null]),n=m.next().value,p=m.next().value,r=U(g,"VIDEO-RANGE"),u(y,dr(a,g),2);v=y.h;for(var x=y["return"],w=v.audio,D=v.video,B=t(D),C=B.next();!C.done;C=B.next())if(C=C.value.stream)C.width=Number(n)||void 0,C.height=Number(p)||void 0,
698
+ C.frameRate=Number(h)||void 0,C.hdr=r||void 0;B=a.h.disableAudio;if(!w.length||B)w=[null];B=a.h.disableVideo;if(!D.length||B)D=[null];B=[];w=t(w);for(C=w.next();!C.done;C=w.next()){C=C.value;for(var G=t(D),E=G.next();!E.done;E=G.next()){var H=E.value;E=C?C.stream:null;var L=H?H.stream:null,K=C?C.stream.drmInfos:null,N=H?H.stream.drmInfos:null;H=(H?H.Hd:"")+" - "+(C?C.Hd:"");E&&L&&K.length&&N.length&&!(0<tg(K,N).length)||a.ma.has(H)||(E={id:a.ya++,language:E?E.language:"und",primary:!!E&&E.primary||
699
+ !!L&&L.primary,audio:E,video:L,bandwidth:k,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},B.push(E),a.ma.add(H))}}return x.call(y,B)})}),u(f,Promise.all(c),2);d=f.h;e=d.reduce(zb,[]);e=e.filter(function(g){return null!=g});return f["return"](e)})}
700
+ function dr(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,v,y;return I(function(x){if(1==x.g)return c=Jb,d=ar(a,b),e=U(b,"AUDIO"),f=U(b,"VIDEO"),h=(g=e||f)&&a.C.has(g)?a.C.get(g):[],k={audio:e?h:[],video:f?h:[]},m=!1,n=lq(b,"URI"),p=k.audio.find(function(w){return w&&w.Hd==n}),r=Gb(c.Ma,d),(v=Gb(c.Fb,d))&&!r?l=c.Fb:!h.length&&v&&r?(l=c.Ma,d=[[r,v].join()]):k.audio.length&&p?(l=c.Fb,m=!0):l=k.video.length?c.Fb:c.Ma,m?x.D(2):u(x,er(a,b,d,l),3);2!=x.g&&(y=x.h,k[y.stream.type]=[y]);fr(k);return x["return"](k)})}
701
+ function ar(a,b){var c=[];a.h.disableVideo||c.push(a.h.hls.defaultVideoCodec);a.h.disableAudio||c.push(a.h.hls.defaultAudioCodec);var d=U(b,"CODECS",c.join(",")).split(/\s*,\s*/);c=new Set;var e=[];d=t(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=zd(f)[0];c.has(g)||(e.push(f),c.add(g))}return e}function gr(a){a=U(a,"LANGUAGE")||"und";return Mb(a)}
703
702
  function fr(a){a=t(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next())if(b=b.value){var c=b.stream.codecs.split(",");c=c.filter(function(d){return"mp4a.40.34"!=d});b.stream.codecs=c.join(",")}}function Wq(a,b){var c=pq(b,"CLOSED-CAPTIONS");c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=gr(e);var f=lq(e,"GROUP-ID");e=lq(e,"INSTREAM-ID");a.J.get(f)||a.J.set(f,new Map);a.J.get(f).set(e,d)}}
704
- function br(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,v,y;return J(function(x){if(1==x.g){c=lq(b,"GROUP-ID");d="";var w=lq(b,"TYPE").toLowerCase();"subtitles"==w&&(w=Ib);e=w;e!=Ib&&c&&a.B.has(c)&&(d=a.B.get(c));f=hr(lq(b,"URI"),a.A);if(a.g.has(f))return x["return"](a.g.get(f));g=gr(b);h=W(b,"NAME");k=W(b,"DEFAULT");l="YES"==k;"audio"==e?w=(w=W(b,"CHANNELS"))?parseInt(w.split("/")[0],10):null:w=null;m=w;"audio"==e?w=(w=W(b,"CHANNELS"))?w.includes("/JOC"):!1:w=!1;n=w;p=W(b,"CHARACTERISTICS");r=W(b,"FORCED");
705
- v="YES"==r;return z(x,ir(a,f,d,e,g,l,h,m,null,p,v,n),2)}y=x.h;a.C.has(c)?a.C.get(c).push(y):a.C.set(c,[y]);if(null==y)return x["return"](null);if(a.g.has(f))return x["return"](a.g.get(f));a.g.set(f,y);return x["return"](y)})}
706
- function cr(a,b){var c,d,e,f,g,h,k,l,m,n;return J(function(p){if(1==p.g){c=hr(lq(b,"URI"),a.A);d=W(b,"CODECS","jpeg")||"";if(a.g.has(c))return p["return"](a.g.get(c));e=gr(b);f=W(b,"NAME");g=W(b,"CHARACTERISTICS");return z(p,ir(a,c,d,"image",e,!1,f,null,null,g,!1,!1),2)}h=p.h;if(null==h)return p["return"](null);if(a.g.has(c))return p["return"](a.g.get(c));if(k=W(b,"RESOLUTION"))if(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=
707
- Number(k.split("x")[1])*Number(m.split("x")[1]);if(n=W(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.g.set(c,h);return p["return"](h)})}
708
- function er(a,b,c,d){var e,f,g,h;return J(function(k){if(1==k.g){e=hr(lq(b,"URI"),a.A);if(a.g.has(e))return k["return"](a.g.get(e));var l=W(b,"CLOSED-CAPTIONS");f="video"==d&&l&&"NONE"!=l?a.J.get(l):null;g=Fb(d,c);return z(k,ir(a,e,g,d,"und",!1,null,null,f,null,!1,!1),2)}h=k.h;if(null==h)return k["return"](null);if(a.g.has(e))return k["return"](a.g.get(e));a.g.set(e,h);return k["return"](h)})}
709
- function ir(a,b,c,d,e,f,g,h,k,l,m,n){var p,r,v;return J(function(y){if(1==y.g)return p=sq(a.K,b),z(y,Iq(a,p),2);r=y.h;p=r.uri;v=yq(a.ua,r.data,p);return y["return"](Tq(a,v,b,p,c,d,e,f,g,h,k,l,m,n))})}
710
- function Tq(a,b,c,d,e,f,g,h,k,l,m,n,p,r,v){var y,x,w,D,B,C,G,E,H,L,K,N,V,aa,ha,ka,xa,Na,Ga,Sa,Ia,uc,Uc,Hd,Id,rb,Jd,vc,Ge,$a,kg,lg;return J(function(Vc){if(1==Vc.g){if(1!=b.type)throw new P(2,4,4017);y=oq(b.g,"EXT-X-DEFINE");x=Mq(a,y);jr(a,b);return v?Vc.D(2):z(Vc,kr(a,f,e,b,x),3)}2!=Vc.g&&(v=Vc.h);w=[];if(b.segments)for(D=t(b.segments),B=D.next();!B.done;B=D.next())C=B.value,G=oq(C.g,"EXT-X-KEY"),w.push.apply(w,ja(G));E=!1;H=[];L=new Set;K=t(w);for(N=K.next();!N.done;N=K.next())if(V=N.value,aa=lq(V,
711
- "METHOD"),"NONE"!=aa)if(E=!0,"AES-128"==aa)a.X=!0;else if(ha=lq(V,"KEYFORMAT"),xa=(ka=lr[ha])?ka(V,v):null){if(xa.keyIds)for(Na=t(xa.keyIds),Ga=Na.next();!Ga.done;Ga=Na.next())Sa=Ga.value,L.add(Sa);H.push(xa)}if(E&&!H.length&&!a.X)throw new P(2,4,4026);Hi.includes(v)&&(e="");Ia=new Map;try{uc=Nq(a,b,f,Ia,x)}catch(Xo){if(4035==Xo.code)return Ua("Skipping unsupported HLS stream",v,c),Vc["return"](null);throw Xo;}Uc=uc[uc.length-1].endTime;Hd=new dj(uc);Id=f==Ib?"subtitle":void 0;rb=[];if(n)for(Jd=t(n.split(",")),
712
- vc=Jd.next();!vc.done;vc=Jd.next())Ge=vc.value,rb.push(Ge);kg=($a=qq(b.g,"EXT-X-SERVER-CONTROL"))?null!=$a.getAttribute("CAN-SKIP-UNTIL"):!1;lg={id:a.za++,originalId:k,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Hd,mimeType:v,codecs:e,kind:Id,encrypted:E,drmInfos:H,keyIds:L,language:g,label:k,type:f,primary:h,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:rb,forced:p,channelsCount:l,audioSamplingRate:null,
713
- spatialAudio:r,closedCaptions:m,hdr:void 0,tilesLayout:void 0};return Vc["return"]({stream:lg,Hd:c,Uf:d,ke:Uc,Nc:Ia,Zf:kg})})}
714
- function mr(a,b,c){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new P(2,4,4042);var d=0,e=W(b,"IV","");if(e){var f=nd(e.substr(2));if(16!=f.byteLength)throw new P(2,4,4043);}else d=rq(c.g);b=sq(c.h,lq(b,"URI"));var g=rf([b],a.h.retryParameters),h={method:"AES-128",iv:f,firstMediaSequenceNumber:d,fetchKey:function(){var k,l;return J(function(m){if(1==m.g)return z(m,nr(a,g,6),2);if(3!=m.g){k=
715
- m.h;if(!k.data||16!=k.data.byteLength)throw new P(2,4,4044);l=h;return z(m,window.crypto.subtle.importKey("raw",k.data,"AES-CBC",!0,["decrypt"]),3)}l.cryptoKey=m.h;h.fetchKey=void 0;A(m)})}};return h}
716
- function jr(a,b){var c=qq(b.g,"EXT-X-PLAYLIST-TYPE"),d=qq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)Oq(a,Hq);else{c?Oq(a,or):Oq(a,pr);d=qq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new P(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=qq(b.g,"EXT-X-PART-INF");a.l&&c?(a.ea=Number(lq(c,"PART-TARGET")),a.H=Math.min(a.ea,a.H),c=qq(b.g,"EXT-X-SERVER-CONTROL"),a.$=c?Number(lq(c,"PART-HOLD-BACK")):0):a.H=Math.min(d,a.H);a.ba=Math.max(d,a.ba)}}
717
- function qr(a,b,c,d){c=qq(c,"EXT-X-MAP");if(!c)return null;var e=lq(c,"URI");d=hr(sq(b,e),d);b=[d,W(c,"BYTERANGE","")].join("-");a.aa.has(b)||(c=rr(d,c),a.aa.set(b,c));return a.aa.get(b)}function rr(a,b){var c=0,d=null,e=W(b,"BYTERANGE");e&&(c=e.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1);return new $h(function(){return[a]},c,d)}
718
- function sr(a,b,c,d,e,f,g,h,k){var l=d.g,m=hr(d.i,f),n=qq(l,"EXTINF"),p=f=0,r=null;d.h.length&&!a.l&&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 v=null;if(!a.h.hls.ignoreManifestProgramDateTime){var y=qq(l,"EXT-X-PROGRAM-DATE-TIME");y&&y.value&&(v=io(y.value))}y=ci;qq(l,"EXT-X-GAP")&&(y=2);if(!n){if(0==d.h.length)throw new P(2,4,4024,"EXTINF");
719
- if(!a.l)return null}var x=[];if(a.l)for(var w={},D=0;D<d.h.length;w={Qd:w.Qd},D++){var B=d.h[D],C=0==D?c:x[x.length-1],G=0==D?e:C.endTime,E=Number(W(B,"DURATION"))||a.ea;if(E){E=G+E;var H=0,L=null;"EXT-X-PRELOAD-HINT"==B.name?H=(H=W(B,"BYTERANGE-START"))?Number(H):0:(H=W(B,"BYTERANGE"),L=t(tr(C,H)),H=L.next().value,L=L.next().value);if(C=W(B,"URI"))w.Qd=sq(g,C),C=ci,"YES"==W(B,"GAP")&&(C=2),x.push(new bi(G,E,function(K){return function(){return[K.Qd]}}(w),H,L,b,0,0,Infinity,[],"",null,null,C))}}n?
720
- f=e+Number(n.value.split(",")[0]):f=x[x.length-1].endTime;(a=qq(l,"EXT-X-BYTERANGE"))?(r=t(tr(c,a.value)),p=r.next().value,r=r.next().value):x.length&&(p=x[0].Ta,r=x[x.length-1].Ca);c="";a=null;"image"==h&&(c="1x1",h=qq(l,"EXT-X-TILES"))&&(c=lq(h,"LAYOUT"),(h=W(h,"DURATION"))&&(a=Number(h)));return new bi(e,f,function(){return m.length?[m]:[]},p,r,b,0,0,Infinity,x,c,a,v,y,k)}function tr(a,b){var c=0,d=null;b&&(c=b.split("@"),d=Number(c[0]),c=c[1]?Number(c[1]):a.Ca+1,d=c+d-1);return[c,d]}
703
+ function br(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,v,y;return I(function(x){if(1==x.g){c=lq(b,"GROUP-ID");d="";var w=lq(b,"TYPE").toLowerCase();"subtitles"==w&&(w=Ib);e=w;e!=Ib&&c&&a.B.has(c)&&(d=a.B.get(c));f=hr(lq(b,"URI"),a.A);if(a.g.has(f))return x["return"](a.g.get(f));g=gr(b);h=U(b,"NAME");k=U(b,"DEFAULT");l="YES"==k;"audio"==e?w=(w=U(b,"CHANNELS"))?parseInt(w.split("/")[0],10):null:w=null;m=w;"audio"==e?w=(w=U(b,"CHANNELS"))?w.includes("/JOC"):!1:w=!1;n=w;p=U(b,"CHARACTERISTICS");r=U(b,"FORCED");
704
+ v="YES"==r;return u(x,ir(a,f,d,e,g,l,h,m,null,p,v,n),2)}y=x.h;a.C.has(c)?a.C.get(c).push(y):a.C.set(c,[y]);if(a.g.has(f))return x["return"](a.g.get(f));a.g.set(f,y);return x["return"](y)})}
705
+ function cr(a,b){var c,d,e,f,g,h,k,l,m,n;return I(function(p){if(1==p.g){c=hr(lq(b,"URI"),a.A);d=U(b,"CODECS","jpeg")||"";if(a.g.has(c))return p["return"](a.g.get(c));e=gr(b);f=U(b,"NAME");g=U(b,"CHARACTERISTICS");return u(p,ir(a,c,d,"image",e,!1,f,null,null,g,!1,!1),2)}h=p.h;if(a.g.has(c))return p["return"](a.g.get(c));if(k=U(b,"RESOLUTION"))if(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])*Number(m.split("x")[1]);
706
+ if(n=U(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.g.set(c,h);return p["return"](h)})}function er(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g){e=hr(lq(b,"URI"),a.A);if(a.g.has(e))return k["return"](a.g.get(e));var l=U(b,"CLOSED-CAPTIONS");f="video"==d&&l&&"NONE"!=l?a.J.get(l):null;g=Fb(d,c);return u(k,ir(a,e,g,d,"und",!1,null,null,f,null,!1,!1),2)}h=k.h;if(a.g.has(e))return k["return"](a.g.get(e));a.g.set(e,h);return k["return"](h)})}
707
+ function ir(a,b,c,d,e,f,g,h,k,l,m,n){var p,r,v;return I(function(y){if(1==y.g)return p=sq(a.K,b),u(y,Iq(a,p),2);r=y.h;p=r.uri;v=yq(a.$,r.data,p);return y["return"](Tq(a,v,b,p,c,d,e,f,g,h,k,l,m,n))})}
708
+ function Tq(a,b,c,d,e,f,g,h,k,l,m,n,p,r,v){var y,x,w,D,B,C,G,E,H,L,K,N,V,Z,ea,ka,Aa,Ha,Ia,Na,Oa,Tc,ec,Hd,Id,Bb,Jd,Uc,Vc,$a,kg,lg,Xo;return I(function(Ld){if(1==Ld.g){if(1!=b.type)throw new O(2,4,4017);y=oq(b.g,"EXT-X-DEFINE");x=Mq(a,y);jr(a,b);return v?Ld.D(2):u(Ld,kr(a,f,e,b,x),3)}2!=Ld.g&&(v=Ld.h);w=[];if(b.segments)for(D=t(b.segments),B=D.next();!B.done;B=D.next())C=B.value,G=oq(C.g,"EXT-X-KEY"),w.push.apply(w,ia(G));H=E=!1;L=[];K=new Set;N=t(w);for(V=N.next();!V.done;V=N.next())if(Z=V.value,ea=
709
+ lq(Z,"METHOD"),"NONE"!=ea)if(E=!0,"AES-128"==ea)H=!0;else if(ka=lq(Z,"KEYFORMAT"),Ha=(Aa=lr[ka])?Aa(Z,v):null){if(Ha.keyIds)for(Ia=t(Ha.keyIds),Na=Ia.next();!Na.done;Na=Ia.next())Oa=Na.value,K.add(Oa);L.push(Ha)}if(E&&!L.length&&!H)throw new O(2,4,4026);Hi.includes(v)&&(e="");Tc=new Map;ec=Nq(a,b,f,Tc,x);Hd=ec[ec.length-1].endTime;Id=new dj(ec);Bb=f==Ib?"subtitle":void 0;Jd=[];if(n)for(Uc=t(n.split(",")),Vc=Uc.next();!Vc.done;Vc=Uc.next())$a=Vc.value,Jd.push($a);lg=(kg=qq(b.g,"EXT-X-SERVER-CONTROL"))?
710
+ null!=kg.getAttribute("CAN-SKIP-UNTIL"):!1;Xo={id:a.ya++,originalId:k,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Id,mimeType:v,codecs:e,kind:Bb,encrypted:E,drmInfos:L,keyIds:K,language:g,label:k,type:f,primary:h,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:Jd,forced:p,channelsCount:l,audioSamplingRate:null,spatialAudio:r,closedCaptions:m,hdr:void 0,tilesLayout:void 0};return Ld["return"]({stream:Xo,
711
+ Hd:c,Uf:d,ke:Hd,Nc:Tc,Zf:lg})})}
712
+ function mr(a,b,c){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new O(2,4,4042);var d=0,e=U(b,"IV","");if(e){var f=nd(e.substr(2));if(16!=f.byteLength)throw new O(2,4,4043);}else d=rq(c.g);b=sq(c.h,lq(b,"URI"));var g=rf([b],a.h.retryParameters),h={method:"AES-128",iv:f,firstMediaSequenceNumber:d,fetchKey:function(){var k,l;return I(function(m){if(1==m.g)return u(m,nr(a,g,6),2);if(3!=m.g){k=
713
+ m.h;if(!k.data||16!=k.data.byteLength)throw new O(2,4,4044);l=h;return u(m,window.crypto.subtle.importKey("raw",k.data,"AES-CBC",!0,["decrypt"]),3)}l.cryptoKey=m.h;h.fetchKey=void 0;z(m)})}};return h}
714
+ function jr(a,b){var c=qq(b.g,"EXT-X-PLAYLIST-TYPE"),d=qq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)Oq(a,Hq);else{c?Oq(a,or):Oq(a,pr);d=qq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new O(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=qq(b.g,"EXT-X-PART-INF");a.l&&c?(a.ba=Number(lq(c,"PART-TARGET")),a.H=Math.min(a.ba,a.H),c=qq(b.g,"EXT-X-SERVER-CONTROL"),a.X=c?Number(lq(c,"PART-HOLD-BACK")):0):a.H=Math.min(d,a.H);a.aa=Math.max(d,a.aa)}}
715
+ function qr(a,b,c,d){c=qq(c,"EXT-X-MAP");if(!c)return null;var e=lq(c,"URI");d=hr(sq(b,e),d);b=[d,U(c,"BYTERANGE","")].join("-");a.ua.has(b)||(c=rr(d,c),a.ua.set(b,c));return a.ua.get(b)}function rr(a,b){var c=0,d=null,e=U(b,"BYTERANGE");e&&(c=e.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1);return new $h(function(){return[a]},c,d)}
716
+ function sr(a,b,c,d,e,f,g,h,k){var l=d.g,m=hr(d.i,f),n=qq(l,"EXTINF"),p=f=0,r=null;d.h.length&&!a.l&&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 v=null;if(!a.h.hls.ignoreManifestProgramDateTime){var y=qq(l,"EXT-X-PROGRAM-DATE-TIME");y&&y.value&&(v=io(y.value))}y=ci;qq(l,"EXT-X-GAP")&&(y=2);if(!n){if(0==d.h.length)throw new O(2,4,4024,"EXTINF");
717
+ if(!a.l)return null}var x=[];if(a.l)for(var w={},D=0;D<d.h.length;w={Qd:w.Qd},D++){var B=d.h[D],C=0==D?c:x[x.length-1],G=0==D?e:C.endTime,E=Number(U(B,"DURATION"))||a.ba;if(E){E=G+E;var H=0,L=null;"EXT-X-PRELOAD-HINT"==B.name?H=(H=U(B,"BYTERANGE-START"))?Number(H):0:(H=U(B,"BYTERANGE"),L=t(tr(C,H)),H=L.next().value,L=L.next().value);if(C=U(B,"URI"))w.Qd=sq(g,C),C=ci,"YES"==U(B,"GAP")&&(C=2),x.push(new bi(G,E,function(K){return function(){return[K.Qd]}}(w),H,L,b,0,0,Infinity,[],"",null,null,C))}}n?
718
+ f=e+Number(n.value.split(",")[0]):f=x[x.length-1].endTime;(a=qq(l,"EXT-X-BYTERANGE"))?(r=t(tr(c,a.value)),p=r.next().value,r=r.next().value):x.length&&(p=x[0].Ta,r=x[x.length-1].Ba);c="";a=null;"image"==h&&(c="1x1",h=qq(l,"EXT-X-TILES"))&&(c=lq(h,"LAYOUT"),(h=U(h,"DURATION"))&&(a=Number(h)));return new bi(e,f,function(){return m.length?[m]:[]},p,r,b,0,0,Infinity,x,c,a,v,y,k)}function tr(a,b){var c=0,d=null;b&&(c=b.split("@"),d=Number(c[0]),c=c[1]?Number(c[1]):a.Ba+1,d=c+d-1);return[c,d]}
721
719
  function $q(a){if(a.i){for(var b=t(a.P),c=b.next();!c.done;c=b.next())a.i.kc(c.value);a.P=[]}}
722
- function Nq(a,b,c,d,e){var f=b.segments,g=void 0,h=rq(b.g),k=qq(b.g,"EXT-X-SKIP");k=k?Number(W(k,"SKIPPED-SEGMENTS")):0;var l=h+k,m=0;a.m!=Hq&&d.has(l)&&(m=d.get(l));for(var n=[],p=null,r=0;r<f.length;r++){var v=f[r],y=0==r?m:p.endTime;l=h+k+r;var x=t(v.g);for(var w=x.next();!w.done;w=x.next())w=w.value,"EXT-X-KEY"==w.name&&"AES-128"==lq(w,"METHOD")&&(g=mr(a,w,b));d.set(l,y);x=qr(a,b.h,v.g,e);!a.l&&a.j.isAutoLowLatencyMode()&&(a.j.enableLowLatencyMode(),a.l=a.j.isLowLatencyMode());(p=v=sr(a,x,p,v,
720
+ function Nq(a,b,c,d,e){var f=b.segments,g=void 0,h=rq(b.g),k=qq(b.g,"EXT-X-SKIP");k=k?Number(U(k,"SKIPPED-SEGMENTS")):0;var l=h+k,m=0;a.m!=Hq&&d.has(l)&&(m=d.get(l));for(var n=[],p=null,r=0;r<f.length;r++){var v=f[r],y=0==r?m:p.endTime;l=h+k+r;var x=t(v.g);for(var w=x.next();!w.done;w=x.next())w=w.value,"EXT-X-KEY"==w.name&&"AES-128"==lq(w,"METHOD")&&(g=mr(a,w,b));d.set(l,y);x=qr(a,b.h,v.g,e);!a.l&&a.j.isAutoLowLatencyMode()&&(a.j.enableLowLatencyMode(),a.l=a.j.isLowLatencyMode());(p=v=sr(a,x,p,v,
723
721
  y,e,b.h,c,g))&&(a.h.hls.ignoreManifestProgramDateTime&&null!=a.N&&l<a.N||n.push(v))}if(a=n.some(function(D){return null!=D.g}))for(b={},c=0;c<n.length;b={tc:b.tc,sc:b.sc,Xc:b.Xc,sb:b.sb,rc:b.rc},c++)if(b.sb=n[c],null==b.sb.g)for(b.sc=0,b.tc=c,d=function(D){return function(){var B=n[D.tc];if(B){if(null!=B.g)return B.g+D.sc;D.sc-=B.endTime-B.startTime;D.tc+=1}return null}}(b),b.rc=0,b.Xc=c,e=function(D){return function(){var B=n[D.Xc];if(B){B!=D.sb&&(D.rc+=B.endTime-B.startTime);if(null!=B.g)return B.g+
724
- D.rc;--D.Xc}return null}}(b);null==b.sb.g;)b.sb.g=e(),null==b.sb.g&&(b.sb.g=d());if(a)for(a=t(n),b=a.next();!b.done;b=a.next())for(c=b.value,b=c.g,c=t(c.h),d=c.next();!d.done;d=c.next())d=d.value,d.g=b,b+=d.endTime-d.startTime;return n}function hr(a,b){var c=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}"),d=c.match(/{\$\w*}/g);if(d){d=t(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.slice(2,e.length-1),g=b.get(f);if(g)c=c.replace(e,g);else throw new P(2,4,4039,f);}}return c}
725
- function kr(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,v,y,x;return J(function(w){if(1==w.g){f=Jb;g=xf;h=Math.trunc((d.segments.length-1)/2);k=hr(d.segments[h].i,e);l=new lb(k);m=l.Ka.split(".").pop();n=ur[b];if(p=n[m])return w["return"](p);if(b==f.ha){if("vtt"==c||"wvtt"==c)return w["return"]("text/vtt");if(c&&""!==c)return w["return"]("application/mp4")}if(b==f.zc&&(!c||"jpeg"==c))return w["return"]("image/jpeg");r=rf([k],a.h.retryParameters);r.method="HEAD";return z(w,nr(a,r,g),2)}v=w.h;y=v.headers["content-type"];
726
- if(!y){if(b==f.ha)return w["return"]("text/vtt");x=n.mp4;return w["return"](x)}return w["return"](y.split(";")[0])})}function Iq(a,b){var c=rf([b],a.h.retryParameters);a.j.modifyManifestRequest(c,{format:"h"});return nr(a,c,0)}function Gq(a){var b,c;J(function(d){if(1==d.g){if(!a.j)return d["return"]();F(d,2);return z(d,a.update(),4)}if(2!=d.g)return b=a.ma,a.F.T(b),va(d,0);c=I(d);if(!a.j)return d["return"]();c.severity=1;a.j.onError(c);a.F.T(.1);A(d)})}
727
- function Oq(a,b){a.m=b;a.i&&a.i.Wc(a.m==Hq);a.m!=Hq||a.F.stop()}function nr(a,b,c){if(!a.G)throw new P(2,7,7001);b=a.j.networkingEngine.request(c,b);mf(a.G,b);return b.promise}M("shaka.hls.HlsParser",Fq);
722
+ D.rc;--D.Xc}return null}}(b);null==b.sb.g;)b.sb.g=e(),null==b.sb.g&&(b.sb.g=d());if(a)for(a=t(n),b=a.next();!b.done;b=a.next())for(c=b.value,b=c.g,c=t(c.h),d=c.next();!d.done;d=c.next())d=d.value,d.g=b,b+=d.endTime-d.startTime;return n}function hr(a,b){var c=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}"),d=c.match(/{\$\w*}/g);if(d){d=t(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.slice(2,e.length-1),g=b.get(f);if(g)c=c.replace(e,g);else throw new O(2,4,4039,f);}}return c}
723
+ function kr(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,v,y,x;return I(function(w){if(1==w.g){f=Jb;g=xf;h=Math.trunc((d.segments.length-1)/2);k=hr(d.segments[h].i,e);l=new lb(k);m=l.Ja.split(".").pop();n=ur[b];if(p=n[m])return w["return"](p);if(b==f.ha){if("vtt"==c||"wvtt"==c)return w["return"]("text/vtt");if(c&&""!==c)return w["return"]("application/mp4")}if(b==f.zc&&(!c||"jpeg"==c))return w["return"]("image/jpeg");r=rf([k],a.h.retryParameters);r.method="HEAD";return u(w,nr(a,r,g),2)}v=w.h;y=v.headers["content-type"];
724
+ if(!y){if(b==f.ha)return w["return"]("text/vtt");x=n.mp4;return w["return"](x)}return w["return"](y.split(";")[0])})}function Iq(a,b){var c=rf([b],a.h.retryParameters);a.j.modifyManifestRequest(c,{format:"h"});return nr(a,c,0)}function Gq(a){var b,c;I(function(d){if(1==d.g){if(!a.j)return d["return"]();A(d,2);return u(d,a.update(),4)}if(2!=d.g)return b=a.ea,a.F.T(b),va(d,0);c=F(d);if(!a.j)return d["return"]();c.severity=1;a.j.onError(c);a.F.T(.1);z(d)})}
725
+ function Oq(a,b){a.m=b;a.i&&a.i.Wc(a.m==Hq);a.m!=Hq||a.F.stop()}function nr(a,b,c){if(!a.G)throw new O(2,7,7001);b=a.j.networkingEngine.request(c,b);mf(a.G,b);return b.promise}J("shaka.hls.HlsParser",Fq);
728
726
  var ur={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",aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},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"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",ttml:"application/ttml+xml"},
729
- image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},lr={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new P(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new P(2,4,4041);return Eb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0)}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=lq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;b=lq(a,"URI");b=Eq(b);b=Fc(b.data);b=
730
- Eb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=W(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=lq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=lq(a,"URI");a=Eq(a);a=Fc(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Xn(a,b,new Set,0);return Eb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])}},Hq="VOD",pr="EVENT",or="LIVE",Lq={Tf:Hq,Ph:pr,
731
- Ze:or};Tc("Tizen 3")||Tc("Tizen 2")||Xc()||(zg.m3u8=function(){return new Fq},xg["application/x-mpegurl"]=function(){return new Fq},xg["application/vnd.apple.mpegurl"]=function(){return new Fq});function vr(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,Cf:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=gd(b)}catch(g){}throw new P(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function wr(){}function xr(a,b,c,d,e){var f=new yr;Ff(b.headers).forEach(function(l,m){f.append(m,l)});var g=new zr,h={df:!1,Nf:!1};a=Ar(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 bf(a,function(){h.df=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new Q(function(){h.Nf=!0;g.abort()});k.T(b/1E3);a["finally"](function(){k.stop()})}return a}
732
- function Ar(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,v,y,x,w,D,B;return J(function(C){switch(C.g){case 1:return h=Br,k=Cr,p=n=0,r=Date.now(),F(C,2),z(C,h(a,c),4);case 4:return l=C.h,f(Dr(l.headers)),v=l.clone().body.getReader(),x=(y=l.headers.get("Content-Length"))?parseInt(y,10):0,w=function(G){function E(){var H,L;return J(function(K){switch(K.g){case 1:return F(K,2),z(K,v.read(),4);case 4:H=K.h;va(K,3);break;case 2:return I(K),K["return"]();case 3:if(H.done){K.D(5);break}n+=H.value.byteLength;if(!g){K.D(5);
733
- break}return z(K,g(H.value),5);case 5:L=Date.now();if(100<L-r||H.done)e(L-r,n-p,x-n),p=n,r=L;H.done?G.close():(G.enqueue(H.value),E());A(K)}})}E()},new k({start:w}),z(C,l.arrayBuffer(),5);case 5:m=C.h;va(C,3);break;case 2:D=I(C);if(d.df)throw new P(1,1,7001,a,b);if(d.Nf)throw new P(1,1,1003,a,b);throw new P(1,1,1002,a,D,b);case 3:return B=Dr(l.headers),C["return"](vr(B,m,l.status,a,l.url,b))}})}function Dr(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
734
- function Er(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;return!(!window.fetch||!window.AbortController)}M("shaka.net.HttpFetchPlugin",wr);wr.isSupported=Er;wr.parse=xr;var Br=window.fetch,zr=window.AbortController,Cr=window.ReadableStream,yr=window.Headers;Er()&&(of("http",xr,2,!0),of("https",xr,2,!0),of("blob",xr,2,!0));function Fr(){}
735
- function Gr(a,b,c,d,e){var f=new Hr,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 P(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var r=Ir(f);e(r);n=!0}};f.onload=function(){var r=Ir(f),v=f.response;try{var y=vr(r,v,f.status,a,f.responseURL,c);l(y)}catch(x){m(x)}};f.onerror=function(r){m(new P(1,1,1002,a,r,
736
- c))};f.ontimeout=function(){m(new P(1,1,1003,a,c))};f.onprogress=function(r){var v=Date.now();if(100<v-g||r.lengthComputable&&r.loaded==r.total)d(v-g,r.loaded-h,r.total-r.loaded),h=r.loaded,g=v};for(var p in b.headers)f.setRequestHeader(p.toLowerCase(),b.headers[p]);f.send(b.body)});return new bf(k,function(){f.abort();return Promise.resolve()})}
737
- function Ir(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(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}M("shaka.net.HttpXHRPlugin",Fr);Fr.parse=Gr;var Hr=window.XMLHttpRequest;of("http",Gr,1,!0);of("https",Gr,1,!0);of("blob",Gr,1,!0);function Jr(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Kr(a){return a.Pa().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Ta+":"+a.Ca}function Lr(a,b){return vj(a.g.Pa(),a.g.Ta,a.g.Ca,b.streaming.retryParameters)};function Mr(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function Nr(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}Mr.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 Or(a){var b=this;this.A=a;this.j=new Map;this.i=new yf(function(){return Pr(b)["catch"](function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new Mr}Or.prototype.destroy=function(){return this.i.destroy()};function Qr(a,b,c){a.m=b;a.l=c}function Pr(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
738
- function Rr(a,b,c,d,e,f){zf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,r;return J(function(v){if(1==v.g)return z(v,Sr(a,c),2);h=v.h;if(a.i.g)throw new P(2,9,7001);if(e)for(m in k=Fc(h),l=new Wn(k),l.data)n=Number(m),p=l.data[n],r=l.g[n],a.l(p,r);a.g.close(d,h.byteLength);var y=a.g;a.m(0==y.i?0:y.j/y.i,a.g.h);return v["return"](f(h))})});a.j.set(b,g)}function Tr(a){return J(function(b){return 1==b.g?z(b,Promise.all(a.j.values()),2):b["return"](a.g.h)})}
739
- function Sr(a,b){var c,d,e,f;return J(function(g){if(1==g.g)return c=xf,d=a.A.request(c,b),e=function(){return d.abort()},a.h.push(e),z(g,d.promise,2);f=g.h;dc(a.h,e);return g["return"](f.data)})};function Ur(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Mc;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Ur.prototype.abort=function(){var a=this;return J(function(b){if(1==b.g){try{a.i.abort()}catch(c){}F(b,2);return z(b,a.g,4)}if(2!=b.g)return va(b,0);I(b);A(b)})};
740
- function Vr(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return J(function(g){if(1==g.g){if(null==e.result)return c(),g["return"]();f=e.result;return z(g,b(f.key,f.value,f),2)}f["continue"]();A(g)})}})}Ur.prototype.store=function(){return this.h};Ur.prototype.promise=function(){return this.g};function Wr(a){this.h=a;this.g=[]}Wr.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Xr(a,b){return Yr(a,b,"readwrite")}function Yr(a,b,c){c=a.h.transaction([b],c);var d=new Ur(c,b);a.g.push(d);d.promise().then(function(){dc(a.g,d)},function(){dc(a.g,d)});return d};function Zr(a,b,c){this.h=new Wr(a);this.i=b;this.g=c}q=Zr.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return $r(this.i)};q.removeSegments=function(a,b){return as(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return J(function(d){if(1==d.g)return z(d,bs(b,b.i,a),2);c=d.h;return d["return"](c.map(function(e){return b.hf(e)}))})};q.addManifests=function(){return $r(this.g)};
741
- q.updateManifest=function(){return Promise.reject(new P(2,9,9016,"Cannot modify values in "+this.g))};function cs(a,b,c){a=Xr(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=Xr(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 as(this,this.g,a,b)};
742
- q.getManifests=function(a){var b=this,c;return J(function(d){if(1==d.g)return z(d,bs(b,b.g,a),2);c=d.h;return d["return"](Promise.all(c.map(function(e){return b.Cc(e)})))})};q.getAllManifests=function(){var a=this,b,c;return J(function(d){return 1==d.g?(b=Yr(a.h,a.g,"readonly"),c=new Map,z(d,Vr(b,function(e,f){var g;return J(function(h){if(1==h.g)return z(h,a.Cc(f),2);g=h.h;c.set(e,g);A(h)})}),2)):3!=d.g?z(d,b.promise(),3):d["return"](c)})};q.hf=function(a){return a};q.Cc=function(a){return Promise.resolve(a)};
743
- function $r(a){return Promise.reject(new P(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 J(function(m){if(1==m.g){d=Xr(c.h,a);e=d.store();f=[];g={};h=t(b);for(k=h.next();!k.done;g={bd:g.bd},k=h.next())l=k.value,g.bd=e.add(l),g.bd.onsuccess=function(n){return function(){f.push(n.bd.result)}}(g);return z(m,d.promise(),2)}return m["return"](f)})};
727
+ image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},lr={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new O(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new O(2,4,4041);return Eb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0)}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=lq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;b=lq(a,"URI");b=Eq(b);b=Ec(b.data);b=
728
+ Eb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=U(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=lq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=lq(a,"URI");a=Eq(a);a=Ec(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Xn(a,b,new Set,0);return Eb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])}},Hq="VOD",pr="EVENT",or="LIVE",Lq={Tf:Hq,Ph:pr,
729
+ Ze:or};Sc("Tizen 3")||Sc("Tizen 2")||Xc()||(zg.m3u8=function(){return new Fq},xg["application/x-mpegurl"]=function(){return new Fq},xg["application/vnd.apple.mpegurl"]=function(){return new Fq});function vr(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,Cf:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=gd(b)}catch(g){}throw new O(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function wr(){}function xr(a,b,c,d,e){var f=new yr;Ff(b.headers).forEach(function(l,m){f.append(m,l)});var g=new zr,h={df:!1,Nf:!1};a=Ar(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 bf(a,function(){h.df=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new P(function(){h.Nf=!0;g.abort()});k.T(b/1E3);a["finally"](function(){k.stop()})}return a}
730
+ function Ar(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,v,y,x,w,D,B;return I(function(C){switch(C.g){case 1:return h=Br,k=Cr,p=n=0,r=Date.now(),A(C,2),u(C,h(a,c),4);case 4:return l=C.h,f(Dr(l.headers)),v=l.clone().body.getReader(),x=(y=l.headers.get("Content-Length"))?parseInt(y,10):0,w=function(G){function E(){var H,L;return I(function(K){switch(K.g){case 1:return A(K,2),u(K,v.read(),4);case 4:H=K.h;va(K,3);break;case 2:return F(K),K["return"]();case 3:if(H.done){K.D(5);break}n+=H.value.byteLength;if(!g){K.D(5);
731
+ break}return u(K,g(H.value),5);case 5:L=Date.now();if(100<L-r||H.done)e(L-r,n-p,x-n),p=n,r=L;H.done?G.close():(G.enqueue(H.value),E());z(K)}})}E()},new k({start:w}),u(C,l.arrayBuffer(),5);case 5:m=C.h;va(C,3);break;case 2:D=F(C);if(d.df)throw new O(1,1,7001,a,b);if(d.Nf)throw new O(1,1,1003,a,b);throw new O(1,1,1002,a,D,b);case 3:return B=Dr(l.headers),C["return"](vr(B,m,l.status,a,l.url,b))}})}function Dr(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
732
+ function Er(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;return!(!window.fetch||!window.AbortController)}J("shaka.net.HttpFetchPlugin",wr);wr.isSupported=Er;wr.parse=xr;var Br=window.fetch,zr=window.AbortController,Cr=window.ReadableStream,yr=window.Headers;Er()&&(of("http",xr,2,!0),of("https",xr,2,!0),of("blob",xr,2,!0));function Fr(){}
733
+ function Gr(a,b,c,d,e){var f=new Hr,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 O(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var r=Ir(f);e(r);n=!0}};f.onload=function(){var r=Ir(f),v=f.response;try{var y=vr(r,v,f.status,a,f.responseURL,c);l(y)}catch(x){m(x)}};f.onerror=function(r){m(new O(1,1,1002,a,r,
734
+ c))};f.ontimeout=function(){m(new O(1,1,1003,a,c))};f.onprogress=function(r){var v=Date.now();if(100<v-g||r.lengthComputable&&r.loaded==r.total)d(v-g,r.loaded-h,r.total-r.loaded),h=r.loaded,g=v};for(var p in b.headers)f.setRequestHeader(p.toLowerCase(),b.headers[p]);f.send(b.body)});return new bf(k,function(){f.abort();return Promise.resolve()})}
735
+ function Ir(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(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}J("shaka.net.HttpXHRPlugin",Fr);Fr.parse=Gr;var Hr=window.XMLHttpRequest;of("http",Gr,1,!0);of("https",Gr,1,!0);of("blob",Gr,1,!0);function Jr(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Kr(a){return a.Pa().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Ta+":"+a.Ba}function Lr(a,b){return vj(a.g.Pa(),a.g.Ta,a.g.Ba,b.streaming.retryParameters)};function Mr(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function Nr(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}Mr.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 Or(a){var b=this;this.A=a;this.j=new Map;this.i=new yf(function(){return Pr(b)["catch"](function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new Mr}Or.prototype.destroy=function(){return this.i.destroy()};function Qr(a,b,c){a.m=b;a.l=c}function Pr(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
736
+ function Rr(a,b,c,d,e,f){zf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,r;return I(function(v){if(1==v.g)return u(v,Sr(a,c),2);h=v.h;if(a.i.g)throw new O(2,9,7001);if(e)for(m in k=Ec(h),l=new Wn(k),l.data)n=Number(m),p=l.data[n],r=l.g[n],a.l(p,r);a.g.close(d,h.byteLength);var y=a.g;a.m(0==y.i?0:y.j/y.i,a.g.h);return v["return"](f(h))})});a.j.set(b,g)}function Tr(a){return I(function(b){return 1==b.g?u(b,Promise.all(a.j.values()),2):b["return"](a.g.h)})}
737
+ function Sr(a,b){var c,d,e,f;return I(function(g){if(1==g.g)return c=xf,d=a.A.request(c,b),e=function(){return d.abort()},a.h.push(e),u(g,d.promise,2);f=g.h;dc(a.h,e);return g["return"](f.data)})};function Ur(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Lc;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Ur.prototype.abort=function(){var a=this;return I(function(b){if(1==b.g){try{a.i.abort()}catch(c){}A(b,2);return u(b,a.g,4)}if(2!=b.g)return va(b,0);F(b);z(b)})};
738
+ function Vr(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return I(function(g){if(1==g.g){if(null==e.result)return c(),g["return"]();f=e.result;return u(g,b(f.key,f.value,f),2)}f["continue"]();z(g)})}})}Ur.prototype.store=function(){return this.h};Ur.prototype.promise=function(){return this.g};function Wr(a){this.h=a;this.g=[]}Wr.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Xr(a,b){return Yr(a,b,"readwrite")}function Yr(a,b,c){c=a.h.transaction([b],c);var d=new Ur(c,b);a.g.push(d);d.promise().then(function(){dc(a.g,d)},function(){dc(a.g,d)});return d};function Zr(a,b,c){this.h=new Wr(a);this.i=b;this.g=c}q=Zr.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return $r(this.i)};q.removeSegments=function(a,b){return as(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return I(function(d){if(1==d.g)return u(d,bs(b,b.i,a),2);c=d.h;return d["return"](c.map(function(e){return b.hf(e)}))})};q.addManifests=function(){return $r(this.g)};
739
+ q.updateManifest=function(){return Promise.reject(new O(2,9,9016,"Cannot modify values in "+this.g))};function cs(a,b,c){a=Xr(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=Xr(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 as(this,this.g,a,b)};
740
+ q.getManifests=function(a){var b=this,c;return I(function(d){if(1==d.g)return u(d,bs(b,b.g,a),2);c=d.h;return d["return"](Promise.all(c.map(function(e){return b.Cc(e)})))})};q.getAllManifests=function(){var a=this,b,c;return I(function(d){return 1==d.g?(b=Yr(a.h,a.g,"readonly"),c=new Map,u(d,Vr(b,function(e,f){var g;return I(function(h){if(1==h.g)return u(h,a.Cc(f),2);g=h.h;c.set(e,g);z(h)})}),2)):3!=d.g?u(d,b.promise(),3):d["return"](c)})};q.hf=function(a){return a};q.Cc=function(a){return Promise.resolve(a)};
741
+ function $r(a){return Promise.reject(new O(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 I(function(m){if(1==m.g){d=Xr(c.h,a);e=d.store();f=[];g={};h=t(b);for(k=h.next();!k.done;g={bd:g.bd},k=h.next())l=k.value,g.bd=e.add(l),g.bd.onsuccess=function(n){return function(){f.push(n.bd.result)}}(g);return u(m,d.promise(),2)}return m["return"](f)})};
744
742
  function as(a,b,c,d){a=Xr(a.h,b);b=a.store();var e={};c=t(c);for(var f=c.next();!f.done;e={$c:e.$c},f=c.next())e.$c=f.value,b["delete"](e.$c).onsuccess=function(g){return function(){return d(g.$c)}}(e);return a.promise()}
745
- function bs(a,b,c){var d,e,f,g,h,k,l;return J(function(m){if(1==m.g){d=Yr(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=t(c);for(l=k.next();!l.done;h={yc:h.yc,vc:h.vc},l=k.next())h.vc=l.value,h.yc=e.get(h.vc),h.yc.onsuccess=function(n){return function(){void 0==n.yc.result&&g.push(n.vc);f[n.vc]=n.yc.result}}(h);return z(m,d.promise(),2)}if(g.length)throw new P(2,9,9012,"Could not find values for "+g);return m["return"](c.map(function(n){return f[n]}))})};function ds(a){this.g=new Wr(a)}ds.prototype.destroy=function(){return this.g.destroy()};ds.prototype.getAll=function(){var a=this,b,c;return J(function(d){return 1==d.g?(b=Yr(a.g,"session-ids","readonly"),c=[],z(d,Vr(b,function(e,f){c.push(f)}),2)):3!=d.g?z(d,b.promise(),3):d["return"](c)})};ds.prototype.add=function(a){var b=Xr(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
746
- ds.prototype.remove=function(a){var b=this,c;return J(function(d){return 1==d.g?(c=Xr(b.g,"session-ids"),z(d,Vr(c,function(e,f,g){a.includes(f.sessionId)&&g["delete"]()}),2)):z(d,c.promise(),0)})};function es(){this.g=new Map}es.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};es.prototype.init=function(){var a=this;fs.forEach(function(e,f){var g=e();g&&a.g.set(f,g)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
747
- function gs(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Sa:d,Ba:f},Ba:e})})});if(b)return b;throw new P(2,9,9013,"Could not find a cell that supports add-operations");}function hs(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Sa:d,Ba:f},e)})})}
748
- function is(a,b,c){a=a.g.get(b);if(!a)throw new P(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new P(2,9,9013,"Could not find cell with name "+c);return b}function js(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function ks(a){var b=Array.from(a.g.keys());if(!b.length)throw new P(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
749
- function ls(a){var b,c,d;return J(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=fs,d.forEach(function(f){(f=f())&&b.push(f)})),z(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.D(0):z(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function ms(a,b){fs.set(a,b)}M("shaka.offline.StorageMuxer",es);es.unregister=function(a){fs["delete"](a)};es.register=ms;es.prototype.destroy=es.prototype.destroy;var fs=new Map;function ns(){Zr.apply(this,arguments)}u(ns,Zr);ns.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return J(function(g){d=Xr(c.h,c.g);e=d.store();f=new Mc;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new P(2,9,9012,"Could not find values for "+a))};return z(g,Promise.all([d.promise(),f]),0)})};
750
- ns.prototype.Cc=function(a){var b,c,d,e,f,g;return J(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=os(a.periods[c],e),b.push(f);return z(h,wp(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})})};
743
+ function bs(a,b,c){var d,e,f,g,h,k,l;return I(function(m){if(1==m.g){d=Yr(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=t(c);for(l=k.next();!l.done;h={yc:h.yc,vc:h.vc},l=k.next())h.vc=l.value,h.yc=e.get(h.vc),h.yc.onsuccess=function(n){return function(){void 0==n.yc.result&&g.push(n.vc);f[n.vc]=n.yc.result}}(h);return u(m,d.promise(),2)}if(g.length)throw new O(2,9,9012,"Could not find values for "+g);return m["return"](c.map(function(n){return f[n]}))})};function ds(a){this.g=new Wr(a)}ds.prototype.destroy=function(){return this.g.destroy()};ds.prototype.getAll=function(){var a=this,b,c;return I(function(d){return 1==d.g?(b=Yr(a.g,"session-ids","readonly"),c=[],u(d,Vr(b,function(e,f){c.push(f)}),2)):3!=d.g?u(d,b.promise(),3):d["return"](c)})};ds.prototype.add=function(a){var b=Xr(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
744
+ ds.prototype.remove=function(a){var b=this,c;return I(function(d){return 1==d.g?(c=Xr(b.g,"session-ids"),u(d,Vr(c,function(e,f,g){a.includes(f.sessionId)&&g["delete"]()}),2)):u(d,c.promise(),0)})};function es(){this.g=new Map}es.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};es.prototype.init=function(){var a=this;fs.forEach(function(e,f){var g=e();g&&a.g.set(f,g)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
745
+ function gs(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Sa:d,Aa:f},Aa:e})})});if(b)return b;throw new O(2,9,9013,"Could not find a cell that supports add-operations");}function hs(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Sa:d,Aa:f},e)})})}
746
+ function is(a,b,c){a=a.g.get(b);if(!a)throw new O(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new O(2,9,9013,"Could not find cell with name "+c);return b}function js(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function ks(a){var b=Array.from(a.g.keys());if(!b.length)throw new O(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
747
+ function ls(a){var b,c,d;return I(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=fs,d.forEach(function(f){(f=f())&&b.push(f)})),u(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.D(0):u(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function ms(a,b){fs.set(a,b)}J("shaka.offline.StorageMuxer",es);es.unregister=function(a){fs["delete"](a)};es.register=ms;es.prototype.destroy=es.prototype.destroy;var fs=new Map;function ns(){Zr.apply(this,arguments)}qa(ns,Zr);ns.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return I(function(g){d=Xr(c.h,c.g);e=d.store();f=new Lc;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new O(2,9,9012,"Could not find values for "+a))};return u(g,Promise.all([d.promise(),f]),0)})};
748
+ ns.prototype.Cc=function(a){var b,c,d,e,f,g;return I(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=os(a.periods[c],e),b.push(f);return u(h,wp(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})})};
751
749
  function os(a,b){ps(a);for(var c=t(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return qs(e,a.startTime,b)})}
752
750
  function qs(a,b,c){var d=a.initSegmentUri?rs(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,kind:a.kind,language:a.language,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=rs(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,
753
- dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}ns.prototype.hf=function(a){return{data:a.data}};function rs(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 P(2,9,9004,"Could not parse uri "+a);}
751
+ dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}ns.prototype.hf=function(a){return{data:a.data}};function rs(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 O(2,9,9004,"Could not parse uri "+a);}
754
752
  function ps(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=t(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=t(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=t(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
755
- f=t(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=t(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=t(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function ss(){Zr.apply(this,arguments)}u(ss,Zr);
756
- ss.prototype.Cc=function(a){var b,c,d,e,f,g;return J(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;for(var k=a.periods[c],l=[],m=t(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(ts(n,k.startTime,k.startTime+e));f=l;b.push(f)}return z(h,wp(b),2)}g=h.h;return h["return"]({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==
753
+ f=t(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=t(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=t(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function ss(){Zr.apply(this,arguments)}qa(ss,Zr);
754
+ ss.prototype.Cc=function(a){var b,c,d,e,f,g;return I(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;for(var k=a.periods[c],l=[],m=t(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(ts(n,k.startTime,k.startTime+e));f=l;b.push(f)}return u(h,wp(b),2)}g=h.h;return h["return"]({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==
757
755
  a.expiration?Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})};
758
756
  function ts(a,b,c){return{id:a.id,originalId:a.originalId,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,kind:a.kind,language:a.language,label:a.label,width:a.width,height:a.height,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(d){return{startTime:b+d.startTime,endTime:b+d.endTime,initSegmentKey:a.initSegmentKey,appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,
759
- dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}};function us(){Zr.apply(this,arguments)}u(us,Zr);q=us.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 cs(this,a,b)};q.Cc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function vs(){this.m=this.j=this.i=this.h=this.g=this.l=null}q=vs.prototype;
760
- q.init=function(){var a=this,b=new Mc,c=window.indexedDB.open("shaka_offline_db",5);c.onsuccess=function(){var d=c.result;a.l=d;var e=d.objectStoreNames;e=e.contains("manifest")&&e.contains("segment")?new ns(d,"segment","manifest"):null;a.g=e;e=d.objectStoreNames;e=e.contains("manifest-v2")&&e.contains("segment-v2")?new ss(d,"segment-v2","manifest-v2"):null;a.h=e;e=d.objectStoreNames;e=e.contains("manifest-v3")&&e.contains("segment-v3")?new ss(d,"segment-v3","manifest-v3"):null;a.i=e;e=d.objectStoreNames;
761
- e=e.contains("manifest-v5")&&e.contains("segment-v5")?new us(d,"segment-v5","manifest-v5"):null;a.j=e;d=d.objectStoreNames.contains("session-ids")?new ds(d):null;a.m=d;b.resolve()};c.onupgradeneeded=function(){for(var d=c.result,e=t(["segment-v5","manifest-v5","session-ids"]),f=e.next();!f.done;f=e.next())f=f.value,d.objectStoreNames.contains(f)||d.createObjectStore(f,{autoIncrement:!0})};c.onerror=function(d){b.reject(new P(2,9,9001,c.error));d.preventDefault()};return b};
762
- q.destroy=function(){var a=this;return J(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return z(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return z(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return z(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return z(b,a.j.destroy(),8);case 8:if(!a.m){b.D(10);break}return z(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),A(b)}})};
757
+ dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}};function us(){Zr.apply(this,arguments)}qa(us,Zr);q=us.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 cs(this,a,b)};q.Cc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function vs(){this.m=this.j=this.i=this.h=this.g=this.l=null}q=vs.prototype;
758
+ q.init=function(){var a=this,b=new Lc,c=window.indexedDB.open("shaka_offline_db",5);c.onsuccess=function(){var d=c.result;a.l=d;var e=d.objectStoreNames;e=e.contains("manifest")&&e.contains("segment")?new ns(d,"segment","manifest"):null;a.g=e;e=d.objectStoreNames;e=e.contains("manifest-v2")&&e.contains("segment-v2")?new ss(d,"segment-v2","manifest-v2"):null;a.h=e;e=d.objectStoreNames;e=e.contains("manifest-v3")&&e.contains("segment-v3")?new ss(d,"segment-v3","manifest-v3"):null;a.i=e;e=d.objectStoreNames;
759
+ e=e.contains("manifest-v5")&&e.contains("segment-v5")?new us(d,"segment-v5","manifest-v5"):null;a.j=e;d=d.objectStoreNames.contains("session-ids")?new ds(d):null;a.m=d;b.resolve()};c.onupgradeneeded=function(){for(var d=c.result,e=t(["segment-v5","manifest-v5","session-ids"]),f=e.next();!f.done;f=e.next())f=f.value,d.objectStoreNames.contains(f)||d.createObjectStore(f,{autoIncrement:!0})};c.onerror=function(d){b.reject(new O(2,9,9001,c.error));d.preventDefault()};return b};
760
+ q.destroy=function(){var a=this;return I(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return u(b,a.j.destroy(),8);case 8:if(!a.m){b.D(10);break}return u(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),z(b)}})};
763
761
  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};
764
- q.erase=function(){var a=this;return J(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return z(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return z(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return z(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return z(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),z(b,ws(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,z(b,a.init(),0)}})};
765
- function ws(){var a=new Mc,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new P(2,9,9001,b.error));c.preventDefault()};return a}ms("idb",function(){return Tc("CrKey")||Sc()||!window.indexedDB?null:new vs});function xs(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}xs.prototype.Sa=function(){return this.i};xs.prototype.Ba=function(){return this.h};xs.prototype.key=function(){return this.l};xs.prototype.toString=function(){return this.j};
762
+ q.erase=function(){var a=this;return I(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return u(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),u(b,ws(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,u(b,a.init(),0)}})};
763
+ function ws(){var a=new Lc,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new O(2,9,9001,b.error));c.preventDefault()};return a}ms("idb",function(){return Sc("CrKey")||Rc()||!window.indexedDB?null:new vs});function xs(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}xs.prototype.Sa=function(){return this.i};xs.prototype.Aa=function(){return this.h};xs.prototype.key=function(){return this.l};xs.prototype.toString=function(){return this.j};
766
764
  function ys(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 xs(b,c,d,Number(a[4])):null};function zs(a,b){this.h=a;this.g=b}
767
- function As(a,b){var c=new R(null,0);c.bb(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=Bs(a,d,e,c);e=b.streams.filter(function(l){return l.type==Ib}).map(function(l){return Cs(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return Cs(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=t(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
765
+ function As(a,b){var c=new Q(null,0);c.bb(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=Bs(a,d,e,c);e=b.streams.filter(function(l){return l.type==Ib}).map(function(l){return Cs(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return Cs(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=t(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
768
766
  g),k.video&&k.video.encrypted&&(k.video.drmInfos=g);return{presentationTimeline:c,minBufferTime:2,offlineSessionIds:b.sessionIds,variants:Array.from(d.values()),textStreams:e,imageStreams:f,sequenceMode:b.sequenceMode||!1}}
769
767
  function Bs(a,b,c,d){for(var e=new Set,f=t(b),g=f.next();!g.done;g=f.next()){var h=t(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=t(c);for(g=f.next();!g.done;g=f.next())for(h=t(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=t(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=t(b);for(e=b.next();!e.done;e=
770
768
  b.next())for(e=e.value,g=Cs(a,e,d),h=t(e.variantIds),e=h.next();!e.done;e=h.next())e=f.get(e.value),e.language=g.language,e.primary=e.primary||g.primary,e.audio=g;c=t(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=Cs(a,e,d),g=t(e.variantIds),e=g.next();!e.done;e=g.next())e=f.get(e.value),e.primary=e.primary||b.primary,e.video=b;return f}
771
769
  function Cs(a,b,c){var d=b.segments.map(function(e){return Ds(a,e)});c.kc(d);return{id:b.id,originalId:b.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new dj(d),mimeType:b.mimeType,codecs:b.codecs,width:b.width||void 0,height:b.height||void 0,frameRate:b.frameRate,pixelAspectRatio:b.pixelAspectRatio,hdr:b.hdr,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,emsgSchemeIdUris:null,
772
770
  roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout}}function Ds(a,b){var c=new xs("segment",a.h,a.g,b.dataKey);return new bi(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?Es(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"")}
773
771
  function Es(a,b){var c=new xs("segment",a.h,a.g,b);return new $h(function(){return[c.toString()]},0,null)};function Fs(){this.g=null}q=Fs.prototype;q.configure=function(){};
774
- q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return J(function(m){switch(m.g){case 1:d=ys(a);c.g=d;if(null==d||"manifest"!=d.g)throw new P(2,1,9004,a);e=new es;ua(m);return z(m,e.init(),4);case 4:return z(m,is(e,d.Sa(),d.Ba()),5);case 5:return f=m.h,z(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new zs(d.Sa(),d.Ba()),l=As(k,h),b.makeTextStreamsForClosedCaptions(l),m["return"](l);case 2:return wa(m),z(m,e.destroy(),7);case 7:ya(m,0)}})};q.stop=function(){return Promise.resolve()};
775
- q.update=function(){};q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return J(function(m){switch(m.g){case 1:return d=c.g,e=new es,F(m,2,3),z(m,e.init(),5);case 5:return z(m,is(e,d.Sa(),d.Ba()),6);case 6:return f=m.h,z(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 z(m,f.updateManifestExpiration(d.key(),b),3);case 3:return wa(m),z(m,e.destroy(),10);case 10:ya(m,0);break;case 2:I(m),m.D(3)}})};
776
- xg["application/x-offline-manifest"]=function(){return new Fs};function Gs(){}function Hs(a){var b=ys(a);b&&"manifest"==b.g?(a={uri:a,Cf:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=ef(a)):a=b&&"segment"==b.g?Is(b.key(),b):cf(new P(2,1,9004,a));return a}
777
- function Is(a,b){var c=new es;return ef(void 0).na(function(){return c.init()}).na(function(){return is(c,b.Sa(),b.Ba())}).na(function(d){return d.getSegments([b.key()])}).na(function(d){return{uri:b,data:d[0].data,headers:{}}})["finally"](function(){return c.destroy()})}M("shaka.offline.OfflineScheme",Gs);Gs.plugin=Hs;of("offline",Hs);function Js(a,b,c){var d,e,f,g,h,k;return J(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var r=!1,v=t(m),y=v.next();!y.done;y=v.next())if(y=y.value,Ks(y.info,p)){y.sessionIds.push(p.sessionId);r=!0;break}r||m.push({info:p,sessionIds:[p.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=Ls(a,b,g);return z(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)}})}
778
- function Ls(a,b,c){var d,e;return J(function(f){switch(f.g){case 1:return d=new If({Ob:b,onError:function(){},xd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),F(f,2),d.configure(a),z(f,Qf(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:va(f,3);break;case 2:return I(f),z(f,d.destroy(),5);case 5:return f["return"]([]);case 3:return F(f,6),z(f,ag(d),8);case 8:va(f,7);break;case 6:return I(f),z(f,d.destroy(),
779
- 9);case 9:return f["return"]([]);case 7:return e=[],z(f,Promise.all(c.sessionIds.map(function(g){return J(function(h){if(1==h.g)return F(h,2),z(h,bg(d,g),4);if(2!=h.g)return e.push(g),va(h,0);I(h);A(h)})})),10);case 10:return z(f,d.destroy(),11);case 11:return f["return"](e)}})}
780
- function Ks(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&ec(a.audioCapabilities,b.audioCapabilities,c)&&ec(a.videoCapabilities,b.videoCapabilities,c)};function Ms(a,b,c){var d=b.presentationTimeline.getDuration();b=Ns(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Os(a,b){var c=As(new zs(a.Sa(),a.Ba()),b),d=b.appMetadata||{};c=Ns(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}}
781
- function Ns(a){var b=[],c=ye(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(pe(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(qe(c.value));return b};function Ps(){this.g={}}function Qs(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 Rs(a,b){a.g[b.id]=b.bandwidth||2048}function Ss(a,b){var c=a.g[b];null==c&&(c=0);return c};function Ts(a){var b=this;if(a&&a.constructor!=T)throw new P(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Gc()):(this.h=Tk(),this.g=new nf);this.i=[];this.j=[];var c=!a;this.l=new yf(function(){var d,e,f,g,h;return J(function(k){switch(k.g){case 1:return z(k,Promise.all(b.j.map(function(l){return Pr(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return z(k,Promise.all(e),3);case 3:if(!c){k.D(4);break}return z(k,b.g.destroy(),4);
782
- case 4:b.h=null,b.g=null,A(k)}})})}function Us(){if(Pc())a:{var a=t(fs.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=Ts.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Qk(a,b));return Vk(this.h,a)};q.getConfiguration=function(){var a=Tk();Vk(a,this.h,Tk());return a};q.Gc=function(){return this.g};
783
- q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Or(this.g);this.j.push(f);b=Vs(this,a,b||{},function(){var g;return J(function(h){if(1==h.g)return z(h,wg(a,d.g,e.manifest.retryParameters,c||null),2);g=h.h;return h["return"](g())})},e,f);b=new bf(b,function(){return Pr(f)});b["finally"](function(){dc(d.j,f)});return Ws(this,b)};
784
- function Vs(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,v,y,x,w,D,B;return J(function(C){switch(C.g){case 1:return Xs(),h=g=null,k=new es,n=m=l=null,F(C,2,3),z(C,d(),5);case 5:return g=C.h,z(C,Ys(a,b,g,e),6);case 6:p=C.h;Zs(a);r=!p.presentationTimeline.U()&&!p.presentationTimeline.Lb();if(!r)throw new P(2,9,9005,b);return z(C,$s(a,p,function(G){n=n||G},e),7);case 7:h=C.h;Zs(a);if(n)throw n;return z(C,at(p,e),8);case 8:return z(C,k.init(),9);case 9:return Zs(a),z(C,gs(k),10);case 10:return l=C.h,Zs(a),v=bt(h,
785
- p,b,c,e,f),y=v.Rg,x=v.Ne,z(C,l.Ba.addManifests([y]),11);case 11:w=C.h;Zs(a);m=w[0];Zs(a);if(n)throw n;return z(C,ct(a,x,m,y,f,e,l.Ba,p,h),12);case 12:return Zs(a),D=new xs("manifest",l.path.Sa,l.path.Ba,m),C["return"](Os(D,y));case 3:return wa(C),z(C,k.destroy(),13);case 13:if(!g){C.D(14);break}return z(C,g.stop(),14);case 14:if(!h){C.D(16);break}return z(C,h.destroy(),16);case 16:ya(C,0);break;case 2:B=I(C);if(null==m){C.D(18);break}return z(C,dt(m),18);case 18:throw n||B;}})}
786
- function ct(a,b,c,d,e,f,g,h,k){var l,m,n,p,r,v,y,x,w,D;return J(function(B){switch(B.g){case 1:l={};m=0;n=function(C,G){var E,H,L,K,N,V,aa;return J(function(ha){if(1==ha.g){E={};H=t(C);for(L=H.next();!L.done;E={Eb:E.Eb},L=H.next())E.Eb=L.value,K=Lr(E.Eb,f),N=E.Eb.i,V=E.Eb.h,aa=function(ka){return function(xa){var Na,Ga,Sa;return J(function(Ia){if(1==Ia.g)return z(Ia,g.addSegments([{data:xa}]),2);Na=Ia.h;Zs(a);Ga=ka.Eb.g;Sa=Kr(Ga);l[Sa]=Na[0];m+=xa.byteLength;A(Ia)})}}(E),Rr(e,E.Eb.groupId,K,N,V,aa);
787
- return z(ha,Tr(e),2)}if(!G)return ha.D(0);Zs(a);et(h,d,k,f);return z(ha,g.updateManifest(c,d),0)})};p=!1;F(B,2);if(!ft(h)||!p||gt(h)){B.D(4);break}return z(B,n(b.filter(function(C){return C.h}),!0),5);case 5:return Zs(a),b=b.filter(function(C){return!C.h}),r=l,v=m,l={},m=0,z(B,ht(g,c,d,r,v,function(){return Zs(a)}),6);case 6:Zs(a);case 4:if(p){B.D(7);break}return z(B,n(b,!1),8);case 8:return Zs(a),y=l,x=m,l={},m=0,z(B,ht(g,c,d,y,x,function(){return Zs(a)}),9);case 9:Zs(a);case 7:va(B,0);break;case 2:return w=
788
- I(B),D=Object.values(l),z(B,g.removeSegments(D,function(){}),10);case 10:throw w;}})}function dt(a){var b,c,d,e;return J(function(f){switch(f.g){case 1:return b=new es,z(f,b.init(),2);case 2:return z(f,gs(b),3);case 3:return c=f.h,d=new xs("manifest",c.path.Sa,c.path.Ba,a),z(f,b.destroy(),4);case 4:return e=new Ts,z(f,e.remove(d.toString()),0)}})}
789
- function ht(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,v,y,x;return J(function(w){switch(w.g){case 1:g=!1;F(w,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),p=n.next();!p.done;p=n.next())r=p.value,v=r.pendingSegmentRefId?d[r.pendingSegmentRefId]:null,null!=v&&(r.dataKey=v,r.pendingSegmentRefId=void 0),v=r.pendingInitSegmentRefId?d[r.pendingInitSegmentRefId]:null,null!=v&&(r.initSegmentKey=v,r.pendingInitSegmentRefId=void 0),r.pendingSegmentRefId&&(h=!1),r.pendingInitSegmentRefId&&
790
- (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return z(w,a.updateManifest(b,c),4);case 4:g=!0;f();va(w,0);break;case 2:return y=I(w),z(w,dt(b),5);case 5:if(g){w.D(6);break}x=Object.values(d);return z(w,a.removeSegments(x,function(){}),6);case 6:throw y;}})}
791
- function at(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,v,y,x,w,D,B,C,G,E,H,L,K,N,V,aa,ha,ka;return J(function(xa){switch(xa.g){case 1:return c={width:Infinity,height:Infinity},Zd(a,b.restrictions,c),z(xa,ce(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;Nd(a,g,h,e,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(pe(m));n=t(a.textStreams);for(p=n.next();!p.done;p=n.next())r=
792
- p.value,d.push(qe(r));v=t(a.imageStreams);for(y=v.next();!y.done;y=v.next())x=y.value,d.push(re(x));return z(xa,b.offline.trackSelectionCallback(d),3);case 3:w=xa.h;D=a.presentationTimeline.getDuration();B=0;C=t(w);for(G=C.next();!G.done;G=C.next())E=G.value,H=E.bandwidth*D/8,B+=H;F(xa,4);return z(xa,b.offline.downloadSizeCallback(B),6);case 6:L=xa.h;if(!L)throw new P(2,9,9014);va(xa,5);break;case 4:K=I(xa);if(K instanceof P)throw K;throw new P(2,9,9015);case 5:N=new Set;V=new Set;aa=new Set;ha=t(w);
793
- for(G=ha.next();!G.done;G=ha.next())ka=G.value,"variant"==ka.type&&N.add(ka.id),"text"==ka.type&&V.add(ka.id),"image"==ka.type&&aa.add(ka.id);a.variants=a.variants.filter(function(Na){return N.has(Na.id)});a.textStreams=a.textStreams.filter(function(Na){return V.has(Na.id)});a.imageStreams=a.imageStreams.filter(function(Na){return aa.has(Na.id)});it(a);A(xa)}})}
772
+ q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:d=ys(a);c.g=d;if(null==d||"manifest"!=d.g)throw new O(2,1,9004,a);e=new es;ua(m);return u(m,e.init(),4);case 4:return u(m,is(e,d.Sa(),d.Aa()),5);case 5:return f=m.h,u(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new zs(d.Sa(),d.Aa()),l=As(k,h),b.makeTextStreamsForClosedCaptions(l),m["return"](l);case 2:return wa(m),u(m,e.destroy(),7);case 7:xa(m,0)}})};q.stop=function(){return Promise.resolve()};
773
+ q.update=function(){};q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:return d=c.g,e=new es,A(m,2,3),u(m,e.init(),5);case 5:return u(m,is(e,d.Sa(),d.Aa()),6);case 6:return f=m.h,u(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 u(m,f.updateManifestExpiration(d.key(),b),3);case 3:return wa(m),u(m,e.destroy(),10);case 10:xa(m,0);break;case 2:F(m),m.D(3)}})};
774
+ xg["application/x-offline-manifest"]=function(){return new Fs};function Gs(){}function Hs(a){var b=ys(a);b&&"manifest"==b.g?(a={uri:a,Cf:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=ef(a)):a=b&&"segment"==b.g?Is(b.key(),b):cf(new O(2,1,9004,a));return a}
775
+ function Is(a,b){var c=new es;return ef(void 0).na(function(){return c.init()}).na(function(){return is(c,b.Sa(),b.Aa())}).na(function(d){return d.getSegments([b.key()])}).na(function(d){return{uri:b,data:d[0].data,headers:{}}})["finally"](function(){return c.destroy()})}J("shaka.offline.OfflineScheme",Gs);Gs.plugin=Hs;of("offline",Hs);function Js(a,b,c){var d,e,f,g,h,k;return I(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var r=!1,v=t(m),y=v.next();!y.done;y=v.next())if(y=y.value,Ks(y.info,p)){y.sessionIds.push(p.sessionId);r=!0;break}r||m.push({info:p,sessionIds:[p.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=Ls(a,b,g);return u(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)}})}
776
+ function Ls(a,b,c){var d,e;return I(function(f){switch(f.g){case 1:return d=new If({Ob:b,onError:function(){},xd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),A(f,2),d.configure(a),u(f,Qf(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:va(f,3);break;case 2:return F(f),u(f,d.destroy(),5);case 5:return f["return"]([]);case 3:return A(f,6),u(f,ag(d),8);case 8:va(f,7);break;case 6:return F(f),u(f,d.destroy(),
777
+ 9);case 9:return f["return"]([]);case 7:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return I(function(h){if(1==h.g)return A(h,2),u(h,bg(d,g),4);if(2!=h.g)return e.push(g),va(h,0);F(h);z(h)})})),10);case 10:return u(f,d.destroy(),11);case 11:return f["return"](e)}})}
778
+ function Ks(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&fc(a.audioCapabilities,b.audioCapabilities,c)&&fc(a.videoCapabilities,b.videoCapabilities,c)};function Ms(a,b,c){var d=b.presentationTimeline.getDuration();b=Ns(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Os(a,b){var c=As(new zs(a.Sa(),a.Aa()),b),d=b.appMetadata||{};c=Ns(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}}
779
+ function Ns(a){var b=[],c=ze(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(qe(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(re(c.value));return b};function Ps(){this.g={}}function Qs(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 Rs(a,b){a.g[b.id]=b.bandwidth||2048}function Ss(a,b){var c=a.g[b];null==c&&(c=0);return c};function Ts(a){var b=this;if(a&&a.constructor!=S)throw new O(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Gc()):(this.h=Tk(),this.g=new nf);this.i=[];this.j=[];var c=!a;this.l=new yf(function(){var d,e,f,g,h;return I(function(k){switch(k.g){case 1:return u(k,Promise.all(b.j.map(function(l){return Pr(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return u(k,Promise.all(e),3);case 3:if(!c){k.D(4);break}return u(k,b.g.destroy(),4);
780
+ case 4:b.h=null,b.g=null,z(k)}})})}function Us(){if(Oc())a:{var a=t(fs.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=Ts.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Qk(a,b));return Vk(this.h,a)};q.getConfiguration=function(){var a=Tk();Vk(a,this.h,Tk());return a};q.Gc=function(){return this.g};
781
+ q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Or(this.g);this.j.push(f);b=Vs(this,a,b||{},function(){var g;return I(function(h){if(1==h.g)return u(h,wg(a,d.g,e.manifest.retryParameters,c||null),2);g=h.h;return h["return"](g())})},e,f);b=new bf(b,function(){return Pr(f)});b["finally"](function(){dc(d.j,f)});return Ws(this,b)};
782
+ function Vs(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,v,y,x,w,D,B;return I(function(C){switch(C.g){case 1:return Xs(),h=g=null,k=new es,n=m=l=null,A(C,2,3),u(C,d(),5);case 5:return g=C.h,u(C,Ys(a,b,g,e),6);case 6:p=C.h;Zs(a);r=!p.presentationTimeline.U()&&!p.presentationTimeline.Lb();if(!r)throw new O(2,9,9005,b);return u(C,$s(a,p,function(G){n=n||G},e),7);case 7:h=C.h;Zs(a);if(n)throw n;return u(C,at(p,e),8);case 8:return u(C,k.init(),9);case 9:return Zs(a),u(C,gs(k),10);case 10:return l=C.h,Zs(a),v=bt(h,
783
+ p,b,c,e,f),y=v.Rg,x=v.Ne,u(C,l.Aa.addManifests([y]),11);case 11:w=C.h;Zs(a);m=w[0];Zs(a);if(n)throw n;return u(C,ct(a,x,m,y,f,e,l.Aa,p,h),12);case 12:return Zs(a),D=new xs("manifest",l.path.Sa,l.path.Aa,m),C["return"](Os(D,y));case 3:return wa(C),u(C,k.destroy(),13);case 13:if(!g){C.D(14);break}return u(C,g.stop(),14);case 14:if(!h){C.D(16);break}return u(C,h.destroy(),16);case 16:xa(C,0);break;case 2:B=F(C);if(null==m){C.D(18);break}return u(C,dt(m),18);case 18:throw n||B;}})}
784
+ function ct(a,b,c,d,e,f,g,h,k){var l,m,n,p,r,v,y,x,w,D;return I(function(B){switch(B.g){case 1:l={};m=0;n=function(C,G){var E,H,L,K,N,V,Z;return I(function(ea){if(1==ea.g){E={};H=t(C);for(L=H.next();!L.done;E={Eb:E.Eb},L=H.next())E.Eb=L.value,K=Lr(E.Eb,f),N=E.Eb.i,V=E.Eb.h,Z=function(ka){return function(Aa){var Ha,Ia,Na;return I(function(Oa){if(1==Oa.g)return u(Oa,g.addSegments([{data:Aa}]),2);Ha=Oa.h;Zs(a);Ia=ka.Eb.g;Na=Kr(Ia);l[Na]=Ha[0];m+=Aa.byteLength;z(Oa)})}}(E),Rr(e,E.Eb.groupId,K,N,V,Z);
785
+ return u(ea,Tr(e),2)}if(!G)return ea.D(0);Zs(a);et(h,d,k,f);return u(ea,g.updateManifest(c,d),0)})};p=!1;A(B,2);if(!ft(h)||!p||gt(h)){B.D(4);break}return u(B,n(b.filter(function(C){return C.h}),!0),5);case 5:return Zs(a),b=b.filter(function(C){return!C.h}),r=l,v=m,l={},m=0,u(B,ht(g,c,d,r,v,function(){return Zs(a)}),6);case 6:Zs(a);case 4:if(p){B.D(7);break}return u(B,n(b,!1),8);case 8:return Zs(a),y=l,x=m,l={},m=0,u(B,ht(g,c,d,y,x,function(){return Zs(a)}),9);case 9:Zs(a);case 7:va(B,0);break;case 2:return w=
786
+ F(B),D=Object.values(l),u(B,g.removeSegments(D,function(){}),10);case 10:throw w;}})}function dt(a){var b,c,d,e;return I(function(f){switch(f.g){case 1:return b=new es,u(f,b.init(),2);case 2:return u(f,gs(b),3);case 3:return c=f.h,d=new xs("manifest",c.path.Sa,c.path.Aa,a),u(f,b.destroy(),4);case 4:return e=new Ts,u(f,e.remove(d.toString()),0)}})}
787
+ function ht(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,v,y,x;return I(function(w){switch(w.g){case 1:g=!1;A(w,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),p=n.next();!p.done;p=n.next())r=p.value,v=r.pendingSegmentRefId?d[r.pendingSegmentRefId]:null,null!=v&&(r.dataKey=v,r.pendingSegmentRefId=void 0),v=r.pendingInitSegmentRefId?d[r.pendingInitSegmentRefId]:null,null!=v&&(r.initSegmentKey=v,r.pendingInitSegmentRefId=void 0),r.pendingSegmentRefId&&(h=!1),r.pendingInitSegmentRefId&&
788
+ (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return u(w,a.updateManifest(b,c),4);case 4:g=!0;f();va(w,0);break;case 2:return y=F(w),u(w,dt(b),5);case 5:if(g){w.D(6);break}x=Object.values(d);return u(w,a.removeSegments(x,function(){}),6);case 6:throw y;}})}
789
+ function at(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,v,y,x,w,D,B,C,G,E,H,L,K,N,V,Z,ea,ka;return I(function(Aa){switch(Aa.g){case 1:return c={width:Infinity,height:Infinity},$d(a,b.restrictions,c),u(Aa,de(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;Od(a,g,h,e,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(qe(m));n=t(a.textStreams);for(p=n.next();!p.done;p=n.next())r=
790
+ p.value,d.push(re(r));v=t(a.imageStreams);for(y=v.next();!y.done;y=v.next())x=y.value,d.push(se(x));return u(Aa,b.offline.trackSelectionCallback(d),3);case 3:w=Aa.h;D=a.presentationTimeline.getDuration();B=0;C=t(w);for(G=C.next();!G.done;G=C.next())E=G.value,H=E.bandwidth*D/8,B+=H;A(Aa,4);return u(Aa,b.offline.downloadSizeCallback(B),6);case 6:L=Aa.h;if(!L)throw new O(2,9,9014);va(Aa,5);break;case 4:K=F(Aa);if(K instanceof O)throw K;throw new O(2,9,9015);case 5:N=new Set;V=new Set;Z=new Set;ea=t(w);
791
+ for(G=ea.next();!G.done;G=ea.next())ka=G.value,"variant"==ka.type&&N.add(ka.id),"text"==ka.type&&V.add(ka.id),"image"==ka.type&&Z.add(ka.id);a.variants=a.variants.filter(function(Ha){return N.has(Ha.id)});a.textStreams=a.textStreams.filter(function(Ha){return V.has(Ha.id)});a.imageStreams=a.imageStreams.filter(function(Ha){return Z.has(Ha.id)});it(a);z(Aa)}})}
794
792
  function bt(a,b,c,d,e,f){var g=Ms(c,b,d),h=e.offline.progressCallback;Qr(f,function(r,v){g.size=v;h(g,r)},function(r,v){k&&e.offline.usePersistentLicense&&l==v&&Yf(a,"cenc",r)});var k=ft(b)&&!gt(b),l=null;k&&(l=jt.get(a.g.keySystem));for(var m=new Ps,n=t(b.textStreams),p=n.next();!p.done;p=n.next())m.g[p.value.id]=52;n=t(b.imageStreams);for(p=n.next();!p.done;p=n.next())Rs(m,p.value);p=t(b.variants);for(n=p.next();!n.done;n=p.next())Qs(m,n.value);m=kt(f,m,b,e);f=m.streams;m=m.Ne;p=a.g;n=e.offline.usePersistentLicense;
795
793
  p&&n&&(p.initData=[]);return{Rg:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Fc(),streams:f,sessionIds:n?fg(a):[],drmInfo:p,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode},Ne:m}}function ft(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
796
- function gt(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function et(a,b,c,d){b.expiration=c.Fc();c=fg(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(ft(a)&&d.offline.usePersistentLicense&&!c.length)throw new P(2,9,9007);}q.remove=function(a){return lt(this,mt(this,a))};
797
- function mt(a,b){var c,d,e,f,g,h;return J(function(k){switch(k.g){case 1:Xs();c=ys(b);if(null==c||"manifest"!=c.g)throw new P(2,9,9004,b);d=c;e=new es;ua(k);return z(k,e.init(),4);case 4:return z(k,is(e,d.Sa(),d.Ba()),5);case 5:return f=k.h,z(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],z(k,Promise.all([nt(a,h,e),ot(f,d,h)]),2);case 2:return wa(k),z(k,e.destroy(),8);case 8:ya(k,0)}})}
798
- function pt(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:wd(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:wd(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function nt(a,b,c){return J(function(d){return z(d,qt(a.g,a.h.drm,c,b),0)})}
794
+ function gt(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function et(a,b,c,d){b.expiration=c.Fc();c=fg(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(ft(a)&&d.offline.usePersistentLicense&&!c.length)throw new O(2,9,9007);}q.remove=function(a){return lt(this,mt(this,a))};
795
+ function mt(a,b){var c,d,e,f,g,h;return I(function(k){switch(k.g){case 1:Xs();c=ys(b);if(null==c||"manifest"!=c.g)throw new O(2,9,9004,b);d=c;e=new es;ua(k);return u(k,e.init(),4);case 4:return u(k,is(e,d.Sa(),d.Aa()),5);case 5:return f=k.h,u(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],u(k,Promise.all([nt(a,h,e),ot(f,d,h)]),2);case 2:return wa(k),u(k,e.destroy(),8);case 8:xa(k,0)}})}
796
+ function pt(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:wd(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:wd(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function nt(a,b,c){return I(function(d){return u(d,qt(a.g,a.h.drm,c,b),0)})}
799
797
  function ot(a,b,c){function d(){}var e=rt(c);Os(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.fh=function(){return lt(this,st(this))};
800
- function st(a){var b,c,d,e,f,g,h,k,l,m;return J(function(n){switch(n.g){case 1:return Xs(),b=a.g,c=a.h.drm,d=new es,e=!1,ua(n),z(n,d.init(),4);case 4:f=[],js(d,function(p){return f.push(p)}),g=t(f),h=g.next();case 5:if(h.done){n.D(2);break}k=h.value;return z(n,k.getAll(),8);case 8:return l=n.h,z(n,Js(c,b,l),9);case 9:return m=n.h,z(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.D(5);break;case 2:return wa(n),z(n,d.destroy(),11);case 11:ya(n,3);break;case 3:return n["return"](!e)}})}
801
- q.list=function(){return lt(this,tt())};function tt(){var a,b,c;return J(function(d){switch(d.g){case 1:return Xs(),a=[],b=new es,ua(d),z(d,b.init(),4);case 4:return c=Promise.resolve(),hs(b,function(e,f){c=c.then(function(){var g;return J(function(h){if(1==h.g)return z(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){var m=Os(new xs("manifest",e.Sa,e.Ba,l),k);a.push(m)});A(h)})})}),z(d,c,2);case 2:return wa(d),z(d,b.destroy(),6);case 6:ya(d,3);break;case 3:return d["return"](a)}})}
802
- function Ys(a,b,c,d){var e,f,g,h,k;return J(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,modifyManifestRequest:function(){},modifySegmentRequest:function(){},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(){}},c.configure(d.manifest),Zs(a),z(l,c.start(b,
803
- g),2);if(3!=l.g)return h=l.h,Zs(a),k=ut(h),z(l,Promise.all(gb(k,function(m){return m.createSegmentIndex()})),3);Zs(a);if(e)throw e;return l["return"](h)})}function $s(a,b,c,d){var e;return J(function(f){switch(f.g){case 1:return e=new If({Ob:a.g,onError:c,xd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),z(f,Nf(e,b.variants,d.offline.usePersistentLicense),2);case 2:return z(f,ag(e),3);case 3:return z(f,$f(e),4);case 4:return f["return"](e)}})}
798
+ function st(a){var b,c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:return Xs(),b=a.g,c=a.h.drm,d=new es,e=!1,ua(n),u(n,d.init(),4);case 4:f=[],js(d,function(p){return f.push(p)}),g=t(f),h=g.next();case 5:if(h.done){n.D(2);break}k=h.value;return u(n,k.getAll(),8);case 8:return l=n.h,u(n,Js(c,b,l),9);case 9:return m=n.h,u(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.D(5);break;case 2:return wa(n),u(n,d.destroy(),11);case 11:xa(n,3);break;case 3:return n["return"](!e)}})}
799
+ q.list=function(){return lt(this,tt())};function tt(){var a,b,c;return I(function(d){switch(d.g){case 1:return Xs(),a=[],b=new es,ua(d),u(d,b.init(),4);case 4:return c=Promise.resolve(),hs(b,function(e,f){c=c.then(function(){var g;return I(function(h){if(1==h.g)return u(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){var m=Os(new xs("manifest",e.Sa,e.Aa,l),k);a.push(m)});z(h)})})}),u(d,c,2);case 2:return wa(d),u(d,b.destroy(),6);case 6:xa(d,3);break;case 3:return d["return"](a)}})}
800
+ function Ys(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,modifyManifestRequest:function(){},modifySegmentRequest:function(){},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(){}},c.configure(d.manifest),Zs(a),u(l,c.start(b,
801
+ g),2);if(3!=l.g)return h=l.h,Zs(a),k=ut(h),u(l,Promise.all(gb(k,function(m){return m.createSegmentIndex()})),3);Zs(a);if(e)throw e;return l["return"](h)})}function $s(a,b,c,d){var e;return I(function(f){switch(f.g){case 1:return e=new If({Ob:a.g,onError:c,xd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),u(f,Nf(e,b.variants,d.offline.usePersistentLicense),2);case 2:return u(f,ag(e),3);case 3:return u(f,$f(e),4);case 4:return f["return"](e)}})}
804
802
  function kt(a,b,c,d){var e=new Map,f=ut(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=vt(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),Ne:Array.from(e.values())}}
805
803
  function vt(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,kind:d.kind,language:d.language,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount,audioSamplingRate:d.audioSamplingRate,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,
806
804
  tilesLayout:d.tilesLayout},h=e.offline.numberOfParallelDownloads,k=0;wt(d,c.presentationTimeline.ob(),function(l){var m=Kr(l),n=void 0;if(!f.has(m)){var p=l.endTime-l.startTime;p=Ss(b,d.id)*p;p=Nr(a.g,p);f.set(m,new Jr(l,p,k,!1))}l.i&&(n=Kr(l.i),f.has(n)||(p=.5*Ss(b,d.id),p=Nr(a.g,p),f.set(n,new Jr(l.i,p,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,
807
- tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function wt(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d),d=a.segmentIndex.get(++b)}function Zs(a){if(a.l.g)throw new P(2,9,7001);}function Xs(){if(!Us())throw new P(2,9,9E3);}function lt(a,b){return J(function(c){if(1==c.g)return a.i.push(b),ua(c),z(c,b,4);if(2!=c.g)return c["return"](c.h);wa(c);dc(a.i,b);return ya(c,0)})}
805
+ tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function wt(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d),d=a.segmentIndex.get(++b)}function Zs(a){if(a.l.g)throw new O(2,9,7001);}function Xs(){if(!Us())throw new O(2,9,9E3);}function lt(a,b){return I(function(c){if(1==c.g)return a.i.push(b),ua(c),u(c,b,4);if(2!=c.g)return c["return"](c.h);wa(c);dc(a.i,b);return xa(c,0)})}
808
806
  function Ws(a,b){var c=b.promise;a.i.push(c);return b["finally"](function(){dc(a.i,c)})}function rt(a){var b=new Set;a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
809
- function qt(a,b,c,d){var e,f,g;return J(function(h){if(1==h.g){if(!d.drmInfo)return h["return"]();e=ks(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:pt(d,!1),videoCapabilities:pt(d,!0)}});return z(h,Js(b,a,f),2)}return 3!=h.g?(g=h.h,z(h,e.remove(g),3)):z(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
807
+ function qt(a,b,c,d){var e,f,g;return I(function(h){if(1==h.g){if(!d.drmInfo)return h["return"]();e=ks(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:pt(d,!1),videoCapabilities:pt(d,!0)}});return u(h,Js(b,a,f),2)}return 3!=h.g?(g=h.h,u(h,e.remove(g),3)):u(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
810
808
  function ut(a){for(var b=new Set,c=t(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=t(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
811
- function it(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}M("shaka.offline.Storage",Ts);Ts.deleteAll=function(){var a;return J(function(b){return 1==b.g?(a=new es,ua(b),z(b,ls(a),2)):5!=b.g?(wa(b),z(b,a.destroy(),5)):ya(b,0)})};Ts.prototype.list=Ts.prototype.list;
809
+ function it(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}J("shaka.offline.Storage",Ts);Ts.deleteAll=function(){var a;return I(function(b){return 1==b.g?(a=new es,ua(b),u(b,ls(a),2)):5!=b.g?(wa(b),u(b,a.destroy(),5)):xa(b,0)})};Ts.prototype.list=Ts.prototype.list;
812
810
  Ts.prototype.removeEmeSessions=Ts.prototype.fh;Ts.prototype.remove=Ts.prototype.remove;Ts.prototype.store=Ts.prototype.store;Ts.prototype.getNetworkingEngine=Ts.prototype.Gc;Ts.prototype.getConfiguration=Ts.prototype.getConfiguration;Ts.prototype.configure=Ts.prototype.configure;Ts.prototype.destroy=Ts.prototype.destroy;Ts.support=Us;
813
811
  var jt=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");
814
- Cm.offline=Us;function xt(){}function yt(){for(var a=t(zt),b=a.next();!b.done;b=a.next()){b=b.value;try{b.Yf()}catch(c){Ua("Error installing polyfill!",c)}}}function At(a,b){for(var c={priority:b||0,Yf:a},d=0;d<zt.length;d++)if(zt[d].priority<c.priority){zt.splice(d,0,c);return}zt.push(c)}M("shaka.polyfill",xt);xt.register=At;xt.installAll=yt;var zt=[];function Bt(){}function Ct(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())Dt(b.value)}function Dt(a){var b="aria-"+a.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,a,{get:function(){return this.getAttribute(b)},set:function(c){null==c||void 0==c?this.removeAttribute(b):this.setAttribute(b,c)}})}xt.Aria=Bt;Bt.install=Ct;At(Ct);function Et(){}function Ft(){Gt()}xt.EncryptionScheme=Et;Et.install=Ft;At(Ft,-2);function Ht(){}
812
+ Cm.offline=Us;function xt(){}function yt(){for(var a=t(zt),b=a.next();!b.done;b=a.next()){b=b.value;try{b.Yf()}catch(c){Ua("Error installing polyfill!",c)}}}function At(a,b){for(var c={priority:b||0,Yf:a},d=0;d<zt.length;d++)if(zt[d].priority<c.priority){zt.splice(d,0,c);return}zt.push(c)}J("shaka.polyfill",xt);xt.register=At;xt.installAll=yt;var zt=[];function Bt(){}function Ct(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())Dt(b.value)}function Dt(a){var b="aria-"+a.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,a,{get:function(){return this.getAttribute(b)},set:function(c){null==c||void 0==c?this.removeAttribute(b):this.setAttribute(b,c)}})}xt.Aria=Bt;Bt.install=Ct;At(Ct);function Et(){}function Ft(){Gt()}xt.EncryptionScheme=Et;Et.install=Ft;At(Ft,-2);function Ht(){}
815
813
  function It(){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}}),
816
814
  Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Jt);document.addEventListener("webkitfullscreenerror",Jt);document.addEventListener("mozfullscreenchange",Jt);document.addEventListener("mozfullscreenerror",Jt);document.addEventListener("MSFullscreenChange",Jt);document.addEventListener("MSFullscreenError",Jt)}}
817
- function Jt(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)}xt.Fullscreen=Ht;Ht.install=It;At(It);function Kt(){}function Lt(){var a=!0;if(Yc()||Tc("PlayStation 5")||Zc()||Tc("Web0S")||Wc()||Tc("CrKey"))a=!1;Tc("CrKey")&&Tc("Android")&&(a=!0);a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Mt=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Nt)}
818
- function Nt(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,v,y,x;return J(function(w){switch(w.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return w["return"](b);if("media-source"==a.type){if(!Pc()||a.video&&(c=a.video.contentType,d=MediaSource.isTypeSupported(c),!d)||a.audio&&(e=a.audio.contentType,f=MediaSource.isTypeSupported(e),!f))return w["return"](b)}else if("file"==a.type){if(a.video&&(g=a.video.contentType,h=Qc(g),!h)||a.audio&&(k=a.audio.contentType,
819
- l=Qc(k),!l))return w["return"](b)}else return w["return"](b);if(!a.keySystemConfiguration)return b.supported=!0,w["return"](Promise.resolve(b));m=a.keySystemConfiguration;n=[];p=[];m.audio&&(r={robustness:m.audio.robustness||"",contentType:a.audio.contentType},n.push(r));m.video&&(v={robustness:m.video.robustness||"",contentType:a.video.contentType},p.push(v));y={initDataTypes:[m.initDataType],distinctiveIdentifier:m.distinctiveIdentifier,persistentState:m.persistentState,sessionTypes:m.sessionTypes};
820
- n.length&&(y.audioCapabilities=n);p.length&&(y.videoCapabilities=p);F(w,3);return z(w,navigator.requestMediaKeySystemAccess(m.keySystem,[y]),5);case 5:x=w.h;va(w,4);break;case 3:I(w);case 4:x&&(b.supported=!0,b.keySystemAccess=x);case 2:return w["return"](b)}})}xt.MediaCapabilities=Kt;Kt.install=Lt;var Mt=null;Kt.originalMcap=Mt;At(Lt,-1);function Ot(){}function Pt(){var a=$c();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?Qt():a?12>=a?(Rt(),St()):Rt():(Tc("Tizen 2")||Tc("Tizen 3")||Tc("Tizen 4"))&&Tt());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Ut()}
815
+ function Jt(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)}xt.Fullscreen=Ht;Ht.install=It;At(It);function Kt(){}function Lt(){var a=!0;if(Yc()||Sc("PlayStation 5")||Zc()||Sc("Web0S")||Wc()||Sc("CrKey"))a=!1;Sc("CrKey")&&Sc("Android")&&(a=!0);a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Mt=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Nt)}
816
+ function Nt(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,v,y,x;return I(function(w){switch(w.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return w["return"](b);if("media-source"==a.type){if(!Oc()||a.video&&(c=a.video.contentType,d=MediaSource.isTypeSupported(c),!d)||a.audio&&(e=a.audio.contentType,f=MediaSource.isTypeSupported(e),!f))return w["return"](b)}else if("file"==a.type){if(a.video&&(g=a.video.contentType,h=Pc(g),!h)||a.audio&&(k=a.audio.contentType,
817
+ l=Pc(k),!l))return w["return"](b)}else return w["return"](b);if(!a.keySystemConfiguration)return b.supported=!0,w["return"](Promise.resolve(b));m=a.keySystemConfiguration;n=[];p=[];m.audio&&(r={robustness:m.audio.robustness||"",contentType:a.audio.contentType},n.push(r));m.video&&(v={robustness:m.video.robustness||"",contentType:a.video.contentType},p.push(v));y={initDataTypes:[m.initDataType],distinctiveIdentifier:m.distinctiveIdentifier,persistentState:m.persistentState,sessionTypes:m.sessionTypes};
818
+ n.length&&(y.audioCapabilities=n);p.length&&(y.videoCapabilities=p);A(w,3);return u(w,navigator.requestMediaKeySystemAccess(m.keySystem,[y]),5);case 5:x=w.h;va(w,4);break;case 3:F(w);case 4:x&&(b.supported=!0,b.keySystemAccess=x);case 2:return w["return"](b)}})}xt.MediaCapabilities=Kt;Kt.install=Lt;var Mt=null;Kt.originalMcap=Mt;At(Lt,-1);function Ot(){}function Pt(){var a=$c();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?Qt():a?12>=a?(Rt(),St()):Rt():(Sc("Tizen 2")||Sc("Tizen 3")||Sc("Tizen 4"))&&Tt());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Ut()}
821
819
  function Rt(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Fa.apply(0,arguments));b.abort=function(){};return b}}function St(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function Tt(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=zd(b)[0]&&a(b)}}
822
820
  function Qt(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */);c.shift();return c.some(function(d){return d.startsWith("codecs=")})?cast.__platform__.canDisplayType(b):a(b)}}
823
- function Ut(){var a=MediaSource.isTypeSupported;Tc("Web0S")||(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)})}xt.MediaSource=Ot;Ot.install=Pt;At(Pt);function Vt(){}function Wt(){screen.orientation||void 0!=window.orientation&&Xt()}function Xt(){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 Yt;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new O("change");b.dispatchEvent(c)})}xt.Orientation=Vt;
824
- Vt.install=Wt;function Yt(){fb.call(this);this.type="";this.angle=0}u(Yt,fb);
821
+ function Ut(){var a=MediaSource.isTypeSupported;Sc("Web0S")||(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)})}xt.MediaSource=Ot;Ot.install=Pt;At(Pt);function Vt(){}function Wt(){screen.orientation||void 0!=window.orientation&&Xt()}function Xt(){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 Yt;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new M("change");b.dispatchEvent(c)})}xt.Orientation=Vt;
822
+ Vt.install=Wt;function Yt(){fb.call(this);this.type="";this.angle=0}qa(Yt,fb);
825
823
  Yt.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)};
826
- Yt.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};At(Wt);function Zt(){}function $t(a,b){try{var c=new au(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function bu(a){var b=this.mediaKeys;b&&b!=a&&cu(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?cu(a,this):Promise.resolve()}function du(a){a=Fc(a.initData);if(Ic(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=ed(a.subarray(4),!0);a=hd(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Gc(a);this.dispatchEvent(b)}
824
+ Yt.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};At(Wt);function Zt(){}function $t(a,b){try{var c=new au(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function bu(a){var b=this.mediaKeys;b&&b!=a&&cu(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?cu(a,this):Promise.resolve()}function du(a){a=Ec(a.initData);if(Hc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=ed(a.subarray(4),!0);a=hd(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Fc(a);this.dispatchEvent(b)}
827
825
  xt.PatchedMediaKeysApple=Zt;Zt.install=function(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=bu,window.MediaKeys=eu,window.MediaKeySystemAccess=au,navigator.requestMediaKeySystemAccess=$t,window.shakaMediaKeysPolyfill=!0)};
828
826
  function au(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(var c=t(b),d=c.next();!d.done;d=c.next()){var e=d.value;if("required"==e.persistentState)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=t(e.audioCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
829
827
  k.contentType.split(";")[0])&&(d.audioCapabilities.push(k),g=!0));if(e.videoCapabilities)for(e=t(e.videoCapabilities),k=e.next();!k.done;k=e.next())h=k.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));d=g?d:null}if(d){this.g=d;return}}c=Error("Unsupported keySystem");c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}
830
828
  au.prototype.createMediaKeys=function(){var a=new eu(this.keySystem);return Promise.resolve(a)};au.prototype.getConfiguration=function(){return this.g};function eu(a){this.h=new WebKitMediaKeys(a);this.g=new Af}eu.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new fu(this.h,a)};eu.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
831
- function cu(a,b){a.g.Qb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",du);try{return Oi(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function fu(a){fb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Af;this.sessionId="";this.expiration=NaN;this.closed=new Mc;this.keyStatuses=new gu}u(fu,fb);q=fu.prototype;
832
- q.generateRequest=function(a,b){var c=this;this.h=new Mc;try{var d=this.l.createSession("video/mp4",Fc(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.ec()?"license-request":"license-renewal").set("message",Gc(e.message));e=new O("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(hu(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
829
+ function cu(a,b){a.g.Qb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",du);try{return Oi(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function fu(a){fb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Af;this.sessionId="";this.expiration=NaN;this.closed=new Lc;this.keyStatuses=new gu}qa(fu,fb);q=fu.prototype;
830
+ q.generateRequest=function(a,b){var c=this;this.h=new Lc;try{var d=this.l.createSession("video/mp4",Ec(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.ec()?"license-request":"license-renewal").set("message",Fc(e.message));e=new M("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(hu(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
833
831
  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:hu(c,"output-not-allowed");break;default:hu(c,"internal-error")}});hu(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
834
- q.update=function(a){this.g=new Mc;try{this.i.update(Fc(a))}catch(b){this.g.reject(b)}return this.g};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Qb()}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 hu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new O("keystatuseschange");a.dispatchEvent(c)}
835
- function gu(){this.size=0;this.g=void 0}q=gu.prototype;q.ec=function(){return this.g};q.forEach=function(a){this.g&&a(this.g,ug.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ug.value();return this.g&&Dc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};function iu(){}function ju(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=ku,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=lu,window.MediaKeys=mu,window.MediaKeySystemAccess=nu,window.shakaMediaKeysPolyfill=!0)}function ku(){return Promise.reject(Error("The key system specified is not supported."))}
832
+ q.update=function(a){this.g=new Lc;try{this.i.update(Ec(a))}catch(b){this.g.reject(b)}return this.g};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Qb()}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 hu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new M("keystatuseschange");a.dispatchEvent(c)}
833
+ function gu(){this.size=0;this.g=void 0}q=gu.prototype;q.ec=function(){return this.g};q.forEach=function(a){this.g&&a(this.g,ug.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ug.value();return this.g&&Cc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};function iu(){}function ju(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=ku,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=lu,window.MediaKeys=mu,window.MediaKeySystemAccess=nu,window.shakaMediaKeysPolyfill=!0)}function ku(){return Promise.reject(Error("The key system specified is not supported."))}
836
834
  function lu(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}xt.PatchedMediaKeysNop=iu;iu.install=ju;function mu(){throw new TypeError("Illegal constructor.");}mu.prototype.createSession=function(){};mu.prototype.setServerCertificate=function(){};function nu(){this.keySystem="";throw new TypeError("Illegal constructor.");}nu.prototype.getConfiguration=function(){};nu.prototype.createMediaKeys=function(){};At(ju,-10);function ou(){}
837
835
  function pu(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)qu="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=ru;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=su;window.MediaKeys=tu;window.MediaKeySystemAccess=uu;window.shakaMediaKeysPolyfill=!0}}
838
836
  function vu(a){var b=qu;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function ru(a,b){try{var c=new uu(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function su(a){var b=this.mediaKeys;b&&b!=a&&wu(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&wu(a,this);return Promise.resolve()}xt.PatchedMediaKeysWebkit=ou;ou.install=pu;
839
837
  function uu(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");for(var f=t(b),g=f.next();!g.done;g=f.next()){g=g.value;var h={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:g.initDataTypes,sessionTypes:["temporary"],label:g.label},k=!1;if(g.audioCapabilities)for(var l=t(g.audioCapabilities),
840
838
  m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType.split(";")[0],this.g)&&(h.audioCapabilities.push(m),d=!0));if(g.videoCapabilities)for(l=t(g.videoCapabilities),m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType,this.g)&&(h.videoCapabilities.push(m),d=!0));k||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==g.persistentState&&(c?(h.persistentState="required",h.sessionTypes=["persistent-license"]):
841
839
  d=!1);if(d){this.h=h;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";c=Error(c);c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}uu.prototype.createMediaKeys=function(){var a=new tu(this.g);return Promise.resolve(a)};uu.prototype.getConfiguration=function(){return this.h};function tu(a){this.l=a;this.h=null;this.g=new Af;this.i=[];this.j=new Map}
842
- function wu(a,b){a.h=b;a.g.Qb();var c=qu;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Gc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=xu(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.ec()?"licenserequest":"licenserenewal").set("message",d.message),d=new O("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=xu(a,d.sessionId))yu(d,"usable"),
840
+ function wu(a,b){a.h=b;a.g.Qb();var c=qu;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Fc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=xu(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.ec()?"licenserequest":"licenserenewal").set("message",d.message),d=new M("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=xu(a,d.sessionId))yu(d,"usable"),
843
841
  d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=xu(a,d.sessionId);e&&e.handleError(d)}))}tu.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 zu(b,this.l,a);this.i.push(a);return a};tu.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
844
- function xu(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 zu(a,b,c){fb.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 Mc;this.keyStatuses=new Au}u(zu,fb);q=zu.prototype;
842
+ function xu(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 zu(a,b,c){fb.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 Lc;this.keyStatuses=new Au}qa(zu,fb);q=zu.prototype;
845
843
  q.handleError=function(a){var b=Error("EME v0.1b key error"),c=a.errorCode;c.systemCode=a.systemCode;b.errorCode=c;!a.sessionId&&this.h?(45==a.systemCode&&(b.message="Unsupported session type."),this.h.reject(b),this.h=null):a.sessionId&&this.g?(this.g.reject(b),this.g=null):(b=a.systemCode,a.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?yu(this,"output-restricted"):1==b?yu(this,"expired"):yu(this,"internal-error"))};
846
- function Bu(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=Fc(hd("LOAD_SESSION|"+c));else{var e=hd("PERSISTENT|");d=pd(e,b)}else d=Fc(b)}catch(g){return Promise.reject(g)}a.h=new Mc;var f=vu("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new Q(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).T(.01)}return a.h}
847
- function Cu(a,b,c){if(a.g)a.g.then(function(){return Cu(a,b,c)})["catch"](function(){return Cu(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=dd(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=md(e.keys[0].k);e=md(e.keys[0].kid)}else d=Fc(c),e=null;var f=vu("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
848
- function yu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new O("keystatuseschange");a.dispatchEvent(c)}q.generateRequest=function(a,b){return Bu(this,b,null)};q.load=function(a){return"persistent-license"==this.l?Bu(this,null,a):Promise.reject(Error("Not a persistent session."))};q.update=function(a){var b=new Mc;Cu(this,b,a);return b};
844
+ function Bu(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=Ec(hd("LOAD_SESSION|"+c));else{var e=hd("PERSISTENT|");d=pd(e,b)}else d=Ec(b)}catch(g){return Promise.reject(g)}a.h=new Lc;var f=vu("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new P(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).T(.01)}return a.h}
845
+ function Cu(a,b,c){if(a.g)a.g.then(function(){return Cu(a,b,c)})["catch"](function(){return Cu(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=dd(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=md(e.keys[0].k);e=md(e.keys[0].kid)}else d=Ec(c),e=null;var f=vu("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
846
+ function yu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new M("keystatuseschange");a.dispatchEvent(c)}q.generateRequest=function(a,b){return Bu(this,b,null)};q.load=function(a){return"persistent-license"==this.l?Bu(this,null,a):Promise.reject(Error("Not a persistent session."))};q.update=function(a){var b=new Lc;Cu(this,b,a);return b};
849
847
  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=vu("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 Au(){this.size=0;this.g=void 0}q=Au.prototype;q.ec=function(){return this.g};
850
- q.forEach=function(a){this.g&&a(this.g,ug.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ug.value();return this.g&&Dc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var qu="";At(pu);function Du(){}function Eu(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Fu,Object.defineProperty(a,"disablePictureInPicture",{get:Gu,set:Hu,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Iu,document.addEventListener("webkitpresentationmodechanged",Ju,!0))}}
848
+ q.forEach=function(a){this.g&&a(this.g,ug.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ug.value();return this.g&&Cc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var qu="";At(pu);function Du(){}function Eu(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Fu,Object.defineProperty(a,"disablePictureInPicture",{get:Gu,set:Hu,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Iu,document.addEventListener("webkitpresentationmodechanged",Ju,!0))}}
851
849
  function Ju(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)}
852
850
  function Fu(){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 Iu(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
853
- function Gu(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Hu(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}xt.PiPWebkit=Du;Du.install=Eu;At(Eu);function Ku(){}function Lu(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Mu))}function Mu(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}xt.RandomUUID=Ku;Ku.install=Lu;At(Lu);function Nu(){}function Ou(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Pu)}function Pu(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}xt.StorageEstimate=Nu;Nu.install=Ou;At(Ou);function Qu(){}function Ru(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Su})}function Su(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}xt.Symbol=Qu;Qu.install=Ru;At(Ru);function Tu(){}function Uu(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}}xt.VideoPlayPromise=Tu;Tu.install=Uu;At(Uu);function Vu(){}function Wu(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Xc())&&(a.getVideoPlaybackQuality=Xu)}}function Xu(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}xt.VideoPlaybackQuality=Vu;Vu.install=Wu;At(Wu);function Yu(){}function Zu(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=$u;else if(6==b)a=av;else{try{var c=!!$u(1,2,"")}catch(d){c=!1}c&&(a=$u)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function $u(a,b,c){return new window.TextTrackCue(a,b,c)}function av(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}xt.VTTCue=Yu;Yu.install=Zu;At(Zu);function bv(){}bv.prototype.parseInit=function(){};bv.prototype.setSequenceMode=function(){};bv.prototype.parseMedia=function(a,b){var c=null,d=[],e=dd(a).split(/\r?\n/);e=t(e);for(var f=e.next();!f.done;f=e.next())if((f=f.value)&&!/^\s+$/.test(f)&&(f=cv.exec(f))){var g=dv.exec(f[1]);g=60*parseInt(g[1],10)+parseFloat(g[2].replace(",","."));f=new gc(g,b.segmentEnd?b.segmentEnd:g+2,f[2]);c&&(c.endTime=g,d.push(c));c=f}c&&d.push(c);return d};M("shaka.text.LrcTextParser",bv);bv.prototype.parseMedia=bv.prototype.parseMedia;
851
+ function Gu(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Hu(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}xt.PiPWebkit=Du;Du.install=Eu;At(Eu);function Ku(){}function Lu(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Mu))}function Mu(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}xt.RandomUUID=Ku;Ku.install=Lu;At(Lu);function Nu(){}function Ou(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Pu)}function Pu(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}xt.StorageEstimate=Nu;Nu.install=Ou;At(Ou);function Qu(){}function Ru(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Su})}function Su(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}xt.Symbol=Qu;Qu.install=Ru;At(Ru);function Tu(){}function Uu(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}}xt.VideoPlayPromise=Tu;Tu.install=Uu;At(Uu);function Vu(){}function Wu(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Xc())&&(a.getVideoPlaybackQuality=Xu)}}function Xu(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}xt.VideoPlaybackQuality=Vu;Vu.install=Wu;At(Wu);function Yu(){}function Zu(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=$u;else if(6==b)a=av;else{try{var c=!!$u(1,2,"")}catch(d){c=!1}c&&(a=$u)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function $u(a,b,c){return new window.TextTrackCue(a,b,c)}function av(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}xt.VTTCue=Yu;Yu.install=Zu;At(Zu);function bv(){}bv.prototype.parseInit=function(){};bv.prototype.setSequenceMode=function(){};bv.prototype.parseMedia=function(a,b){var c=null,d=[],e=dd(a).split(/\r?\n/);e=t(e);for(var f=e.next();!f.done;f=e.next())if((f=f.value)&&!/^\s+$/.test(f)&&(f=cv.exec(f))){var g=dv.exec(f[1]);g=60*parseInt(g[1],10)+parseFloat(g[2].replace(",","."));f=new hc(g,b.segmentEnd?b.segmentEnd:g+2,f[2]);c&&(c.endTime=g,d.push(c));c=f}c&&d.push(c);return d};J("shaka.text.LrcTextParser",bv);bv.prototype.parseMedia=bv.prototype.parseMedia;
854
852
  bv.prototype.setSequenceMode=bv.prototype.setSequenceMode;bv.prototype.parseInit=bv.prototype.parseInit;var cv=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,dv=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Dd["application/x-subtitle-lrc"]=function(){return new bv};function ev(){}ev.prototype.parseInit=function(){};ev.prototype.setSequenceMode=function(){};
855
- ev.prototype.parseMedia=function(a,b){var c=dd(a),d=[],e=new DOMParser,f=null;if(""==c)return d;try{f=e.parseFromString(c,"text/xml")}catch(B){throw new P(2,2,2005,"Failed to parse TTML.");}if(f){if(c=f.getElementsByTagName("parsererror")[0])throw new P(2,2,2005,c.textContent);var g=f.getElementsByTagName("tt")[0];if(!g)throw new P(2,2,2005,"TTML does not contain <tt> tag.");f=g.getElementsByTagName("body")[0];if(!f)return[];var h=eo(g,fv,"frameRate"),k=eo(g,fv,"subFrameRate"),l=eo(g,fv,"frameRateMultiplier"),
856
- m=eo(g,fv,"tickRate"),n=eo(g,fv,"cellResolution");c=g.getAttribute("xml:space")||"default";e=eo(g,gv,"extent");if("default"!=c&&"preserve"!=c)throw new P(2,2,2005,"Invalid xml:space value: "+c);c="default"==c;h=new hv(h,k,l,m);n=n?(n=/^(\d+) (\d+)$/.exec(n))?{columns:parseInt(n[1],10),rows:parseInt(n[2],10)}:null:null;k=(k=g.getElementsByTagName("metadata")[0])?bo(k):[];l=Array.from(g.getElementsByTagName("style"));g=Array.from(g.getElementsByTagName("region"));m=[];for(var p=t(g),r=p.next();!r.done;r=
857
- p.next()){var v=r.value;r=new ic;var y=v.getAttribute("xml:id");if(y){r.id=y;var x=null;e&&(x=iv.exec(e)||jv.exec(e));y=x?Number(x[1]):null;x=x?Number(x[2]):null;var w,D;if(w=kv(v,l,"extent"))w=(D=iv.exec(w))||jv.exec(w),null!=w&&(r.width=Number(w[1]),r.height=Number(w[2]),D||(null!=y&&(r.width=100*r.width/y),null!=x&&(r.height=100*r.height/x)),r.widthUnits=D||null!=y?Ac:0,r.heightUnits=D||null!=x?Ac:0);if(v=kv(v,l,"origin"))w=(D=iv.exec(v))||jv.exec(v),null!=w&&(r.viewportAnchorX=Number(w[1]),r.viewportAnchorY=
858
- Number(w[2]),D||(null!=x&&(r.viewportAnchorY=100*r.viewportAnchorY/x),null!=y&&(r.viewportAnchorX=100*r.viewportAnchorX/y)),r.viewportAnchorUnits=D||null!=y?Ac:0)}else r=null;r&&m.push(r)}if(Zn(f,"p").length)throw new P(2,2,2001,"<p> can only be inside <div> in TTML");e=t(Zn(f,"div"));for(p=e.next();!p.done;p=e.next())if(Zn(p.value,"span").length)throw new P(2,2,2001,"<span> can only be inside <p> in TTML");(f=lv(f,b.periodStart,h,k,l,g,m,c,n,null,!1))&&d.push(f)}return d};
853
+ ev.prototype.parseMedia=function(a,b){var c=dd(a),d=[],e=new DOMParser,f=null;if(""==c)return d;try{f=e.parseFromString(c,"text/xml")}catch(B){throw new O(2,2,2005,"Failed to parse TTML.");}if(f){if(c=f.getElementsByTagName("parsererror")[0])throw new O(2,2,2005,c.textContent);var g=f.getElementsByTagName("tt")[0];if(!g)throw new O(2,2,2005,"TTML does not contain <tt> tag.");f=g.getElementsByTagName("body")[0];if(!f)return[];var h=eo(g,fv,"frameRate"),k=eo(g,fv,"subFrameRate"),l=eo(g,fv,"frameRateMultiplier"),
854
+ m=eo(g,fv,"tickRate"),n=eo(g,fv,"cellResolution");c=g.getAttribute("xml:space")||"default";e=eo(g,gv,"extent");if("default"!=c&&"preserve"!=c)throw new O(2,2,2005,"Invalid xml:space value: "+c);c="default"==c;h=new hv(h,k,l,m);n=n?(n=/^(\d+) (\d+)$/.exec(n))?{columns:parseInt(n[1],10),rows:parseInt(n[2],10)}:null:null;k=(k=g.getElementsByTagName("metadata")[0])?bo(k):[];l=Array.from(g.getElementsByTagName("style"));g=Array.from(g.getElementsByTagName("region"));m=[];for(var p=t(g),r=p.next();!r.done;r=
855
+ p.next()){var v=r.value;r=new jc;var y=v.getAttribute("xml:id");if(y){r.id=y;var x=null;e&&(x=iv.exec(e)||jv.exec(e));y=x?Number(x[1]):null;x=x?Number(x[2]):null;var w,D;if(w=kv(v,l,"extent"))w=(D=iv.exec(w))||jv.exec(w),null!=w&&(r.width=Number(w[1]),r.height=Number(w[2]),D||(null!=y&&(r.width=100*r.width/y),null!=x&&(r.height=100*r.height/x)),r.widthUnits=D||null!=y?zc:0,r.heightUnits=D||null!=x?zc:0);if(v=kv(v,l,"origin"))w=(D=iv.exec(v))||jv.exec(v),null!=w&&(r.viewportAnchorX=Number(w[1]),r.viewportAnchorY=
856
+ Number(w[2]),D||(null!=x&&(r.viewportAnchorY=100*r.viewportAnchorY/x),null!=y&&(r.viewportAnchorX=100*r.viewportAnchorX/y)),r.viewportAnchorUnits=D||null!=y?zc:0)}else r=null;r&&m.push(r)}if(Zn(f,"p").length)throw new O(2,2,2001,"<p> can only be inside <div> in TTML");e=t(Zn(f,"div"));for(p=e.next();!p.done;p=e.next())if(Zn(p.value,"span").length)throw new O(2,2,2001,"<span> can only be inside <p> in TTML");(f=lv(f,b.periodStart,h,k,l,g,m,c,n,null,!1))&&d.push(f)}return d};
859
857
  function lv(a,b,c,d,e,f,g,h,k,l,m){var n=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var p=document.createElement("span");p.textContent=a.textContent}else p=a;for(var r=null,v=t(mv),y=v.next();!y.done&&!(r=nv(p,"backgroundImage",d,"#",y.value)[0]);y=v.next());v=m;if("p"==a.nodeName||r)m=!0;h="default"==(p.getAttribute("xml:space")||(h?"default":"preserve"));y=Array.from(p.childNodes).every(function(C){return C.nodeType==Node.TEXT_NODE});
860
858
  a=[];if(!y)for(var x=t(p.childNodes),w=x.next();!w.done;w=x.next())(w=lv(w.value,b,c,d,e,f,g,h,k,p,m))&&a.push(w);d=null!=l;x=/\S/.test(p.textContent);var D=p.hasAttribute("begin")||p.hasAttribute("end")||p.hasAttribute("dur");if(!(D||x||"br"==p.tagName||0!=a.length||d&&!h))return null;w=ov(p,c);x=w.start;for(w=w.end;n&&n.nodeType==Node.ELEMENT_NODE&&"tt"!=n.tagName;)w=pv(n,c,x,w),x=w.start,w=w.end,n=n.parentNode;null==x&&(x=0);x+=b;w=null==w?Infinity:w+b;if(!D&&0<a.length)for(x=Infinity,w=0,b=t(a),
861
- c=b.next();!c.done;c=b.next())c=c.value,x=Math.min(x,c.startTime),w=Math.max(w,c.endTime);if("br"==p.tagName)return e=new gc(x,w,""),e.lineBreak=!0,e;b="";y&&(b=p.textContent,h&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new gc(x,w,b);b.nestedCues=a;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=nv(p,"region",f,"")[0];if(p.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var B=k.getAttribute("xml:id");b.region=g.filter(function(C){return C.id==B})[0]}g=k;l&&d&&!p.getAttribute("region")&&!p.getAttribute("style")&&
859
+ c=b.next();!c.done;c=b.next())c=c.value,x=Math.min(x,c.startTime),w=Math.max(w,c.endTime);if("br"==p.tagName)return e=new hc(x,w,""),e.lineBreak=!0,e;b="";y&&(b=p.textContent,h&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new hc(x,w,b);b.nestedCues=a;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=nv(p,"region",f,"")[0];if(p.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var B=k.getAttribute("xml:id");b.region=g.filter(function(C){return C.id==B})[0]}g=k;l&&d&&!p.getAttribute("region")&&!p.getAttribute("style")&&
862
860
  (g=nv(l,"region",f,"")[0]);qv(b,p,g,r,e,v,0==a.length);return b}
863
- function qv(a,b,c,d,e,f,g){f=f||g;"rtl"==rv(b,c,e,"direction",f)&&(a.direction="rtl");g=rv(b,c,e,"writingMode",f);"tb"==g||"tblr"==g?a.writingMode="vertical-lr":"tbrl"==g?a.writingMode="vertical-rl":"rltb"==g||"rl"==g?a.direction="rtl":g&&(a.direction=hc);(g=rv(b,c,e,"textAlign",!0))?(a.positionAlign=sv[g],a.lineAlign=tv[g],a.textAlign=sc[g.toUpperCase()]):a.textAlign=kc;if(g=rv(b,c,e,"displayAlign",!0))a.displayAlign=tc[g.toUpperCase()];if(g=rv(b,c,e,"color",f))a.color=g;if(g=rv(b,c,e,"backgroundColor",
864
- f))a.backgroundColor=g;if(g=rv(b,c,e,"border",f))a.border=g;if(g=rv(b,c,e,"fontFamily",f))a.fontFamily=g;(g=rv(b,c,e,"fontWeight",f))&&"bold"==g&&(a.fontWeight=700);g=rv(b,c,e,"wrapOption",f);a.wrapLine=g&&"noWrap"==g?!1:!0;(g=rv(b,c,e,"lineHeight",f))&&g.match(uv)&&(a.lineHeight=g);(g=rv(b,c,e,"fontSize",f))&&(g.match(uv)||g.match(vv))&&(a.fontSize=g);if(g=rv(b,c,e,"fontStyle",f))a.fontStyle=zc[g.toUpperCase()];if(d){g=d.getAttribute("imageType")||d.getAttribute("imagetype");var h=d.getAttribute("encoding");
861
+ function qv(a,b,c,d,e,f,g){f=f||g;"rtl"==rv(b,c,e,"direction",f)&&(a.direction="rtl");g=rv(b,c,e,"writingMode",f);"tb"==g||"tblr"==g?a.writingMode="vertical-lr":"tbrl"==g?a.writingMode="vertical-rl":"rltb"==g||"rl"==g?a.direction="rtl":g&&(a.direction=ic);(g=rv(b,c,e,"textAlign",!0))?(a.positionAlign=sv[g],a.lineAlign=tv[g],a.textAlign=tc[g.toUpperCase()]):a.textAlign=lc;if(g=rv(b,c,e,"displayAlign",!0))a.displayAlign=uc[g.toUpperCase()];if(g=rv(b,c,e,"color",f))a.color=g;if(g=rv(b,c,e,"backgroundColor",
862
+ f))a.backgroundColor=g;if(g=rv(b,c,e,"border",f))a.border=g;if(g=rv(b,c,e,"fontFamily",f))a.fontFamily=g;(g=rv(b,c,e,"fontWeight",f))&&"bold"==g&&(a.fontWeight=700);g=rv(b,c,e,"wrapOption",f);a.wrapLine=g&&"noWrap"==g?!1:!0;(g=rv(b,c,e,"lineHeight",f))&&g.match(uv)&&(a.lineHeight=g);(g=rv(b,c,e,"fontSize",f))&&(g.match(uv)||g.match(vv))&&(a.fontSize=g);if(g=rv(b,c,e,"fontStyle",f))a.fontStyle=yc[g.toUpperCase()];if(d){g=d.getAttribute("imageType")||d.getAttribute("imagetype");var h=d.getAttribute("encoding");
865
863
  d=d.textContent.trim();"PNG"==g&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)}if(d=rv(b,c,e,"textOutline",f))d=d.split(" "),d[0].match(uv)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(uv)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=rv(b,c,e,"letterSpacing",f))&&d.match(uv)&&(a.letterSpacing=d);(d=rv(b,c,e,"linePadding",f))&&d.match(uv)&&(a.linePadding=d);if(f=rv(b,c,e,"opacity",f))a.opacity=parseFloat(f);(c=kv(c,e,"textDecoration"))&&wv(a,c);(b=
866
864
  xv(b,e,"textDecoration"))&&wv(a,b)}
867
865
  function wv(a,b){for(var c=t(b.split(" ")),d=c.next();!d.done;d=c.next())switch(d.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&dc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&dc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
@@ -869,61 +867,61 @@ a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.inclu
869
867
  function yv(a,b,c){a=nv(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=co(a[e],"urn:ebu:tt:style",c);f||(f=eo(a[e],gv,c));f||(f=xv(a[e],b,c));f&&(d=f)}return d}
870
868
  function nv(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?co(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.getAttribute("xml:id")==e){f.push(g);break}return f}function pv(a,b,c,d){a=ov(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}}
871
869
  function ov(a,b){var c=zv(a.getAttribute("begin"),b),d=zv(a.getAttribute("end"),b),e=zv(a.getAttribute("dur"),b);null==d&&null!=e&&(d=c+e);return{start:c,end:d}}
872
- function zv(a,b){var c=null;if(Av.test(a)){c=Av.exec(a);var d=Number(c[1]),e=Number(c[2]),f=Number(c[3]),g=Number(c[4]);g+=(Number(c[5])||0)/b.h;f+=g/b.frameRate;c=f+60*e+3600*d}else if(Bv.test(a))c=Cv(Bv,a);else if(Dv.test(a))c=Cv(Dv,a);else if(Ev.test(a))c=Ev.exec(a),c=Number(c[1])/b.frameRate;else if(Fv.test(a))c=Fv.exec(a),c=Number(c[1])/b.g;else if(Gv.test(a))c=Cv(Gv,a);else if(a)throw new P(2,2,2001,"Could not parse cue time range in TTML");return c}
873
- function Cv(a,b){var c=a.exec(b);return null==c||""==c[0]?null:(Number(c[4])||0)/1E3+(Number(c[3])||0)+60*(Number(c[2])||0)+3600*(Number(c[1])||0)}M("shaka.text.TtmlTextParser",ev);ev.prototype.parseMedia=ev.prototype.parseMedia;ev.prototype.setSequenceMode=ev.prototype.setSequenceMode;ev.prototype.parseInit=ev.prototype.parseInit;
870
+ function zv(a,b){var c=null;if(Av.test(a)){c=Av.exec(a);var d=Number(c[1]),e=Number(c[2]),f=Number(c[3]),g=Number(c[4]);g+=(Number(c[5])||0)/b.h;f+=g/b.frameRate;c=f+60*e+3600*d}else if(Bv.test(a))c=Cv(Bv,a);else if(Dv.test(a))c=Cv(Dv,a);else if(Ev.test(a))c=Ev.exec(a),c=Number(c[1])/b.frameRate;else if(Fv.test(a))c=Fv.exec(a),c=Number(c[1])/b.g;else if(Gv.test(a))c=Cv(Gv,a);else if(a)throw new O(2,2,2001,"Could not parse cue time range in TTML");return c}
871
+ function Cv(a,b){var c=a.exec(b);return null==c||""==c[0]?null:(Number(c[4])||0)/1E3+(Number(c[3])||0)+60*(Number(c[2])||0)+3600*(Number(c[1])||0)}J("shaka.text.TtmlTextParser",ev);ev.prototype.parseMedia=ev.prototype.parseMedia;ev.prototype.setSequenceMode=ev.prototype.setSequenceMode;ev.prototype.parseInit=ev.prototype.parseInit;
874
872
  function hv(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]))}
875
- var iv=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,vv=/^(\d{1,2}(?:\.\d+)?|100)%$/,uv=/^(\d+px|\d+em|\d*\.?\d+c)$/,jv=/^(\d+)px (\d+)px$/,Av=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Bv=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Dv=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Ev=/^(\d*(?:\.\d*)?)f$/,Fv=/^(\d*(?:\.\d*)?)t$/,Gv=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),tv={left:nc,center:"center",right:"end",start:nc,
876
- end:"end"},sv={left:"line-left",center:"center",right:"line-right"},fv=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],gv=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],mv=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Dd["application/ttml+xml"]=function(){return new ev};function Hv(){this.g=new ev}Hv.prototype.parseInit=function(a){var b=!1;(new Eg).box("moov",Ig).box("trak",Ig).box("mdia",Ig).box("minf",Ig).box("stbl",Ig).Y("stsd",Kg).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new P(2,2,2007);};Hv.prototype.setSequenceMode=function(){};Hv.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new Eg).box("mdat",Lg(function(f){d=!0;e=e.concat(c.g.parseMedia(f,b))})).parse(a,!1);if(!d)throw new P(2,2,2007);return e};
877
- M("shaka.text.Mp4TtmlParser",Hv);Hv.prototype.parseMedia=Hv.prototype.parseMedia;Hv.prototype.setSequenceMode=Hv.prototype.setSequenceMode;Hv.prototype.parseInit=Hv.prototype.parseInit;Dd['application/mp4; codecs="stpp"']=function(){return new Hv};Dd['application/mp4; codecs="stpp.ttml"']=function(){return new Hv};Dd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Hv};Dd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Hv};function Iv(){this.g=!1}Iv.prototype.parseInit=function(){};Iv.prototype.setSequenceMode=function(a){this.g=a};
878
- Iv.prototype.parseMedia=function(a,b){var c=dd(a);c=c.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var d=c.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(d[0]))throw new P(2,2,2E3);c=b.vttOffset;if(d[0].includes("X-TIMESTAMP-MAP")&&this.g){var e=d[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),f=d[0].match(/MPEGTS:(\d+)/m);if(e&&f){c=Jv(new tq(e[1]));if(null==c)throw new P(2,2,2E3);f=Number(f[1]);for(e=b.segmentStart;95443.7176888889<=e;)e-=95443.7176888889,f+=8589934592;c=b.periodStart+f/9E4-
879
- c}}f=[];e=t(d[0].split("\n"));for(var g=e.next();!g.done;g=e.next())if(g=g.value,/^Region:/.test(g)){g=new tq(g);var h=new ic;wq(g);uq(g);for(var k=wq(g);k;){var l=h,m=k;(k=/^id=(.*)$/.exec(m))?l.id=k[1]:(k=/^width=(\d{1,2}|100)%$/.exec(m))?l.width=Number(k[1]):(k=/^lines=(\d+)$/.exec(m))?(l.height=Number(k[1]),l.heightUnits=2):(k=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?(l.regionAnchorX=Number(k[1]),l.regionAnchorY=Number(k[2])):(k=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?
880
- (l.viewportAnchorX=Number(k[1]),l.viewportAnchorY=Number(k[2])):/^scroll=up$/.exec(m)&&(l.scroll="up");uq(g);k=wq(g)}f.push(h)}e=new Map;Kv(e);g=[];d=t(d.slice(1));for(h=d.next();!h.done;h=d.next()){h=h.value.split("\n");if((1!=h.length||h[0])&&!/^NOTE($|[ \t])/.test(h[0])&&"STYLE"==h[0]&&h[1].includes("::cue")){l="global";(k=h[1].match(/\((.*)\)/))&&(l=k.pop());k=h.slice(2,-1);h[1].includes("}")&&(m=/\{(.*?)\}/.exec(h[1]))&&(k=m[1].split(";"));m=new gc(0,0,"");for(var n=!1,p=0;p<k.length;p++){var r=
881
- /^\s*([^:]+):\s*(.*)/.exec(k[p]);if(r){var v=r[2].trim().replace(";","");switch(r[1].trim()){case "background-color":n=!0;m.backgroundColor=v;break;case "color":n=!0;m.color=v;break;case "font-family":n=!0;m.fontFamily=v;break;case "font-size":n=!0;m.fontSize=v;break;case "font-weight":700<=parseInt(v,10)&&(n=!0,m.fontWeight=700);break;case "font-style":switch(v){case "normal":n=!0;m.fontStyle=qc;break;case "italic":n=!0;m.fontStyle="italic";break;case "oblique":n=!0,m.fontStyle="oblique"}break;case "opacity":n=
882
- !0;m.opacity=parseFloat(v);break;case "text-shadow":n=!0;m.textShadow=v;break;case "white-space":n=!0,m.wrapLine="noWrap"!=v}}}n&&e.set(l,m)}p=c;if(1==h.length&&!h[0]||/^NOTE($|[ \t])/.test(h[0])||"STYLE"==h[0])h=null;else{l=null;h[0].includes("--\x3e")||(l=h[0],h.splice(0,1));k=new tq(h[0]);m=Jv(k);r=vq(k,/[ \t]+--\x3e[ \t]+/g);n=Jv(k);if(null==m||null==r||null==n)throw new P(2,2,2001,"Could not parse cue time range in WebVTT");m+=p;n+=p;p=h.slice(1).join("\n").trim();e.has("global")?(h=e.get("global").clone(),
883
- h.startTime=m,h.endTime=n,h.payload=""):h=new gc(m,n,"");Lv(p,h,e);uq(k);for(m=wq(k);m;)Mv(h,m,f),uq(k),m=wq(k);null!=l&&(h.id=l)}h&&g.push(h)}return g};function Kv(a){for(var b=t(Object.entries(xc)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new gc(0,0,"");e.color=d;a.set(c,e)}b=t(Object.entries(yc));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new gc(0,0,""),e.backgroundColor=d,a.set(c,e)}
873
+ var iv=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,vv=/^(\d{1,2}(?:\.\d+)?|100)%$/,uv=/^(\d+px|\d+em|\d*\.?\d+c)$/,jv=/^(\d+)px (\d+)px$/,Av=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Bv=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Dv=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Ev=/^(\d*(?:\.\d*)?)f$/,Fv=/^(\d*(?:\.\d*)?)t$/,Gv=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),tv={left:oc,center:"center",right:"end",start:oc,
874
+ end:"end"},sv={left:"line-left",center:"center",right:"line-right"},fv=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],gv=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],mv=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Dd["application/ttml+xml"]=function(){return new ev};function Hv(){this.g=new ev}Hv.prototype.parseInit=function(a){var b=!1;(new Eg).box("moov",Ig).box("trak",Ig).box("mdia",Ig).box("minf",Ig).box("stbl",Ig).Y("stsd",Kg).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new O(2,2,2007);};Hv.prototype.setSequenceMode=function(){};Hv.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new Eg).box("mdat",Lg(function(f){d=!0;e=e.concat(c.g.parseMedia(f,b))})).parse(a,!1);if(!d)throw new O(2,2,2007);return e};
875
+ J("shaka.text.Mp4TtmlParser",Hv);Hv.prototype.parseMedia=Hv.prototype.parseMedia;Hv.prototype.setSequenceMode=Hv.prototype.setSequenceMode;Hv.prototype.parseInit=Hv.prototype.parseInit;Dd['application/mp4; codecs="stpp"']=function(){return new Hv};Dd['application/mp4; codecs="stpp.ttml"']=function(){return new Hv};Dd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Hv};Dd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Hv};function Iv(){this.g=!1}Iv.prototype.parseInit=function(){};Iv.prototype.setSequenceMode=function(a){this.g=a};
876
+ Iv.prototype.parseMedia=function(a,b){var c=dd(a);c=c.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var d=c.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(d[0]))throw new O(2,2,2E3);c=b.vttOffset;if(d[0].includes("X-TIMESTAMP-MAP")&&this.g){var e=d[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),f=d[0].match(/MPEGTS:(\d+)/m);if(e&&f){c=Jv(new tq(e[1]));if(null==c)throw new O(2,2,2E3);f=Number(f[1]);for(e=b.segmentStart;95443.7176888889<=e;)e-=95443.7176888889,f+=8589934592;c=b.periodStart+f/9E4-
877
+ c}}f=[];e=t(d[0].split("\n"));for(var g=e.next();!g.done;g=e.next())if(g=g.value,/^Region:/.test(g)){g=new tq(g);var h=new jc;wq(g);uq(g);for(var k=wq(g);k;){var l=h,m=k;(k=/^id=(.*)$/.exec(m))?l.id=k[1]:(k=/^width=(\d{1,2}|100)%$/.exec(m))?l.width=Number(k[1]):(k=/^lines=(\d+)$/.exec(m))?(l.height=Number(k[1]),l.heightUnits=2):(k=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?(l.regionAnchorX=Number(k[1]),l.regionAnchorY=Number(k[2])):(k=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?
878
+ (l.viewportAnchorX=Number(k[1]),l.viewportAnchorY=Number(k[2])):/^scroll=up$/.exec(m)&&(l.scroll="up");uq(g);k=wq(g)}f.push(h)}e=new Map;Kv(e);g=[];d=t(d.slice(1));for(h=d.next();!h.done;h=d.next()){h=h.value.split("\n");if((1!=h.length||h[0])&&!/^NOTE($|[ \t])/.test(h[0])&&"STYLE"==h[0]&&h[1].includes("::cue")){l="global";(k=h[1].match(/\((.*)\)/))&&(l=k.pop());k=h.slice(2,-1);h[1].includes("}")&&(m=/\{(.*?)\}/.exec(h[1]))&&(k=m[1].split(";"));m=new hc(0,0,"");for(var n=!1,p=0;p<k.length;p++){var r=
879
+ /^\s*([^:]+):\s*(.*)/.exec(k[p]);if(r){var v=r[2].trim().replace(";","");switch(r[1].trim()){case "background-color":n=!0;m.backgroundColor=v;break;case "color":n=!0;m.color=v;break;case "font-family":n=!0;m.fontFamily=v;break;case "font-size":n=!0;m.fontSize=v;break;case "font-weight":700<=parseInt(v,10)&&(n=!0,m.fontWeight=700);break;case "font-style":switch(v){case "normal":n=!0;m.fontStyle=rc;break;case "italic":n=!0;m.fontStyle="italic";break;case "oblique":n=!0,m.fontStyle="oblique"}break;case "opacity":n=
880
+ !0;m.opacity=parseFloat(v);break;case "text-shadow":n=!0;m.textShadow=v;break;case "white-space":n=!0,m.wrapLine="noWrap"!=v}}}n&&e.set(l,m)}p=c;if(1==h.length&&!h[0]||/^NOTE($|[ \t])/.test(h[0])||"STYLE"==h[0])h=null;else{l=null;h[0].includes("--\x3e")||(l=h[0],h.splice(0,1));k=new tq(h[0]);m=Jv(k);r=vq(k,/[ \t]+--\x3e[ \t]+/g);n=Jv(k);if(null==m||null==r||null==n)throw new O(2,2,2001,"Could not parse cue time range in WebVTT");m+=p;n+=p;p=h.slice(1).join("\n").trim();e.has("global")?(h=e.get("global").clone(),
881
+ h.startTime=m,h.endTime=n,h.payload=""):h=new hc(m,n,"");Lv(p,h,e);uq(k);for(m=wq(k);m;)Mv(h,m,f),uq(k),m=wq(k);null!=l&&(h.id=l)}h&&g.push(h)}return g};function Kv(a){for(var b=t(Object.entries(wc)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new hc(0,0,"");e.color=d;a.set(c,e)}b=t(Object.entries(xc));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new hc(0,0,""),e.backgroundColor=d,a.set(c,e)}
884
882
  function Lv(a,b,c){0===c.size&&Kv(c);a=Nv(a);for(var d=[],e=-1,f=0;f<a.length;f++)"<"===a[f]?e=f+1:">"===a[f]&&0<e&&(e=a.substr(e,f-e),e.match(Ov)&&d.push(e),e=-1);d=t(d);for(f=d.next();!f.done;f=d.next())f=f.value,a=a.replace("<"+f+">",'<div time="'+f+'">'),a+="</div>";if(f=qo("<span>"+a+"</span>","span")){d=[];f=f.childNodes;if(1==f.length&&(e=f[0],e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE)){b.payload=a;return}a=t(f);for(f=a.next();!f.done;f=a.next())Pv(f.value,b,d,c);b.nestedCues=
885
883
  d}else b.payload=a}function Nv(a){for(var b=[],c=-1,d="",e=0;e<a.length;e++)if("/"===a[e]){var f=a.indexOf(">",e);if(f<=e)return a;f=a.substring(e+1,f);var g=b.pop();if(f&&g){if(g===f)d+="/"+f+">";else{if(!g.startsWith("c.")||"c"!==f)return a;d+="/"+g+">"}e+=f.length+1}else return a}else"<"===a[e]?c=e+1:">"===a[e]&&0<c&&(b.push(a.substr(c,e-c)),c=-1),d+=a[e];return d}function Qv(a,b){return a&&0<a.length?a:b}
886
884
  function Pv(a,b,c,d){var e=b.clone();if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=t(a.nodeName.split(/[ .]+/)),g=f.next();!g.done;g=f.next()){g=g.value;if(d.has(g)){var h=d.get(g);h&&(e.backgroundColor=Qv(h.backgroundColor,e.backgroundColor),e.color=Qv(h.color,e.color),e.fontFamily=Qv(h.fontFamily,e.fontFamily),e.fontSize=Qv(h.fontSize,e.fontSize),e.fontWeight=h.fontWeight,e.fontStyle=h.fontStyle,e.opacity=h.opacity,e.wrapLine=h.wrapLine)}switch(g){case "b":e.fontWeight=700;break;case "i":e.fontStyle=
887
885
  "italic";break;case "u":e.textDecoration.push("underline");break;case "div":if(g=a.getAttribute("time"))if(g=Jv(new tq(g)))e.startTime=g}}if(go(a))for(f=!0,d=t(a.textContent.split("\n")),a=d.next();!a.done;a=d.next())a=a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=a,c.push(f)),f=!1;else for(b=t(a.childNodes),a=b.next();!a.done;a=b.next())Pv(a.value,e,c,d)}
888
- function Mv(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=kc:a.textAlign=sc[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|center|start|end))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||"end"==
889
- b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Rv(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=wc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=mc,a.line=Number(c[1]),c[2]&&(a.lineAlign=wc[c[2].toUpperCase()])}function Rv(a,b){var c=a.filter(function(d){return d.id==b});return c.length?c[0]:null}
890
- function Jv(a){a=vq(a,Ov);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)}M("shaka.text.VttTextParser",Iv);Iv.prototype.parseMedia=Iv.prototype.parseMedia;Iv.prototype.setSequenceMode=Iv.prototype.setSequenceMode;Iv.prototype.parseInit=Iv.prototype.parseInit;var Ov=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Dd["text/vtt"]=function(){return new Iv};Dd['text/vtt; codecs="vtt"']=function(){return new Iv};
891
- Dd['text/vtt; codecs="wvtt"']=function(){return new Iv};function Sv(){this.g=null}Sv.prototype.parseInit=function(a){var b=this,c=!1;(new Eg).box("moov",Ig).box("trak",Ig).box("mdia",Ig).Y("mdhd",function(d){d=Vh(d.reader,d.version);b.g=d.timescale}).box("minf",Ig).box("stbl",Ig).Y("stsd",Kg).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new P(2,2,2008);if(!c)throw new P(2,2,2008);};Sv.prototype.setSequenceMode=function(){};
892
- Sv.prototype.parseMedia=function(a,b){if(!this.g)throw new P(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Eg).box("moof",Ig).box("traf",Ig).Y("tfdt",function(C){g=!0;c=Uh(C.reader,C.version).$e}).Y("tfhd",function(C){l=Th(C.reader,C.flags).lf}).Y("trun",function(C){h=!0;d=Wh(C.reader,C.version,C.flags).Ff}).box("mdat",Lg(function(C){k=!0;e=C})).parse(a,!1);if(!k&&!g&&!h)throw new P(2,2,2008);for(var m=c,n=new Bg(e,0),p=t(d),r=p.next();!r.done;r=p.next()){r=r.value;var v=r.ye||l,y=r.Ed?
886
+ function Mv(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=lc:a.textAlign=tc[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|center|start|end))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||"end"==
887
+ b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Rv(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=vc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=nc,a.line=Number(c[1]),c[2]&&(a.lineAlign=vc[c[2].toUpperCase()])}function Rv(a,b){var c=a.filter(function(d){return d.id==b});return c.length?c[0]:null}
888
+ function Jv(a){a=vq(a,Ov);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)}J("shaka.text.VttTextParser",Iv);Iv.prototype.parseMedia=Iv.prototype.parseMedia;Iv.prototype.setSequenceMode=Iv.prototype.setSequenceMode;Iv.prototype.parseInit=Iv.prototype.parseInit;var Ov=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Dd["text/vtt"]=function(){return new Iv};Dd['text/vtt; codecs="vtt"']=function(){return new Iv};
889
+ Dd['text/vtt; codecs="wvtt"']=function(){return new Iv};function Sv(){this.g=null}Sv.prototype.parseInit=function(a){var b=this,c=!1;(new Eg).box("moov",Ig).box("trak",Ig).box("mdia",Ig).Y("mdhd",function(d){d=Vh(d.reader,d.version);b.g=d.timescale}).box("minf",Ig).box("stbl",Ig).Y("stsd",Kg).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new O(2,2,2008);if(!c)throw new O(2,2,2008);};Sv.prototype.setSequenceMode=function(){};
890
+ Sv.prototype.parseMedia=function(a,b){if(!this.g)throw new O(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Eg).box("moof",Ig).box("traf",Ig).Y("tfdt",function(C){g=!0;c=Uh(C.reader,C.version).$e}).Y("tfhd",function(C){l=Th(C.reader,C.flags).lf}).Y("trun",function(C){h=!0;d=Wh(C.reader,C.version,C.flags).Ff}).box("mdat",Lg(function(C){k=!0;e=C})).parse(a,!1);if(!k&&!g&&!h)throw new O(2,2,2008);for(var m=c,n=new Bg(e,0),p=t(d),r=p.next();!r.done;r=p.next()){r=r.value;var v=r.ye||l,y=r.Ed?
893
891
  c+r.Ed:m;m=y+(v||0);var x=0;do{var w=n.R();x+=w;var D=n.R(),B=null;"vttc"==Mg(D)?8<w&&(B=n.Cb(w-8)):n.skip(w-8);v&&B&&(w=Tv(B,b.periodStart+y/this.g,b.periodStart+m/this.g),f.push(w))}while(r.sampleSize&&x<r.sampleSize)}return f.filter(Cb)};function Tv(a,b,c){var d,e,f;(new Eg).box("payl",Lg(function(g){d=dd(g)})).box("iden",Lg(function(g){e=dd(g)})).box("sttg",Lg(function(g){f=dd(g)})).parse(a);return d?Uv(d,e,f,b,c):null}
894
- function Uv(a,b,c,d,e){d=new gc(d,e,"");Lv(a,d,new Map);b&&(d.id=b);if(c)for(a=new tq(c),b=wq(a);b;)Mv(d,b,[]),uq(a),b=wq(a);return d}M("shaka.text.Mp4VttParser",Sv);Sv.prototype.parseMedia=Sv.prototype.parseMedia;Sv.prototype.setSequenceMode=Sv.prototype.setSequenceMode;Sv.prototype.parseInit=Sv.prototype.parseInit;Dd['application/mp4; codecs="wvtt"']=function(){return new Sv};function Vv(){}Vv.prototype.parseInit=function(){};Vv.prototype.setSequenceMode=function(){};Vv.prototype.parseMedia=function(a){var b=dd(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new tq(c[0]),e=Wv(d),f=vq(d,/,/g);d=Wv(d);if(null==e||null==f||null==d)throw new P(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new gc(e,d,c.slice(1).join("\n").trim()))}return a};
895
- function Wv(a){a=vq(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)}M("shaka.text.SbvTextParser",Vv);Vv.prototype.parseMedia=Vv.prototype.parseMedia;Vv.prototype.setSequenceMode=Vv.prototype.setSequenceMode;Vv.prototype.parseInit=Vv.prototype.parseInit;Dd["text/x-subviewer"]=function(){return new Vv};function Xv(){this.g=new Iv}Xv.prototype.parseInit=function(){};Xv.prototype.setSequenceMode=function(){};Xv.prototype.parseMedia=function(a,b){var c=dd(a);c=Yv(c);c=Fc(hd(c));return this.g.parseMedia(c,b)};function Yv(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(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")+"\n\n";return b}M("shaka.text.SrtTextParser",Xv);
892
+ function Uv(a,b,c,d,e){d=new hc(d,e,"");Lv(a,d,new Map);b&&(d.id=b);if(c)for(a=new tq(c),b=wq(a);b;)Mv(d,b,[]),uq(a),b=wq(a);return d}J("shaka.text.Mp4VttParser",Sv);Sv.prototype.parseMedia=Sv.prototype.parseMedia;Sv.prototype.setSequenceMode=Sv.prototype.setSequenceMode;Sv.prototype.parseInit=Sv.prototype.parseInit;Dd['application/mp4; codecs="wvtt"']=function(){return new Sv};function Vv(){}Vv.prototype.parseInit=function(){};Vv.prototype.setSequenceMode=function(){};Vv.prototype.parseMedia=function(a){var b=dd(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new tq(c[0]),e=Wv(d),f=vq(d,/,/g);d=Wv(d);if(null==e||null==f||null==d)throw new O(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new hc(e,d,c.slice(1).join("\n").trim()))}return a};
893
+ function Wv(a){a=vq(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)}J("shaka.text.SbvTextParser",Vv);Vv.prototype.parseMedia=Vv.prototype.parseMedia;Vv.prototype.setSequenceMode=Vv.prototype.setSequenceMode;Vv.prototype.parseInit=Vv.prototype.parseInit;Dd["text/x-subviewer"]=function(){return new Vv};function Xv(){this.g=new Iv}Xv.prototype.parseInit=function(){};Xv.prototype.setSequenceMode=function(){};Xv.prototype.parseMedia=function(a,b){var c=dd(a);c=Yv(c);c=Ec(hd(c));return this.g.parseMedia(c,b)};function Yv(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(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")+"\n\n";return b}J("shaka.text.SrtTextParser",Xv);
896
894
  Xv.srt2webvtt=Yv;Xv.prototype.parseMedia=Xv.prototype.parseMedia;Xv.prototype.setSequenceMode=Xv.prototype.setSequenceMode;Xv.prototype.parseInit=Xv.prototype.parseInit;Dd["text/srt"]=function(){return new Xv};function Zv(){}Zv.prototype.parseInit=function(){};Zv.prototype.setSequenceMode=function(){};
897
895
  Zv.prototype.parseMedia=function(a){var b="",c="";a=dd(a).split(/\r?\n\s*\r?\n/);a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=$v.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=t(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=aw.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(bw);else if("Style"==e){e=f.split(bw);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
898
- [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={Wd:e.Wd},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=aw.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(bw);else if("Dialogue"==f){g=g.split(bw);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=cw(f.Start);var k=cw(f.End);g=new gc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Wd=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Wd}}(e)))&&dw(g,f);d.push(g)}return d};
899
- function dw(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=ew(c))a.color=c;if(c=b.BackColour)if(c=ew(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=oc;a.textAlign="start";break;case 2:a.displayAlign=oc;a.textAlign=kc;break;case 3:a.displayAlign=oc;a.textAlign="end";
900
- break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=kc;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=kc;break;case 11:a.displayAlign="center",a.textAlign="end"}if(c=b.AlphaLevel)a.opacity=parseFloat(c)}
901
- function ew(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 cw(a){a=fw.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}M("shaka.text.SsaTextParser",Zv);Zv.prototype.parseMedia=Zv.prototype.parseMedia;Zv.prototype.setSequenceMode=Zv.prototype.setSequenceMode;Zv.prototype.parseInit=Zv.prototype.parseInit;
902
- var $v=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,aw=/^\s*([^:]+):\s*(.*)/,bw=/\s*,\s*/,fw=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Dd["text/x-ssa"]=function(){return new Zv};function gw(){}function hw(a,b,c){function d(h){Ic(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Fc(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new P(2,6,6015);var e;"string"==typeof b?e=id(b,!0):e=b;a=gd(a);a=id(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}M("shaka.util.FairPlayUtils",gw);
903
- gw.commonFairPlayResponse=function(a,b){if(2===a){try{var c=dd(b.data)}catch(f){return}var d=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),d=!0);try{var e=JSON.parse(c);e.ckc&&(c=e.ckc,d=!0);e.CkcMessage&&(c=e.CkcMessage,d=!0);e.License&&(c=e.License,d=!0)}catch(f){}d&&(b.data=Gc(md(c)))}};gw.conaxFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};gw.ezdrmFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};
904
- gw.verimatrixFairPlayRequest=function(a,b){if(2===a){var c=Fc(b.body);c=ld(c);b.headers["Content-Type"]="application/x-www-form-urlencoded";b.body=hd("spc="+c)}};gw.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=gd(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=new Uint16Array(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return hw(a,d,b)};
896
+ [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={Wd:e.Wd},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=aw.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(bw);else if("Dialogue"==f){g=g.split(bw);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=cw(f.Start);var k=cw(f.End);g=new hc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Wd=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Wd}}(e)))&&dw(g,f);d.push(g)}return d};
897
+ function dw(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=ew(c))a.color=c;if(c=b.BackColour)if(c=ew(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=pc;a.textAlign="start";break;case 2:a.displayAlign=pc;a.textAlign=lc;break;case 3:a.displayAlign=pc;a.textAlign="end";
898
+ break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=lc;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=lc;break;case 11:a.displayAlign="center",a.textAlign="end"}if(c=b.AlphaLevel)a.opacity=parseFloat(c)}
899
+ function ew(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 cw(a){a=fw.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}J("shaka.text.SsaTextParser",Zv);Zv.prototype.parseMedia=Zv.prototype.parseMedia;Zv.prototype.setSequenceMode=Zv.prototype.setSequenceMode;Zv.prototype.parseInit=Zv.prototype.parseInit;
900
+ var $v=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,aw=/^\s*([^:]+):\s*(.*)/,bw=/\s*,\s*/,fw=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Dd["text/x-ssa"]=function(){return new Zv};function gw(){}function hw(a,b,c){function d(h){Hc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Ec(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new O(2,6,6015);var e;"string"==typeof b?e=id(b,!0):e=b;a=gd(a);a=id(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}J("shaka.util.FairPlayUtils",gw);
901
+ gw.commonFairPlayResponse=function(a,b){if(2===a){try{var c=dd(b.data)}catch(f){return}var d=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),d=!0);try{var e=JSON.parse(c);e.ckc&&(c=e.ckc,d=!0);e.CkcMessage&&(c=e.CkcMessage,d=!0);e.License&&(c=e.License,d=!0)}catch(f){}d&&(b.data=Fc(md(c)))}};gw.conaxFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};gw.ezdrmFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};
902
+ gw.verimatrixFairPlayRequest=function(a,b){if(2===a){var c=Ec(b.body);c=ld(c);b.headers["Content-Type"]="application/x-www-form-urlencoded";b.body=hd("spc="+c)}};gw.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=gd(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=new Uint16Array(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return hw(a,d,b)};
905
903
  gw.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=gd(a).split(";").pop();return hw(a,c,b)};gw.verimatrixInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=gd(a).split("skd://").pop();return hw(a,c,b)};gw.initDataTransform=hw;gw.defaultGetContentId=function(a){a=gd(a);return(new lb(a)).Za};
906
- gw.isFairPlaySupported=function(){var a;return J(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},F(b,2),z(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b["return"](!0);I(b);return b["return"](!1)})};/*
904
+ gw.isFairPlaySupported=function(){var a;return I(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},A(b,2),u(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b["return"](!0);F(b);return b["return"](!1)})};/*
907
905
  @license
908
906
  EME Encryption Scheme Polyfill
909
907
  Copyright 2019 Google LLC
910
908
  SPDX-License-Identifier: Apache-2.0
911
909
  */
912
910
  function iw(){}var jw;function kw(){jw?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(jw=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=lw):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
913
- function lw(a,b){var c=this,d;return J(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),z(e,jw.call(c,a,b),2);d=e.h;if(mw(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=jw,e["return"](d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=nw;return e["return"](nw.call(c,
911
+ function lw(a,b){var c=this,d;return I(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),u(e,jw.call(c,a,b),2);d=e.h;if(mw(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=jw,e["return"](d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=nw;return e["return"](nw.call(c,
914
912
  a,b))})}
915
- function nw(a,b){var c=this,d,e,f,g,h,k,l,m,n,p;return J(function(r){if(1==r.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=ow(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=pw(h.videoCapabilities,d),l=pw(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."),
916
- n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return z(r,jw.call(c,a,e),2)}p=r.h;return r["return"](new qw(p,d))})}function pw(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}M("EmeEncryptionSchemePolyfill",iw);iw.install=kw;function rw(){}var sw;
913
+ function nw(a,b){var c=this,d,e,f,g,h,k,l,m,n,p;return I(function(r){if(1==r.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=ow(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=pw(h.videoCapabilities,d),l=pw(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."),
914
+ n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return u(r,jw.call(c,a,e),2)}p=r.h;return r["return"](new qw(p,d))})}function pw(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}J("EmeEncryptionSchemePolyfill",iw);iw.install=kw;function rw(){}var sw;
917
915
  function tw(){sw?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(sw=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=uw):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
918
- function uw(a){var b=this,c,d,e;return J(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),z(f,sw.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f["return"](c);if((d=c.keySystemAccess)&&mw(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=sw,f["return"](c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
919
- navigator.mediaCapabilities.decodingInfo=vw;if(d){f.D(3);break}e=c;return z(f,ww(a),4);case 4:return e.keySystemAccess=f.h,f["return"](c);case 3:return f["return"](vw.call(b,a))}})}
920
- function vw(a){var b=this,c,d,e,f,g,h,k,l;return J(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=ow(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m["return"](h):z(m,sw.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
921
- new qw(k.keySystemAccess,c);m.D(3);break}if(!a.keySystemConfiguration){m.D(3);break}l=k;return z(m,ww(a),5);case 5:l.keySystemAccess=m.h;case 3:return m["return"](k)}})}
922
- function ww(a){var b,c;return J(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 z(d,
923
- navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d["return"](c)})}M("McEncryptionSchemePolyfill",rw);rw.install=tw;function qw(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
916
+ function uw(a){var b=this,c,d,e;return I(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),u(f,sw.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f["return"](c);if((d=c.keySystemAccess)&&mw(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=sw,f["return"](c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
917
+ navigator.mediaCapabilities.decodingInfo=vw;if(d){f.D(3);break}e=c;return u(f,ww(a),4);case 4:return e.keySystemAccess=f.h,f["return"](c);case 3:return f["return"](vw.call(b,a))}})}
918
+ function vw(a){var b=this,c,d,e,f,g,h,k,l;return I(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=ow(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m["return"](h):u(m,sw.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
919
+ new qw(k.keySystemAccess,c);m.D(3);break}if(!a.keySystemConfiguration){m.D(3);break}l=k;return u(m,ww(a),5);case 5:l.keySystemAccess=m.h;case 3:return m["return"](k)}})}
920
+ function ww(a){var b,c;return I(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 u(d,
921
+ navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d["return"](c)})}J("McEncryptionSchemePolyfill",rw);rw.install=tw;function qw(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
924
922
  qw.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};qw.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
925
923
  function ow(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 mw(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}
926
- function xw(){}function Gt(){kw();tw()}M("EncryptionSchemePolyfills",xw);xw.install=Gt;"undefined"!==typeof module&&module.exports&&(module.exports=xw);/*
924
+ function xw(){}function Gt(){kw();tw()}J("EncryptionSchemePolyfills",xw);xw.install=Gt;"undefined"!==typeof module&&module.exports&&(module.exports=xw);/*
927
925
  @license
928
926
  Copyright 2013 Ali Al Dallal
929
927
 
@@ -969,52 +967,52 @@ sw:{s:"Kiswahili",u:"Swahili"},"sw-KE":{s:"Kiswahili",u:"Swahili (Kenya)"},ta:{s
969
967
  u:"Thai"},"th-TH":{s:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",u:"Thai (Thailand)"},tl:{s:"Filipino",u:"Filipino"},"tl-PH":{s:"Filipino",u:"Filipino"},tlh:{s:"tlhIngan-Hol",u:"Klingon"},tr:{s:"T\u00fcrk\u00e7e",u:"Turkish"},"tr-TR":{s:"T\u00fcrk\u00e7e",u:"Turkish"},"tt-RU":{s:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",u:"Tatar"},uk:{s:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",u:"Ukrainian"},"uk-UA":{s:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
970
968
  u:"Ukrainian"},ur:{s:"\u0627\u0631\u062f\u0648",u:"Urdu"},"ur-PK":{s:"\u0627\u0631\u062f\u0648",u:"Urdu"},uz:{s:"O'zbek",u:"Uzbek"},"uz-UZ":{s:"O'zbek",u:"Uzbek"},vi:{s:"Ti\u1ebfng Vi\u1ec7t",u:"Vietnamese"},"vi-VN":{s:"Ti\u1ebfng Vi\u1ec7t",u:"Vietnamese"},"xh-ZA":{s:"isiXhosa",u:"Xhosa"},yi:{s:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",u:"Yiddish"},"yi-DE":{s:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",u:"Yiddish (German)"},zh:{s:"\u4e2d\u6587",u:"Chinese"},"zh-HANS":{s:"\u4e2d\u6587\u7b80\u4f53",
971
969
  u:"Chinese Simplified"},"zh-HANT":{s:"\u4e2d\u6587\u7e41\u9ad4",u:"Chinese Traditional"},"zh-CN":{s:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",u:"Chinese Simplified (China)"},"zh-HK":{s:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",u:"Chinese Traditional (Hong Kong)"},"zh-SG":{s:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",u:"Chinese Simplified (Singapore)"},"zh-TW":{s:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",u:"Chinese Traditional (Taiwan)"},"zu-ZA":{s:"isiZulu",u:"Zulu"}},zw=t(Object.keys(yw)),Aw=zw.next();!Aw.done;Aw=
972
- zw.next()){var Bw=Aw.value;yw[Bw.toLowerCase()]=yw[Bw]};function X(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Af;this.localization=this.controls.za;this.player=this.controls.cc();this.video=this.controls.Bb();this.adManager=this.player.kd();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
973
- X.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};M("shaka.ui.Element",X);X.prototype.release=X.prototype.release;function Cw(a){return Dw(a,"shaka-back-to-overflow-button")}function Dw(a,b){var c=a.getElementsByClassName(b);return c.length?c[0]:null}function Ew(a){a&&(a=Dw(a,"shaka-chosen-item"))&&a.parentElement.focus()}function Fw(){var a=S("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function Y(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
974
- function Gw(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60),e=Math.floor(a%60);10>e&&(e="0"+e);e=d+":"+e;b&&(10>d&&(e="0"+e),e=c+":"+e);return e};function Hw(a,b){X.call(this,a,b);var c=this;this.i=S("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=S("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new Q(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=Gw(e-d,!1)+" / "+Gw(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=
975
- ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.ya();c.g.ka(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.ya(),this.g.ka(.5))}u(Hw,X);Hw.prototype.release=function(){this.g.stop();this.g=null;X.prototype.release.call(this)};M("shaka.ui.AdCounter",Hw);function Iw(a,b){X.call(this,a,b);var c=this;this.g=S("div");this.g.classList.add("shaka-ad-position");Y(this.g,!1);this.parent.appendChild(this.g);this.h=S("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&Jw(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Jw(c)});this.eventManager.o(this.adManager,"ad-started",function(){Jw(c)});this.eventManager.o(this.adManager,
976
- "ad-stopped",function(){c.h.textContent="";Y(c.g,!1)});this.ad&&Jw(this)}u(Iw,X);function Jw(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));Y(a.g,!0)}}M("shaka.ui.AdPosition",Iw);function Kw(a,b){X.call(this,a,b);var c=this;this.button=kk();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){c.g()});this.eventManager.o(this.localization,"locale-changed",function(){c.g()});this.eventManager.o(this.video,"play",function(){c.g();c.h()});this.eventManager.o(this.video,"pause",function(){c.g();c.h()});this.eventManager.o(this.video,"seeking",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-paused",function(){c.g();
977
- c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?Lw(c.controls):Mw(c.controls)});this.ad&&(this.g(),this.h())}u(Kw,X);Kw.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.B.paused&&!a.$;return a};Kw.prototype.g=function(){};Kw.prototype.h=function(){};
978
- M("shaka.ui.PlayButton",Kw);function Nw(a,b){Kw.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}u(Nw,Kw);Nw.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};Nw.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};M("shaka.ui.BigPlayButton",Nw);function Ow(a,b){X.call(this,a,b);var c=this;this.j=this.controls.i;this.h=this.controls.g;this.i=[];this.g=S("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(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";Y(c.g,!0)}else Y(c.g,
979
- !1)});this.eventManager.o(window,"click",function(){Y(c.g,!1)});Pw(this)}u(Ow,X);Ow.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];X.prototype.release.call(this)};function Qw(a,b){Rw.set(a,b)}function Pw(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=Rw.get(c);d?a.i.push(d.create(a.g,a.controls)):Ua("Unrecognized context menu element:",c)}}M("shaka.ui.ContextMenu",Ow);
980
- Ow.registerElement=Qw;var Rw=new Map;function Sw(a,b,c,d){X.call(this,a,b);var e=this;this.container=S("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ja(c));this.g=!1;this.bar=document.createElement("input");this.l=new Q(function(){e.onChangeEnd();e.g=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,ja(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);
970
+ zw.next()){var Bw=Aw.value;yw[Bw.toLowerCase()]=yw[Bw]};function W(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Af;this.localization=this.controls.Ka;this.player=this.controls.cc();this.video=this.controls.Bb();this.adManager=this.player.kd();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
971
+ W.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};J("shaka.ui.Element",W);W.prototype.release=W.prototype.release;function Cw(a){return Dw(a,"shaka-back-to-overflow-button")}function Dw(a,b){var c=a.getElementsByClassName(b);return c.length?c[0]:null}function Ew(a){a&&(a=Dw(a,"shaka-chosen-item"))&&a.parentElement.focus()}function Fw(){var a=R("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function X(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
972
+ function Gw(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60),e=Math.floor(a%60);10>e&&(e="0"+e);e=d+":"+e;b&&(10>d&&(e="0"+e),e=c+":"+e);return e};function Hw(a,b){W.call(this,a,b);var c=this;this.i=R("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=R("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new P(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=Gw(e-d,!1)+" / "+Gw(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=
973
+ ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.xa();c.g.ka(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.xa(),this.g.ka(.5))}qa(Hw,W);Hw.prototype.release=function(){this.g.stop();this.g=null;W.prototype.release.call(this)};J("shaka.ui.AdCounter",Hw);function Iw(a,b){W.call(this,a,b);var c=this;this.g=R("div");this.g.classList.add("shaka-ad-position");X(this.g,!1);this.parent.appendChild(this.g);this.h=R("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&Jw(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Jw(c)});this.eventManager.o(this.adManager,"ad-started",function(){Jw(c)});this.eventManager.o(this.adManager,
974
+ "ad-stopped",function(){c.h.textContent="";X(c.g,!1)});this.ad&&Jw(this)}qa(Iw,W);function Jw(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));X(a.g,!0)}}J("shaka.ui.AdPosition",Iw);function Kw(a,b){W.call(this,a,b);var c=this;this.button=kk();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){c.g()});this.eventManager.o(this.localization,"locale-changed",function(){c.g()});this.eventManager.o(this.video,"play",function(){c.g();c.h()});this.eventManager.o(this.video,"pause",function(){c.g();c.h()});this.eventManager.o(this.video,"seeking",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-paused",function(){c.g();
975
+ c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?Lw(c.controls):Mw(c.controls)});this.ad&&(this.g(),this.h())}qa(Kw,W);Kw.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.B.paused&&!a.$;return a};Kw.prototype.g=function(){};Kw.prototype.h=function(){};
976
+ J("shaka.ui.PlayButton",Kw);function Nw(a,b){Kw.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}qa(Nw,Kw);Nw.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};Nw.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};J("shaka.ui.BigPlayButton",Nw);function Ow(a,b){W.call(this,a,b);var c=this;this.j=this.controls.i;this.h=this.controls.g;this.i=[];this.g=R("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(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";X(c.g,!0)}else X(c.g,
977
+ !1)});this.eventManager.o(window,"click",function(){X(c.g,!1)});Pw(this)}qa(Ow,W);Ow.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function Qw(a,b){Rw.set(a,b)}function Pw(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=Rw.get(c);d?a.i.push(d.create(a.g,a.controls)):Ua("Unrecognized context menu element:",c)}}J("shaka.ui.ContextMenu",Ow);
978
+ Ow.registerElement=Qw;var Rw=new Map;function Sw(a,b,c,d){W.call(this,a,b);var e=this;this.container=R("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ia(c));this.g=!1;this.bar=document.createElement("input");this.l=new P(function(){e.onChangeEnd();e.g=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,ia(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);
981
979
  this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.Mb()&&(e.g=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.Mb()&&(e.g=!0,Tw(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.g&&(Tw(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.g&&(e.g=!1,Tw(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
982
- "mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}u(Sw,X);q=Sw.prototype;q.release=function(){this.l&&(this.l.stop(),this.l=null);X.prototype.release.call(this)};q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};q.onChangeStart=function(){};q.onChange=function(){};q.onChangeEnd=function(){};q.changeTo=function(a){this.g||(this.g=!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.l.T(.5)};q.getValue=function(){return parseFloat(this.bar.value)};
983
- q.setValue=function(a){this.g||(this.bar.value=a)};function Tw(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect(),e=parseFloat(a.bar.min),f=parseFloat(a.bar.max);c=e+(f-e)/d.width*(c.clientX-d.left);c<e?c=e:c>f&&(c=f);a.bar.value=c}M("shaka.ui.RangeElement",Sw);Sw.prototype.setValue=Sw.prototype.setValue;Sw.prototype.getValue=Sw.prototype.getValue;Sw.prototype.changeTo=Sw.prototype.changeTo;Sw.prototype.onChangeEnd=Sw.prototype.onChangeEnd;Sw.prototype.onChange=Sw.prototype.onChange;
984
- Sw.prototype.onChangeStart=Sw.prototype.onChangeStart;Sw.prototype.setRange=Sw.prototype.setRange;function Uw(a,b){Sw.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=S("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.m=this.controls.i;this.h=new Q(function(){c.video.currentTime=c.getValue()});this.A=new Q(function(){Vw(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",function(){return Ww(c)});this.eventManager.o(this.localization,
985
- "locale-changed",function(){return Ww(c)});this.eventManager.o(this.adManager,"ad-started",function(){Xw(c)||Y(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Xw(c)&&Y(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;Yw(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];Yw(c)});this.setValue(this.video.currentTime);this.update();Ww(this);this.ad&&Y(this.container,!1)}u(Uw,Sw);q=Uw.prototype;
986
- q.release=function(){this.h&&(this.h.stop(),this.h=null,this.A.stop(),this.A=null);Sw.prototype.release.call(this)};q.onChangeStart=function(){this.B=!this.video.paused;this.controls.Ie(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.T(.125))};q.onChangeEnd=function(){this.h.ya();this.controls.Ie(!1);this.B&&this.video.play()};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
987
- q.update=function(){var a=this.m.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.Ia(),g=f.end-f.start;this.setRange(f.start,f.end);Xw(this)?(Y(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.m.showUnbufferedStart?
988
- 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()+")")):Y(this.container,!1)};
989
- function Vw(a){if(a.i.length){for(var b=a.player.Ia(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=t(a.i),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=t(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 "+
990
- 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.j.style.background="linear-gradient("+d.join(",")+")"}else a.j.style.background="transparent"}function Yw(a){Vw(a);var b=a.player.Ia();b=b.end-b.start;a.player.U()&&5<b&&a.A.ka(1)}function Xw(a){var b=a.player.Ia();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function Ww(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}M("shaka.ui.SeekBar",Uw);function Zw(){}
991
- Zw.prototype.create=function(a,b){return new Uw(a,b)};Uw.Factory=Zw;function Z(a,b,c,d){fb.call(this);var e=this;this.S=!0;this.i=d;this.C=new rn(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.gb=!0;this.B=this.C.Bb();this.A=c;this.F=this.C.cc();this.va=a;this.j=b;this.Xa=this.F.kd();this.m=this.l=null;this.$=!1;this.G=[];this.wb=[];this.ib=!1;this.aa=new Q(function(){e.j.style.cursor="none";e.ib=!1;$w(e)});this.ea=new Q(function(){e.g.removeAttribute("shown");e.I.T(2)});this.I=new Q(function(){for(var f=t(e.G),g=f.next();!g.done;g=f.next())Y(g.value,
992
- !1)});this.La=new Q(function(){e.Mb()&&ax(e)});this.J=null;this.H=[];this.za=bx();this.h=new Af;this.configure(this.i);cx(this);this.ma=new Set;dx(this);this.La.ka(.125);this.h.o(this.za,"locale-changed",function(f){e.Xa.setLocale(f.locales[0])})}u(Z,fb);q=Z.prototype;
993
- q.destroy=function(){var a=this;return J(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.A){b.D(2);break}return z(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.aa&&(a.aa.stop(),a.aa=null);a.ea&&(a.ea.stop(),a.ea=null);a.I&&(a.I.stop(),a.I=null);a.La&&(a.La.stop(),a.La=null);ex(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return z(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.va){b.D(6);break}return z(b,a.va.destroy(),7);case 7:a.va=
994
- null;case 6:a.F=null,a.A=null,a.B=null,a.za=null,a.ma.clear(),fb.prototype.release.call(a),A(b)}})};function ex(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function fx(a,b){gx.set(a,b)}q.Xf=function(a){this.gb=a;dx(this)};q.Qg=function(){$w(this)};
995
- q.configure=function(a){this.i=a;this.C.gf(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.m&&(this.m=null);this.fb&&(this.fb=null);this.Ya&&(this.Ya=null);this.g?(lk(this.g),ex(this)):(hx(this),ix(this));this.j.classList.add("shaka-video-container");this.A.classList.add("shaka-video");jx(this);this.i.addBigPlayButton&&kx(this);this.i.customContextMenu&&(this.Ya=new Ow(this.X,this),this.H.push(this.Ya));this.ba||lx(this);this.hb=S("div");this.hb.classList.add("shaka-server-side-ad-container");
996
- this.g.appendChild(this.hb);mx(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,ja(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));nx(this);this.wb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));$w(this);a=t(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.h.o(b,"click",c);this.h.o(b,"dblclick",
997
- c)}};q.Ee=function(a){(this.S=a)?(this.j.setAttribute("shaka-controls","true"),this.A.tabIndex=-1,this.A.controls=!1):this.j.removeAttribute("shaka-controls");$w(this)};q.If=function(a){this.A.controls=a;this.A.tabIndex=a?0:-1;a&&this.Ee(!1)};q.getAd=function(){return this.l};q.jg=function(){return this.C};q.wg=function(){return this.za};q.Kg=function(){return this.j};q.Bb=function(){return this.B};q.vg=function(){return this.A};q.cc=function(){return this.F};q.ug=function(){return this.va};
998
- q.og=function(){return this.g};q.Eg=function(){return this.hb};q.lg=function(){return this.P};q.mg=function(){return this.i};q.Pg=function(){return this.$};q.Ie=function(a){this.$=a};q.Ng=function(){return this.gb};q.rf=function(){return this.m?this.m.getValue():this.B.currentTime};q.Jf=function(a){this.J=a};q.ed=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};q.fc=function(){this.I.ya()};
980
+ "mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}qa(Sw,W);q=Sw.prototype;q.release=function(){this.l&&(this.l.stop(),this.l=null);W.prototype.release.call(this)};q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};q.onChangeStart=function(){};q.onChange=function(){};q.onChangeEnd=function(){};q.changeTo=function(a){this.g||(this.g=!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.l.T(.5)};q.getValue=function(){return parseFloat(this.bar.value)};
981
+ q.setValue=function(a){this.g||(this.bar.value=a)};function Tw(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect(),e=parseFloat(a.bar.min),f=parseFloat(a.bar.max);c=e+(f-e)/d.width*(c.clientX-d.left);c<e?c=e:c>f&&(c=f);a.bar.value=c}J("shaka.ui.RangeElement",Sw);Sw.prototype.setValue=Sw.prototype.setValue;Sw.prototype.getValue=Sw.prototype.getValue;Sw.prototype.changeTo=Sw.prototype.changeTo;Sw.prototype.onChangeEnd=Sw.prototype.onChangeEnd;Sw.prototype.onChange=Sw.prototype.onChange;
982
+ Sw.prototype.onChangeStart=Sw.prototype.onChangeStart;Sw.prototype.setRange=Sw.prototype.setRange;function Uw(a,b){Sw.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=R("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.m=this.controls.i;this.h=new P(function(){c.video.currentTime=c.getValue()});this.A=new P(function(){Vw(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",function(){return Ww(c)});this.eventManager.o(this.localization,
983
+ "locale-changed",function(){return Ww(c)});this.eventManager.o(this.adManager,"ad-started",function(){Xw(c)||X(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Xw(c)&&X(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;Yw(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];Yw(c)});this.setValue(this.video.currentTime);this.update();Ww(this);this.ad&&X(this.container,!1)}qa(Uw,Sw);q=Uw.prototype;
984
+ q.release=function(){this.h&&(this.h.stop(),this.h=null,this.A.stop(),this.A=null);Sw.prototype.release.call(this)};q.onChangeStart=function(){this.B=!this.video.paused;this.controls.Ie(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.T(.125))};q.onChangeEnd=function(){this.h.xa();this.controls.Ie(!1);this.B&&this.video.play()};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
985
+ q.update=function(){var a=this.m.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.Ha(),g=f.end-f.start;this.setRange(f.start,f.end);Xw(this)?(X(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.m.showUnbufferedStart?
986
+ 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()+")")):X(this.container,!1)};
987
+ function Vw(a){if(a.i.length){for(var b=a.player.Ha(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=t(a.i),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=t(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 "+
988
+ 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.j.style.background="linear-gradient("+d.join(",")+")"}else a.j.style.background="transparent"}function Yw(a){Vw(a);var b=a.player.Ha();b=b.end-b.start;a.player.U()&&5<b&&a.A.ka(1)}function Xw(a){var b=a.player.Ha();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function Ww(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}J("shaka.ui.SeekBar",Uw);function Zw(){}
989
+ Zw.prototype.create=function(a,b){return new Uw(a,b)};Uw.Factory=Zw;function Y(a,b,c,d){fb.call(this);var e=this;this.S=!0;this.i=d;this.C=new rn(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.gb=!0;this.B=this.C.Bb();this.A=c;this.F=this.C.cc();this.ya=a;this.j=b;this.Xa=this.F.kd();this.m=this.l=null;this.$=!1;this.G=[];this.wb=[];this.ib=!1;this.aa=new P(function(){e.j.style.cursor="none";e.ib=!1;$w(e)});this.ea=new P(function(){e.g.removeAttribute("shown");e.I.T(2)});this.I=new P(function(){for(var f=t(e.G),g=f.next();!g.done;g=f.next())X(g.value,
990
+ !1)});this.La=new P(function(){e.Mb()&&ax(e)});this.J=null;this.H=[];this.Ka=bx();this.h=new Af;this.configure(this.i);cx(this);this.ma=new Set;dx(this);this.La.ka(.125);this.h.o(this.Ka,"locale-changed",function(f){e.Xa.setLocale(f.locales[0])})}qa(Y,fb);q=Y.prototype;
991
+ q.destroy=function(){var a=this;return I(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.A){b.D(2);break}return u(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.aa&&(a.aa.stop(),a.aa=null);a.ea&&(a.ea.stop(),a.ea=null);a.I&&(a.I.stop(),a.I=null);a.La&&(a.La.stop(),a.La=null);ex(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return u(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.ya){b.D(6);break}return u(b,a.ya.destroy(),7);case 7:a.ya=
992
+ null;case 6:a.F=null,a.A=null,a.B=null,a.Ka=null,a.ma.clear(),fb.prototype.release.call(a),z(b)}})};function ex(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function fx(a,b){gx.set(a,b)}q.Xf=function(a){this.gb=a;dx(this)};q.Qg=function(){$w(this)};
993
+ q.configure=function(a){this.i=a;this.C.gf(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.m&&(this.m=null);this.fb&&(this.fb=null);this.Ya&&(this.Ya=null);this.g?(lk(this.g),ex(this)):(hx(this),ix(this));this.j.classList.add("shaka-video-container");this.A.classList.add("shaka-video");jx(this);this.i.addBigPlayButton&&kx(this);this.i.customContextMenu&&(this.Ya=new Ow(this.X,this),this.H.push(this.Ya));this.ba||lx(this);this.hb=R("div");this.hb.classList.add("shaka-server-side-ad-container");
994
+ this.g.appendChild(this.hb);mx(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,ia(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));nx(this);this.wb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));$w(this);a=t(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.h.o(b,"click",c);this.h.o(b,"dblclick",
995
+ c)}};q.Ee=function(a){(this.S=a)?(this.j.setAttribute("shaka-controls","true"),this.A.tabIndex=-1,this.A.controls=!1):this.j.removeAttribute("shaka-controls");$w(this)};q.If=function(a){this.A.controls=a;this.A.tabIndex=a?0:-1;a&&this.Ee(!1)};q.getAd=function(){return this.l};q.jg=function(){return this.C};q.wg=function(){return this.Ka};q.Kg=function(){return this.j};q.Bb=function(){return this.B};q.vg=function(){return this.A};q.cc=function(){return this.F};q.ug=function(){return this.ya};
996
+ q.og=function(){return this.g};q.Eg=function(){return this.hb};q.lg=function(){return this.P};q.mg=function(){return this.i};q.Pg=function(){return this.$};q.Ie=function(a){this.$=a};q.Ng=function(){return this.gb};q.rf=function(){return this.m?this.m.getValue():this.B.currentTime};q.Jf=function(a){this.J=a};q.ed=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};q.fc=function(){this.I.xa()};
999
997
  q.ce=function(){return document.fullscreenEnabled||this.A.webkitSupportsFullscreen?!0:!1};q.be=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.A;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1000
- q.Oe=function(){var a=this,b,c;return J(function(d){switch(d.g){case 1:if(!document.fullscreenEnabled){b=a.A;b.webkitSupportsFullscreen&&(b.webkitDisplayingFullscreen?b.webkitExitFullscreen():b.webkitEnterFullscreen());d.D(0);break}if(document.fullscreenElement)return screen.orientation&&screen.orientation.unlock(),z(d,document.exitFullscreen(),0);F(d,5);if(!document.pictureInPictureElement){d.D(7);break}return z(d,document.exitPictureInPicture(),7);case 7:return z(d,a.j.requestFullscreen({navigationUI:"hide"}),
1001
- 9);case 9:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(10);break}F(d,11);return z(d,screen.orientation.lock("landscape"),13);case 13:va(d,10,5);break;case 11:I(d,5);case 10:va(d,0);break;case 5:c=I(d),a.dispatchEvent(new O("error",(new Map).set("detail",c))),d.D(0)}})};q.Lf=function(){Y(this.K,!0);Y(this.P,!0);this.g.setAttribute("ad-active","true")};q.vf=function(){Y(this.K,!1);Y(this.P,!1);this.g.removeAttribute("ad-active")};
998
+ q.Oe=function(){var a=this,b,c;return I(function(d){switch(d.g){case 1:if(!document.fullscreenEnabled){b=a.A;b.webkitSupportsFullscreen&&(b.webkitDisplayingFullscreen?b.webkitExitFullscreen():b.webkitEnterFullscreen());d.D(0);break}if(document.fullscreenElement)return screen.orientation&&screen.orientation.unlock(),u(d,document.exitFullscreen(),0);A(d,5);if(!document.pictureInPictureElement){d.D(7);break}return u(d,document.exitPictureInPicture(),7);case 7:return u(d,a.j.requestFullscreen({navigationUI:"hide"}),
999
+ 9);case 9:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(10);break}A(d,11);return u(d,screen.orientation.lock("landscape"),13);case 13:va(d,10,5);break;case 11:F(d,5);case 10:va(d,0);break;case 5:c=F(d),a.dispatchEvent(new M("error",(new Map).set("detail",c))),d.D(0)}})};q.Lf=function(){X(this.K,!0);X(this.P,!0);this.g.setAttribute("ad-active","true")};q.vf=function(){X(this.K,!1);X(this.P,!1);this.g.removeAttribute("ad-active")};
1002
1000
  function Mw(a){a.S&&a.B.duration&&(a.F.cf(),a.B.paused&&!a.$?a.B.play():a.B.pause())}function Lw(a){a.l&&a.l.isPaused()?a.l.play():a.l&&a.l.pause()}
1003
- function hx(a){a.g=S("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.B.duration&&(a.Mb()?a.J=Date.now():(ox(a,b),b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){px(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.ce()&&a.Oe()})}function kx(a){var b=S("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.fb=new Nw(b,a);a.H.push(a.fb)}
1004
- function jx(a){var b=S("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function qx(a){a.K=S("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.l&&a.l.isLinear();Y(a.K,b);a.N.appendChild(a.K);b=new Iw(a.K,a);a.H.push(b);b=new Hw(a.K,a);a.H.push(b)}
1005
- function lx(a){a.ba=S("div");a.ba.classList.add("shaka-spinner-container");a.j.appendChild(a.ba);var b=S("div");b.classList.add("shaka-spinner");a.ba.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");
1001
+ function hx(a){a.g=R("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.B.duration&&(a.Mb()?a.J=Date.now():(ox(a,b),b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){px(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.ce()&&a.Oe()})}function kx(a){var b=R("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.fb=new Nw(b,a);a.H.push(a.fb)}
1002
+ function jx(a){var b=R("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function qx(a){a.K=R("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.l&&a.l.isLinear();X(a.K,b);a.N.appendChild(a.K);b=new Iw(a.K,a);a.H.push(b);b=new Hw(a.K,a);a.H.push(b)}
1003
+ function lx(a){a.ba=R("div");a.ba.classList.add("shaka-spinner-container");a.j.appendChild(a.ba);var b=R("div");b.classList.add("shaka-spinner");a.ba.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");
1006
1004
  b.setAttribute("fill","none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}
1007
- function mx(a){a.N=S("div");a.N.classList.add("shaka-bottom-controls");a.N.classList.add("shaka-no-propagation");a.g.appendChild(a.N);a.h.o(a.N,"click",function(d){d.target.closest(".shaka-overflow-button")||a.fc()});qx(a);a.X=S("div");a.X.classList.add("shaka-controls-button-panel");a.X.classList.add("shaka-show-controls-on-mouse-over");a.i.enableTooltips&&a.X.classList.add("shaka-tooltips-on");a.N.appendChild(a.X);for(var b=t(a.i.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,gx.get(c)?
1008
- (c=gx.get(c).create(a.X,a),a.H.push(c)):Ua("Unrecognized control panel element requested:",c)}function nx(a){if(a.i.addSeekBar)a.m=rx.create(a.N,a),a.H.push(a.m);else{a=t(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function ix(a){a.P=S("div");a.P.classList.add("shaka-client-side-ad-container");Y(a.P,!1);a.h.o(a.P,"click",function(){px(a)});a.j.appendChild(a.P)}
1009
- function cx(a){a.h.o(a.F,"buffering",function(){a.S&&Y(a.ba,a.F.Mc())});a.S&&Y(a.ba,a.F.Mc());a.h.o(window,"keydown",function(b){sx(a,b)});a.h.o(window,"click",function(){return a.fc()});a.h.o(a,"submenuopen",function(){a.fc()});a.h.o(a.B,"play",function(){$w(a)});a.h.o(a.B,"pause",function(){$w(a)});a.h.o(a.j,"mousemove",function(b){ox(a,b)});a.h.o(a.j,"touchmove",function(b){ox(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){ox(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.aa.ya()});
1005
+ function mx(a){a.N=R("div");a.N.classList.add("shaka-bottom-controls");a.N.classList.add("shaka-no-propagation");a.g.appendChild(a.N);a.h.o(a.N,"click",function(d){d.target.closest(".shaka-overflow-button")||a.fc()});qx(a);a.X=R("div");a.X.classList.add("shaka-controls-button-panel");a.X.classList.add("shaka-show-controls-on-mouse-over");a.i.enableTooltips&&a.X.classList.add("shaka-tooltips-on");a.N.appendChild(a.X);for(var b=t(a.i.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,gx.get(c)?
1006
+ (c=gx.get(c).create(a.X,a),a.H.push(c)):Ua("Unrecognized control panel element requested:",c)}function nx(a){if(a.i.addSeekBar)a.m=rx.create(a.N,a),a.H.push(a.m);else{a=t(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function ix(a){a.P=R("div");a.P.classList.add("shaka-client-side-ad-container");X(a.P,!1);a.h.o(a.P,"click",function(){px(a)});a.j.appendChild(a.P)}
1007
+ function cx(a){a.h.o(a.F,"buffering",function(){a.S&&X(a.ba,a.F.Mc())});a.S&&X(a.ba,a.F.Mc());a.h.o(window,"keydown",function(b){sx(a,b)});a.h.o(window,"click",function(){return a.fc()});a.h.o(a,"submenuopen",function(){a.fc()});a.h.o(a.B,"play",function(){$w(a)});a.h.o(a.B,"pause",function(){$w(a)});a.h.o(a.j,"mousemove",function(b){ox(a,b)});a.h.o(a.j,"touchmove",function(b){ox(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){ox(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.aa.xa()});
1010
1008
  a.h.o(a.C,"caststatuschanged",function(){dx(a)});a.h.o(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.g.contains(c)&&ox(a,b);if(a.i.enableKeyboardPlaybackControls)switch(c=a.i.keyboardSeekDistance,b.key){case "ArrowLeft":a.m&&!d&&0<c&&(b.preventDefault(),tx(a,a.m.getValue()-c));break;case "ArrowRight":a.m&&!d&&0<c&&(b.preventDefault(),tx(a,a.m.getValue()+c));break;case "Home":a.m&&
1011
- tx(a,a.F.Ia().start);break;case "End":a.m&&tx(a,a.F.Ia().end);break;case " ":e&&ux(a)}});a.h.o(a.j,"keyup",function(b){a.ma["delete"](b.key)});a.h.o(a.Xa,"ad-started",function(b){a.l=b.ad;a.Lf()});a.h.o(a.Xa,"ad-stopped",function(){a.l=null;a.vf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return J(function(b){return z(b,vx(a),0)})});a.h.o(document,"fullscreenchange",function(){a.l&&a.l.resize(a.A.offsetWidth,a.A.offsetHeight)})}
1012
- function vx(a){return J(function(b){return a.B&&0!=a.B.readyState&&!a.C.qa()&&a.i.enableFullscreenOnRotation?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?z(b,a.j.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?z(b,document.exitFullscreen(),0):b.D(0):b["return"]()})}
1009
+ tx(a,a.F.Ha().start);break;case "End":a.m&&tx(a,a.F.Ha().end);break;case " ":e&&ux(a)}});a.h.o(a.j,"keyup",function(b){a.ma["delete"](b.key)});a.h.o(a.Xa,"ad-started",function(b){a.l=b.ad;a.Lf()});a.h.o(a.Xa,"ad-stopped",function(){a.l=null;a.vf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return I(function(b){return u(b,vx(a),0)})});a.h.o(document,"fullscreenchange",function(){a.l&&a.l.resize(a.A.offsetWidth,a.A.offsetHeight)})}
1010
+ function vx(a){return I(function(b){return a.B&&0!=a.B.readyState&&!a.C.qa()&&a.i.enableFullscreenOnRotation?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?u(b,a.j.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?u(b,document.exitFullscreen(),0):b.D(0):b["return"]()})}
1013
1011
  function ox(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),$w(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.J=Date.now():a.J+1E3<Date.now()&&(a.J=null);a.J&&"mousemove"==b.type||(a.j.style.cursor="",a.ib=!0,a.I.stop(),a.Mb()||(ax(a),$w(a)),a.aa.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.aa.T(3))}function wx(a){return window.matchMedia("hover: hover").matches?a.wb.some(function(b){return b.matches(":hover")}):!1}
1014
- function $w(a){var b=a.l?a.l.isPaused():!1,c=a.B.paused&&!a.$,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.l||!a.l.isLinear())&&c||a.ib||d||wx(a)?(ax(a),a.g.setAttribute("shown","true"),a.ea.stop()):a.ea.T(a.i.fadeDelay)}function px(a){a.S&&(a.ed()?a.I.ya():a.i.singleClickForPlayAndPause&&ux(a))}function ux(a){a.l&&a.l.isLinear()?Lw(a):Mw(a)}
1015
- function dx(a){var b=a.C.qa();a.dispatchEvent(new O("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}q.Mb=function(){return this.S?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function tx(a,b){a.m.changeTo(b);a.Mb()&&ax(a)}
1016
- function ax(a){if(a.m)if(a.m.setValue(a.B.currentTime),a.m.update(),a.m.isShowing())for(var b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new O("timeandseekrangeupdated"))}
1017
- function sx(a,b){a.ma.add(b.key);var c=a.ed();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),$w(a),a.h.o(window,"mousedown",function(){a.h.qc(window,"mousedown")}));"Escape"==b.key&&a.I.ya();c&&a.ma.has("Tab")&&xx(a,b)}
1012
+ function $w(a){var b=a.l?a.l.isPaused():!1,c=a.B.paused&&!a.$,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.l||!a.l.isLinear())&&c||a.ib||d||wx(a)?(ax(a),a.g.setAttribute("shown","true"),a.ea.stop()):a.ea.T(a.i.fadeDelay)}function px(a){a.S&&(a.ed()?a.I.xa():a.i.singleClickForPlayAndPause&&ux(a))}function ux(a){a.l&&a.l.isLinear()?Lw(a):Mw(a)}
1013
+ function dx(a){var b=a.C.qa();a.dispatchEvent(new M("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}q.Mb=function(){return this.S?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function tx(a,b){a.m.changeTo(b);a.Mb()&&ax(a)}
1014
+ function ax(a){if(a.m)if(a.m.setValue(a.B.currentTime),a.m.update(),a.m.isShowing())for(var b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new M("timeandseekrangeupdated"))}
1015
+ function sx(a,b){a.ma.add(b.key);var c=a.ed();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),$w(a),a.h.o(window,"mousedown",function(){a.h.qc(window,"mousedown")}));"Escape"==b.key&&a.I.xa();c&&a.ma.has("Tab")&&xx(a,b)}
1018
1016
  function xx(a,b){var c=a.G.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())}}}
1019
1017
  function bx(){var a=new Vb("en");a.ia("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..."],
1020
1018
  ["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"],
@@ -1074,77 +1072,77 @@ a.ia("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [
1074
1072
  ["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\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.ia("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
1075
1073
  ["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY","\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"],
1076
1074
  ["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN","\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"],
1077
- ["RESOLUTION","\u89e3\u6790\u5ea6"],["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.ef(navigator.languages||[]);return a}M("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Mb;Z.prototype.hideAdUI=Z.prototype.vf;Z.prototype.showAdUI=Z.prototype.Lf;
1078
- Z.prototype.toggleFullScreen=Z.prototype.Oe;Z.prototype.isFullScreenEnabled=Z.prototype.be;Z.prototype.isFullScreenSupported=Z.prototype.ce;Z.prototype.hideSettingsMenus=Z.prototype.fc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.ed;Z.prototype.setLastTouchEventTime=Z.prototype.Jf;Z.prototype.getDisplayTime=Z.prototype.rf;Z.prototype.isCastAllowed=Z.prototype.Ng;Z.prototype.setSeeking=Z.prototype.Ie;Z.prototype.isSeeking=Z.prototype.Pg;Z.prototype.getConfig=Z.prototype.mg;
1079
- Z.prototype.getClientSideAdContainer=Z.prototype.lg;Z.prototype.getServerSideAdContainer=Z.prototype.Eg;Z.prototype.getControlsContainer=Z.prototype.og;Z.prototype.getLocalPlayer=Z.prototype.ug;Z.prototype.getPlayer=Z.prototype.cc;Z.prototype.getLocalVideo=Z.prototype.vg;Z.prototype.getVideo=Z.prototype.Bb;Z.prototype.getVideoContainer=Z.prototype.Kg;Z.prototype.getLocalization=Z.prototype.wg;Z.prototype.getCastProxy=Z.prototype.jg;Z.prototype.getAd=Z.prototype.getAd;
1080
- Z.prototype.setEnabledNativeControls=Z.prototype.If;Z.prototype.setEnabledShakaControls=Z.prototype.Ee;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.Qg;Z.prototype.allowCast=Z.prototype.Xf;Z.registerSeekBar=function(a){rx=a};Z.registerElement=fx;Z.prototype.destroy=Z.prototype.destroy;var gx=new Map,rx=new Zw;function yx(a,b){X.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=kk();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=S("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");
1081
- this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);zx(this);this.eventManager.o(this.localization,"locale-updated",function(){Ax(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ax(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&Y(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Y(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){Y(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.Jf(Date.now());
1082
- d.stopPropagation()});this.eventManager.o(this.g,"click",function(){Bx(c)});Ax(this);this.ad&&this.ad.isLinear()&&Y(this.g,!1)}u(yx,X);yx.prototype.release=function(){this.j=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];X.prototype.release.call(this)};function Cx(a,b){Dx.set(a,b)}
1083
- function zx(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,Dx.get(c)?(c=Dx.get(c),a.i.push(c.create(a.h,a.controls))):Ua("Unrecognized overflow menu element requested:",c)}function Bx(a){if(a.controls.ed())a.controls.fc();else{Y(a.h,!0);$w(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};ib(a.h.childNodes,b)&&jb(a.h.childNodes,b)[0].focus()}}function Ax(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1084
- M("shaka.ui.OverflowMenu",yx);yx.registerElement=Cx;function Ex(){}Ex.prototype.create=function(a,b){return new yx(a,b)};fx("overflow_menu",new Ex);var Dx=new Map;function Fx(a,b){X.call(this,a,b);var c=this;this.g=kk();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=S("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");var d=S("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=S("span");d.appendChild(this.j);
1085
- this.i=S("span");this.i.classList.add("shaka-current-selection-span");d.appendChild(this.i);this.g.appendChild(d);this.parent.appendChild(this.g);Gx(this);Hx(this);this.eventManager.o(this.localization,"locale-updated",function(){Gx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Gx(c)});this.eventManager.o(this.g,"click",function(){c.controls.Bb().webkitShowPlaybackTargetPicker()});d=this.controls.Bb();this.eventManager.o(d,"webkitplaybacktargetavailabilitychanged",function(e){var f=
1086
- c.player.tf()==dm;Y(c.g,"available"==e.availability&&f)});this.eventManager.o(d,"webkitcurrentplaybacktargetiswirelesschanged",function(){Hx(c)})}u(Fx,X);function Hx(a){var b=a.controls.Bb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Gx(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}M("shaka.ui.AirPlayButton",Fx);function Ix(){}Ix.prototype.create=function(a,b){return new Fx(a,b)};Cx("airplay",new Ix);
1087
- fx("airplay",new Ix);function Jx(a,b,c){this.i=a;this.h=Kx(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.ee()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.h);this.configure({});c.controls||a.Le(b);b.ui=this;c.ui=this}q=Jx.prototype;q.destroy=function(){var a=this;return J(function(b){if(1==b.g)return a.g?z(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?z(b,a.i.destroy(),4):b.D(4);a.i=null;A(b)})};q.ee=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Yc()&&1<navigator.maxTouchPoints};
1088
- q.getConfiguration=function(){var a=Kx(this);Pk(a,this.h,Kx(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Qk(a,b));Pk(this.h,a,Kx(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new O("uiupdated"))};q.ng=function(){return this.g};q.qh=function(a){this.g.Ee(a)};
1075
+ ["RESOLUTION","\u89e3\u6790\u5ea6"],["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.ef(navigator.languages||[]);return a}J("shaka.ui.Controls",Y);Y.prototype.isOpaque=Y.prototype.Mb;Y.prototype.hideAdUI=Y.prototype.vf;Y.prototype.showAdUI=Y.prototype.Lf;
1076
+ Y.prototype.toggleFullScreen=Y.prototype.Oe;Y.prototype.isFullScreenEnabled=Y.prototype.be;Y.prototype.isFullScreenSupported=Y.prototype.ce;Y.prototype.hideSettingsMenus=Y.prototype.fc;Y.prototype.anySettingsMenusAreOpen=Y.prototype.ed;Y.prototype.setLastTouchEventTime=Y.prototype.Jf;Y.prototype.getDisplayTime=Y.prototype.rf;Y.prototype.isCastAllowed=Y.prototype.Ng;Y.prototype.setSeeking=Y.prototype.Ie;Y.prototype.isSeeking=Y.prototype.Pg;Y.prototype.getConfig=Y.prototype.mg;
1077
+ Y.prototype.getClientSideAdContainer=Y.prototype.lg;Y.prototype.getServerSideAdContainer=Y.prototype.Eg;Y.prototype.getControlsContainer=Y.prototype.og;Y.prototype.getLocalPlayer=Y.prototype.ug;Y.prototype.getPlayer=Y.prototype.cc;Y.prototype.getLocalVideo=Y.prototype.vg;Y.prototype.getVideo=Y.prototype.Bb;Y.prototype.getVideoContainer=Y.prototype.Kg;Y.prototype.getLocalization=Y.prototype.wg;Y.prototype.getCastProxy=Y.prototype.jg;Y.prototype.getAd=Y.prototype.getAd;
1078
+ Y.prototype.setEnabledNativeControls=Y.prototype.If;Y.prototype.setEnabledShakaControls=Y.prototype.Ee;Y.prototype.configure=Y.prototype.configure;Y.prototype.loadComplete=Y.prototype.Qg;Y.prototype.allowCast=Y.prototype.Xf;Y.registerSeekBar=function(a){rx=a};Y.registerElement=fx;Y.prototype.destroy=Y.prototype.destroy;var gx=new Map,rx=new Zw;function yx(a,b){W.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=kk();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=R("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");
1079
+ this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);zx(this);this.eventManager.o(this.localization,"locale-updated",function(){Ax(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ax(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&X(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){X(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){X(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.Jf(Date.now());
1080
+ d.stopPropagation()});this.eventManager.o(this.g,"click",function(){Bx(c)});Ax(this);this.ad&&this.ad.isLinear()&&X(this.g,!1)}qa(yx,W);yx.prototype.release=function(){this.j=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function Cx(a,b){Dx.set(a,b)}
1081
+ function zx(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,Dx.get(c)?(c=Dx.get(c),a.i.push(c.create(a.h,a.controls))):Ua("Unrecognized overflow menu element requested:",c)}function Bx(a){if(a.controls.ed())a.controls.fc();else{X(a.h,!0);$w(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};ib(a.h.childNodes,b)&&jb(a.h.childNodes,b)[0].focus()}}function Ax(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1082
+ J("shaka.ui.OverflowMenu",yx);yx.registerElement=Cx;function Ex(){}Ex.prototype.create=function(a,b){return new yx(a,b)};fx("overflow_menu",new Ex);var Dx=new Map;function Fx(a,b){W.call(this,a,b);var c=this;this.g=kk();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=R("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");var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");d.appendChild(this.j);
1083
+ this.i=R("span");this.i.classList.add("shaka-current-selection-span");d.appendChild(this.i);this.g.appendChild(d);this.parent.appendChild(this.g);Gx(this);Hx(this);this.eventManager.o(this.localization,"locale-updated",function(){Gx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Gx(c)});this.eventManager.o(this.g,"click",function(){c.controls.Bb().webkitShowPlaybackTargetPicker()});d=this.controls.Bb();this.eventManager.o(d,"webkitplaybacktargetavailabilitychanged",function(e){var f=
1084
+ c.player.tf()==dm;X(c.g,"available"==e.availability&&f)});this.eventManager.o(d,"webkitcurrentplaybacktargetiswirelesschanged",function(){Hx(c)})}qa(Fx,W);function Hx(a){var b=a.controls.Bb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Gx(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}J("shaka.ui.AirPlayButton",Fx);function Ix(){}Ix.prototype.create=function(a,b){return new Fx(a,b)};Cx("airplay",new Ix);
1085
+ fx("airplay",new Ix);function Jx(a,b,c){this.i=a;this.h=Kx(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.ee()&&b.classList.add("shaka-mobile");this.g=new Y(a,b,c,this.h);this.configure({});c.controls||a.Le(b);b.ui=this;c.ui=this}q=Jx.prototype;q.destroy=function(){var a=this;return I(function(b){if(1==b.g)return a.g?u(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?u(b,a.i.destroy(),4):b.D(4);a.i=null;z(b)})};q.ee=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Yc()&&1<navigator.maxTouchPoints};
1086
+ q.getConfiguration=function(){var a=Kx(this);Pk(a,this.h,Kx(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Qk(a,b));Pk(this.h,a,Kx(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new M("uiupdated"))};q.ng=function(){return this.g};q.qh=function(a){this.g.Ee(a)};
1089
1087
  function Kx(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".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent".split(" "),contextMenuElements:["loop",
1090
1088
  "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)"},
1091
1089
  trackLabelFormat:Lx,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.ee()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1092
- function Mx(){var a,b,c,d,e,f,g,h,k,l,m,n,p;return J(function(r){switch(r.g){case 1:yt();if(!tl())return Nx("shaka-ui-load-failed",Ox),r["return"]();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");if(!b.length&&!a.length){r.D(2);break}if(b.length&&!a.length){c=t(b);for(d=c.next();!d.done;d=c.next())e=d.value,e.ui||(f=document.createElement("div"),g=e.parentElement,g.replaceChild(f,e),f.appendChild(e),Px(f,e));r.D(2);break}h=t(a);k=h.next();
1093
- case 4:if(k.done){r.D(2);break}l=k.value;if(l.ui){r.D(5);break}m=null;n=t(b);for(d=n.next();!d.done;d=n.next())if(p=d.value,p.parentElement==l){m=p;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));F(r,7);return z(r,Px(l,m),9);case 9:va(r,5);break;case 7:return I(r),Nx("shaka-ui-load-failed",Qx),r["return"]();case 5:k=h.next();r.D(4);break;case 2:Nx("shaka-ui-loaded"),A(r)}})}
1090
+ function Mx(){var a,b,c,d,e,f,g,h,k,l,m,n,p;return I(function(r){switch(r.g){case 1:yt();if(!tl())return Nx("shaka-ui-load-failed",Ox),r["return"]();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");if(!b.length&&!a.length){r.D(2);break}if(b.length&&!a.length){c=t(b);for(d=c.next();!d.done;d=c.next())e=d.value,e.ui||(f=document.createElement("div"),g=e.parentElement,g.replaceChild(f,e),f.appendChild(e),Px(f,e));r.D(2);break}h=t(a);k=h.next();
1091
+ case 4:if(k.done){r.D(2);break}l=k.value;if(l.ui){r.D(5);break}m=null;n=t(b);for(d=n.next();!d.done;d=n.next())if(p=d.value,p.parentElement==l){m=p;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));A(r,7);return u(r,Px(l,m),9);case 9:va(r,5);break;case 7:return F(r),Nx("shaka-ui-load-failed",Qx),r["return"]();case 5:k=h.next();r.D(4);break;case 2:Nx("shaka-ui-loaded"),z(r)}})}
1094
1092
  function Nx(a,b){var c=null;void 0!=b&&(c={reasonCode:b});c=new CustomEvent(a,{detail:c});document.dispatchEvent(c)}
1095
- function Px(a,b){var c,d,e,f,g,h,k,l,m;return J(function(n){switch(n.g){case 1:c=new T(b);d=new Jx(c,a,b);e="";f=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(e=a.dataset.shakaPlayerCastReceiverId,f="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(e=b.dataset.shakaPlayerCastReceiverId,f="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);e.length&&d.configure({castReceiverAppId:e,castAndroidReceiverCompatible:f});b.controls&&
1096
- d.g.If(!0);if(g=b.getAttribute("src"))h=document.createElement("source"),h.setAttribute("src",g),b.appendChild(h),b.removeAttribute("src");k=t(b.querySelectorAll("source"));l=k.next();case 2:if(l.done){n.D(0);break}m=l.value;F(n,5);return z(n,d.g.cc().load(m.getAttribute("src")),7);case 7:n.D(0);break;case 5:I(n);case 3:l=k.next(),n.D(2)}})}M("shaka.ui.Overlay",Jx);Jx.prototype.setEnabled=Jx.prototype.qh;Jx.prototype.getControls=Jx.prototype.ng;Jx.prototype.configure=Jx.prototype.configure;
1097
- Jx.prototype.getConfiguration=Jx.prototype.getConfiguration;Jx.prototype.isMobile=Jx.prototype.ee;Jx.prototype.destroy=Jx.prototype.destroy;var Lx=0;Jx.TrackLabelFormat={LANGUAGE:Lx,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var Ox=0,Qx=1;Jx.FailReasonCode={NO_BROWSER_SUPPORT:Ox,PLAYER_FAILED_TO_LOAD:Qx};"complete"==document.readyState?J(function(a){if(1==a.g)return z(a,Promise.resolve(),2);Mx();A(a)}):window.addEventListener("load",Mx);function Rx(a,b,c,d,e,f,g){function h(B,C){return B+": "+C}function k(B){return"variant"==B.type?B.audioRoles?B.audioRoles.join(", "):void 0:B.roles.join(", ")}var l=a.find(function(B){return 1==B.active}),m=Cw(b);lk(b);b.appendChild(m);m=new Map;for(var n=t(a),p=n.next();!p.done;p=n.next())p=p.value,m.has(p.language)||m.set(p.language,new Set),m.get(p.language).add(k(p));m=new Set;l=l?h(l.language,k(l)):"";n={};a=t(a);for(p=a.next();!p.done;n={Va:n.Va},p=a.next()){n.Va=p.value;p=n.Va.language;var r=
1098
- n.Va.forced,v=f.resolve(Zb.Sf),y=k(n.Va),x=h(p,y);if(!m.has(x)){m.add(x);var w=kk();w.addEventListener("click",function(B){return function(){c(B.Va)}}(n));var D=S("span");w.appendChild(D);D.textContent=Sx(p,f);switch(g){case Lx:r&&(D.textContent+=" ("+v+")");break;case 1:y?D.textContent=y:(Ua("Track #"+n.Va.id+" does not have a role, but the UI is configured to only show role."),D.textContent="?");r&&(D.textContent+=" ("+v+")");break;case 2:y&&(D.textContent+=": "+y);r&&(D.textContent+=" ("+v+")");
1093
+ function Px(a,b){var c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:c=new S(b);d=new Jx(c,a,b);e="";f=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(e=a.dataset.shakaPlayerCastReceiverId,f="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(e=b.dataset.shakaPlayerCastReceiverId,f="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);e.length&&d.configure({castReceiverAppId:e,castAndroidReceiverCompatible:f});b.controls&&
1094
+ d.g.If(!0);if(g=b.getAttribute("src"))h=document.createElement("source"),h.setAttribute("src",g),b.appendChild(h),b.removeAttribute("src");k=t(b.querySelectorAll("source"));l=k.next();case 2:if(l.done){n.D(0);break}m=l.value;A(n,5);return u(n,d.g.cc().load(m.getAttribute("src")),7);case 7:n.D(0);break;case 5:F(n);case 3:l=k.next(),n.D(2)}})}J("shaka.ui.Overlay",Jx);Jx.prototype.setEnabled=Jx.prototype.qh;Jx.prototype.getControls=Jx.prototype.ng;Jx.prototype.configure=Jx.prototype.configure;
1095
+ Jx.prototype.getConfiguration=Jx.prototype.getConfiguration;Jx.prototype.isMobile=Jx.prototype.ee;Jx.prototype.destroy=Jx.prototype.destroy;var Lx=0;Jx.TrackLabelFormat={LANGUAGE:Lx,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var Ox=0,Qx=1;Jx.FailReasonCode={NO_BROWSER_SUPPORT:Ox,PLAYER_FAILED_TO_LOAD:Qx};"complete"==document.readyState?I(function(a){if(1==a.g)return u(a,Promise.resolve(),2);Mx();z(a)}):window.addEventListener("load",Mx);function Rx(a,b,c,d,e,f,g){function h(B,C){return B+": "+C}function k(B){return"variant"==B.type?B.audioRoles?B.audioRoles.join(", "):void 0:B.roles.join(", ")}var l=a.find(function(B){return 1==B.active}),m=Cw(b);lk(b);b.appendChild(m);m=new Map;for(var n=t(a),p=n.next();!p.done;p=n.next())p=p.value,m.has(p.language)||m.set(p.language,new Set),m.get(p.language).add(k(p));m=new Set;l=l?h(l.language,k(l)):"";n={};a=t(a);for(p=a.next();!p.done;n={Va:n.Va},p=a.next()){n.Va=p.value;p=n.Va.language;var r=
1096
+ n.Va.forced,v=f.resolve(Zb.Sf),y=k(n.Va),x=h(p,y);if(!m.has(x)){m.add(x);var w=kk();w.addEventListener("click",function(B){return function(){c(B.Va)}}(n));var D=R("span");w.appendChild(D);D.textContent=Sx(p,f);switch(g){case Lx:r&&(D.textContent+=" ("+v+")");break;case 1:y?D.textContent=y:(Ua("Track #"+n.Va.id+" does not have a role, but the UI is configured to only show role."),D.textContent="?");r&&(D.textContent+=" ("+v+")");break;case 2:y&&(D.textContent+=": "+y);r&&(D.textContent+=" ("+v+")");
1099
1097
  break;case 3:n.Va.label?D.textContent=n.Va.label:(Ua("Track #"+n.Va.id+" does not have a label, but the UI is configured to only show labels."),D.textContent="?")}d&&x==l&&(w.appendChild(Fw()),D.classList.add("shaka-chosen-item"),w.ariaSelected="true",e.textContent=D.textContent);b.appendChild(w)}}}
1100
- function Sx(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=Rb(a);return a in yw?yw[a].s:c in yw?yw[c].s+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function Tx(a,b,c){X.call(this,a,b);var d=this;Ux(this,c);Vx(this);Wx(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new O("submenuopen")),Y(d.menu,!0),Ew(d.menu)):Y(d.menu,!1)})}u(Tx,X);
1101
- function Ux(a,b){a.button=kk();a.button.classList.add("shaka-overflow-button");a.icon=S("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);var c=S("label");c.classList.add("shaka-overflow-button-label");c.classList.add("shaka-overflow-menu-only");a.nameSpan=S("span");c.appendChild(a.nameSpan);a.currentSelection=S("span");a.currentSelection.classList.add("shaka-current-selection-span");c.appendChild(a.currentSelection);a.button.appendChild(c);a.parent.appendChild(a.button)}
1102
- function Vx(a){a.menu=S("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=kk();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.fc()});var b=S("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1103
- S("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function Wx(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){Y(a.parent,!0);a.parent.childNodes[0].focus();$w(a.controls)}))}M("shaka.ui.SettingsMenu",Tx);function Xx(a,b){Tx.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.o(this.localization,"locale-updated",function(){Yx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Yx(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.Qa().length;Y(c.button,d);Zx(c)});this.eventManager.o(this.player,"variantchanged",
1104
- function(){Zx(c)});Yx(this);Zx(this)}u(Xx,Tx);function Zx(a){var b=a.player.Qa();Rx(b,a.menu,function(c){a.player.Fd(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);Ew(a.menu);a.controls.dispatchEvent(new O("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1105
- function Yx(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")}M("shaka.ui.AudioLanguageSelection",Xx);function $x(){}$x.prototype.create=function(a,b){return new Xx(a,b)};Cx("language",new $x);fx("language",new $x);function ay(a,b){X.call(this,a,b);var c=this;this.h=this.controls.C;this.g=kk();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);var d=S("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.l=S("span");d.appendChild(this.l);this.j=S("span");this.j.classList.add("shaka-current-selection-span");
1106
- d.appendChild(this.j);this.g.appendChild(d);this.parent.appendChild(this.g);by(this);cy(this);this.eventManager.o(this.localization,"locale-updated",function(){by(c)});this.eventManager.o(this.localization,"locale-changed",function(){by(c)});this.eventManager.o(this.g,"click",function(){dy(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){cy(c)})}u(ay,X);
1107
- function dy(a){var b;J(function(c){if(1==c.g){if(a.h.qa())return a.h.Mf(),c.D(0);F(c,3);a.g.disabled=!0;return z(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=I(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new O("error",(new Map).set("detail",b)));A(c)})}function cy(a){var b=a.h.bf()&&a.controls.gb,c=a.h.qa();Y(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");ey(a)}
1108
- function ey(a){a.j.textContent=a.h.qa()?a.h.Dd():a.localization.resolve("OFF")}function by(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");ey(a)}M("shaka.ui.CastButton",ay);function fy(){}fy.prototype.create=function(a,b){return new ay(a,b)};Cx("cast",new fy);fx("cast",new fy);function gy(a,b){X.call(this,a,b);var c=this;this.g=kk();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);hy(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){hy(c)});this.eventManager.o(this.localization,"locale-changed",function(){hy(c)});
1109
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Qe(d);c.g.setAttribute("shaka-status",d+"x")}})}u(gy,X);function hy(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}M("shaka.ui.FastForwardButton",gy);function iy(){}iy.prototype.create=function(a,b){return new gy(a,b)};fx("fast_forward",new iy);function jy(a,b){X.call(this,a,b);var c=this;this.h=this.controls.A;this.g=kk();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");ky(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);ly(this);this.eventManager.o(this.localization,"locale-updated",function(){ly(c)});this.eventManager.o(this.localization,"locale-changed",function(){ly(c)});this.eventManager.o(this.g,"click",function(){return J(function(d){return z(d,
1110
- c.controls.Oe(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.be()?"fullscreen_exit":"fullscreen";ly(c)});this.eventManager.o(this.h,"loadedmetadata",function(){ky(c)});this.eventManager.o(this.h,"loadeddata",function(){ky(c)})}u(jy,X);function ky(a){a.controls.ce()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function ly(a){a.g.ariaLabel=a.localization.resolve(a.controls.be()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1111
- M("shaka.ui.FullscreenButton",jy);function my(){}my.prototype.create=function(a,b){return new jy(a,b)};fx("fullscreen",new my);function ny(a,b){X.call(this,a,b);var c=this;this.g=kk();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);var d=S("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=S("span");this.j.textContent=this.localization.resolve("LOOP");d.appendChild(this.j);this.l=S("span");this.l.classList.add("shaka-current-selection-span");
1112
- d.appendChild(this.l);this.g.appendChild(d);oy(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){oy(c)});this.eventManager.o(this.localization,"locale-changed",function(){oy(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.ya();c.h.ka(1)});this.m=this.video.loop;this.h=new Q(function(){c.m!=c.video.loop&&(oy(c),c.m=c.video.loop)});this.h.ka(1)}u(ny,X);ny.prototype.release=function(){this.h.stop();this.h=null;X.prototype.release.call(this)};
1113
- function oy(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")}M("shaka.ui.LoopButton",ny);function py(){}py.prototype.create=function(a,b){return new ny(a,b)};Cx("loop",new py);fx("loop",new py);Qw("loop",new py);function qy(a,b){X.call(this,a,b);var c=this;this.g=kk();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);ry(this);sy(this);this.eventManager.o(this.localization,"locale-updated",function(){ry(c)});this.eventManager.o(this.localization,"locale-changed",function(){ry(c)});this.eventManager.o(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1114
- this.eventManager.o(this.video,"volumechange",function(){ry(c);sy(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){ry(c);sy(c)});this.eventManager.o(this.adManager,"ad-muted",function(){ry(c);sy(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;ry(c);sy(c)})}u(qy,X);function ry(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1115
- function sy(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}M("shaka.ui.MuteButton",qy);function ty(){}ty.prototype.create=function(a,b){return new qy(a,b)};fx("mute",new ty);function uy(a,b){X.call(this,a,b);var c=this;this.l=this.controls.A;this.g=kk();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);var d=S("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=S("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");d.appendChild(this.j);
1116
- this.h=S("span");this.h.classList.add("shaka-current-selection-span");d.appendChild(this.h);this.g.appendChild(d);vy(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||Y(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){vy(c)});this.eventManager.o(this.localization,"locale-changed",function(){vy(c)});this.eventManager.o(this.g,"click",function(){wy(c)});this.eventManager.o(this.l,"enterpictureinpicture",function(){c.i.textContent=
1117
- "branding_watermark";c.g.ariaLabel=c.localization.resolve("EXIT_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("ON")});this.eventManager.o(this.l,"leavepictureinpicture",function(){c.i.textContent="picture_in_picture_alt";c.g.ariaLabel=c.localization.resolve("ENTER_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("OFF")});this.eventManager.o(this.controls,"caststatuschanged",function(e){e.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Y(c.g,!1):
1118
- document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Y(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){xy(c)})}u(uy,X);function wy(a){var b;J(function(c){if(1==c.g)return F(c,2),document.pictureInPictureElement?z(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),z(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return va(c,0);b=I(c);a.controls.dispatchEvent(new O("error",(new Map).set("detail",b)));A(c)})}
1098
+ function Sx(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=Rb(a);return a in yw?yw[a].s:c in yw?yw[c].s+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function Tx(a,b,c){W.call(this,a,b);var d=this;Ux(this,c);Vx(this);Wx(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new M("submenuopen")),X(d.menu,!0),Ew(d.menu)):X(d.menu,!1)})}qa(Tx,W);
1099
+ function Ux(a,b){a.button=kk();a.button.classList.add("shaka-overflow-button");a.icon=R("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);var c=R("label");c.classList.add("shaka-overflow-button-label");c.classList.add("shaka-overflow-menu-only");a.nameSpan=R("span");c.appendChild(a.nameSpan);a.currentSelection=R("span");a.currentSelection.classList.add("shaka-current-selection-span");c.appendChild(a.currentSelection);a.button.appendChild(c);a.parent.appendChild(a.button)}
1100
+ function Vx(a){a.menu=R("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=kk();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.fc()});var b=R("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1101
+ R("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function Wx(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){X(a.parent,!0);a.parent.childNodes[0].focus();$w(a.controls)}))}J("shaka.ui.SettingsMenu",Tx);function Xx(a,b){Tx.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.o(this.localization,"locale-updated",function(){Yx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Yx(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.Qa().length;X(c.button,d);Zx(c)});this.eventManager.o(this.player,"variantchanged",
1102
+ function(){Zx(c)});Yx(this);Zx(this)}qa(Xx,Tx);function Zx(a){var b=a.player.Qa();Rx(b,a.menu,function(c){a.player.Fd(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);Ew(a.menu);a.controls.dispatchEvent(new M("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1103
+ function Yx(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")}J("shaka.ui.AudioLanguageSelection",Xx);function $x(){}$x.prototype.create=function(a,b){return new Xx(a,b)};Cx("language",new $x);fx("language",new $x);function ay(a,b){W.call(this,a,b);var c=this;this.h=this.controls.C;this.g=kk();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.l=R("span");d.appendChild(this.l);this.j=R("span");this.j.classList.add("shaka-current-selection-span");
1104
+ d.appendChild(this.j);this.g.appendChild(d);this.parent.appendChild(this.g);by(this);cy(this);this.eventManager.o(this.localization,"locale-updated",function(){by(c)});this.eventManager.o(this.localization,"locale-changed",function(){by(c)});this.eventManager.o(this.g,"click",function(){dy(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){cy(c)})}qa(ay,W);
1105
+ function dy(a){var b;I(function(c){if(1==c.g){if(a.h.qa())return a.h.Mf(),c.D(0);A(c,3);a.g.disabled=!0;return u(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=F(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new M("error",(new Map).set("detail",b)));z(c)})}function cy(a){var b=a.h.bf()&&a.controls.gb,c=a.h.qa();X(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");ey(a)}
1106
+ function ey(a){a.j.textContent=a.h.qa()?a.h.Dd():a.localization.resolve("OFF")}function by(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");ey(a)}J("shaka.ui.CastButton",ay);function fy(){}fy.prototype.create=function(a,b){return new ay(a,b)};Cx("cast",new fy);fx("cast",new fy);function gy(a,b){W.call(this,a,b);var c=this;this.g=kk();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);hy(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){hy(c)});this.eventManager.o(this.localization,"locale-changed",function(){hy(c)});
1107
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Qe(d);c.g.setAttribute("shaka-status",d+"x")}})}qa(gy,W);function hy(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}J("shaka.ui.FastForwardButton",gy);function iy(){}iy.prototype.create=function(a,b){return new gy(a,b)};fx("fast_forward",new iy);function jy(a,b){W.call(this,a,b);var c=this;this.h=this.controls.A;this.g=kk();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");ky(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);ly(this);this.eventManager.o(this.localization,"locale-updated",function(){ly(c)});this.eventManager.o(this.localization,"locale-changed",function(){ly(c)});this.eventManager.o(this.g,"click",function(){return I(function(d){return u(d,
1108
+ c.controls.Oe(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.be()?"fullscreen_exit":"fullscreen";ly(c)});this.eventManager.o(this.h,"loadedmetadata",function(){ky(c)});this.eventManager.o(this.h,"loadeddata",function(){ky(c)})}qa(jy,W);function ky(a){a.controls.ce()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function ly(a){a.g.ariaLabel=a.localization.resolve(a.controls.be()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1109
+ J("shaka.ui.FullscreenButton",jy);function my(){}my.prototype.create=function(a,b){return new jy(a,b)};fx("fullscreen",new my);function ny(a,b){W.call(this,a,b);var c=this;this.g=kk();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("LOOP");d.appendChild(this.j);this.l=R("span");this.l.classList.add("shaka-current-selection-span");
1110
+ d.appendChild(this.l);this.g.appendChild(d);oy(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){oy(c)});this.eventManager.o(this.localization,"locale-changed",function(){oy(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.xa();c.h.ka(1)});this.m=this.video.loop;this.h=new P(function(){c.m!=c.video.loop&&(oy(c),c.m=c.video.loop)});this.h.ka(1)}qa(ny,W);ny.prototype.release=function(){this.h.stop();this.h=null;W.prototype.release.call(this)};
1111
+ function oy(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")}J("shaka.ui.LoopButton",ny);function py(){}py.prototype.create=function(a,b){return new ny(a,b)};Cx("loop",new py);fx("loop",new py);Qw("loop",new py);function qy(a,b){W.call(this,a,b);var c=this;this.g=kk();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);ry(this);sy(this);this.eventManager.o(this.localization,"locale-updated",function(){ry(c)});this.eventManager.o(this.localization,"locale-changed",function(){ry(c)});this.eventManager.o(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1112
+ this.eventManager.o(this.video,"volumechange",function(){ry(c);sy(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){ry(c);sy(c)});this.eventManager.o(this.adManager,"ad-muted",function(){ry(c);sy(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;ry(c);sy(c)})}qa(qy,W);function ry(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1113
+ function sy(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}J("shaka.ui.MuteButton",qy);function ty(){}ty.prototype.create=function(a,b){return new qy(a,b)};fx("mute",new ty);function uy(a,b){W.call(this,a,b);var c=this;this.l=this.controls.A;this.g=kk();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");d.appendChild(this.j);
1114
+ this.h=R("span");this.h.classList.add("shaka-current-selection-span");d.appendChild(this.h);this.g.appendChild(d);vy(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||X(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){vy(c)});this.eventManager.o(this.localization,"locale-changed",function(){vy(c)});this.eventManager.o(this.g,"click",function(){wy(c)});this.eventManager.o(this.l,"enterpictureinpicture",function(){c.i.textContent=
1115
+ "branding_watermark";c.g.ariaLabel=c.localization.resolve("EXIT_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("ON")});this.eventManager.o(this.l,"leavepictureinpicture",function(){c.i.textContent="picture_in_picture_alt";c.g.ariaLabel=c.localization.resolve("ENTER_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("OFF")});this.eventManager.o(this.controls,"caststatuschanged",function(e){e.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&X(c.g,!1):
1116
+ document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&X(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){xy(c)})}qa(uy,W);function wy(a){var b;I(function(c){if(1==c.g)return A(c,2),document.pictureInPictureElement?u(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),u(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return va(c,0);b=F(c);a.controls.dispatchEvent(new M("error",(new Map).set("detail",b)));z(c)})}
1119
1117
  function vy(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");a.g.ariaLabel=a.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(document.pictureInPictureElement?"ON":"OFF")}
1120
- function xy(a){J(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return Y(a.g,!1),b.D(0);if(!a.player||!a.player.hc())return Y(a.g,!0),b.D(0);Y(a.g,!1);return document.pictureInPictureElement?z(b,document.exitPictureInPicture(),0):b.D(0)})}M("shaka.ui.PipButton",uy);function yy(){}yy.prototype.create=function(a,b){return new uy(a,b)};Cx("picture_in_picture",new yy);fx("picture_in_picture",new yy);Qw("picture_in_picture",new yy);function zy(a,b){Tx.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.o(this.localization,"locale-updated",function(){Ay(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ay(c)});this.eventManager.o(this.player,"ratechange",function(){By(c,c.player.zb())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+
1121
- "x",d]}));Ay(this);Cy(this);By(this,this.player.zb())}u(zy,Tx);function Ay(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")}
1118
+ function xy(a){I(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return X(a.g,!1),b.D(0);if(!a.player||!a.player.hc())return X(a.g,!0),b.D(0);X(a.g,!1);return document.pictureInPictureElement?u(b,document.exitPictureInPicture(),0):b.D(0)})}J("shaka.ui.PipButton",uy);function yy(){}yy.prototype.create=function(a,b){return new uy(a,b)};Cx("picture_in_picture",new yy);fx("picture_in_picture",new yy);Qw("picture_in_picture",new yy);function zy(a,b){Tx.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.o(this.localization,"locale-updated",function(){Ay(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ay(c)});this.eventManager.o(this.player,"ratechange",function(){By(c,c.player.zb())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+
1119
+ "x",d]}));Ay(this);Cy(this);By(this,this.player.zb())}qa(zy,Tx);function Ay(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")}
1122
1120
  function By(a,b){var c=Dw(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(Fw()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1123
- "x")}function Cy(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={wc:b.wc},d=c.next()){b.wc=d.value;d=kk();var e=S("span");e.textContent=b.wc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.wc);a.video.defaultPlaybackRate=a.g.get(f.wc)}}(b));a.menu.appendChild(d)}Ew(a.menu)}M("shaka.ui.PlaybackRateSelection",zy);function Dy(){}Dy.prototype.create=function(a,b){return new zy(a,b)};Cx("playback_rate",new Dy);fx("playback_rate",new Dy);function Ey(a,b){X.call(this,a,b);var c=this;this.g=kk();this.g.classList.add("shaka-current-time");Fy(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.Ia().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.$,e=c.controls.rf(),f=c.video.duration,g=c.player.Ia(),h=g.end-g.start;c.player.U()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(Fy(c,"- "+Gw(e,f)),c.g.disabled=
1124
- !1):(Fy(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=Gw(e,d),f&&(e+=" / "+Gw(f,d)),Fy(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.U()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}u(Ey,X);function Fy(a,b){b!=a.g.textContent&&(a.g.textContent=b)}M("shaka.ui.PresentationTimeTracker",Ey);function Gy(){}Gy.prototype.create=function(a,b){return new Ey(a,b)};fx("time_and_duration",new Gy);function Hy(a,b){Tx.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.o(this.localization,"locale-updated",function(){Iy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Iy(c)});this.eventManager.o(this.player,"variantchanged",function(){Jy(c)});this.eventManager.o(this.player,"trackschanged",function(){Jy(c)});this.eventManager.o(this.player,
1125
- "abrstatuschanged",function(){Jy(c)});Jy(this)}u(Hy,Tx);
1121
+ "x")}function Cy(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={wc:b.wc},d=c.next()){b.wc=d.value;d=kk();var e=R("span");e.textContent=b.wc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.wc);a.video.defaultPlaybackRate=a.g.get(f.wc)}}(b));a.menu.appendChild(d)}Ew(a.menu)}J("shaka.ui.PlaybackRateSelection",zy);function Dy(){}Dy.prototype.create=function(a,b){return new zy(a,b)};Cx("playback_rate",new Dy);fx("playback_rate",new Dy);function Ey(a,b){W.call(this,a,b);var c=this;this.g=kk();this.g.classList.add("shaka-current-time");Fy(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.Ha().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.$,e=c.controls.rf(),f=c.video.duration,g=c.player.Ha(),h=g.end-g.start;c.player.U()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(Fy(c,"- "+Gw(e,f)),c.g.disabled=
1122
+ !1):(Fy(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=Gw(e,d),f&&(e+=" / "+Gw(f,d)),Fy(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.U()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}qa(Ey,W);function Fy(a,b){b!=a.g.textContent&&(a.g.textContent=b)}J("shaka.ui.PresentationTimeTracker",Ey);function Gy(){}Gy.prototype.create=function(a,b){return new Ey(a,b)};fx("time_and_duration",new Gy);function Hy(a,b){Tx.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.o(this.localization,"locale-updated",function(){Iy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Iy(c)});this.eventManager.o(this.player,"variantchanged",function(){Jy(c)});this.eventManager.o(this.player,"trackschanged",function(){Jy(c)});this.eventManager.o(this.player,
1123
+ "abrstatuschanged",function(){Jy(c)});Jy(this)}qa(Hy,Tx);
1126
1124
  function Jy(a){var b=a.player.Qa(),c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){return(a.player.hc()?b.findIndex(function(m){return m.bandwidth==k.bandwidth}):b.findIndex(function(m){return m.height==k.height}))==l});a.player.hc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=Cw(a.menu);lk(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;
1127
- for(var e={},f=t(b),g=f.next();!g.done;e={Yb:e.Yb},g=f.next()){e.Yb=g.value;g=kk();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.Yb;a.player.configure({abr:{enabled:!1}});a.player.Ce(l,a.controls.i.clearBufferOnQualityChange)}}(e));var h=S("span");h.textContent=a.player.hc()?Math.round(e.Yb.bandwidth/1E3)+" kbits/s":e.Yb.height+"p";g.appendChild(h);d||e.Yb!=c||(g.ariaSelected="true",g.appendChild(Fw()),h.classList.add("shaka-chosen-item"),
1128
- a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=kk();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});Jy(a)});a.g=S("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(Fw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",
1129
- a.currentSelection.textContent);a.menu.appendChild(e);Ew(a.menu);a.controls.dispatchEvent(new O("resolutionselectionupdated"));Iy(a)}
1130
- function Iy(a){var b=a.player.hc()?"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"))}M("shaka.ui.ResolutionSelection",Hy);function Ky(){}
1131
- Ky.prototype.create=function(a,b){return new Hy(a,b)};Cx("quality",new Ky);fx("quality",new Ky);function Ly(a,b){X.call(this,a,b);var c=this;this.g=kk();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);My(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){My(c)});this.eventManager.o(this.localization,"locale-changed",function(){My(c)});
1132
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Qe(d);c.g.setAttribute("shaka-status",d+"x")}})}u(Ly,X);function My(a){a.g.ariaLabel=a.localization.resolve("REWIND")}M("shaka.ui.RewindButton",Ly);function Ny(){}Ny.prototype.create=function(a,b){return new Ly(a,b)};fx("rewind",new Ny);function Oy(a,b){X.call(this,a,b);var c=this;this.j=S("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=S("div");this.h.classList.add("shaka-skip-ad-counter");Y(this.h,!1);this.j.appendChild(this.h);this.g=kk();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;Y(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);Py(this);this.i=new Q(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1133
- d:(c.i.stop(),Y(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){Py(c)});this.eventManager.o(this.localization,"locale-changed",function(){Py(c)});this.eventManager.o(this.adManager,"ad-started",function(){Qy(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),Y(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;Y(c.g,!1);Y(c.h,!1)});this.eventManager.o(this.g,
1134
- "click",function(){c.ad.skip()});this.ad&&Qy(this)}u(Oy,X);Oy.prototype.release=function(){this.i.stop();this.i=null;X.prototype.release.call(this)};function Py(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function Qy(a){a.ad.isSkippable()&&(Y(a.g,!0),Y(a.h,!0),a.h.textContent="",a.i.ya(),a.i.ka(.5))}M("shaka.ui.SkipAdButton",Oy);function Ry(a,b){Kw.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()}u(Ry,Kw);Ry.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};Ry.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};
1135
- M("shaka.ui.SmallPlayButton",Ry);function Sy(){}Sy.prototype.create=function(a,b){return new Ry(a,b)};fx("play_pause",new Sy);function Ty(a,b){X.call(this,a,b);var c=S("div");c.classList.add("shaka-spacer");c.ariaHidden="true";this.parent.appendChild(c)}u(Ty,X);M("shaka.ui.Spacer",Ty);function Uy(){}Uy.prototype.create=function(a,b){return new Ty(a,b)};fx("spacer",new Uy);function Vy(a,b){function c(l){return Gw(h.h[l],!1)+" (m)"}function d(l){return Math.round(h.h[l]/1E3)+" (kbits/s)"}function e(l){return h.h[l].toFixed(2)+" (s)"}function f(l){return h.h[l]+" (frames)"}function g(l){return h.h[l]+" (px)"}X.call(this,a,b);var h=this;this.i=kk();this.i.classList.add("shaka-statistics-button");this.j=S("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);var k=S("label");k.classList.add("shaka-overflow-button-label");
1136
- this.A=S("span");k.appendChild(this.A);this.m=S("span");this.m.classList.add("shaka-current-selection-span");k.appendChild(this.m);this.i.appendChild(k);this.parent.appendChild(this.i);this.g=S("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-statistics-container");this.g.classList.add("shaka-hidden");this.controls.g.appendChild(this.g);this.F=[];this.G=["stateHistory","switchHistory"];this.h=this.player.getStats();
1137
- this.B={};this.C={width:g,height:g,completionPercent:function(l){return h.h[l]+" (%)"},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(l){return h.h[l]+" (stalls)"},gapsJumped:function(l){return h.h[l]+" (gaps)"}};this.l=new Q(function(){h.h=h.player.getStats();for(var l=t(h.F),m=l.next();!m.done;m=
1138
- l.next())m=m.value,h.B[m].textContent=h.C[m](m)});Wy(this);Xy(this);this.eventManager.o(this.localization,"locale-updated",function(){Wy(h)});this.eventManager.o(this.localization,"locale-changed",function(){Wy(h)});this.eventManager.o(this.i,"click",function(){Y(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ka(.1),Y(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),Y(h.g,!1));Wy(h)})}u(Vy,X);
1125
+ for(var e={},f=t(b),g=f.next();!g.done;e={Yb:e.Yb},g=f.next()){e.Yb=g.value;g=kk();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.Yb;a.player.configure({abr:{enabled:!1}});a.player.Ce(l,a.controls.i.clearBufferOnQualityChange)}}(e));var h=R("span");h.textContent=a.player.hc()?Math.round(e.Yb.bandwidth/1E3)+" kbits/s":e.Yb.height+"p";g.appendChild(h);d||e.Yb!=c||(g.ariaSelected="true",g.appendChild(Fw()),h.classList.add("shaka-chosen-item"),
1126
+ a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=kk();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});Jy(a)});a.g=R("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(Fw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",
1127
+ a.currentSelection.textContent);a.menu.appendChild(e);Ew(a.menu);a.controls.dispatchEvent(new M("resolutionselectionupdated"));Iy(a)}
1128
+ function Iy(a){var b=a.player.hc()?"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"))}J("shaka.ui.ResolutionSelection",Hy);function Ky(){}
1129
+ Ky.prototype.create=function(a,b){return new Hy(a,b)};Cx("quality",new Ky);fx("quality",new Ky);function Ly(a,b){W.call(this,a,b);var c=this;this.g=kk();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);My(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){My(c)});this.eventManager.o(this.localization,"locale-changed",function(){My(c)});
1130
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Qe(d);c.g.setAttribute("shaka-status",d+"x")}})}qa(Ly,W);function My(a){a.g.ariaLabel=a.localization.resolve("REWIND")}J("shaka.ui.RewindButton",Ly);function Ny(){}Ny.prototype.create=function(a,b){return new Ly(a,b)};fx("rewind",new Ny);function Oy(a,b){W.call(this,a,b);var c=this;this.j=R("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=R("div");this.h.classList.add("shaka-skip-ad-counter");X(this.h,!1);this.j.appendChild(this.h);this.g=kk();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;X(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);Py(this);this.i=new P(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1131
+ d:(c.i.stop(),X(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){Py(c)});this.eventManager.o(this.localization,"locale-changed",function(){Py(c)});this.eventManager.o(this.adManager,"ad-started",function(){Qy(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),X(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;X(c.g,!1);X(c.h,!1)});this.eventManager.o(this.g,
1132
+ "click",function(){c.ad.skip()});this.ad&&Qy(this)}qa(Oy,W);Oy.prototype.release=function(){this.i.stop();this.i=null;W.prototype.release.call(this)};function Py(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function Qy(a){a.ad.isSkippable()&&(X(a.g,!0),X(a.h,!0),a.h.textContent="",a.i.xa(),a.i.ka(.5))}J("shaka.ui.SkipAdButton",Oy);function Ry(a,b){Kw.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()}qa(Ry,Kw);Ry.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};Ry.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};
1133
+ J("shaka.ui.SmallPlayButton",Ry);function Sy(){}Sy.prototype.create=function(a,b){return new Ry(a,b)};fx("play_pause",new Sy);function Ty(a,b){W.call(this,a,b);var c=R("div");c.classList.add("shaka-spacer");c.ariaHidden="true";this.parent.appendChild(c)}qa(Ty,W);J("shaka.ui.Spacer",Ty);function Uy(){}Uy.prototype.create=function(a,b){return new Ty(a,b)};fx("spacer",new Uy);function Vy(a,b){function c(l){return Gw(h.h[l],!1)+" (m)"}function d(l){return Math.round(h.h[l]/1E3)+" (kbits/s)"}function e(l){return h.h[l].toFixed(2)+" (s)"}function f(l){return h.h[l]+" (frames)"}function g(l){return h.h[l]+" (px)"}W.call(this,a,b);var h=this;this.i=kk();this.i.classList.add("shaka-statistics-button");this.j=R("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);var k=R("label");k.classList.add("shaka-overflow-button-label");
1134
+ this.A=R("span");k.appendChild(this.A);this.m=R("span");this.m.classList.add("shaka-current-selection-span");k.appendChild(this.m);this.i.appendChild(k);this.parent.appendChild(this.i);this.g=R("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-statistics-container");this.g.classList.add("shaka-hidden");this.controls.g.appendChild(this.g);this.F=[];this.G=["stateHistory","switchHistory"];this.h=this.player.getStats();
1135
+ this.B={};this.C={width:g,height:g,completionPercent:function(l){return h.h[l]+" (%)"},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(l){return h.h[l]+" (stalls)"},gapsJumped:function(l){return h.h[l]+" (gaps)"}};this.l=new P(function(){h.h=h.player.getStats();for(var l=t(h.F),m=l.next();!m.done;m=
1136
+ l.next())m=m.value,h.B[m].textContent=h.C[m](m)});Wy(this);Xy(this);this.eventManager.o(this.localization,"locale-updated",function(){Wy(h)});this.eventManager.o(this.localization,"locale-changed",function(){Wy(h)});this.eventManager.o(this.i,"click",function(){X(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ka(.1),X(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),X(h.g,!1));Wy(h)})}qa(Vy,W);
1139
1137
  function Wy(a){a.A.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
1140
- function Xy(a){for(var b=t(a.controls.i.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=S("div"),h=S("label");h.textContent=c+":";g.appendChild(h);h=S("span");h.textContent=f.C[c](c);g.appendChild(h);f.B[c]=h;e.call(d,g);a.F.push(c)}else Ua("Unrecognized statistic element:",c)}Vy.prototype.release=function(){this.l.stop();this.l=null;X.prototype.release.call(this)};M("shaka.ui.StatisticsButton",Vy);function Yy(){}
1138
+ function Xy(a){for(var b=t(a.controls.i.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=R("div"),h=R("label");h.textContent=c+":";g.appendChild(h);h=R("span");h.textContent=f.C[c](c);g.appendChild(h);f.B[c]=h;e.call(d,g);a.F.push(c)}else Ua("Unrecognized statistic element:",c)}Vy.prototype.release=function(){this.l.stop();this.l=null;W.prototype.release.call(this)};J("shaka.ui.StatisticsButton",Vy);function Yy(){}
1141
1139
  Yy.prototype.create=function(a,b){return new Vy(a,b)};Cx("statistics",new Yy);Qw("statistics",new Yy);function Zy(a,b){Tx.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.Nb()?this.button.ariaPressed="true":this.button.ariaPressed="false";$y(this);this.eventManager.o(this.localization,"locale-updated",function(){az(c);bz(c)});this.eventManager.o(this.localization,"locale-changed",function(){az(c);bz(c)});this.eventManager.o(this.player,
1142
- "texttrackvisibility",function(){cz(c);bz(c)});this.eventManager.o(this.player,"textchanged",function(){bz(c)});this.eventManager.o(this.player,"trackschanged",function(){dz(c)});cz(this);az(this);bz(this);dz(this)}u(Zy,Tx);function $y(a){var b=kk();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(Fw());a.g=S("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1143
- function cz(a){a.player.Nb()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new O("captionselectionupdated"))}
1140
+ "texttrackvisibility",function(){cz(c);bz(c)});this.eventManager.o(this.player,"textchanged",function(){bz(c)});this.eventManager.o(this.player,"trackschanged",function(){dz(c)});cz(this);az(this);bz(this);dz(this)}qa(Zy,Tx);function $y(a){var b=kk();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(Fw());a.g=R("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1141
+ function cz(a){a.player.Nb()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new M("captionselectionupdated"))}
1144
1142
  function bz(a){var b=a.player.Ab();Rx(b,a.menu,function(c){return ez(a,c)},a.player.Nb(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=kk();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Ke(!1);bz(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Nb()||(b.ariaSelected="true",b.appendChild(Fw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
1145
- a.currentSelection.textContent);Ew(a.menu);a.controls.dispatchEvent(new O("captionselectionupdated"))}function ez(a,b){return J(function(c){a.player.Be(b);return z(c,a.player.Ke(!0),0)})}function az(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")}
1146
- function dz(a){var b=0<a.player.Ab().length;Y(a.button,b);bz(a)}M("shaka.ui.TextSelection",Zy);function fz(){}fz.prototype.create=function(a,b){return new Zy(a,b)};Cx("captions",new fz);fx("captions",new fz);function gz(a,b){Sw.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.h=this.controls.i;this.eventManager.o(this.video,"volumechange",function(){return hz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return iz(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return iz(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return hz(c)});this.eventManager.o(this.localization,"locale-updated",function(){return jz(c)});
1147
- this.eventManager.o(this.localization,"locale-changed",function(){return jz(c)});hz(this);jz(this);if(this.ad)this.onChange()}u(gz,Sw);gz.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()):(this.video.volume=this.getValue(),this.video.muted=0==this.video.volume?!0:!1)};function hz(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);kz(a)}function iz(a){var b=a.ad.getVolume();a.setValue(b);kz(a)}
1148
- function kz(a){var b=a.h.volumeBarColors,c=["to right"];c.push(b.level+100*a.getValue()+"%");c.push(b.base+100*a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function jz(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}M("shaka.ui.VolumeBar",gz);function lz(){}lz.prototype.create=function(a,b){return new gz(a,b)};fx("volume",new lz);}).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})();
1143
+ a.currentSelection.textContent);Ew(a.menu);a.controls.dispatchEvent(new M("captionselectionupdated"))}function ez(a,b){return I(function(c){a.player.Be(b);return u(c,a.player.Ke(!0),0)})}function az(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")}
1144
+ function dz(a){var b=0<a.player.Ab().length;X(a.button,b);bz(a)}J("shaka.ui.TextSelection",Zy);function fz(){}fz.prototype.create=function(a,b){return new Zy(a,b)};Cx("captions",new fz);fx("captions",new fz);function gz(a,b){Sw.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.h=this.controls.i;this.eventManager.o(this.video,"volumechange",function(){return hz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return iz(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return iz(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return hz(c)});this.eventManager.o(this.localization,"locale-updated",function(){return jz(c)});
1145
+ this.eventManager.o(this.localization,"locale-changed",function(){return jz(c)});hz(this);jz(this);if(this.ad)this.onChange()}qa(gz,Sw);gz.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()):(this.video.volume=this.getValue(),this.video.muted=0==this.video.volume?!0:!1)};function hz(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);kz(a)}function iz(a){var b=a.ad.getVolume();a.setValue(b);kz(a)}
1146
+ function kz(a){var b=a.h.volumeBarColors,c=["to right"];c.push(b.level+100*a.getValue()+"%");c.push(b.base+100*a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function jz(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}J("shaka.ui.VolumeBar",gz);function lz(){}lz.prototype.create=function(a,b){return new gz(a,b)};fx("volume",new lz);}).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})();
1149
1147
 
1150
1148
  //# sourceMappingURL=shaka-player.ui.map