shaka-player 4.3.2 → 4.3.3

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/deps.js +1 -1
  3. package/dist/locales.js +32 -32
  4. package/dist/shaka-player.compiled.d.ts +10 -0
  5. package/dist/shaka-player.compiled.debug.d.ts +10 -0
  6. package/dist/shaka-player.compiled.debug.externs.js +12 -0
  7. package/dist/shaka-player.compiled.debug.js +120 -117
  8. package/dist/shaka-player.compiled.debug.map +3 -3
  9. package/dist/shaka-player.compiled.externs.js +12 -0
  10. package/dist/shaka-player.compiled.js +622 -619
  11. package/dist/shaka-player.compiled.map +3 -3
  12. package/dist/shaka-player.ui.d.ts +10 -0
  13. package/dist/shaka-player.ui.debug.d.ts +10 -0
  14. package/dist/shaka-player.ui.debug.externs.js +12 -0
  15. package/dist/shaka-player.ui.debug.js +132 -130
  16. package/dist/shaka-player.ui.debug.map +3 -3
  17. package/dist/shaka-player.ui.externs.js +12 -0
  18. package/dist/shaka-player.ui.js +408 -406
  19. package/dist/shaka-player.ui.map +3 -3
  20. package/lib/hls/hls_parser.js +39 -15
  21. package/lib/media/media_source_engine.js +34 -4
  22. package/lib/media/segment_index.js +5 -10
  23. package/lib/media/segment_reference.js +39 -0
  24. package/lib/media/streaming_engine.js +15 -3
  25. package/lib/player.js +7 -1
  26. package/lib/text/ui_text_displayer.js +24 -4
  27. package/lib/text/web_vtt_generator.js +21 -9
  28. package/lib/util/dom_utils.js +3 -1
  29. package/lib/util/stream_utils.js +6 -0
  30. package/lib/util/timer.js +17 -0
  31. package/package.json +1 -1
  32. package/test/hls/hls_live_unit.js +8 -30
  33. package/test/hls/hls_parser_unit.js +30 -0
  34. package/test/media/segment_index_unit.js +28 -0
  35. package/test/media/streaming_engine_unit.js +91 -119
  36. package/test/player_integration.js +27 -0
  37. package/test/player_unit.js +4 -2
  38. package/test/text/ui_text_displayer_unit.js +70 -0
@@ -15,47 +15,47 @@
15
15
  Copyright The Closure Library Authors.
16
16
  SPDX-License-Identifier: Apache-2.0
17
17
  */
18
- 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};
19
- function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var da=ca(this);function ea(a,b){if(b)a:{var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b})}}
20
- ea("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.g=f;ba(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
21
- ea("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(aa(this))}})}return a});function fa(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
18
+ var q;function aa(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};
19
+ 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:{var c=ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ca(c,a,{configurable:!0,writable:!0,value:b})}}
20
+ 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});
21
+ 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 ha(aa(this))}})}return a});function ha(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
22
22
  function r(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=r(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},ka;
23
23
  if("function"==typeof Object.setPrototypeOf)ka=Object.setPrototypeOf;else{var la;a:{var ma={a:!0},na={};try{na.__proto__=ma;la=na.a;break a}catch(a){}la=!1}ka=la?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=ka;
24
- function pa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(oa)oa(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.vj=b.prototype}function qa(){this.s=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function ra(a){if(a.s)throw new TypeError("Generator is already running");a.s=!0}qa.prototype.B=function(a){this.h=a};
25
- function sa(a,b){a.i={Bf:b,Kf:!0};a.g=a.m||a.j}qa.prototype.return=function(a){this.i={return:a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}qa.prototype.D=function(a){this.g=a};function B(a){a.g=0}function D(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ta(a){a.m=0;a.j=2}function ua(a,b,c){a.g=b;a.m=c||0}function va(a,b){a.m=b||0;b=a.i.Bf;a.i=null;return b}function wa(a){a.C=[a.i];a.m=0;a.j=0}
26
- function xa(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.Kf?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 qa;this.h=a}function Ba(a,b){ra(a.g);var c=a.g.l;if(c)return Ca(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Da(a)}
27
- function Ca(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.s=!1,e;var f=e.value}catch(g){return a.g.l=null,sa(a.g,g),Da(a)}a.g.l=null;d.call(a.g,f);return Da(a)}function Da(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.s=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,sa(a.g,c)}a.g.s=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Kf)throw b.Bf;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
24
+ function pa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(oa)oa(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.xj=b.prototype}function qa(){this.s=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function ra(a){if(a.s)throw new TypeError("Generator is already running");a.s=!0}qa.prototype.B=function(a){this.h=a};
25
+ function sa(a,b){a.i={Df:b,Mf:!0};a.g=a.m||a.j}qa.prototype.return=function(a){this.i={return:a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}qa.prototype.D=function(a){this.g=a};function B(a){a.g=0}function D(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ta(a){a.m=0;a.j=2}function ua(a,b,c){a.g=b;a.m=c||0}function va(a,b){a.m=b||0;b=a.i.Df;a.i=null;return b}function wa(a){a.C=[a.i];a.m=0;a.j=0}
26
+ function xa(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.Mf?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 qa;this.h=a}function Ba(a,b){ra(a.g);var c=a.g.l;if(c)return Ca(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Da(a)}
27
+ function Ca(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.s=!1,e;var f=e.value}catch(g){return a.g.l=null,sa(a.g,g),Da(a)}a.g.l=null;d.call(a.g,f);return Da(a)}function Da(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.s=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,sa(a.g,c)}a.g.s=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Mf)throw b.Df;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
28
28
  function Ea(a){this.next=function(b){ra(a.g);a.g.l?b=Ca(a,a.g.l.next,b,a.g.B):(a.g.B(b),b=Da(a));return b};this.throw=function(b){ra(a.g);a.g.l?b=Ca(a,a.g.l["throw"],b,a.g.B):(sa(a.g,b),b=Da(a));return b};this.return=function(b){return Ba(a,b)};this[Symbol.iterator]=function(){return this}}function Fa(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())})}
29
29
  function G(a){return Fa(new Ea(new ya(a)))}function Ga(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
30
- ea("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.s=!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=
30
+ fa("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.s=!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=
31
31
  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)}};
32
- 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=
33
- function(){if(this.s)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;
34
- b.prototype.J=function(g){var h=this.j();g.nd(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(n,t){return"function"==typeof n?function(v){try{l(n(v))}catch(y){m(y)}}:t}var l,m,p=new b(function(n,t){l=n;m=t});this.nd(k(g,l),k(h,m));return p};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.nd=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
35
- break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.s=!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=r(g),m=l.next();!m.done;m=l.next())d(m.value).nd(h,k)})};b.all=function(g){var h=r(g),k=h.next();return k.done?d([]):new b(function(l,m){function p(v){return function(y){n[v]=y;t--;0==t&&l(n)}}var n=[],t=0;do n.push(void 0),t++,d(k.value).nd(p(n.length-1),m),k=h.next();
32
+ 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=
33
+ function(){if(this.s)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;
34
+ b.prototype.J=function(g){var h=this.j();g.od(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(n,t){return"function"==typeof n?function(v){try{l(n(v))}catch(y){m(y)}}:t}var l,m,p=new b(function(n,t){l=n;m=t});this.od(k(g,l),k(h,m));return p};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.od=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
35
+ break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.s=!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=r(g),m=l.next();!m.done;m=l.next())d(m.value).od(h,k)})};b.all=function(g){var h=r(g),k=h.next();return k.done?d([]):new b(function(l,m){function p(v){return function(y){n[v]=y;t--;0==t&&l(n)}}var n=[],t=0;do n.push(void 0),t++,d(k.value).od(p(n.length-1),m),k=h.next();
36
36
  while(!k.done)})};return b});function Ha(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
37
- ea("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=r(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;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({}),
37
+ fa("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=r(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({}),
38
38
  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(p){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)&&Ha(k,
39
39
  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});
40
- ea("Map",function(a){function b(){var h={};return h.mb=h.next=h.head=h}function c(h,k){var l=h.g;return fa(function(){if(l){for(;l.head!=h.g;)l=l.mb;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(h=0;h<m.length;h++){var p=m[h];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:h,va:p}}return{id:l,
41
- list:m,index:-1,va:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=r(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(r([[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||
42
- "t"!=m.value[1]||!l.next().done?!1:!0}catch(p){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,mb:this.g.mb,head:this.g,key:h,value:k},l.list.push(l.va),this.g.mb.next=l.va,this.g.mb=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.mb.next=h.va.next,h.va.next.mb=h.va.mb,
43
- h.va.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.mb=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(),
44
- 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 Ia(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}ea("Array.prototype.keys",function(a){return a?a:function(){return Ia(this,function(b){return b})}});
45
- ea("Set",function(a){function b(c){this.g=new Map;if(c){c=r(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(r([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||
40
+ fa("Map",function(a){function b(){var h={};return h.mb=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.mb;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(h=0;h<m.length;h++){var p=m[h];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:h,wa:p}}return{id:l,
41
+ list:m,index:-1,wa:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=r(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(r([[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||
42
+ "t"!=m.value[1]||!l.next().done?!1:!0}catch(p){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,mb:this.g.mb,head:this.g,key:h,value:k},l.list.push(l.wa),this.g.mb.next=l.wa,this.g.mb=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.mb.next=h.wa.next,h.wa.next.mb=h.wa.mb,
43
+ h.wa.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.mb=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(),
44
+ 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 Ia(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 Ia(this,function(b){return b})}});
45
+ fa("Set",function(a){function b(c){this.g=new Map;if(c){c=r(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(r([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||
46
46
  f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
47
- b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});ea("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});
48
- function Ja(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{If:e,v:f}}return{If:-1,v:void 0}}ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ja(this,b,c).If}});ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
49
- ea("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function Ka(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+""}
50
- ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ka(this,b,"includes").indexOf(b,c||0)}});ea("Array.prototype.find",function(a){return a?a:function(b,c){return Ja(this,b,c).v}});ea("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ka(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});
51
- var La="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};ea("Object.assign",function(a){return a||La});ea("Array.prototype.values",function(a){return a?a:function(){return Ia(this,function(b,c){return c})}});
52
- ea("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});ea("Array.prototype.entries",function(a){return a?a:function(){return Ia(this,function(b,c){return[b,c]})}});
53
- ea("String.prototype.repeat",function(a){return a?a:function(b){var c=Ka(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}});ea("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});ea("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}});ea("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
54
- ea("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}});ea("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 Ma=this||self;
47
+ b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});fa("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});
48
+ function Ja(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{Kf:e,v:f}}return{Kf:-1,v:void 0}}fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ja(this,b,c).Kf}});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
49
+ 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;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function Ka(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+""}
50
+ fa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ka(this,b,"includes").indexOf(b,c||0)}});fa("Array.prototype.find",function(a){return a?a:function(b,c){return Ja(this,b,c).v}});fa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ka(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});
51
+ var La="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||La});fa("Array.prototype.values",function(a){return a?a:function(){return Ia(this,function(b,c){return c})}});
52
+ 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 Ia(this,function(b,c){return[b,c]})}});
53
+ fa("String.prototype.repeat",function(a){return a?a:function(b){var c=Ka(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}});
54
+ 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 Ma=this||self;
55
55
  function I(a,b){a=a.split(".");var c=Ma;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};function L(a,b){if(b)if(b instanceof Map)for(var c=r(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}
56
56
  function Oa(a){var b=new L(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}L.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};L.prototype.stopImmediatePropagation=function(){this.g=!0};L.prototype.stopPropagation=function(){};I("shaka.util.FakeEvent",L);
57
- var Pa={Uh:"abrstatuschanged",Vh:"adaptation",Wh:"buffering",$h:"downloadfailed",ai:"downloadheadersreceived",bi:"drmsessionupdate",ki:"emsg",Oi:"prft",Error:"error",li:"expirationupdated",oi:"gapjumped",ti:"loaded",wi:"loading",Ci:"manifestparsed",Di:"mediaqualitychanged",Metadata:"metadata",Ii:"onstatechange",Ji:"onstateidle",Ti:"ratechange",Zi:"segmentappended",$i:"sessiondata",aj:"stalldetected",bj:"streaming",cj:"textchanged",dj:"texttrackvisibility",ej:"timelineregionadded",fj:"timelineregionenter",
58
- gj:"timelineregionexit",hj:"trackschanged",mj:"unloading",oj:"variantchanged"};function Qa(){}function Sa(){}function Ta(){}function Va(a){var b=Ga.apply(1,arguments);Wa.has(a)||(Wa.add(a),Ta.apply(Qa,ia(b)))}function Xa(){}function Ya(){}function Za(){}function $a(){}var Wa=new Set;if(window.console&&window.console.log.bind){var bb={},db=(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);Ta=db[2];Sa=db[1]};function eb(){this.g={}}q=eb.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};q.forEach=function(a){for(var b in this.g)a(b,this.g[b])};q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function fb(){this.ra=new eb;this.Dd=this}fb.prototype.addEventListener=function(a,b){this.ra&&this.ra.push(a,b)};fb.prototype.removeEventListener=function(a,b){this.ra&&this.ra.remove(a,b)};fb.prototype.dispatchEvent=function(a){if(!this.ra)return!0;var b=this.ra.get(a.type)||[],c=this.ra.get("All");c&&(b=b.concat(c));b=r(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Dd;a.currentTarget=this.Dd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
57
+ var Pa={Wh:"abrstatuschanged",Xh:"adaptation",Yh:"buffering",bi:"downloadfailed",ci:"downloadheadersreceived",di:"drmsessionupdate",mi:"emsg",Qi:"prft",Error:"error",ni:"expirationupdated",ri:"gapjumped",xi:"loaded",zi:"loading",Ei:"manifestparsed",Fi:"mediaqualitychanged",Metadata:"metadata",Ki:"onstatechange",Li:"onstateidle",Vi:"ratechange",aj:"segmentappended",bj:"sessiondata",cj:"stalldetected",dj:"streaming",ej:"textchanged",fj:"texttrackvisibility",gj:"timelineregionadded",hj:"timelineregionenter",
58
+ ij:"timelineregionexit",jj:"trackschanged",oj:"unloading",qj:"variantchanged"};function Qa(){}function Sa(){}function Ta(){}function Va(a){var b=Ga.apply(1,arguments);Wa.has(a)||(Wa.add(a),Ta.apply(Qa,ia(b)))}function Xa(){}function Ya(){}function Za(){}function $a(){}var Wa=new Set;if(window.console&&window.console.log.bind){var bb={},db=(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);Ta=db[2];Sa=db[1]};function eb(){this.g={}}q=eb.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};q.forEach=function(a){for(var b in this.g)a(b,this.g[b])};q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function fb(){this.ra=new eb;this.Hd=this}fb.prototype.addEventListener=function(a,b){this.ra&&this.ra.push(a,b)};fb.prototype.removeEventListener=function(a,b){this.ra&&this.ra.remove(a,b)};fb.prototype.dispatchEvent=function(a){if(!this.ra)return!0;var b=this.ra.get(a.type)||[],c=this.ra.get("All");c&&(b=b.concat(c));b=r(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Hd;a.currentTarget=this.Hd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
59
59
  fb.prototype.release=function(){this.ra=null};function gb(a,b){var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function hb(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function ib(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function jb(a,b){var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
60
60
  @license
61
61
  Copyright 2008 The Closure Library Authors
@@ -66,13 +66,13 @@ var kb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=
66
66
  Copyright 2006 The Closure Library Authors
67
67
  SPDX-License-Identifier: Apache-2.0
68
68
  */
69
- function lb(a){var b;a instanceof lb?(mb(this,a.Va),this.Tb=a.Tb,this.Za=a.Za,nb(this,a.nc),this.Ha=a.Ha,ob(this,a.g.clone()),this.Hb=a.Hb):a&&(b=String(a).match(kb))?(mb(this,b[1]||"",!0),this.Tb=pb(b[2]||""),this.Za=pb(b[3]||"",!0),nb(this,b[4]),this.Ha=pb(b[5]||"",!0),ob(this,b[6]||"",!0),this.Hb=pb(b[7]||"")):this.g=new qb(null)}q=lb.prototype;q.Va="";q.Tb="";q.Za="";q.nc=null;q.Ha="";q.Hb="";
70
- q.toString=function(){var a=[],b=this.Va;b&&a.push(rb(b,sb,!0),":");if(b=this.Za){a.push("//");var c=this.Tb;c&&a.push(rb(c,sb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.nc;null!=b&&a.push(":",String(b))}if(b=this.Ha)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("")};
71
- q.resolve=function(a){var b=this.clone();"data"===b.Va&&(b=new lb);var c=!!a.Va;c?mb(b,a.Va):c=!!a.Tb;c?b.Tb=a.Tb:c=!!a.Za;c?b.Za=a.Za:c=null!=a.nc;var d=a.Ha;if(c)nb(b,a.nc);else if(c=!!a.Ha){if("/"!=d.charAt(0))if(this.Za&&!this.Ha)d="/"+d;else{var e=b.Ha.lastIndexOf("/");-1!=e&&(d=b.Ha.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(""):".."==
72
- 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.Ha=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.Va=c?pb(b,!0):b;a.Va&&(a.Va=a.Va.replace(/:$/,""))}function nb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.nc=b}else a.nc=null}function ob(a,b,c){b instanceof qb?a.g=b:(c||(b=rb(b,wb)),a.g=new qb(b))}
69
+ function lb(a){var b;a instanceof lb?(mb(this,a.Wa),this.Tb=a.Tb,this.ab=a.ab,nb(this,a.nc),this.Ha=a.Ha,ob(this,a.g.clone()),this.Hb=a.Hb):a&&(b=String(a).match(kb))?(mb(this,b[1]||"",!0),this.Tb=pb(b[2]||""),this.ab=pb(b[3]||"",!0),nb(this,b[4]),this.Ha=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.Tb="";q.ab="";q.nc=null;q.Ha="";q.Hb="";
70
+ q.toString=function(){var a=[],b=this.Wa;b&&a.push(rb(b,sb,!0),":");if(b=this.ab){a.push("//");var c=this.Tb;c&&a.push(rb(c,sb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.nc;null!=b&&a.push(":",String(b))}if(b=this.Ha)this.ab&&"/"!=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("")};
71
+ 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.Tb;c?b.Tb=a.Tb:c=!!a.ab;c?b.ab=a.ab:c=null!=a.nc;var d=a.Ha;if(c)nb(b,a.nc);else if(c=!!a.Ha){if("/"!=d.charAt(0))if(this.ab&&!this.Ha)d="/"+d;else{var e=b.Ha.lastIndexOf("/");-1!=e&&(d=b.Ha.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(""):".."==
72
+ 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.Ha=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.nc=b}else a.nc=null}function ob(a,b,c){b instanceof qb?a.g=b:(c||(b=rb(b,wb)),a.g=new qb(b))}
73
73
  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}
74
- function zb(a){if(!a.Ca&&(a.Ca={},a.qd=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.Ca=null;q.qd=null;q.add=function(a,b){zb(this);this.g=null;var c=this.Ca.hasOwnProperty(a)?this.Ca[a]:null;c||(this.Ca[a]=c=[]);c.push(b);this.qd++;return this};
75
- q.set=function(a,b){zb(this);this.g=null;this.Ca.hasOwnProperty(a)?this.Ca[a]=[b]:this.add(a,b);return this};q.toString=function(){if(this.g)return this.g;if(!this.Ca)return"";var a=[],b;for(b in this.Ca)for(var c=encodeURIComponent(b),d=this.Ca[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.Ca){var b={},c;for(c in this.Ca)b[c]=this.Ca[c].concat();a.Ca=b;a.qd=this.qd}return a};function M(a,b,c){var d=Ga.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1}M.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};I("shaka.util.Error",M);M.Severity={RECOVERABLE:1,CRITICAL:2};M.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
74
+ function zb(a){if(!a.Ca&&(a.Ca={},a.rd=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.Ca=null;q.rd=null;q.add=function(a,b){zb(this);this.g=null;var c=this.Ca.hasOwnProperty(a)?this.Ca[a]:null;c||(this.Ca[a]=c=[]);c.push(b);this.rd++;return this};
75
+ q.set=function(a,b){zb(this);this.g=null;this.Ca.hasOwnProperty(a)?this.Ca[a]=[b]:this.add(a,b);return this};q.toString=function(){if(this.g)return this.g;if(!this.Ca)return"";var a=[],b;for(b in this.Ca)for(var c=encodeURIComponent(b),d=this.Ca[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.Ca){var b={},c;for(c in this.Ca)b[c]=this.Ca[c].concat();a.Ca=b;a.rd=this.rd}return a};function M(a,b,c){var d=Ga.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1}M.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};I("shaka.util.Error",M);M.Severity={RECOVERABLE:1,CRITICAL:2};M.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
76
76
  M.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,
77
77
  CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_SRC_EQUALS:2016,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,
78
78
  WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,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,
@@ -82,9 +82,9 @@ NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILE
82
82
  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,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,
83
83
  LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,CS_IMA_SDK_MISSING:1E4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};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}}
84
84
  function Fb(a,b){if(1==b.length)return b[0];a=Gb(a,b);if(null!=a)return a;throw new M(2,4,4025,b);}function Gb(a,b){for(var c=r(Hb[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=r(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Ib?"":null}
85
- var Ib="text",Jb={Ma:"video",hd:"audio",ka:Ib,Ac:"image",Rh:"application"},Hb={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cx]$/,/^[du]dts$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvhe/],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);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function Ob(a,b){a=Mb(a);b=Mb(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[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
- 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 Ub(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 Vb(a,b){a=Mb(a);var c=new Set,d=r(b);for(b=d.next();!b.done;b=d.next())c.add(Mb(b.value));d=r(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,b==a)return b;d=r(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Nb(b,a))return b;d=r(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Ob(b,a))return b;c=r(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,Nb(a,b))return b;return null}I("shaka.util.LanguageUtils",Kb);Kb.findClosestLocale=Vb;Kb.getLocaleForVariant=Ub;
85
+ var Ib="text",Jb={Ma:"video",jd:"audio",ha:Ib,Ac:"image",Th:"application"},Hb={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cx]$/,/^[du]dts$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvhe/],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);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function Ob(a,b){a=Mb(a);b=Mb(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[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
+ 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 Vb(a,b){a=Mb(a);var c=new Set,d=r(b);for(b=d.next();!b.done;b=d.next())c.add(Mb(b.value));d=r(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,b==a)return b;d=r(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Nb(b,a))return b;d=r(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,Ob(b,a))return b;c=r(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,Nb(a,b))return b;return null}I("shaka.util.LanguageUtils",Kb);Kb.findClosestLocale=Vb;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",
@@ -92,20 +92,20 @@ var Pb=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"]
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
94
  "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Wb(a){fb.call(this);this.j=Mb(a);this.i=new Map;this.g=new Set;this.h=new Map}pa(Wb,fb);q=Wb.prototype;q.release=function(){fb.prototype.release.call(this)};
95
- q.uf=function(a){var b=this;this.g.clear();a=r(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Mb(c.value));Xb(this);a=jb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new L("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 L("locale-changed",a))};
96
- q.ba=function(a,b,c){a=Mb(a);void 0===c&&(c=Yb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Yb||d.set(f,e)});this.h.set(a,d);Xb(this);this.dispatchEvent(new L("locale-updated"));return this};q.Bh=function(a){for(var b=r(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 L("unknown-localization",a));return""};
95
+ q.wf=function(a){var b=this;this.g.clear();a=r(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Mb(c.value));Xb(this);a=jb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new L("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 L("locale-changed",a))};
96
+ q.ba=function(a,b,c){a=Mb(a);void 0===c&&(c=Yb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Yb||d.set(f,e)});this.h.set(a,d);Xb(this);this.dispatchEvent(new L("locale-updated"));return this};q.Dh=function(a){for(var b=r(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 L("unknown-localization",a));return""};
97
97
  function Xb(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=r(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=r(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=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=r(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
98
98
  c.reverse();a.i.clear();b=r(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=r(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,Zb(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new L("missing-localizations",d)))}function Zb(a,b,c){b=r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}I("shaka.ui.Localization",Wb);Wb.prototype.resolve=Wb.prototype.resolve;
99
- Wb.prototype.resolveDictionary=Wb.prototype.Bh;Wb.prototype.insert=Wb.prototype.ba;Wb.prototype.changeLocale=Wb.prototype.uf;Wb.prototype.release=Wb.prototype.release;var Yb=1;Wb.ConflictResolution={USE_OLD:0,USE_NEW:Yb};Wb.UNKNOWN_LOCALES="unknown-locales";Wb.UNKNOWN_LOCALIZATION="unknown-localization";Wb.MISSING_LOCALIZATIONS="missing-localizations";Wb.LOCALE_CHANGED="locale-changed";Wb.LOCALE_UPDATED="locale-updated";var $b={Si:"REWIND",Oh:"AD_DURATION",Ni:"PLAYBACK_RATE",nj:"VOLUME",Wi:"SKIP_TO_LIVE",Vi:"SKIP_AD",Sh:"AUTO_QUALITY",ri:"LANGUAGE",Fi:"OFF",ni:"FULL_SCREEN",kj:"UNMUTE",Ri:"RESOLUTION",mi:"FAST_FORWARD",fg:"LIVE",ci:"ENTER_LOOP_MODE",zi:"MORE_SETTINGS",di:"ENTER_PICTURE_IN_PICTURE",gg:"SUBTITLE_FORCED",Yi:"STATISTICS",Bi:"MUTE",gi:"EXIT_FULL_SCREEN",lj:"UNRECOGNIZED_LANGUAGE",BACK:"BACK",Xh:"CAPTIONS",ii:"EXIT_LOOP_MODE",Qh:"AIRPLAY",Qi:"REPLAY",si:"LOOP",ji:"EXIT_PICTURE_IN_PICTURE",Pi:"QUALITY",
100
- Ei:"NOT_APPLICABLE",Ki:"PAUSE",Mi:"PLAY",Yh:"CAST",Ai:"MULTIPLE_LANGUAGES",AD_PROGRESS:"AD_PROGRESS",Li:"PICTURE_IN_PICTURE",Ui:"SEEK",Ph:"AD_TIME",jj:"UNDETERMINED_LANGUAGE",Gi:"ON"};function ac(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}ac.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function bc(a){return a.h/(1-Math.pow(a.g,a.i))};function cc(){this.h=new ac(2);this.j=new ac(5);this.g=0;this.i=128E3;this.l=16E3}cc.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)};cc.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};cc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(bc(this.h),bc(this.j))};function dc(a){if(ec.has(a))return ec.get(a);var b=MediaSource.isTypeSupported(a);ec.set(a,b);return b}var ec=new Map;function fc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function gc(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function hc(a,b,c){c||(c=fc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={Td:d.Td},e=a.next()){d.Td=e.value;e=b.findIndex(function(f){return function(g){return c(f.Td,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
101
- function ic(a,b,c){c||(c=fc);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 kc(a,b,c){this.startTime=a;this.direction=lc;this.endTime=b;this.payload=c;this.region=new mc;this.position=null;this.positionAlign=nc;this.size=0;this.textAlign=oc;this.writingMode=pc;this.lineInterpretation=qc;this.line=null;this.lineHeight="";this.lineAlign=rc;this.displayAlign=sc;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=tc;this.fontStyle=uc;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}}kc.prototype.clone=function(){var a=new kc(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 vc(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(!ic(a.nestedCues,b.nestedCues,vc))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(!ic(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}I("shaka.text.Cue",kc);var nc="auto";
104
- kc.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:nc};var oc="center",wc={LEFT:"left",RIGHT:"right",CENTER:oc,START:"start",END:"end"};kc.textAlign=wc;var sc="after",xc={BEFORE:"before",CENTER:"center",AFTER:sc};kc.displayAlign=xc;var lc="ltr";kc.direction={HORIZONTAL_LEFT_TO_RIGHT:lc,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var pc="horizontal-tb";kc.writingMode={HORIZONTAL_TOP_TO_BOTTOM:pc,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var qc=0;
105
- kc.lineInterpretation={LINE_NUMBER:qc,PERCENTAGE:1};var rc="start",yc={CENTER:"center",START:rc,END:"end"};kc.lineAlign=yc;var zc={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};kc.defaultTextColor=zc;var Ac={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};kc.defaultTextBackgroundColor=Ac;var tc=400;kc.fontWeight={NORMAL:tc,BOLD:700};
106
- var uc="normal",Bc={NORMAL:uc,ITALIC:"italic",OBLIQUE:"oblique"};kc.fontStyle=Bc;kc.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function mc(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Cc;this.scroll=Dc}I("shaka.text.CueRegion",mc);var Cc=1;mc.units={PX:0,PERCENTAGE:Cc,LINES:2};var Dc="";mc.scrollMode={NONE:Dc,UP:"up"};function Ec(){}function Fc(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Gc(a)==Gc(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=Hc(a);b=Hc(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function Gc(a){return a instanceof ArrayBuffer?a:a.buffer}function Ic(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
107
- function Hc(a,b,c){c=void 0===c?Infinity:c;return Jc(a,void 0===b?0:b,c,Uint8Array)}function Kc(a,b,c){c=void 0===c?Infinity:c;return Jc(a,void 0===b?0:b,c,DataView)}function Jc(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(Gc(a),b,Math.min(b+Math.max(c,0),e)-b)}I("shaka.util.BufferUtils",Ec);Ec.toDataView=Kc;Ec.toUint8=Hc;Ec.toArrayBuffer=Ic;Ec.equal=Fc;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.R=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 O(a){this.h=a;this.g=null}O.prototype.ya=function(){this.stop();this.h();return this};O.prototype.R=function(a){var b=this;this.stop();this.g=(new Nc(function(){b.h()})).R(a);return this};O.prototype.ea=function(a){var b=this;this.stop();this.g=(new Nc(function(){b.g.R(a);b.h()})).R(a);return this};O.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};I("shaka.util.Timer",O);O.prototype.stop=O.prototype.stop;O.prototype.tickEvery=O.prototype.ea;O.prototype.tickAfter=O.prototype.R;
108
- O.prototype.tickNow=O.prototype.ya;function Oc(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Pc(a){return""!=Qc().canPlayType(a)}function Rc(){return Sc("Xbox One")}function Tc(){return Sc("Tizen")}function Uc(){return Sc("Web0S")&&Sc("Chrome/38.0.2125.122 Safari/537.36")}function Vc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Tc()&&!Sc("PC=EOS")&&!Sc("VirginMedia")&&!Wc()&&!Sc("AFT")}function Wc(){return Sc("PlayStation 4")}
99
+ Wb.prototype.resolveDictionary=Wb.prototype.Dh;Wb.prototype.insert=Wb.prototype.ba;Wb.prototype.changeLocale=Wb.prototype.wf;Wb.prototype.release=Wb.prototype.release;var Yb=1;Wb.ConflictResolution={USE_OLD:0,USE_NEW:Yb};Wb.UNKNOWN_LOCALES="unknown-locales";Wb.UNKNOWN_LOCALIZATION="unknown-localization";Wb.MISSING_LOCALIZATIONS="missing-localizations";Wb.LOCALE_CHANGED="locale-changed";Wb.LOCALE_UPDATED="locale-updated";var $b={Yi:"SKIP_TO_LIVE",hg:"LIVE",Rh:"AD_TIME",nj:"UNRECOGNIZED_LANGUAGE",Hi:"OFF",ji:"EXIT_FULL_SCREEN",Zh:"CAPTIONS",ig:"SUBTITLE_FORCED",ei:"ENTER_LOOP_MODE",Mi:"PAUSE",Ii:"ON",oi:"FAST_FORWARD",Ti:"RESOLUTION",BACK:"BACK",Pi:"PLAYBACK_RATE",wi:"LOOP",Ci:"MULTIPLE_LANGUAGES",li:"EXIT_PICTURE_IN_PICTURE",Ni:"PICTURE_IN_PICTURE",$i:"STATISTICS",gi:"ENTER_PICTURE_IN_PICTURE",Di:"MUTE",AD_PROGRESS:"AD_PROGRESS",Sh:"AIRPLAY",$h:"CAST",mj:"UNMUTE",Uh:"AUTO_QUALITY",Gi:"NOT_APPLICABLE",Oi:"PLAY",lj:"UNDETERMINED_LANGUAGE",
100
+ Wi:"SEEK",Qh:"AD_DURATION",Xi:"SKIP_AD",pj:"VOLUME",Ui:"REWIND",ti:"LANGUAGE",Bi:"MORE_SETTINGS",Si:"REPLAY",Ri:"QUALITY",pi:"FULL_SCREEN",ki:"EXIT_LOOP_MODE"};function ac(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}ac.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function bc(a){return a.h/(1-Math.pow(a.g,a.i))};function cc(){this.h=new ac(2);this.j=new ac(5);this.g=0;this.i=128E3;this.l=16E3}cc.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)};cc.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};cc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(bc(this.h),bc(this.j))};function dc(a){if(ec.has(a))return ec.get(a);var b=MediaSource.isTypeSupported(a);ec.set(a,b);return b}var ec=new Map;function fc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function gc(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function hc(a,b,c){c||(c=fc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={Td:d.Td},e=a.next()){d.Td=e.value;e=b.findIndex(function(f){return function(g){return c(f.Td,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
101
+ function ic(a,b,c){c||(c=fc);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 jc(a,b,c){this.startTime=a;this.direction=lc;this.endTime=b;this.payload=c;this.region=new mc;this.position=null;this.positionAlign=nc;this.size=0;this.textAlign=oc;this.writingMode=pc;this.lineInterpretation=qc;this.line=null;this.lineHeight="";this.lineAlign=rc;this.displayAlign=sc;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=tc;this.fontStyle=uc;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}}jc.prototype.clone=function(){var a=new jc(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 vc(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(!ic(a.nestedCues,b.nestedCues,vc))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(!ic(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}I("shaka.text.Cue",jc);var nc="auto";
104
+ jc.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:nc};var oc="center",wc={LEFT:"left",RIGHT:"right",CENTER:oc,START:"start",END:"end"};jc.textAlign=wc;var sc="after",xc={BEFORE:"before",CENTER:"center",AFTER:sc};jc.displayAlign=xc;var lc="ltr";jc.direction={HORIZONTAL_LEFT_TO_RIGHT:lc,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var pc="horizontal-tb";jc.writingMode={HORIZONTAL_TOP_TO_BOTTOM:pc,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var qc=0;
105
+ jc.lineInterpretation={LINE_NUMBER:qc,PERCENTAGE:1};var rc="start",yc={CENTER:"center",START:rc,END:"end"};jc.lineAlign=yc;var zc={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};jc.defaultTextColor=zc;var Ac={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};jc.defaultTextBackgroundColor=Ac;var tc=400;jc.fontWeight={NORMAL:tc,BOLD:700};
106
+ var uc="normal",Bc={NORMAL:uc,ITALIC:"italic",OBLIQUE:"oblique"};jc.fontStyle=Bc;jc.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function mc(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Cc;this.scroll=Dc}I("shaka.text.CueRegion",mc);var Cc=1;mc.units={PX:0,PERCENTAGE:Cc,LINES:2};var Dc="";mc.scrollMode={NONE:Dc,UP:"up"};function Ec(){}function Fc(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Gc(a)==Gc(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=Hc(a);b=Hc(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function Gc(a){return a instanceof ArrayBuffer?a:a.buffer}function Ic(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
107
+ function Hc(a,b,c){c=void 0===c?Infinity:c;return Jc(a,void 0===b?0:b,c,Uint8Array)}function Kc(a,b,c){c=void 0===c?Infinity:c;return Jc(a,void 0===b?0:b,c,DataView)}function Jc(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(Gc(a),b,Math.min(b+Math.max(c,0),e)-b)}I("shaka.util.BufferUtils",Ec);Ec.toDataView=Kc;Ec.toUint8=Hc;Ec.toArrayBuffer=Ic;Ec.equal=Fc;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.R=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 O(a){this.h=a;this.g=null}O.prototype.za=function(){this.stop();this.h();return this};O.prototype.R=function(a){var b=this;this.stop();this.g=(new Nc(function(){b.h()})).R(a);return this};O.prototype.ea=function(a){var b=this;this.stop();this.g=(new Nc(function(){b.g.R(a);b.h()})).R(a);return this};O.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};I("shaka.util.Timer",O);O.prototype.stop=O.prototype.stop;O.prototype.tickEvery=O.prototype.ea;O.prototype.tickAfter=O.prototype.R;
108
+ O.prototype.tickNow=O.prototype.za;function Oc(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Pc(a){return""!=Qc().canPlayType(a)}function Rc(){return Sc("Xbox One")}function Tc(){return Sc("Tizen")}function Uc(){return Sc("Web0S")&&Sc("Chrome/38.0.2125.122 Safari/537.36")}function Vc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Tc()&&!Sc("PC=EOS")&&!Sc("VirginMedia")&&!Wc()&&!Sc("AFT")}function Wc(){return Sc("PlayStation 4")}
109
109
  function Xc(){if(!Vc())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(Yc)return Yc;Zc||(Zc=new O(function(){Yc=null}));(Yc=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Yc=document.createElement("video"));Zc.R(1);return Yc}var Zc=null,Yc=null;function $c(){}
110
110
  function ad(a){if(!a)return"";a=Hc(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!Wc())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Sa('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}
@@ -121,7 +121,7 @@ case "mp4a"===a&&"a9"===b:return"dtsc";case "avc1"===a:case "avc3"===a:return"av
121
121
  (new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function Cd(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.s=new Map}function Dd(a){return Ed[a]||"application/cea-608"==a||"application/cea-708"==a?!0:!1}Cd.prototype.destroy=function(){this.i=this.j=null;this.s.clear();return Promise.resolve()};
122
122
  function Fd(a,b,c,d){var e,f,g,h;return G(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(Hc(b)),k.return();e=a.C?c:a.B;f={periodStart:a.B,segmentStart:c,segmentEnd:d,vttOffset:e};g=a.j.parseMedia(Hc(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);B(k)})}
123
123
  Cd.prototype.remove=function(a,b){var c=this;return G(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));B(d)})};function Gd(a,b,c){a.l=b;a.m=c}function Hd(a,b,c){a.F=b;if(b=a.s.get(b))for(var d=r(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 Id(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({stream:c.stream,cue:new kc(c.startTime,c.endTime,c.text)});return b}function Jd(a,b,c){b.startTime+=c;b.endTime+=c;b=r(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Jd(a,d.value,c)}
124
+ function Id(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({stream:c.stream,cue:new jc(c.startTime,c.endTime,c.text)});return b}function Jd(a,b,c){b.startTime+=c;b.endTime+=c;b=r(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Jd(a,d.value,c)}
125
125
  function Kd(a,b,c,d,e){var f=c+" "+d,g=new Map;b=r(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,[]);Jd(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=r(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.s.has(f)||a.s.set(f,new Map),b=r(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.s.get(f).set(h,k);a.g=null==a.g?Math.max(c,
126
126
  a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}I("shaka.text.TextEngine",Cd);Cd.prototype.destroy=Cd.prototype.destroy;Cd.findParser=function(a){return Ed[a]};Cd.unregisterParser=function(a){delete Ed[a]};Cd.registerParser=function(a,b){Ed[a]=b};var Ed={};function Ld(a,b,c,d,e){var f=a.variants;if(b.length||c.length)f=Md(f,b,c);f=Nd(f,d);b=Od(f);b=Pd(b);var g=Qd(b,e);a.variants=a.variants.filter(function(h){return Rd(h)==g?!0:!1})}function Od(a){var b=new eb;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Rd(c);b.push(d,c)}return b}
127
127
  function Pd(a){var b=0,c=new Map,d=a.size();a.forEach(function(e,f){f=r(f);for(var g=f.next();!g.done;g=f.next()){g=g.value;var h=g.video;if(h&&h.width&&h.height){h=h.width*h.height*(h.frameRate||1);c.has(h)||c.set(h,new eb);var k=c.get(h);k.push(e,g);k.size()===d&&(b=Math.max(b,h))}}});return b?c.get(b):a}
@@ -130,8 +130,8 @@ function Qd(a,b){b=r(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c==Sd
130
130
  function Wd(a){var b="",c=Infinity;a.forEach(function(d,e){var f=0,g=0;e=r(e);for(var h=e.next();!h.done;h=e.next())f+=h.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}function Rd(a){var b="";a.video&&(b=zd(a.video.codecs));var c="";a.audio&&(c=zd(a.audio.codecs));return b+"-"+c}function Xd(a,b,c){a.variants=a.variants.filter(function(d){return Yd(d,b,c)})}
131
131
  function Yd(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
132
  function Zd(a,b,c){var d=!1;a=r(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=Yd(e,b,c);f!=e.allowedByApplication&&(d=!0)}return d}function $d(a,b){return G(function(c){if(1==c.g)return u(c,ae(b,0<b.offlineSessionIds.length),2);be(a,b);ce(b);return u(c,de(b),0)})}
133
- function ae(a,b){return G(function(c){if(1==c.g)return u(c,ee(a.variants,b,!1),2);a.variants=a.variants.filter(function(d){var e=d.video;if(e){var f=fe(e.codecs);if(e.codecs.includes(",")){var g=e.codecs.split(",");f=Fb("video",g);f=fe(f);g=Fb("audio",g);g=ge(g);g=yd(e.mimeType,g,"audio");if(!dc(g))return!1}f=yd(e.mimeType,f,"video");if(!dc(f))return!1}if(f=d.audio)if(g=ge(f.codecs),f=yd(f.mimeType,g,"audio"),!dc(f))return!1;if(Rc()&&e&&(e.width&&1920<e.width||e.height&&1080<e.height)&&(e.codecs.includes("avc1.")||
134
- e.codecs.includes("avc3.")))return Ya(he(d)),!1;(e=d.decodingInfos.some(function(h){return h.supported}))||Ya(he(d));return e});B(c)})}
133
+ function ae(a,b){return G(function(c){if(1==c.g)return u(c,ee(a.variants,b,!1),2);a.variants=a.variants.filter(function(d){var e=d.video;if(e){var f=fe(e.codecs);if(e.codecs.includes(",")){var g=e.codecs.split(",");f=Fb("video",g);f=fe(f);g=Fb("audio",g);g=ge(g);var h=yd(e.mimeType,g,"audio");if(!dc(h))return!1;f=[f,g].join()}g=yd(e.mimeType,f,"video");if(!dc(g))return!1;e.codecs=f}if(f=d.audio){g=ge(f.codecs);h=yd(f.mimeType,g,"audio");if(!dc(h))return!1;f.codecs=g}if(Rc()&&e&&(e.width&&1920<e.width||
134
+ e.height&&1080<e.height)&&(e.codecs.includes("avc1.")||e.codecs.includes("avc3.")))return Ya(he(d)),!1;(e=d.decodingInfos.some(function(k){return k.supported}))||Ya(he(d));return e});B(c)})}
135
135
  function ee(a,b,c){var d,e,f,g,h,k,l,m,p,n,t;return G(function(v){if(d=a.some(function(y){return y.decodingInfos.length}))return v.return();e=navigator.mediaCapabilities;f=[];g=function(y,w){var x;return G(function(A){if(1==A.g)return D(A,2),u(A,e.decodingInfo(w),4);if(2!=A.g)return x=A.h,y.decodingInfos.push(x),ua(A,0);va(A);JSON.stringify(w);B(A)})};h=r(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=ie(l,b,c),p=r(m),n=p.next();!n.done;n=p.next())t=n.value,f.push(g(l,t));return u(v,Promise.all(f),
136
136
  0)})}
137
137
  function ie(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=fe(f);g=Fb("audio",g);g=yd(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=fe(f);f=yd(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";
@@ -165,32 +165,32 @@ function Be(a,b,c,d){a&&(b=b.filter(function(e){return Yd(e,a,{width:d,height:c}
165
165
  Ae.prototype.disable=Ae.prototype.disable;Ae.prototype.enable=Ae.prototype.enable;Ae.prototype.chooseVariant=Ae.prototype.chooseVariant;Ae.prototype.init=Ae.prototype.init;Ae.prototype.stop=Ae.prototype.stop;var De=1;function Ee(a,b){this.g=a;this.h=b}Ee.prototype.toString=function(){return"v"+this.g+"."+this.h};function Fe(a,b){var c=new Ee(5,0),d=Ge,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function He(a,b,c,d){Ta([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Ie(a,b,c,d){Sa([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var Ge=null;I("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});function Je(a,b){this.h=a;this.g=new Set([a]);b=b||[];a=r(b);for(b=a.next();!b.done;b=a.next())this.add(b.value)}Je.prototype.add=function(a){return Ke(this.h,a)?(this.g.add(a),!0):!1};
166
166
  function Ke(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)&&Le(c,d)&&Me(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(a=a.video,b=b.video,c=!(Le(a,b)&&Me(a.roles,b.roles)));return c?!1:!0}Je.prototype.values=function(){return this.g.values()};
167
167
  function Le(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(d){return Ad(d)[0]});b=b.codecs.split(",").map(function(d){return Ad(d)[0]});if(a.length!=b.length)return!1;a.sort();b.sort();for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}function Me(a,b){a=new Set(a);b=new Set(b);a.delete("main");b.delete("main");if(a.size!=b.size)return!1;a=r(a);for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!1;return!0};function Ne(a){this.g=a;this.h=new Oe(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}Ne.prototype.create=function(a){var b=this,c=a.filter(function(d){return Ke(b.g,d)});return c.length?new Je(c[0],c):this.h.create(a)};function Oe(a,b,c,d){this.i=a;this.j=b;this.g=c;this.h=void 0===d?"":d}
168
- Oe.prototype.create=function(a){var b=[];b=Pe(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=Qe(b,this.j);a.length&&(b=a);this.g&&(a=Nd(b,this.g),a.length&&(b=a));this.h&&(a=Re(b,this.h),a.length&&(b=a));a=new Je(b[0]);b=r(b);for(c=b.next();!c.done;c=b.next())c=c.value,Ke(a.h,c)&&a.add(c);return a};function Pe(a,b){b=Mb(b);var c=Vb(b,a.map(function(d){return Ub(d)}));return c?a.filter(function(d){return c==Ub(d)}):[]}
168
+ Oe.prototype.create=function(a){var b=[];b=Pe(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=Qe(b,this.j);a.length&&(b=a);this.g&&(a=Nd(b,this.g),a.length&&(b=a));this.h&&(a=Re(b,this.h),a.length&&(b=a));a=new Je(b[0]);b=r(b);for(c=b.next();!c.done;c=b.next())c=c.value,Ke(a.h,c)&&a.add(c);return a};function Pe(a,b){b=Mb(b);var c=Vb(b,a.map(function(d){return Tb(d)}));return c?a.filter(function(d){return c==Tb(d)}):[]}
169
169
  function Qe(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function Re(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function Se(){this.g=Te;this.h=(new Map).set(Te,2).set(Ue,1)}function Ve(a,b,c){a.h.set(Te,c).set(Ue,b)}var Ue=0,Te=1;function We(a,b){var c=Xe();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.s=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
170
  function Ye(a){var b,c;return G(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new M(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.s);return u(d,new Promise(function(e){(new O(e)).R(c/1E3)}),2)}a.h*=a.m;B(d)})}function Xe(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Ze(a,b){this.promise=a;this.i=b;this.g=!1}function $e(a){return new Ze(Promise.reject(a),function(){return Promise.resolve()})}function af(){var a=Promise.reject(new M(2,7,7001));a.catch(function(){});return new Ze(a,function(){return Promise.resolve()})}function bf(a){return new Ze(Promise.resolve(a),function(){return Promise.resolve()})}function cf(a){return new Ze(a,function(){return a.catch(function(){})})}Ze.prototype.abort=function(){this.g=!0;return this.i()};
171
171
  function df(a){return new Ze(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Ze.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
172
- Ze.prototype.ha=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=ef(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 M(2,7,7001);this.promise.then(c(!0),c(!1));return new Ze(f,function(){return d()})};
173
- function ef(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()}}}I("shaka.util.AbortableOperation",Ze);Ze.prototype.chain=Ze.prototype.ha;Ze.prototype["finally"]=Ze.prototype.finally;Ze.all=df;Ze.prototype.abort=Ze.prototype.abort;Ze.notAbortable=cf;Ze.completed=bf;Ze.aborted=af;Ze.failed=$e;function ff(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 gf(a){var b={},c;for(c in a)b[c]=a[c];return b};function hf(){this.g=[]}function jf(a,b){a.g.push(b.finally(function(){gc(a.g,b)}))}hf.prototype.destroy=function(){for(var a=[],b=r(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 kf(a,b,c){fb.call(this);this.i=!1;this.m=new hf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.s=!1}pa(kf,fb);q=kf.prototype;q.Le=function(a){this.s=a};function lf(a,b,c,d){c=c||mf;var e=nf[a];if(!e||c>=e.priority)nf[a]={priority:c,qh:b,rh:void 0===d?!1:d}}q.sh=function(a){this.g.add(a)};q.Jh=function(a){this.g.delete(a)};q.og=function(){this.g.clear()};q.uh=function(a){this.h.add(a)};q.Kh=function(a){this.h.delete(a)};q.pg=function(){this.h.clear()};
172
+ Ze.prototype.ia=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=ef(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 M(2,7,7001);this.promise.then(c(!0),c(!1));return new Ze(f,function(){return d()})};
173
+ function ef(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()}}}I("shaka.util.AbortableOperation",Ze);Ze.prototype.chain=Ze.prototype.ia;Ze.prototype["finally"]=Ze.prototype.finally;Ze.all=df;Ze.prototype.abort=Ze.prototype.abort;Ze.notAbortable=cf;Ze.completed=bf;Ze.aborted=af;Ze.failed=$e;function ff(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 gf(a){var b={},c;for(c in a)b[c]=a[c];return b};function hf(){this.g=[]}function jf(a,b){a.g.push(b.finally(function(){gc(a.g,b)}))}hf.prototype.destroy=function(){for(var a=[],b=r(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 kf(a,b,c){fb.call(this);this.i=!1;this.m=new hf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.s=!1}pa(kf,fb);q=kf.prototype;q.Me=function(a){this.s=a};function lf(a,b,c,d){c=c||mf;var e=nf[a];if(!e||c>=e.priority)nf[a]={priority:c,sh:b,uh:void 0===d?!1:d}}q.vh=function(a){this.g.add(a)};q.Lh=function(a){this.g.delete(a)};q.qg=function(){this.g.clear()};q.wh=function(a){this.h.add(a)};q.Mh=function(a){this.h.delete(a)};q.rg=function(){this.h.clear()};
174
174
  function of(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 pf;if(this.i){var e=Promise.reject(new M(2,7,7001));e.catch(function(){});return new qf(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?ff(b.retryParameters):Xe();b.uris=ff(b.uris);e=rf(this,a,b);var f=e.ha(function(){return sf(c,a,b,new We(b.retryParameters,!1),0,null,d)}),g=f.ha(function(p){return tf(c,a,p)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
176
- var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.ha(function(p){var n=Date.now()-l,t=p.response;t.timeMs+=k;t.timeMs+=n;p.bh||!c.l||t.fromCache||a!=uf||c.l(t.timeMs,t.data.byteLength);return t},function(p){p&&(p.severity=2);throw p;});e=new qf(m.promise,function(){return m.abort()},d);jf(this.m,e);return e};
177
- function rf(a,b,c){var d=bf(void 0),e={};a=r(a.g);for(var f=a.next();!f.done;e={Zd:e.Zd},f=a.next())e.Zd=f.value,d=d.ha(function(g){return function(){c.body&&(c.body=Ic(c.body));return g.Zd(b,c)}}(e));return d.ha(void 0,function(g){if(g instanceof M&&7001==g.code)throw g;throw new M(2,1,1006,g);})}
178
- function sf(a,b,c,d,e,f,g){a.s&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new lb(c.uris[e]),k=h.Va,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=nf[k])?k.qh:null;if(!m)return $e(new M(2,1,1E3,h));var p=k.rh,n=null,t=null,v=!1,y=!1,w;return cf(Ye(d)).ha(function(){if(a.i)return af();w=Date.now();var x=m(c.uris[e],c,b,function(C,E,F){n&&n.stop();t&&t.R(z/1E3);a.l&&b==uf&&(a.l(C,E),l=!0,g.g=F)},function(C){a.j&&a.j(C,c,b);y=!0});
179
- if(!p)return x;var A=c.retryParameters.connectionTimeout;A&&(n=new O(function(){v=!0;x.abort()}),n.R(A/1E3));var z=c.retryParameters.stallTimeout;z&&(t=new O(function(){v=!0;x.abort()}));return x}).ha(function(x){n&&n.stop();t&&t.stop();void 0==x.timeMs&&(x.timeMs=Date.now()-w);var A={response:x,bh:l};!y&&a.j&&a.j(x.headers,c,b);return A},function(x){n&&n.stop();t&&t.stop();if(a.B){var A=null,z=0;x instanceof M&&(A=x,1001==x.code&&(z=x.data[1]));a.B(c,A,z,v)}if(a.i)return af();v&&(x=new M(1,1,1003,
175
+ q.request=function(a,b){var c=this,d=new pf;if(this.i){var e=Promise.reject(new M(2,7,7001));e.catch(function(){});return new qf(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?ff(b.retryParameters):Xe();b.uris=ff(b.uris);e=rf(this,a,b);var f=e.ia(function(){return sf(c,a,b,new We(b.retryParameters,!1),0,null,d)}),g=f.ia(function(p){return tf(c,a,p)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
176
+ var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.ia(function(p){var n=Date.now()-l,t=p.response;t.timeMs+=k;t.timeMs+=n;p.eh||!c.l||t.fromCache||a!=uf||c.l(t.timeMs,t.data.byteLength);return t},function(p){p&&(p.severity=2);throw p;});e=new qf(m.promise,function(){return m.abort()},d);jf(this.m,e);return e};
177
+ function rf(a,b,c){var d=bf(void 0),e={};a=r(a.g);for(var f=a.next();!f.done;e={Zd:e.Zd},f=a.next())e.Zd=f.value,d=d.ia(function(g){return function(){c.body&&(c.body=Ic(c.body));return g.Zd(b,c)}}(e));return d.ia(void 0,function(g){if(g instanceof M&&7001==g.code)throw g;throw new M(2,1,1006,g);})}
178
+ function sf(a,b,c,d,e,f,g){a.s&&(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=nf[k])?k.sh:null;if(!m)return $e(new M(2,1,1E3,h));var p=k.uh,n=null,t=null,v=!1,y=!1,w;return cf(Ye(d)).ia(function(){if(a.i)return af();w=Date.now();var x=m(c.uris[e],c,b,function(C,E,F){n&&n.stop();t&&t.R(z/1E3);a.l&&b==uf&&(a.l(C,E),l=!0,g.g=F)},function(C){a.j&&a.j(C,c,b);y=!0});
179
+ if(!p)return x;var A=c.retryParameters.connectionTimeout;A&&(n=new O(function(){v=!0;x.abort()}),n.R(A/1E3));var z=c.retryParameters.stallTimeout;z&&(t=new O(function(){v=!0;x.abort()}));return x}).ia(function(x){n&&n.stop();t&&t.stop();void 0==x.timeMs&&(x.timeMs=Date.now()-w);var A={response:x,eh:l};!y&&a.j&&a.j(x.headers,c,b);return A},function(x){n&&n.stop();t&&t.stop();if(a.B){var A=null,z=0;x instanceof M&&(A=x,1001==x.code&&(z=x.data[1]));a.B(c,A,z,v)}if(a.i)return af();v&&(x=new M(1,1,1003,
180
180
  c.uris[e],b));if(x instanceof M){if(7001==x.code)throw x;if(1010==x.code)throw f;if(1==x.severity)return A=(new Map).set("error",x),A=new L("retry",A),a.dispatchEvent(A),e=(e+1)%c.uris.length,sf(a,b,c,d,e,x,g)}throw x;})}
181
- function tf(a,b,c){var d=bf(void 0),e={};a=r(a.h);for(var f=a.next();!f.done;e={$d:e.$d},f=a.next())e.$d=f.value,d=d.ha(function(g){return function(){var h=c.response;h.data&&(h.data=Ic(h.data));return g.$d(b,h)}}(e));return d.ha(function(){return c},function(g){var h=2;if(g instanceof M){if(7001==g.code)throw g;h=g.severity}throw new M(h,1,1007,g);})}I("shaka.net.NetworkingEngine",kf);kf.prototype.request=kf.prototype.request;kf.prototype.destroy=kf.prototype.destroy;kf.makeRequest=of;
182
- kf.defaultRetryParameters=function(){return Xe()};kf.prototype.clearAllResponseFilters=kf.prototype.pg;kf.prototype.unregisterResponseFilter=kf.prototype.Kh;kf.prototype.registerResponseFilter=kf.prototype.uh;kf.prototype.clearAllRequestFilters=kf.prototype.og;kf.prototype.unregisterRequestFilter=kf.prototype.Jh;kf.prototype.registerRequestFilter=kf.prototype.sh;kf.unregisterScheme=function(a){delete nf[a]};kf.registerScheme=lf;kf.prototype.setForceHTTPS=kf.prototype.Le;function pf(){this.g=0}
181
+ function tf(a,b,c){var d=bf(void 0),e={};a=r(a.h);for(var f=a.next();!f.done;e={$d:e.$d},f=a.next())e.$d=f.value,d=d.ia(function(g){return function(){var h=c.response;h.data&&(h.data=Ic(h.data));return g.$d(b,h)}}(e));return d.ia(function(){return c},function(g){var h=2;if(g instanceof M){if(7001==g.code)throw g;h=g.severity}throw new M(h,1,1007,g);})}I("shaka.net.NetworkingEngine",kf);kf.prototype.request=kf.prototype.request;kf.prototype.destroy=kf.prototype.destroy;kf.makeRequest=of;
182
+ kf.defaultRetryParameters=function(){return Xe()};kf.prototype.clearAllResponseFilters=kf.prototype.rg;kf.prototype.unregisterResponseFilter=kf.prototype.Mh;kf.prototype.registerResponseFilter=kf.prototype.wh;kf.prototype.clearAllRequestFilters=kf.prototype.qg;kf.prototype.unregisterRequestFilter=kf.prototype.Lh;kf.prototype.registerRequestFilter=kf.prototype.vh;kf.unregisterScheme=function(a){delete nf[a]};kf.registerScheme=lf;kf.prototype.setForceHTTPS=kf.prototype.Me;function pf(){this.g=0}
183
183
  kf.NumBytesRemainingClass=pf;function qf(a,b,c){Ze.call(this,a,b);this.h=c}pa(qf,Ze);kf.PendingRequest=qf;var uf=1;kf.RequestType={MANIFEST:0,SEGMENT:uf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var mf=3;kf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:mf};var nf={};function vf(a){this.g=!1;this.h=new Lc;this.i=a}vf.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 wf(a,b){if(a.g){if(b instanceof M&&7003==b.code)throw b;throw new M(2,7,7003,b);}};function xf(){this.g=new eb}q=xf.prototype;q.release=function(){this.Rb();this.g=null};q.o=function(a,b,c,d){this.g&&(a=new yf(a,b,c,d),this.g.push(b,a))};q.Da=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=r(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
184
  q.Rb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ia(a.g[c]));a=r(b);for(b=a.next();!b.done;b=a.next())b.value.qc();this.g.g={}}};I("shaka.util.EventManager",xf);xf.prototype.removeAll=xf.prototype.Rb;xf.prototype.unlisten=xf.prototype.qc;xf.prototype.listenOnce=xf.prototype.Da;xf.prototype.listen=xf.prototype.o;xf.prototype.release=xf.prototype.release;function yf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=zf(a,d);this.target.addEventListener(b,c,this.g)}
185
185
  yf.prototype.qc=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function zf(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 Af(a)?b:b.capture||!1}
186
- function Af(a){var b=Bf;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}Bf=b}return b||!1}var Bf=void 0;function Cf(a){for(var b=new Map,c=r(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Df(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Ef(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;a=r(a);for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;if(!b.has(c))return!1;c=b.get(c);if(c!=d||void 0==c)return!1}return!0};function Ff(a,b){this.W=Kc(a);this.h=b==Gf;this.g=0}q=Ff.prototype;q.wa=function(){return this.g<this.W.byteLength};q.ma=function(){return this.g};q.Ig=function(){return this.W.byteLength};q.ob=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw Hf();}};q.Be=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw Hf();}};q.N=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw Hf();}};
187
- q.Pf=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw Hf();}};q.Cb=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 Hf();}if(2097151<b)throw new M(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Bb=function(a){if(this.g+a>this.W.byteLength)throw Hf();var b=Hc(this.W,this.g,a);this.g+=a;return b};
188
- q.skip=function(a){if(this.g+a>this.W.byteLength)throw Hf();this.g+=a};q.Ch=function(a){if(this.g<a)throw Hf();this.g-=a};q.seek=function(a){if(0>a||a>this.W.byteLength)throw Hf();this.g=a};q.Uc=function(){for(var a=this.g;this.wa()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Hc(this.W,a,this.g-a);this.g+=1;return ad(a)};function Hf(){return new M(2,3,3E3)}I("shaka.util.DataViewReader",Ff);Ff.prototype.readTerminatedString=Ff.prototype.Uc;Ff.prototype.seek=Ff.prototype.seek;Ff.prototype.rewind=Ff.prototype.Ch;
189
- Ff.prototype.skip=Ff.prototype.skip;Ff.prototype.readBytes=Ff.prototype.Bb;Ff.prototype.readUint64=Ff.prototype.Cb;Ff.prototype.readInt32=Ff.prototype.Pf;Ff.prototype.readUint32=Ff.prototype.N;Ff.prototype.readUint16=Ff.prototype.Be;Ff.prototype.readUint8=Ff.prototype.ob;Ff.prototype.getLength=Ff.prototype.Ig;Ff.prototype.getPosition=Ff.prototype.ma;Ff.prototype.hasMoreData=Ff.prototype.wa;var Gf=1;Ff.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Gf};function If(){this.i=[];this.h=[];this.g=!1}q=If.prototype;q.box=function(a,b){a=Jf(a);this.i[a]=Kf;this.h[a]=b;return this};q.S=function(a,b){a=Jf(a);this.i[a]=Lf;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Ff(a,0);for(this.g=!1;a.wa()&&!this.g;)this.Sc(0,a,b,c)};
190
- q.Sc=function(a,b,c,d){var e=b.ma();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.N(),g=b.N(),h=Mf(g),k=!1;switch(f){case 0:f=b.W.byteLength-e;break;case 1:if(d&&b.ma()+8>b.W.byteLength){this.g=!0;return}f=b.Cb();k=!0}var l=this.h[g];if(l){var m=null,p=null;if(this.i[g]==Lf){if(d&&b.ma()+4>b.W.byteLength){this.g=!0;return}p=b.N();m=p>>>24;p&=16777215}g=e+f;c&&g>b.W.byteLength&&(g=b.W.byteLength);d&&g>b.W.byteLength?this.g=!0:(d=g-b.ma(),b=0<d?b.Bb(d):new Uint8Array(0),b=new Ff(b,0),l({name:h,parser:this,
191
- partialOkay:c||!1,version:m,flags:p,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.ma(),b.W.byteLength-b.ma()))}};function Nf(a){for(var b=Of(a);a.reader.wa()&&!a.parser.g;)a.parser.Sc(a.start+b,a.reader,a.partialOkay)}function Pf(a){for(var b=Of(a),c=a.reader.N(),d=0;d<c&&(a.parser.Sc(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Qf(a){var b=Of(a);for(a.reader.skip(78);a.reader.wa()&&!a.parser.g;)a.parser.Sc(a.start+b,a.reader,a.partialOkay)}
186
+ function Af(a){var b=Bf;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}Bf=b}return b||!1}var Bf=void 0;function Cf(a){for(var b=new Map,c=r(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Df(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Ef(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;a=r(a);for(var c=a.next();!c.done;c=a.next()){var d=r(c.value);c=d.next().value;d=d.next().value;if(!b.has(c))return!1;c=b.get(c);if(c!=d||void 0==c)return!1}return!0};function Ff(a,b){this.W=Kc(a);this.h=b==Gf;this.g=0}q=Ff.prototype;q.xa=function(){return this.g<this.W.byteLength};q.ma=function(){return this.g};q.Kg=function(){return this.W.byteLength};q.ob=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw Hf();}};q.Ce=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw Hf();}};q.N=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw Hf();}};
187
+ q.Rf=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw Hf();}};q.Cb=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 Hf();}if(2097151<b)throw new M(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Bb=function(a){if(this.g+a>this.W.byteLength)throw Hf();var b=Hc(this.W,this.g,a);this.g+=a;return b};
188
+ q.skip=function(a){if(this.g+a>this.W.byteLength)throw Hf();this.g+=a};q.Eh=function(a){if(this.g<a)throw Hf();this.g-=a};q.seek=function(a){if(0>a||a>this.W.byteLength)throw Hf();this.g=a};q.Vc=function(){for(var a=this.g;this.xa()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Hc(this.W,a,this.g-a);this.g+=1;return ad(a)};function Hf(){return new M(2,3,3E3)}I("shaka.util.DataViewReader",Ff);Ff.prototype.readTerminatedString=Ff.prototype.Vc;Ff.prototype.seek=Ff.prototype.seek;Ff.prototype.rewind=Ff.prototype.Eh;
189
+ Ff.prototype.skip=Ff.prototype.skip;Ff.prototype.readBytes=Ff.prototype.Bb;Ff.prototype.readUint64=Ff.prototype.Cb;Ff.prototype.readInt32=Ff.prototype.Rf;Ff.prototype.readUint32=Ff.prototype.N;Ff.prototype.readUint16=Ff.prototype.Ce;Ff.prototype.readUint8=Ff.prototype.ob;Ff.prototype.getLength=Ff.prototype.Kg;Ff.prototype.getPosition=Ff.prototype.ma;Ff.prototype.hasMoreData=Ff.prototype.xa;var Gf=1;Ff.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Gf};function If(){this.i=[];this.h=[];this.g=!1}q=If.prototype;q.box=function(a,b){a=Jf(a);this.i[a]=Kf;this.h[a]=b;return this};q.S=function(a,b){a=Jf(a);this.i[a]=Lf;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Ff(a,0);for(this.g=!1;a.xa()&&!this.g;)this.Tc(0,a,b,c)};
190
+ q.Tc=function(a,b,c,d){var e=b.ma();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.N(),g=b.N(),h=Mf(g),k=!1;switch(f){case 0:f=b.W.byteLength-e;break;case 1:if(d&&b.ma()+8>b.W.byteLength){this.g=!0;return}f=b.Cb();k=!0}var l=this.h[g];if(l){var m=null,p=null;if(this.i[g]==Lf){if(d&&b.ma()+4>b.W.byteLength){this.g=!0;return}p=b.N();m=p>>>24;p&=16777215}g=e+f;c&&g>b.W.byteLength&&(g=b.W.byteLength);d&&g>b.W.byteLength?this.g=!0:(d=g-b.ma(),b=0<d?b.Bb(d):new Uint8Array(0),b=new Ff(b,0),l({name:h,parser:this,
191
+ partialOkay:c||!1,version:m,flags:p,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.ma(),b.W.byteLength-b.ma()))}};function Nf(a){for(var b=Of(a);a.reader.xa()&&!a.parser.g;)a.parser.Tc(a.start+b,a.reader,a.partialOkay)}function Pf(a){for(var b=Of(a),c=a.reader.N(),d=0;d<c&&(a.parser.Tc(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Qf(a){var b=Of(a);for(a.reader.skip(78);a.reader.xa()&&!a.parser.g;)a.parser.Tc(a.start+b,a.reader,a.partialOkay)}
192
192
  function Rf(a){return function(b){a(b.reader.Bb(b.reader.W.byteLength-b.reader.ma()))}}function Jf(a){var b=0;a=r(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Mf(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Of(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}I("shaka.util.Mp4Parser",If);If.headerSize=Of;If.typeToString=Mf;If.allData=Rf;If.visualSampleEntry=Qf;If.sampleDescription=Pf;If.children=Nf;
193
- If.prototype.parseNext=If.prototype.Sc;If.prototype.parse=If.prototype.parse;If.prototype.stop=If.prototype.stop;If.prototype.fullBox=If.prototype.S;If.prototype.box=If.prototype.box;var Kf=0,Lf=1;function Sf(a){var b=this;this.g=[];this.h=[];this.data=[];(new If).box("moov",Nf).box("moof",Nf).S("pssh",function(c){if(!(1<c.version)){var d=Hc(c.reader.W,-12,c.size);b.data.push(d);b.g.push(ld(c.reader.Bb(16)));if(0<c.version){d=c.reader.N();for(var e=0;e<d;e++){var f=ld(c.reader.Bb(16));b.h.push(f)}}}}).parse(a)}
193
+ If.prototype.parseNext=If.prototype.Tc;If.prototype.parse=If.prototype.parse;If.prototype.stop=If.prototype.stop;If.prototype.fullBox=If.prototype.S;If.prototype.box=If.prototype.box;var Kf=0,Lf=1;function Sf(a){var b=this;this.g=[];this.h=[];this.data=[];(new If).box("moov",Nf).box("moof",Nf).S("pssh",function(c){if(!(1<c.version)){var d=Hc(c.reader.W,-12,c.size);b.data.push(d);b.g.push(ld(c.reader.Bb(16)));if(0<c.version){d=c.reader.N();for(var e=0;e<d;e++){var f=ld(c.reader.Bb(16));b.h.push(f)}}}}).parse(a)}
194
194
  function Tf(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=Kc(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=r(c),c=b.next();!c.done;c=b.next())c=kd(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function Uf(a,b){a=Vf(a,b);return 1!=a.length?null:a[0]}function Wf(a,b,c){a=Xf(a,b,c);return 1!=a.length?null:a[0]}function Vf(a,b){var c=[];a=r(a.childNodes);for(var d=a.next();!d.done;d=a.next())d=d.value,d instanceof Element&&d.tagName==b&&c.push(d);return c}function Yf(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
195
195
  function Xf(a,b,c){var d=[];a=r(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 Zf(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}function $f(a,b,c){b=r(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 ag(a){return Array.from(a.childNodes).every(bg)?a.textContent.trim():null}
196
196
  function bg(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE}function cg(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 dg(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}
@@ -206,9 +206,9 @@ function Dg(a,b){return G(function(c){if(1==c.g)return u(c,Cg(a),2);Eg(a,b.initD
206
206
  q.Bc=function(a){var b=this,c;return G(function(d){if(1==d.g){if(!b.C)return b.B.Da(a,"encrypted",function(){b.m(new M(2,6,6010))}),d.return();b.l=a;b.B.Da(b.l,"play",function(){for(var e=r(b.K),f=e.next();!f.done;f=e.next())Fg(b,f.value);b.O=!0;b.K=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.B.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return sg(b)});return(c=b.g.initData.find(function(e){return 0<e.initData.length}))||"com.apple.fps"!==b.g.keySystem||b.F.length?u(d,
207
207
  Cg(b),2):d.D(2)}Gg(b);c||b.F.length||b.h.parseInbandPsshEnabled||b.B.o(b.l,"encrypted",function(e){return Dg(b,e)});B(d)})};
208
208
  function Hg(a){var b,c,d,e,f;return G(function(g){switch(g.g){case 1:if(!a.C||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=of([a.g.serverCertificateUri],a.h.retryParameters);D(g,3);c=a.G.Ob.request(5,b);return u(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Hc(d.data);ua(g,4);break;case 3:throw e=va(g),new M(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();
209
- D(g,6);return u(g,a.C.setServerCertificate(a.g.serverCertificate),8);case 8:ua(g,0);break;case 6:throw f=va(g),new M(2,6,6004,f.message);}})}function Ig(a,b){var c,d,e;return G(function(f){if(1==f.g)return u(f,Jg(a,b),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.bb=new Lc,d.push(e.bb);d.push(c.remove());return u(f,Promise.all(d),3)}a.i.delete(c);B(f)})}
209
+ D(g,6);return u(g,a.C.setServerCertificate(a.g.serverCertificate),8);case 8:ua(g,0);break;case 6:throw f=va(g),new M(2,6,6004,f.message);}})}function Ig(a,b){var c,d,e;return G(function(f){if(1==f.g)return u(f,Jg(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);B(f)})}
210
210
  function Gg(a){for(var b=(a.g?a.g.initData:[])||[],c=r(b),d=c.next();!d.done;d=c.next())d=d.value,Eg(a,d.initDataType,d.initData);c=r(a.F);for(d=c.next();!d.done;d=c.next())Jg(a,d.value);b.length||a.F.length||a.s.resolve();return a.s}function Eg(a,b,c){if(c.length){var d=a.i.values();d=r(d);for(var e=d.next();!e.done;e=d.next())if(Fc(c,e.value.initData)&&!Sc("Tizen 2"))return;0<a.i.size&&Kg(a)&&(a.s.resolve(),a.s=new Lc,a.s.catch(function(){}));Lg(a,b,c,a.g.sessionType)}}
211
- function Mg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function Ng(a){a=a.i.keys();a=gb(a,function(b){return b.sessionId});return Array.from(a)}q.Gc=function(){var a=Infinity,b=this.i.keys();b=r(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.td=function(){return Df(this.Z)};
211
+ function Mg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function Ng(a){a=a.i.keys();a=gb(a,function(b){return b.sessionId});return Array.from(a)}q.Gc=function(){var a=Infinity,b=this.i.keys();b=r(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.ud=function(){return Df(this.Z)};
212
212
  function xg(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y;return G(function(w){switch(w.g){case 1:d=new Map;if(c.length){e=Og(a,c,d);w.D(2);break}return u(w,Pg(a,b),3);case 3:e=w.h;case 2:f=e;if(!f)throw new M(2,6,6001);wf(a.j);D(w,4);a.I.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=r(h);for(m=l.next();!m.done;m=l.next())p=m.value,a.I.add(p.contentType.toLowerCase());n=r(k);for(m=n.next();!m.done;m=n.next())t=m.value,a.I.add(t.contentType.toLowerCase());if(c.length){var x=
213
213
  f.keySystem;var A=d.get(f.keySystem);var z=[],C=[],E=[],F=[],H=new Set;Qg(A,z,E,C,F,H);var J=a.M?"persistent-license":"temporary";x={keySystem:x,licenseServerUri:z[0],distinctiveIdentifierRequired:A[0].distinctiveIdentifierRequired,persistentStateRequired:A[0].persistentStateRequired,sessionType:A[0].sessionType||J,audioRobustness:A[0].audioRobustness||"",videoRobustness:A[0].videoRobustness||"",serverCertificate:E[0],serverCertificateUri:C[0],initData:F,keyIds:H};A=r(A);for(z=A.next();!z.done;z=
214
214
  A.next())z=z.value,z.distinctiveIdentifierRequired&&(x.distinctiveIdentifierRequired=z.distinctiveIdentifierRequired),z.persistentStateRequired&&(x.persistentStateRequired=z.persistentStateRequired);A=x}else A=f.keySystem,x=b.get(f.keySystem),z=[],C=[],E=[],F=[],H=new Set,Qg(x.drmInfos,z,E,C,F,H),A={keySystem:A,licenseServerUri:z[0],distinctiveIdentifierRequired:"required"==x.distinctiveIdentifier,persistentStateRequired:"required"==x.persistentState,sessionType:x.sessionTypes[0]||"temporary",audioRobustness:(x.audioCapabilities?
@@ -219,26 +219,26 @@ function Pg(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,v,y,w;return G(function(x){switch(x
219
219
  x.h,x.return(c);case 6:va(x);case 7:wf(a.j);case 3:h=g.next();x.D(2);break;case 4:m=r([!0,!1]),p=m.next();case 9:if(p.done){x.D(11);break}n=p.value;t=r(b.keys());h=t.next();case 12:if(h.done){p=m.next();x.D(9);break}v=h.value;y=b.get(v);w=y.drmInfos.some(function(A){return!!A.licenseServerUri});if(w!=n){x.D(13);break}D(x,15);return u(x,navigator.requestMediaKeySystemAccess(v,[y]),17);case 17:return c=x.h,x.return(c);case 15:va(x);case 16:wf(a.j);case 13:h=t.next();x.D(12);break;case 11:return x.return(c)}})}
220
220
  function yg(a){a=Cf(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=f;22!=g.length&&(g=id(kd(f),!1));f=e;22!=f.length&&(f=id(kd(e),!1));e={kty:"oct",kid:g,k:f};b.push(e);c.push(e.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:Hc(ed(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",
221
221
  videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}
222
- function Jg(a,b){var c,d,e,f,g;return G(function(h){switch(h.g){case 1:try{c=a.C.createSession("persistent-license")}catch(k){return d=new M(2,6,6005,k.message),a.m(d),h.return(Promise.reject(d))}a.B.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.O?a.K.push(k):Fg(a,k)});a.B.o(c,"keystatuseschange",function(k){return Rg(a,k)});e={initData:null,initDataType:null,loaded:!1,ze:Infinity,bb:null,type:"persistent-license"};a.i.set(c,e);D(h,2);return u(h,c.load(b),4);case 4:f=
222
+ function Jg(a,b){var c,d,e,f,g;return G(function(h){switch(h.g){case 1:try{c=a.C.createSession("persistent-license")}catch(k){return d=new M(2,6,6005,k.message),a.m(d),h.return(Promise.reject(d))}a.B.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.O?a.K.push(k):Fg(a,k)});a.B.o(c,"keystatuseschange",function(k){return Rg(a,k)});e={initData:null,initDataType:null,loaded:!1,Ae:Infinity,cb:null,type:"persistent-license"};a.i.set(c,e);D(h,2);return u(h,c.load(b),4);case 4:f=
223
223
  h.h;wf(a.j);if(!f)return a.i.delete(c),a.m(new M(2,6,6013)),h.return(Promise.resolve());e.loaded=!0;Kg(a)&&a.s.resolve();return h.return(c);case 2:g=va(h),wf(a.j,g),a.i.delete(c),a.m(new M(2,6,6005,g.message));case 3:return h.return(Promise.resolve())}})}
224
- function Lg(a,b,c,d){try{var e=a.C.createSession(d)}catch(f){a.m(new M(2,6,6005,f.message));return}a.B.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.O?a.K.push(f):Fg(a,f)});a.B.o(e,"keystatuseschange",function(f){return Rg(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,ze:Infinity,bb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof M||(b=new M(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&id(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
224
+ function Lg(a,b,c,d){try{var e=a.C.createSession(d)}catch(f){a.m(new M(2,6,6005,f.message));return}a.B.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.O?a.K.push(f):Fg(a,f)});a.B.o(e,"keystatuseschange",function(f){return Rg(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Ae:Infinity,cb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof M||(b=new M(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&id(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
225
225
  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 M(2,6,6006,f.message,f,h))}})}
226
226
  function Fg(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,v,y;G(function(w){switch(w.g){case 1:return c=b.target,a.h.logLicenseExchange&&id(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=of([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),
227
- Mg(a.g.keySystem)&&Sg(g),h=Date.now(),D(w,2),l=a.G.Ob.request(2,g),u(w,l.promise,4);case 4:k=w.h;ua(w,3);break;case 2:return m=va(w),p=new M(2,6,6007,m),a.m(p),d&&d.bb&&d.bb.reject(p),w.return();case 3:if(a.j.g)return w.return();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&id(k.data);D(w,5);return u(w,c.update(k.data),7);case 7:ua(w,6);break;case 5:return n=va(w),t=new M(2,6,6008,n.message),a.m(t),d&&d.bb&&d.bb.reject(t),w.return();case 6:if(a.j.g)return w.return();v=new L("drmsessionupdate");
228
- a.G.onEvent(v);d&&(d.bb&&d.bb.resolve(),y=new O(function(){d.loaded=!0;Kg(a)&&a.s.resolve()}),y.R(Tg));B(w)}})}
227
+ Mg(a.g.keySystem)&&Sg(g),h=Date.now(),D(w,2),l=a.G.Ob.request(2,g),u(w,l.promise,4);case 4:k=w.h;ua(w,3);break;case 2:return m=va(w),p=new M(2,6,6007,m),a.m(p),d&&d.cb&&d.cb.reject(p),w.return();case 3:if(a.j.g)return w.return();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&id(k.data);D(w,5);return u(w,c.update(k.data),7);case 7:ua(w,6);break;case 5:return n=va(w),t=new M(2,6,6008,n.message),a.m(t),d&&d.cb&&d.cb.reject(t),w.return();case 6:if(a.j.g)return w.return();v=new L("drmsessionupdate");
228
+ a.G.onEvent(v);d&&(d.cb&&d.cb.resolve(),y=new O(function(){d.loaded=!0;Kg(a)&&a.s.resolve()}),y.R(Tg));B(w)}})}
229
229
  function Sg(a){var b=bd(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=lg(b,"PlayReadyKeyMessage");for(var c=r(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=jd(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
230
- function Rg(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(Mg(a.g.keySystem)&&16==g.byteLength&&(navigator.userAgent.match(/Edge?\//)||Wc())){h=Kc(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=ld(g).slice(0,32);a.aa.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.bb&&(a.i.delete(b),
230
+ function Rg(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(Mg(a.g.keySystem)&&16==g.byteLength&&(navigator.userAgent.match(/Edge?\//)||Wc())){h=Kc(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=ld(g).slice(0,32);a.aa.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.cb&&(a.i.delete(b),
231
231
  b.close().catch(function(){}));Kg(a)&&(a.s.resolve(),a.P.R(Ug))}function pg(a){var b=a.aa,c=a.Z;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 M(2,6,6014));a.G.Fd(Df(c))}
232
232
  function Vg(){var a,b,c,d,e,f,g,h;return G(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,p,
233
233
  n;return G(function(t){switch(t.g){case 1:D(t,2);if("org.w3.clearkey"===l&&Xc())throw Error("Unsupported keySystem");return u(t,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=t.h,n=(p=m.getConfiguration().sessionTypes)?p.includes("persistent-license"):!1,Sc("Tizen 3")&&(n=!1),f.set(l,{persistentState:n}),u(t,m.createMediaKeys(),5);case 5:ua(t,0);break;case 2:va(t),f.set(l,null),B(t)}})},h=a.map(function(l){return g(l)}),u(k,Promise.all(h),2)):k.return(Df(f))})}
234
234
  function Wg(a){var b;return G(function(c){if(1==c.g)return b=new Promise(function(d,e){(new O(e)).R(Xg)}),D(c,2),u(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return ua(c,0);va(c);B(c)})}
235
235
  function sg(a){var b;return G(function(c){b=Array.from(a.i.entries());a.i.clear();return u(c,Promise.all(b.map(function(d){d=r(d);var e=d.next().value,f=d.next().value;return G(function(g){if(1==g.g)return D(g,2),a.$||a.F.includes(e.sessionId)||"persistent-license"!==f.type?u(g,Wg(e),5):u(g,e.remove(),5);if(2!=g.g)return ua(g,0);va(g);B(g)})})),0)})}
236
- function Yg(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e={},f=r(b),g=f.next();!g.done;e={Ta:e.Ta},g=f.next())if(g=g.value,d.keySystem==g.keySystem){e.Ta=[];e.Ta=e.Ta.concat(d.initData||[]);e.Ta=e.Ta.concat(g.initData||[]);e.Ta=e.Ta.filter(function(h){return function(k,l){return void 0===k.keyId||l===h.Ta.findIndex(function(m){return m.keyId===k.keyId})}}(e));f=d.keyIds&&g.keyIds?new Set([].concat(ia(d.keyIds),ia(g.keyIds))):
236
+ function Yg(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e={},f=r(b),g=f.next();!g.done;e={Ua:e.Ua},g=f.next())if(g=g.value,d.keySystem==g.keySystem){e.Ua=[];e.Ua=e.Ua.concat(d.initData||[]);e.Ua=e.Ua.concat(g.initData||[]);e.Ua=e.Ua.filter(function(h){return function(k,l){return void 0===k.keyId||l===h.Ua.findIndex(function(m){return m.keyId===k.keyId})}}(e));f=d.keyIds&&g.keyIds?new Set([].concat(ia(d.keyIds),ia(g.keyIds))):
237
237
  d.keyIds||g.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||g.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||g.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||g.persistentStateRequired,videoRobustness:d.videoRobustness||g.videoRobustness,audioRobustness:d.audioRobustness||g.audioRobustness,serverCertificate:d.serverCertificate||g.serverCertificate,serverCertificateUri:d.serverCertificateUri||g.serverCertificateUri,
238
- initData:e.Ta,keyIds:f});break}}return c}function Ag(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function qg(a){a.i.forEach(function(b,c){var d=b.ze,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.ze=e)})}function Kg(a){a=a.i.values();return hb(a,function(b){return b.loaded})}
238
+ initData:e.Ua,keyIds:f});break}}return c}function Ag(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function qg(a){a.i.forEach(function(b,c){var d=b.Ae,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.Ae=e)})}function Kg(a){a=a.i.values();return hb(a,function(b){return b.loaded})}
239
239
  function zg(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});a=r(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c)}
240
- function Qg(a,b,c,d,e,f){var g={};a=r(a);for(var h=a.next();!h.done;g={Fa:g.Fa},h=a.next()){g.Fa=h.value;b.includes(g.Fa.licenseServerUri)||b.push(g.Fa.licenseServerUri);d.includes(g.Fa.serverCertificateUri)||d.push(g.Fa.serverCertificateUri);g.Fa.serverCertificate&&(c.some(function(m){return function(p){return Fc(p,m.Fa.serverCertificate)}}(g))||c.push(g.Fa.serverCertificate));if(g.Fa.initData){h={};for(var k=r(g.Fa.initData),l=k.next();!l.done;h={dd:h.dd},l=k.next())h.dd=l.value,e.some(function(m){return function(p){var n=
241
- m.dd;return p.keyId&&p.keyId==n.keyId?!0:p.initDataType==n.initDataType&&Fc(p.initData,n.initData)}}(h))||e.push(h.dd)}if(g.Fa.keyIds)for(h=r(g.Fa.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
240
+ function Qg(a,b,c,d,e,f){var g={};a=r(a);for(var h=a.next();!h.done;g={Fa:g.Fa},h=a.next()){g.Fa=h.value;b.includes(g.Fa.licenseServerUri)||b.push(g.Fa.licenseServerUri);d.includes(g.Fa.serverCertificateUri)||d.push(g.Fa.serverCertificateUri);g.Fa.serverCertificate&&(c.some(function(m){return function(p){return Fc(p,m.Fa.serverCertificate)}}(g))||c.push(g.Fa.serverCertificate));if(g.Fa.initData){h={};for(var k=r(g.Fa.initData),l=k.next();!l.done;h={ed:h.ed},l=k.next())h.ed=l.value,e.some(function(m){return function(p){var n=
241
+ m.ed;return p.keyId&&p.keyId==n.keyId?!0:p.initDataType==n.initDataType&&Fc(p.initData,n.initData)}}(h))||e.push(h.ed)}if(g.Fa.keyIds)for(h=r(g.Fa.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
242
242
  function Bg(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=
243
243
  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 Xg=1,Tg=5,Ug=.5,Zg=new Mc(function(){return Ic(new Uint8Array([0]))});function $g(){}function ah(a,b,c,d){var e,f,g,h;return G(function(k){if(1==k.g){if(d&&(e=bh[d.toLowerCase()]))return k.return(e);if(f=ch(a))if(g=dh[f])return k.return(g);return d?k.D(2):u(k,eh(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=bh[d]))return k.return(h);throw new M(2,4,4E3,a);})}function eh(a,b,c){var d,e,f;return G(function(g){if(1==g.g)return d=of([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():"")})}
244
244
  function ch(a){a=(new lb(a)).Ha.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}I("shaka.media.ManifestParser",$g);$g.unregisterParserByMime=function(a){delete bh[a]};$g.registerParserByMime=function(a,b){bh[a]=b};$g.registerParserByExtension=function(a,b){dh[a]=b};var bh={},dh={};function fh(a){function b(){d=!0}function c(l){f.push(l);Nf(l)}a=Hc(a);var d=!1,e,f=[],g=[];(new If).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).S("stsd",function(l){e=l;f.push(l);Pf(l)}).S("encv",b).S("enca",b).S("hev1",function(l){g.push({box:l,Pb:1701733238})}).S("hvc1",function(l){g.push({box:l,Pb:1701733238})}).S("avc1",function(l){g.push({box:l,Pb:1701733238})}).S("avc3",function(l){g.push({box:l,Pb:1701733238})}).S("ac-3",function(l){g.push({box:l,Pb:1701733217})}).S("ec-3",
@@ -246,13 +246,13 @@ function(l){g.push({box:l,Pb:1701733217})}).S("mp4a",function(l){g.push({box:l,P
246
246
  function gh(a,b,c,d,e){var f=hh.value(),g=a.subarray(c.start,c.start+c.size),h=Kc(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Kc(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);ih(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=r(d);for(d=a.next();!d.done;d=a.next())d=d.value,ih(e,d.start,d.size+k.byteLength);k=Kc(e,b.start);b=Of(b);a=k.getUint32(b);
247
247
  k.setUint32(b,a+1);return e}function ih(a,b,c){a=Kc(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 hh=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 jh(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",p=kh(d,e,h,k,l,m);f<=g;f++){for(var n=c[f],t=-1,v=-1,y=0;y<n.length;y++)if(null!=n[y]&&""!==n[y].g.trim()){t=y;break}for(y=n.length-1;0<=y;y--)if(null!=n[y]&&""!==n[y].g.trim()){v=y;break}if(-1===
248
248
  t||-1===v)n=lh(d,e),a.nestedCues.push(n);else{for(;t<=v;t++)if(y=n[t]){var w=y.l,x=y.i,A=y.j,z=y.h;if(w!=h||x!=k||A!=l||z!=m)p.payload&&a.nestedCues.push(p),p=kh(d,e,w,x,A,z),h=w,k=x,l=A,m=z;p.payload+=y.g}else p.payload+=" ";p.payload&&a.nestedCues.push(p);f!==g&&(p=lh(d,e),a.nestedCues.push(p));p=kh(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
249
- function kh(a,b,c,d,e,f){a=new kc(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function lh(a,b){a=new kc(a,b,"");a.lineBreak=!0;return a}function mh(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function nh(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.s="black";oh(this)}function ph(a,b,c){return jh(new kc(b,c,""),"CC"+(a.C<<1|a.B+1),a.i,b,c)}function oh(a){qh(a,0,15);a.g=1}function rh(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case sh:d=th.has(c)?th.get(c):String.fromCharCode(c);break;case uh:d=vh.get(c);break;case wh:a.i[a.g].pop();d=xh.get(c);break;case yh:a.i[a.g].pop(),d=zh.get(c)}d&&a.i[a.g].push(new mh(d,a.m,a.j,a.s,a.l))}}
249
+ function kh(a,b,c,d,e,f){a=new jc(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function lh(a,b){a=new jc(a,b,"");a.lineBreak=!0;return a}function mh(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function nh(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.s="black";oh(this)}function ph(a,b,c){return jh(new jc(b,c,""),"CC"+(a.C<<1|a.B+1),a.i,b,c)}function oh(a){qh(a,0,15);a.g=1}function rh(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case sh:d=th.has(c)?th.get(c):String.fromCharCode(c);break;case uh:d=vh.get(c);break;case wh:a.i[a.g].pop();d=xh.get(c);break;case yh:a.i[a.g].pop(),d=zh.get(c)}d&&a.i[a.g].push(new mh(d,a.m,a.j,a.s,a.l))}}
250
250
  function Ah(a,b,c,d){if(!(0>c||0>b))if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;e<d;e++)a.i[b+e]=a.i[c+e].map(function(f){return f})}function qh(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
251
251
  var sh=0,uh=1,wh=2,yh=3,th=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"]]),vh=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"]]),xh=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],
252
252
  [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"]]),zh=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
253
253
  [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 Bh(a,b){this.h=Ch;this.s=new nh(a,b);this.i=new nh(a,b);this.l=new nh(a,b);this.g=this.i;this.j=0;this.m=null}function Dh(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==Eh&&a.h!==Fh&&(e=ph(d,a.j,c),c=a.i,c.g=0<c.h?c.h:0,qh(c,0,15),c=a.l,c.g=0<c.h?c.h:0,qh(c,0,15),d.g=15);a.h=Eh;d.h=b;return e}function Gh(a){a.h=Hh;a.g=a.l;a.g.h=0}function Ih(a){Va("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.s;a.h=Fh}
254
254
  var Ch=0,Hh=1,Eh=3,Fh=4,Jh="black green blue cyan red yellow magenta black".split(" "),Kh="white green blue cyan red yellow magenta white_italics".split(" ");function Lh(){this.l=!1;this.F=this.H=0;this.G=Mh;this.i=[];this.g=this.h=this.j=0;this.C=this.s=!1;this.B="white";this.m="black";Nh(this)}function Nh(a){a.i=[];for(var b=0;16>b;b++)a.i.push(Oh())}function Oh(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function Ph(a,b){Qh(a)&&(a.i[a.h][a.g]=new mh(b,a.C,a.s,a.m,a.B),a.g++)}function Qh(a){var b=a.g<a.F&&0<=a.g;return a.h<a.H&&0<=a.h&&b}Lh.prototype.isVisible=function(){return this.l};
255
- function Rh(a,b,c){var d=new kc(a.j,b,"");d.textAlign=a.G===Sh?"left":a.G===Th?"right":oc;if(c=jh(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Sh=0,Th=1,Mh=2;function Uh(){this.i=[];this.h=null;this.g=0}function Vh(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 Wh(a.h)),a.h=null,a.g=0))}function Wh(a){this.g=0;this.h=a}Wh.prototype.wa=function(){return this.g<this.h.length};Wh.prototype.ma=function(){return this.g};function Xh(a){if(!a.wa())throw new M(2,2,3E3);return a.h[a.g++]}Wh.prototype.skip=function(a){if(this.g+a>this.h.length)throw new M(2,2,3E3);this.g+=a};function Yh(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
255
+ function Rh(a,b,c){var d=new jc(a.j,b,"");d.textAlign=a.G===Sh?"left":a.G===Th?"right":oc;if(c=jh(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Sh=0,Th=1,Mh=2;function Uh(){this.i=[];this.h=null;this.g=0}function Vh(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 Wh(a.h)),a.h=null,a.g=0))}function Wh(a){this.g=0;this.h=a}Wh.prototype.xa=function(){return this.g<this.h.length};Wh.prototype.ma=function(){return this.g};function Xh(a){if(!a.xa())throw new M(2,2,3E3);return a.h[a.g++]}Wh.prototype.skip=function(a){if(this.g+a>this.h.length)throw new M(2,2,3E3);this.g+=a};function Yh(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
256
256
  function Zh(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=Xh(b).value;b=null;c=r($h(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Rh(e,d,a.i)),Nh(e);return b}if(137===c)for(b=Xh(b).value,b=r($h(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=Xh(b).value;b=null;c=r($h(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Rh(e,d,a.i)),e.l=!1;return b}if(139===c){c=Xh(b).value;
257
257
  b=null;c=r($h(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=Rh(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=Xh(b).value,ai(a,b,d);if(143===c)return d=ai(a,255,d),bi(a),d;if(144===c)b.skip(1),d=Xh(b).value,a.g&&(a.g.s=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=Xh(b).value,c=Xh(b).value,b.skip(1),a.g&&(b=ci((c&48)>>4,(c&12)>>2,c&3),a.g.B=ci((d&48)>>4,(d&12)>>2,d&3),a.g.m=b);else if(146===c)d=Xh(b).value,b=Xh(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
258
258
  b.skip(1),d=Xh(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 Lh;f.j=d;a.h[c]=f}d=Xh(b).value;Xh(b);Xh(b);f=Xh(b).value;var g=Xh(b).value;b=Xh(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.s=!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 $h(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}
@@ -263,20 +263,21 @@ function ii(a,b){var c=b.type;if(16===(b.Oa&112)){var d=b.Oa>>3&1;0===c?a.m=d:a.
263
263
  a=1===(a&1);if(c.h!==Fh){e=c.g;if(c.h===Eh&&b!==e.g){var g=1+b-e.h;Ah(e,g,1+e.g-e.h,e.h);qh(e,0,g-1);qh(e,b+1,15-b)}e.g=b;c.g.m=a;c.g.j=f;c.g.l=d;c.g.s="black"}}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",rh(c.g,sh,32),d=!1,b=Kh[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=Jh[(a&14)>>1]),c.g.s=b;else if(17===(d&247)&&48===(a&240))rh(c.g,uh,a);else if(18===
264
264
  (d&246)&&32===(a&224))rh(c.g,d&1?yh:wh,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.hb){case 32:Gh(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=Dh(c,2,a);break;case 38:d=Dh(c,3,a);break;case 39:d=Dh(c,4,a);break;case 40:rh(c.g,sh,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.j=a;break;case 42:oh(c.s);Ih(c);break;case 43:Ih(c);break;case 44:b=c.i;d=null;c.h!==Fh&&(d=ph(b,c.j,a));qh(b,0,15);break;case 45:b=c.g;c.h!==Eh?d=null:(d=ph(b,c.j,a),f=b.g-b.h+1,Ah(b,f-1,f,b.h),qh(b,0,
265
265
  f-1),qh(b,b.g,15-b.g),c.j=a);break;case 46:qh(c.l,0,15);break;case 47:b=null,c.h!==Fh&&(b=ph(c.i,c.j,a)),d=c.l,c.l=c.i,c.i=d,Gh(c),c.j=a,d=b}a=d;break a}a=null}else d=b.hb,rh(c.g,sh,b.Oa),rh(c.g,sh,d);return a}
266
- function ji(a,b){var c=[];try{for(;b.wa();){var d=Xh(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Xh(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new Yh(e));for(var g=a.j.get(e),h=b.ma();b.ma()-h<f;){e=b;var k=Xh(e),l=k.value,m=k.pts;if(16===l){var p=Xh(e);l=l<<16|p.value}if(0<=l&&31>=l){var n=m;if(g.g){var t=g.g;e=null;switch(l){case 8:!Qh(t)||0>=t.g&&0>=t.h||(0>=t.g?(t.g=t.F-1,t.h--):t.g--,t.i[t.h][t.g]=null);break;case 13:t.isVisible()&&(e=Rh(t,n,g.i));if(t.h+1>=t.H){n=t;for(var v=0,y=1;16>y;y++,
266
+ function ji(a,b){var c=[];try{for(;b.xa();){var d=Xh(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Xh(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new Yh(e));for(var g=a.j.get(e),h=b.ma();b.ma()-h<f;){e=b;var k=Xh(e),l=k.value,m=k.pts;if(16===l){var p=Xh(e);l=l<<16|p.value}if(0<=l&&31>=l){var n=m;if(g.g){var t=g.g;e=null;switch(l){case 8:!Qh(t)||0>=t.g&&0>=t.h||(0>=t.g?(t.g=t.F-1,t.h--):t.g--,t.i[t.h][t.g]=null);break;case 13:t.isVisible()&&(e=Rh(t,n,g.i));if(t.h+1>=t.H){n=t;for(var v=0,y=1;16>y;y++,
267
267
  v++)n.i[v]=n.i[y];for(y=0;1>y;y++,v++)n.i[v]=Oh()}else t.h++;t.g=0;break;case 14:t.isVisible()&&(e=Rh(t,n,g.i));t.i[t.h]=Oh();t.g=0;break;case 12:t.isVisible()&&(e=Rh(t,n,g.i)),Nh(t),n=t,n.h=0,n.g=0}var w=e}else w=null}else if(128<=l&&159>=l)w=Zh(g,e,l,m);else{if(4096<=l&&4127>=l)n=l&255,8<=n&&15>=n?e.skip(1):16<=n&&23>=n?e.skip(2):24<=n&&31>=n&&e.skip(3);else if(4224<=l&&4255>=l)n=l&255,128<=n&&135>=n?e.skip(4):136<=n&&143>=n&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?Ph(g.g,"\u266a"):Ph(g.g,
268
- String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Ph(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(ei.has(e)){var x=ei.get(e);Ph(g.g,x)}else Ph(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Ph(g.g,"_"):Ph(g.g,"[CC]"));w=null}(e=w)&&c.push(e)}}}}catch(A){if(A instanceof M&&3E3===A.code)Va("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw A;}return c}function ki(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function li(){}li.prototype.init=function(){};li.prototype.parse=function(){return[]};function mi(a,b){var c=null,d=null,e=null,f=a.N();b&1&&(e=a.Cb());b&2&&a.skip(4);b&8&&(c=a.N());b&16&&(d=a.N());return{trackId:f,zf:c,ug:d,pj:e}}function ni(a,b){return{nf:1==b?a.Cb():a.N()}}function oi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.N()}}
269
- function pi(a,b,c){var d=a.N(),e=[],f=null;c&1&&(f=a.N());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Ee:null,sampleSize:null,Ld:null};c&256&&(h.Ee=a.N());c&512&&(h.sampleSize=a.N());c&1024&&a.skip(4);c&2048&&(h.Ld=0==b?a.N():a.Pf());e.push(h)}return{uj:d,Rf:e,sg:f}};function qi(){this.j=new Map;this.i=this.h=0;this.g=ri}
268
+ String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Ph(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(ei.has(e)){var x=ei.get(e);Ph(g.g,x)}else Ph(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Ph(g.g,"_"):Ph(g.g,"[CC]"));w=null}(e=w)&&c.push(e)}}}}catch(A){if(A instanceof M&&3E3===A.code)Va("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw A;}return c}function ki(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function li(){}li.prototype.init=function(){};li.prototype.parse=function(){return[]};function mi(a,b){var c=null,d=null,e=null,f=a.N();b&1&&(e=a.Cb());b&2&&a.skip(4);b&8&&(c=a.N());b&16&&(d=a.N());return{trackId:f,Bf:c,wg:d,rj:e}}function ni(a,b){return{qf:1==b?a.Cb():a.N()}}function oi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.N()}}
269
+ function pi(a,b,c){var d=a.N(),e=[],f=null;c&1&&(f=a.N());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Fe:null,sampleSize:null,Ld:null};c&256&&(h.Fe=a.N());c&512&&(h.sampleSize=a.N());c&1024&&a.skip(4);c&2048&&(h.Ld=0==b?a.N():a.Rf());e.push(h)}return{wj:d,Tf:e,vg:f}};function qi(){this.j=new Map;this.i=this.h=0;this.g=ri}
270
270
  qi.prototype.init=function(a){function b(f){f=f.name;f in si&&(c.g=si[f])}var c=this,d=[],e=[];(new If).box("moov",Nf).box("mvex",Nf).S("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.N();g=g.N();c.h=f;c.i=g}).box("trak",Nf).S("tkhd",function(f){var g=f.reader;1==f.version?(g.skip(8),g.skip(8)):(g.skip(4),g.skip(4));f=g.N();d.push(f)}).box("mdia",Nf).S("mdhd",function(f){f=oi(f.reader,f.version);e.push(f.timescale)}).box("minf",Nf).box("stbl",Nf).S("stsd",Pf).box("avc1",b).box("avc3",b).box("hev1",
271
271
  b).box("hvc1",b).box("dvh1",b).box("dvhe",b).box("encv",Qf).box("sinf",Nf).box("frma",function(f){f=f.reader.N();f=Mf(f);f in si&&(c.g=si[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new M(2,2,2010);this.g==ri&&Ta("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
272
- qi.prototype.parse=function(a){var b=this;if(this.g==ri)return[];var c=[],d=this.h,e=this.i,f=[],g=null,h=null,k=null,l=9E4;(new If).box("moof",function(m){g=m.start;Nf(m)}).box("traf",Nf).S("trun",function(m){m=pi(m.reader,m.version,m.flags);f=m.Rf;h=m.sg}).S("tfhd",function(m){m=mi(m.reader,m.flags);d=m.zf||b.h;e=m.ug||b.i;m=m.trackId;b.j.has(m)&&(l=b.j.get(m))}).S("tfdt",function(m){k=ni(m.reader,m.version).nf}).box("mdat",function(m){if(null===k)throw new M(2,2,2010);a:{var p=m.reader,n=k,t=l,
273
- v=d,y=e,w=f,x=0,A=y;w.length&&(A=w[0].sampleSize||y);for(p.skip((g||0)+(h||0)-m.start-8);p.wa();){m=p.N();var z=p.ob();switch(b.g){case ti:z&=31;z=6==z;break;case ui:z=z>>1&63;z=39==z||40==z;break;default:break a}if(z){z=0;w.length>x&&(z=w[x].Ld||0);z=(n+z)/t;for(var C=[],E,F=p.Bb(m-1),H=E=0;H<F.length;)2==E&&3==F[H]?(E=0,F=[].concat(ia(F)),F.splice(H,1),F=new Uint8Array(F)):0==F[H]?E++:E=0,H++;E=F;for(H=0;H<E.length;){for(F=0;255==E[H];)F+=255,H++;F+=E[H++];for(var J=0;255==E[H];)J+=255,H++;J+=E[H++];
274
- 4==F&&C.push(E.subarray(H,H+J));H+=J}C=r(C);for(E=C.next();!E.done;E=C.next())c.push({ph:E.value,pts:z})}else try{p.skip(m-1)}catch(K){break}A-=m+4;0==A&&(n=w.length>x?n+(w[x].Ee||v):n+v,x++,A=w.length>x?w[x].sampleSize||y:y)}}}).parse(a,!1);return c};var ri=0,ti=1,ui=2,si={avc1:ti,avc3:ti,hev1:ui,hvc1:ui,dvh1:ui,dvhe:ui};function vi(a){this.h=new li;a.includes("video/mp4")&&(this.h=new qi);this.g=new fi}vi.prototype.init=function(a){this.h.init(a)};
275
- function wi(a,b){b=a.h.parse(b);b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Hc(d.ph);if(0<e.length&&(c=a.g,d=d.pts,e=new Ff(e,0),181===e.ob()&&49===e.Be()&&1195456820===e.N()&&3===e.ob())){var f=e.ob();if(0!==(f&64)){f&=31;e.skip(1);for(var g=0;g<f;g++){var h=e.ob(),k=(h&4)>>2,l=e.ob(),m=e.ob();k&&(h&=3,0===h||1===h?c.h.push({pts:d,type:h,Oa:l,hb:m,order:c.h.length}):(c.g.push({pts:d,type:h,value:l,order:c.g.length}),c.g.push({pts:d,type:2,value:m,order:c.g.length})))}}}}return hi(a.g)}
276
- ;function xi(a,b,c,d,e){this.Pa=a;this.Sa=b;this.Ba=c;this.ve=void 0===d?null:d;this.timescale=e}xi.prototype.Jc=function(){return this.Sa};xi.prototype.Fc=function(){return this.Ba};function yi(a,b){return a&&b?a.Jc()==b.Jc()&&a.Fc()==b.Fc()&&ic(a.Pa(),b.Pa()):a==b}I("shaka.media.InitSegmentReference",xi);xi.prototype.getEndByte=xi.prototype.Fc;xi.prototype.getStartByte=xi.prototype.Jc;
277
- function zi(a,b,c,d,e,f,g,h,k,l,m,p,n,t,v){l=void 0===l?[]:l;t=void 0===t?Ai:t;this.startTime=a;this.j=this.endTime=b;this.C=c;this.Sa=d;this.Ba=e;this.h=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.i=l;this.tilesLayout=void 0===m?"":m;this.B=void 0===p?null:p;this.g=void 0===n?null:n;this.status=t;this.l=void 0===v?null:v;this.s=null;this.m=0}q=zi.prototype;q.Pa=function(){return this.C()};q.getStartTime=function(){return this.startTime};q.Gg=function(){return this.endTime};
278
- q.Jc=function(){return this.Sa};q.Fc=function(){return this.Ba};q.Zg=function(){return this.tilesLayout};q.Yg=function(){return this.B};q.ec=function(){return this.status};q.ih=function(){this.status=Bi};q.Yf=function(a){this.s=a};q.Wg=function(){return this.s};I("shaka.media.SegmentReference",zi);zi.prototype.getThumbnailSprite=zi.prototype.Wg;zi.prototype.setThumbnailSprite=zi.prototype.Yf;zi.prototype.markAsUnavailable=zi.prototype.ih;zi.prototype.getStatus=zi.prototype.ec;
279
- zi.prototype.getTileDuration=zi.prototype.Yg;zi.prototype.getTilesLayout=zi.prototype.Zg;zi.prototype.getEndByte=zi.prototype.Fc;zi.prototype.getStartByte=zi.prototype.Jc;zi.prototype.getEndTime=zi.prototype.Gg;zi.prototype.getStartTime=zi.prototype.getStartTime;zi.prototype.getUris=zi.prototype.Pa;var Ai=0,Bi=1;zi.Status={Th:Ai,ij:Bi,xi:2};function Ci(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 Di(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Ei(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)}
272
+ qi.prototype.parse=function(a){var b=this;if(this.g==ri)return[];var c=[],d=this.h,e=this.i,f=[],g=null,h=null,k=null,l=9E4;(new If).box("moof",function(m){g=m.start;Nf(m)}).box("traf",Nf).S("trun",function(m){m=pi(m.reader,m.version,m.flags);f=m.Tf;h=m.vg}).S("tfhd",function(m){m=mi(m.reader,m.flags);d=m.Bf||b.h;e=m.wg||b.i;m=m.trackId;b.j.has(m)&&(l=b.j.get(m))}).S("tfdt",function(m){k=ni(m.reader,m.version).qf}).box("mdat",function(m){if(null===k)throw new M(2,2,2010);a:{var p=m.reader,n=k,t=l,
273
+ v=d,y=e,w=f,x=0,A=y;w.length&&(A=w[0].sampleSize||y);for(p.skip((g||0)+(h||0)-m.start-8);p.xa();){m=p.N();var z=p.ob();switch(b.g){case ti:z&=31;z=6==z;break;case ui:z=z>>1&63;z=39==z||40==z;break;default:break a}if(z){z=0;w.length>x&&(z=w[x].Ld||0);z=(n+z)/t;for(var C=[],E,F=p.Bb(m-1),H=E=0;H<F.length;)2==E&&3==F[H]?(E=0,F=[].concat(ia(F)),F.splice(H,1),F=new Uint8Array(F)):0==F[H]?E++:E=0,H++;E=F;for(H=0;H<E.length;){for(F=0;255==E[H];)F+=255,H++;F+=E[H++];for(var J=0;255==E[H];)J+=255,H++;J+=E[H++];
274
+ 4==F&&C.push(E.subarray(H,H+J));H+=J}C=r(C);for(E=C.next();!E.done;E=C.next())c.push({rh:E.value,pts:z})}else try{p.skip(m-1)}catch(K){break}A-=m+4;0==A&&(n=w.length>x?n+(w[x].Fe||v):n+v,x++,A=w.length>x?w[x].sampleSize||y:y)}}}).parse(a,!1);return c};var ri=0,ti=1,ui=2,si={avc1:ti,avc3:ti,hev1:ui,hvc1:ui,dvh1:ui,dvhe:ui};function vi(a){this.h=new li;a.includes("video/mp4")&&(this.h=new qi);this.g=new fi}vi.prototype.init=function(a){this.h.init(a)};
275
+ function wi(a,b){b=a.h.parse(b);b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Hc(d.rh);if(0<e.length&&(c=a.g,d=d.pts,e=new Ff(e,0),181===e.ob()&&49===e.Ce()&&1195456820===e.N()&&3===e.ob())){var f=e.ob();if(0!==(f&64)){f&=31;e.skip(1);for(var g=0;g<f;g++){var h=e.ob(),k=(h&4)>>2,l=e.ob(),m=e.ob();k&&(h&=3,0===h||1===h?c.h.push({pts:d,type:h,Oa:l,hb:m,order:c.h.length}):(c.g.push({pts:d,type:h,value:l,order:c.g.length}),c.g.push({pts:d,type:2,value:m,order:c.g.length})))}}}}return hi(a.g)}
276
+ ;function xi(a,b,c,d,e){this.Pa=a;this.Ta=b;this.Ba=c;this.ve=void 0===d?null:d;this.timescale=e}xi.prototype.Jc=function(){return this.Ta};xi.prototype.Fc=function(){return this.Ba};function yi(a,b){return a&&b?a.Jc()==b.Jc()&&a.Fc()==b.Fc()&&ic(a.Pa(),b.Pa()):a==b}I("shaka.media.InitSegmentReference",xi);xi.prototype.getEndByte=xi.prototype.Fc;xi.prototype.getStartByte=xi.prototype.Jc;
277
+ function zi(a,b,c,d,e,f,g,h,k,l,m,p,n,t,v){l=void 0===l?[]:l;t=void 0===t?Ai:t;this.startTime=a;this.j=this.endTime=b;this.C=c;this.Ta=d;this.Ba=e;this.h=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.i=l;this.tilesLayout=void 0===m?"":m;this.B=void 0===p?null:p;this.g=void 0===n?null:n;this.status=t;this.l=void 0===v?null:v;this.s=null;this.m=0}q=zi.prototype;q.Pa=function(){return this.C()};q.getStartTime=function(){return this.startTime};q.Ig=function(){return this.endTime};
278
+ q.Jc=function(){return this.Ta};q.Fc=function(){return this.Ba};q.ah=function(){return this.tilesLayout};q.$g=function(){return this.B};q.ec=function(){return this.status};q.kh=function(){this.status=Bi};q.$f=function(a){this.s=a};q.Yg=function(){return this.s};q.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=a;for(var b=r(this.i),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.j+=a};
279
+ q.Ue=function(a){null==this.g?Sa("Sync attempted without sync time!"):(a=this.g-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};I("shaka.media.SegmentReference",zi);zi.prototype.syncAgainst=zi.prototype.Ue;zi.prototype.offset=zi.prototype.offset;zi.prototype.getThumbnailSprite=zi.prototype.Yg;zi.prototype.setThumbnailSprite=zi.prototype.$f;zi.prototype.markAsUnavailable=zi.prototype.kh;zi.prototype.getStatus=zi.prototype.ec;zi.prototype.getTileDuration=zi.prototype.$g;
280
+ zi.prototype.getTilesLayout=zi.prototype.ah;zi.prototype.getEndByte=zi.prototype.Fc;zi.prototype.getStartByte=zi.prototype.Jc;zi.prototype.getEndTime=zi.prototype.Ig;zi.prototype.getStartTime=zi.prototype.getStartTime;zi.prototype.getUris=zi.prototype.Pa;var Ai=0,Bi=1;zi.Status={Vh:Ai,kj:Bi,Ai:2};function Ci(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 Di(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Ei(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)}
280
281
  function Fi(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=r(Gi(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c}function Hi(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Gi(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}
281
282
  function Gi(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};/*
282
283
  @license
@@ -292,113 +293,114 @@ I("shaka.util.Id3Utils",Ii);Ii.getID3Frames=Li;function Mi(){this.s=null;this.B=
292
293
  Mi.prototype.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,Ni(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71===a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h===e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.s=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.s:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,me:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&
293
294
  15)<<8|f[h+11]);h<k;){var l=(f[h+1]&31)<<8|f[h+2];switch(f[h]){case 15:-1===g.audio&&(g.audio=l,g.audioCodec="aac");break;case 21:-1===g.me&&(g.me=l);break;case 27:-1===g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1===g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1===g.video&&(g.video=l,g.videoCodec="hvc")}h+=((f[h+3]&15)<<8|f[h+4])+5}f=g;null==this.l&&(this.l=f.video);null==this.g&&(this.g=f.audio);null==this.j&&(this.j=f.me);d&&!this.B&&(d=!1,e=b-188);this.B=!0;break;case this.l:f=
294
295
  a.subarray(h,e+188);null==this.m&&(h=Oi(f))&&null!=h.pts&&(this.m=h.pts/9E4);this.F.push(f);break;case this.g:f=a.subarray(h,e+188);null==this.h&&(h=Oi(f))&&null!=h.pts&&(this.h=h.pts/9E4);this.C.push(f);break;case this.j:this.i.push(a.subarray(h,e+188));break;default:d=!0}}return this};
295
- function Oi(a){if(1!==(a[0]<<16|a[1]<<8|a[2]))return null;var b={data:new Uint8Array(0),tj:6+(a[4]<<8|a[5]),pts:null,dts:null},c=a[7];c&192&&(b.pts=536870912*(a[9]&14)+4194304*(a[10]&255)+16384*(a[11]&254)+128*(a[12]&255)+(a[13]&254)/2,b.dts=b.pts,c&64&&(b.dts=536870912*(a[14]&14)+4194304*(a[15]&255)+16384*(a[16]&254)+128*(a[17]&255)+(a[18]&254)/2));b.data=a.subarray(9+a[8]);return b}
296
+ function Oi(a){if(1!==(a[0]<<16|a[1]<<8|a[2]))return null;var b={data:new Uint8Array(0),vj:6+(a[4]<<8|a[5]),pts:null,dts:null},c=a[7];c&192&&(b.pts=536870912*(a[9]&14)+4194304*(a[10]&255)+16384*(a[11]&254)+128*(a[12]&255)+(a[13]&254)/2,b.dts=b.pts,c&64&&(b.dts=536870912*(a[14]&14)+4194304*(a[15]&255)+16384*(a[16]&254)+128*(a[17]&255)+(a[18]&254)/2));b.data=a.subarray(9+a[8]);return b}
296
297
  function Pi(a){for(var b=[],c=new Uint8Array(0),d=a.i.length-1;0<=d;d--){c=md(a.i[d],c);var e=Oi(c);e&&(b.unshift({cueTime:e.pts?e.pts/9E4:null,data:e.data,frames:Li(e.data),dts:e.dts,pts:e.pts}),c=new Uint8Array(0))}return b}Mi.prototype.getStartTime=function(){return{audio:this.h,video:this.m}};function Ni(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71===a[c]&&71===a[c+188]&&71===a[c+376])return c;c++}return-1}I("shaka.util.TsParser",Mi);function Qi(a,b,c){this.g=null;this.i=-1;this.j=a;this.h=b;this.l=c;"undefined"===typeof libDPIModule&&Ta("Could not Find LCEVC Library dependencies on this page");"undefined"===typeof LcevcDil?Ta("Could not Find LCEVC Library on this page"):LcevcDil.SupportObject.SupportStatus||Ta(LcevcDil.SupportObject.SupportError);"undefined"!==typeof LcevcDil&&"undefined"!==typeof libDPIModule&&this.h instanceof HTMLCanvasElement&&LcevcDil.SupportObject.SupportStatus&&!this.g&&LcevcDil.SupportObject.webGLSupport(this.h)&&
297
298
  (this.h.classList.remove("shaka-hidden"),this.g=new LcevcDil.LcevcDil(this.j,this.h,this.l))}Qi.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Ri(a,b){var c=Si;switch(b.mimeType){case "video/webm":c=Ti;break;case "video/mp4":c=Ui}a.g&&(a.i=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(c))}I("shaka.lcevc.Dil",Qi);Qi.prototype.release=Qi.prototype.release;var Si=0,Ti=1,Ui=2;function Vi(a,b,c,d){var e=this;this.j=a;this.H=null;this.m=b;this.h={};this.M={};this.P={};this.g=null;this.J=!1;this.V=c||function(){};this.G=d||null;this.i={};this.C=new xf;this.s={};this.B=null;this.K=new Lc;this.l=Wi(this,this.K);this.I=new vf(function(){return Xi(e)});this.O="";this.F=!1;this.X=new Lc}function Wi(a,b){var c=new MediaSource;a.C.Da(c,"sourceopen",function(){URL.revokeObjectURL(a.O);b.resolve()});a.O=Yi(c);a.j.src=a.O;return c}q=Vi.prototype;q.destroy=function(){return this.I.destroy()};
298
299
  function Xi(a){var b,c,d,e,f,g,h,k;return G(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=r(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new M(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.m&&b.push(a.m.destroy());for(k in a.s)b.push(a.s[k].destroy());return u(l,Promise.all(b),2)}a.C&&(a.C.release(),a.C=null);a.j&&(a.j.removeAttribute("src"),a.j.load(),a.j=null);a.H=null;a.l=null;a.g=null;a.m=null;a.h={};a.s={};a.B=null;
299
300
  a.i={};a.G=null;B(l)})}
300
- q.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,p;return G(function(n){if(1==n.g)return e=Jb,u(n,d.K,2);d.F=c;f={};g=r(a.keys());for(h=g.next();!h.done;f={Ea:f.Ea},h=g.next())f.Ea=h.value,k=a.get(f.Ea),l=xd(k.mimeType,k.codecs),f.Ea==e.ka?Zi(d,l,c):(!b&&dc(l)||!rd(l,f.Ea)||(d.s[f.Ea]=new qd(l),l=ud(f.Ea,l)),m=l+d.H.sourceBufferExtraFeatures,p=d.l.addSourceBuffer(m),d.C.o(p,"error",function(t){return function(){d.i[t.Ea][0].p.reject(new M(2,3,3014,d.j.error?d.j.error.code:0))}}(f)),
301
+ q.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,p;return G(function(n){if(1==n.g)return e=Jb,u(n,d.K,2);d.F=c;f={};g=r(a.keys());for(h=g.next();!h.done;f={Ea:f.Ea},h=g.next())f.Ea=h.value,k=a.get(f.Ea),l=xd(k.mimeType,k.codecs),f.Ea==e.ha?Zi(d,l,c):(!b&&dc(l)||!rd(l,f.Ea)||(d.s[f.Ea]=new qd(l),l=ud(f.Ea,l)),m=l+d.H.sourceBufferExtraFeatures,p=d.l.addSourceBuffer(m),d.C.o(p,"error",function(t){return function(){d.i[t.Ea][0].p.reject(new M(2,3,3014,d.j.error?d.j.error.code:0))}}(f)),
301
302
  d.C.o(p,"updateend",function(t){return function(){return $i(d,t.Ea)}}(f)),d.h[f.Ea]=p,d.M[f.Ea]=l,d.i[f.Ea]=[],d.P[f.Ea]=!!k.drmInfos.length);B(n)})};q.configure=function(a){this.H=a};function Zi(a,b,c){a.g||(a.g=new Cd(a.m));var d=a.g;a=a.J;"application/cea-608"!=b&&"application/cea-708"!=b&&(d.j=(0,Ed[b])(),d.j.setSequenceMode?d.j.setSequenceMode(c):Ta('Text parsers should have a "setSequenceMode" method!'),d.C=a)}function aj(a){return a.l?"ended"==a.l.readyState:!0}
302
303
  function bj(a,b){return b==Ib?a.g.g:Ci(cj(a,b))}function dj(a,b){return b==Ib?a.g.h:Di(cj(a,b))}function ej(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=cj(a,b);return Fi(a,c)}q.ib=function(){var a={total:Gi(this.j.buffered),audio:Gi(cj(this,"audio")),video:Gi(cj(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 cj(a,b){try{return a.h[b].buffered}catch(c){return null}}
303
- function fj(a,b,c,d,e,f,g){f=void 0===f?!1:f;g=void 0===g?!1:g;var h,k,l,m,p,n,t,v,y,w,x,A,z,C,E,F,H,J,K,N,V,U;return G(function(P){switch(P.g){case 1:h=Jb;if(b!=h.ka){P.D(2);break}if(!a.F){P.D(3);break}return u(P,a.X,4);case 4:k=P.h,a.g.B=k;case 3:return u(P,Fd(a.g,c,d?d.startTime:null,d?d.endTime:null),5);case 5:return P.return();case 2:l=Hc(c);m=a.M[b];a.s[b]&&(m=a.s[b].s);0>Ni(l)?gj.includes(m)&&(v=Li(l),v.length&&d&&(y={cueTime:d.startTime,data:l,frames:v,dts:d.startTime,pts:d.startTime},a.V([y],
304
- 0,d.endTime))):(p=(new Mi).parse(l),n=d.startTime-(p.getStartTime()[b]||0),t=Pi(p),t.length&&a.V(t,n,d?d.endTime:null));if(!a.s[b]){e&&b==h.Ma&&(a.g||Zi(a,"text/vtt",a.F),a.B||(a.B=new vi(m)),d?(w=wi(a.B,c),w.length&&(x=a.h[h.Ma].timestampOffset,Kd(a.g,w,d.startTime,d.endTime,x))):a.B.init(c));P.D(6);break}f&&a.s[b].g.resetCaptions();return u(P,vd(a.s[b],c),7);case 7:A=P.h,a.g||Zi(a,"text/vtt",a.F),A.captions&&A.captions.length&&(z=a.h[h.Ma].timestampOffset,C=Id(A.captions),Kd(a.g,C,d?d.startTime:
305
- null,d?d.endTime:null,z)),c=A.data;case 6:c=hj(a,c,d?d.startTime:null,b);E=a.h[b];F=ij;if(!a.F||E.mode==F||!d){P.D(8);break}H=b==h.Ma||!(h.Ma in a.h);if(!H){P.D(9);break}J=[E.appendWindowStart,E.appendWindowEnd];E.appendWindowStart=0;E.appendWindowEnd=Infinity;K=E.timestampOffset;E.timestampOffset=0;return u(P,jj(a,b,function(){return kj(a,b,c)}),10);case 10:return u(P,jj(a,b,function(){return lj(a,b)}),11);case 11:return E.timestampOffset=K,E.appendWindowStart=J[0],E.appendWindowEnd=J[1],N=Ci(cj(a,
306
- b)),V=(d.startTime||0)-(N||0),a.X.resolve(V),u(P,jj(a,b,function(){return mj(a,b,0,a.l.duration)}),12);case 12:if(b!=h.Ma){P.D(9);break}return u(P,jj(a,b,function(){a.j.currentTime-=.001;$i(a,b)}),9);case 9:E.mode=F;case 8:return d&&a.F&&b!=h.ka&&(f||g)&&(U=d.startTime,jj(a,b,function(){return lj(a,b)}),jj(a,b,function(){return nj(a,b,U)})),u(P,jj(a,b,function(){kj(a,b,c)}),15);case 15:B(P)}})}function oj(a,b){var c=dj(a,"video")||0;Hd(a.g,b,c)}function pj(a){a.g&&Hd(a.g,"",0)}
307
- q.remove=function(a,b,c){var d=this,e;return G(function(f){e=Jb;return a==e.ka?u(f,d.g.remove(b,c),0):u(f,jj(d,a,function(){return mj(d,a,b,c)}),0)})};function qj(a,b){var c;return G(function(d){c=Jb;return b==c.ka?a.g?u(d,a.g.remove(0,Infinity),0):d.return():u(d,jj(a,b,function(){return mj(a,b,0,a.l.duration)}),0)})}q.flush=function(a){var b=this,c;return G(function(d){c=Jb;return a==c.ka?d.return():u(d,jj(b,a,function(){b.j.currentTime-=.001;$i(b,a)}),0)})};
308
- function rj(a,b,c,d,e,f){var g;return G(function(h){g=Jb;return b==g.ka?(f||(a.g.B=c),Gd(a.g,d,e),h.return()):u(h,Promise.all([jj(a,b,function(){return lj(a,b)}),f?Promise.resolve():jj(a,b,function(){return nj(a,b,c)}),jj(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;$i(a,b)})]),0)})}function sj(a,b,c){return G(function(d){return u(d,jj(a,b,function(){return nj(a,b,c)}),0)})}
309
- q.endOfStream=function(a){var b=this;return G(function(c){return u(c,tj(b,function(){aj(b)||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};q.ab=function(a){var b=this;return G(function(c){return u(c,tj(b,function(){if(a<b.l.duration)for(var d in b.h){var e={start:function(){},p:new Lc};b.i[d].unshift(e)}b.l.duration=a}),0)})};q.getDuration=function(){return this.l.duration};function kj(a,b,c){if("video"==b&&a.G){var d=a.G;d.g&&d.g.appendBuffer(c,"video",d.i)}a.h[b].appendBuffer(c)}
310
- function mj(a,b,c,d){d<=c?$i(a,b):a.h[b].remove(c,d)}function lj(a,b){var c=a.h[b].appendWindowStart,d=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=c;a.h[b].appendWindowEnd=d;$i(a,b)}function nj(a,b,c){0>c&&(c+=.001);a.h[b].timestampOffset=c;$i(a,b)}function $i(a,b){var c=a.i[b][0];c&&(c.p.resolve(),uj(a,b))}function jj(a,b,c){wf(a.I);c={start:c,p:new Lc};a.i[b].push(c);1==a.i[b].length&&vj(a,b);return c.p}
304
+ function fj(a,b,c,d,e,f,g){f=void 0===f?!1:f;g=void 0===g?!1:g;var h,k,l,m,p,n,t,v,y,w,x,A,z,C,E,F,H,J,K,N,V,U,ba;return G(function(Q){switch(Q.g){case 1:h=Jb;if(b!=h.ha){Q.D(2);break}if(!a.F){Q.D(3);break}return u(Q,a.X,4);case 4:k=Q.h,a.g.B=k;case 3:return u(Q,Fd(a.g,c,d?d.startTime:null,d?d.endTime:null),5);case 5:return Q.return();case 2:l=Hc(c);m=a.M[b];a.s[b]&&(m=a.s[b].s);0>Ni(l)?gj.includes(m)&&(v=Li(l),v.length&&d&&(y={cueTime:d.startTime,data:l,frames:v,dts:d.startTime,pts:d.startTime},
305
+ a.V([y],0,d.endTime))):(p=(new Mi).parse(l),n=d.startTime-(p.getStartTime()[b]||0),t=Pi(p),t.length&&a.V(t,n,d?d.endTime:null));if(!a.s[b]){e&&b==h.Ma&&(a.g||Zi(a,"text/vtt",a.F),a.B||(a.B=new vi(m)),d?(w=wi(a.B,c),w.length&&(x=a.h[h.Ma].timestampOffset,Kd(a.g,w,d.startTime,d.endTime,x))):a.B.init(c));Q.D(6);break}f&&a.s[b].g.resetCaptions();return u(Q,vd(a.s[b],c),7);case 7:A=Q.h,a.g||Zi(a,"text/vtt",a.F),A.captions&&A.captions.length&&(z=a.h[h.Ma].timestampOffset,C=Id(A.captions),Kd(a.g,C,d?d.startTime:
306
+ null,d?d.endTime:null,z)),c=A.data;case 6:c=hj(a,c,d?d.startTime:null,b);E=a.h[b];F=ij;if(!a.F||E.mode==F||!d){Q.D(8);break}H=a.l.duration;J=b==h.Ma||!(h.Ma in a.h);if(!J){Q.D(9);break}K=[E.appendWindowStart,E.appendWindowEnd];E.appendWindowStart=0;E.appendWindowEnd=Infinity;N=E.timestampOffset;E.timestampOffset=0;return u(Q,jj(a,b,function(){return kj(a,b,c)}),10);case 10:return u(Q,jj(a,b,function(){return lj(a,b)}),11);case 11:return E.timestampOffset=N,E.appendWindowStart=K[0],E.appendWindowEnd=
307
+ K[1],V=Ci(cj(a,b)),U=(d.startTime||0)-(V||0),a.X.resolve(U),u(Q,jj(a,b,function(){return mj(a,b,0,H)}),12);case 12:if(b!=h.Ma){Q.D(9);break}return u(Q,jj(a,b,function(){a.j.currentTime-=.001;$i(a,b)}),9);case 9:return E.mode=F,u(Q,a.Sa(H),8);case 8:return d&&a.F&&b!=h.ha&&(f||g)&&(ba=d.startTime,jj(a,b,function(){return lj(a,b)}),jj(a,b,function(){return nj(a,b,ba)})),u(Q,jj(a,b,function(){kj(a,b,c)}),16);case 16:B(Q)}})}function oj(a,b){var c=dj(a,"video")||0;Hd(a.g,b,c)}
308
+ function pj(a){a.g&&Hd(a.g,"",0)}q.remove=function(a,b,c){var d=this,e;return G(function(f){e=Jb;return a==e.ha?u(f,d.g.remove(b,c),0):u(f,jj(d,a,function(){return mj(d,a,b,c)}),0)})};function qj(a,b){var c;return G(function(d){c=Jb;return b==c.ha?a.g?u(d,a.g.remove(0,Infinity),0):d.return():u(d,jj(a,b,function(){return mj(a,b,0,a.l.duration)}),0)})}q.flush=function(a){var b=this,c;return G(function(d){c=Jb;return a==c.ha?d.return():u(d,jj(b,a,function(){b.j.currentTime-=.001;$i(b,a)}),0)})};
309
+ function rj(a,b,c,d,e,f){var g;return G(function(h){g=Jb;return b==g.ha?(f||(a.g.B=c),Gd(a.g,d,e),h.return()):u(h,Promise.all([jj(a,b,function(){return lj(a,b)}),f?Promise.resolve():jj(a,b,function(){return nj(a,b,c)}),jj(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;$i(a,b)})]),0)})}
310
+ function sj(a,b,c){var d;return G(function(e){d=Jb;if(b==d.ha)return e.return();jj(a,b,function(){return lj(a,b)});return u(e,jj(a,b,function(){return nj(a,b,c)}),0)})}q.endOfStream=function(a){var b=this;return G(function(c){return u(c,tj(b,function(){aj(b)||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};q.Sa=function(a){var b=this;return G(function(c){return u(c,tj(b,function(){if(a<b.l.duration)for(var d in b.h){var e={start:function(){},p:new Lc};b.i[d].unshift(e)}b.l.duration=a}),0)})};
311
+ q.getDuration=function(){return this.l.duration};function kj(a,b,c){if("video"==b&&a.G){var d=a.G;d.g&&d.g.appendBuffer(c,"video",d.i)}a.h[b].appendBuffer(c)}function mj(a,b,c,d){d<=c?$i(a,b):a.h[b].remove(c,d)}function lj(a,b){var c=a.h[b].appendWindowStart,d=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=c;a.h[b].appendWindowEnd=d;$i(a,b)}function nj(a,b,c){0>c&&(c+=.001);a.h[b].timestampOffset=c;$i(a,b)}function $i(a,b){var c=a.i[b][0];c&&(c.p.resolve(),uj(a,b))}
312
+ function jj(a,b,c){wf(a.I);c={start:c,p:new Lc};a.i[b].push(c);1==a.i[b].length&&vj(a,b);return c.p}
311
313
  function tj(a,b){var c,d,e,f,g,h;return G(function(k){switch(k.g){case 1:wf(a.I);c=[];d={};for(e in a.h)d.yc=new Lc,f={start:function(l){return function(){return l.yc.resolve()}}(d),p:d.yc},a.i[e].push(f),c.push(d.yc),1==a.i[e].length&&f.start(),d={yc:d.yc};D(k,2);return u(k,Promise.all(c),4);case 4:ua(k,3);break;case 2:throw g=va(k),g;case 3:try{b()}catch(l){throw new M(2,3,3015,l);}finally{for(h in a.h)uj(a,h)}B(k)}})}function uj(a,b){a.i[b].shift();vj(a,b)}
312
- function vj(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new M(2,3,3017,b)):c.p.reject(new M(2,3,3015,d)),uj(a,b)}}function hj(a,b,c,d){var e=a.P[d];null==c&&e&&(Tc()||Rc())&&"mp4"==a.M[d].split(";")[0].split("/")[1]&&(b=fh(b));return b}var Yi=window.URL.createObjectURL,ij="sequence",gj=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function Q(a,b,c){this.i=a;this.m=b;this.s=this.j=Infinity;this.g=1;this.h=this.l=null;this.B=0;this.C=!0;this.F=0;this.G=void 0===c?!0:c;this.H=0;this.I=!1}q=Q.prototype;q.getDuration=function(){return this.j};q.Og=function(){return this.g};q.Xf=function(a){this.i=a};q.ab=function(a){this.j=a};q.Sg=function(){return this.i};q.Tf=function(a){this.B=a};q.Zc=function(a){this.C=a};q.Pe=function(a){this.s=a};q.Uf=function(a){this.m=a};q.Fg=function(){return this.m};
313
- q.lc=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime;a=r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b=Math.min(b,d.startTime),c=Math.max(c,d.endTime),this.g=Math.max(this.g,d.endTime-d.startTime);this.ye(b);this.h=Math.max(this.h,c);null!=this.i&&this.G&&!this.I&&(this.i=(Date.now()+this.B)/1E3-this.h-this.g)}};q.ue=function(){this.I=!0};q.ye=function(a){this.l=null==this.l?a:Math.min(this.l,a)};q.xe=function(a){this.g=Math.max(this.g,a)};
314
- q.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};q.T=function(){return Infinity==this.j&&!this.C};q.Lb=function(){return Infinity!=this.j&&!this.C};q.kb=function(){return Math.max(this.F,this.Ib()-this.s)};q.Zf=function(a){this.F=a};q.Ib=function(){return this.T()||this.Lb()?Math.min(Math.max(0,(Date.now()+this.B)/1E3-this.g-this.i)+this.H,this.j):this.h?Math.min(this.h,this.j):this.j};
315
- q.Ic=function(a){var b=Math.max(this.l,this.F);return Infinity==this.s?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Ib()-this.s+a,this.jb()))};q.dc=function(){return this.Ic(0)};q.jb=function(){return Math.max(0,this.Ib()-(this.T()||this.Lb()?this.m:0))};q.dg=function(){return null==this.i||null!=this.h&&this.G?!1:!0};q.Sf=function(a){this.H=a};I("shaka.media.PresentationTimeline",Q);Q.prototype.setAvailabilityTimeOffset=Q.prototype.Sf;Q.prototype.usingPresentationStartTime=Q.prototype.dg;
316
- Q.prototype.getSeekRangeEnd=Q.prototype.jb;Q.prototype.getSeekRangeStart=Q.prototype.dc;Q.prototype.getSafeSeekRangeStart=Q.prototype.Ic;Q.prototype.getSegmentAvailabilityEnd=Q.prototype.Ib;Q.prototype.setUserSeekStart=Q.prototype.Zf;Q.prototype.getSegmentAvailabilityStart=Q.prototype.kb;Q.prototype.isInProgress=Q.prototype.Lb;Q.prototype.isLive=Q.prototype.T;Q.prototype.offset=Q.prototype.offset;Q.prototype.notifyMaxSegmentDuration=Q.prototype.xe;Q.prototype.notifyMinSegmentStartTime=Q.prototype.ye;
317
- Q.prototype.lockStartTime=Q.prototype.ue;Q.prototype.notifySegments=Q.prototype.lc;Q.prototype.getDelay=Q.prototype.Fg;Q.prototype.setDelay=Q.prototype.Uf;Q.prototype.setSegmentAvailabilityDuration=Q.prototype.Pe;Q.prototype.setStatic=Q.prototype.Zc;Q.prototype.setClockOffset=Q.prototype.Tf;Q.prototype.getPresentationStartTime=Q.prototype.Sg;Q.prototype.setDuration=Q.prototype.ab;Q.prototype.setPresentationStartTime=Q.prototype.Xf;Q.prototype.getMaxSegmentDuration=Q.prototype.Og;
318
- Q.prototype.getDuration=Q.prototype.getDuration;function wj(a,b,c){this.l=c;this.j=a;this.B=xj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.s=0;this.C=b;this.i=function(){}}wj.prototype.release=function(){this.l=this.j=null;this.i=function(){}};function yj(a,b){a.i=b}function zj(a){this.g=a}function xj(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=r(Gi(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 Aj(a,b,c,d,e){var f=this;this.s=e;this.g=a;this.B=b;this.G=c;this.i=new xf;this.m=!1;this.F=a.readyState;this.C=0;this.h=d;this.l=!1;this.i.o(a,"waiting",function(){return Bj(f)});this.j=(new O(function(){Bj(f)})).ea(.25)}Aj.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.s=null};Aj.prototype.Ae=function(){this.l=!0;Bj(this)};
314
+ function vj(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new M(2,3,3017,b)):c.p.reject(new M(2,3,3015,d)),uj(a,b)}}function hj(a,b,c,d){var e=a.P[d];null==c&&e&&(Tc()||Rc())&&"mp4"==a.M[d].split(";")[0].split("/")[1]&&(b=fh(b));return b}var Yi=window.URL.createObjectURL,ij="sequence",gj=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function P(a,b,c){this.i=a;this.m=b;this.s=this.j=Infinity;this.g=1;this.h=this.l=null;this.B=0;this.C=!0;this.F=0;this.G=void 0===c?!0:c;this.H=0;this.I=!1}q=P.prototype;q.getDuration=function(){return this.j};q.Qg=function(){return this.g};q.Zf=function(a){this.i=a};q.Sa=function(a){this.j=a};q.Ug=function(){return this.i};q.Vf=function(a){this.B=a};q.$c=function(a){this.C=a};q.Qe=function(a){this.s=a};q.Wf=function(a){this.m=a};q.Hg=function(){return this.m};
315
+ q.lc=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime;a=r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b=Math.min(b,d.startTime),c=Math.max(c,d.endTime),this.g=Math.max(this.g,d.endTime-d.startTime);this.ze(b);this.h=Math.max(this.h,c);null!=this.i&&this.G&&!this.I&&(this.i=(Date.now()+this.B)/1E3-this.h-this.g)}};q.ue=function(){this.I=!0};q.ze=function(a){this.l=null==this.l?a:Math.min(this.l,a)};q.ye=function(a){this.g=Math.max(this.g,a)};
316
+ q.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};q.T=function(){return Infinity==this.j&&!this.C};q.Lb=function(){return Infinity!=this.j&&!this.C};q.kb=function(){return Math.max(this.F,this.Ib()-this.s)};q.ag=function(a){this.F=a};q.Ib=function(){return this.T()||this.Lb()?Math.min(Math.max(0,(Date.now()+this.B)/1E3-this.g-this.i)+this.H,this.j):this.h?Math.min(this.h,this.j):this.j};
317
+ q.Ic=function(a){var b=Math.max(this.l,this.F);return Infinity==this.s?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Ib()-this.s+a,this.jb()))};q.dc=function(){return this.Ic(0)};q.jb=function(){return Math.max(0,this.Ib()-(this.T()||this.Lb()?this.m:0))};q.fg=function(){return null==this.i||null!=this.h&&this.G?!1:!0};q.Uf=function(a){this.H=a};I("shaka.media.PresentationTimeline",P);P.prototype.setAvailabilityTimeOffset=P.prototype.Uf;P.prototype.usingPresentationStartTime=P.prototype.fg;
318
+ P.prototype.getSeekRangeEnd=P.prototype.jb;P.prototype.getSeekRangeStart=P.prototype.dc;P.prototype.getSafeSeekRangeStart=P.prototype.Ic;P.prototype.getSegmentAvailabilityEnd=P.prototype.Ib;P.prototype.setUserSeekStart=P.prototype.ag;P.prototype.getSegmentAvailabilityStart=P.prototype.kb;P.prototype.isInProgress=P.prototype.Lb;P.prototype.isLive=P.prototype.T;P.prototype.offset=P.prototype.offset;P.prototype.notifyMaxSegmentDuration=P.prototype.ye;P.prototype.notifyMinSegmentStartTime=P.prototype.ze;
319
+ P.prototype.lockStartTime=P.prototype.ue;P.prototype.notifySegments=P.prototype.lc;P.prototype.getDelay=P.prototype.Hg;P.prototype.setDelay=P.prototype.Wf;P.prototype.setSegmentAvailabilityDuration=P.prototype.Qe;P.prototype.setStatic=P.prototype.$c;P.prototype.setClockOffset=P.prototype.Vf;P.prototype.getPresentationStartTime=P.prototype.Ug;P.prototype.setDuration=P.prototype.Sa;P.prototype.setPresentationStartTime=P.prototype.Zf;P.prototype.getMaxSegmentDuration=P.prototype.Qg;
320
+ P.prototype.getDuration=P.prototype.getDuration;function wj(a,b,c){this.l=c;this.j=a;this.B=xj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.s=0;this.C=b;this.i=function(){}}wj.prototype.release=function(){this.l=this.j=null;this.i=function(){}};function yj(a,b){a.i=b}function zj(a){this.g=a}function xj(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=r(Gi(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 Aj(a,b,c,d,e){var f=this;this.s=e;this.g=a;this.B=b;this.G=c;this.i=new xf;this.m=!1;this.F=a.readyState;this.C=0;this.h=d;this.l=!1;this.i.o(a,"waiting",function(){return Bj(f)});this.j=(new O(function(){Bj(f)})).ea(.25)}Aj.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.s=null};Aj.prototype.Be=function(){this.l=!0;Bj(this)};
319
321
  function Bj(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=xj(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.s++,b.l(new L("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Hi(c,b,a.G.gapDetectionThreshold),null==
320
322
  d||0==d&&!a.l||(e=c.start(d),e>=a.B.jb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,a.C++,a.s(new L("gapjumped")))))}}};function Cj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Dj.value().get(b),c.Da(a,b,d))}var Dj=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 Ej(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.m=!1;this.h=new xf;this.i=new Fj(a);Cj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Gj(d,d.j)})}Ej.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 Hj(a){return a.m?a.g.currentTime:a.j}function Ij(a,b){0<a.g.readyState?Jj(a.i,b):Cj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Gj(a,a.j)})}
321
323
  function Gj(a,b){.001>Math.abs(a.g.currentTime-b)?Kj(a):(a.h.Da(a.g,"seeking",function(){Kj(a)}),Jj(a.i,0==a.g.currentTime?b:a.g.currentTime))}function Kj(a){a.m=!0;a.h.o(a.g,"seeking",function(){return a.l()})}function Fj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new O(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Fj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
322
- function Jj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ea(.1)};function Lj(a){this.g=a;this.j=!1;this.h=null;this.i=new xf}q=Lj.prototype;q.ge=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.Da(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;Cj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};q.ie=function(a){this.h=this.j?this.h:a};q.jd=function(){return(this.j?this.g.currentTime:this.h)||0};q.kf=function(){return 0};
323
- q.jf=function(){return 0};q.Nf=function(){};
324
+ function Jj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ea(.1)};function Lj(a){this.g=a;this.j=!1;this.h=null;this.i=new xf}q=Lj.prototype;q.ge=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.Da(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;Cj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};q.ie=function(a){this.h=this.j?this.h:a};q.kd=function(){return(this.j?this.g.currentTime:this.h)||0};q.mf=function(){return 0};
325
+ q.lf=function(){return 0};q.Pf=function(){};
324
326
  function Mj(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.C=e;this.B=null;this.s=Nj(a,c,f);this.j=new Aj(a,b.presentationTimeline,c,this.s,f);this.h=new Ej(a,function(){a:{var h=g.j;h.m=!0;h.l=!1;var k=Hj(g.h);h=Oj(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.B||g.B<k-1)){g.B=k;Ij(g.h,h);h=void 0;break a}g.C();h=void 0}return h},Pj(this,d));this.m=new O(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Hj(g.h),k=g.g.dc(),l=g.g.jb();3>
325
- l-k&&(k=l-3);h<k&&(h=Oj(g,h),g.i.currentTime=h)}})}q=Mj.prototype;q.ge=function(){this.m.ea(.25)};q.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.C=function(){}};q.ie=function(a){Ij(this.h,a)};q.jd=function(){var a=Hj(this.h);return 0<this.i.readyState&&!this.i.paused?Qj(this,a):a};q.kf=function(){return this.s?this.s.s:0};q.jf=function(){return this.j.C};
326
- function Pj(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.dc():a.g.jb():0>b&&(b=a.g.jb()+b);return Rj(a,Qj(a,b))}q.Nf=function(){this.j.Ae()};function Rj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function Oj(a,b){var c=Math.max(a.F,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.dc(),f=a.g.jb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Ic(c),k=a.g.Ic(d);c=a.g.Ic(c+d);return b>=g?Rj(a,b):b>f?f:b<e?Ei(a.i.buffered,k)?k:c:b>=h||Ei(a.i.buffered,b)?b:c}
327
- function Qj(a,b){var c=a.g.dc();if(b<c)return c;a=a.g.jb();return b>a?a:b}function Nj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new wj(new zj(a),b.stallThreshold,c);yj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Sj(a){this.g=a;this.h=null;this.i=0;this.j=!1}q=Sj.prototype;q.release=function(){this.j||(this.g=[],this.h&&this.h.stop(),this.h=null)};q.jh=function(){this.j=!0};function Tj(a,b){a=r(a.g);for(var c=a.next();!c.done;c=a.next())b(c.value)}q.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.i}return this.g.length&&a<this.g[0].startTime?this.i:null};
328
- q.get=function(a){if(0==this.g.length)return null;a-=this.i;return 0>a||a>=this.g.length?null:this.g[a]};q.offset=function(a){if(!this.j)for(var b=r(this.g),c=b.next();!c.done;c=b.next()){c=c.value;c.startTime+=a;c.endTime+=a;c.j+=a;c=r(c.i);for(var d=c.next();!d.done;d=c.next())d=d.value,d.startTime+=a,d.endTime+=a,d.j+=a}};q.Rc=function(a){!this.j&&a.length&&(this.g=this.g.filter(function(b){return b.startTime<a[0].startTime}),this.g.push.apply(this.g,ia(a)))};
329
- q.kc=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Rc(a);this.Gb(b)};q.Gb=function(a){if(!this.j){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.i+=b-this.g.length}};
330
- q.wb=function(a,b,c){c=void 0===c?!1:c;if(!this.j){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],this.g[this.g.length-1]=new zi(a.startTime,b,a.C,a.Sa,a.Ba,a.h,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.i,a.tilesLayout,a.B,a.g,a.status,a.l))}};
327
+ l-k&&(k=l-3);h<k&&(h=Oj(g,h),g.i.currentTime=h)}})}q=Mj.prototype;q.ge=function(){this.m.ea(.25)};q.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.C=function(){}};q.ie=function(a){Ij(this.h,a)};q.kd=function(){var a=Hj(this.h);return 0<this.i.readyState&&!this.i.paused?Qj(this,a):a};q.mf=function(){return this.s?this.s.s:0};q.lf=function(){return this.j.C};
328
+ function Pj(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.dc():a.g.jb():0>b&&(b=a.g.jb()+b);return Rj(a,Qj(a,b))}q.Pf=function(){this.j.Be()};function Rj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function Oj(a,b){var c=Math.max(a.F,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.dc(),f=a.g.jb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Ic(c),k=a.g.Ic(d);c=a.g.Ic(c+d);return b>=g?Rj(a,b):b>f?f:b<e?Ei(a.i.buffered,k)?k:c:b>=h||Ei(a.i.buffered,b)?b:c}
329
+ function Qj(a,b){var c=a.g.dc();if(b<c)return c;a=a.g.jb();return b>a?a:b}function Nj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new wj(new zj(a),b.stallThreshold,c);yj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Sj(a){this.g=a;this.h=null;this.i=0;this.j=!1}q=Sj.prototype;q.release=function(){this.j||(this.g=[],this.h&&this.h.stop(),this.h=null)};q.lh=function(){this.j=!0};function Tj(a,b){a=r(a.g);for(var c=a.next();!c.done;c=a.next())b(c.value)}q.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.i}return this.g.length&&a<this.g[0].startTime?this.i:null};
330
+ q.get=function(a){if(0==this.g.length)return null;a-=this.i;return 0>a||a>=this.g.length?null:this.g[a]};q.offset=function(a){if(!this.j)for(var b=r(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};q.Sc=function(a){if(!this.j&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,ia(a))}};
331
+ q.kc=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Sc(a);this.Gb(b)};q.Gb=function(a){if(!this.j){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.i+=b-this.g.length}};
332
+ q.wb=function(a,b,c){c=void 0===c?!1:c;if(!this.j){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],this.g[this.g.length-1]=new zi(a.startTime,b,a.C,a.Ta,a.Ba,a.h,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.i,a.tilesLayout,a.B,a.g,a.status,a.l))}};
331
333
  q.Nd=function(a,b){var c=this;this.j||(this.h&&this.h.stop(),this.h=new O(function(){var d=b();d?c.g.push.apply(c.g,ia(d)):(c.h.stop(),c.h=null)}),this.h.ea(a))};Sj.prototype[Symbol.iterator]=function(){return this.bc(0)};Sj.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.i.length)for(var e=c.i.length-1;0<=e;--e){var f=c.i[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new Uj(this,b,d)};
332
- function Vj(a,b,c){return new Sj([new zi(a,a+b,function(){return c},0,null,null,a,a,a+b)])}I("shaka.media.SegmentIndex",Sj);Sj.forSingleSegment=Vj;Sj.prototype.getIteratorForTime=Sj.prototype.bc;Sj.prototype.updateEvery=Sj.prototype.Nd;Sj.prototype.fit=Sj.prototype.wb;Sj.prototype.evict=Sj.prototype.Gb;Sj.prototype.mergeAndEvict=Sj.prototype.kc;Sj.prototype.offset=Sj.prototype.offset;Sj.prototype.get=Sj.prototype.get;Sj.prototype.find=Sj.prototype.find;Sj.prototype.markImmutable=Sj.prototype.jh;
333
- Sj.prototype.release=Sj.prototype.release;function Uj(a,b,c){this.i=a;this.g=b;this.h=c}Uj.prototype.rg=function(){return this.g};Uj.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.i.length&&a.Pa().length&&this.h>=a.i.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.i.length?a.i[this.h]:a};
334
- Uj.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.i.length?(this.h++,a.Pa().length&&this.h==a.i.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};I("shaka.media.SegmentIterator",Uj);Uj.prototype.next=Uj.prototype.next;Uj.prototype.current=Uj.prototype.current;Uj.prototype.currentPosition=Uj.prototype.rg;function Wj(){Sj.call(this,[]);this.l=[]}pa(Wj,Sj);q=Wj.prototype;q.clone=function(){var a=new Wj;a.l=this.l.slice();return a};
335
- q.release=function(){for(var a=r(this.l),b=a.next();!b.done;b=a.next())b.value.release();this.l=[]};q.find=function(a){for(var b=0,c=r(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.i+d.g.length}return null};q.get=function(a){for(var b=0,c=r(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.i+d.g.length}return null};q.offset=function(){};q.Rc=function(){};q.Gb=function(){};q.kc=function(){};q.wb=function(){};q.Nd=function(){};
336
- I("shaka.media.MetaSegmentIndex",Wj);Wj.prototype.updateEvery=Wj.prototype.Nd;Wj.prototype.fit=Wj.prototype.wb;Wj.prototype.mergeAndEvict=Wj.prototype.kc;Wj.prototype.evict=Wj.prototype.Gb;Wj.prototype.merge=Wj.prototype.Rc;Wj.prototype.offset=Wj.prototype.offset;Wj.prototype.get=Wj.prototype.get;Wj.prototype.find=Wj.prototype.find;Wj.prototype.release=Wj.prototype.release;function Xj(a){var b=this;this.g=a;this.j=!1;this.i=this.g.vd();this.h=new O(function(){b.g.Mf(.25*b.i)})}Xj.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};Xj.prototype.set=function(a){this.i=a;Yj(this)};Xj.prototype.sd=function(){return this.g.sd()};function Yj(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.vd()!=b&&a.g.Ne(b);return}catch(c){}a.h.ea(.25);0!=a.g.vd()&&a.g.Ne(0)};function Zj(a){var b=this;this.h=a;this.g=new Set;this.i=(new O(function(){ak(b,!1)})).ea(.25)}Zj.prototype.release=function(){this.i.stop();for(var a=r(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function ak(a,b){for(var c=r(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function bk(a){fb.call(this);this.g=new Map;this.h=a}pa(bk,fb);bk.prototype.release=function(){this.g.clear();fb.prototype.release.call(this)};function ck(a,b){var c=a.g.get(b);c||(c={Tc:[],xf:null,contentType:b},a.g.set(b,c));return c}function dk(a,b,c){var d=ck(a,b.contentType);ek(a,d);a={ve:b,position:c};d=d.Tc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
337
- bk.prototype.j=function(a){for(var b=r(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Tc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.ve;break a}}d=null}if(e=d)e=c.xf,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);
338
- 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.xf=d,JSON.stringify(d),c=new L("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function ek(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Tc;b.Tc=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.Tc=[]};function fk(a){fb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new O(function(){for(var c=b.i(),d=r(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new L("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ea(2)}pa(fk,fb);fk.prototype.release=function(){this.g.clear();this.h.stop();fb.prototype.release.call(this)};function gk(a){fb.call(this);var b=this;this.i=a;this.g=new Map;this.l=[{Vb:null,Ub:hk,Kb:function(c,d){return ik(b,"enter",c,d)}},{Vb:jk,Ub:hk,Kb:function(c,d){return ik(b,"enter",c,d)}},{Vb:kk,Ub:hk,Kb:function(c,d){return ik(b,"enter",c,d)}},{Vb:hk,Ub:jk,Kb:function(c,d){return ik(b,"exit",c,d)}},{Vb:hk,Ub:kk,Kb:function(c,d){return ik(b,"exit",c,d)}},{Vb:jk,Ub:kk,Kb:function(c,d){return ik(b,"skip",c,d)}},{Vb:kk,Ub:jk,Kb:function(c,d){return ik(b,"skip",c,d)}}];this.h=new xf;this.h.o(this.i,"regionremove",
334
+ function Vj(a,b,c){return new Sj([new zi(a,a+b,function(){return c},0,null,null,a,a,a+b)])}I("shaka.media.SegmentIndex",Sj);Sj.forSingleSegment=Vj;Sj.prototype.getIteratorForTime=Sj.prototype.bc;Sj.prototype.updateEvery=Sj.prototype.Nd;Sj.prototype.fit=Sj.prototype.wb;Sj.prototype.evict=Sj.prototype.Gb;Sj.prototype.mergeAndEvict=Sj.prototype.kc;Sj.prototype.offset=Sj.prototype.offset;Sj.prototype.get=Sj.prototype.get;Sj.prototype.find=Sj.prototype.find;Sj.prototype.markImmutable=Sj.prototype.lh;
335
+ Sj.prototype.release=Sj.prototype.release;function Uj(a,b,c){this.i=a;this.g=b;this.h=c}Uj.prototype.ug=function(){return this.g};Uj.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.i.length&&a.Pa().length&&this.h>=a.i.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.i.length?a.i[this.h]:a};
336
+ Uj.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.i.length?(this.h++,a.Pa().length&&this.h==a.i.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};I("shaka.media.SegmentIterator",Uj);Uj.prototype.next=Uj.prototype.next;Uj.prototype.current=Uj.prototype.current;Uj.prototype.currentPosition=Uj.prototype.ug;function Wj(){Sj.call(this,[]);this.l=[]}pa(Wj,Sj);q=Wj.prototype;q.clone=function(){var a=new Wj;a.l=this.l.slice();return a};
337
+ q.release=function(){for(var a=r(this.l),b=a.next();!b.done;b=a.next())b.value.release();this.l=[]};q.find=function(a){for(var b=0,c=r(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.i+d.g.length}return null};q.get=function(a){for(var b=0,c=r(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.i+d.g.length}return null};q.offset=function(){};q.Sc=function(){};q.Gb=function(){};q.kc=function(){};q.wb=function(){};q.Nd=function(){};
338
+ I("shaka.media.MetaSegmentIndex",Wj);Wj.prototype.updateEvery=Wj.prototype.Nd;Wj.prototype.fit=Wj.prototype.wb;Wj.prototype.mergeAndEvict=Wj.prototype.kc;Wj.prototype.evict=Wj.prototype.Gb;Wj.prototype.merge=Wj.prototype.Sc;Wj.prototype.offset=Wj.prototype.offset;Wj.prototype.get=Wj.prototype.get;Wj.prototype.find=Wj.prototype.find;Wj.prototype.release=Wj.prototype.release;function Xj(a){var b=this;this.g=a;this.j=!1;this.i=this.g.wd();this.h=new O(function(){b.g.Of(.25*b.i)})}Xj.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};Xj.prototype.set=function(a){this.i=a;Yj(this)};Xj.prototype.td=function(){return this.g.td()};function Yj(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.wd()!=b&&a.g.Oe(b);return}catch(c){}a.h.ea(.25);0!=a.g.wd()&&a.g.Oe(0)};function Zj(a){var b=this;this.h=a;this.g=new Set;this.i=(new O(function(){ak(b,!1)})).ea(.25)}Zj.prototype.release=function(){this.i.stop();for(var a=r(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function ak(a,b){for(var c=r(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function bk(a){fb.call(this);this.g=new Map;this.h=a}pa(bk,fb);bk.prototype.release=function(){this.g.clear();fb.prototype.release.call(this)};function ck(a,b){var c=a.g.get(b);c||(c={Uc:[],zf:null,contentType:b},a.g.set(b,c));return c}function dk(a,b,c){var d=ck(a,b.contentType);ek(a,d);a={ve:b,position:c};d=d.Uc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
339
+ bk.prototype.j=function(a){for(var b=r(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Uc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.ve;break a}}d=null}if(e=d)e=c.zf,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);
340
+ 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.zf=d,JSON.stringify(d),c=new L("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function ek(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Uc;b.Uc=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.Uc=[]};function fk(a){fb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new O(function(){for(var c=b.i(),d=r(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new L("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ea(2)}pa(fk,fb);fk.prototype.release=function(){this.g.clear();this.h.stop();fb.prototype.release.call(this)};function gk(a){fb.call(this);var b=this;this.i=a;this.g=new Map;this.l=[{Vb:null,Ub:hk,Kb:function(c,d){return ik(b,"enter",c,d)}},{Vb:jk,Ub:hk,Kb:function(c,d){return ik(b,"enter",c,d)}},{Vb:kk,Ub:hk,Kb:function(c,d){return ik(b,"enter",c,d)}},{Vb:hk,Ub:jk,Kb:function(c,d){return ik(b,"exit",c,d)}},{Vb:hk,Ub:kk,Kb:function(c,d){return ik(b,"exit",c,d)}},{Vb:jk,Ub:kk,Kb:function(c,d){return ik(b,"skip",c,d)}},{Vb:kk,Ub:jk,Kb:function(c,d){return ik(b,"skip",c,d)}}];this.h=new xf;this.h.o(this.i,"regionremove",
339
341
  function(c){b.g.delete(c.region)})}pa(gk,fb);gk.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;fb.prototype.release.call(this)};gk.prototype.j=function(a,b){for(var c=r(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?jk:a>d.endTime?kk:hk;this.g.set(d,f);for(var g=r(this.l),h=g.next();!h.done;h=g.next())h=h.value,h.Vb==e&&h.Ub==f&&h.Kb(d,b)}};
340
342
  function ik(a,b,c,d){b=new L(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var jk=1,hk=2,kk=3;function lk(a,b,c,d,e){a=of(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function mk(a,b){var c=this;this.g=b;this.m=a;this.i=null;this.C=1;this.s=this.l=null;this.G=!1;this.j=new Map;this.F=!1;this.H=null;this.B=!1;this.h=new vf(function(){return nk(c)})}q=mk.prototype;q.destroy=function(){return this.h.destroy()};function nk(a){var b,c,d,e;return G(function(f){if(1==f.g){b=[];c=r(a.j.values());for(d=c.next();!d.done;d=c.next())e=d.value,ok(e),b.push(pk(e));return u(f,Promise.all(b),2)}a.j.clear();a.g=null;a.m=null;a.i=null;B(f)})}
341
343
  q.configure=function(a){this.i=a;this.H=new We({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)};q.start=function(){var a=this;return G(function(b){if(1==b.g)return u(b,qk(a),2);wf(a.h);a.F=!0;B(b)})};
342
- function rk(a,b){var c,d,e,f,g,h;G(function(k){switch(k.g){case 1:return c=Jb,D(k,2),u(k,qj(a.g.U,c.ka),4);case 4:ua(k,3);break;case 2:if(d=va(k),a.g)a.g.onError(d);case 3:e=xd(b.mimeType,b.codecs);Zi(a.g.U,e,a.m.sequenceMode);f=a.g.U.m;if(g=f.isTextVisible()||a.i.alwaysStreamText)h=sk(b),a.j.set(c.ka,h),tk(a,h,0);B(k)}})}function uk(a){var b=a.j.get(Ib);b&&(ok(b),pk(b).catch(function(){}),a.j.delete(Ib));a.s=null}
344
+ function rk(a,b){var c,d,e,f,g,h;G(function(k){switch(k.g){case 1:return c=Jb,D(k,2),u(k,qj(a.g.U,c.ha),4);case 4:ua(k,3);break;case 2:if(d=va(k),a.g)a.g.onError(d);case 3:e=xd(b.mimeType,b.codecs);Zi(a.g.U,e,a.m.sequenceMode);f=a.g.U.m;if(g=f.isTextVisible()||a.i.alwaysStreamText)h=sk(b),a.j.set(c.ha,h),tk(a,h,0);B(k)}})}function uk(a){var b=a.j.get(Ib);b&&(ok(b),pk(b).catch(function(){}),a.j.delete(Ib));a.s=null}
343
345
  function vk(a,b){var c=a.j.get("video");if(c){var d=c.stream;if(d)if(b)(b=d.trickModeVideo)&&!c.Sb&&(wk(a,b,!1,0,!1),c.Sb=d);else if(d=c.Sb)c.Sb=null,wk(a,d,!0,0,!1)}}function xk(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.l=b;a.F&&(b.video&&wk(a,b.video,c,d,e,f),b.audio&&wk(a,b.audio,c,d,e,f))}function yk(a,b){a.s=b;a.F&&wk(a,b,!0,0,!1)}
344
- function wk(a,b,c,d,e,f){var g=a.j.get(b.type);g||b.type!=Ib?g&&(g.Sb&&(b.trickModeVideo?(g.Sb=b,b=b.trickModeVideo):g.Sb=null),g.stream!=b||e)&&(b.type==Ib&&Zi(a.g.U,xd(b.mimeType,b.codecs),a.m.sequenceMode),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.qa=null,g.lf=!!f,c&&(g.Cc?g.Pd=!0:g.Ia?(g.Eb=!0,g.pd=d,g.Pd=!0):(ok(g),zk(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),Ak(a,g).catch(function(h){if(a.g)a.g.onError(h)})):rk(a,b)}
345
- function Ak(a,b){var c,d;return G(function(e){if(1==e.g){if(!b.Ka)return e.return();c=b.stream;d=b.Ka;return c.segmentIndex?e.D(2):u(e,c.createSegmentIndex(),2)}if(b.Ka!=d||b.stream!=c)return e.return();var f=a.g.ud();var g=dj(a.g.U,b.type),h=b.stream.segmentIndex.find(b.Ga?b.Ga.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Ba?k.Ba-k.Sa:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.h)&&(h+=(k.Ba?k.Ba-k.Sa:null)||0),k=a.g.getBandwidthEstimate(),
346
+ function wk(a,b,c,d,e,f){var g=a.j.get(b.type);g||b.type!=Ib?g&&(g.Sb&&(b.trickModeVideo?(g.Sb=b,b=b.trickModeVideo):g.Sb=null),g.stream!=b||e)&&(b.type==Ib&&Zi(a.g.U,xd(b.mimeType,b.codecs),a.m.sequenceMode),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.qa=null,g.nf=!!f,c&&(g.Cc?g.Pd=!0:g.Ia?(g.Eb=!0,g.qd=d,g.Pd=!0):(ok(g),zk(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),Ak(a,g).catch(function(h){if(a.g)a.g.onError(h)})):rk(a,b)}
347
+ function Ak(a,b){var c,d;return G(function(e){if(1==e.g){if(!b.Ka)return e.return();c=b.stream;d=b.Ka;return c.segmentIndex?e.D(2):u(e,c.createSegmentIndex(),2)}if(b.Ka!=d||b.stream!=c)return e.return();var f=a.g.vd();var g=dj(a.g.U,b.type),h=b.stream.segmentIndex.find(b.Ga?b.Ga.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.h)&&(h+=(k.Ba?k.Ba-k.Ta:null)||0),k=a.g.getBandwidthEstimate(),
346
348
  f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal)||b.Ka.h.g>h?!0:!1):f=!1;f&&b.Ka.abort();B(e)})}
347
- q.Wc=function(){if(this.g)for(var a=this.g.ud(),b=r(this.j.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.j.get(d);c.qa=null;var e=this.g.U;d==Ib?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=cj(e,d),e=Ei(e,a));if(!e){(null!=dj(this.g.U,d)||c.Ia)&&Bk(this,c);c.Ka&&(c.Ka.abort(),c.Ka=null);if(d===Ib&&(d=this.g.U,d.B))for(d=d.B.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,gi(d),d=r(d.j.values()),e=d.next();!e.done;e=d.next())bi(e.value);c.Wc=!0}}};
348
- function Bk(a,b){b.Cc||b.Eb||(b.Ia?(b.Eb=!0,b.pd=0):null==bj(a.g.U,b.type)?null==b.cb&&tk(a,b,0):(ok(b),zk(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
349
- function qk(a){var b,c,d,e,f,g,h,k,l,m;return G(function(p){if(1==p.g){b=Jb;if(!a.l)throw new M(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.hd,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.Ma,a.l.video),d.add(a.l.video));a.s&&(c.set(b.ka,a.s),d.add(a.s));e=a.g.U;f=a.i.forceTransmux;return u(p,e.init(c,f,a.m.sequenceMode),2)}wf(a.h);a.updateDuration();g=r(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.j.has(k)||(m=sk(l),a.j.set(k,m),tk(a,m,0));B(p)})}
350
- function sk(a){return{stream:a,type:a.type,qa:null,Ga:null,xd:null,re:null,qe:null,pe:null,Sb:null,endOfStream:!1,Ia:!1,cb:null,Eb:!1,pd:0,Pd:!1,Cc:!1,Wc:!0,Ce:!1,Mc:!1,Ka:null}}q.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.U.ab(a):this.g.U.ab(Math.pow(2,32))};
351
- function Ck(a,b){var c,d,e,f,g;return G(function(h){switch(h.g){case 1:wf(a.h);if(b.Ia||null==b.cb||b.Cc)return h.return();b.cb=null;if(!b.Eb){h.D(2);break}return u(h,zk(a,b,b.Pd,b.pd),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(),b.Ia||b.cb||tk(a,b,0),h.return();case 4:D(h,6);d=Dk(a,b);null!=d&&(tk(a,b,d),b.Mc=!1);ua(h,7);break;case 6:return e=
352
- va(h),u(h,Ek(a,e),8);case 8:return h.return();case 7:f=Array.from(a.j.values());if(!a.F||!f.every(function(k){return k.endOfStream})){h.D(0);break}return u(h,a.g.U.endOfStream(),10);case 10:wf(a.h),g=a.g.U.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.ab(g),B(h)}})}
353
- function Dk(a,b){if(Fk(b))return oj(a.g.U,b.stream.originalId||""),null;b.type==Ib&&pj(a.g.U);var c=a.g.ud(),d=b.Ga?b.Ga.endTime:c,e=ej(a.g.U,b.type,c),f=Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal,a.i.bufferingGoal)*a.C,g=a.m.presentationTimeline.getDuration()-d,h=dj(a.g.U,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.j.get(Ib))&&Fk(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.i.updateIntervalSeconds/2;e=Gk(a,b,c,h);if(!e)return a.i.updateIntervalSeconds;
349
+ q.Xc=function(){if(this.g)for(var a=this.g.vd(),b=r(this.j.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.j.get(d);c.qa=null;var e=this.g.U;d==Ib?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=cj(e,d),e=Ei(e,a));if(!e){(null!=dj(this.g.U,d)||c.Ia)&&Bk(this,c);c.Ka&&(c.Ka.abort(),c.Ka=null);if(d===Ib&&(d=this.g.U,d.B))for(d=d.B.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,gi(d),d=r(d.j.values()),e=d.next();!e.done;e=d.next())bi(e.value);c.Xc=!0}}};
350
+ function Bk(a,b){b.Cc||b.Eb||(b.Ia?(b.Eb=!0,b.qd=0):null==bj(a.g.U,b.type)?null==b.eb&&tk(a,b,0):(ok(b),zk(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
351
+ function qk(a){var b,c,d,e,f,g,h,k,l,m;return G(function(p){if(1==p.g){b=Jb;if(!a.l)throw new M(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.jd,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.Ma,a.l.video),d.add(a.l.video));a.s&&(c.set(b.ha,a.s),d.add(a.s));e=a.g.U;f=a.i.forceTransmux;return u(p,e.init(c,f,a.m.sequenceMode),2)}wf(a.h);a.updateDuration();g=r(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.j.has(k)||(m=sk(l),a.j.set(k,m),tk(a,m,0));B(p)})}
352
+ function sk(a){return{stream:a,type:a.type,qa:null,Ga:null,yd:null,re:null,qe:null,pe:null,Sb:null,endOfStream:!1,Ia:!1,eb:null,Eb:!1,qd:0,Pd:!1,Cc:!1,Xc:!0,xe:!1,De:!1,Mc:!1,Ka:null}}q.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.U.Sa(a):this.g.U.Sa(Math.pow(2,32))};
353
+ function Ck(a,b){var c,d,e,f,g;return G(function(h){switch(h.g){case 1:wf(a.h);if(b.Ia||null==b.eb||b.Cc)return h.return();b.eb=null;if(!b.Eb){h.D(2);break}return u(h,zk(a,b,b.Pd,b.qd),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(),b.Ia||b.eb||tk(a,b,0),h.return();case 4:D(h,6);d=Dk(a,b);null!=d&&(tk(a,b,d),b.Mc=!1);ua(h,7);break;case 6:return e=
354
+ va(h),u(h,Ek(a,e),8);case 8:return h.return();case 7:f=Array.from(a.j.values());if(!a.F||!f.every(function(k){return k.endOfStream})){h.D(0);break}return u(h,a.g.U.endOfStream(),10);case 10:wf(a.h),g=a.g.U.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.Sa(g),B(h)}})}
355
+ function Dk(a,b){if(Fk(b))return oj(a.g.U,b.stream.originalId||""),null;b.type==Ib&&pj(a.g.U);var c=a.g.vd(),d=b.Ga?b.Ga.endTime:c,e=ej(a.g.U,b.type,c),f=Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal,a.i.bufferingGoal)*a.C,g=a.m.presentationTimeline.getDuration()-d,h=dj(a.g.U,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.j.get(Ib))&&Fk(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.i.updateIntervalSeconds/2;e=Gk(a,b,c,h);if(!e)return a.i.updateIntervalSeconds;
354
356
  f=Infinity;g=Array.from(a.j.values());g=r(g);for(h=g.next();!h.done;h=g.next())h=h.value,Fk(h)||h.qa&&!h.qa.current()||(f=Math.min(f,h.Ga?h.Ga.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.i.updateIntervalSeconds;Hk(a,b,c,e).catch(function(){});return null}
355
- function Gk(a,b,c,d){if(b.qa)return b.qa.current();if(b.Ga||d)return b.qa=b.stream.segmentIndex.bc(b.Ga?b.Ga.endTime:d),b.qa&&b.qa.next().value;a=a.i.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.qa=b.stream.segmentIndex.bc(d),e=b.qa&&b.qa.next().value);e||(b.qa=b.stream.segmentIndex.bc(c),e=b.qa&&b.qa.next().value);return e}
357
+ function Gk(a,b,c,d){if(b.qa)return b.qa.current();if(b.Ga||d)return c=b.Ga?b.Ga.endTime:d,b.xe=!0,b.qa=b.stream.segmentIndex.bc(c),b.qa&&b.qa.next().value;a=a.i.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.qa=b.stream.segmentIndex.bc(d),e=b.qa&&b.qa.next().value);e||(b.qa=b.stream.segmentIndex.bc(c),e=b.qa&&b.qa.next().value);return e}
356
358
  function Hk(a,b,c,d){var e,f,g,h,k,l,m,p,n,t,v,y,w,x,A;return G(function(z){switch(z.g){case 1:e=Jb;f=b.stream;g=b.qa;b.Ia=!0;D(z,2);if(2==d.ec())throw new M(1,1,1011);return u(z,Ik(a,b,d),4);case 4:wf(a.h);if(a.B)return z.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.i.lowLatencyMode&&k&&h&&!d.l)return p=new Uint8Array(0),t=n=!1,v=function(C){var E,F,H;return G(function(J){if(n)return J.return();t=!0;wf(a.h);if(a.B)return J.return();p=Jk(p,C);E=!1;F=0;(new If).box("mdat",
357
359
  function(K){F=K.size+K.start;E=!0}).parse(p,!1,!0);if(!E)return J.D(0);H=p.subarray(0,F);p=p.subarray(F);return u(J,Kk(a,b,c,f,d,H),0)})},u(z,Lk(a,b,d,v),11);l=Lk(a,b,d);return u(z,l,7);case 7:m=z.h;wf(a.h);if(a.B)return z.return();if(!d.l){z.D(8);break}return u(z,Mk(m,d,g),9);case 9:m=z.h;case 8:return wf(a.h),b.Eb?(b.Ia=!1,tk(a,b,0),z.return()):u(z,Kk(a,b,c,f,d,m),6);case 11:y=z.h;if(t){z.D(6);break}n=!0;wf(a.h);return a.B?z.return():b.Eb?(b.Ia=!1,tk(a,b,0),z.return()):u(z,Kk(a,b,c,f,d,y),6);case 6:wf(a.h);
358
- if(a.B)return z.return();b.Ga=d;g.next();b.Ia=!1;b.Ce=!1;w=a.g.U.ib();x=w[b.type];Za(JSON.stringify(x));b.Eb||a.g.Ae(d.startTime,d.endTime,b.type);tk(a,b,0);ua(z,0);break;case 2:A=va(z);wf(a.h,A);if(a.B)return z.return();b.Ia=!1;if(7001==A.code)b.Ia=!1,ok(b),tk(a,b,0),z.D(0);else if(b.type==e.ka&&a.i.ignoreTextStreamFailures)a.j.delete(e.ka),z.D(0);else if(3017==A.code)Nk(a,b,A),z.D(0);else return b.Mc=!0,A.severity=2,u(z,Ek(a,A),0)}})}
360
+ if(a.B)return z.return();b.Ga=d;g.next();b.Ia=!1;b.De=!1;w=a.g.U.ib();x=w[b.type];Za(JSON.stringify(x));b.Eb||a.g.Be(d.startTime,d.endTime,b.type);tk(a,b,0);ua(z,0);break;case 2:A=va(z);wf(a.h,A);if(a.B)return z.return();b.Ia=!1;if(7001==A.code)b.Ia=!1,ok(b),tk(a,b,0),z.D(0);else if(b.type==e.ha&&a.i.ignoreTextStreamFailures)a.j.delete(e.ha),z.D(0);else if(3017==A.code)Nk(a,b,A),z.D(0);else return b.Mc=!0,A.severity=2,u(z,Ek(a,A),0)}})}
359
361
  function Mk(a,b,c){var d,e,f,g;return G(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=Hc(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 Jk(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
360
- function Nk(a,b,c){if(!Array.from(a.j.values()).some(function(e){return e!=b&&e.Ce})){var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.Mc=!0;a.B=!0;a.g.onError(c);return}b.Ce=!0}tk(a,b,4)}
361
- function Ik(a,b,c){var d,e,f,g,h,k,l,m;return G(function(p){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.re||e!=b.qe||f!=b.pe)h=function(){var n;return G(function(t){if(1==t.g)return D(t,2),b.qe=e,b.pe=f,b.re=g,u(t,rj(a.g.U,b.type,g,e,f,a.m.sequenceMode),4);if(2!=t.g)return ua(t,0);n=va(t);b.qe=null;b.pe=null;b.re=null;throw n;})},d.push(h());!yi(c.h,b.xd)&&(b.xd=c.h)&&(k=Lk(a,b,c.h),l=function(){var n,t,v,y;return G(function(w){switch(w.g){case 1:return D(w,
362
- 2),u(w,k,4);case 4:return n=w.h,wf(a.h),t=new If,t.box("moov",Nf).box("trak",Nf).box("mdia",Nf).S("mdhd",function(x){x=oi(x.reader||0,x.version||0);c.h.timescale=x.timescale}).parse(n),v=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,u(w,a.g.pf(b.type,n),5);case 5:return u(w,fj(a.g.U,b.type,n,null,v),6);case 6:ua(w,0);break;case 2:throw y=va(w),b.xd=null,y;}})},a.g.mh(c.startTime,c.h),d.push(l()));a.m.sequenceMode&&(m=b.Ga?b.Ga.m:null,c.m!=m&&d.push(sj(a.g.U,b.type,c.startTime)));return u(p,
363
- Promise.all(d),0)})}
364
- function Kk(a,b,c,d,e,f){var g,h,k,l,m,p;return G(function(n){switch(n.g){case 1:g=d.closedCaptions&&0<d.closedCaptions.size;k=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.i.dispatchAllEmsgBoxes;l=a.i.parsePrftBox&&!a.G;if(k||l)h=new If;k&&h.S("emsg",function(t){var v=d.emsgSchemeIdUris;if(0===t.version){var y=t.reader.Uc();var w=t.reader.Uc();var x=t.reader.N();var A=t.reader.N();var z=t.reader.N();var C=t.reader.N();var E=e.startTime+A/x}else x=t.reader.N(),E=t.reader.Cb()/x+e.timestampOffset,
365
- A=E-e.startTime,z=t.reader.N(),C=t.reader.N(),y=t.reader.Uc(),w=t.reader.Uc();t=t.reader.Bb(t.reader.W.byteLength-t.reader.ma());if(v&&v.includes(y)||a.i.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==y?a.g.nh():"https://aomedia.org/emsg/ID3"==y?(v=Li(t),v.length&&e&&a.g.oh([{cueTime:e.startTime,data:t,frames:v,dts:e.startTime,pts:e.startTime}],0,e.endTime)):(v=(new Map).set("detail",{startTime:E,endTime:E+z/x,schemeIdUri:y,value:w,timescale:x,presentationTimeDelta:A,eventDuration:z,id:C,messageData:t}),
362
+ function Nk(a,b,c){if(!Array.from(a.j.values()).some(function(e){return e!=b&&e.De})){var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.Mc=!0;a.B=!0;a.g.onError(c);return}b.De=!0}tk(a,b,4)}
363
+ function Ik(a,b,c){var d,e,f,g,h,k,l,m;return G(function(p){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.re||e!=b.qe||f!=b.pe)h=function(){var n;return G(function(t){if(1==t.g)return D(t,2),b.qe=e,b.pe=f,b.re=g,u(t,rj(a.g.U,b.type,g,e,f,a.m.sequenceMode),4);if(2!=t.g)return ua(t,0);n=va(t);b.qe=null;b.pe=null;b.re=null;throw n;})},d.push(h());!yi(c.h,b.yd)&&(b.yd=c.h)&&(k=Lk(a,b,c.h),l=function(){var n,t,v,y;return G(function(w){switch(w.g){case 1:return D(w,
364
+ 2),u(w,k,4);case 4:return n=w.h,wf(a.h),t=new If,t.box("moov",Nf).box("trak",Nf).box("mdia",Nf).S("mdhd",function(x){x=oi(x.reader||0,x.version||0);c.h.timescale=x.timescale}).parse(n),v=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,u(w,a.g.rf(b.type,n),5);case 5:return u(w,fj(a.g.U,b.type,n,null,v),6);case 6:ua(w,0);break;case 2:throw y=va(w),b.yd=null,y;}})},a.g.oh(c.startTime,c.h),d.push(l()));a.m.sequenceMode&&(m=b.Ga?b.Ga.m:null,c.m!=m||b.xe)&&(b.xe=!1,d.push(sj(a.g.U,b.type,c.startTime)));
365
+ return u(p,Promise.all(d),0)})}
366
+ function Kk(a,b,c,d,e,f){var g,h,k,l,m,p;return G(function(n){switch(n.g){case 1:g=d.closedCaptions&&0<d.closedCaptions.size;k=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.i.dispatchAllEmsgBoxes;l=a.i.parsePrftBox&&!a.G;if(k||l)h=new If;k&&h.S("emsg",function(t){var v=d.emsgSchemeIdUris;if(0===t.version){var y=t.reader.Vc();var w=t.reader.Vc();var x=t.reader.N();var A=t.reader.N();var z=t.reader.N();var C=t.reader.N();var E=e.startTime+A/x}else x=t.reader.N(),E=t.reader.Cb()/x+e.timestampOffset,
367
+ A=E-e.startTime,z=t.reader.N(),C=t.reader.N(),y=t.reader.Vc(),w=t.reader.Vc();t=t.reader.Bb(t.reader.W.byteLength-t.reader.ma());if(v&&v.includes(y)||a.i.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==y?a.g.ph():"https://aomedia.org/emsg/ID3"==y?(v=Li(t),v.length&&e&&a.g.qh([{cueTime:e.startTime,data:t,frames:v,dts:e.startTime,pts:e.startTime}],0,e.endTime)):(v=(new Map).set("detail",{startTime:E,endTime:E+z/x,schemeIdUri:y,value:w,timescale:x,presentationTimeDelta:A,eventDuration:z,id:C,messageData:t}),
366
368
  v=new L("emsg",v),a.g.onEvent(v))});l&&h.S("prft",function(t){a:{if(!a.G&&e.h.timescale){t.reader.N();var v=t.reader.N(),y=t.reader.N();v=1E3*v+y/Math.pow(2,32)*1E3;if(0===t.version)var w=t.reader.N();else try{w=t.reader.Cb()}catch(x){a.G=!0;w=void 0;break a}t=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+v)).getTime();w=(new Map).set("detail",{wallClockTime:t,programStartDate:new Date(t-w/e.h.timescale*1E3)});w=new L("prft",w);a.g.onEvent(w);a.G=!0}w=void 0}return w});(k||l)&&h.parse(f);
367
- return u(n,Ok(a,b,c),2);case 2:return wf(a.h),m=b.Wc,b.Wc=!1,p=b.lf,b.lf=!1,u(n,a.g.pf(b.type,f),3);case 3:return u(n,fj(a.g.U,b.type,f,e,g,m,p),4);case 4:wf(a.h),B(n)}})}function Ok(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g){d=Math.max(a.i.bufferBehind,a.m.presentationTimeline.g);e=bj(a.g.U,b.type);if(null==e)return h.return();f=c-e;g=f-d;return.01>=g?h.return():u(h,a.g.U.remove(b.type,e,e+g),2)}wf(a.h);B(h)})}
368
- function Fk(a){return a&&a.type==Ib&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}function Lk(a,b,c,d){var e,f,g,h,k;return G(function(l){if(1==l.g)return e=uf,f=lk(c.Pa(),c.Sa,c.Ba,a.i.retryParameters,d),g=b.stream,a.g.modifySegmentRequest(f,{type:g.type,init:c instanceof xi,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.g.Ob.request(e,f),b.Ka=h,u(l,h.promise,2);k=l.h;b.Ka=null;return l.return(k.data)})}
369
- function zk(a,b,c,d){var e,f;return G(function(g){if(1==g.g)return b.Eb=!1,b.Pd=!1,b.pd=0,b.Cc=!0,b.Ga=null,b.xd=null,b.qa=null,d?(e=a.g.ud(),f=a.g.U.getDuration(),u(g,a.g.U.remove(b.type,e+d,f),3)):u(g,qj(a.g.U,b.type),4);if(3!=g.g)return wf(a.h),c?u(g,a.g.U.flush(b.type),3):g.D(3);wf(a.h);b.Cc=!1;b.endOfStream=!1;b.Ia||b.cb||tk(a,b,0);B(g)})}
370
- function tk(a,b,c){var d=b.type;if(d!=Ib||a.j.has(d))b.cb=(new Nc(function(){var e;return G(function(f){if(1==f.g)return D(f,2),u(f,Ck(a,b),4);if(2!=f.g)return ua(f,0);e=va(f);if(a.g)a.g.onError(e);B(f)})})).R(c)}function ok(a){null!=a.cb&&(a.cb.stop(),a.cb=null)}function pk(a){return G(function(b){return a.Ka?u(b,a.Ka.abort(),0):b.D(0)})}function Ek(a,b){return G(function(c){if(1==c.g)return u(c,Ye(a.H),2);wf(a.h);a.g.onError(b);b.handled||a.i.failureCallback(b);B(c)})};function Pk(a,b){var c=Qk(),d=this;this.j=b;this.i=a;this.l=c;this.s=null;this.m=[];this.h=this.g=null;this.C=Promise.resolve().then(function(){return Rk(d)});this.B=new vf(function(){return Sk(d)})}Pk.prototype.destroy=function(){return this.B.destroy()};function Sk(a){var b,c,d;return G(function(e){if(1==e.g)return a.h&&a.h.abort(),Tk(a),u(e,a.C,2);a.g&&a.g.$a.Qb();b=r(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.$a.Qb();a.g=null;a.m=[];a.j=null;B(e)})}
371
- function Uk(a,b){var c={mc:function(){},Ed:function(){},Qb:function(){},onError:function(){},Gd:function(){},sj:function(){}};a.m.push({create:b,$a:c});a.h&&a.h.abort();Tk(a);return c}
372
- function Rk(a){return G(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.Qb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.$a.mc(),a.g={node:d.node,payload:d.payload,Jb:d.Jb,$a:c.$a}):c.$a.Gd();c=!0}c?c=Promise.resolve():a.g?c=Vk(a):(a.j.lh(a.i),a.s=new Lc,c=a.s);b=u(b,c,1)}return b})}
373
- function Vk(a){var b,c;return G(function(d){switch(d.g){case 1:return a.i=a.j.Qg(a.i,a.l,a.g.node,a.g.payload),D(d,2),a.h=a.j.vg(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.Ed(),a.g=null);ua(d,0);break;case 2:b=va(d);if(7001==b.code)a.g.$a.Qb();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,B(d)}})}function Tk(a){a.s&&(a.s.resolve(),a.s=null)};function Wk(a){this.g=null;for(var b=r(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=Wk.prototype;q.remove=function(a,b){if(!this.g)return!1;Xk(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
369
+ return u(n,Ok(a,b,c),2);case 2:return wf(a.h),m=b.Xc,b.Xc=!1,p=b.nf,b.nf=!1,u(n,a.g.rf(b.type,f),3);case 3:return u(n,fj(a.g.U,b.type,f,e,g,m,p),4);case 4:wf(a.h),B(n)}})}function Ok(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g){d=Math.max(a.i.bufferBehind,a.m.presentationTimeline.g);e=bj(a.g.U,b.type);if(null==e)return h.return();f=c-e;g=f-d;return.01>=g?h.return():u(h,a.g.U.remove(b.type,e,e+g),2)}wf(a.h);B(h)})}
370
+ function Fk(a){return a&&a.type==Ib&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}function Lk(a,b,c,d){var e,f,g,h,k;return G(function(l){if(1==l.g)return e=uf,f=lk(c.Pa(),c.Ta,c.Ba,a.i.retryParameters,d),g=b.stream,a.g.modifySegmentRequest(f,{type:g.type,init:c instanceof xi,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.g.Ob.request(e,f),b.Ka=h,u(l,h.promise,2);k=l.h;b.Ka=null;return l.return(k.data)})}
371
+ function zk(a,b,c,d){var e,f;return G(function(g){if(1==g.g)return b.Eb=!1,b.Pd=!1,b.qd=0,b.Cc=!0,b.Ga=null,b.yd=null,b.qa=null,d?(e=a.g.vd(),f=a.g.U.getDuration(),u(g,a.g.U.remove(b.type,e+d,f),3)):u(g,qj(a.g.U,b.type),4);if(3!=g.g)return wf(a.h),c?u(g,a.g.U.flush(b.type),3):g.D(3);wf(a.h);b.Cc=!1;b.endOfStream=!1;b.Ia||b.eb||tk(a,b,0);B(g)})}
372
+ function tk(a,b,c){var d=b.type;if(d!=Ib||a.j.has(d))b.eb=(new Nc(function(){var e;return G(function(f){if(1==f.g)return D(f,2),u(f,Ck(a,b),4);if(2!=f.g)return ua(f,0);e=va(f);if(a.g)a.g.onError(e);B(f)})})).R(c)}function ok(a){null!=a.eb&&(a.eb.stop(),a.eb=null)}function pk(a){return G(function(b){return a.Ka?u(b,a.Ka.abort(),0):b.D(0)})}function Ek(a,b){return G(function(c){if(1==c.g)return u(c,Ye(a.H),2);wf(a.h);a.g.onError(b);b.handled||a.i.failureCallback(b);B(c)})};function Pk(a,b){var c=Qk(),d=this;this.j=b;this.i=a;this.l=c;this.s=null;this.m=[];this.h=this.g=null;this.C=Promise.resolve().then(function(){return Rk(d)});this.B=new vf(function(){return Sk(d)})}Pk.prototype.destroy=function(){return this.B.destroy()};function Sk(a){var b,c,d;return G(function(e){if(1==e.g)return a.h&&a.h.abort(),Tk(a),u(e,a.C,2);a.g&&a.g.bb.Qb();b=r(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.bb.Qb();a.g=null;a.m=[];a.j=null;B(e)})}
373
+ function Uk(a,b){var c={mc:function(){},Ed:function(){},Qb:function(){},onError:function(){},Gd:function(){},uj:function(){}};a.m.push({create:b,bb:c});a.h&&a.h.abort();Tk(a);return c}
374
+ function Rk(a){return G(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.bb.Qb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.bb.mc(),a.g={node:d.node,payload:d.payload,Jb:d.Jb,bb:c.bb}):c.bb.Gd();c=!0}c?c=Promise.resolve():a.g?c=Vk(a):(a.j.nh(a.i),a.s=new Lc,c=a.s);b=u(b,c,1)}return b})}
375
+ function Vk(a){var b,c;return G(function(d){switch(d.g){case 1:return a.i=a.j.Sg(a.i,a.l,a.g.node,a.g.payload),D(d,2),a.h=a.j.xg(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.bb.Ed(),a.g=null);ua(d,0);break;case 2:b=va(d);if(7001==b.code)a.g.bb.Qb();else a.g.bb.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,B(d)}})}function Tk(a){a.s&&(a.s.resolve(),a.s=null)};function Wk(a){this.g=null;for(var b=r(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=Wk.prototype;q.remove=function(a,b){if(!this.g)return!1;Xk(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
374
376
  q.append=function(a){function b(h,k){h=r(h);for(var l=h.next();!l.done;l=h.next())if(l=l.value,l.isContainer)b(l.nestedCues,k);else{var m=l.clone();m.nestedCues=[];m.payload=c(l);k.push(m)}return k}function c(h){var k=[],l=700<=h.fontWeight,m="italic"==h.fontStyle,p=h.textDecoration.includes("underline");l&&k.push("b");m&&k.push("i");p&&k.push("u");l=k.reduce(function(n,t){return n+"<"+t+">"},"");k=k.reduceRight(function(n,t){return n+"</"+t+">"},"");return h.lineBreak?"\n":h.nestedCues.length?h.nestedCues.map(c).join(""):
375
377
  l+h.payload+k}var d=b(a,[]),e=[];a=this.g.cues?Array.from(this.g.cues):[];var f={};d=r(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=Yk(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)-
376
378
  e.indexOf(k)});a=r(a);for(f=a.next();!f.done;f=a.next())this.g.addCue(f.value)};q.destroy=function(){this.g&&(Xk(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"};
377
379
  function Yk(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}
378
- function Xk(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=r(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}I("shaka.text.SimpleTextDisplayer",Wk);Wk.prototype.setTextVisibility=Wk.prototype.setTextVisibility;Wk.prototype.isTextVisible=Wk.prototype.isTextVisible;Wk.prototype.destroy=Wk.prototype.destroy;Wk.prototype.append=Wk.prototype.append;Wk.prototype.remove=Wk.prototype.remove;function Zk(){}function R(a){return document.createElement(a)}function $k(){return document.createElement("button")}function al(a){for(;a.firstChild;)a.removeChild(a.firstChild)}I("shaka.util.Dom",Zk);Zk.removeAllChildren=al;function bl(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 O(function(){cl(c)})).ea(.25);this.h=new Map;this.B=new xf;this.B.o(document,"fullscreenchange",function(){cl(c,!0)});this.l=null;"ResizeObserver"in window&&(this.l=new ResizeObserver(function(){cl(c,
379
- !0)}),this.l.observe(this.g));this.s=new Map}q=bl.prototype;q.append=function(a){var b=[].concat(ia(this.i)),c={};a=r(a);for(var d=a.next();!d.done;c={cd:c.cd},d=a.next())c.cd=d.value,b.some(function(e){return function(f){return vc(f,e.cd)}}(c))||this.i.push(c.cd);cl(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)};
380
+ function Xk(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=r(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}I("shaka.text.SimpleTextDisplayer",Wk);Wk.prototype.setTextVisibility=Wk.prototype.setTextVisibility;Wk.prototype.isTextVisible=Wk.prototype.isTextVisible;Wk.prototype.destroy=Wk.prototype.destroy;Wk.prototype.append=Wk.prototype.append;Wk.prototype.remove=Wk.prototype.remove;function Zk(){}function R(a){return document.createElement(a)}function $k(){var a=document.createElement("button");a.setAttribute("type","button");return a}function al(a){for(;a.firstChild;)a.removeChild(a.firstChild)}I("shaka.util.Dom",Zk);Zk.removeAllChildren=al;function bl(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 O(function(){cl(c)})).ea(.25);this.h=new Map;this.B=new xf;this.B.o(document,"fullscreenchange",function(){cl(c,!0)});this.l=null;"ResizeObserver"in window&&(this.l=new ResizeObserver(function(){cl(c,
381
+ !0)}),this.l.observe(this.g));this.s=new Map}q=bl.prototype;q.append=function(a){var b=[].concat(ia(this.i)),c={};a=r(a);for(var d=a.next();!d.done;c={dd:c.dd},d=a.next())c.dd=d.value,b.some(function(e){return function(f){return vc(f,e.dd)}}(c))||this.i.push(c.dd);cl(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)};
380
382
  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});cl(this,c>this.i.length);return!0};q.isTextVisible=function(){return this.j};q.setTextVisibility=function(a){this.j=a};function dl(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
381
- function el(a,b,c,d,e){var f=!1,g=[],h=[];b=r(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,p=l?l.eg:null;l&&(g.push(l.je),l.Vc&&g.push(l.Vc),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?dl(a,p)||(f=!0):(fl(a,k,e),l=a.h.get(k),p=l.eg,f=!0));0<k.nestedCues.length&&p&&el(a,k.nestedCues,p,d,e);e.pop()}if(f){d=r(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(n,t){return n.startTime!=
382
- t.startTime?n.startTime-t.startTime:n.endTime-t.endTime});h=r(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Vc?(c.appendChild(d.Vc),d.Vc.appendChild(d.je)):c.appendChild(d.je)}}function cl(a,b){if(a.g){var c=a.F.currentTime;if(!a.j||(void 0===b?0:b)){b=r(a.s.values());for(var d=b.next();!d.done;d=b.next())al(d.value);al(a.g);a.h.clear();a.s.clear()}if(a.j){b=new Map;d=r(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));el(a,a.i,a.g,c,[])}}}
383
- function fl(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&&gl(a,f,b,c,d);c=null;if(b.region&&b.region.id)if(c=b.region,a.s.has(c.id))c=a.s.get(c.id);else{e=R("span");var g=c.heightUnits==Cc?"%":"px",h=c.widthUnits==Cc?"%":"px",k=c.viewportAnchorUnits==Cc?"%":"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+
384
- 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.s.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,{je:f,eg:e,Vc:c})}
383
+ function el(a,b,c,d,e){var f=!1,g=[],h=[];b=r(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,p=l?l.gg:null;l&&(g.push(l.je),l.Wc&&g.push(l.Wc),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?dl(a,p)||(f=!0):(fl(a,k,e),l=a.h.get(k),p=l.gg,f=!0));0<k.nestedCues.length&&p&&el(a,k.nestedCues,p,d,e);e.pop()}if(f){d=r(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(n,t){return n.startTime!=
384
+ t.startTime?n.startTime-t.startTime:n.endTime-t.endTime});h=r(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Wc?(c.appendChild(d.Wc),d.Wc.appendChild(d.je)):c.appendChild(d.je)}}function cl(a,b){if(a.g){var c=a.F.currentTime;if(!a.j||(void 0===b?0:b)){b=r(a.s.values());for(var d=b.next();!d.done;d=b.next())al(d.value);al(a.g);a.h.clear();a.s.clear()}if(a.j){b=new Map;d=r(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));el(a,a.i,a.g,c,[])}}}
385
+ function fl(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&&gl(a,f,b,c,d);c=null;if(b.region&&b.region.id)if(c=b.region,e=c.id+"_"+c.width+"x"+c.height+(c.heightUnits==Cc?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==Cc?"%":"px"),a.s.has(e))c=a.s.get(e);else{var g=R("span"),h=c.heightUnits==Cc?"%":"px",k=c.widthUnits==Cc?"%":"px",l=c.viewportAnchorUnits==Cc?"%":"px";g.id="shaka-text-region---"+e;g.classList.add("shaka-text-region");
386
+ g.style.height=c.height+h;g.style.width=c.width+k;g.style.position="absolute";g.style.top=c.viewportAnchorY+l;g.style.left=c.viewportAnchorX+l;g.style.display="flex";g.style.flexDirection="column";g.style.alignItems="center";g.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.s.set(e,g);c=g}e=f;d&&(e=R("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,f.appendChild(e));a.h.set(b,{je:f,gg:e,Wc:c})}
385
387
  function gl(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=hl(c.linePadding,c,a.m);f.paddingRight=hl(c.linePadding,c,a.m);f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage="url('"+c.backgroundImage+"')",f.backgroundRepeat=
386
388
  "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=il(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?
387
389
  "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=hl(c.fontSize,c,a.m);null!=c.line&&1==c.lineInterpretation&&(f.position="absolute",f.left="0",f.top="0",c.writingMode==pc?(f.width="100%",c.lineAlign==rc?f.top=c.line+"%":"end"==c.lineAlign&&(f.bottom=100-c.line+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==rc?f.left=c.line+
388
390
  "%":"end"==c.lineAlign&&(f.right=100-c.line+"%")):(f.height="100%",c.lineAlign==rc?f.right=c.line+"%":"end"==c.lineAlign&&(f.left=100-c.line+"%")));f.lineHeight=c.lineHeight;null!=c.position&&(c.writingMode==pc?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&&
389
391
  f.writingMode==c.writingMode||(f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==pc?f.width=c.size+"%":f.height=c.size+"%")}function hl(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}}
390
- function il(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}I("shaka.text.UITextDisplayer",bl);bl.prototype.setTextVisibility=bl.prototype.setTextVisibility;bl.prototype.isTextVisible=bl.prototype.isTextVisible;bl.prototype.remove=bl.prototype.remove;bl.prototype.destroy=bl.prototype.destroy;bl.prototype.append=bl.prototype.append;function jl(a,b){function c(g){for(var h=g,k=r(b),l=k.next();!l.done;l=k.next())l=l.value,l.end&&l.start<g&&(h+=l.end-l.start);g=Math.floor(h/3600);k=Math.floor(h/60%60);l=Math.floor(h%60);h=Math.floor(1E3*h%1E3);return(10>g?"0":"")+g+":"+(10>k?"0":"")+k+":"+(10>l?"0":"")+l+"."+(100>h?10>h?"00":"0":"")+h}function d(g){var h=[],k=700<=g.fontWeight,l="italic"==g.fontStyle,m=g.textDecoration.includes("underline");k&&h.push("b");l&&h.push("i");m&&h.push("u");k=h.reduce(function(p,n){return p+"<"+n+">"},
391
- "");h=h.reduceRight(function(p,n){return p+"</"+n+">"},"");return g.lineBreak?"\n":g.nestedCues.length?g.nestedCues.map(d).join(""):k+g.payload+h}var e=a.map(function(g){if(g.nestedCues.length){var h=g.clone();h.nestedCues=[];h.payload=d(g);return h}return g});a="WEBVTT\n\n";e=r(e);for(var f=e.next();!f.done;f=e.next())f=f.value,a+=c(f.startTime)+" --\x3e "+c(f.endTime)+function(g){var h=[];switch(g.textAlign){case "left":h.push("align:left");break;case "right":h.push("align:right");break;case oc:h.push("align:middle");
392
- break;case "start":h.push("align:start");break;case "end":h.push("align:end")}switch(g.writingMode){case "vertical-lr":h.push("vertical:lr");break;case "vertical-rl":h.push("vertical:rl")}return h.length?" "+h.join(" "):""}(f)+"\n",a+=f.payload+"\n\n";return a}I("shaka.text.WebVttGenerator",function(){});function kl(a,b){this.h=a;this.g=b;this.j="";this.s=void 0;this.i=!1;this.m=!0;this.l=!1}function ll(a,b,c){try{if(a.g.enabled){var d={d:1E3*c.duration,st:a.h.T()?ml:nl};d.ot=ol(c);var e=d.ot===pl||d.ot===ql||d.ot===rl||d.ot===sl;e&&(d.bl=tl(a,c.type));c.bandwidth&&(d.br=c.bandwidth/1E3);e&&d.ot!==sl&&(d.tb=ul(a,d.ot)/1E3);vl(a,b,d)}}catch(f){Va("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",f)}}
392
+ function il(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}I("shaka.text.UITextDisplayer",bl);bl.prototype.setTextVisibility=bl.prototype.setTextVisibility;bl.prototype.isTextVisible=bl.prototype.isTextVisible;bl.prototype.remove=bl.prototype.remove;bl.prototype.destroy=bl.prototype.destroy;bl.prototype.append=bl.prototype.append;function jl(a,b){function c(h,k){h=r(h);for(var l=h.next();!l.done;l=h.next())if(l=l.value,l.isContainer)c(l.nestedCues,k);else{var m=l.clone();m.nestedCues=[];m.payload=e(l);k.push(m)}return k}function d(h){for(var k=h,l=r(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 e(h){var k=
393
+ [],l=700<=h.fontWeight,m="italic"==h.fontStyle,p=h.textDecoration.includes("underline");l&&k.push("b");m&&k.push("i");p&&k.push("u");l=k.reduce(function(n,t){return n+"<"+t+">"},"");k=k.reduceRight(function(n,t){return n+"</"+t+">"},"");return h.lineBreak?"\n":h.nestedCues.length?h.nestedCues.map(e).join(""):l+h.payload+k}var f=c(a,[]);a="WEBVTT\n\n";f=r(f);for(var g=f.next();!g.done;g=f.next())g=g.value,a+=d(g.startTime)+" --\x3e "+d(g.endTime)+function(h){var k=[];switch(h.textAlign){case "left":k.push("align:left");
394
+ break;case "right":k.push("align:right");break;case oc:k.push("align:middle");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",a+=g.payload+"\n\n";return a}I("shaka.text.WebVttGenerator",function(){});function kl(a,b){this.h=a;this.g=b;this.j="";this.s=void 0;this.i=!1;this.m=!0;this.l=!1}function ll(a,b,c){try{if(a.g.enabled){var d={d:1E3*c.duration,st:a.h.T()?ml:nl};d.ot=ol(c);var e=d.ot===pl||d.ot===ql||d.ot===rl||d.ot===sl;e&&(d.bl=tl(a,c.type));c.bandwidth&&(d.br=c.bandwidth/1E3);e&&d.ot!==sl&&(d.tb=ul(a,d.ot)/1E3);vl(a,b,d)}}catch(f){Va("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",f)}}
393
395
  function wl(a,b,c){try{if(!a.g.enabled)return b;var d=xl(a);a:{switch(c){case "video/webm":case "video/mp4":var e=rl;break a;case "application/x-mpegurl":e=yl;break a}e=void 0}d.ot=e;d.su=!0;var f=zl(d);return Al(b,f)}catch(g){return Va("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function xl(a){a.j||(a.j=a.g.sessionId||window.crypto.randomUUID());return{v:1,sf:a.s,sid:a.j,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}
394
396
  function vl(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,xl(a));c.pr=a.h.xb();var e=c.ot===pl||c.ot===rl;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=Bl(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=zl(c);f&&(b.uris=b.uris.map(function(g){return Al(g,f)}))}}}
395
397
  function ol(a){var b=a.type;if(a.init)return Cl;if("video"==b)return a.codecs.includes(",")?rl:pl;if("audio"==b)return ql;if("text"==b)return"application/mp4"===a.mimeType?sl:Dl}function tl(a,b){b=a.h.ib()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN}
396
398
  function ul(a,b){var c=a.h.Qa();if(!c.length)return NaN;a=c[0];c=r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case pl:return a.videoBandwidth||NaN;case ql:return a.audioBandwidth||NaN;default:return a.bandwidth}}
397
399
  function zl(a){function b(p){return 100*c(p/100)}function c(p){return Math.round(p)}function d(p){return!Number.isNaN(p)&&null!=p&&""!==p&&!1!==p}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(p){return encodeURIComponent(p)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=r(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"===
398
400
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function Bl(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=r(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=zl(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
399
- function Al(a,b){if(!b||a.includes("offline:"))return a;a=new lb(a);a.g.set("CMCD",b);return a.toString()}var yl="m",ql="a",pl="v",rl="av",Cl="i",Dl="c",sl="tt",nl="v",ml="l";I("shaka.util.CmcdManager.StreamingFormat",{Zh:"d",pi:"h",Xi:"s",Hi:"o"});function El(){}
401
+ function Al(a,b){if(!b||a.includes("offline:"))return a;a=new lb(a);a.g.set("CMCD",b);return a.toString()}var yl="m",ql="a",pl="v",rl="av",Cl="i",Dl="c",sl="tt",nl="v",ml="l";I("shaka.util.CmcdManager.StreamingFormat",{ai:"d",si:"h",Zi:"s",Ji:"o"});function El(){}
400
402
  function Fl(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]=ff(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=ff(l)),k=Fl(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?(Sa("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Ta("Unexpected number of arguments for "+k),a[h]=b[h]):(Sa("Invalid config, unrecognized key "+
401
- k),g=!1)}return g}function Gl(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 Hl(a,b){return a&&b}I("shaka.util.ConfigUtils",El);El.convertToConfigObject=Gl;El.mergeConfigObjects=Fl;function Il(){}function Jl(a){a=dd(a);return(new lb(a)).Za}function Kl(a,b,c){function d(h){Kc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Hc(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new M(2,6,6015);var e;"string"==typeof b?e=fd(b,!0):e=b;a=dd(a);a=fd(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}I("shaka.util.FairPlayUtils",Il);
403
+ k),g=!1)}return g}function Gl(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 Hl(a,b){return a&&b}I("shaka.util.ConfigUtils",El);El.convertToConfigObject=Gl;El.mergeConfigObjects=Fl;function Il(){}function Jl(a){a=dd(a);return(new lb(a)).ab}function Kl(a,b,c){function d(h){Kc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Hc(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new M(2,6,6015);var e;"string"==typeof b?e=fd(b,!0):e=b;a=dd(a);a=fd(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}I("shaka.util.FairPlayUtils",Il);
402
404
  Il.commonFairPlayResponse=function(a,b){if(2===a){try{var c=ad(b.data)}catch(e){return}a=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),a=!0);try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=Ic(jd(c)))}};Il.conaxFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};Il.ezdrmFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};
403
405
  Il.verimatrixFairPlayRequest=function(a,b){2===a&&(a=Hc(b.body),a=id(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=ed("spc="+a))};Il.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=dd(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 Kl(a,d,b)};
404
406
  Il.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=dd(a).split(";").pop();return Kl(a,c,b)};Il.verimatrixInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=dd(a).split("skd://").pop();return Kl(a,c,b)};Il.initDataTransform=Kl;Il.defaultGetContentId=Jl;
@@ -414,121 +416,121 @@ minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth
414
416
  function Ol(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 Fl(a,b,c||Ml(),d,"")}
415
417
  function Nl(a,b){var c=a.filter(function(g){return"variant"==g.type}),d=[],e=Vb(b,c.map(function(g){return g.language}));e&&(d=c.filter(function(g){return Mb(g.language)==e}));0==d.length&&(d=c.filter(function(g){return g.primary}));0==d.length&&(c.map(function(g){return g.language}),d=c);var f=d.filter(function(g){return g.height&&480>=g.height});f.length&&(f.sort(function(g,h){return h.height-g.height}),d=f.filter(function(g){return g.height==f[0].height}));b=[];d.length&&(c=Math.floor(d.length/
416
418
  2),d.sort(function(g,h){return g.bandwidth-h.bandwidth}),b.push(d[c]));a=r(a);for(d=a.next();!d.done;d=a.next())d=d.value,d.type!=Ib&&"image"!=d.type||b.push(d);return b}I("shaka.util.PlayerConfiguration",Ll);Ll.mergeConfigObjects=Ol;Ll.createDefault=Ml;function Pl(){this.g=null;this.h=[]}function Ql(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 Rl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=r(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}
417
- function Sl(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=r(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 Tl(){this.i=this.h=null;this.g=[]}function Ul(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 Vl(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.O=this.P=this.J=this.K=this.M=this.l=this.s=NaN;this.g=new Pl;this.h=new Tl};function S(a,b){fb.call(this);var c=this;this.l=Wl;this.yd=this.g=null;this.aa=!1;this.Hd=new xf;this.eb=new xf;this.B=new xf;this.fb=this.i=this.Id=this.K=this.j=this.ia=this.M=this.hf=this.V=this.Kd=this.O=this.Bd=this.J=this.Xa=this.F=this.I=this.m=this.H=null;this.Kc=!1;this.Xe=this.C=null;this.df=1E9;this.h=Xl(this);this.Nc={width:Infinity,height:Infinity};this.s=null;this.za=new Oe(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.La=this.h.preferredTextLanguage;
418
- this.Ec=this.h.preferredTextRole;this.ub=this.h.preferForcedSubs;this.gb=[];this.Qc=null;b&&b(this);this.H=Yl(this);this.H.Le(this.h.streaming.forceHTTPS);this.G=null;Zl&&(this.G=Zl());this.Hd.o(window,"online",function(){c.De()});this.P={name:"detach"};this.X={name:"attach"};this.$={name:"unload"};this.ef={name:"manifest-parser"};this.cf={name:"manifest"};this.Wa={name:"media-source"};this.$e={name:"drm-engine"};this.Z={name:"load"};this.fe={name:"src-equals-drm-engine"};this.Ya={name:"src-equals"};
419
- var d=new Map;d.set(this.X,function(e,f){return cf($l(c,e,f))});d.set(this.P,function(e){e.mediaElement&&(c.eb.Rb(),e.mediaElement=null);c.G&&c.G.release();c.g=null;e=Promise.resolve();return cf(e)});d.set(this.$,function(e){return cf(am(c,e))});d.set(this.Wa,function(e){e=bm(c,e);return cf(e)});d.set(this.ef,function(e,f){e=cm(c,e,f);return cf(e)});d.set(this.cf,function(e){return dm(c,e)});d.set(this.$e,function(e){e=em(c,e);return cf(e)});d.set(this.Z,function(e,f){return cf(fm(c,e,f))});d.set(this.fe,
420
- function(e,f){e=gm(c,e,f);return cf(e)});d.set(this.Ya,function(e,f){return hm(c,e,f)});this.sa=new Pk(this.P,{Qg: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.mediaElement!=h.mediaElement?c.P:g==c.X?c.X:g==c.Wa||g==c.Z?c.Wa:g==c.Ya?c.fe:null);e==c.Wa&&(k=g==c.Z&&f.mediaElement==h.mediaElement?c.ef:c.$);e==c.ef&&(k=im(c.Z,c.cf,c.$,g,f,h));e==c.cf&&(k=im(c.Z,c.$e,c.$,g,f,h));e==c.$e&&(k=im(c.Z,c.Z,c.$,g,f,h));e==c.fe&&(k=g==c.Ya&&f.mediaElement==h.mediaElement?c.Ya:c.$);
421
- if(e==c.Z||e==c.Ya)k=c.$;e==c.$&&(k=h.mediaElement&&f.mediaElement==h.mediaElement?c.X:c.P);return k},vg:function(e,f,g){c.dispatchEvent(jm("onstatechange",(new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return G(function(f){return 1==f.g?u(f,am(c,e),2):f.return(e.mediaElement?c.X:c.P)})},lh:function(e){c.dispatchEvent(jm("onstateidle",(new Map).set("state",e.name)))}});this.gf=new O(function(){Zd(c.i.variants,c.h.restrictions,c.Nc)&&km(c)});a&&this.Bc(a,!0)}pa(S,fb);
422
- function lm(a){null!=a.M&&(a.M.release(),a.M=null)}function mm(a,b){if(b.lcevc.enabled){var c=a.Qa();c&&c[0]&&c[0].videoMimeType==nm.ts&&(navigator.userAgent.match(/Edge?\//)||navigator.userAgent.match(/Edge\//))&&(b.streaming.forceTransmux||Ta("LCEVC Warning: For MPEG-2 TS decoding the config.streaming.forceTransmux must be enabled."));lm(a);null==a.M&&(a.M=new Qi(a.g,a.hf,b.lcevc),a.I&&(a.I.G=a.M))}else lm(a)}function jm(a,b){return new L(a,b)}q=S.prototype;
423
- q.destroy=function(){var a=this,b;return G(function(c){switch(c.g){case 1:if(a.l==om)return c.return();lm(a);a.l=om;b=Uk(a.sa,function(){return{node:a.P,payload:Qk(),Jb:!1}});return u(c,new Promise(function(d){b.mc=function(){};b.Ed=function(){d()};b.Qb=function(){d()};b.onError=function(){d()};b.Gd=function(){d()}}),2);case 2:return u(c,a.sa.destroy(),3);case 3:a.Hd&&(a.Hd.release(),a.Hd=null);a.eb&&(a.eb.release(),a.eb=null);a.B&&(a.B.release(),a.B=null);a.Xe=null;a.C=null;a.h=null;a.s=null;a.yd=
419
+ function Sl(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=r(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 Tl(){this.i=this.h=null;this.g=[]}function Ul(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 Vl(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.O=this.P=this.J=this.K=this.M=this.l=this.s=NaN;this.g=new Pl;this.h=new Tl};function S(a,b){fb.call(this);var c=this;this.l=Wl;this.Bd=this.g=null;this.aa=!1;this.Id=new xf;this.gb=new xf;this.B=new xf;this.fb=this.i=this.Kd=this.K=this.j=this.ka=this.M=this.kf=this.V=this.sa=this.O=this.Dd=this.J=this.Za=this.F=this.I=this.m=this.H=null;this.Nc=!1;this.Ze=this.C=null;this.gf=1E9;this.h=Xl(this);this.Qc={width:Infinity,height:Infinity};this.s=null;this.La=new Oe(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.Xa=this.h.preferredTextLanguage;
420
+ this.Kc=this.h.preferredTextRole;this.Ec=this.h.preferForcedSubs;this.ub=[];this.Rc=null;b&&b(this);this.H=Yl(this);this.H.Me(this.h.streaming.forceHTTPS);this.G=null;Zl&&(this.G=Zl());this.Id.o(window,"online",function(){c.Ee()});this.P={name:"detach"};this.X={name:"attach"};this.$={name:"unload"};this.hf={name:"manifest-parser"};this.ef={name:"manifest"};this.Ya={name:"media-source"};this.cf={name:"drm-engine"};this.Z={name:"load"};this.fe={name:"src-equals-drm-engine"};this.$a={name:"src-equals"};
421
+ var d=new Map;d.set(this.X,function(e,f){return cf($l(c,e,f))});d.set(this.P,function(e){e.mediaElement&&(c.gb.Rb(),e.mediaElement=null);c.G&&c.G.release();c.g=null;e=Promise.resolve();return cf(e)});d.set(this.$,function(e){return cf(am(c,e))});d.set(this.Ya,function(e){e=bm(c,e);return cf(e)});d.set(this.hf,function(e,f){e=cm(c,e,f);return cf(e)});d.set(this.ef,function(e){return dm(c,e)});d.set(this.cf,function(e){e=em(c,e);return cf(e)});d.set(this.Z,function(e,f){return cf(fm(c,e,f))});d.set(this.fe,
422
+ function(e,f){e=gm(c,e,f);return cf(e)});d.set(this.$a,function(e,f){return hm(c,e,f)});this.ua=new Pk(this.P,{Sg: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.mediaElement!=h.mediaElement?c.P:g==c.X?c.X:g==c.Ya||g==c.Z?c.Ya:g==c.$a?c.fe:null);e==c.Ya&&(k=g==c.Z&&f.mediaElement==h.mediaElement?c.hf:c.$);e==c.hf&&(k=im(c.Z,c.ef,c.$,g,f,h));e==c.ef&&(k=im(c.Z,c.cf,c.$,g,f,h));e==c.cf&&(k=im(c.Z,c.Z,c.$,g,f,h));e==c.fe&&(k=g==c.$a&&f.mediaElement==h.mediaElement?c.$a:c.$);
423
+ if(e==c.Z||e==c.$a)k=c.$;e==c.$&&(k=h.mediaElement&&f.mediaElement==h.mediaElement?c.X:c.P);return k},xg:function(e,f,g){c.dispatchEvent(jm("onstatechange",(new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return G(function(f){return 1==f.g?u(f,am(c,e),2):f.return(e.mediaElement?c.X:c.P)})},nh:function(e){c.dispatchEvent(jm("onstateidle",(new Map).set("state",e.name)))}});this.jf=new O(function(){Zd(c.i.variants,c.h.restrictions,c.Qc)&&km(c)});a&&this.Bc(a,!0)}pa(S,fb);
424
+ function lm(a){null!=a.M&&(a.M.release(),a.M=null)}function mm(a,b){if(b.lcevc.enabled){var c=a.Qa();c&&c[0]&&c[0].videoMimeType==nm.ts&&(navigator.userAgent.match(/Edge?\//)||navigator.userAgent.match(/Edge\//))&&(b.streaming.forceTransmux||Ta("LCEVC Warning: For MPEG-2 TS decoding the config.streaming.forceTransmux must be enabled."));lm(a);null==a.M&&(a.M=new Qi(a.g,a.kf,b.lcevc),a.I&&(a.I.G=a.M))}else lm(a)}function jm(a,b){return new L(a,b)}q=S.prototype;
425
+ q.destroy=function(){var a=this,b;return G(function(c){switch(c.g){case 1:if(a.l==om)return c.return();lm(a);a.l=om;b=Uk(a.ua,function(){return{node:a.P,payload:Qk(),Jb:!1}});return u(c,new Promise(function(d){b.mc=function(){};b.Ed=function(){d()};b.Qb=function(){d()};b.onError=function(){d()};b.Gd=function(){d()}}),2);case 2:return u(c,a.ua.destroy(),3);case 3:a.Id&&(a.Id.release(),a.Id=null);a.gb&&(a.gb.release(),a.gb=null);a.B&&(a.B.release(),a.B=null);a.Ze=null;a.C=null;a.h=null;a.s=null;a.Bd=
424
426
  null;a.V=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),B(c)}})};
425
427
  function pm(){window.Promise||Ta("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Sc("Trident/"))return!1;var a=Xc();return a&&13>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Oc()?!0:Pc("application/x-mpegurl")}
426
- q.Bc=function(a,b){b=void 0===b?!0:b;if(this.l==om)return Promise.reject(qm());var c=Qk();c.mediaElement=a;Oc()||(b=!1);var d=b?this.Wa:this.X;a=Uk(this.sa,function(){return{node:d,payload:c,Jb:!1}});a.mc=function(){};return rm(a)};q.mf=function(a){this.hf=a};q.detach=function(){var a=this;if(this.l==om)return Promise.reject(qm());var b=Uk(this.sa,function(){return{node:a.P,payload:Qk(),Jb:!1}});b.mc=function(){};return rm(b)};
427
- q.Ye=function(a){var b=this;a=void 0===a?!0:a;if(this.l==om)return Promise.reject(qm());this.Kc=!1;Oc()||(a=!1);lm(this);var c=Qk(),d=Uk(this.sa,function(e){var f=e.mediaElement&&a?b.Wa:e.mediaElement?b.X:b.P;c.mediaElement=e.mediaElement;return{node:f,payload:c,Jb:!1}});d.mc=function(){};return rm(d)};q.Nh=function(a){this.Qc=a};
428
- q.load=function(a,b,c){var d=this;this.Qc=null;this.Kc=!1;if(this.l==om)return Promise.reject(qm());this.dispatchEvent(jm("loading"));var e=Qk();e.uri=a;e.Se=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=sm(this,e)?this.Ya:this.Z,g=Uk(this.sa,function(h){if(null==h.mediaElement)return null;e.mediaElement=h.mediaElement;return{node:f,payload:e,Jb:!0}});this.s=new Vl;this.V=tm(this);g.mc=function(){};return new Promise(function(h,k){g.Gd=function(){return k(new M(2,7,7002))};g.Ed=
428
+ q.Bc=function(a,b){b=void 0===b?!0:b;if(this.l==om)return Promise.reject(qm());var c=Qk();c.mediaElement=a;Oc()||(b=!1);var d=b?this.Ya:this.X;a=Uk(this.ua,function(){return{node:d,payload:c,Jb:!1}});a.mc=function(){};return rm(a)};q.pf=function(a){this.kf=a};q.detach=function(){var a=this;if(this.l==om)return Promise.reject(qm());var b=Uk(this.ua,function(){return{node:a.P,payload:Qk(),Jb:!1}});b.mc=function(){};return rm(b)};
429
+ q.$e=function(a){var b=this;a=void 0===a?!0:a;if(this.l==om)return Promise.reject(qm());this.Nc=!1;Oc()||(a=!1);lm(this);var c=Qk(),d=Uk(this.ua,function(e){var f=e.mediaElement&&a?b.Ya:e.mediaElement?b.X:b.P;c.mediaElement=e.mediaElement;return{node:f,payload:c,Jb:!1}});d.mc=function(){};return rm(d)};q.Ph=function(a){this.Rc=a};
430
+ q.load=function(a,b,c){var d=this;this.Rc=null;this.Nc=!1;if(this.l==om)return Promise.reject(qm());this.dispatchEvent(jm("loading"));var e=Qk();e.uri=a;e.Te=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=sm(this,e)?this.$a:this.Z,g=Uk(this.ua,function(h){if(null==h.mediaElement)return null;e.mediaElement=h.mediaElement;return{node:f,payload:e,Jb:!0}});this.s=new Vl;this.V=tm(this);g.mc=function(){};return new Promise(function(h,k){g.Gd=function(){return k(new M(2,7,7002))};g.Ed=
429
431
  function(){h();d.dispatchEvent(jm("loaded"))};g.Qb=function(){return k(qm())};g.onError=function(l){return k(l)}})};function sm(a,b){if(!Oc())return!0;var c=b.mimeType,d=b.uri||"";c||(c=ch(d),c=nm[c]);if(c){if(""==(b.mediaElement||Qc()).canPlayType(c))return!1;if(!Oc()||!(c in bh||ch(d)in dh)||a.h.streaming.preferNativeHls)return!0;if(Vc())return a.h.streaming.useNativeHlsOnSafari}return!1}
430
- function $l(a,b,c){null==b.mediaElement&&(b.mediaElement=c.mediaElement,a.eb.o(b.mediaElement,"error",function(){var d=um(a);d&&vm(a,d)}));a.g=b.mediaElement;return Promise.resolve()}
431
- function am(a,b){var c,d,e,f,g,h,k,l,m;return G(function(p){switch(p.g){case 1:return a.l!=om&&(a.l=Wl),c=a.gb.map(function(n){return n()}),a.gb=[],u(p,Promise.all(c),2);case 2:a.dispatchEvent(jm("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;b.mediaElement&&a.B.Rb();a.gf.stop();a.Xa&&(a.Xa.release(),a.Xa=null);a.Bd&&(a.Bd.stop(),a.Bd=null);if(!a.K){p.D(3);break}return u(p,a.K.stop(),4);case 4:a.K=null,a.Id=null;case 3:if(!a.C){p.D(5);break}return u(p,a.C.stop(),5);case 5:if(!a.j){p.D(7);
432
- break}return u(p,a.j.destroy(),8);case 8:a.j=null;case 7:a.J&&(a.J.release(),a.J=null);a.F&&(a.F.release(),a.F=null);if(!a.I){p.D(9);break}return u(p,a.I.destroy(),10);case 10:a.I=null;case 9:if(a.G)a.G.onAssetUnload();if(!b.mediaElement||!b.mediaElement.src){p.D(11);break}return u(p,new Promise(function(n){return(new O(n)).R(.1)}),12);case 12:for(b.mediaElement.removeAttribute("src"),b.mediaElement.load();b.mediaElement.lastChild;)b.mediaElement.removeChild(b.mediaElement.firstChild);case 11:if(!a.m){p.D(13);
433
- break}return u(p,a.m.destroy(),14);case 14:a.m=null;case 13:a.fb=null;a.O=null;if(a.i){d=r(a.i.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=r([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=r(a.i.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.i=null;a.s=new Vl;a.bf=null;wm(a);B(p)}})}
434
- function bm(a,b){var c,d,e,f,g;return G(function(h){if(1==h.g)return c=a.h.textDisplayFactory,d=c(),a.bf=c,e=xm(b.mediaElement,d,function(k,l,m){ym(a,k,l,m)},a.M),e.configure(a.h.mediaSource),f=a.h.manifest,g=f.segmentRelativeVttTiming,e.J=g,u(h,e.K,2);a.I=e;B(h)})}
435
- function cm(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.H,a.fb=d,f=a,u(h,ah(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.Id=h.h;a.K=a.Id();g=ff(a.h.manifest);c.mediaElement&&"AUDIO"===c.mediaElement.nodeName&&(g.disableVideo=!0);a.K.configure(g);B(h)})}
436
- function dm(a,b){var c=b.uri;b=a.H;a.Kd=new fk(function(){return a.Ja()});a.Kd.addEventListener("regionadd",function(f){f=f.region;zm(a,"timelineregionadded",f);if(a.G)a.G.onDashTimedMetadata(f)});a.ia=null;a.h.streaming.observeQualityChanges&&(a.ia=new bk(function(){return a.ib()}),a.ia.addEventListener("qualitychange",function(f){var g=f.quality;f=f.position;g=(new Map).set("mediaQuality",{bandwidth:g.bandwidth,audioSamplingRate:g.audioSamplingRate,codecs:g.codecs,contentType:g.contentType,frameRate:g.frameRate,
432
+ function $l(a,b,c){null==b.mediaElement&&(b.mediaElement=c.mediaElement,a.gb.o(b.mediaElement,"error",function(){var d=um(a);d&&vm(a,d)}));a.g=b.mediaElement;return Promise.resolve()}
433
+ function am(a,b){var c,d,e,f,g,h,k,l,m;return G(function(p){switch(p.g){case 1:return a.l!=om&&(a.l=Wl),c=a.ub.map(function(n){return n()}),a.ub=[],u(p,Promise.all(c),2);case 2:a.dispatchEvent(jm("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;a.sa&&(a.sa.release(),a.sa=null);b.mediaElement&&a.B.Rb();a.jf.stop();a.Za&&(a.Za.release(),a.Za=null);a.Dd&&(a.Dd.stop(),a.Dd=null);if(!a.K){p.D(3);break}return u(p,a.K.stop(),4);case 4:a.K=null,a.Kd=null;case 3:if(!a.C){p.D(5);break}return u(p,a.C.stop(),
434
+ 5);case 5:if(!a.j){p.D(7);break}return u(p,a.j.destroy(),8);case 8:a.j=null;case 7:a.J&&(a.J.release(),a.J=null);a.F&&(a.F.release(),a.F=null);if(!a.I){p.D(9);break}return u(p,a.I.destroy(),10);case 10:a.I=null;case 9:if(a.G)a.G.onAssetUnload();if(!b.mediaElement||!b.mediaElement.src){p.D(11);break}return u(p,new Promise(function(n){return(new O(n)).R(.1)}),12);case 12:for(b.mediaElement.removeAttribute("src"),b.mediaElement.load();b.mediaElement.lastChild;)b.mediaElement.removeChild(b.mediaElement.firstChild);
435
+ case 11:if(!a.m){p.D(13);break}return u(p,a.m.destroy(),14);case 14:a.m=null;case 13:a.fb=null;a.O=null;if(a.i){d=r(a.i.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=r([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=r(a.i.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.i=null;a.s=new Vl;a.df=null;wm(a);B(p)}})}
436
+ function bm(a,b){var c,d,e,f,g;return G(function(h){if(1==h.g)return c=a.h.textDisplayFactory,d=c(),a.df=c,e=xm(b.mediaElement,d,function(k,l,m){ym(a,k,l,m)},a.M),e.configure(a.h.mediaSource),f=a.h.manifest,g=f.segmentRelativeVttTiming,e.J=g,u(h,e.K,2);a.I=e;B(h)})}
437
+ function cm(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.H,a.fb=d,f=a,u(h,ah(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.Kd=h.h;a.K=a.Kd();g=ff(a.h.manifest);c.mediaElement&&"AUDIO"===c.mediaElement.nodeName&&(g.disableVideo=!0);a.K.configure(g);B(h)})}
438
+ function dm(a,b){var c=b.uri;b=a.H;a.sa=new fk(function(){return a.Ja()});a.sa.addEventListener("regionadd",function(f){f=f.region;zm(a,"timelineregionadded",f);if(a.G)a.G.onDashTimedMetadata(f)});a.ka=null;a.h.streaming.observeQualityChanges&&(a.ka=new bk(function(){return a.ib()}),a.ka.addEventListener("qualitychange",function(f){var g=f.quality;f=f.position;g=(new Map).set("mediaQuality",{bandwidth:g.bandwidth,audioSamplingRate:g.audioSamplingRate,codecs:g.codecs,contentType:g.contentType,frameRate:g.frameRate,
437
439
  height:g.height,mimeType:g.mimeType,channelsCount:g.channelsCount,pixelAspectRatio:g.pixelAspectRatio,width:g.width}).set("position",f);a.dispatchEvent(jm("mediaqualitychanged",g))}));var d={networkingEngine:b,modifyManifestRequest:function(f,g){var h=a.V;try{h.g.enabled&&(h.s=g.format,vl(h,f,{ot:yl,su:!h.i}))}catch(k){Va("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",k)}},modifySegmentRequest:function(f,g){ll(a.V,f,g)},filter:function(f){return Am(a,f)},makeTextStreamsForClosedCaptions:function(f){return Bm(a,
438
- f)},onTimelineRegionAdded:function(f){var g=a.Kd;a:{var h=r(g.g);for(var k=h.next();!k.done;k=h.next())if(k=k.value,k.schemeIdUri==f.schemeIdUri&&k.id==f.id&&k.startTime==f.startTime&&k.endTime==f.endTime){h=k;break a}h=null}null==h&&(g.g.add(f),f=new L("regionadd",new Map([["region",f]])),g.dispatchEvent(f))},onEvent:function(f){return a.dispatchEvent(f)},onError:function(f){return vm(a,f)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
440
+ f)},onTimelineRegionAdded:function(f){var g=a.sa;a:{var h=r(g.g);for(var k=h.next();!k.done;k=h.next())if(k=k.value,k.schemeIdUri==f.schemeIdUri&&k.id==f.id&&k.startTime==f.startTime&&k.endTime==f.endTime){h=k;break a}h=null}null==h&&(g.g.add(f),f=new L("regionadd",new Map([["region",f]])),g.dispatchEvent(f))},onEvent:function(f){return a.dispatchEvent(f)},onError:function(f){return vm(a,f)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
439
441
  enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&a.j.updateDuration()},newDrmInfo:function(f){var g=a.m?a.m.g:null;g&&a.m.C&&Cm(a,g.keySystem,f)}},e=Date.now()/1E3;return new Ze(function(){var f,g,h,k;return G(function(l){if(1==l.g)return f=a,u(l,a.K.start(c,d),2);f.i=l.h;g=jm("manifestparsed");a.dispatchEvent(g);if(0==a.i.variants.length)throw new M(2,4,4036);Dm(a.i);h=Date.now()/1E3;k=h-e;a.s.H=k;B(l)})}(),function(){return a.K.stop()})}
440
442
  function em(a,b){var c,d;return G(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.m=Em(a,{Ob:a.H,onError:function(f){vm(a,f)},Fd:function(f){Fm(a,f)},onExpirationUpdated:function(f,g){Gm(a,f,g)},onEvent:function(f){a.dispatchEvent(f);"drmsessionupdate"==f.type&&d&&(d=!1,a.s.j=Date.now()/1E3-c,a.M&&(f=a.M,f.g&&f.h.classList.add("shaka-hidden")))}}),a.m.configure(a.h.drm),u(e,vg(a.m,a.i.variants,a.i.offlineSessionIds),2)):3!=e.g?u(e,a.m.Bc(b.mediaElement),3):u(e,Am(a,a.i),0)})}
441
- function fm(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A,z;return G(function(C){switch(C.g){case 1:b.startTime=c.startTime;null!=a.Qc&&(b.startTime=a.Qc,a.Qc=null);d=b.mediaElement;e=b.uri;a.fb=e;a.J=new Xj({vd:function(){return d.playbackRate},sd:function(){return d.defaultPlaybackRate},Ne:function(E){d.playbackRate=E},Mf:function(E){d.currentTime+=E}});f=function(){return Hm(a)};g=function(){return Im(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);mm(a,a.h);
442
- h=a.h.abrFactory;a.C&&a.Xe==h||(a.Xe=h,a.C=h(),"function"!=typeof a.C.setMediaElement&&(Fe("AbrManager","Please use an AbrManager with setMediaElement function."),a.C.setMediaElement=function(){}),a.C.configure(a.h.abr));a.za=new Oe(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.La=a.h.preferredTextLanguage;a.Ec=a.h.preferredTextRole;a.ub=a.h.preferForcedSubs;Jm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C.init(function(E,F,H){a.j&&E!=a.j.l&&
443
+ function fm(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A,z;return G(function(C){switch(C.g){case 1:b.startTime=c.startTime;null!=a.Rc&&(b.startTime=a.Rc,a.Rc=null);d=b.mediaElement;e=b.uri;a.fb=e;a.J=new Xj({wd:function(){return d.playbackRate},td:function(){return d.defaultPlaybackRate},Oe:function(E){d.playbackRate=E},Of:function(E){d.currentTime+=E}});f=function(){return Hm(a)};g=function(){return Im(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);mm(a,a.h);
444
+ h=a.h.abrFactory;a.C&&a.Ze==h||(a.Ze=h,a.C=h(),"function"!=typeof a.C.setMediaElement&&(Fe("AbrManager","Please use an AbrManager with setMediaElement function."),a.C.setMediaElement=function(){}),a.C.configure(a.h.abr));a.La=new Oe(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.Xa=a.h.preferredTextLanguage;a.Kc=a.h.preferredTextRole;a.Ec=a.h.preferForcedSubs;Jm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C.init(function(E,F,H){a.j&&E!=a.j.l&&
443
445
  Km(a,E,!0,void 0===F?!1:F,void 0===H?0:H)});a.C.setMediaElement(d);Ld(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=Lm(a);a.j.configure(a.h.streaming);a.l=Mm;d.textTracks&&a.B.o(d.textTracks,"addtrack",function(E){if(E.track)switch(E=E.track,E.kind){case "chapters":Nm(a,E)}});a.dispatchEvent(jm("streaming"));k=null;(l=a.j.l)||(k=km(a));m=[];p=l||k;n=r([p.video,p.audio]);for(t=n.next();!t.done;t=n.next())(v=t.value)&&!v.segmentIndex&&
444
- m.push(v.createSegmentIndex());if(!(0<m.length)){C.D(2);break}return u(C,Promise.all(m),2);case 2:a.F=Om(a,b.startTime);a.Xa=Pm(a);y=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);Qm(a,y);if(l){C.D(4);break}Km(a,k,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){C.D(5);break}w=a.F.jd();return u(C,Rm(k,w),6);case 6:x=C.h,a.F.ie(x);case 5:Sm(a,null,ne(k));case 4:return a.F.ge(),A=a.yb().find(function(E){return E.active}),A||((z=xe(a.i.textStreams,a.La,a.Ec,a.ub)[0]||null)&&Ul(a.s.h,z,!0),
445
- k&&(z?(k.audio&&Tm(a,k.audio,z)&&(a.aa=!0),a.aa&&a.I.m.setTextVisibility(!0),Um(a)):a.aa=!1),z&&(a.h.streaming.alwaysStreamText||a.Nb())&&yk(a.j,z)),u(C,a.j.start(),7);case 7:a.h.abr.enabled&&(a.C.enable(),Vm(a)),be(a.j?a.j.l:null,a.i),Wm(a.i),Xm(a),Ym(a),a.i.variants.some(function(E){return E.primary}),a.Kc=!0,a.B.Da(d,"loadedmetadata",function(){a.s.m=Date.now()/1E3-c.Se}),B(C)}})}
446
+ m.push(v.createSegmentIndex());if(!(0<m.length)){C.D(2);break}return u(C,Promise.all(m),2);case 2:a.F=Om(a,b.startTime);a.Za=Pm(a);y=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);Qm(a,y);if(l){C.D(4);break}Km(a,k,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){C.D(5);break}w=a.F.kd();return u(C,Rm(k,w),6);case 6:x=C.h,a.F.ie(x);case 5:Sm(a,null,ne(k));case 4:return a.F.ge(),A=a.yb().find(function(E){return E.active}),A||((z=xe(a.i.textStreams,a.Xa,a.Kc,a.Ec)[0]||null)&&Ul(a.s.h,z,!0),
447
+ k&&(z?(k.audio&&Tm(a,k.audio,z)&&(a.aa=!0),a.aa&&a.I.m.setTextVisibility(!0),Um(a)):a.aa=!1),z&&(a.h.streaming.alwaysStreamText||a.Nb())&&yk(a.j,z)),u(C,a.j.start(),7);case 7:a.h.abr.enabled&&(a.C.enable(),Vm(a)),be(a.j?a.j.l:null,a.i),Wm(a.i),Xm(a),Ym(a),a.i.variants.some(function(E){return E.primary}),a.Nc=!0,a.B.Da(d,"loadedmetadata",function(){a.s.m=Date.now()/1E3-c.Te}),B(C)}})}
446
448
  function gm(a,b,c){var d,e,f,g,h,k,l;return G(function(m){return 1==m.g?(d=Jb,e=Date.now()/1E3,f=!0,a.m=Em(a,{Ob:a.H,onError:function(p){vm(a,p)},Fd:function(p){Fm(a,p)},onExpirationUpdated:function(p,n){Gm(a,p,n)},onEvent:function(p){a.dispatchEvent(p);"drmsessionupdate"==p.type&&f&&(f=!1,a.s.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=ch(g),k=nm[h],"application/x-mpegurl"==k&&Vc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,
447
449
  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?Bd(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:[]},
448
450
  a.m.V=!0,u(m,vg(a.m,[l],[]),2)):u(m,a.m.Bc(b.mediaElement),0)})}
449
- function hm(a,b,c){function d(){return Hm(a)}b.uri=c.uri;b.startTime=c.startTime;a.fb=b.uri;var e=b.mediaElement;a.F=new Lj(e);var f=!1;a.gb.push(function(){f=!0});null!=b.startTime&&a.F.ie(b.startTime);a.J=new Xj({vd:function(){return e.playbackRate},sd:function(){return e.defaultPlaybackRate},Ne:function(k){e.playbackRate=k},Mf:function(k){e.currentTime+=k}});Qm(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 Im(a)});
450
- "none"!=e.preload&&a.B.Da(e,"loadedmetadata",function(){a.s.m=Date.now()/1E3-c.Se});e.audioTracks&&(a.B.o(e.audioTracks,"addtrack",function(){return Xm(a)}),a.B.o(e.audioTracks,"removetrack",function(){return Xm(a)}),a.B.o(e.audioTracks,"change",function(){return Xm(a)}));e.textTracks&&(a.B.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":Zm(a,k);break;case "chapters":Nm(a,k);break;default:Xm(a)}}),a.B.o(e.textTracks,"removetrack",function(){return Xm(a)}),
451
+ function hm(a,b,c){function d(){return Hm(a)}b.uri=c.uri;b.startTime=c.startTime;a.fb=b.uri;var e=b.mediaElement;a.F=new Lj(e);var f=!1;a.ub.push(function(){f=!0});null!=b.startTime&&a.F.ie(b.startTime);a.J=new Xj({wd:function(){return e.playbackRate},td:function(){return e.defaultPlaybackRate},Oe:function(k){e.playbackRate=k},Of:function(k){e.currentTime+=k}});Qm(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 Im(a)});
452
+ "none"!=e.preload&&a.B.Da(e,"loadedmetadata",function(){a.s.m=Date.now()/1E3-c.Te});e.audioTracks&&(a.B.o(e.audioTracks,"addtrack",function(){return Xm(a)}),a.B.o(e.audioTracks,"removetrack",function(){return Xm(a)}),a.B.o(e.audioTracks,"change",function(){return Xm(a)}));e.textTracks&&(a.B.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":Zm(a,k);break;case "chapters":Nm(a,k);break;default:Xm(a)}}),a.B.o(e.textTracks,"removetrack",function(){return Xm(a)}),
451
453
  a.B.o(e.textTracks,"change",function(){return Xm(a)}));var g=ch(b.uri);e.src=wl(a.V,b.uri,nm[g]);(Tc()||Sc("Web0S"))&&e.load();a.l=$m;a.dispatchEvent(jm("streaming"));var h=new Lc;Cj(e,HTMLMediaElement.HAVE_METADATA,a.B,function(){a.F.ge();h.resolve()});Cj(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.B,function(){var k;return G(function(l){if(1==l.g)return an(a),k=bn(a),k.find(function(m){return"disabled"!=m.mode})?l.D(2):u(l,new Promise(function(m){a.B.Da(e.textTracks,"change",m);(new O(m)).R(1)}),2);
452
- if(f)return l.return();cn(a);B(l)})});e.error?h.reject(um(a)):"none"==e.preload&&(Ta('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.Da(e,"error",function(){h.reject(um(a))});return(new Ze(h,function(){h.reject(new M(2,7,7001));return Promise.resolve()})).ha(function(){a.Kc=!0})}
453
- function an(a){var b=a.h.preferredAudioLanguage;if(""!=b){a.Md(b);var c=a.h.preferredVariantRole;""!=c&&a.Md(b,c)}}function cn(a){var b=a.h.preferredTextLanguage,c=a.h.preferForcedSubs;if(""!=b){a.Ge(b,"",c);var d=a.h.preferredTextRole;""!=d&&a.Ge(b,d,c)}}
454
- function Zm(a,b){if("metadata"==b.kind){b.mode="hidden";a.B.o(b,"cuechange",function(){if(b.activeCues)for(var d=r(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,dn(a,e.startTime,e.endTime,e.type,e.value),a.G)a.G.onCueMetadataChange(e.value)});var c=(new O(function(){var d=en(a);d=r(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).ya().R(.5);a.gb.push(function(){c.stop()})}}
454
+ if(f)return l.return();cn(a);B(l)})});e.error?h.reject(um(a)):"none"==e.preload&&(Ta('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.Da(e,"error",function(){h.reject(um(a))});return(new Ze(h,function(){h.reject(new M(2,7,7001));return Promise.resolve()})).ia(function(){a.Nc=!0})}
455
+ function an(a){var b=a.h.preferredAudioLanguage;if(""!=b){a.Md(b);var c=a.h.preferredVariantRole;""!=c&&a.Md(b,c)}}function cn(a){var b=a.h.preferredTextLanguage,c=a.h.preferForcedSubs;if(""!=b){a.He(b,"",c);var d=a.h.preferredTextRole;""!=d&&a.He(b,d,c)}}
456
+ function Zm(a,b){if("metadata"==b.kind){b.mode="hidden";a.B.o(b,"cuechange",function(){if(b.activeCues)for(var d=r(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,dn(a,e.startTime,e.endTime,e.type,e.value),a.G)a.G.onCueMetadataChange(e.value)});var c=(new O(function(){var d=en(a);d=r(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).za().R(.5);a.ub.push(function(){c.stop()})}}
455
457
  function ym(a,b,c,d){b=r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.data&&e.cueTime&&e.frames){var f=e.cueTime+c,g=d;g&&f>g&&(g=f);for(var h=r(e.frames),k=h.next();!k.done;k=h.next())dn(a,f,g,"org.id3",k.value);if(a.G)a.G.onHlsTimedMetadata(e,f)}}function dn(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(jm("metadata",b))}
456
- function Nm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new O(function(){b.mode="hidden"})).ya().R(.5);a.gb.push(function(){c.stop()})}}function Dm(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 Em(a,b){return new og(b,a.h.drm.updateExpirationTime)}
458
+ function Nm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new O(function(){b.mode="hidden"})).za().R(.5);a.ub.push(function(){c.stop()})}}function Dm(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 Em(a,b){return new og(b,a.h.drm.updateExpirationTime)}
457
459
  function Yl(a){return new kf(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(jm("downloadheadersreceived",b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(jm("downloadfailed",b))})}
458
- function Om(a,b){return new Mj(a.g,a.i,a.h.streaming,b,function(){a.Xa&&ak(a.Xa,!0);a.j&&a.j.Wc();a.O&&fn(a)},function(c){return a.dispatchEvent(c)})}
459
- function Pm(a){var b=new gk(a.Kd);b.addEventListener("enter",function(d){zm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){zm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(zm(a,"timelineregionenter",e),zm(a,"timelineregionexit",e))});var c=new Zj(a.g);c.g.add(b);a.ia&&c.g.add(a.ia);return c}function Qm(a,b){a.O=new Se;a.O.g=Ue;Ve(a.O,b,Math.min(.5,b/2));wm(a);a.Bd=(new O(function(){fn(a)})).ea(.25)}
460
+ function Om(a,b){return new Mj(a.g,a.i,a.h.streaming,b,function(){a.Za&&ak(a.Za,!0);a.j&&a.j.Xc();a.O&&fn(a)},function(c){return a.dispatchEvent(c)})}
461
+ function Pm(a){var b=new gk(a.sa);b.addEventListener("enter",function(d){zm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){zm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(zm(a,"timelineregionenter",e),zm(a,"timelineregionexit",e))});var c=new Zj(a.g);c.g.add(b);a.ka&&c.g.add(a.ka);return c}function Qm(a,b){a.O=new Se;a.O.g=Ue;Ve(a.O,b,Math.min(.5,b/2));wm(a);a.Dd=(new O(function(){fn(a)})).ea(.25)}
460
462
  function fn(a){switch(a.l){case $m:if(a.g.ended)var b=!0;else{var c=Di(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Mm:a:if(a.g.ended||aj(a.I))b=!0;else{if(a.i.presentationTimeline.T()){c=a.i.presentationTimeline.Ib();var d=Di(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Fi(a.g.buffered,a.g.currentTime);c=a.O;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Te:Ue;c.g=d;b!=d&&wm(a)}function xm(a,b,c,d){return new Vi(a,b,c,d)}
461
463
  function tm(a){return new kl({getBandwidthEstimate:function(){return a.C?a.C.getBandwidthEstimate():NaN},ib:function(){return a.ib()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Qa:function(){return a.Qa()},xb:function(){return a.xb()},T:function(){return a.T()}},a.h.cmcd)}
462
- function Lm(a){return new mk(a.i,{ud:function(){return a.F?a.F.jd():0},getBandwidthEstimate:function(){return a.C.getBandwidthEstimate()},modifySegmentRequest:function(b,c){ll(a.V,b,c)},U:a.I,Ob:a.H,onError:function(b){return vm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},nh:function(){a.K&&a.K.update&&a.K.update()},Ae:function(b,c,d){a.F&&a.F.Nf();fn(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(jm("segmentappended",b))},mh:function(b,c){(c=c.ve)&&a.ia&&
463
- dk(a.ia,c,b)},pf:function(b,c){var d=a.m;if(d.h.parseInbandPsshEnabled&&["audio","video"].includes(b)){c=new Sf(Hc(c));var e=0,f=r(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=r(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;Eg(d,"cenc",e);d=d.s}}else d=Promise.resolve();return d},oh:function(b,c,d){ym(a,b,c,d)}})}
464
+ function Lm(a){return new mk(a.i,{vd:function(){return a.F?a.F.kd():0},getBandwidthEstimate:function(){return a.C.getBandwidthEstimate()},modifySegmentRequest:function(b,c){ll(a.V,b,c)},U:a.I,Ob:a.H,onError:function(b){return vm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},ph:function(){a.K&&a.K.update&&a.K.update()},Be:function(b,c,d){a.F&&a.F.Pf();fn(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(jm("segmentappended",b))},oh:function(b,c){(c=c.ve)&&a.ka&&
465
+ dk(a.ka,c,b)},rf:function(b,c){var d=a.m;if(d.h.parseInbandPsshEnabled&&["audio","video"].includes(b)){c=new Sf(Hc(c));var e=0,f=r(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=r(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;Eg(d,"cenc",e);d=d.s}}else d=Promise.resolve();return d},qh:function(b,c,d){ym(a,b,c,d)}})}
464
466
  q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Gl(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(Fe("streaming.forceTransmuxTS configuration","Please Use streaming.forceTransmux instead."),a.streaming.forceTransmux=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=
465
467
  .01));var c=Ol(this.h,a,Xl(this));gn(this);return c};
466
- function gn(a){if(a.K){var b=ff(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.K.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{hn(a,a.i)}catch(f){vm(a,f)}a.C&&Ym(a);b=a.j.l;!b||b.allowedByApplication&&b.allowedByKeySystem||jn(a)}a.H&&a.H.Le(a.h.streaming.forceHTTPS);if(a.I&&(a.I.configure(a.h.mediaSource),a.I.J=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.bf!=b)){var c=b(),d=a.I,e=d.m;d.m=c;e&&(c.setTextVisibility(e.isTextVisible()),
467
- e.destroy());d.g&&(d.g.i=c);a.bf=b;a.j&&(b=a.j,(c=b.j.get(Ib))&&wk(b,c.stream,!0,0,!0))}a.C&&(a.C.configure(a.h.abr),a.h.abr.enabled?a.C.enable():a.C.disable(),Vm(a));a.O&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Ve(a.O,b,Math.min(.5,b/2)));a.i&&Jm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd)}q.getConfiguration=function(){var a=Xl(this);Ol(a,this.h,Xl(this));return a};
468
- q.yg=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.Ja().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.Ah=function(){for(var a in this.h)delete this.h[a];Ol(this.h,Xl(this),Xl(this));gn(this)};q.Ff=function(){return this.l};q.Pg=function(){return this.g};q.Hc=function(){return this.H};q.le=function(){return this.fb};
469
- q.rd=function(){return this.G?this.G:null};q.T=function(){return this.i?this.i.presentationTimeline.T():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};
470
- q.Ja=function(){if(!this.Kc)return{start:0,end:0};if(this.i){var a=this.i.presentationTimeline;return{start:a.dc(),end:a.jb()}}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.ah=function(){this.T()&&(this.g.currentTime=this.Ja().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.m?this.m.g:null};q.Gc=function(){return this.m?this.m.Gc():Infinity};
471
- q.td=function(){return this.m?this.m.td():{}};q.Pc=function(){return this.O?this.O.g==Ue:!1};q.xb=function(){return this.g?this.J?this.J.i:1:0};q.We=function(a){0==a?Ta("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.J.set(a),this.l==Mm&&(this.C.playbackRateChanged(a),vk(this.j,1<Math.abs(a))))};q.rf=function(){var a=this.J.sd();this.l==$m&&this.J.set(a);this.l==Mm&&(this.J.set(a),this.C.playbackRateChanged(a),vk(this.j,!1))};
468
+ function gn(a){if(a.K){var b=ff(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.K.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{hn(a,a.i)}catch(f){vm(a,f)}a.C&&Ym(a);b=a.j.l;!b||b.allowedByApplication&&b.allowedByKeySystem||jn(a)}a.H&&a.H.Me(a.h.streaming.forceHTTPS);if(a.I&&(a.I.configure(a.h.mediaSource),a.I.J=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.df!=b)){var c=b(),d=a.I,e=d.m;d.m=c;e&&(c.setTextVisibility(e.isTextVisible()),
469
+ e.destroy());d.g&&(d.g.i=c);a.df=b;a.j&&(b=a.j,(c=b.j.get(Ib))&&wk(b,c.stream,!0,0,!0))}a.C&&(a.C.configure(a.h.abr),a.h.abr.enabled?a.C.enable():a.C.disable(),Vm(a));a.O&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Ve(a.O,b,Math.min(.5,b/2)));a.i&&Jm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd)}q.getConfiguration=function(){var a=Xl(this);Ol(a,this.h,Xl(this));return a};
470
+ q.Ag=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.Ja().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.Ch=function(){for(var a in this.h)delete this.h[a];Ol(this.h,Xl(this),Xl(this));gn(this)};q.Hf=function(){return this.l};q.Rg=function(){return this.g};q.Hc=function(){return this.H};q.le=function(){return this.fb};
471
+ q.sd=function(){return this.G?this.G:null};q.T=function(){return this.i?this.i.presentationTimeline.T():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};
472
+ q.Ja=function(){if(!this.Nc)return{start:0,end:0};if(this.i){var a=this.i.presentationTimeline;return{start:a.dc(),end:a.jb()}}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.dh=function(){this.T()&&(this.g.currentTime=this.Ja().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.m?this.m.g:null};q.Gc=function(){return this.m?this.m.Gc():Infinity};
473
+ q.ud=function(){return this.m?this.m.ud():{}};q.Pc=function(){return this.O?this.O.g==Ue:!1};q.xb=function(){return this.g?this.J?this.J.i:1:0};q.Ye=function(a){0==a?Ta("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.J.set(a),this.l==Mm&&(this.C.playbackRateChanged(a),vk(this.j,1<Math.abs(a))))};q.uf=function(){var a=this.J.td();this.l==$m&&this.J.set(a);this.l==Mm&&(this.J.set(a),this.C.playbackRateChanged(a),vk(this.j,!1))};
472
474
  q.Qa=function(){if(this.i){for(var a=this.j?this.j.l:null,b=[],c=0,d=r(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,ve(e)){var f=ne(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 ue(g)}):[]};
473
- q.yb=function(){if(this.i){for(var a=this.j?this.j.s:null,b=[],c=r(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=oe(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?bn(this).map(function(f){return se(f)}):[]};q.Hg=function(){return this.i?this.i.imageStreams.map(function(a){return pe(a)}):[]};
474
- q.Xg=function(a,b){var c=this,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A,z,C,E,F;return G(function(H){if(1==H.g)return c.i?(d=c.i.imageStreams.find(function(J){return J.id==a}))?d.segmentIndex?H.D(3):u(H,d.createSegmentIndex(),3):H.return(null):H.D(2);if(2!=H.g){e=d.segmentIndex.find(b);if(null==e)return H.return(null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return H.return(null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);p=parseInt(h[2],10);n=k/m;t=l/p;v=m*p;
475
+ q.yb=function(){if(this.i){for(var a=this.j?this.j.s:null,b=[],c=r(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=oe(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?bn(this).map(function(f){return se(f)}):[]};q.Jg=function(){return this.i?this.i.imageStreams.map(function(a){return pe(a)}):[]};
476
+ q.Zg=function(a,b){var c=this,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A,z,C,E,F;return G(function(H){if(1==H.g)return c.i?(d=c.i.imageStreams.find(function(J){return J.id==a}))?d.segmentIndex?H.D(3):u(H,d.createSegmentIndex(),3):H.return(null):H.D(2);if(2!=H.g){e=d.segmentIndex.find(b);if(null==e)return H.return(null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return H.return(null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);p=parseInt(h[2],10);n=k/m;t=l/p;v=m*p;
475
477
  y=f.j-f.startTime;w=f.B||y/v;x=f.startTime;z=A=0;1<v&&(C=Math.floor((b-f.startTime)/w),x=f.startTime+C*w,A=C%m*n,z=Math.floor(C/m)*t);E=!1;if(F=f.s)E=!0,t=F.height,A=F.positionX,z=F.positionY,n=F.width;return H.return({imageHeight:l,imageWidth:k,height:t,positionX:A,positionY:z,startTime:x,duration:w,uris:f.Pa(),width:n,sprite:E})}return H.return(null)})};
476
- q.He=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.s&&(Ul(this.s.h,b,!1),yk(this.j,b),kn(this),this.La=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=bn(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,qe(c)==a.id?c.mode=this.aa?"showing":"hidden":c.mode="disabled";kn(this)}};
477
- q.Ie=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&&Ta("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&&ve(d)&&(Km(this,d,!1,b,c),this.za=new Ne(d),Ym(this))}else if(this.g&&this.g.audioTracks)for(b=Array.from(this.g.audioTracks),b=r(b),c=b.next();!c.done;c=b.next())if(c=c.value,
478
- qe(c)==a.id){ln(this,c);break}};q.xg=function(){return mn(this.Qa())};q.Vg=function(){return mn(this.yb())};q.wg=function(){return Array.from(nn(this.Qa()))};q.Ug=function(){return Array.from(nn(this.yb()))};
479
- q.Md=function(a,b,c){c=void 0===c?0:c;if(this.i&&this.F){this.za=new Oe(a,b||"",c,"");b=function(h,k){return h.video||k.video?h.video&&k.video?Math.abs((h.video.height||0)-(k.video.height||0))+Math.abs((h.video.width||0)-(k.video.width||0)):Infinity:0};a=this.j.l;var d=this.za.create(this.i.variants);c=null;d=r(d.values());for(var e=d.next();!e.done;e=d.next())if(e=e.value,!c||b(c,a)>b(e,a))c=e;c?(b=ne(c),this.Ie(b,!0)):jn(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);
478
+ q.Ie=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.s&&(Ul(this.s.h,b,!1),yk(this.j,b),kn(this),this.Xa=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=bn(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,qe(c)==a.id?c.mode=this.aa?"showing":"hidden":c.mode="disabled";kn(this)}};
479
+ q.Je=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&&Ta("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&&ve(d)&&(Km(this,d,!1,b,c),this.La=new Ne(d),Ym(this))}else if(this.g&&this.g.audioTracks)for(b=Array.from(this.g.audioTracks),b=r(b),c=b.next();!c.done;c=b.next())if(c=c.value,
480
+ qe(c)==a.id){ln(this,c);break}};q.zg=function(){return mn(this.Qa())};q.Xg=function(){return mn(this.yb())};q.yg=function(){return Array.from(nn(this.Qa()))};q.Wg=function(){return Array.from(nn(this.yb()))};
481
+ q.Md=function(a,b,c){c=void 0===c?0:c;if(this.i&&this.F){this.La=new Oe(a,b||"",c,"");b=function(h,k){return h.video||k.video?h.video&&k.video?Math.abs((h.video.height||0)-(k.video.height||0))+Math.abs((h.video.width||0)-(k.video.width||0)):Infinity:0};a=this.j.l;var d=this.La.create(this.i.variants);c=null;d=r(d.values());for(var e=d.next();!e.done;e=d.next())if(e=e.value,!c||b(c,a)>b(e,a))c=e;c?(b=ne(c),this.Je(b,!0)):jn(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);
480
482
  a=Mb(a);d=c=null;e=r(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=ue(f);Mb(g.language)==a&&(c=f,b?g.roles.includes(b)&&(d=f):0==g.roles.length&&(d=f))}d?ln(this,d):c&&ln(this,c)}};
481
- q.Ge=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.La=a,this.Ec=b||"",this.ub=c,(a=xe(this.i.textStreams,this.La,this.Ec,this.ub)[0]||null)&&a!=this.j.s&&(Ul(this.s.h,a,!1),this.h.streaming.alwaysStreamText||this.Nb()))yk(this.j,a),kn(this)}else{var d=Mb(a);(a=this.yb().find(function(e){return Mb(e.language)==d&&(!b||e.roles.includes(b))&&e.forced==c}))&&this.He(a)}};
482
- q.Dh=function(a){if(this.i&&this.F){for(var b=null,c=r(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.za=new Oe(b.language,"",0,a),jn(this))}};q.Nb=function(){var a=this.aa;return this.I?this.I.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?bn(this).some(function(b){return"showing"==b.mode}):a};q.Df=function(){return this.g&&this.g.src&&this.g.textTracks?on(this).map(function(a){return se(a)}):[]};
483
- q.Ag=function(a){var b=Mb(a),c=on(this).filter(function(h){return Mb(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=r(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=r(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
483
+ q.He=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.Xa=a,this.Kc=b||"",this.Ec=c,(a=xe(this.i.textStreams,this.Xa,this.Kc,this.Ec)[0]||null)&&a!=this.j.s&&(Ul(this.s.h,a,!1),this.h.streaming.alwaysStreamText||this.Nb()))yk(this.j,a),kn(this)}else{var d=Mb(a);(a=this.yb().find(function(e){return Mb(e.language)==d&&(!b||e.roles.includes(b))&&e.forced==c}))&&this.Ie(a)}};
484
+ q.Fh=function(a){if(this.i&&this.F){for(var b=null,c=r(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.La=new Oe(b.language,"",0,a),jn(this))}};q.Nb=function(){var a=this.aa;return this.I?this.I.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?bn(this).some(function(b){return"showing"==b.mode}):a};q.Ff=function(){return this.g&&this.g.src&&this.g.textTracks?on(this).map(function(a){return se(a)}):[]};
485
+ q.Cg=function(a){var b=Mb(a),c=on(this).filter(function(h){return Mb(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=r(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=r(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
484
486
  function bn(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function en(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function on(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
485
- q.Qe=function(a){a=!!a;if(this.aa!=a){this.aa=a;if(this.l==Mm)this.I.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.s||(a=xe(this.i.textStreams,this.La,this.Ec,this.ub),0<a.length&&(yk(this.j,a[0]),kn(this))):uk(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=bn(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Um(this)}};
486
- q.Rg=function(){if(!this.T())return null;var a=this.sa.l,b=0;if(this.F)b=this.F.jd();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.i?new Date(1E3*(this.i.presentationTimeline.i+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
487
- q.Gf=function(){if(!this.T())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};q.ib=function(){if(this.l==Mm)return this.I.ib();var a={total:[],audio:[],video:[],text:[]};this.l==$m&&(a.total=Gi(this.g.buffered));return a};
487
+ q.Re=function(a){a=!!a;if(this.aa!=a){this.aa=a;if(this.l==Mm)this.I.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.s||(a=xe(this.i.textStreams,this.Xa,this.Kc,this.Ec),0<a.length&&(yk(this.j,a[0]),kn(this))):uk(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=bn(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Um(this)}};
488
+ q.Tg=function(){if(!this.T())return null;var a=this.ua.l,b=0;if(this.F)b=this.F.kd();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.i?new Date(1E3*(this.i.presentationTimeline.i+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
489
+ q.If=function(){if(!this.T())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};q.ib=function(){if(this.l==Mm)return this.I.ib();var a={total:[],audio:[],video:[],text:[]};this.l==$m&&(a.total=Gi(this.g.buffered));return a};
488
490
  q.getStats=function(){if(this.l!=Mm&&this.l!=$m)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:[]};Hm(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.s;b=
489
- Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.F&&(this.s.O=this.F.jf(),this.s.P=this.F.kf());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.s;var d=Number(c.totalVideoFrames);b.M=Number(c.droppedVideoFrames);b.K=d;this.s.J=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.J?c.J:NaN):c=NaN;this.s.B=c;if(this.l==Mm){if(c=this.j.l)this.s.F=(this.J?this.J.i:1)*c.bandwidth;c&&c.video&&(b=this.s,d=c.video.height||NaN,b.s=c.video.width||NaN,b.l=d);this.T()&&(c=this.Gf().valueOf()+
491
+ Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.F&&(this.s.O=this.F.lf(),this.s.P=this.F.mf());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.s;var d=Number(c.totalVideoFrames);b.M=Number(c.droppedVideoFrames);b.K=d;this.s.J=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.J?c.J:NaN):c=NaN;this.s.B=c;if(this.l==Mm){if(c=this.j.l)this.s.F=(this.J?this.J.i:1)*c.bandwidth;c&&c.video&&(b=this.s,d=c.video.height||NaN,b.s=c.video.width||NaN,b.l=d);this.T()&&(c=this.If().valueOf()+
490
492
  1E3*this.Ja().end,this.s.G=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.s.I=this.i.presentationTimeline.g);c=this.C.getBandwidthEstimate();this.s.C=c}this.l==$m&&(c=this.s,b=a.videoHeight||NaN,c.s=a.videoWidth||NaN,c.l=b);var e=this.s;a=e.s;c=e.l;b=e.F;d=e.K;var f=e.M,g=e.J,h=e.P,k=e.O,l=e.C,m=e.i,p=e.m,n=e.H,t=e.j,v=Rl(e.g,"playing"),y=Rl(e.g,"paused"),w=Rl(e.g,"buffering"),x=e.B,A=e.G,z=e.I,C=Sl(e.g),E=[];e=r(e.h.g);for(var F=e.next();!F.done;F=e.next())F=F.value,E.push({timestamp:F.timestamp,
491
493
  id:F.id,type:F.type,fromAdaptation:F.fromAdaptation,bandwidth:F.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:f,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:p,manifestTimeSeconds:n,drmTimeSeconds:t,playTime:v,pauseTime:y,bufferingTime:w,licenseTime:x,liveLatency:A,maxSegmentDuration:z,stateHistory:C,switchHistory:E}};
492
- q.jg=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,p,n,t,v,y,w,x,A;return G(function(z){switch(z.g){case 1:if(h.l!=Mm&&h.l!=$m)throw new M(1,7,7004);if(d){z.D(2);break}return u(z,pn(h,a),3);case 3:d=z.h;case 2:k=[];if(h.G)try{k=h.G.getServerSideCuePoints()}catch(C){}if(h.l!=$m){z.D(4);break}g&&(c="forced");return u(z,qn(h,a,b,c,d,f||"",k),5);case 5:l=h.yb();if(m=l.find(function(C){return C.language==b&&C.label==(f||"")&&C.kind==c}))return Xm(h),z.return(m);throw new M(1,2,2012);case 4:p=
493
- Jb;n=h.i.presentationTimeline.getDuration();if(Infinity==n)throw new M(1,4,4033);if(!k.length){z.D(6);break}return u(z,rn(h,a,h.H,h.h.streaming.retryParameters),7);case 7:t=z.h,v=sn(h,t,d,k),y=new Blob([v],{type:"text/vtt"}),a=Yi(y),d="text/vtt";case 6:w={id:h.df++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Vj(0,n,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:p.ka,primary:!1,trickModeVideo:null,
494
+ q.lg=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,p,n,t,v,y,w,x,A;return G(function(z){switch(z.g){case 1:if(h.l!=Mm&&h.l!=$m)throw new M(1,7,7004);if(d){z.D(2);break}return u(z,pn(h,a),3);case 3:d=z.h;case 2:k=[];if(h.G)try{k=h.G.getServerSideCuePoints()}catch(C){}if(h.l!=$m){z.D(4);break}g&&(c="forced");return u(z,qn(h,a,b,c,d,f||"",k),5);case 5:l=h.yb();if(m=l.find(function(C){return C.language==b&&C.label==(f||"")&&C.kind==c}))return Xm(h),z.return(m);throw new M(1,2,2012);case 4:p=
495
+ Jb;n=h.i.presentationTimeline.getDuration();if(Infinity==n)throw new M(1,4,4033);if(!k.length){z.D(6);break}return u(z,rn(h,a,h.H,h.h.streaming.retryParameters),7);case 7:t=z.h,v=sn(h,t,d,k),y=new Blob([v],{type:"text/vtt"}),a=Yi(y),d="text/vtt";case 6:w={id:h.gf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Vj(0,n,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:p.ha,primary:!1,trickModeVideo:null,
494
496
  emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};x=xd(w.mimeType,w.codecs);A=Dd(x);if(!A)throw new M(2,2,2014,d);h.i.textStreams.push(w);Xm(h);return z.return(oe(w))}})};
495
- q.kg=function(a,b){var c=this,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A;return G(function(z){switch(z.g){case 1:if(c.l!=Mm&&c.l!=$m)throw new M(1,7,7004);if(c.l==$m)throw new M(1,2,2016);if(b){z.D(2);break}return u(z,pn(c,a),3);case 3:b=z.h;case 2:if("text/vtt"!=b)throw new M(1,2,2017,a);d=Jb;e=c.i.presentationTimeline.getDuration();if(Infinity==e)throw new M(1,4,4045);return u(z,rn(c,a,c.H,c.h.streaming.retryParameters),4);case 4:f=z.h;g=Ed[b];if(!g)throw new M(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,
496
- segmentEnd:e,vttOffset:0};l=Hc(f);m=h.parseMedia(l,k);p=[];n={};t=r(m);for(v=t.next();!v.done;n={uc:n.uc},v=t.next())y=v.value,n.uc=Db([a],[y.payload])[0],w=new zi(y.startTime,y.endTime,function(C){return function(){return[C.uc]}}(n),0,null,null,0,0,Infinity),n.uc.includes("#xywh")&&(x=n.uc.split("#xywh=")[1].split(","),4===x.length&&w.Yf({height:parseInt(x[3],10),positionX:parseInt(x[0],10),positionY:parseInt(x[1],10),width:parseInt(x[2],10)})),p.push(w);A={id:c.df++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},
497
+ q.mg=function(a,b){var c=this,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A;return G(function(z){switch(z.g){case 1:if(c.l!=Mm&&c.l!=$m)throw new M(1,7,7004);if(c.l==$m)throw new M(1,2,2016);if(b){z.D(2);break}return u(z,pn(c,a),3);case 3:b=z.h;case 2:if("text/vtt"!=b)throw new M(1,2,2017,a);d=Jb;e=c.i.presentationTimeline.getDuration();if(Infinity==e)throw new M(1,4,4045);return u(z,rn(c,a,c.H,c.h.streaming.retryParameters),4);case 4:f=z.h;g=Ed[b];if(!g)throw new M(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,
498
+ segmentEnd:e,vttOffset:0};l=Hc(f);m=h.parseMedia(l,k);p=[];n={};t=r(m);for(v=t.next();!v.done;n={uc:n.uc},v=t.next())y=v.value,n.uc=Db([a],[y.payload])[0],w=new zi(y.startTime,y.endTime,function(C){return function(){return[C.uc]}}(n),0,null,null,0,0,Infinity),n.uc.includes("#xywh")&&(x=n.uc.split("#xywh=")[1].split(","),4===x.length&&w.$f({height:parseInt(x[3],10),positionX:parseInt(x[0],10),positionY:parseInt(x[1],10),width:parseInt(x[2],10)})),p.push(w);A={id:c.gf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},
497
499
  segmentIndex:new Sj(p),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Ac,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1"};c.i.imageStreams.push(A);Xm(c);return z.return(pe(A))}})};
498
- q.ig=function(a,b,c){var d=this,e,f,g,h;return G(function(k){switch(k.g){case 1:if(d.l!=Mm&&d.l!=$m)throw new M(1,7,7004);if(c){k.D(2);break}return u(k,pn(d,a),3);case 3:c=k.h;case 2:e=[];if(d.G)try{e=d.G.getServerSideCuePoints()}catch(l){}return u(k,qn(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.Df();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.Da(f,"load",l);d.B.Da(f,"error",function(){m(new M(1,2,2015))})}),6);case 6:return k.return(h);
500
+ q.kg=function(a,b,c){var d=this,e,f,g,h;return G(function(k){switch(k.g){case 1:if(d.l!=Mm&&d.l!=$m)throw new M(1,7,7004);if(c){k.D(2);break}return u(k,pn(d,a),3);case 3:c=k.h;case 2:e=[];if(d.G)try{e=d.G.getServerSideCuePoints()}catch(l){}return u(k,qn(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.Ff();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.Da(f,"load",l);d.B.Da(f,"error",function(){m(new M(1,2,2015))})}),6);case 6:return k.return(h);
499
501
  case 5:throw new M(1,2,2012);}})};function pn(a,b){var c,d;return G(function(e){switch(e.g){case 1:c=ch(b);if(d=tn[c])return e.return(d);D(e,2);return u(e,eh(b,a.H,a.h.streaming.retryParameters),4);case 4:d=e.h;ua(e,3);break;case 2:va(e);case 3:if(d)return e.return(d);throw new M(1,2,2011,c);}})}
500
502
  function qn(a,b,c,d,e,f,g){var h,k,l,m;return G(function(p){if(1==p.g)return"text/vtt"!=e||g.length?u(p,rn(a,b,a.H,a.h.streaming.retryParameters),3):p.D(2);2!=p.g&&(h=p.h,k=sn(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Yi(l),e="text/vtt");m=document.createElement("track");var n=a.V,t=b;try{if(n.g.enabled){var v=xl(n);v.ot=Dl;v.su=!0;var y=zl(v);var w=Al(t,y)}else w=t}catch(x){Va("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",x),w=t}m.src=w;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
501
503
  a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return p.return(m)})}function rn(a,b,c,d){var e,f,g;return G(function(h){if(1==h.g){e=uf;f=of([b],d);f.method="GET";var k=a.V;try{k.g.enabled&&vl(k,f,{ot:Dl,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)})}
502
- function sn(a,b,c,d){var e=Ed[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Hc(b),b=c.parseMedia(b,a),jl(b,d);throw new M(2,2,2014,c);}q.Me=function(a,b){this.Nc.width=a;this.Nc.height=b};q.De=function(a){if(this.l==Mm){var b=this.j;a=void 0===a?.1:a;if(b.h.g)b=!1;else if(b.B)b=!1;else{for(var c=r(b.j.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Mc||d.Ia||d.cb||(d.Mc=!1,tk(b,d,a));b=!0}}else b=!1;return b};
503
- q.Mg=function(){Ta("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.Ng=function(){return this.Id};
504
- function Xl(a){var b=Ml();b.streaming.failureCallback=function(c){if(a.T()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.De(d))}};b.textDisplayFactory=function(){return a.yd?new bl(a.g,a.yd):new Wk(a.g)};return b}q.Re=function(a){this.yd=a};
505
- function Bm(a,b){for(var c=new Set,d=r(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=r(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=r(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 Wj;h={id:a.df++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
504
+ function sn(a,b,c,d){var e=Ed[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Hc(b),b=c.parseMedia(b,a),jl(b,d);throw new M(2,2,2014,c);}q.Ne=function(a,b){this.Qc.width=a;this.Qc.height=b};q.Ee=function(a){if(this.l==Mm){var b=this.j;a=void 0===a?.1:a;if(b.h.g)b=!1;else if(b.B)b=!1;else{for(var c=r(b.j.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Mc||d.Ia||d.eb||(d.Mc=!1,tk(b,d,a));b=!0}}else b=!1;return b};
505
+ q.Og=function(){Ta("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.Pg=function(){return this.Kd};
506
+ function Xl(a){var b=Ml();b.streaming.failureCallback=function(c){if(a.T()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.Ee(d))}};b.textDisplayFactory=function(){return a.Bd?new bl(a.g,a.Bd):new Wk(a.g)};return b}q.Se=function(a){this.Bd=a};
507
+ function Bm(a,b){for(var c=new Set,d=r(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=r(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=r(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 Wj;h={id:a.gf++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
506
508
  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 Am(a,b){return G(function(c){if(1==c.g)return u(c,un(a,b),2);hn(a,b);B(c)})}
507
- function un(a,b){var c;return G(function(d){if(1==d.g)return c=a.j?a.j.l:null,u(d,$d(c,b),2);Wm(b);B(d)})}function hn(a,b){if(a.l!=om){Zd(b.variants,a.h.restrictions,a.Nc)&&a.j&&Xm(a);var c=a.m?a.m.g:null;if(c&&a.m.C)for(var d=r(b.variants),e=d.next();!e.done;e=d.next())e=e.value,Cm(a,c.keySystem,e.video),Cm(a,c.keySystem,e.audio);vn(a,b)}}
509
+ function un(a,b){var c;return G(function(d){if(1==d.g)return c=a.j?a.j.l:null,u(d,$d(c,b),2);Wm(b);B(d)})}function hn(a,b){if(a.l!=om){Zd(b.variants,a.h.restrictions,a.Qc)&&a.j&&Xm(a);var c=a.m?a.m.g:null;if(c&&a.m.C)for(var d=r(b.variants),e=d.next();!e.done;e=d.next())e=e.value,Cm(a,c.keySystem,e.video),Cm(a,c.keySystem,e.audio);vn(a,b)}}
508
510
  function Cm(a,b,c){if(c){c=r(c.drmInfos);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.keySystem==b){d=r(d.initData||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,Eg(a.m,e.initDataType,e.initData)}}}
509
511
  function Rm(a,b){var c,d,e,f,g;return G(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,p,n;return G(function(t){if(1==t.g)return k?u(t,k.createSegmentIndex(),2):t.return(null);p=(m=k.segmentIndex.bc(l))?m.next().value:null;if(!p)return t.return(null);n=p.startTime;return t.return(n)})},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)})}
510
512
  function wm(a){var b=a.Pc();if(a.s&&a.O&&a.F){var c=a.J;c.j=b;Yj(c);a.V&&(c=a.V,b||c.i||(c.i=!0),c.i&&b&&(c.l=!0),c.m=b);Hm(a)}b=(new Map).set("buffering",b);a.dispatchEvent(jm("buffering",b))}function Im(a){var b=a.g.playbackRate;0!=b&&(a.J&&a.J.set(b),b=jm("ratechange"),a.dispatchEvent(b))}function Hm(a){if(a.s&&a.O){var b=a.s.g;a.O.g==Ue?Ql(b,"buffering"):a.g.paused?Ql(b,"paused"):a.g.ended?Ql(b,"ended"):Ql(b,"playing")}}
511
- function Ym(a){try{vn(a,a.i)}catch(c){return vm(a,c),!1}var b=a.i.variants.filter(function(c){return ve(c)});b=a.za.create(b);a.C.setVariants(Array.from(b.values()));return!0}function km(a){return Ym(a)?a.C.chooseVariant():null}function jn(a){var b=km(a);b&&Km(a,b,!0,!0,0)}
513
+ function Ym(a){try{vn(a,a.i)}catch(c){return vm(a,c),!1}var b=a.i.variants.filter(function(c){return ve(c)});b=a.La.create(b);a.C.setVariants(Array.from(b.values()));return!0}function km(a){return Ym(a)?a.C.chooseVariant():null}function jn(a){var b=km(a);b&&Km(a,b,!0,!0,0)}
512
514
  function Km(a,b,c,d,e){var f=a.j.l;if(b==f)d&&xk(a.j,b,d,e,!0);else{var g=a.s.h;g.h!=b&&(g.h=b,g.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));xk(a.j,b,d,e,void 0,c);d=null;f&&(d=ne(f));b=ne(b);c?Sm(a,d,b):wn(a,d,b)}}function ln(a,b){var c=Array.from(a.g.audioTracks).find(function(d){return d.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=ue(c);b=ue(b);wn(a,c,b)}
513
515
  function Tm(a,b,c){if(0==a.h.autoShowText)return!1;if(1==a.h.autoShowText)return!0;var d=Mb(a.h.preferredTextLanguage);c=Mb(c.language);if(2==a.h.autoShowText)return Lb(c,d);if(3==a.h.autoShowText)return a=Mb(b.language),Lb(c,d)&&!Lb(a,c);Ta("Invalid autoShowText setting!");return!1}function Sm(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.M&&Ri(a.M,c);c=jm("adaptation",b);xn(a,c)}function Xm(a){var b=jm("trackschanged");xn(a,b)}
514
516
  function wn(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.M&&Ri(a.M,c);c=jm("variantchanged",b);xn(a,c)}function kn(a){var b=jm("textchanged");xn(a,b)}function Um(a){var b=jm("texttrackvisibility");xn(a,b)}function Vm(a){var b=(new Map).set("newStatus",a.h.abr.enabled);xn(a,jm("abrstatuschanged",b))}
515
- function yn(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;b=a.Qa().find(function(g){return g.active});for(var d=a.i,e=r(d.variants),f=e.next();!f.done;f=e.next())f=f.value,f.id===b.id&&(f.disabledUntilTime=Date.now()/1E3+c);Zd(d.variants,a.h.restrictions,a.Nc);b=km(a);if(!b)return!1;d=a.ib().video.reduce(function(g,h){return g+h.end-h.start},0);Km(a,b,!1,!0,d);a.gf.R(c);return!0}
517
+ function yn(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;b=a.Qa().find(function(g){return g.active});for(var d=a.i,e=r(d.variants),f=e.next();!f.done;f=e.next())f=f.value,f.id===b.id&&(f.disabledUntilTime=Date.now()/1E3+c);Zd(d.variants,a.h.restrictions,a.Qc);b=km(a);if(!b)return!1;d=a.ib().video.reduce(function(g,h){return g+h.end-h.start},0);Km(a,b,!1,!0,d);a.jf.R(c);return!0}
516
518
  function vm(a,b){if(a.l!=om)if(yn(a,b))b.handled=!0;else{var c=jm("error",(new Map).set("detail",b));a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}function zm(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(jm(b,c))}
517
519
  function um(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 M(2,3,3016,b,c,a.g.error.message)}
518
520
  function Fm(a,b){if(a.j){var c=Object.keys(b),d=1==c.length&&"00"==c[0],e=!1;if(c.length){c=r(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=r(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=r(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&&!zn.includes(l)}h!=f.allowedByKeySystem&&
519
- (e=!0)}}}if(!e||Ym(a))(b=a.j.l)&&!b.allowedByKeySystem&&jn(a),e&&Xm(a)}}function Gm(a,b,c){if(a.K&&a.K.onExpirationUpdated)a.K.onExpirationUpdated(b,c);b=jm("expirationupdated");a.dispatchEvent(b)}function Jm(a,b,c){0<b&&(a.T()||a.Zf(b));b=a.getDuration();c<b&&(a.T()||a.ab(c))}
520
- function vn(a,b){a=a.m?a.m.td():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set,g=new Set;b=r(b.variants);for(var h=b.next();!h.done;h=b.next()){h=h.value;var k=[];h.audio&&k.push(h.audio);h.video&&k.push(h.video);k=r(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.keyIds.size){l=r(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var p=a[c?"00":m];p?zn.includes(p)&&g.add(p):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e,
521
+ (e=!0)}}}if(!e||Ym(a))(b=a.j.l)&&!b.allowedByKeySystem&&jn(a),e&&Xm(a)}}function Gm(a,b,c){if(a.K&&a.K.onExpirationUpdated)a.K.onExpirationUpdated(b,c);b=jm("expirationupdated");a.dispatchEvent(b)}function Jm(a,b,c){0<b&&(a.T()||a.ag(b));b=a.getDuration();c<b&&(a.T()||a.Sa(c))}
522
+ function vn(a,b){a=a.m?a.m.ud():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set,g=new Set;b=r(b.variants);for(var h=b.next();!h.done;h=b.next()){h=h.value;var k=[];h.audio&&k.push(h.audio);h.video&&k.push(h.video);k=r(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.keyIds.size){l=r(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var p=a[c?"00":m];p?zn.includes(p)&&g.add(p):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e,
521
523
  missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new M(2,4,4012,a);}function Wm(a){if(!a.variants.some(ve))throw new M(2,4,4032);}function xn(a,b){G(function(c){if(1==c.g)return u(c,Promise.resolve(),2);a.l!=om&&a.dispatchEvent(b);B(c)})}function nn(a){var b=new Set;a=r(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}
522
524
  function mn(a){var b=new Map,c=new Map;a=r(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=r(f);for(var g=f.next();!g.done;g=f.next())g=g.value,b.get(e).add(g),d.label&&(c.has(e)||c.set(e,new Map),c.get(e).set(g,d.label))}var h=[];b.forEach(function(k,l){k=r(k);for(var m=k.next();!m.done;m=k.next()){m=m.value;var p=null;c.has(l)&&c.get(l).has(m)&&(p=c.get(l).get(m));
523
- h.push({language:l,role:m,label:p})}});return h}function qm(){return new M(2,7,7E3)}function im(a,b,c,d,e,f){return d==a&&e.mediaElement==f.mediaElement&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function Qk(){return{mediaElement:null,mimeType:null,startTime:null,Se:NaN,uri:null}}function rm(a){return new Promise(function(b,c){a.Qb=function(){return c(qm())};a.Ed=function(){return b()};a.onError=function(d){return c(d)};a.Gd=function(){return c(qm())}})}I("shaka.Player",S);
524
- S.prototype.setVideoContainer=S.prototype.Re;S.prototype.getManifestParserFactory=S.prototype.Ng;S.prototype.getManifest=S.prototype.Mg;S.prototype.retryStreaming=S.prototype.De;S.prototype.setMaxHardwareResolution=S.prototype.Me;S.prototype.addChaptersTrack=S.prototype.ig;S.prototype.addThumbnailsTrack=S.prototype.kg;S.prototype.addTextTrackAsync=S.prototype.jg;S.prototype.getStats=S.prototype.getStats;S.prototype.getBufferedInfo=S.prototype.ib;S.prototype.getPresentationStartTimeAsDate=S.prototype.Gf;
525
- S.prototype.getPlayheadTimeAsDate=S.prototype.Rg;S.prototype.setTextTrackVisibility=S.prototype.Qe;S.prototype.getChapters=S.prototype.Ag;S.prototype.getChaptersTracks=S.prototype.Df;S.prototype.isTextTrackVisible=S.prototype.Nb;S.prototype.selectVariantsByLabel=S.prototype.Dh;S.prototype.selectTextLanguage=S.prototype.Ge;S.prototype.selectAudioLanguage=S.prototype.Md;S.prototype.getTextLanguages=S.prototype.Ug;S.prototype.getAudioLanguages=S.prototype.wg;S.prototype.getTextLanguagesAndRoles=S.prototype.Vg;
526
- S.prototype.getAudioLanguagesAndRoles=S.prototype.xg;S.prototype.selectVariantTrack=S.prototype.Ie;S.prototype.selectTextTrack=S.prototype.He;S.prototype.getThumbnails=S.prototype.Xg;S.prototype.getImageTracks=S.prototype.Hg;S.prototype.getTextTracks=S.prototype.yb;S.prototype.getVariantTracks=S.prototype.Qa;S.prototype.cancelTrickPlay=S.prototype.rf;S.prototype.trickPlay=S.prototype.We;S.prototype.getPlaybackRate=S.prototype.xb;S.prototype.isBuffering=S.prototype.Pc;S.prototype.getKeyStatuses=S.prototype.td;
527
- S.prototype.getExpiration=S.prototype.Gc;S.prototype.drmInfo=S.prototype.drmInfo;S.prototype.keySystem=S.prototype.keySystem;S.prototype.goToLive=S.prototype.ah;S.prototype.seekRange=S.prototype.Ja;S.prototype.isAudioOnly=S.prototype.hc;S.prototype.isInProgress=S.prototype.Lb;S.prototype.isLive=S.prototype.T;S.prototype.getAdManager=S.prototype.rd;S.prototype.getAssetUri=S.prototype.le;S.prototype.getNetworkingEngine=S.prototype.Hc;S.prototype.getMediaElement=S.prototype.Pg;
528
- S.prototype.getLoadMode=S.prototype.Ff;S.prototype.resetConfiguration=S.prototype.Ah;S.prototype.getBufferFullness=S.prototype.yg;S.prototype.getConfiguration=S.prototype.getConfiguration;S.prototype.configure=S.prototype.configure;S.prototype.load=S.prototype.load;S.prototype.updateStartTime=S.prototype.Nh;S.prototype.unload=S.prototype.Ye;S.prototype.detach=S.prototype.detach;S.prototype.attachCanvas=S.prototype.mf;S.prototype.attach=S.prototype.Bc;
525
+ h.push({language:l,role:m,label:p})}});return h}function qm(){return new M(2,7,7E3)}function im(a,b,c,d,e,f){return d==a&&e.mediaElement==f.mediaElement&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function Qk(){return{mediaElement:null,mimeType:null,startTime:null,Te:NaN,uri:null}}function rm(a){return new Promise(function(b,c){a.Qb=function(){return c(qm())};a.Ed=function(){return b()};a.onError=function(d){return c(d)};a.Gd=function(){return c(qm())}})}I("shaka.Player",S);
526
+ S.prototype.setVideoContainer=S.prototype.Se;S.prototype.getManifestParserFactory=S.prototype.Pg;S.prototype.getManifest=S.prototype.Og;S.prototype.retryStreaming=S.prototype.Ee;S.prototype.setMaxHardwareResolution=S.prototype.Ne;S.prototype.addChaptersTrack=S.prototype.kg;S.prototype.addThumbnailsTrack=S.prototype.mg;S.prototype.addTextTrackAsync=S.prototype.lg;S.prototype.getStats=S.prototype.getStats;S.prototype.getBufferedInfo=S.prototype.ib;S.prototype.getPresentationStartTimeAsDate=S.prototype.If;
527
+ S.prototype.getPlayheadTimeAsDate=S.prototype.Tg;S.prototype.setTextTrackVisibility=S.prototype.Re;S.prototype.getChapters=S.prototype.Cg;S.prototype.getChaptersTracks=S.prototype.Ff;S.prototype.isTextTrackVisible=S.prototype.Nb;S.prototype.selectVariantsByLabel=S.prototype.Fh;S.prototype.selectTextLanguage=S.prototype.He;S.prototype.selectAudioLanguage=S.prototype.Md;S.prototype.getTextLanguages=S.prototype.Wg;S.prototype.getAudioLanguages=S.prototype.yg;S.prototype.getTextLanguagesAndRoles=S.prototype.Xg;
528
+ S.prototype.getAudioLanguagesAndRoles=S.prototype.zg;S.prototype.selectVariantTrack=S.prototype.Je;S.prototype.selectTextTrack=S.prototype.Ie;S.prototype.getThumbnails=S.prototype.Zg;S.prototype.getImageTracks=S.prototype.Jg;S.prototype.getTextTracks=S.prototype.yb;S.prototype.getVariantTracks=S.prototype.Qa;S.prototype.cancelTrickPlay=S.prototype.uf;S.prototype.trickPlay=S.prototype.Ye;S.prototype.getPlaybackRate=S.prototype.xb;S.prototype.isBuffering=S.prototype.Pc;S.prototype.getKeyStatuses=S.prototype.ud;
529
+ S.prototype.getExpiration=S.prototype.Gc;S.prototype.drmInfo=S.prototype.drmInfo;S.prototype.keySystem=S.prototype.keySystem;S.prototype.goToLive=S.prototype.dh;S.prototype.seekRange=S.prototype.Ja;S.prototype.isAudioOnly=S.prototype.hc;S.prototype.isInProgress=S.prototype.Lb;S.prototype.isLive=S.prototype.T;S.prototype.getAdManager=S.prototype.sd;S.prototype.getAssetUri=S.prototype.le;S.prototype.getNetworkingEngine=S.prototype.Hc;S.prototype.getMediaElement=S.prototype.Rg;
530
+ S.prototype.getLoadMode=S.prototype.Hf;S.prototype.resetConfiguration=S.prototype.Ch;S.prototype.getBufferFullness=S.prototype.Ag;S.prototype.getConfiguration=S.prototype.getConfiguration;S.prototype.configure=S.prototype.configure;S.prototype.load=S.prototype.load;S.prototype.updateStartTime=S.prototype.Ph;S.prototype.unload=S.prototype.$e;S.prototype.detach=S.prototype.detach;S.prototype.attachCanvas=S.prototype.pf;S.prototype.attach=S.prototype.Bc;
529
531
  S.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return G(function(h){if(1==h.g)return b={},a?u(h,Vg(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(Oc()){for(var l in bh)k[l]=!0;for(var m in dh)k[m]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};m=r(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var p=m.next();!p.done;p=m.next())p=p.value,k[p]=Oc()?!!bh[p]:Pc(p);for(var n in l)k[n]=
530
532
  Oc()?!!dh[n]:Pc(l[n]);c=k;n='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(gj));
531
- k={};n=r(n);for(l=n.next();!l.done;l=n.next())l=l.value,k[l]=Oc()?Dd(l)?!0:dc(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=An;for(g in f)e[g]=f[g]();return h.return(e)})};S.isBrowserSupported=pm;S.setAdManagerFactory=function(a){Zl=a};S.registerSupportPlugin=function(a,b){An[a]=b};S.prototype.destroy=S.prototype.destroy;var om=0,Wl=1,Mm=2,$m=3;S.LoadMode={DESTROYED:om,NOT_LOADED:Wl,MEDIA_SOURCE:Mm,SRC_EQUALS:$m};S.version="v4.3.2";var Bn=["4","3"];
533
+ k={};n=r(n);for(l=n.next();!l.done;l=n.next())l=l.value,k[l]=Oc()?Dd(l)?!0:dc(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=An;for(g in f)e[g]=f[g]();return h.return(e)})};S.isBrowserSupported=pm;S.setAdManagerFactory=function(a){Zl=a};S.registerSupportPlugin=function(a,b){An[a]=b};S.prototype.destroy=S.prototype.destroy;var om=0,Wl=1,Mm=2,$m=3;S.LoadMode={DESTROYED:om,NOT_LOADED:Wl,MEDIA_SOURCE:Mm,SRC_EQUALS:$m};S.version="v4.3.3";var Bn=["4","3"];
532
534
  Ge=new function(a){this.g=a;this.i=He;this.h=Ie}(new Ee(Number(Bn[0]),Number(Bn[1])));
533
535
  var zn=["output-restricted","internal-error"],An={},Zl=null,nm={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"},tn={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",
534
536
  ssa:"text/x-ssa",ass:"text/x-ssa"};function Cn(){this.h=[];this.j=this.i=this.g=0};function Dn(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 xf;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=Dn.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};
@@ -536,7 +538,7 @@ q.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()};q.getTimeUntilSki
536
538
  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()};
537
539
  q.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};q.getTitle=function(){return this.h.getTitle()};q.getDescription=function(){return this.h.getDescription()};q.release=function(){this.g=this.h=null};I("shaka.ads.ClientSideAd",Dn);Dn.prototype.release=Dn.prototype.release;Dn.prototype.getDescription=Dn.prototype.getDescription;Dn.prototype.getTitle=Dn.prototype.getTitle;Dn.prototype.getPositionInSequence=Dn.prototype.getPositionInSequence;
538
540
  Dn.prototype.getSequenceLength=Dn.prototype.getSequenceLength;Dn.prototype.setMuted=Dn.prototype.setMuted;Dn.prototype.resize=Dn.prototype.resize;Dn.prototype.isLinear=Dn.prototype.isLinear;Dn.prototype.isMuted=Dn.prototype.isMuted;Dn.prototype.setVolume=Dn.prototype.setVolume;Dn.prototype.getVolume=Dn.prototype.getVolume;Dn.prototype.play=Dn.prototype.play;Dn.prototype.pause=Dn.prototype.pause;Dn.prototype.skip=Dn.prototype.skip;Dn.prototype.canSkipNow=Dn.prototype.canSkipNow;
539
- Dn.prototype.getTimeUntilSkippable=Dn.prototype.getTimeUntilSkippable;Dn.prototype.isSkippable=Dn.prototype.isSkippable;Dn.prototype.isPaused=Dn.prototype.isPaused;Dn.prototype.getRemainingTime=Dn.prototype.getRemainingTime;Dn.prototype.getMinSuggestedDuration=Dn.prototype.getMinSuggestedDuration;Dn.prototype.getDuration=Dn.prototype.getDuration;function En(a,b,c,d){var e=this;this.s=a;this.i=b;this.B=null;this.C=NaN;this.l=d;this.j=null;this.h=new xf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.s,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.3.2");this.g=null;this.h.Da(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){Fn(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
541
+ Dn.prototype.getTimeUntilSkippable=Dn.prototype.getTimeUntilSkippable;Dn.prototype.isSkippable=Dn.prototype.isSkippable;Dn.prototype.isPaused=Dn.prototype.isPaused;Dn.prototype.getRemainingTime=Dn.prototype.getRemainingTime;Dn.prototype.getMinSuggestedDuration=Dn.prototype.getMinSuggestedDuration;Dn.prototype.getDuration=Dn.prototype.getDuration;function En(a,b,c,d){var e=this;this.s=a;this.i=b;this.B=null;this.C=NaN;this.l=d;this.j=null;this.h=new xf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.s,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.3.3");this.g=null;this.h.Da(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){Fn(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
540
542
  function(f){Gn(e,f)});this.i.onended=function(){e.m.contentComplete()}}En.prototype.stop=function(){this.g&&this.g.stop();this.s&&al(this.s)};En.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function Gn(a,b){b.getError();Hn(a,null);a.l(new L("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
541
543
  function Fn(a,b){a.l(new L("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.C)));a.g=b.getAdsManager(a.i);a.l(new L("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){b=[];c=r(c);for(var d=c.next();!d.done;d=c.next())b.push({start:d.value,end:null});a.l(new L("ad-cue-points-changed",(new Map).set("cuepoints",b)))}In(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,Jn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.o(a.i,"loadeddata",
542
544
  function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Jn(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,Jn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.i)):a.h.o(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Jn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.i.addEventListener("play",function(){a.g.start()},
@@ -558,8 +560,8 @@ f;e.i(new L("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}Mn.prototyp
558
560
  function Nn(a,b){a.i(new L("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.H||a.h.o(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.s=c,a.l.currentTime=d.start)}})};function T(){fb.call(this);this.g=this.i=null;this.h=new Cn;this.j=navigator.language}pa(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 M(2,10,1E4);this.i&&this.i.release();this.i=new En(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)})};
559
561
  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 L("ad-stopped"));this.h=new Cn};q.requestClientSideAds=function(a){if(!this.i)throw new M(1,10,10001);var b=this.i;b.C=Date.now()/1E3;b.m.requestAds(a)};
560
562
  q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new M(2,10,10002);this.g&&this.g.release();this.g=new Mn(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)})};
561
- q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new M(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ta('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.3.2";c=this.g;c.j?a=Promise.reject(new M(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
562
- (c.H=!0),c.j=new Lc,c.g.requestStream(a),c.F=b||"",c.I=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new M(1,10,10003);(a.mpt||a.mpv)&&Ta('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.3.2";this.g.g.replaceAdTagParameters(a)};q.getServerSideCuePoints=function(){if(!this.g)throw new M(1,10,10003);return this.g.G};
563
+ q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new M(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ta('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.3.3";c=this.g;c.j?a=Promise.reject(new M(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
564
+ (c.H=!0),c.j=new Lc,c.g.requestStream(a),c.F=b||"",c.I=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new M(1,10,10003);(a.mpt||a.mpv)&&Ta('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.3.3";this.g.g.replaceAdTagParameters(a)};q.getServerSideCuePoints=function(){if(!this.g)throw new M(1,10,10003);return this.g.G};
563
565
  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)};I("shaka.ads.AdManager",T);
564
566
  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;
565
567
  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";
@@ -572,33 +574,33 @@ var Rn="ended play playing pause pausing ratechange seeked seeking timeupdate vo
572
574
  isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},Wn={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},Xn={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},Yn=[["getConfiguration","configure"]],Zn=[["isTextTrackVisible","setTextTrackVisibility"]],$n="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
573
575
  ao=["attach","attachCanvas","detach","load","unload"];function bo(a,b,c,d,e,f,g){var h=this;this.I=a;this.O=g;this.j=new O(b);this.P=c;this.C=!1;this.B=d;this.H=e;this.K=f;this.h=this.m=!1;this.M="";this.s=null;this.F=function(){return co(h)};this.G=function(k,l){k=Pn(l);switch(k.type){case "event":var m=k.targetName,p=Oa(k.event);h.B(m,p);break;case "update":m=k.update;for(p in m){k=h.g[p]||{};for(var n in m[p])k[n]=m[p][n]}h.C&&(h.P(),h.C=!1);break;case "asyncComplete":if(p=k.id,n=k.error,k=h.i[p],delete h.i[p],k)if(n){p=new M(n.severity,n.category,
574
576
  n.code);for(m in n)p[m]=n[m];k.reject(p)}else k.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.l=null;eo.add(this)}q=bo.prototype;q.destroy=function(){eo.delete(this);fo(this);go&&ho(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.s=null;return Promise.resolve()};q.na=function(){return this.h};q.Jd=function(){return this.M};
575
- 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.O,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=r(eo),d=c.next();!d.done;d=c.next())io(d.value,b)},function(b){for(var c=r(eo),d=c.next();!d.done;d=c.next())d=d.value,jo="available"==b,d.j.ya()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});jo&&this.j.R(ko);(a=go)&&a.status!=chrome.cast.SessionStatus.STOPPED?
576
- io(this,a):go=null}else window.__onGCastApiAvailable!==lo&&(mo=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=lo)};q.Je=function(a){this.s=a;this.h&&no(this,{type:"appData",appData:this.s})};q.cast=function(a){var b=this;return G(function(c){if(!b.m)throw new M(1,8,8E3);if(!jo)throw new M(1,8,8001);if(b.h)throw new M(1,8,8002);b.l=new Lc;chrome.cast.requestSession(function(d){return oo(b,a,d)},function(d){return po(b,d)});return u(c,b.l,0)})};
577
+ q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.za();var a=new chrome.cast.SessionRequest(this.I,[],null,this.O,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=r(eo),d=c.next();!d.done;d=c.next())io(d.value,b)},function(b){for(var c=r(eo),d=c.next();!d.done;d=c.next())d=d.value,jo="available"==b,d.j.za()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});jo&&this.j.R(ko);(a=go)&&a.status!=chrome.cast.SessionStatus.STOPPED?
578
+ io(this,a):go=null}else window.__onGCastApiAvailable!==lo&&(mo=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=lo)};q.Ke=function(a){this.s=a;this.h&&no(this,{type:"appData",appData:this.s})};q.cast=function(a){var b=this;return G(function(c){if(!b.m)throw new M(1,8,8E3);if(!jo)throw new M(1,8,8001);if(b.h)throw new M(1,8,8002);b.l=new Lc;chrome.cast.requestSession(function(d){return oo(b,a,d)},function(d){return po(b,d)});return u(c,b.l,0)})};
577
579
  function qo(a){if(a.h){var b=a.K();chrome.cast.requestSession(function(c){return oo(a,b,c)},function(c){return po(a,c)})}}q.$b=function(){if(this.h){fo(this);if(go){ho(this);try{go.stop(function(){},function(){})}catch(a){}go=null}co(this)}};
578
- q.get=function(a,b){var c=this;if("video"==a){if(Un.includes(b))return function(){return c.Qf.apply(c,[a,b].concat(ia(Ga.apply(0,arguments))))}}else if("player"==a){if(Xn[b]&&!this.get("player","isLive")())return function(){};if($n.includes(b))return function(){return c.Qf.apply(c,[a,b].concat(ia(Ga.apply(0,arguments))))};if(ao.includes(b))return function(){return c.wh.apply(c,[a,b].concat(ia(Ga.apply(0,arguments))))};if(Vn[b]||Wn[b])return function(){return c.g[a][b]}}return this.g[a][b]};
580
+ q.get=function(a,b){var c=this;if("video"==a){if(Un.includes(b))return function(){return c.Sf.apply(c,[a,b].concat(ia(Ga.apply(0,arguments))))}}else if("player"==a){if(Xn[b]&&!this.get("player","isLive")())return function(){};if($n.includes(b))return function(){return c.Sf.apply(c,[a,b].concat(ia(Ga.apply(0,arguments))))};if(ao.includes(b))return function(){return c.yh.apply(c,[a,b].concat(ia(Ga.apply(0,arguments))))};if(Vn[b]||Wn[b])return function(){return c.g[a][b]}}return this.g[a][b]};
579
581
  q.set=function(a,b,c){this.g[a][b]=c;no(this,{type:"set",targetName:a,property:b,value:c})};function oo(a,b,c){go=c;c.addUpdateListener(a.F);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);co(a);no(a,{type:"init",initState:b,appData:a.s});a.l.resolve()}function po(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 M(2,8,c,b))}
580
- q.Qf=function(a,b){no(this,{type:"call",targetName:a,methodName:b,args:Ga.apply(2,arguments)})};q.wh=function(a,b){var c=Ga.apply(2,arguments),d=new Lc,e=this.J.toString();this.J++;this.i[e]=d;try{no(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function io(a,b){var c=a.K();a.l=new Lc;a.C=!0;oo(a,c,b)}function ho(a){var b=go;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
581
- function co(a){var b=go?"connected"==go.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};fo(a)}a.h=b;a.M=b?go.receiver.friendlyName:"";a.j.ya()}function fo(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new M(1,7,7E3))}}function no(a,b){b=On(b);var c=go;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},Xa)}catch(d){throw b=new M(2,8,8005,d),c=new L("error",(new Map).set("detail",b)),a.B("player",c),a.$b(),b;}}var ko=.02,jo=!1,go=null,mo=null,eo=new Set;
582
+ q.Sf=function(a,b){no(this,{type:"call",targetName:a,methodName:b,args:Ga.apply(2,arguments)})};q.yh=function(a,b){var c=Ga.apply(2,arguments),d=new Lc,e=this.J.toString();this.J++;this.i[e]=d;try{no(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function io(a,b){var c=a.K();a.l=new Lc;a.C=!0;oo(a,c,b)}function ho(a){var b=go;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
583
+ function co(a){var b=go?"connected"==go.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};fo(a)}a.h=b;a.M=b?go.receiver.friendlyName:"";a.j.za()}function fo(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new M(1,7,7E3))}}function no(a,b){b=On(b);var c=go;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},Xa)}catch(d){throw b=new M(2,8,8005,d),c=new L("error",(new Map).set("detail",b)),a.B("player",c),a.$b(),b;}}var ko=.02,jo=!1,go=null,mo=null,eo=new Set;
582
584
  function lo(a){mo?window.__onGCastApiAvailable=mo:delete window.__onGCastApiAvailable;mo=null;if(a)for(var b=r(eo),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function ro(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.s=this.j=this.B=this.l=null;this.G=c;this.F=d;this.C=new Map;this.g=new bo(c,function(){return so(e)},function(){return to(e)},function(f,g){return uo(e,f,g)},function(){return vo(e)},function(){return wo(e)},d);xo(this)}pa(ro,fb);q=ro.prototype;
583
- 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.zb=function(){return this.l};q.cc=function(){return this.B};q.qf=function(){return this.g.m&&jo};q.na=function(){return this.g.na()};q.Jd=function(){return this.g.Jd()};
584
- q.cast=function(){var a=this,b;return G(function(c){return 1==c.g?(b=wo(a),u(c,a.g.cast(b),2)):a.h?u(c,a.h.Ye(),0):c.return()})};q.Je=function(a){this.g.Je(a)};q.ag=function(){qo(this.g)};q.$b=function(){this.g.$b()};
585
- q.vf=function(a,b){b=void 0===b?!1:b;var c=this;return G(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 bo(a,function(){return so(c)},function(){return to(c)},function(e,f){return uo(c,e,f)},function(){return vo(c)},function(){return wo(c)},b);c.g.init();B(d)})};
585
+ 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.zb=function(){return this.l};q.cc=function(){return this.B};q.tf=function(){return this.g.m&&jo};q.na=function(){return this.g.na()};q.Jd=function(){return this.g.Jd()};
586
+ q.cast=function(){var a=this,b;return G(function(c){return 1==c.g?(b=wo(a),u(c,a.g.cast(b),2)):a.h?u(c,a.h.$e(),0):c.return()})};q.Ke=function(a){this.g.Ke(a)};q.dg=function(){qo(this.g)};q.$b=function(){this.g.$b()};
587
+ q.xf=function(a,b){b=void 0===b?!1:b;var c=this;return G(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 bo(a,function(){return so(c)},function(){return to(c)},function(e,f){return uo(c,e,f)},function(){return vo(c)},function(){return wo(c)},b);c.g.init();B(d)})};
586
588
  function xo(a){a.g.init();a.m=new xf;for(var b=r(Rn),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.na()||(f=Oa(f),a.j.dispatchEvent(f))});for(var d in Pa)a.m.o(a.h,Pa[d],function(f){a.g.na()||a.s.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.vc=e,Object.defineProperty(a.l,b.vc,{configurable:!1,enumerable:!0,get:function(f){return function(){return yo(a,f.vc)}}(b),set:function(f){return function(g){var h=f.vc;a.g.na()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={vc:b.vc};a.B={};zo(a,
587
- function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return Ao(a,f)}})});Bo(a);a.j=new fb;a.j.Dd=a.l;a.s=new fb;a.s.Dd=a.B}function Bo(a){var b=new Map;zo(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.C.set(c,d):a.C.set(d,c)):b.set(d,c)})}
589
+ function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return Ao(a,f)}})});Bo(a);a.j=new fb;a.j.Hd=a.l;a.s=new fb;a.s.Hd=a.B}function Bo(a){var b=new Map;zo(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.C.set(c,d):a.C.set(d,c)):b.set(d,c)})}
588
590
  function zo(a,b){function c(k){return"constructor"==k||"function"!=typeof d[k]?!1:!e.has(k)}var d=a.h,e=new Set,f;for(f in d)c(f)&&(e.add(f),b(f,d[f]));a=Object.getPrototypeOf(d);for(f=Object.getPrototypeOf({});a&&a!=f;){for(var g=r(Object.getOwnPropertyNames(a)),h=g.next();!h.done;h=g.next())h=h.value,c(h)&&(e.add(h),b(h,d[h]));a=Object.getPrototypeOf(a)}}
589
591
  function wo(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.le(),startTime:null};a.i.pause();for(var c=r(Tn),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=r(Yn);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=r(Zn);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 so(a){var b=new L("caststatuschanged");a.dispatchEvent(b)}
590
592
  function to(a){var b=new L(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
591
593
  function vo(a){for(var b=r(Yn),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=r(Tn);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=r(Tn),k=h.next();!k.done;k=h.next())k=k.value,a.i[k]=g[k];h=r(Zn);for(k=
592
594
  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 L("error",h);a.h.dispatchEvent(h)})}
593
595
  function yo(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.na()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.na()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
594
- function Ao(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.s.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.s.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.Hc()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.rd()};
595
- if("setVideoContainer"==b)return function(c){return a.h.Re(c)};if(a.g.na()){if("getManifest"==b||"drmInfo"==b)return function(){Ta(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ta(b+"() does not work while casting!");return Promise.resolve()}}return a.g.na()&&0==Object.keys(a.g.g.video).length&&(Vn[b]||Wn[b])||!a.g.na()?a.h[b].bind(a.h):a.g.get("player",b)}
596
- function uo(a,b,c){a.g.na()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.s.dispatchEvent(c))}I("shaka.cast.CastProxy",ro);ro.prototype.changeReceiverId=ro.prototype.vf;ro.prototype.forceDisconnect=ro.prototype.$b;ro.prototype.suggestDisconnect=ro.prototype.ag;ro.prototype.setAppData=ro.prototype.Je;ro.prototype.cast=ro.prototype.cast;ro.prototype.receiverName=ro.prototype.Jd;ro.prototype.isCasting=ro.prototype.na;ro.prototype.canCast=ro.prototype.qf;ro.prototype.getPlayer=ro.prototype.cc;
597
- ro.prototype.getVideo=ro.prototype.zb;ro.prototype.destroy=ro.prototype.destroy;function Co(a,b,c,d){fb.call(this);var e=this;this.g=a;this.h=b;this.j=new xf;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.s=!0;this.m=0;this.F=!1;this.C=!0;this.B=this.l=null;this.I=new O(function(){Do(e)});Eo(this)}pa(Co,fb);q=Co.prototype;q.isConnected=function(){return this.H};q.eh=function(){return this.s};q.Gh=function(a){this.i=a};q.qg=function(){this.i=null};
598
- q.Hh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.Fh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.Eh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
596
+ function Ao(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.s.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.s.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.Hc()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.sd()};
597
+ if("setVideoContainer"==b)return function(c){return a.h.Se(c)};if(a.g.na()){if("getManifest"==b||"drmInfo"==b)return function(){Ta(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ta(b+"() does not work while casting!");return Promise.resolve()}}return a.g.na()&&0==Object.keys(a.g.g.video).length&&(Vn[b]||Wn[b])||!a.g.na()?a.h[b].bind(a.h):a.g.get("player",b)}
598
+ function uo(a,b,c){a.g.na()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.s.dispatchEvent(c))}I("shaka.cast.CastProxy",ro);ro.prototype.changeReceiverId=ro.prototype.xf;ro.prototype.forceDisconnect=ro.prototype.$b;ro.prototype.suggestDisconnect=ro.prototype.dg;ro.prototype.setAppData=ro.prototype.Ke;ro.prototype.cast=ro.prototype.cast;ro.prototype.receiverName=ro.prototype.Jd;ro.prototype.isCasting=ro.prototype.na;ro.prototype.canCast=ro.prototype.tf;ro.prototype.getPlayer=ro.prototype.cc;
599
+ ro.prototype.getVideo=ro.prototype.zb;ro.prototype.destroy=ro.prototype.destroy;function Co(a,b,c,d){fb.call(this);var e=this;this.g=a;this.h=b;this.j=new xf;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.s=!0;this.m=0;this.F=!1;this.C=!0;this.B=this.l=null;this.I=new O(function(){Do(e)});Eo(this)}pa(Co,fb);q=Co.prototype;q.isConnected=function(){return this.H};q.gh=function(){return this.s};q.Ih=function(a){this.i=a};q.sg=function(){this.i=null};
600
+ q.Jh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.Hh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.Gh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
599
601
  q.destroy=function(){var a=this,b,c;return G(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.s=!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();B(d)})};
600
602
  function Eo(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return Fo(a)};b.onSenderDisconnected=function(){return Fo(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&Go(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);Go(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 Ho(a,
601
- e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return Io(a,e)};b.start();b=r(Rn);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return Jo(a,"video",e)});for(var d in Pa)a.j.o(a.h,Pa[d],function(e){return Jo(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.Me(3840,2160):a.h.Me(1920,1080);a.j.o(a.g,"loadeddata",function(){a.F=!0});a.j.o(a.h,"loading",function(){a.s=
603
+ e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return Io(a,e)};b.start();b=r(Rn);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return Jo(a,"video",e)});for(var d in Pa)a.j.o(a.h,Pa[d],function(e){return Jo(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.Ne(3840,2160):a.h.Ne(1920,1080);a.j.o(a.g,"loadeddata",function(){a.F=!0});a.j.o(a.h,"loading",function(){a.s=
602
604
  !1;Ko(a)});a.j.o(a.g,"playing",function(){a.s=!1;Ko(a)});a.j.o(a.g,"pause",function(){Ko(a)});a.j.o(a.h,"unloading",function(){a.s=!0;Ko(a)});a.j.o(a.g,"ended",function(){(new O(function(){a.g&&a.g.ended&&(a.s=!0,Ko(a))})).R(Lo)})}function Fo(a){a.m=0;a.C=!0;a.H=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;Ko(a)}
603
605
  function Ko(a){var b;G(function(c){if(1==c.g)return u(c,Promise.resolve(),2);if(!a.h)return c.return();b=new L("caststatuschanged");a.dispatchEvent(b);Mo(a)||No(a);B(c)})}
604
606
  function Oo(a,b,c){var d,e,f,g,h,k,l,m,p,n;G(function(t){switch(t.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,D(t,5),u(t,a.h.load(b.manifest,b.startTime),7)):u(t,Promise.resolve(),3);case 7:ua(t,3);break;case 5:return g=va(t),h=(new Map).set("detail",g),k=new L("error",h),a.h&&a.h.dispatchEvent(k),t.return();case 3:if(!a.h)return t.return();for(l in b.video)m=b.video[l],a.g[l]=m;for(p in b.playerAfterLoad)n=b.playerAfterLoad[p],a.h[p](n);
@@ -607,55 +609,55 @@ function Do(a){a.I.R(Po);for(var b={video:{},player:{}},c=r(Sn),d=c.next();!d.do
607
609
  1);Mo(a)}function Mo(a){return a.C&&(a.g.duration||a.h.T())?(Qo(a),a.C=!1,!0):!1}function Qo(a,b){var c={contentId:a.h.le(),streamType:a.h.T()?"LIVE":"BUFFERED",contentType:""};a.h.T()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);No(a,void 0===b?0:b,c)}
608
610
  function Io(a,b){var c=Pn(b.data);switch(c.type){case "init":a.m=0;a.F=!1;a.C=!0;Oo(a,c.initState,c.appData);Do(a);break;case "appData":a.G(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d)if(b=cast.receiver.CastReceiverManager.getInstance(),"volume"==e){b.setSystemVolumeLevel(c);break}else if("muted"==e){b.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=c.methodName;
609
611
  "player"==d&&"load"==e&&(a.m=0,a.F=!1);var f=c.id,g=b.senderId;b=a.J[d];c=b[e].apply(b,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.C=!0}));c.then(function(){return Ro(a,g,f,null)},function(h){return Ro(a,g,f,h)})}}
610
- function Ho(a,b){var c=Pn(b.data);switch(c.type){case "PLAY":a.g.play();No(a);break;case "PAUSE":a.g.pause();No(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),No(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),No(a));break;case "STOP":a.h.Ye().then(function(){a.h&&No(a)});break;case "GET_STATUS":Qo(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.g.volume,f=a.g.muted;null!=b&&(a.g.volume=Number(b));
612
+ function Ho(a,b){var c=Pn(b.data);switch(c.type){case "PLAY":a.g.play();No(a);break;case "PAUSE":a.g.pause();No(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),No(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),No(a));break;case "STOP":a.h.$e().then(function(){a.h&&No(a)});break;case "GET_STATUS":Qo(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.g.volume,f=a.g.muted;null!=b&&(a.g.volume=Number(b));
611
613
  null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||No(a);break;case "LOAD":a.m=0;a.F=!1;a.C=!1;b=c.media;d=c.currentTime;e=a.K(b.contentId);f=c.autoplay||!0;a.G(b.customData);f&&(a.g.autoplay=!0);a.h.load(e,d).then(function(){a.h&&Qo(a)}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");Go(a,{requestId:Number(c.requestId),type:h},a.B)});break;default:Go(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
612
614
  function Ro(a,b,c,d){a.h&&Go(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function Go(a,b,c,d){a.H&&(a=On(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function No(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.s?So:a.h.Pc()?To:a.g.paused?Uo:Vo,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);Go(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
613
- I("shaka.cast.CastReceiver",Co);Co.prototype.destroy=Co.prototype.destroy;Co.prototype.setContentArtist=Co.prototype.Eh;Co.prototype.setContentImage=Co.prototype.Fh;Co.prototype.setContentTitle=Co.prototype.Hh;Co.prototype.clearContentMetadata=Co.prototype.qg;Co.prototype.setContentMetadata=Co.prototype.Gh;Co.prototype.isIdle=Co.prototype.eh;Co.prototype.isConnected=Co.prototype.isConnected;var Po=.5,Lo=5,So="IDLE",Vo="PLAYING",To="BUFFERING",Uo="PAUSED";function Wo(a,b,c){var d=Xo(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 M(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.Fe?(e=h.init||e,!1):!0}),f.length&&(a=Yo(e,f,c,g),0==a.length&&(a=[Eb("",e)])));if(d.length&&(b||!f.length))for(a=[],b=r(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=r(a),c=b.next();!c.done;c=b.next())for(c=
614
- r(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{yf:g,qj:e,drmInfos:a,Cf:!0}}function Zo(a,b,c,d){var e=Wo(a,c,d);if(b.Cf){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.Cf=!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 M(2,4,4008);return e.yf||b.yf}
615
+ I("shaka.cast.CastReceiver",Co);Co.prototype.destroy=Co.prototype.destroy;Co.prototype.setContentArtist=Co.prototype.Gh;Co.prototype.setContentImage=Co.prototype.Hh;Co.prototype.setContentTitle=Co.prototype.Jh;Co.prototype.clearContentMetadata=Co.prototype.sg;Co.prototype.setContentMetadata=Co.prototype.Ih;Co.prototype.isIdle=Co.prototype.gh;Co.prototype.isConnected=Co.prototype.isConnected;var Po=.5,Lo=5,So="IDLE",Vo="PLAYING",To="BUFFERING",Uo="PAUSED";function Wo(a,b,c){var d=Xo(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 M(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.Ge?(e=h.init||e,!1):!0}),f.length&&(a=Yo(e,f,c,g),0==a.length&&(a=[Eb("",e)])));if(d.length&&(b||!f.length))for(a=[],b=r(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=r(a),c=b.next();!c.done;c=b.next())for(c=
616
+ r(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{Af:g,sj:e,drmInfos:a,Ef:!0}}function Zo(a,b,c,d){var e=Wo(a,c,d);if(b.Ef){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.Ef=!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 M(2,4,4008);return e.Af||b.Af}
615
617
  function $o(a){var b=0,c=Kc(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=Hc(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
616
618
  function ap(a){a=r(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=r(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 bp(a){a=Wf(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=jd(a.textContent);a=$o(a).filter(function(b){return b.type===cp})[0];if(!a)return"";a=bd(a.value,!0);return(a=lg(a,"WRMHEADER"))?ap(a):""}
617
- function Yo(a,b,c,d){var e=[];b=r(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.Fe];if(g){var h;if(h=Wf(f.node,"urn:microsoft:playready","pro")){h=jd(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:Tf(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.Fe)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,
619
+ function Yo(a,b,c,d){var e=[];b=r(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.Ge];if(g){var h;if(h=Wf(f.node,"urn:microsoft:playready","pro")){h=jd(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:Tf(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.Ge)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,
618
620
  226,251,75]),m=new Uint8Array([]);k=[{initData:Tf(m,l,k,1),initDataType:"cenc",keyId:f.keyId}]}h=Eb(g,f.init||a||h||k);if(g=dp.get(g))h.licenseServerUri=g(f);e.push(h)}}return e}function Xo(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())(c=ep(c.value))&&b.push(c);return b}
619
- function ep(a){var b=a.getAttribute("schemeIdUri"),c=Zf(a,"urn:mpeg:cenc:2013","default_KID"),d=Xf(a,"urn:mpeg:cenc:2013","pssh").map(ag);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new M(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:jd(f),keyId:null}})}catch(f){throw new M(2,4,4007);}return{node:a,Fe:b,keyId:c,init:0<e.length?e:null}}
621
+ function ep(a){var b=a.getAttribute("schemeIdUri"),c=Zf(a,"urn:mpeg:cenc:2013","default_KID"),d=Xf(a,"urn:mpeg:cenc:2013","pssh").map(ag);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new M(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:jd(f),keyId:null}})}catch(f){throw new M(2,4,4007);}return{node:a,Ge:b,keyId:c,init:0<e.length?e:null}}
620
622
  var cp=1,dp=(new Map).set("com.widevine.alpha",function(a){return(a=Wf(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",bp).set("com.microsoft.playready.recommendation",bp).set("com.microsoft.playready.software",bp).set("com.microsoft.playready.hardware",bp).set("org.w3.clearkey",function(a){return(a=Wf(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function fp(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=
621
623
  window.parseInt(k,10)||1;return Array(Math.max(0,k-g.length)+1).join("0")+g})}
622
624
  function gp(a,b){var c=hp(a,b,"timescale"),d=1;c&&(d=hg(c)||1);var e=hp(a,b,"duration");c=hg(e||"");"image"==a.L.contentType&&(c=jg(e||""));c&&(c/=d);var f=hp(a,b,"startNumber");e=Number(hp(a,b,"presentationTimeOffset"))||0;var g=ig(f||"");if(null==f||null==g)g=1;f=ip(a,b,"SegmentTimeline");b=null;if(f){b=d;a=a.Y.duration||Infinity;f=Vf(f,"S");for(var h=[],k=-e,l=0;l<f.length;++l){var m=f[l],p=f[l+1],n=cg(m,"t",ig),t=cg(m,"d",ig);m=cg(m,"r",gg);null!=n&&(n-=e);if(!t)break;n=null!=n?n:k;m=m||0;if(0>
623
- m)if(p){p=cg(p,"t",ig);if(null==p)break;else if(n>=p)break;m=Math.ceil((p-n)/t)-1}else{if(Infinity==a)break;else if(n/b>=a)break;m=Math.ceil((a*b-n)/t)-1}0<h.length&&n!=k&&(h[h.length-1].end=n/b);for(p=0;p<=m;++p)k=n+t,h.push({start:n/b,end:k/b,Lh:n}),n=k}b=h}return{timescale:d,xa:c,pc:g,pb:e/d||0,Ze:e,timeline:b}}function hp(a,b,c){return[b(a.L),b(a.ua),b(a.oa)].filter(Cb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
624
- function ip(a,b,c){return[b(a.L),b(a.ua),b(a.oa)].filter(Cb).map(function(d){return Uf(d,c)}).reduce(function(d,e){return d||e})}
625
- function jp(a,b,c,d,e,f){for(var g=Zf(a,"http://www.w3.org/1999/xlink","href"),h=Zf(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=r(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 $e(new M(2,4,4028));if("onLoad"!=h)return $e(new M(2,4,4027));var m=Db([d],[g]);return e.request(0,of(m,b)).ha(function(p){p=ng(p.data,a.tagName);if(!p)return $e(new M(2,4,4001,g));
625
+ m)if(p){p=cg(p,"t",ig);if(null==p)break;else if(n>=p)break;m=Math.ceil((p-n)/t)-1}else{if(Infinity==a)break;else if(n/b>=a)break;m=Math.ceil((a*b-n)/t)-1}0<h.length&&n!=k&&(h[h.length-1].end=n/b);for(p=0;p<=m;++p)k=n+t,h.push({start:n/b,end:k/b,Nh:n}),n=k}b=h}return{timescale:d,ya:c,pc:g,pb:e/d||0,bf:e,timeline:b}}function hp(a,b,c){return[b(a.L),b(a.va),b(a.oa)].filter(Cb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
626
+ function ip(a,b,c){return[b(a.L),b(a.va),b(a.oa)].filter(Cb).map(function(d){return Uf(d,c)}).reduce(function(d,e){return d||e})}
627
+ function jp(a,b,c,d,e,f){for(var g=Zf(a,"http://www.w3.org/1999/xlink","href"),h=Zf(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=r(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 $e(new M(2,4,4028));if("onLoad"!=h)return $e(new M(2,4,4027));var m=Db([d],[g]);return e.request(0,of(m,b)).ia(function(p){p=ng(p.data,a.tagName);if(!p)return $e(new M(2,4,4001,g));
626
628
  for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;p.childNodes.length;){var n=p.childNodes[0];p.removeChild(n);a.appendChild(n)}p=r(Array.from(p.attributes));for(n=p.next();!n.done;n=p.next())a.setAttributeNode(n.value.cloneNode(!1));return kp(a,b,c,m[0],e,f+1)})}
627
- function kp(a,b,c,d,e,f){f=void 0===f?0:f;if(Zf(a,"http://www.w3.org/1999/xlink","href")){var g=jp(a,b,c,d,e,f);c&&(g=g.ha(void 0,function(){return kp(a,b,c,d,e,f)}));return g}g=[];for(var h=r(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"==Zf(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(kp(k,b,c,d,e,f)));return df(g).ha(function(){return a})};function lp(a,b,c,d,e,f,g){var h,k=(new If).S("sidx",function(l){h=mp(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new M(2,3,3004);}
628
- function mp(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.N();if(0==k)throw new M(2,3,3005);if(0==g.version){var l=g.reader.N();var m=g.reader.N()}else l=g.reader.Cb(),m=g.reader.Cb();g.reader.skip(2);var p=g.reader.Be();a=a+g.size+m;for(m=0;m<p;m++){var n=g.reader.N(),t=(n&2147483648)>>>31;n&=2147483647;var v=g.reader.N();g.reader.skip(4);if(1==t)throw new M(2,3,3006);h.push(new zi(l/k+c,(l+v)/k+c,function(){return f},a,a+n-1,b,c,d,e));l+=v;a+=n}g.parser.stop();return h};function np(a){this.h=Kc(a);this.g=new Ff(this.h,0)}np.prototype.wa=function(){return this.g.wa()};
629
+ function kp(a,b,c,d,e,f){f=void 0===f?0:f;if(Zf(a,"http://www.w3.org/1999/xlink","href")){var g=jp(a,b,c,d,e,f);c&&(g=g.ia(void 0,function(){return kp(a,b,c,d,e,f)}));return g}g=[];for(var h=r(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"==Zf(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(kp(k,b,c,d,e,f)));return df(g).ia(function(){return a})};function lp(a,b,c,d,e,f,g){var h,k=(new If).S("sidx",function(l){h=mp(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new M(2,3,3004);}
630
+ function mp(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.N();if(0==k)throw new M(2,3,3005);if(0==g.version){var l=g.reader.N();var m=g.reader.N()}else l=g.reader.Cb(),m=g.reader.Cb();g.reader.skip(2);var p=g.reader.Ce();a=a+g.size+m;for(m=0;m<p;m++){var n=g.reader.N(),t=(n&2147483648)>>>31;n&=2147483647;var v=g.reader.N();g.reader.skip(4);if(1==t)throw new M(2,3,3006);h.push(new zi(l/k+c,(l+v)/k+c,function(){return f},a,a+n-1,b,c,d,e));l+=v;a+=n}g.parser.stop();return h};function np(a){this.h=Kc(a);this.g=new Ff(this.h,0)}np.prototype.xa=function(){return this.g.xa()};
629
631
  function op(a){var b=pp(a);if(7<b.length)throw new M(2,3,3002);var c=0;b=r(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=pp(a);a:{d=r(qp);for(var e=d.next();!e.done;e=d.next())if(Fc(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.ma();else{if(8==b.length&&b[1]&224)throw new M(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.ma()+b<=a.h.byteLength?b:a.h.byteLength-a.g.ma();d=Kc(a.h,a.g.ma(),b);a.g.skip(b);return new rp(c,
630
632
  d)}function pp(a){var b=a.g.ma(),c=a.g.ob();if(0==c)throw new M(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Hc(a.h,b,c)}var qp=[[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 rp(a,b){this.id=a;this.g=b}
631
- function sp(a){if(8<a.g.byteLength)throw new M(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new M(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 tp(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new np(a.g);for(var p=null,n=null;a.wa();){var t=op(a);if(187==t.id){var v=up(t);v&&(t=c*v.Mh,v=b+v.vh,null!=p&&m.push(new zi(p+g,t+g,l,n,v-1,f,g,h,k)),p=t,n=v)}}null!=p&&m.push(new zi(p+g,d+g,l,n,null,f,g,h,k));return m}
632
- function up(a){var b=new np(a.g);a=op(b);if(179!=a.id)throw new M(2,3,3013);a=sp(a);b=op(b);if(183!=b.id)throw new M(2,3,3012);b=new np(b.g);for(var c=0;b.wa();){var d=op(b);if(241==d.id){c=sp(d);break}}return{Mh:a,vh:c}};function vp(a,b){b=ip(a,b,"Initialization");if(!b)return null;var c=a.L.Na,d=b.getAttribute("sourceURL");d&&(c=Db(a.L.Na,[d]));d=0;var e=null;if(b=cg(b,"range",fg))d=b.start,e=b.end;return new xi(function(){return c},d,e,wp(a))}
633
+ function sp(a){if(8<a.g.byteLength)throw new M(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new M(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 tp(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new np(a.g);for(var p=null,n=null;a.xa();){var t=op(a);if(187==t.id){var v=up(t);v&&(t=c*v.Oh,v=b+v.xh,null!=p&&m.push(new zi(p+g,t+g,l,n,v-1,f,g,h,k)),p=t,n=v)}}null!=p&&m.push(new zi(p+g,d+g,l,n,null,f,g,h,k));return m}
634
+ function up(a){var b=new np(a.g);a=op(b);if(179!=a.id)throw new M(2,3,3013);a=sp(a);b=op(b);if(183!=b.id)throw new M(2,3,3012);b=new np(b.g);for(var c=0;b.xa();){var d=op(b);if(241==d.id){c=sp(d);break}}return{Oh:a,xh:c}};function vp(a,b){b=ip(a,b,"Initialization");if(!b)return null;var c=a.L.Na,d=b.getAttribute("sourceURL");d&&(c=Db(a.L.Na,[d]));d=0;var e=null;if(b=cg(b,"range",fg))d=b.start,e=b.end;return new xi(function(){return c},d,e,wp(a))}
633
635
  function xp(a,b){var c=Number(hp(a,yp,"presentationTimeOffset"))||0,d=hp(a,yp,"timescale"),e=1;d&&(e=hg(d)||1);var f=c/e||0,g=vp(a,yp);zp(a,g);var h=gf(a);return{ac:function(){var k=ip(h,yp,"RepresentationIndex");var l=h.L.Na;k&&(k=k.getAttribute("sourceURL"))&&(l=Db(h.L.Na,[k]));k=Ap(h);return Bp(h,b,g,l,k.start,k.end,f)}}}
634
- function Bp(a,b,c,d,e,f,g){var h,k,l,m,p,n,t,v,y,w,x,A,z,C,E;return G(function(F){if(1==F.g)return h=a.presentationTimeline,k=!a.vb||!a.Y.Lf,l=a.Y.start,m=a.Y.duration,p=a.L.mimeType.split("/")[1],n=b,t=null,v=[n(d,e,f),"webm"==p?n(c.Pa(),c.Sa,c.Ba):null],n=null,u(F,Promise.all(v),2);y=F.h;w=y[0];x=y[1]||null;A=null;z=l-g;C=l;E=m?l+m:Infinity;if("mp4"==p)var H=lp(w,e,d,c,z,C,E);else{H=new np(x);if(440786851!=op(H).id)throw new M(2,3,3008);var J=op(H);if(408125543!=J.id)throw new M(2,3,3009);H=J.g.byteOffset;
635
- J=new np(J.g);for(var K=null;J.wa();){var N=op(J);if(357149030==N.id){K=N;break}}if(!K)throw new M(2,3,3010);K=new np(K.g);N=1E6;for(J=null;K.wa();){var V=op(K);if(2807729==V.id)N=sp(V);else if(17545==V.id)if(4==V.g.byteLength)J=V.g.getFloat32(0);else if(8==V.g.byteLength)J=V.g.getFloat64(0);else throw new M(2,3,3003);}if(null==J)throw new M(2,3,3011);K=N/1E9;J*=K;N=op(new np(w));if(475249515!=N.id)throw new M(2,3,3007);H=tp(N,H,K,J,d,c,z,C,E)}A=H;h.lc(A);t=new Sj(A);k&&t.wb(C,E,!0);return F.return(t)})}
636
- function yp(a){return a.Xc}function Ap(a){var b=ip(a,yp,"RepresentationIndex");a=hp(a,yp,"indexRange");a=fg(a||"");b&&(a=cg(b,"range",fg,a));return a}function zp(a,b){Cp(a,b);if(!Ap(a))throw new M(2,4,4002);}function Cp(a,b){var c=a.L.mimeType.split("/")[1];if(a.L.contentType!=Ib&&"mp4"!=c&&"webm"!=c)throw new M(2,4,4006);if("webm"==c&&!b)throw new M(2,4,4005);}
637
- function wp(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.Cd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function Dp(a,b){var c=vp(a,Ep),d=Fp(a);if(!d.xa&&!d.timeline&&1<d.jc.length)throw new M(2,4,4002);if(!d.xa&&!a.Y.duration&&!d.timeline&&1==d.jc.length)throw new M(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new M(2,4,4002);var e=null,f=null;a.oa.id&&a.L.id&&(f=b[a.oa.id+","+a.L.id])&&(e=f.segmentIndex);var g=Gp(a.Y.start,a.Y.duration,a.L.Na,d,c);b=!e;e?e.kc(g,a.presentationTimeline.kb()):e=new Sj(g);a.presentationTimeline.lc(g);a.vb&&a.Y.Lf||e.wb(a.Y.start,a.Y.duration?a.Y.start+a.Y.duration:
638
- Infinity,b);f&&(f.segmentIndex=e);return{ac:function(){e&&0!=e.g.length||e.Rc(g);return Promise.resolve(e)}}}function Ep(a){return a.Db}function Fp(a){var b=Hp(a);a=gp(a,Ep);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,pb:a.pb,timeline:a.timeline,jc:b}}
639
- function Gp(a,b,c,d,e){var f=d.jc.length;d.timeline&&d.timeline.length!=d.jc.length&&(f=Math.min(d.timeline.length,d.jc.length));for(var g=a-d.pb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},p=0;p<f;m={Vd:m.Vd},p++){var n=d.jc[p];m.Vd=Db(c,[n.kh]);var t=void 0;t=null!=d.xa?l+d.xa:d.timeline?d.timeline[p].end:l+b;k.push(new zi(a+l,a+t,function(v){return function(){return v.Vd}}(m),n.start,n.end,e,g,a,h));l=t}return k}
640
- function Hp(a){return[a.L.Db,a.ua.Db,a.oa.Db].filter(Cb).map(function(b){return Vf(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Jf&&(a.Jf=!0);var c=b.getAttribute("media");b=cg(b,"mediaRange",fg,{start:0,end:null});return{kh:c,start:b.start,end:b.end}})};function Jp(a,b,c,d,e,f){var g=Kp(a),h=Lp(a);Mp(h);var k=gf(a);if(h.Oc)return Cp(a,g),{ac:function(){var t=fp(h.Oc,k.L.id,null,k.bandwidth||null,null);t=Db(k.L.Na,[t]);return Bp(k,b,g,t,0,null,h.pb)}};if(h.xa)return d||"image"===a.ua.contentType||(a.presentationTimeline.xe(h.xa),a.presentationTimeline.ye(a.Y.start)),{ac:function(){return Np(k,h,e,g,f)}};var l=null;d=d=null;a.oa.id&&a.L.id&&(d=a.oa.id+","+a.L.id,d=c[d])&&(l=d.segmentIndex);var m=Op(k,h,g);c=a.Y.start;var p=a.Y.duration?a.Y.start+a.Y.duration:
641
- Infinity,n=Infinity!=p;l?(n&&(new Sj(m)).wb(c,p,!0),l.kc(m,a.presentationTimeline.kb())):l=new Sj(m);a.presentationTimeline.lc(m);n&&l.wb(c,p);d&&a.vb&&(d.segmentIndex=l);return{ac:function(){l&&0!=l.g.length||l.Rc(m);return Promise.resolve(l)}}}function Pp(a){return a.Yc}function Lp(a){var b=gp(a,Pp),c=hp(a,Pp,"media");a=hp(a,Pp,"index");return{xa:b.xa,timescale:b.timescale,pc:b.pc,pb:b.pb,Ze:b.Ze,timeline:b.timeline,we:c,Oc:a}}
642
- function Mp(a){var b=a.Oc?1:0;b+=a.timeline?1:0;b+=a.xa?1:0;if(0==b)throw new M(2,4,4002);1!=b&&(a.Oc&&(a.timeline=null),a.xa=null);if(!a.Oc&&!a.we)throw new M(2,4,4002);}
643
- function Np(a,b,c,d,e){function f(K){var N=(K-t)*n,V=N+b.pb,U=N+l;N=U+n;var P=Math.min(N,h());U=new zi(U,P,function(){var ha=fp(y,x,K,w,V*v);return Db(A,[ha])},0,null,d,z,l,h());U.j=N;return U}function g(){var K=[Math.max(k.kb(),l),Math.min(k.Ib(),h())].map(function(N){return N-l});return[Math.ceil(K[0]/n),Math.ceil(K[1]/n)-1].map(function(N){return N+t})}function h(){var K=null!=m&&e[m]||p;return K?l+K:Infinity}var k=a.presentationTimeline,l=a.Y.start,m=a.oa.id,p=a.Y.duration,n=b.xa,t=b.pc,v=b.timescale,
636
+ function Bp(a,b,c,d,e,f,g){var h,k,l,m,p,n,t,v,y,w,x,A,z,C,E;return G(function(F){if(1==F.g)return h=a.presentationTimeline,k=!a.vb||!a.Y.Nf,l=a.Y.start,m=a.Y.duration,p=a.L.mimeType.split("/")[1],n=b,t=null,v=[n(d,e,f),"webm"==p?n(c.Pa(),c.Ta,c.Ba):null],n=null,u(F,Promise.all(v),2);y=F.h;w=y[0];x=y[1]||null;A=null;z=l-g;C=l;E=m?l+m:Infinity;if("mp4"==p)var H=lp(w,e,d,c,z,C,E);else{H=new np(x);if(440786851!=op(H).id)throw new M(2,3,3008);var J=op(H);if(408125543!=J.id)throw new M(2,3,3009);H=J.g.byteOffset;
637
+ J=new np(J.g);for(var K=null;J.xa();){var N=op(J);if(357149030==N.id){K=N;break}}if(!K)throw new M(2,3,3010);K=new np(K.g);N=1E6;for(J=null;K.xa();){var V=op(K);if(2807729==V.id)N=sp(V);else if(17545==V.id)if(4==V.g.byteLength)J=V.g.getFloat32(0);else if(8==V.g.byteLength)J=V.g.getFloat64(0);else throw new M(2,3,3003);}if(null==J)throw new M(2,3,3011);K=N/1E9;J*=K;N=op(new np(w));if(475249515!=N.id)throw new M(2,3,3007);H=tp(N,H,K,J,d,c,z,C,E)}A=H;h.lc(A);t=new Sj(A);k&&t.wb(C,E,!0);return F.return(t)})}
638
+ function yp(a){return a.Yc}function Ap(a){var b=ip(a,yp,"RepresentationIndex");a=hp(a,yp,"indexRange");a=fg(a||"");b&&(a=cg(b,"range",fg,a));return a}function zp(a,b){Cp(a,b);if(!Ap(a))throw new M(2,4,4002);}function Cp(a,b){var c=a.L.mimeType.split("/")[1];if(a.L.contentType!=Ib&&"mp4"!=c&&"webm"!=c)throw new M(2,4,4006);if("webm"==c&&!b)throw new M(2,4,4005);}
639
+ function wp(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.Cd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function Dp(a,b){var c=vp(a,Ep),d=Fp(a);if(!d.ya&&!d.timeline&&1<d.jc.length)throw new M(2,4,4002);if(!d.ya&&!a.Y.duration&&!d.timeline&&1==d.jc.length)throw new M(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new M(2,4,4002);var e=null,f=null;a.oa.id&&a.L.id&&(f=b[a.oa.id+","+a.L.id])&&(e=f.segmentIndex);var g=Gp(a.Y.start,a.Y.duration,a.L.Na,d,c);b=!e;e?e.kc(g,a.presentationTimeline.kb()):e=new Sj(g);a.presentationTimeline.lc(g);a.vb&&a.Y.Nf||e.wb(a.Y.start,a.Y.duration?a.Y.start+a.Y.duration:
640
+ Infinity,b);f&&(f.segmentIndex=e);return{ac:function(){e&&0!=e.g.length||e.Sc(g);return Promise.resolve(e)}}}function Ep(a){return a.Db}function Fp(a){var b=Hp(a);a=gp(a,Ep);var c=a.pc;0==c&&(c=1);var d=0;a.ya?d=a.ya*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{ya:a.ya,startTime:d,pc:c,pb:a.pb,timeline:a.timeline,jc:b}}
641
+ function Gp(a,b,c,d,e){var f=d.jc.length;d.timeline&&d.timeline.length!=d.jc.length&&(f=Math.min(d.timeline.length,d.jc.length));for(var g=a-d.pb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},p=0;p<f;m={Vd:m.Vd},p++){var n=d.jc[p];m.Vd=Db(c,[n.mh]);var t=void 0;t=null!=d.ya?l+d.ya:d.timeline?d.timeline[p].end:l+b;k.push(new zi(a+l,a+t,function(v){return function(){return v.Vd}}(m),n.start,n.end,e,g,a,h));l=t}return k}
642
+ function Hp(a){return[a.L.Db,a.va.Db,a.oa.Db].filter(Cb).map(function(b){return Vf(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Lf&&(a.Lf=!0);var c=b.getAttribute("media");b=cg(b,"mediaRange",fg,{start:0,end:null});return{mh:c,start:b.start,end:b.end}})};function Jp(a,b,c,d,e,f){var g=Kp(a),h=Lp(a);Mp(h);var k=gf(a);if(h.Oc)return Cp(a,g),{ac:function(){var t=fp(h.Oc,k.L.id,null,k.bandwidth||null,null);t=Db(k.L.Na,[t]);return Bp(k,b,g,t,0,null,h.pb)}};if(h.ya)return d||"image"===a.va.contentType||(a.presentationTimeline.ye(h.ya),a.presentationTimeline.ze(a.Y.start)),{ac:function(){return Np(k,h,e,g,f)}};var l=null;d=d=null;a.oa.id&&a.L.id&&(d=a.oa.id+","+a.L.id,d=c[d])&&(l=d.segmentIndex);var m=Op(k,h,g);c=a.Y.start;var p=a.Y.duration?a.Y.start+a.Y.duration:
643
+ Infinity,n=Infinity!=p;l?(n&&(new Sj(m)).wb(c,p,!0),l.kc(m,a.presentationTimeline.kb())):l=new Sj(m);a.presentationTimeline.lc(m);n&&l.wb(c,p);d&&a.vb&&(d.segmentIndex=l);return{ac:function(){l&&0!=l.g.length||l.Sc(m);return Promise.resolve(l)}}}function Pp(a){return a.Zc}function Lp(a){var b=gp(a,Pp),c=hp(a,Pp,"media");a=hp(a,Pp,"index");return{ya:b.ya,timescale:b.timescale,pc:b.pc,pb:b.pb,bf:b.bf,timeline:b.timeline,we:c,Oc:a}}
644
+ function Mp(a){var b=a.Oc?1:0;b+=a.timeline?1:0;b+=a.ya?1:0;if(0==b)throw new M(2,4,4002);1!=b&&(a.Oc&&(a.timeline=null),a.ya=null);if(!a.Oc&&!a.we)throw new M(2,4,4002);}
645
+ function Np(a,b,c,d,e){function f(K){var N=(K-t)*n,V=N+b.pb,U=N+l;N=U+n;var ba=Math.min(N,h());U=new zi(U,ba,function(){var Q=fp(y,x,K,w,V*v);return Db(A,[Q])},0,null,d,z,l,h());U.j=N;return U}function g(){var K=[Math.max(k.kb(),l),Math.min(k.Ib(),h())].map(function(N){return N-l});return[Math.ceil(K[0]/n),Math.ceil(K[1]/n)-1].map(function(N){return N+t})}function h(){var K=null!=m&&e[m]||p;return K?l+K:Infinity}var k=a.presentationTimeline,l=a.Y.start,m=a.oa.id,p=a.Y.duration,n=b.ya,t=b.pc,v=b.timescale,
644
646
  y=b.we,w=a.bandwidth||null,x=a.L.id,A=a.L.Na,z=l-b.pb,C=g();a=a.vb?Math.max(C[0],C[1]-c+1):C[0];C=C[1];c=[];for(var E=a;E<=C;++E){var F=f(E);c.push(F)}var H=new Sj(c);c=k.Ib()<h();E=k.T();if(c||E){var J=Math.max(a,C+1);H.Nd(n,function(){var K=k.kb();H.Gb(K);var N=r(g());N.next();N=N.next().value;for(var V=[];J<=N;){var U=f(J);V.push(U);J++}return K>h()&&!V.length?null:V})}return Promise.resolve(H)}
645
- function Op(a,b,c){var d=a.Y.start,e=a.Y.duration,f=d-b.pb;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={Ud:h.Ud,Yd:h.Yd,ae:h.ae,Rd:h.Rd,ce:h.ce,Sd:h.Sd},k++){var l=b.timeline[k],m=l.start,p=l.Lh;l=l.end;h.ae=k+b.pc;h.ce=p+b.Ze;h.Yd=a.L.id;h.Rd=a.bandwidth||null;h.Ud=b.we;h.Sd=a.L.Na;g.push(new zi(d+m,d+l,function(n){return function(){var t=fp(n.Ud,n.Yd,n.ae,n.Rd||null,n.ce);return Db(n.Sd,[t]).map(function(v){return v.toString()})}}(h),0,null,c,f,d,e))}return g}
647
+ function Op(a,b,c){var d=a.Y.start,e=a.Y.duration,f=d-b.pb;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={Ud:h.Ud,Yd:h.Yd,ae:h.ae,Rd:h.Rd,ce:h.ce,Sd:h.Sd},k++){var l=b.timeline[k],m=l.start,p=l.Nh;l=l.end;h.ae=k+b.pc;h.ce=p+b.bf;h.Yd=a.L.id;h.Rd=a.bandwidth||null;h.Ud=b.we;h.Sd=a.L.Na;g.push(new zi(d+m,d+l,function(n){return function(){var t=fp(n.Ud,n.Yd,n.ae,n.Rd||null,n.ce);return Db(n.Sd,[t]).map(function(v){return v.toString()})}}(h),0,null,c,f,d,e))}return g}
646
648
  function Kp(a){var b=hp(a,Pp,"initialization");if(!b)return null;var c=a.L.id,d=a.bandwidth||null,e=a.L.Na;return new xi(function(){var f=fp(b,c,null,d,null);return Db(e,[f])},0,null,wp(a))};function Qp(){this.l=[];this.g=[];this.h=[];this.j=[];this.i=[];this.m=new Set}Qp.prototype.release=function(){for(var a=r(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=[]};
647
- function Rp(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A,z,C,E,F,H,J,K,N,V,U,P,ha,Aa,za;return G(function(Ua){switch(Ua.g){case 1:d=Jb;Sp(b);Tp(b);Up(b);Vp(b);if(!c&&1==b.length){e=b[0];a.g=e.md;a.h=e.Od;a.j=e.textStreams;a.i=e.imageStreams;Ua.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 Ua.return();k=b.map(function(ab){return ab.md});l=b.map(function(ab){return ab.Od});m=b.map(function(ab){return ab.textStreams});p=b.map(function(ab){return ab.imageStreams});
648
- n=r(m);for(t=n.next();!t.done;t=n.next())v=t.value,v.push(Wp(d.ka));y=r(p);for(w=y.next();!w.done;w=y.next())x=w.value,x.push(Wp(d.Ac));return u(Ua,Xp(a.g,k,f,Yp,Zp),3);case 3:return u(Ua,Xp(a.h,l,f,Yp,Zp),4);case 4:return u(Ua,Xp(a.j,m,f,Yp,Zp),5);case 5:return u(Ua,Xp(a.i,p,f,Yp,Zp),2);case 2:A=0;z=[];if(a.h.length&&a.g.length)for(K=r(a.g),N=K.next();!N.done;N=K.next())for(V=N.value,U=r(a.h),P=U.next();!P.done;P=U.next())ha=P.value,Aa=Yg(V.drmInfos,ha.drmInfos),V.drmInfos.length&&ha.drmInfos.length&&
649
- !Aa.length||(za=A++,z.push({id:za,language:V.language,primary:V.primary,audio:V,video:ha,bandwidth:(V.bandwidth||0)+(ha.bandwidth||0),drmInfos:Aa,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(C=a.h.concat(a.g),E=r(C),F=E.next();!F.done;F=E.next())H=F.value,J=A++,z.push({id:J,language:H.language,primary:H.primary,audio:H.type==d.hd?H:null,video:H.type==d.Ma?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});
650
- a.l=z;B(Ua)}})}function Sp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.md),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(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&&hc(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.md=c}}
649
+ function Rp(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A,z,C,E,F,H,J,K,N,V,U,ba,Q,Aa,za;return G(function(Ua){switch(Ua.g){case 1:d=Jb;Sp(b);Tp(b);Up(b);Vp(b);if(!c&&1==b.length){e=b[0];a.g=e.nd;a.h=e.Od;a.j=e.textStreams;a.i=e.imageStreams;Ua.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 Ua.return();k=b.map(function(ab){return ab.nd});l=b.map(function(ab){return ab.Od});m=b.map(function(ab){return ab.textStreams});p=b.map(function(ab){return ab.imageStreams});
650
+ n=r(m);for(t=n.next();!t.done;t=n.next())v=t.value,v.push(Wp(d.ha));y=r(p);for(w=y.next();!w.done;w=y.next())x=w.value,x.push(Wp(d.Ac));return u(Ua,Xp(a.g,k,f,Yp,Zp),3);case 3:return u(Ua,Xp(a.h,l,f,Yp,Zp),4);case 4:return u(Ua,Xp(a.j,m,f,Yp,Zp),5);case 5:return u(Ua,Xp(a.i,p,f,Yp,Zp),2);case 2:A=0;z=[];if(a.h.length&&a.g.length)for(K=r(a.g),N=K.next();!N.done;N=K.next())for(V=N.value,U=r(a.h),ba=U.next();!ba.done;ba=U.next())Q=ba.value,Aa=Yg(V.drmInfos,Q.drmInfos),V.drmInfos.length&&Q.drmInfos.length&&
651
+ !Aa.length||(za=A++,z.push({id:za,language:V.language,primary:V.primary,audio:V,video:Q,bandwidth:(V.bandwidth||0)+(Q.bandwidth||0),drmInfos:Aa,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(C=a.h.concat(a.g),E=r(C),F=E.next();!F.done;F=E.next())H=F.value,J=A++,z.push({id:J,language:H.language,primary:H.primary,audio:H.type==d.jd?H:null,video:H.type==d.Ma?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});
652
+ a.l=z;B(Ua)}})}function Sp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.nd),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(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&&hc(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.nd=c}}
651
653
  function Up(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.textStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(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&&hc(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
652
654
  function Tp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.Od),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(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&&hc(e.roles,h.roles)&&Ef(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.Od=c}}
653
655
  function Vp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.imageStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(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}}
654
- function $p(a){var b,c,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A,z,C,E,F,H,J,K,N,V;return G(function(U){switch(U.g){case 1:b=Jb;if(1==a.length)return U.return(a[0]);c=a.map(function(P){return P.filter(function(ha){return ha.type==b.hd})});d=a.map(function(P){return P.filter(function(ha){return ha.type==b.Ma})});e=a.map(function(P){return P.filter(function(ha){return ha.type==b.ka})});f=a.map(function(P){return P.filter(function(ha){return ha.type==b.Ac})});g=r(e);for(h=g.next();!h.done;h=g.next())k=h.value,
655
- k.push(aq(b.ka));l=r(f);for(m=l.next();!m.done;m=l.next())p=m.value,p.push(aq(b.Ac));return u(U,Xp([],c,0,bq,cq),2);case 2:return n=U.h,u(U,Xp([],d,0,bq,cq),3);case 3:return t=U.h,u(U,Xp([],e,0,bq,cq),4);case 4:return v=U.h,u(U,Xp([],f,0,bq,cq),5);case 5:y=U.h;w=0;if(t.length&&n.length)for(E=r(n),F=E.next();!F.done;F=E.next())for(H=F.value,J=r(t),K=J.next();!K.done;K=J.next())N=K.value,V=w++,N.variantIds.push(V),H.variantIds.push(V);else for(x=t.concat(n),A=r(x),z=A.next();!z.done;z=A.next())C=z.value,
656
+ function $p(a){var b,c,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A,z,C,E,F,H,J,K,N,V;return G(function(U){switch(U.g){case 1:b=Jb;if(1==a.length)return U.return(a[0]);c=a.map(function(ba){return ba.filter(function(Q){return Q.type==b.jd})});d=a.map(function(ba){return ba.filter(function(Q){return Q.type==b.Ma})});e=a.map(function(ba){return ba.filter(function(Q){return Q.type==b.ha})});f=a.map(function(ba){return ba.filter(function(Q){return Q.type==b.Ac})});g=r(e);for(h=g.next();!h.done;h=g.next())k=h.value,
657
+ k.push(aq(b.ha));l=r(f);for(m=l.next();!m.done;m=l.next())p=m.value,p.push(aq(b.Ac));return u(U,Xp([],c,0,bq,cq),2);case 2:return n=U.h,u(U,Xp([],d,0,bq,cq),3);case 3:return t=U.h,u(U,Xp([],e,0,bq,cq),4);case 4:return v=U.h,u(U,Xp([],f,0,bq,cq),5);case 5:y=U.h;w=0;if(t.length&&n.length)for(E=r(n),F=E.next();!F.done;F=E.next())for(H=F.value,J=r(t),K=J.next();!K.done;K=J.next())N=K.value,V=w++,N.variantIds.push(V),H.variantIds.push(V);else for(x=t.concat(n),A=r(x),z=A.next();!z.done;z=A.next())C=z.value,
656
658
  C.variantIds=[w++];return U.return(t.concat(n).concat(v).concat(y))}})}
657
659
  function Xp(a,b,c,d,e){var f,g,h,k,l,m,p,n,t,v,y,w,x,A,z,C,E,F,H,J,K;return G(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=r(a);l=k.next();case 2:if(l.done){N.D(4);break}m=l.value;return u(N,dq(m,b,c,e,g),5);case 5:p=N.h;if(!p)throw new M(2,4,4037);l=k.next();N.D(2);break;case 4:n=r(g);for(t=n.next();!t.done;t=n.next())for(v=t.value,y=r(v),w=y.next();!w.done;w=y.next())x=w.value,(A=eq(x,b,d,e,g))&&a.push(A);z=r(g);for(t=z.next();!t.done;t=
658
- z.next())for(C=t.value,E={},F=r(C),w=F.next();!w.done;E={sb:E.sb},w=F.next())if(E.sb=w.value,H=E.sb.type==f.ka&&!E.sb.language,J=E.sb.type==f.Ac&&!E.sb.tilesLayout,!H&&!J&&(K=a.some(function(V){return function(U){return U.mimeType==V.sb.mimeType&&zd(U.codecs)==zd(V.sb.codecs)}}(E))))throw new M(2,4,4037);return N.return(a)}})}function dq(a,b,c,d,e){return G(function(f){if(1==f.g)return fq(b,a),a.matchedStreams?a.segmentIndex?u(f,gq(a,c),2):f.D(2):f.return(!1);hq(a,c,d,e);return f.return(!0)})}
660
+ z.next())for(C=t.value,E={},F=r(C),w=F.next();!w.done;E={sb:E.sb},w=F.next())if(E.sb=w.value,H=E.sb.type==f.ha&&!E.sb.language,J=E.sb.type==f.Ac&&!E.sb.tilesLayout,!H&&!J&&(K=a.some(function(V){return function(U){return U.mimeType==V.sb.mimeType&&zd(U.codecs)==zd(V.sb.codecs)}}(E))))throw new M(2,4,4037);return N.return(a)}})}function dq(a,b,c,d,e){return G(function(f){if(1==f.g)return fq(b,a),a.matchedStreams?a.segmentIndex?u(f,gq(a,c),2):f.D(2):f.return(!1);hq(a,c,d,e);return f.return(!0)})}
659
661
  function gq(a,b){var c,d,e,f,g,h,k;return G(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=r(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 Wj)for(h=0;h<d.length;h++)k=d[h],k.segmentIndex&&h>=b&&a.segmentIndex.l.push(k.segmentIndex);B(l)})}
660
662
  function eq(a,b,c,d,e){var f=c(a);fq(b,f);f.createSegmentIndex&&(f.createSegmentIndex=function(){return G(function(g){if(f.segmentIndex)return g.D(0);f.segmentIndex=new Wj;return u(g,gq(f,0),0)})});if(!f.matchedStreams)return null;hq(f,0,d,e);return f}function hq(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)}}
661
663
  function Yp(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=r(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}
@@ -675,33 +677,33 @@ function pq(a,b,c){if(b==a&&a!=c)return rq;if(c==a&&a!=b)return qq;if(b>a){if(c<
675
677
  q.stop=function(){for(var a=r(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.s.destroy()};q.update=function(){var a=this,b;return G(function(c){if(1==c.g)return D(c,2),u(c,wq(a),4);if(2!=c.g)return ua(c,0);b=va(c);if(!a.h||!b)return c.return();a.h.onError(b);B(c)})};q.onExpirationUpdated=function(){};
676
678
  function wq(a){var b,c,d,e,f,g,h;return G(function(k){if(1==k.g)return b=of(a.m,a.g.retryParameters),c=a.h.networkingEngine,a.h.modifyManifestRequest(b,{format:"d"}),d=Date.now(),e=c.request(0,b),jf(a.s,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,yq(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;a.J.sample(1,h);return k.return(h)})}
677
679
  function yq(a,b,c){var d,e,f,g,h;return G(function(k){if(1==k.g){d=ng(b,"MPD");if(!d)throw new M(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k.return(zq(a,d,c));f=a.g.dash.xlinkFailGracefully;g=kp(d,a.g.retryParameters,f,c,a.h.networkingEngine);jf(a.s,g);return u(k,g.promise,2)}h=k.h;return k.return(zq(a,h,c))})}
678
- function zq(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A,z,C,E,F,H,J,K,N,V,U,P,ha,Aa,za,Ua,ab;return G(function(Na){switch(Na.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=Vf(b,"Location").map(ag).filter(Cb);0<f.length&&(g=Db(e,f),e=a.m=g);h=Vf(b,"BaseURL");k=h.map(ag);l=Db(e,k);m=0;h&&h.length&&(m=cg(h[0],"availabilityTimeOffset",jg)||0);p=a.g.dash.ignoreMinBufferTime;n=0;p||(n=cg(b,"minBufferTime",eg)||0);a.H=cg(b,"minimumUpdatePeriod",eg,-1);t=cg(b,"availabilityStartTime",dg);v=cg(b,
679
- "timeShiftBufferDepth",eg);y=a.g.dash.ignoreSuggestedPresentationDelay;w=null;y||(w=cg(b,"suggestedPresentationDelay",eg));x=a.g.dash.ignoreMaxSegmentDuration;A=null;x||(A=cg(b,"maxSegmentDuration",eg));z=b.getAttribute("type")||"static";if(a.i)for(C=a.i.presentationTimeline,E=r(Object.values(a.l)),F=E.next();!F.done;F=E.next())H=F.value,H.segmentIndex&&H.segmentIndex.Gb(C.kb());else J=a.g.defaultPresentationDelay||1.5*n,K=null!=w?w:J,C=new Q(t,K,a.g.dash.autoCorrectDrift);C.Zc("static"==z);(N=C.T())&&
680
- !isNaN(a.g.availabilityWindowOverride)&&(v=a.g.availabilityWindowOverride);null==v&&(v=Infinity);C.Pe(v);V=b.getAttribute("profiles")||"";U={vb:"static"!=z,presentationTimeline:C,oa:null,Y:null,ua:null,L:null,bandwidth:0,Jf:!1,Zb:m,profiles:V.split(",")};P=Aq(a,U,l,b);ha=P.duration;Aa=P.periods;"static"!=z&&P.Af||C.ab(ha||Infinity);a.C&&!a.F&&(za=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.F=a.h.isLowLatencyMode());a.F?C.Sf(a.C):a.C&&Ta("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.");
681
- C.xe(A||1);return u(Na,Rp(a.j,Aa,U.vb),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);Na.D(3);break}a.i={presentationTimeline:C,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:n||0,sequenceMode:a.g.dash.sequenceMode};if(!C.dg()){Na.D(4);break}Ua=Vf(b,"UTCTiming");return u(Na,Bq(a,l,Ua),5);case 5:ab=Na.h;if(!a.h)return Na.return();C.Tf(ab);case 4:C.ue();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),
680
+ function zq(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A,z,C,E,F,H,J,K,N,V,U,ba,Q,Aa,za,Ua,ab;return G(function(Na){switch(Na.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=Vf(b,"Location").map(ag).filter(Cb);0<f.length&&(g=Db(e,f),e=a.m=g);h=Vf(b,"BaseURL");k=h.map(ag);l=Db(e,k);m=0;h&&h.length&&(m=cg(h[0],"availabilityTimeOffset",jg)||0);p=a.g.dash.ignoreMinBufferTime;n=0;p||(n=cg(b,"minBufferTime",eg)||0);a.H=cg(b,"minimumUpdatePeriod",eg,-1);t=cg(b,"availabilityStartTime",dg);v=cg(b,
681
+ "timeShiftBufferDepth",eg);y=a.g.dash.ignoreSuggestedPresentationDelay;w=null;y||(w=cg(b,"suggestedPresentationDelay",eg));x=a.g.dash.ignoreMaxSegmentDuration;A=null;x||(A=cg(b,"maxSegmentDuration",eg));z=b.getAttribute("type")||"static";if(a.i)for(C=a.i.presentationTimeline,E=r(Object.values(a.l)),F=E.next();!F.done;F=E.next())H=F.value,H.segmentIndex&&H.segmentIndex.Gb(C.kb());else J=a.g.defaultPresentationDelay||1.5*n,K=null!=w?w:J,C=new P(t,K,a.g.dash.autoCorrectDrift);C.$c("static"==z);(N=C.T())&&
682
+ !isNaN(a.g.availabilityWindowOverride)&&(v=a.g.availabilityWindowOverride);null==v&&(v=Infinity);C.Qe(v);V=b.getAttribute("profiles")||"";U={vb:"static"!=z,presentationTimeline:C,oa:null,Y:null,va:null,L:null,bandwidth:0,Lf:!1,Zb:m,profiles:V.split(",")};ba=Aq(a,U,l,b);Q=ba.duration;Aa=ba.periods;"static"!=z&&ba.Cf||C.Sa(Q||Infinity);a.C&&!a.F&&(za=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.F=a.h.isLowLatencyMode());a.F?C.Uf(a.C):a.C&&Ta("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.");
683
+ C.ye(A||1);return u(Na,Rp(a.j,Aa,U.vb),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);Na.D(3);break}a.i={presentationTimeline:C,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:n||0,sequenceMode:a.g.dash.sequenceMode};if(!C.fg()){Na.D(4);break}Ua=Vf(b,"UTCTiming");return u(Na,Bq(a,l,Ua),5);case 5:ab=Na.h;if(!a.h)return Na.return();C.Vf(ab);case 4:C.ue();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),
682
684
  B(Na)}})}
683
- function Aq(a,b,c,d){var e=cg(d,"mediaPresentationDuration",eg),f=[],g=0;d=Vf(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=cg(k,"start",eg,g),p=k.id,n=cg(k,"duration",eg),t=null;if(l){var v=cg(l,"start",eg);null!=v&&(t=v-m)}else null!=e&&(t=e-m);null==t&&(t=n);if(!(null!==a.B&&null!==p&&null!==m&&m<a.B)||a.K.includes(p)||h+1==d.length){null!==m&&(null===a.B||m>a.B)&&(a.B=m);g=Cq(a,b,c,{start:m,duration:t,node:k,Lf:null==t||!l});f.push(g);b.oa.id&&t&&(a.M[b.oa.id]=t);if(null==t){g=
684
- null;break}g=m+t}}a.K=f.map(function(y){return y.id});return null!=e?{periods:f,duration:e,Af:!1}:{periods:f,duration:g,Af:!0}}
685
- function Cq(a,b,c,d){b.oa=Dq(d.node,null,c);b.Y=d;b.oa.Zb=b.Zb;b.oa.id||(b.oa.id="__shaka_period_"+d.start);var e=Vf(d.node,"EventStream");c=b.presentationTimeline.kb();e=r(e);for(var f=e.next();!f.done;f=e.next())Eq(a,d.start,d.duration,f.value,c);c=Vf(d.node,"AdaptationSet").map(function(m){return Fq(a,b,m)}).filter(Cb);if(b.vb){d=[];e=r(c);for(f=e.next();!f.done;f=e.next()){f=r(f.value.yh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new M(2,4,4018);
686
- }d=c.filter(function(m){return!m.Ve});c=c.filter(function(m){return m.Ve});c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.Ve.split(" ");g=r(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=r(k.streams);for(var l=k.next();!l.done;h={gd:h.gd},l=k.next())h.gd=l.value,h.gd.trickModeVideo=e.streams.find(function(m){return function(p){return zd(m.gd.codecs)==zd(p.codecs)}}(h))}}}e=a.g.disableAudio?[]:Gq(d,"audio");g=a.g.disableVideo?[]:Gq(d,"video");f=a.g.disableText?
687
- []:Gq(d,Ib);c=a.g.disableThumbnails?[]:Gq(d,"image");if(!g.length&&!e.length)throw new M(2,4,4004);d=[];e=r(e);for(h=e.next();!h.done;h=e.next())d.push.apply(d,ia(h.value.streams));e=[];g=r(g);for(h=g.next();!h.done;h=g.next())e.push.apply(e,ia(h.value.streams));g=[];f=r(f);for(h=f.next();!h.done;h=f.next())g.push.apply(g,ia(h.value.streams));f=[];c=r(c);for(h=c.next();!h.done;h=c.next())f.push.apply(f,ia(h.value.streams));return{id:b.oa.id,md:d,Od:e,textStreams:g,imageStreams:f}}
685
+ function Aq(a,b,c,d){var e=cg(d,"mediaPresentationDuration",eg),f=[],g=0;d=Vf(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=cg(k,"start",eg,g),p=k.id,n=cg(k,"duration",eg),t=null;if(l){var v=cg(l,"start",eg);null!=v&&(t=v-m)}else null!=e&&(t=e-m);null==t&&(t=n);if(!(null!==a.B&&null!==p&&null!==m&&m<a.B)||a.K.includes(p)||h+1==d.length){null!==m&&(null===a.B||m>a.B)&&(a.B=m);g=Cq(a,b,c,{start:m,duration:t,node:k,Nf:null==t||!l});f.push(g);b.oa.id&&t&&(a.M[b.oa.id]=t);if(null==t){g=
686
+ null;break}g=m+t}}a.K=f.map(function(y){return y.id});return null!=e?{periods:f,duration:e,Cf:!1}:{periods:f,duration:g,Cf:!0}}
687
+ function Cq(a,b,c,d){b.oa=Dq(d.node,null,c);b.Y=d;b.oa.Zb=b.Zb;b.oa.id||(b.oa.id="__shaka_period_"+d.start);var e=Vf(d.node,"EventStream");c=b.presentationTimeline.kb();e=r(e);for(var f=e.next();!f.done;f=e.next())Eq(a,d.start,d.duration,f.value,c);c=Vf(d.node,"AdaptationSet").map(function(m){return Fq(a,b,m)}).filter(Cb);if(b.vb){d=[];e=r(c);for(f=e.next();!f.done;f=e.next()){f=r(f.value.Bh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new M(2,4,4018);
688
+ }d=c.filter(function(m){return!m.Xe});c=c.filter(function(m){return m.Xe});c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.Xe.split(" ");g=r(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=r(k.streams);for(var l=k.next();!l.done;h={hd:h.hd},l=k.next())h.hd=l.value,h.hd.trickModeVideo=e.streams.find(function(m){return function(p){return zd(m.hd.codecs)==zd(p.codecs)}}(h))}}}e=a.g.disableAudio?[]:Gq(d,"audio");g=a.g.disableVideo?[]:Gq(d,"video");f=a.g.disableText?
689
+ []:Gq(d,Ib);c=a.g.disableThumbnails?[]:Gq(d,"image");if(!g.length&&!e.length)throw new M(2,4,4004);d=[];e=r(e);for(h=e.next();!h.done;h=e.next())d.push.apply(d,ia(h.value.streams));e=[];g=r(g);for(h=g.next();!h.done;h=g.next())e.push.apply(e,ia(h.value.streams));g=[];f=r(f);for(h=f.next();!h.done;h=f.next())g.push.apply(g,ia(h.value.streams));f=[];c=r(c);for(h=c.next();!h.done;h=c.next())f.push.apply(f,ia(h.value.streams));return{id:b.oa.id,nd:d,Od:e,textStreams:g,imageStreams:f}}
688
690
  function Gq(a,b){return a.filter(function(c){return c.contentType==b})}
689
- function Fq(a,b,c){function d(F){switch(F){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.ua=Dq(c,b.oa,null);var e=!1,f=Vf(c,"Role"),g=f.map(function(F){return F.getAttribute("value")}).filter(Cb),h=void 0,k=b.ua.contentType==Ib;k&&(h="subtitle");f=r(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=
691
+ function Fq(a,b,c){function d(F){switch(F){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.va=Dq(c,b.oa,null);var e=!1,f=Vf(c,"Role"),g=f.map(function(F){return F.getAttribute("value")}).filter(Cb),h=void 0,k=b.va.contentType==Ib;k&&(h="subtitle");f=r(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=
690
692
  l}}var p;m=Vf(c,"EssentialProperty");f=null;l=!1;m=r(m);for(var n=m.next();!n.done;n=m.next()){n=n.value;var t=n.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==t?f=n.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==t?p=d(parseInt(n.getAttribute("value"),10)):l=!0}m=Vf(c,"SupplementalProperty");m=r(m);for(n=m.next();!n.done;n=m.next())n=n.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==n.getAttribute("schemeIdUri")&&(p=d(parseInt(n.getAttribute("value"),
691
693
  10)));m=Vf(c,"Accessibility");var v=new Map;m=r(m);for(n=m.next();!n.done;n=m.next())if(t=n.value,n=t.getAttribute("schemeIdUri"),t=t.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==n)if(n=1,null!=t){t=t.split(";");for(var y=r(t),w=y.next();!w.done;w=y.next()){var x=w.value,A=w=void 0;x.includes("=")?(x=x.split("="),w=x[0].startsWith("CC")?x[0]:"CC"+x[0],A=x[1]||"und"):(w="CC"+n,2==t.length?n+=2:n++,A=x);v.set(w,Mb(A))}}else v.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==n)if(n=
692
694
  1,null!=t)for(t=r(t.split(";")),w=t.next();!w.done;w=t.next())w=w.value,x=y=void 0,w.includes("=")?(w=w.split("="),y="svc"+w[0],x=w[1].split(",")[0].split(":").pop()):(y="svc"+n,n++,x=w),v.set(y,Mb(x));else v.set("svc1","und");else"urn:mpeg:dash:role:2011"==n&&null!=t&&(g.push(t),"captions"==t&&(h="caption"));if(l)return null;l=Vf(c,"ContentProtection");var z=Wo(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),C=Mb(c.getAttribute("lang")||"und"),E=c.getAttribute("label");(l=Vf(c,"Label"))&&l.length&&
693
- (l=l[0],l.textContent&&(E=l.textContent));l=Vf(c,"Representation");c=l.map(function(F){if(F=Hq(a,b,z,h,C,E,e,g,v,F))F.hdr=F.hdr||p;return F}).filter(function(F){return!!F});if(0==c.length){f="image"==b.ua.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new M(2,4,4003);}if(!b.ua.contentType||"application"==b.ua.contentType)for(b.ua.contentType=Iq(c[0].mimeType,c[0].codecs),k=r(c),m=k.next();!m.done;m=k.next())m.value.type=b.ua.contentType;k=r(c);for(m=k.next();!m.done;m=k.next())for(m=
694
- m.value,n=r(z.drmInfos),t=n.next();!t.done;t=n.next())t=t.value,t.keyIds=t.keyIds&&m.keyIds?new Set([].concat(ia(t.keyIds),ia(m.keyIds))):t.keyIds||m.keyIds;k=l.map(function(F){return F.getAttribute("id")}).filter(Cb);return{id:b.ua.id||"__fake__"+a.I++,contentType:b.ua.contentType,language:C,rj:e,streams:c,drmInfos:z.drmInfos,Ve:f,yh:k}}
695
- function Hq(a,b,c,d,e,f,g,h,k,l){b.L=Dq(l,b.ua,null);a.C=Math.min(a.C,b.L.Zb);if(!Jq(b.L))return null;var m=b.Y.start;b.bandwidth=cg(l,"bandwidth",hg)||0;var p=b.L.contentType,n=p==Ib||"application"==p;p="image"==p;try{var t=function(H,J,K){return Kq(a,H,J,K)};if(b.L.Xc)var v=xp(b,t);else if(b.L.Db)v=Dp(b,a.l);else if(b.L.Yc)v=Jp(b,t,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.M);else{var y=b.L.Na,w=b.Y.duration||0;v={ac:function(){return Promise.resolve(Vj(m,w,y))}}}}catch(H){if((n||p)&&4002==H.code)return null;
695
+ (l=l[0],l.textContent&&(E=l.textContent));l=Vf(c,"Representation");c=l.map(function(F){if(F=Hq(a,b,z,h,C,E,e,g,v,F))F.hdr=F.hdr||p;return F}).filter(function(F){return!!F});if(0==c.length){f="image"==b.va.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new M(2,4,4003);}if(!b.va.contentType||"application"==b.va.contentType)for(b.va.contentType=Iq(c[0].mimeType,c[0].codecs),k=r(c),m=k.next();!m.done;m=k.next())m.value.type=b.va.contentType;k=r(c);for(m=k.next();!m.done;m=k.next())for(m=
696
+ m.value,n=r(z.drmInfos),t=n.next();!t.done;t=n.next())t=t.value,t.keyIds=t.keyIds&&m.keyIds?new Set([].concat(ia(t.keyIds),ia(m.keyIds))):t.keyIds||m.keyIds;k=l.map(function(F){return F.getAttribute("id")}).filter(Cb);return{id:b.va.id||"__fake__"+a.I++,contentType:b.va.contentType,language:C,tj:e,streams:c,drmInfos:z.drmInfos,Xe:f,Bh:k}}
697
+ function Hq(a,b,c,d,e,f,g,h,k,l){b.L=Dq(l,b.va,null);a.C=Math.min(a.C,b.L.Zb);if(!Jq(b.L))return null;var m=b.Y.start;b.bandwidth=cg(l,"bandwidth",hg)||0;var p=b.L.contentType,n=p==Ib||"application"==p;p="image"==p;try{var t=function(H,J,K){return Kq(a,H,J,K)};if(b.L.Yc)var v=xp(b,t);else if(b.L.Db)v=Dp(b,a.l);else if(b.L.Zc)v=Jp(b,t,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.M);else{var y=b.L.Na,w=b.Y.duration||0;v={ac:function(){return Promise.resolve(Vj(m,w,y))}}}}catch(H){if((n||p)&&4002==H.code)return null;
696
698
  throw H;}t=Vf(l,"ContentProtection");t=Zo(t,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);t=new Set(t?[t]:[]);var x=!1;Vf(l,"SupplementalProperty").some(function(H){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==H.getAttribute("schemeIdUri")&&"JOC"==H.getAttribute("value")})&&(x=!0);var A=!1;n&&(A=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var z;if(p&&((l=Vf(l,"EssentialProperty").find(function(H){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(H.getAttribute("schemeIdUri"))}))&&
697
699
  (z=l.getAttribute("value")),!z))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 E=b.L.id?b.oa.id+","+b.L.id:"",F={id:a.I++,originalId:b.L.id,createSegmentIndex:function(){var H,J,K;return G(function(N){if(1==N.g){J=(H=E&&b.vb&&a.l[E])?a.l[E]:F;if(J.segmentIndex)return N.D(0);K=J;return u(N,v.ac(),3)}K.segmentIndex=N.h;B(N)})},closeSegmentIndex:function(){F.segmentIndex&&
698
- (F.segmentIndex.release(),F.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:t,language:e,label:f,type:b.ua.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.L.emsgSchemeIdUris,roles:h,forced:A,channelsCount:b.L.Cd,audioSamplingRate:b.L.audioSamplingRate,spatialAudio:x,closedCaptions:k,
700
+ (F.segmentIndex.release(),F.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:t,language:e,label:f,type:b.va.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.L.emsgSchemeIdUris,roles:h,forced:A,channelsCount:b.L.Cd,audioSamplingRate:b.L.audioSamplingRate,spatialAudio:x,closedCaptions:k,
699
701
  hdr:C,tilesLayout:z,matchedStreams:[]};E&&b.vb&&!a.l[E]&&(a.l[E]=F);return F}function vq(a){var b,c;G(function(d){switch(d.g){case 1:return b=0,D(d,2),u(d,wq(a),4);case 4:b=d.h;ua(d,3);break;case 2:c=va(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d.return();xq(a,b);B(d)}})}function xq(a,b){0>a.H||a.G.R(Math.max(3,a.H-b,bc(a.J)))}
700
702
  function Dq(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Cd:null,audioSamplingRate:null,Zb:0};c=c||b.Na;var d=Vf(a,"BaseURL"),e=d.map(ag),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=cg(a,"frameRate",kg)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=Vf(a,"InbandEventStream"),p=b.emsgSchemeIdUris.slice();m=r(m);for(var n=m.next();!n.done;n=
701
- m.next())n=n.value.getAttribute("schemeIdUri"),p.includes(n)||p.push(n);m=Vf(a,"AudioChannelConfiguration");m=Lq(m)||b.Cd;n=cg(a,"audioSamplingRate",ig)||b.audioSamplingRate;f||(f=Iq(g,h));var t=Uf(a,"SegmentBase"),v=Uf(a,"SegmentTemplate"),y=t?cg(t,"availabilityTimeOffset",jg)||0:0,w=v?cg(v,"availabilityTimeOffset",jg)||0:0;d=d&&d.length?cg(d[0],"availabilityTimeOffset",jg)||0:0;d=b.Zb+d+y+w;return{Na:Db(c,e),Xc:t||b.Xc,Db:Uf(a,"SegmentList")||b.Db,Yc:v||b.Yc,width:cg(a,"width",ig)||b.width,height:cg(a,
703
+ m.next())n=n.value.getAttribute("schemeIdUri"),p.includes(n)||p.push(n);m=Vf(a,"AudioChannelConfiguration");m=Lq(m)||b.Cd;n=cg(a,"audioSamplingRate",ig)||b.audioSamplingRate;f||(f=Iq(g,h));var t=Uf(a,"SegmentBase"),v=Uf(a,"SegmentTemplate"),y=t?cg(t,"availabilityTimeOffset",jg)||0:0,w=v?cg(v,"availabilityTimeOffset",jg)||0:0;d=d&&d.length?cg(d[0],"availabilityTimeOffset",jg)||0:0;d=b.Zb+d+y+w;return{Na:Db(c,e),Yc:t||b.Yc,Db:Uf(a,"SegmentList")||b.Db,Zc:v||b.Zc,width:cg(a,"width",ig)||b.width,height:cg(a,
702
704
  "height",ig)||b.height,contentType:f,mimeType:g,codecs:h,frameRate:k,pixelAspectRatio:l,emsgSchemeIdUris:p,id:a.getAttribute("id"),Cd:m,audioSamplingRate:n,Zb:d}}
703
705
  function Lq(a){a=r(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=
704
- 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 Jq(a){var b=a.Xc?1:0;b+=a.Db?1:0;b+=a.Yc?1:0;if(0==b)return a.contentType==Ib||"application"==a.contentType?!0:!1;1!=b&&(a.Xc&&(a.Db=null),a.Yc=null);return!0}
706
+ 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 Jq(a){var b=a.Yc?1:0;b+=a.Db?1:0;b+=a.Zc?1:0;if(0==b)return a.contentType==Ib||"application"==a.contentType?!0:!1;1!=b&&(a.Yc&&(a.Db=null),a.Zc=null);return!0}
705
707
  function Mq(a,b,c,d){var e,f,g,h,k,l;return G(function(m){if(1==m.g)return e=Db(b,[c]),f=of(e,a.g.retryParameters),f.method=d,g=a.h.networkingEngine.request(4,f),jf(a.s,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=ad(h.data);l=Date.parse(k);return isNaN(l)?m.return(0):m.return(l-Date.now())})}
706
708
  function Bq(a,b,c){var d,e,f,g,h,k,l,m;return G(function(p){switch(p.g){case 1:d=c.map(function(n){return{scheme:n.getAttribute("schemeIdUri"),value:n.getAttribute("value")}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=r(d),g=f.next();case 2:if(g.done){p.D(4);break}h=g.value;D(p,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 p.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 p.D(8);
707
709
  case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),p.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":Ta("NTP UTCTiming scheme is not supported");break;default:Ta("Unrecognized scheme in UTCTiming element",k)}p.D(9);break;case 7:return u(p,Mq(a,b,l,"HEAD"),10);case 10:return p.return(p.h);case 8:return u(p,Mq(a,b,l,"GET"),11);case 11:return p.return(p.h);case 9:ua(p,
@@ -712,76 +714,76 @@ Oq.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.n
712
714
  function br(a,b,c){b=ad(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 M(2,4,4015);b=0;for(var e=!0,f=r(d),g=f.next();!g.done;g=f.next())if(g=g.value,/^#(?!EXT)/m.test(g)||e)e=!1;else if(g=cr(a,g),--a.g,dr.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=cr(a,h);if(er.includes(h.name)){if(1!=b)throw new M(2,4,4017);
713
715
  var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=r(l);for(var m=l.next();!m.done;m=l.next())m=m.value,/^(#EXT)/.test(m)?(m=cr(a,m),dr.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=Wq(d,m.trim()),h&&g.push(h),e.push(new Qq(m,g,k)),g=[],k=[]);k.length&&(h&&g.push(h),e.push(new Qq("",g,k)));return new Nq(c,b,f,e)}f.push(h);
714
716
  "EXT-X-STREAM-INF"==h.name&&(h.g.push(new Rq("URI",k)),e=!0)}}return new Nq(c,b,f)}function cr(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new M(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new Xq(d);var f;(f=Zq(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=Zq(d,g);)c.push(new Rq(f[1],f[2]||f[3])),Yq(d)}return new Oq(a,b,c,e)}
715
- var dr="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(" "),er="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function fr(){}function gr(a){try{var b=hr(a);return bf({uri:a,Of:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return $e(c)}}function hr(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new M(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new M(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=jd(a):e=ed(a);return{data:e,contentType:c}}
716
- I("shaka.net.DataUriPlugin",fr);fr.parse=gr;lf("data",gr);function ir(){var a=this;this.g=this.i=null;this.sa=1;this.s=new Map;this.C=new Map;this.H=new Map;this.H.set("video",new Map);this.H.set("audio",new Map);this.H.set(Ib,new Map);this.H.set("image",new Map);this.ia=new Set;this.h=new Map;this.j=null;this.O="";this.X=new ar;this.P=0;this.F=-1;this.M=Infinity;this.za=!1;this.m=new O(function(){jr(a)});this.aa=kr;this.G=null;this.ra=0;this.J=Infinity;this.V=this.$=0;this.I=new hf;this.K=new Map;this.B=new Map;this.Z=new Map;this.l=!1}q=ir.prototype;
717
- q.configure=function(a){this.g=a};q.start=function(a,b){var c=this,d;return G(function(e){return 1==e.g?(c.i=b,c.l=b.isLowLatencyMode(),u(e,lr(c,a),2)):3!=e.g?(d=e.h,c.O=d.uri,u(e,mr(c,d.data,a),3)):e.return(c.G)})};q.stop=function(){this.m&&(this.m.stop(),this.m=null);var a=[];this.I&&(a.push(this.I.destroy()),this.I=null);this.g=this.i=null;this.ia.clear();this.G=null;this.h.clear();this.C.clear();this.B.clear();this.s.clear();return Promise.all(a)};
718
- q.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return G(function(m){if(1==m.g){if(!nr(a))return m.return();b=[];c=Array.from(a.h.values());d=c.filter(function(p){return p.stream.segmentIndex});e=r(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(or(a,g));return u(m,Promise.all(b),2)}pr(a,d.map(function(p){return p.stream}));h=d.some(function(p){return 0==p.Lc});d.length&&!h&&(k=qr,rr(a,k.hg),l=c.map(function(p){return p.Ab}),a.j.ab(Math.min.apply(Math,ia(l))),a.i.updateDuration());B(m)})};
717
+ var dr="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(" "),er="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function fr(){}function gr(a){try{var b=hr(a);return bf({uri:a,Qf:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return $e(c)}}function hr(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new M(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new M(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=jd(a):e=ed(a);return{data:e,contentType:c}}
718
+ I("shaka.net.DataUriPlugin",fr);fr.parse=gr;lf("data",gr);function ir(){var a=this;this.g=this.i=null;this.sa=1;this.s=new Map;this.C=new Map;this.H=new Map;this.H.set("video",new Map);this.H.set("audio",new Map);this.H.set(Ib,new Map);this.H.set("image",new Map);this.ka=new Set;this.h=new Map;this.j=null;this.O="";this.X=new ar;this.P=0;this.F=-1;this.J=Infinity;this.ua=!1;this.m=new O(function(){jr(a)});this.aa=kr;this.G=null;this.ra=0;this.K=Infinity;this.V=this.$=0;this.I=new hf;this.M=new Map;this.B=new Map;this.Z=new Map;this.l=!1}q=ir.prototype;
719
+ q.configure=function(a){this.g=a};q.start=function(a,b){var c=this,d;return G(function(e){return 1==e.g?(c.i=b,c.l=b.isLowLatencyMode(),u(e,lr(c,a),2)):3!=e.g?(d=e.h,c.O=d.uri,u(e,mr(c,d.data,a),3)):e.return(c.G)})};q.stop=function(){this.m&&(this.m.stop(),this.m=null);var a=[];this.I&&(a.push(this.I.destroy()),this.I=null);this.g=this.i=null;this.ka.clear();this.G=null;this.h.clear();this.C.clear();this.B.clear();this.s.clear();return Promise.all(a)};
720
+ q.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return G(function(m){if(1==m.g){if(!nr(a))return m.return();b=[];c=Array.from(a.h.values());d=c.filter(function(p){return p.stream.segmentIndex});e=r(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(or(a,g));return u(m,Promise.all(b),2)}pr(a,d.map(function(p){return p.stream}));h=d.some(function(p){return 0==p.Lc});d.length&&!h&&(k=qr,rr(a,k.jg),l=c.map(function(p){return p.Ab}),a.j.Sa(Math.min.apply(Math,ia(l))),a.i.updateDuration());B(m)})};
719
721
  function sr(a,b){return nr(a)?a.H.get(b.type):b.zd}
720
- function or(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A;return G(function(z){if(1==z.g)return c=b.kd,d=new lb(c),a.l&&b.od&&ob(d,new qb("_HLS_skip=YES")),u(z,lr(a,d.toString()),2);e=z.h;if(!b.stream.segmentIndex)return z.return();f=br(a.X,e.data,e.uri);if(1!=f.type)throw new M(2,4,4017);g=Sq(f.g,"EXT-X-DEFINE");h=tr(a,g);k=b.stream;l=sr(a,b);m=ur(f,k.mimeType);p=m.keyIds;n=m.drmInfos;t=function(C,E){return C.size===E.size&&[].concat(ia(C)).every(function(F){return E.has(F)})};t(k.keyIds,p)||(k.keyIds=
722
+ function or(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A;return G(function(z){if(1==z.g)return c=b.ld,d=new lb(c),a.l&&b.pd&&ob(d,new qb("_HLS_skip=YES")),u(z,lr(a,d.toString()),2);e=z.h;if(!b.stream.segmentIndex)return z.return();f=br(a.X,e.data,e.uri);if(1!=f.type)throw new M(2,4,4017);g=Sq(f.g,"EXT-X-DEFINE");h=tr(a,g);k=b.stream;l=sr(a,b);m=ur(f,k.mimeType);p=m.keyIds;n=m.drmInfos;t=function(C,E){return C.size===E.size&&[].concat(ia(C)).every(function(F){return E.has(F)})};t(k.keyIds,p)||(k.keyIds=
721
723
  p,k.drmInfos=n,a.i.newDrmInfo(k));v=vr(a,f,k.type,l,h);k.segmentIndex.kc(v,a.j.kb());v.length&&(y=Vq(f.g,"EXT-X-MEDIA-SEQUENCE"),w=l.get(y),k.segmentIndex.Gb(w));x=v[v.length-1];if(A=Uq(f.g,"EXT-X-ENDLIST"))b.Lc=!0,b.Ab=x.endTime;B(z)})}q.onExpirationUpdated=function(){};
722
- function wr(a,b){for(var c=-1==a.F,d=r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=sr(a,e);if(f=f.g[0]||null){g=r(g);for(var h=g.next();!h.done;h=g.next()){h=r(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.F=Math.max(a.F,k));e.ke=k;break}}}}if(!(0>a.F))for(b=r(b),e=b.next();!e.done;e=b.next())if(c=e.value,d=c.stream.segmentIndex)d.g.splice(0,a.F-c.ke),(d=d.g[0]||null)&&xr(a,c,-d.startTime)}
723
- function yr(a,b){if(Infinity==a.M){b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.g&&(a.M=Math.min(a.M,d.g))}}b=a.M;if(Infinity!=b)for(d=r(a.h.values()),c=d.next();!c.done;c=d.next()){c=c.value;var e=c.stream.segmentIndex;null!=e&&(e=e.g[0]||null,null==e.g?Sa("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.$c,"Expect AV sync issues!"):xr(a,c,e.g-b-e.startTime))}}
724
- function xr(a,b,c){b.stream.segmentIndex.offset(c);b.Ab+=c;a=sr(a,b);b=r(a);for(var d=b.next();!d.done;d=b.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.set(d,e+c)}}
725
- function mr(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A,z,C,E,F,H,J,K,N,V,U,P,ha,Aa,za,Ua,ab;return G(function(Na){switch(Na.g){case 1:d=br(a.X,b,a.O);e=Sq(d.g,"EXT-X-DEFINE");for(var Tb=r(e),Ra=Tb.next();!Ra.done;Ra=Tb.next()){var cb=Ra.value;Ra=W(cb,"NAME");cb=W(cb,"VALUE");Ra&&cb&&(a.s.has(Ra)||a.s.set(Ra,cb))}f=[];g=[];h=[];if(1==d.type)return F=a.g.hls.mediaPlaylistFullMimeType,d.segments.length&&(H=new lb(d.segments[0].i),J=H.Ha.split(".").pop(),(K=zr[J])?F=K:"ts"!==J&&"mp4"!==J&&(Ar[J]?(K=Ar[J],
726
- N=a.g.hls.defaultAudioCodec,F=K+'; codecs="'+N+'"'):Br[J]&&(K=Br[J],V=a.g.hls.defaultVideoCodec,F=K+'; codecs="'+V+'"'))),U=F.split(";")[0],P=U.split("/")[0],ha=Bd(F),Aa=new Map,u(Na,Cr(a,d,c,c,ha,P,"",!0,"Media Playlist",null,Aa,null,!1,!1,U),5);k=Sq(d.g,"EXT-X-MEDIA");l=Sq(d.g,"EXT-X-STREAM-INF");m=Sq(d.g,"EXT-X-IMAGE-STREAM-INF");p=Sq(d.g,"EXT-X-SESSION-KEY");Tb=r(l);for(Ra=Tb.next();!Ra.done;Ra=Tb.next()){var jc=Ra.value;cb=W(jc,"AUDIO");Ra=W(jc,"VIDEO");var yb=W(jc,"SUBTITLES");jc=Dr(a,jc);if(yb){var Ip=
727
- Gb(Ib,jc);a.B.set(yb,Ip);gc(jc,Ip)}cb&&(yb=Gb("audio",jc),yb||(yb=a.g.hls.defaultAudioCodec),a.B.set(cb,yb));Ra&&(cb=Gb("video",jc),cb||(cb=a.g.hls.defaultVideoCodec),a.B.set(Ra,cb))}n=Sq(d.g,"EXT-X-SESSION-DATA");t=r(n);for(v=t.next();!v.done;v=t.next())if(y=v.value,w=W(y,"DATA-ID"),x=W(y,"URI"),A=W(y,"LANGUAGE"),z=W(y,"VALUE"),C=(new Map).set("id",w),x&&C.set("uri",Wq(a.O,x)),A&&C.set("language",A),z&&C.set("value",z),E=new L("sessiondata",C),a.i)a.i.onEvent(E);Er(a,k);Tb=Tq(k,"CLOSED-CAPTIONS");
728
- Tb=r(Tb);for(Ra=Tb.next();!Ra.done;Ra=Tb.next())yb=Ra.value,Ra=Fr(yb),cb=Pq(yb,"GROUP-ID"),yb=Pq(yb,"INSTREAM-ID"),a.K.get(cb)||a.K.set(cb,new Map),a.K.get(cb).set(yb,Ra);f=Gr(a,l,p);g=Hr(a,k);return u(Na,Ir(a,m),4);case 4:h=Na.h;Na.D(3);break;case 5:za=Na.h,a.h.set(c,za),f.push({id:0,language:"und",disabledUntilTime:0,primary:!0,audio:"audio"==P?za.stream:null,video:"video"==P?za.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new M(2,
729
- 7,7001);a.j=new Q(null,0);a.j.Zc(!0);1==d.type&&(nr(a)&&(Jr(a),Ua=a.P,a.m.R(Ua)),ab=Array.from(a.h.values()),Kr(a,ab),Lr(a));a.G={presentationTimeline:a.j,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.i.makeTextStreamsForClosedCaptions(a.G);B(Na)}})}
730
- function Lr(a){if(nr(a)){if(a.P=a.J,a.aa==Mr){var b=Nr(a);a.g.hls.useSafariBehaviorForLive&&(b=a.j.m);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.j.Pe(b)}}else a.j.ab(Nr(a));a.j.ue()}function tr(a,b){var c=new Map;b=r(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=W(e,"NAME");var f=W(e,"VALUE");e=W(e,"IMPORT");d&&f&&c.set(d,f);e&&(d=a.s.get(e))&&c.set(e,d)}return c}
724
+ function wr(a,b){for(var c=-1==a.F,d=r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=sr(a,e);if(f=f.g[0]||null){g=r(g);for(var h=g.next();!h.done;h=g.next()){h=r(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.F=Math.max(a.F,k));e.ke=k;break}}}}if(!(0>a.F))for(b=r(b),e=b.next();!e.done;e=b.next())if(c=e.value,d=c.stream.segmentIndex)if(d.g.splice(0,a.F-c.ke),d=d.g[0]||null)d=-d.startTime,c.stream.segmentIndex.offset(d),xr(a,c,d)}
725
+ function yr(a,b){if(Infinity==a.J){b=r(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.g&&(a.J=Math.min(a.J,d.g))}}b=a.J;if(Infinity!=b)for(d=r(a.h.values()),c=d.next();!c.done;c=d.next()){c=c.value;var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.g)Sa("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.bd,"Expect AV sync issues!");else for(xr(a,c,f.g-b-f.startTime),c=r(e),e=c.next();!e.done;e=c.next())e.value.Ue(b)}}}
726
+ function xr(a,b,c){b.Ab+=c;a=sr(a,b);b=r(a);for(var d=b.next();!d.done;d=b.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.set(d,e+c)}}
727
+ function mr(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A,z,C,E,F,H,J,K,N,V,U,ba,Q,Aa,za,Ua,ab;return G(function(Na){switch(Na.g){case 1:d=br(a.X,b,a.O);e=Sq(d.g,"EXT-X-DEFINE");for(var Ub=r(e),Ra=Ub.next();!Ra.done;Ra=Ub.next()){var cb=Ra.value;Ra=W(cb,"NAME");cb=W(cb,"VALUE");Ra&&cb&&(a.s.has(Ra)||a.s.set(Ra,cb))}f=[];g=[];h=[];if(1==d.type)return F=a.g.hls.mediaPlaylistFullMimeType,d.segments.length&&(H=new lb(d.segments[0].i),J=H.Ha.split(".").pop(),(K=zr[J])?F=K:"ts"!==J&&"mp4"!==J&&(Ar[J]?(K=Ar[J],
728
+ N=a.g.hls.defaultAudioCodec,F=K+'; codecs="'+N+'"'):Br[J]&&(K=Br[J],V=a.g.hls.defaultVideoCodec,F=K+'; codecs="'+V+'"'))),U=F.split(";")[0],ba=U.split("/")[0],Q=Bd(F),Aa=new Map,u(Na,Cr(a,d,c,c,Q,ba,"",!0,"Media Playlist",null,Aa,null,!1,!1,U),5);k=Sq(d.g,"EXT-X-MEDIA");l=Sq(d.g,"EXT-X-STREAM-INF");m=Sq(d.g,"EXT-X-IMAGE-STREAM-INF");p=Sq(d.g,"EXT-X-SESSION-KEY");Ub=r(l);for(Ra=Ub.next();!Ra.done;Ra=Ub.next()){var kc=Ra.value;cb=W(kc,"AUDIO");Ra=W(kc,"VIDEO");var yb=W(kc,"SUBTITLES");kc=Dr(a,kc);if(yb){var Ip=
729
+ Gb(Ib,kc);a.B.set(yb,Ip);gc(kc,Ip)}cb&&(yb=Gb("audio",kc),yb||(yb=a.g.hls.defaultAudioCodec),a.B.set(cb,yb));Ra&&(cb=Gb("video",kc),cb||(cb=a.g.hls.defaultVideoCodec),a.B.set(Ra,cb))}n=Sq(d.g,"EXT-X-SESSION-DATA");t=r(n);for(v=t.next();!v.done;v=t.next())if(y=v.value,w=W(y,"DATA-ID"),x=W(y,"URI"),A=W(y,"LANGUAGE"),z=W(y,"VALUE"),C=(new Map).set("id",w),x&&C.set("uri",Wq(a.O,x)),A&&C.set("language",A),z&&C.set("value",z),E=new L("sessiondata",C),a.i)a.i.onEvent(E);Er(a,k);Ub=Tq(k,"CLOSED-CAPTIONS");
730
+ Ub=r(Ub);for(Ra=Ub.next();!Ra.done;Ra=Ub.next())yb=Ra.value,Ra=Fr(yb),cb=Pq(yb,"GROUP-ID"),yb=Pq(yb,"INSTREAM-ID"),a.M.get(cb)||a.M.set(cb,new Map),a.M.get(cb).set(yb,Ra);f=Gr(a,l,p);g=Hr(a,k);return u(Na,Ir(a,m),4);case 4:h=Na.h;Na.D(3);break;case 5:za=Na.h,a.h.set(c,za),f.push({id:0,language:"und",disabledUntilTime:0,primary:!0,audio:"audio"==ba?za.stream:null,video:"video"==ba?za.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new M(2,
731
+ 7,7001);a.j=new P(null,0);a.j.$c(!0);1==d.type&&(nr(a)&&(Jr(a),Ua=a.P,a.m.R(Ua)),ab=Array.from(a.h.values()),Kr(a,ab),Lr(a));a.G={presentationTimeline:a.j,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.i.makeTextStreamsForClosedCaptions(a.G);B(Na)}})}
732
+ function Lr(a){if(nr(a)){if(a.P=a.K,a.aa==Mr){var b=Nr(a);a.g.hls.useSafariBehaviorForLive&&(b=a.j.m);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.j.Qe(b)}}else a.j.Sa(Nr(a));a.j.ue()}function tr(a,b){var c=new Map;b=r(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=W(e,"NAME");var f=W(e,"VALUE");e=W(e,"IMPORT");d&&f&&c.set(d,f);e&&(d=a.s.get(e))&&c.set(e,d)}return c}
731
733
  function Hr(a,b){var c=Tq(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return Or(a,g).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=Pq(d.value,"GROUP-ID");if(d=a.B.get(e))if(e=a.C.get(e)){e=r(e);for(var f=e.next();!f.done;f=e.next())f.value.stream.codecs=d}}return b.filter(function(g){return g})}
732
734
  function Ir(a,b){var c,d;return G(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return G(function(l){if(1==l.g){if(g=a.g.disableThumbnails)return l.return(null);D(l,2);return u(l,Pr(a,f),4)}if(2!=l.g)return h=l.h,l.return(h.stream);k=va(l);if(a.g.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}))})}
733
735
  function Er(a,b){b=b.filter(function(d){var e=W(d,"URI")||"";return"SUBTITLES"!=W(d,"TYPE")&&""!=e});b=r(b);for(var c=b.next();!c.done;c=b.next())Or(a,c.value)}
734
736
  function Gr(a,b,c){var d=[],e=new Set;if(0<c.length){c=r(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=Pq(f,"METHOD");if("NONE"!=g&&"AES-128"!=g&&(g=W(f,"KEYFORMAT")||"identity",f=(g=Qr[g])?g(f,""):null)){if(f.keyIds){g=r(f.keyIds);for(var h=g.next();!h.done;h=g.next())e.add(h.value)}d.push(f)}}}b=b.map(function(k){var l=W(k,"FRAME-RATE"),m=Number(W(k,"AVERAGE-BANDWIDTH"))||Number(Pq(k,"BANDWIDTH")),p=W(k,"RESOLUTION");p=r(p?p.split("x"):[null,null]);var n=p.next().value,t=p.next().value,
735
737
  v=W(k,"VIDEO-RANGE");k=Rr(a,k);p=k.audio;k=k.video;for(var y=r(k),w=y.next();!w.done;w=y.next())if(w=w.value.stream)w.width=Number(n)||void 0,w.height=Number(t)||void 0,w.frameRate=Number(l)||void 0,w.hdr=v||void 0;l=a.g.disableAudio;if(!p.length||l)p=[null];l=a.g.disableVideo;if(!k.length||l)k=[null];l=[];p=r(p);for(n=p.next();!n.done;n=p.next())for(n=n.value,t=r(k),v=t.next();!v.done;v=t.next()){var x=v.value;if(v=n?n.stream:null)v.drmInfos=d,v.keyIds=e;if(y=x?x.stream:null)y.drmInfos=d,y.keyIds=
736
- e;w=n?n.stream.drmInfos:null;var A=x?x.stream.drmInfos:null;x=(x?x.$c:"")+" - "+(n?n.$c:"");v&&y&&w.length&&A.length&&!(0<Yg(w,A).length)||a.ia.has(x)||(v={id:a.sa++,language:v?v.language:"und",primary:!!v&&v.primary||!!y&&y.primary,audio:v,video:y,bandwidth:m,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},l.push(v),a.ia.add(x))}return l}).reduce(Ab,[]);return b=b.filter(function(k){return null!=k})}
737
- function Rr(a,b){var c=Dr(a,b),d=W(b,"AUDIO"),e=W(b,"VIDEO"),f=d||e;f=f&&a.C.has(f)?a.C.get(f):[];d={audio:d?f:[],video:e?f:[]};e=!1;var g=Pq(b,"URI"),h=d.audio.find(function(m){return m&&m.$c==g}),k=Gb("video",c),l=Gb("audio",c);l&&!k?f="audio":!f.length&&l&&k?(f="video",c=[[k,l].join()]):d.audio.length&&h?(f="audio",e=!0):f=d.video.length&&!d.audio.length?"audio":"video";e||(a=Sr(a,b,c,f),d[a.stream.type]=[a]);return d}
738
+ e;w=n?n.stream.drmInfos:null;var A=x?x.stream.drmInfos:null;x=(x?x.bd:"")+" - "+(n?n.bd:"");v&&y&&w.length&&A.length&&!(0<Yg(w,A).length)||a.ka.has(x)||(v={id:a.sa++,language:v?v.language:"und",primary:!!v&&v.primary||!!y&&y.primary,audio:v,video:y,bandwidth:m,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},l.push(v),a.ka.add(x))}return l}).reduce(Ab,[]);return b=b.filter(function(k){return null!=k})}
739
+ function Rr(a,b){var c=Dr(a,b),d=W(b,"AUDIO"),e=W(b,"VIDEO"),f=d||e;f=f&&a.C.has(f)?a.C.get(f):[];d={audio:d?f:[],video:e?f:[]};e=!1;var g=Pq(b,"URI"),h=d.audio.find(function(m){return m&&m.bd==g}),k=Gb("video",c),l=Gb("audio",c);l&&!k?f="audio":!f.length&&l&&k?(f="video",c=[[k,l].join()]):d.audio.length&&h?(f="audio",e=!0):f=d.video.length&&!d.audio.length?"audio":"video";e||(a=Sr(a,b,c,f),d[a.stream.type]=[a]);return d}
738
740
  function Dr(a,b){var c=[];a.g.disableVideo||c.push(a.g.hls.defaultVideoCodec);a.g.disableAudio||c.push(a.g.hls.defaultAudioCodec);c=W(b,"CODECS",c.join(",")).split(/\s*,\s*/);a=new Set;b=[];c=r(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=Ad(d)[0];a.has(e)||(b.push(d),a.add(e))}return b}function Fr(a){a=W(a,"LANGUAGE")||"und";return Mb(a)}
739
741
  function Or(a,b){var c=Pq(b,"GROUP-ID"),d="",e=Pq(b,"TYPE").toLowerCase();"subtitles"==e&&(e=Ib);var f=e;f!=Ib&&c&&a.B.has(c)&&(d=a.B.get(c));e=Tr(Pq(b,"URI"),a.s);if(a.h.has(e))return a.h.get(e);var g=Fr(b),h=W(b,"NAME"),k="YES"==W(b,"DEFAULT");var l="audio"==f?(l=W(b,"CHANNELS"))?parseInt(l.split("/")[0],10):null:null;var m="audio"==f?(m=W(b,"CHANNELS"))?m.includes("/JOC"):!1:!1;var p=W(b,"CHARACTERISTICS");b="YES"==W(b,"FORCED");d=Ur(a,e,d,f,g,k,h,l,null,p,b,m);a.C.has(c)?a.C.get(c).push(d):a.C.set(c,
740
742
  [d]);if(a.h.has(e))return a.h.get(e);a.h.set(e,d);return d}
741
743
  function Pr(a,b){var c,d,e,f,g,h,k,l,m,p;return G(function(n){if(1==n.g){c=Tr(Pq(b,"URI"),a.s);d=W(b,"CODECS","jpeg")||"";if(a.h.has(c))return n.return(a.h.get(c));e=Fr(b);f=W(b,"NAME");g=W(b,"CHARACTERISTICS");h=Ur(a,c,d,"image",e,!1,f,null,null,g,!1,!1);return a.h.has(c)?n.return(a.h.get(c)):(k=W(b,"RESOLUTION"))?u(n,h.stream.createSegmentIndex(),3):n.D(2)}2!=n.g&&(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)&&(h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])*
742
- Number(m.split("x")[1]));if(p=W(b,"BANDWIDTH"))h.stream.bandwidth=Number(p);a.h.set(c,h);return n.return(h)})}function Sr(a,b,c,d){var e=Tr(Pq(b,"URI"),a.s);if(a.h.has(e))return a.h.get(e);b=W(b,"CLOSED-CAPTIONS");b="video"==d&&b&&"NONE"!=b?a.K.get(b):null;c=Fb(d,c);d=Ur(a,e,c,d,"und",!1,null,null,b,null,!1,!1);if(a.h.has(e))return a.h.get(e);a.h.set(e,d);return d}
743
- function Ur(a,b,c,d,e,f,g,h,k,l,m,p){function n(A){var z,C,E,F,H,J,K,N,V,U,P,ha,Aa;return G(function(za){if(1==za.g)return u(za,lr(a,y.kd),2);if(3!=za.g){z=za.h;if(A.aborted)return za.return();C=z.uri;E=br(a.X,z.data,C);F=nr(a);return u(za,Cr(a,E,b,C,c,d,e,f,g,h,k,l,m,p),3)}H=za.h;if(A.aborted)return za.return();J=H.stream;nr(a)&&!F&&Jr(a);y.kd=C;y.Ab=H.Ab;y.od=H.od;y.Lc=H.Lc;y.zd=H.zd;y.se=!0;v.segmentIndex=J.segmentIndex;v.encrypted=J.encrypted;v.drmInfos=J.drmInfos;v.keyIds=J.keyIds;v.mimeType=
744
- J.mimeType;gj.includes(v.mimeType)&&(v.codecs="");v.drmInfos.length&&a.i.newDrmInfo(v);K=Jb;if(d==K.Ma||d==K.hd)for(N=r(a.h.values()),V=N.next();!V.done;V=N.next())U=V.value,U.se||U.type!=d||(U.stream.mimeType=J.mimeType,gj.includes(U.stream.mimeType)&&(U.stream.codecs=""));Vr(a)&&(a.za?Kr(a,[y]):(a.za=!0,P=Array.from(a.h.values()),ha=P.filter(function(Ua){return Ua.stream.segmentIndex}),Kr(a,ha),Lr(a),Aa=a.P,0<Aa&&a.m.R(Aa)));B(za)})}var t=Wq(a.O,b),v=Wr(a,c,d,e,f,g,h,k,l,m,p);gj.includes(v.mimeType)&&
745
- (v.codecs="");var y={stream:v,type:d,$c:b,kd:t,Ab:0,zd:new Map,od:!1,Lc:!1,ke:-1,se:!1},w=null,x=new AbortController;v.createSegmentIndex=function(){if(w)return w;x=new AbortController;return w=new Promise(function(A){A(n(x.signal))})};v.closeSegmentIndex=function(){w&&!v.segmentIndex&&x.abort();v.segmentIndex&&(v.segmentIndex.release(),v.segmentIndex=null);w=null};return y}
744
+ Number(m.split("x")[1]));if(p=W(b,"BANDWIDTH"))h.stream.bandwidth=Number(p);a.h.set(c,h);return n.return(h)})}function Sr(a,b,c,d){var e=Tr(Pq(b,"URI"),a.s);if(a.h.has(e))return a.h.get(e);b=W(b,"CLOSED-CAPTIONS");b="video"==d&&b&&"NONE"!=b?a.M.get(b):null;c=Fb(d,c);d=Ur(a,e,c,d,"und",!1,null,null,b,null,!1,!1);if(a.h.has(e))return a.h.get(e);a.h.set(e,d);return d}
745
+ function Ur(a,b,c,d,e,f,g,h,k,l,m,p){function n(A){var z,C,E,F,H,J,K,N,V,U,ba,Q,Aa;return G(function(za){if(1==za.g)return u(za,lr(a,y.ld),2);if(3!=za.g){z=za.h;if(A.aborted)return za.return();C=z.uri;E=br(a.X,z.data,C);F=nr(a);return u(za,Cr(a,E,b,C,c,d,e,f,g,h,k,l,m,p),3)}H=za.h;if(A.aborted)return za.return();J=H.stream;nr(a)&&!F&&Jr(a);y.ld=C;y.Ab=H.Ab;y.pd=H.pd;y.Lc=H.Lc;y.zd=H.zd;y.se=!0;v.segmentIndex=J.segmentIndex;v.encrypted=J.encrypted;v.drmInfos=J.drmInfos;v.keyIds=J.keyIds;v.mimeType=
746
+ J.mimeType;gj.includes(v.mimeType)&&(v.codecs="");v.drmInfos.length&&a.i.newDrmInfo(v);K=Jb;if(d==K.Ma||d==K.jd)for(N=r(a.h.values()),V=N.next();!V.done;V=N.next())U=V.value,U.se||U.type!=d||(U.stream.mimeType=J.mimeType,gj.includes(U.stream.mimeType)&&(U.stream.codecs=""));Vr(a)&&(a.ua?Kr(a,[y]):(a.ua=!0,ba=Array.from(a.h.values()),Q=ba.filter(function(Ua){return Ua.stream.segmentIndex}),Kr(a,Q),Lr(a),Aa=a.P,0<Aa&&a.m.R(Aa)));B(za)})}var t=Wq(a.O,b),v=Wr(a,c,d,e,f,g,h,k,l,m,p);gj.includes(v.mimeType)&&
747
+ (v.codecs="");var y={stream:v,type:d,bd:b,ld:t,Ab:0,zd:new Map,pd:!1,Lc:!1,ke:-1,se:!1},w=null,x=new AbortController;v.createSegmentIndex=function(){if(w)return w;x=new AbortController;return w=new Promise(function(A){A(n(x.signal))})};v.closeSegmentIndex=function(){w&&!v.segmentIndex&&x.abort();v.segmentIndex&&(v.segmentIndex.release(),v.segmentIndex=null);w=null};return y}
746
748
  function Nr(a){var b=Infinity;a=r(a.h.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.Ab));return b}function pr(a,b){var c=[];b=r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&Tj(d.segmentIndex,function(e){c.push(e)});a.j.lc(c)}
747
749
  function Kr(a,b){if(!nr(a))for(var c=Nr(a),d=r(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.wb(0,c);c=r(b);for(e=c.next();!e.done;e=c.next())e=e.value.stream,gj.includes(e.mimeType)&&(e.codecs="");pr(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?wr(a,b):yr(a,b)}
748
750
  function Vr(a){if(!a.G)return!1;var b=[],c=[];a=r(a.G.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0}
749
- function Cr(a,b,c,d,e,f,g,h,k,l,m,p,n,t,v){var y,w,x,A,z,C,E,F,H,J,K,N,V,U,P;return G(function(ha){if(1==ha.g){if(1!=b.type)throw new M(2,4,4017);y=Sq(b.g,"EXT-X-DEFINE");w=tr(a,y);Xr(a,b);return v?ha.D(2):u(ha,Yr(a,f,e,b,w),3)}2!=ha.g&&(v=ha.h);x=ur(b,v);A=x.drmInfos;z=x.keyIds;C=x.encrypted;E=x.lg;if(C&&!A.length&&!E)throw new M(2,4,4026);F=nr(a)?a.H.get(f):new Map;H=a.l;J=vr(a,b,f,F,w);H!=a.l&&Xr(a,b);K=J[J.length-1].endTime;N=new Sj(J);U=(V=Uq(b.g,"EXT-X-SERVER-CONTROL"))?null!=V.getAttribute("CAN-SKIP-UNTIL"):
750
- !1;P=Wr(a,e,f,g,h,k,l,m,p,n,t);P.segmentIndex=N;P.encrypted=C;P.drmInfos=A;P.keyIds=z;P.mimeType=v;return ha.return({stream:P,type:f,$c:c,kd:d,Ab:K,od:U,Lc:!1,ke:-1,zd:F,se:!1})})}
751
+ function Cr(a,b,c,d,e,f,g,h,k,l,m,p,n,t,v){var y,w,x,A,z,C,E,F,H,J,K,N,V,U,ba;return G(function(Q){if(1==Q.g){if(1!=b.type)throw new M(2,4,4017);y=Sq(b.g,"EXT-X-DEFINE");w=tr(a,y);Xr(a,b);return v?Q.D(2):u(Q,Yr(a,f,e,b,w),3)}2!=Q.g&&(v=Q.h);x=ur(b,v);A=x.drmInfos;z=x.keyIds;C=x.encrypted;E=x.ng;if(C&&!A.length&&!E)throw new M(2,4,4026);F=nr(a)?a.H.get(f):new Map;H=a.l;J=vr(a,b,f,F,w);H!=a.l&&Xr(a,b);K=J[J.length-1].endTime;N=new Sj(J);U=(V=Uq(b.g,"EXT-X-SERVER-CONTROL"))?null!=V.getAttribute("CAN-SKIP-UNTIL"):
752
+ !1;ba=Wr(a,e,f,g,h,k,l,m,p,n,t);ba.segmentIndex=N;ba.encrypted=C;ba.drmInfos=A;ba.keyIds=z;ba.mimeType=v;return Q.return({stream:ba,type:f,bd:c,ld:d,Ab:K,pd:U,Lc:!1,ke:-1,zd:F,se:!1})})}
751
753
  function Wr(a,b,c,d,e,f,g,h,k,l,m){var p=Zr(c,b)||(c==Ib?"text/vtt":$r[c].mp4);return{id:a.sa++,originalId:f,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:p,codecs:b,kind:c==Ib?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:d,label:f,type:c,primary:e,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:k?k.split(","):[],forced:l,channelsCount:g,audioSamplingRate:null,
752
754
  spatialAudio:m,closedCaptions:h,hdr:void 0,tilesLayout:void 0}}
753
- function ur(a,b){var c=[];if(a.segments){a=r(a.segments);for(var d=a.next();!d.done;d=a.next())d=Sq(d.value.g,"EXT-X-KEY"),c.push.apply(c,ia(d))}d=a=!1;var e=[],f=new Set;c=r(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=Pq(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=W(g,"KEYFORMAT")||"identity",g=(h=Qr[h])?h(g,b):null){if(g.keyIds){h=r(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}return{drmInfos:e,keyIds:f,encrypted:a,lg:d}}
755
+ function ur(a,b){var c=[];if(a.segments){a=r(a.segments);for(var d=a.next();!d.done;d=a.next())d=Sq(d.value.g,"EXT-X-KEY"),c.push.apply(c,ia(d))}d=a=!1;var e=[],f=new Set;c=r(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=Pq(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=W(g,"KEYFORMAT")||"identity",g=(h=Qr[h])?h(g,b):null){if(g.keyIds){h=r(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}return{drmInfos:e,keyIds:f,encrypted:a,ng:d}}
754
756
  function as(a,b,c){if(!window.crypto||!window.crypto.subtle)throw Ta("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new M(2,4,4042);var d=0,e=W(b,"IV","");if(e){var f=kd(e.substr(2));if(16!=f.byteLength)throw new M(2,4,4043);}else d=Vq(c.g,"EXT-X-MEDIA-SEQUENCE");b=Wq(c.h,Pq(b,"URI"));var g=of([b],a.g.retryParameters),h={method:"AES-128",iv:f,firstMediaSequenceNumber:d,fetchKey:function(){var k,l,m;return G(function(p){if(1==p.g)return u(p,
755
757
  bs(a,g,6),2);if(3!=p.g){k=p.h;if(!k.data||16!=k.data.byteLength)throw new M(2,4,4044);l={name:"AES-CBC"};m=h;return u(p,window.crypto.subtle.importKey("raw",k.data,l,!0,["decrypt"]),3)}m.cryptoKey=p.h;h.fetchKey=void 0;B(p)})}};return h}
756
- function Xr(a,b){var c=Uq(b.g,"EXT-X-PLAYLIST-TYPE"),d=Uq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)rr(a,kr);else{c?rr(a,Mr):rr(a,cs);d=Uq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new M(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=Uq(b.g,"EXT-X-PART-INF");a.l&&c?(a.$=Number(Pq(c,"PART-TARGET")),a.J=Math.min(a.$,a.J),b=Uq(b.g,"EXT-X-SERVER-CONTROL"),a.V=b?Number(Pq(b,"PART-HOLD-BACK")):0):a.J=Math.min(d,a.J);a.ra=Math.max(d,a.ra)}}
757
- function Jr(a){var b=a.g.defaultPresentationDelay?a.g.defaultPresentationDelay:a.V?a.V:a.ra*a.g.hls.liveSegmentsDelay;a.j.Xf(0);a.j.Uf(b);a.j.Zc(!1)}function ds(a,b,c,d){c=Uq(c,"EXT-X-MAP");if(!c)return null;var e=Pq(c,"URI");d=Tr(Wq(b,e),d);b=[d,W(c,"BYTERANGE","")].join("-");a.Z.has(b)||(c=es(d,c),a.Z.set(b,c));return a.Z.get(b)}function es(a,b){var c=0,d=null;if(b=W(b,"BYTERANGE"))c=b.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1;return new xi(function(){return[a]},c,d)}
758
+ function Xr(a,b){var c=Uq(b.g,"EXT-X-PLAYLIST-TYPE"),d=Uq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)rr(a,kr);else{c?rr(a,Mr):rr(a,cs);d=Uq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new M(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=Uq(b.g,"EXT-X-PART-INF");a.l&&c?(a.$=Number(Pq(c,"PART-TARGET")),a.K=Math.min(a.$,a.K),b=Uq(b.g,"EXT-X-SERVER-CONTROL"),a.V=b?Number(Pq(b,"PART-HOLD-BACK")):0):a.K=Math.min(d,a.K);a.ra=Math.max(d,a.ra)}}
759
+ function Jr(a){var b=a.g.defaultPresentationDelay?a.g.defaultPresentationDelay:a.V?a.V:a.ra*a.g.hls.liveSegmentsDelay;a.j.Zf(0);a.j.Wf(b);a.j.$c(!1)}function ds(a,b,c,d){c=Uq(c,"EXT-X-MAP");if(!c)return null;var e=Pq(c,"URI");d=Tr(Wq(b,e),d);b=[d,W(c,"BYTERANGE","")].join("-");a.Z.has(b)||(c=es(d,c),a.Z.set(b,c));return a.Z.get(b)}function es(a,b){var c=0,d=null;if(b=W(b,"BYTERANGE"))c=b.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1;return new xi(function(){return[a]},c,d)}
758
760
  function fs(a,b,c,d,e,f,g,h,k){var l=d.g,m=Tr(d.i,f),p=Uq(l,"EXTINF"),n=f=0,t=null;d.h.length&&!a.l&&Ta("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.g.hls.ignoreManifestProgramDateTime){var y=Uq(l,"EXT-X-PROGRAM-DATE-TIME");y&&y.value&&(v=dg(y.value))}y=Ai;Uq(l,"EXT-X-GAP")&&(y=2);if(!p){if(0==d.h.length)throw new M(2,4,4024,"EXTINF");
759
761
  if(!a.l)return null}var w=[];if(a.l)for(var x={},A=0;A<d.h.length;x={Wd:x.Wd},A++){var z=d.h[A],C=0==A?c:w[w.length-1],E=0==A?e:C.endTime,F=Number(W(z,"DURATION"))||a.$;if(F){F=E+F;var H=0,J=null;"EXT-X-PRELOAD-HINT"==z.name?H=(H=W(z,"BYTERANGE-START"))?Number(H):0:(H=W(z,"BYTERANGE"),J=r(gs(C,H)),H=J.next().value,J=J.next().value);if(C=W(z,"URI"))x.Wd=Wq(g,C),C=Ai,"YES"==W(z,"GAP")&&(C=2),w.push(new zi(E,F,function(K){return function(){return[K.Wd]}}(x),H,J,b,0,0,Infinity,[],"",null,null,C))}}p?
760
- f=e+Number(p.value.split(",")[0]):f=w[w.length-1].endTime;(a=Uq(l,"EXT-X-BYTERANGE"))?(t=r(gs(c,a.value)),n=t.next().value,t=t.next().value):w.length&&(n=w[0].Sa,t=w[w.length-1].Ba);c="";a=null;"image"==h&&(c="1x1",h=Uq(l,"EXT-X-TILES"))&&(c=Pq(h,"LAYOUT"),(h=W(h,"DURATION"))&&(a=Number(h)));return new zi(e,f,function(){return m.length?[m]:[]},n,t,b,0,0,Infinity,w,c,a,v,y,k)}function gs(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Ba+1,d=c+b-1);return[c,d]}
761
- function vr(a,b,c,d,e){var f=b.segments,g=void 0,h=Vq(b.g,"EXT-X-DISCONTINUITY-SEQUENCE"),k=Vq(b.g,"EXT-X-MEDIA-SEQUENCE"),l=Uq(b.g,"EXT-X-SKIP");l=l?Number(W(l,"SKIPPED-SEGMENTS")):0;var m=k+l,p=0;nr(a)&&d.has(m)&&(p=d.get(m));for(var n=[],t=null,v=0;v<f.length;v++){var y=f[v],w=0==v?p:t.endTime;m=k+l+v;Uq(b.g,"EXT-X-DISCONTINUITY")&&h++;var x=r(y.g);for(var A=x.next();!A.done;A=x.next())A=A.value,"EXT-X-KEY"==A.name&&"AES-128"==Pq(A,"METHOD")&&(g=as(a,A,b));d.set(m,w);x=ds(a,b.h,y.g,e);!a.l&&a.i.isAutoLowLatencyMode()&&
762
- (a.i.enableLowLatencyMode(),a.l=a.i.isLowLatencyMode());if(t=y=fs(a,x,t,y,w,e,b.h,c,g))y.m=h,a.g.hls.ignoreManifestProgramDateTime&&null!=a.F&&m<a.F||n.push(y)}if(a=n.some(function(z){return null!=z.g}))for(b={},c=0;c<n.length;b={tc:b.tc,sc:b.sc,bd:b.bd,qb:b.qb,rc:b.rc},c++)if(b.qb=n[c],null==b.qb.g)for(b.sc=0,b.tc=c,d=function(z){return function(){var C=n[z.tc];if(C){if(null!=C.g)return C.g+z.sc;z.sc-=C.endTime-C.startTime;z.tc+=1}return null}}(b),b.rc=0,b.bd=c,e=function(z){return function(){var C=
763
- n[z.bd];if(C){C!=z.qb&&(z.rc+=C.endTime-C.startTime);if(null!=C.g)return C.g+z.rc;--z.bd}return null}}(b);null==b.qb.g;)b.qb.g=e(),null==b.qb.g&&(b.qb.g=d());if(a)for(a=r(n),b=a.next();!b.done;b=a.next())for(c=b.value,b=c.g,c=r(c.i),d=c.next();!d.done;d=c.next())d=d.value,d.g=b,b+=d.endTime-d.startTime;return n}
762
+ f=e+Number(p.value.split(",")[0]):f=w[w.length-1].endTime;(a=Uq(l,"EXT-X-BYTERANGE"))?(t=r(gs(c,a.value)),n=t.next().value,t=t.next().value):w.length&&(n=w[0].Ta,t=w[w.length-1].Ba);c="";a=null;"image"==h&&(c="1x1",h=Uq(l,"EXT-X-TILES"))&&(c=Pq(h,"LAYOUT"),(h=W(h,"DURATION"))&&(a=Number(h)));return new zi(e,f,function(){return m.length?[m]:[]},n,t,b,0,0,Infinity,w,c,a,v,y,k)}function gs(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Ba+1,d=c+b-1);return[c,d]}
763
+ function vr(a,b,c,d,e){var f=b.segments,g=void 0,h=Vq(b.g,"EXT-X-DISCONTINUITY-SEQUENCE"),k=Vq(b.g,"EXT-X-MEDIA-SEQUENCE"),l=Uq(b.g,"EXT-X-SKIP");l=l?Number(W(l,"SKIPPED-SEGMENTS")):0;var m=k+l,p=0;nr(a)&&d.has(m)&&(p=d.get(m));for(var n=[],t=null,v=0;v<f.length;v++){var y=f[v],w=0==v?p:t.endTime;m=k+l+v;Uq(y.g,"EXT-X-DISCONTINUITY")&&h++;var x=r(y.g);for(var A=x.next();!A.done;A=x.next())A=A.value,"EXT-X-KEY"==A.name&&("AES-128"==Pq(A,"METHOD")?g=as(a,A,b):g=void 0);d.set(m,w);x=ds(a,b.h,y.g,e);
764
+ !a.l&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.l=a.i.isLowLatencyMode());if(t=y=fs(a,x,t,y,w,e,b.h,c,g))y.m=h,a.g.hls.ignoreManifestProgramDateTime&&null!=a.F&&m<a.F||n.push(y)}if(b=n.some(function(z){return null!=z.g}))for(c={},d=0;d<n.length;c={tc:c.tc,sc:c.sc,cd:c.cd,qb:c.qb,rc:c.rc},d++)if(c.qb=n[d],null==c.qb.g)for(c.sc=0,c.tc=d,e=function(z){return function(){var C=n[z.tc];if(C){if(null!=C.g)return C.g+z.sc;z.sc-=C.endTime-C.startTime;z.tc+=1}return null}}(c),c.rc=0,c.cd=d,
765
+ f=function(z){return function(){var C=n[z.cd];if(C){C!=z.qb&&(z.rc+=C.endTime-C.startTime);if(null!=C.g)return C.g+z.rc;--z.cd}return null}}(c);null==c.qb.g;)c.qb.g=f(),null==c.qb.g&&(c.qb.g=e());if(b)for(c=r(n),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.g,e=r(e.i),f=e.next();!f.done;f=e.next())f=f.value,f.g=d,d+=f.endTime-f.startTime;a=a.J;if(b&&Infinity!=a)for(b=r(n),d=b.next();!d.done;d=b.next())d.value.Ue(a);return n}
764
766
  function Tr(a,b){a=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}");var c=a.match(/{\$\w*}/g);if(c){c=r(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.slice(2,d.length-1),f=b.get(e);if(f)a=a.replace(d,f);else throw new M(2,4,4039,e);}}return a}function Zr(a,b){if(a==Ib){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":null:"image/jpeg"}
765
767
  function Yr(a,b,c,d,e){var f,g,h,k,l,m,p,n,t,v;return G(function(y){if(1==y.g){f=uf;g=Math.trunc((d.segments.length-1)/2);h=Tr(d.segments[g].i,e);k=new lb(h);l=k.Ha.split(".").pop();m=$r[b];if((p=m[l])||(p=zr[l])||(p=Zr(b,c)))return y.return(p);n=of([h],a.g.retryParameters);n.method="HEAD";return u(y,bs(a,n,f),2)}t=y.h;return(v=t.headers["content-type"])?y.return(v.split(";")[0]):y.return(b==Ib?"text/vtt":$r[b].mp4)})}
766
- function lr(a,b){b=of([b],a.g.retryParameters);a.i.modifyManifestRequest(b,{format:"h"});return bs(a,b,0)}function jr(a){var b,c;G(function(d){if(1==d.g){if(!a.i)return d.return();D(d,2);return u(d,a.update(),4)}if(2!=d.g)return nr(a)&&(b=a.P,a.m.R(b)),ua(d,0);c=va(d);if(!a.i)return d.return();c.severity=1;a.i.onError(c);a.m.R(.1);B(d)})}function nr(a){return a.aa!=kr}function rr(a,b){a.aa=b;a.j&&a.j.Zc(!nr(a));nr(a)||a.m.stop()}
768
+ function lr(a,b){b=of([b],a.g.retryParameters);a.i.modifyManifestRequest(b,{format:"h"});return bs(a,b,0)}function jr(a){var b,c;G(function(d){if(1==d.g){if(!a.i)return d.return();D(d,2);return u(d,a.update(),4)}if(2!=d.g)return nr(a)&&(b=a.P,a.m.R(b)),ua(d,0);c=va(d);if(!a.i)return d.return();c.severity=1;a.i.onError(c);a.m.R(.1);B(d)})}function nr(a){return a.aa!=kr}function rr(a,b){a.aa=b;a.j&&a.j.$c(!nr(a));nr(a)||a.m.stop()}
767
769
  function bs(a,b,c){if(!a.I)throw new M(2,7,7001);b=a.i.networkingEngine.request(c,b);jf(a.I,b);return b.promise}I("shaka.hls.HlsParser",ir);
768
770
  var zr={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},Ar={mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t"},Br={mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t"},$r={audio:Ar,video:Br,text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",webvtt:"txt/vtt",
769
771
  ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Qr={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new M(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new M(2,4,4041);return Eb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Pq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;
770
772
  b=Pq(a,"URI");b=hr(b);b=Hc(b.data);b=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=Pq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=Pq(a,"URI");a=hr(a);a=Hc(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Tf(a,b,new Set,0);return Eb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])},identity:function(a){a=
771
- Pq(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?Eb("org.w3.clearkey",null):null}},kr="VOD",cs="EVENT",Mr="LIVE",qr={hg:kr,ei:cs,fg:Mr};Sc("Tizen 3")||Sc("Tizen 2")||Uc()||(dh.m3u8=function(){return new ir},bh["application/x-mpegurl"]=function(){return new ir},bh["application/vnd.apple.mpegurl"]=function(){return new ir});function hs(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,Of:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=dd(b)}catch(g){}throw new M(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function is(){}function js(a,b,c,d,e){var f=new ks;Cf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new ls,h={tf:!1,cg:!1};a=ms(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 Ze(a,function(){h.tf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new O(function(){h.cg=!0;g.abort()});k.R(b/1E3);a.finally(function(){k.stop()})}return a}
773
+ Pq(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?Eb("org.w3.clearkey",null):null}},kr="VOD",cs="EVENT",Mr="LIVE",qr={jg:kr,ii:cs,hg:Mr};Sc("Tizen 3")||Sc("Tizen 2")||Uc()||(dh.m3u8=function(){return new ir},bh["application/x-mpegurl"]=function(){return new ir},bh["application/vnd.apple.mpegurl"]=function(){return new ir});function hs(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,Qf:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=dd(b)}catch(g){}throw new M(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function is(){}function js(a,b,c,d,e){var f=new ks;Cf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new ls,h={vf:!1,eg:!1};a=ms(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 Ze(a,function(){h.vf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new O(function(){h.eg=!0;g.abort()});k.R(b/1E3);a.finally(function(){k.stop()})}return a}
772
774
  function ms(a,b,c,d,e,f,g){var h,k,l,m,p,n,t,v,y,w,x,A,z;return G(function(C){switch(C.g){case 1:return h=ns,k=os,n=p=0,t=Date.now(),D(C,2),u(C,h(a,c),4);case 4:return l=C.h,f(ps(l.headers)),v=l.clone().body.getReader(),w=(y=l.headers.get("Content-Length"))?parseInt(y,10):0,x=function(E){function F(){var H,J;return G(function(K){switch(K.g){case 1:return D(K,2),u(K,v.read(),4);case 4:H=K.h;ua(K,3);break;case 2:return va(K),K.return();case 3:if(H.done){K.D(5);break}p+=H.value.byteLength;if(!g){K.D(5);
773
- break}return u(K,g(H.value),5);case 5:J=Date.now();if(100<J-t||H.done)e(J-t,p-n,w-p),n=p,t=J;H.done?E.close():(E.enqueue(H.value),F());B(K)}})}F()},new k({start:x}),u(C,l.arrayBuffer(),5);case 5:m=C.h;ua(C,3);break;case 2:A=va(C);if(d.tf)throw new M(1,1,7001,a,b);if(d.cg)throw new M(1,1,1003,a,b);throw new M(1,1,1002,a,A,b);case 3:return z=ps(l.headers),C.return(hs(z,m,l.status,a,l.url,b))}})}function ps(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
775
+ break}return u(K,g(H.value),5);case 5:J=Date.now();if(100<J-t||H.done)e(J-t,p-n,w-p),n=p,t=J;H.done?E.close():(E.enqueue(H.value),F());B(K)}})}F()},new k({start:x}),u(C,l.arrayBuffer(),5);case 5:m=C.h;ua(C,3);break;case 2:A=va(C);if(d.vf)throw new M(1,1,7001,a,b);if(d.eg)throw new M(1,1,1003,a,b);throw new M(1,1,1002,a,A,b);case 3:return z=ps(l.headers),C.return(hs(z,m,l.status,a,l.url,b))}})}function ps(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
774
776
  function qs(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;return!(!window.fetch||!window.AbortController)}I("shaka.net.HttpFetchPlugin",is);is.isSupported=qs;is.parse=js;var ns=window.fetch,ls=window.AbortController,os=window.ReadableStream,ks=window.Headers;qs()&&(lf("http",js,2,!0),lf("https",js,2,!0),lf("blob",js,2,!0));function rs(){}
775
777
  function ss(a,b,c,d,e){var f=new ts,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 M(1,1,7001,a,c))};var p=!1;f.onreadystatechange=function(){if(2==f.readyState&&!p){var t=us(f);e(t);p=!0}};f.onload=function(){var t=us(f),v=f.response;try{var y=hs(t,v,f.status,a,f.responseURL,c);l(y)}catch(w){m(w)}};f.onerror=function(t){m(new M(1,1,1002,a,t,
776
778
  c))};f.ontimeout=function(){m(new M(1,1,1003,a,c))};f.onprogress=function(t){var v=Date.now();if(100<v-g||t.lengthComputable&&t.loaded==t.total)d(v-g,t.loaded-h,t.total-t.loaded),h=t.loaded,g=v};for(var n in b.headers)f.setRequestHeader(n.toLowerCase(),b.headers[n]);f.send(b.body)});return new Ze(k,function(){f.abort();return Promise.resolve()})}
777
- function us(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=r(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}I("shaka.net.HttpXHRPlugin",rs);rs.parse=ss;var ts=window.XMLHttpRequest;lf("http",ss,1,!0);lf("https",ss,1,!0);lf("blob",ss,1,!0);function vs(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function ws(a){return a.Pa().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Sa+":"+a.Ba}function xs(a,b){return lk(a.g.Pa(),a.g.Sa,a.g.Ba,b.streaming.retryParameters)};function ys(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function zs(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}ys.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 As(a){var b=this;this.s=a;this.j=new Map;this.i=new vf(function(){return Bs(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new ys}As.prototype.destroy=function(){return this.i.destroy()};function Cs(a,b,c){a.m=b;a.l=c}function Bs(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
779
+ function us(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=r(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}I("shaka.net.HttpXHRPlugin",rs);rs.parse=ss;var ts=window.XMLHttpRequest;lf("http",ss,1,!0);lf("https",ss,1,!0);lf("blob",ss,1,!0);function vs(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function ws(a){return a.Pa().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Ta+":"+a.Ba}function xs(a,b){return lk(a.g.Pa(),a.g.Ta,a.g.Ba,b.streaming.retryParameters)};function ys(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function zs(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}ys.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 As(a){var b=this;this.s=a;this.j=new Map;this.i=new vf(function(){return Bs(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new ys}As.prototype.destroy=function(){return this.i.destroy()};function Cs(a,b,c){a.m=b;a.l=c}function Bs(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
778
780
  function Ds(a,b,c,d,e,f){wf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,p,n,t;return G(function(v){if(1==v.g)return u(v,Es(a,c),2);h=v.h;if(a.i.g)throw new M(2,9,7001);if(e)for(m in k=Hc(h),l=new Sf(k),l.data)p=Number(m),n=l.data[p],t=l.g[p],a.l(n,t);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 Fs(a){return G(function(b){return 1==b.g?u(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
779
781
  function Es(a,b){var c,d,e,f;return G(function(g){if(1==g.g)return c=uf,d=a.s.request(c,b),e=function(){return d.abort()},a.h.push(e),u(g,d.promise,2);f=g.h;gc(a.h,e);return g.return(f.data)})};function Gs(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()}}Gs.prototype.abort=function(){var a=this;return G(function(b){if(1==b.g){try{a.i.abort()}catch(c){}D(b,2);return u(b,a.g,4)}if(2!=b.g)return ua(b,0);va(b);B(b)})};
780
- function Hs(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return G(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();B(g)})}})}Gs.prototype.store=function(){return this.h};Gs.prototype.promise=function(){return this.g};function Is(a){this.h=a;this.g=[]}Is.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Js(a,b){return Ks(a,b,"readwrite")}function Ks(a,b,c){c=a.h.transaction([b],c);var d=new Gs(c,b);a.g.push(d);d.promise().then(function(){gc(a.g,d)},function(){gc(a.g,d)});return d};function Ls(a,b,c){this.h=new Is(a);this.i=b;this.g=c}q=Ls.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return Ms(this.i)};q.removeSegments=function(a,b){return Ns(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return G(function(d){if(1==d.g)return u(d,Os(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.wf(e)}))})};q.addManifests=function(){return Ms(this.g)};
782
+ function Hs(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return G(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();B(g)})}})}Gs.prototype.store=function(){return this.h};Gs.prototype.promise=function(){return this.g};function Is(a){this.h=a;this.g=[]}Is.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Js(a,b){return Ks(a,b,"readwrite")}function Ks(a,b,c){c=a.h.transaction([b],c);var d=new Gs(c,b);a.g.push(d);d.promise().then(function(){gc(a.g,d)},function(){gc(a.g,d)});return d};function Ls(a,b,c){this.h=new Is(a);this.i=b;this.g=c}q=Ls.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return Ms(this.i)};q.removeSegments=function(a,b){return Ns(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return G(function(d){if(1==d.g)return u(d,Os(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.yf(e)}))})};q.addManifests=function(){return Ms(this.g)};
781
783
  q.updateManifest=function(){return Promise.reject(new M(2,9,9016,"Cannot modify values in "+this.g))};function Ps(a,b,c){a=Js(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=Js(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 Ns(this,this.g,a,b)};
782
- q.getManifests=function(a){var b=this,c;return G(function(d){if(1==d.g)return u(d,Os(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Dc(e)})))})};q.getAllManifests=function(){var a=this,b,c;return G(function(d){return 1==d.g?(b=Ks(a.h,a.g,"readonly"),c=new Map,u(d,Hs(b,function(e,f){var g;return G(function(h){if(1==h.g)return u(h,a.Dc(f),2);g=h.h;c.set(e,g);B(h)})}),2)):3!=d.g?u(d,b.promise(),3):d.return(c)})};q.wf=function(a){return a};q.Dc=function(a){return Promise.resolve(a)};
783
- function Ms(a){return Promise.reject(new M(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 G(function(m){if(1==m.g){d=Js(c.h,a);e=d.store();f=[];g={};h=r(b);for(k=h.next();!k.done;g={fd:g.fd},k=h.next())l=k.value,g.fd=e.add(l),g.fd.onsuccess=function(p){return function(){f.push(p.fd.result)}}(g);return u(m,d.promise(),2)}return m.return(f)})};
784
- function Ns(a,b,c,d){a=Js(a.h,b);b=a.store();var e={};c=r(c);for(var f=c.next();!f.done;e={ed:e.ed},f=c.next())e.ed=f.value,b.delete(e.ed).onsuccess=function(g){return function(){return d(g.ed)}}(e);return a.promise()}
784
+ q.getManifests=function(a){var b=this,c;return G(function(d){if(1==d.g)return u(d,Os(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Dc(e)})))})};q.getAllManifests=function(){var a=this,b,c;return G(function(d){return 1==d.g?(b=Ks(a.h,a.g,"readonly"),c=new Map,u(d,Hs(b,function(e,f){var g;return G(function(h){if(1==h.g)return u(h,a.Dc(f),2);g=h.h;c.set(e,g);B(h)})}),2)):3!=d.g?u(d,b.promise(),3):d.return(c)})};q.yf=function(a){return a};q.Dc=function(a){return Promise.resolve(a)};
785
+ function Ms(a){return Promise.reject(new M(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 G(function(m){if(1==m.g){d=Js(c.h,a);e=d.store();f=[];g={};h=r(b);for(k=h.next();!k.done;g={gd:g.gd},k=h.next())l=k.value,g.gd=e.add(l),g.gd.onsuccess=function(p){return function(){f.push(p.gd.result)}}(g);return u(m,d.promise(),2)}return m.return(f)})};
786
+ function Ns(a,b,c,d){a=Js(a.h,b);b=a.store();var e={};c=r(c);for(var f=c.next();!f.done;e={fd:e.fd},f=c.next())e.fd=f.value,b.delete(e.fd).onsuccess=function(g){return function(){return d(g.fd)}}(e);return a.promise()}
785
787
  function Os(a,b,c){var d,e,f,g,h,k,l;return G(function(m){if(1==m.g){d=Ks(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=r(c);for(l=k.next();!l.done;h={zc:h.zc,wc:h.wc},l=k.next())h.wc=l.value,h.zc=e.get(h.wc),h.zc.onsuccess=function(p){return function(){void 0==p.zc.result&&g.push(p.wc);f[p.wc]=p.zc.result}}(h);return u(m,d.promise(),2)}if(g.length)throw new M(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(p){return f[p]}))})};function Qs(a){this.g=new Is(a)}Qs.prototype.destroy=function(){return this.g.destroy()};Qs.prototype.getAll=function(){var a=this,b,c;return G(function(d){return 1==d.g?(b=Ks(a.g,"session-ids","readonly"),c=[],u(d,Hs(b,function(e,f){c.push(f)}),2)):3!=d.g?u(d,b.promise(),3):d.return(c)})};Qs.prototype.add=function(a){var b=Js(this.g,"session-ids"),c=b.store();a=r(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
786
788
  Qs.prototype.remove=function(a){var b=this,c;return G(function(d){return 1==d.g?(c=Js(b.g,"session-ids"),u(d,Hs(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):u(d,c.promise(),0)})};function Rs(){this.g=new Map}Rs.prototype.destroy=function(){for(var a=[],b=r(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};Rs.prototype.init=function(){var a=this;Ss.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=r(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
787
789
  function Ts(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Ra:d,Aa:f},Aa:e})})});if(b)return b;throw new M(2,9,9013,"Could not find a cell that supports add-operations");}function Us(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Ra:d,Aa:f},e)})})}
@@ -790,7 +792,7 @@ function Ys(a){var b,c,d;return G(function(e){return 1==e.g?(b=Array.from(a.g.va
790
792
  $s.prototype.Dc=function(a){var b,c,d,e,f,g;return G(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=at(a.periods[c],e),b.push(f);return u(h,$p(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})})};
791
793
  function at(a,b){bt(a);for(var c=r(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return ct(e,a.startTime,b)})}
792
794
  function ct(a,b,c){var d=a.initSegmentUri?dt(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=dt(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,
793
- 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}}$s.prototype.wf=function(a){return{data:a.data}};function dt(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 M(2,9,9004,"Could not parse uri "+a);}
795
+ 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}}$s.prototype.yf=function(a){return{data:a.data}};function dt(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 M(2,9,9004,"Could not parse uri "+a);}
794
796
  function bt(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=r(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=r(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=r(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
795
797
  f=r(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=r(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=r(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function et(){Ls.apply(this,arguments)}pa(et,Ls);
796
798
  et.prototype.Dc=function(a){var b,c,d,e,f,g;return G(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=r(k.streams),p=m.next();!p.done;p=m.next())p=p.value,0!=p.variantIds.length&&l.push(ft(p,k.startTime,k.startTime+e));f=l;b.push(f)}return u(h,$p(b),2)}g=h.h;return h.return({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==a.expiration?
@@ -804,7 +806,7 @@ q.getCells=function(){var a=new Map;this.g&&a.set("v1",this.g);this.h&&a.set("v2
804
806
  q.erase=function(){var a=this;return G(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,it(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,u(b,a.init(),0)}})};
805
807
  function it(){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 M(2,9,9001,b.error));c.preventDefault()};return a}Zs("idb",function(){return Sc("CrKey")||Rc()||!window.indexedDB?null:new ht});function jt(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}jt.prototype.Ra=function(){return this.i};jt.prototype.Aa=function(){return this.h};jt.prototype.key=function(){return this.l};jt.prototype.toString=function(){return this.j};
806
808
  function kt(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 jt(b,c,d,Number(a[4])):null};function lt(a,b){this.h=a;this.g=b}
807
- function mt(a,b){var c=new Q(null,0);c.ab(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=nt(a,d,e,c);e=b.streams.filter(function(l){return l.type==Ib}).map(function(l){return ot(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return ot(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=r(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
809
+ function mt(a,b){var c=new P(null,0);c.Sa(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=nt(a,d,e,c);e=b.streams.filter(function(l){return l.type==Ib}).map(function(l){return ot(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return ot(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=r(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
808
810
  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}}
809
811
  function nt(a,b,c,d){for(var e=new Set,f=r(b),g=f.next();!g.done;g=f.next()){var h=r(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=r(c);for(g=f.next();!g.done;g=f.next())for(h=r(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=r(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=r(b);for(e=b.next();!e.done;e=
810
812
  b.next())for(e=e.value,g=ot(a,e,d),h=r(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=r(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=ot(a,e,d),g=r(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}
@@ -814,8 +816,8 @@ function qt(a,b){var c=new jt("segment",a.h,a.g,b);return new xi(function(){retu
814
816
  q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return G(function(m){switch(m.g){case 1:d=kt(a);c.g=d;if(null==d||"manifest"!=d.g)throw new M(2,1,9004,a);e=new Rs;ta(m);return u(m,e.init(),4);case 4:return u(m,Vs(e,d.Ra(),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 lt(d.Ra(),d.Aa()),l=mt(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()};
815
817
  q.update=function(){};
816
818
  q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return G(function(m){switch(m.g){case 1:return d=c.g,e=new Rs,D(m,2,3),u(m,e.init(),5);case 5:return u(m,Vs(e,d.Ra(),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:va(m),m.D(3)}})};
817
- bh["application/x-offline-manifest"]=function(){return new rt};function st(){}function tt(a){var b=kt(a);b&&"manifest"==b.g?(a={uri:a,Of:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=bf(a)):a=b&&"segment"==b.g?ut(b.key(),b):$e(new M(2,1,9004,a));return a}
818
- function ut(a,b){var c=new Rs;return bf(void 0).ha(function(){return c.init()}).ha(function(){return Vs(c,b.Ra(),b.Aa())}).ha(function(d){return d.getSegments([b.key()])}).ha(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}I("shaka.offline.OfflineScheme",st);st.plugin=tt;lf("offline",tt);function vt(a,b,c){var d,e,f,g,h,k;return G(function(l){switch(l.g){case 1:d=[];for(var m=[],p=r(c),n=p.next();!n.done;n=p.next()){n=n.value;for(var t=!1,v=r(m),y=v.next();!y.done;y=v.next())if(y=y.value,wt(y.info,n)){y.sessionIds.push(n.sessionId);t=!0;break}t||m.push({info:n,sessionIds:[n.sessionId]})}e=r(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=xt(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)}})}
819
+ bh["application/x-offline-manifest"]=function(){return new rt};function st(){}function tt(a){var b=kt(a);b&&"manifest"==b.g?(a={uri:a,Qf:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=bf(a)):a=b&&"segment"==b.g?ut(b.key(),b):$e(new M(2,1,9004,a));return a}
820
+ function ut(a,b){var c=new Rs;return bf(void 0).ia(function(){return c.init()}).ia(function(){return Vs(c,b.Ra(),b.Aa())}).ia(function(d){return d.getSegments([b.key()])}).ia(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}I("shaka.offline.OfflineScheme",st);st.plugin=tt;lf("offline",tt);function vt(a,b,c){var d,e,f,g,h,k;return G(function(l){switch(l.g){case 1:d=[];for(var m=[],p=r(c),n=p.next();!n.done;n=p.next()){n=n.value;for(var t=!1,v=r(m),y=v.next();!y.done;y=v.next())if(y=y.value,wt(y.info,n)){y.sessionIds.push(n.sessionId);t=!0;break}t||m.push({info:n,sessionIds:[n.sessionId]})}e=r(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=xt(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)}})}
819
821
  function xt(a,b,c){var d,e;return G(function(f){switch(f.g){case 1:return d=new og({Ob:b,onError:function(){},Fd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),D(f,2),d.configure(a),u(f,wg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:ua(f,3);break;case 2:return va(f),u(f,d.destroy(),5);case 5:return f.return([]);case 3:return D(f,6),u(f,Hg(d),8);case 8:ua(f,7);break;case 6:return va(f),u(f,d.destroy(),
820
822
  9);case 9:return f.return([]);case 7:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return G(function(h){if(1==h.g)return D(h,2),u(h,Ig(d,g),4);if(2!=h.g)return e.push(g),ua(h,0);va(h);B(h)})})),10);case 10:return u(f,d.destroy(),11);case 11:return f.return(e)}})}
821
823
  function wt(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&hc(a.audioCapabilities,b.audioCapabilities,c)&&hc(a.videoCapabilities,b.videoCapabilities,c)};function yt(a,b,c){var d=b.presentationTimeline.getDuration();b=zt(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function At(a,b){var c=mt(new lt(a.Ra(),a.Aa()),b),d=b.appMetadata||{};c=zt(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}}
@@ -823,27 +825,27 @@ function zt(a){var b=[],c=we(a.variants);c=r(c);for(var d=c.next();!d.done;d=c.n
823
825
  case 4:b.h=null,b.g=null,B(k)}})})}function Gt(){if(Oc())a:{var a=r(Ss.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=Ft.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Gl(a,b));return Ol(this.h,a)};q.getConfiguration=function(){var a=Ml();Ol(a,this.h,Ml());return a};q.Hc=function(){return this.g};
824
826
  q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new As(this.g);this.j.push(f);b=Ht(this,a,b||{},function(){var g;return G(function(h){if(1==h.g)return u(h,ah(a,d.g,e.manifest.retryParameters,c||null),2);g=h.h;return h.return(g())})},e,f);b=new Ze(b,function(){return Bs(f)});b.finally(function(){gc(d.j,f)});return It(this,b)};
825
827
  function Ht(a,b,c,d,e,f){var g,h,k,l,m,p,n,t,v,y,w,x,A,z;return G(function(C){switch(C.g){case 1:return Jt(),h=g=null,k=new Rs,p=m=l=null,D(C,2,3),u(C,d(),5);case 5:return g=C.h,u(C,Kt(a,b,g,e),6);case 6:n=C.h;Lt(a);t=!n.presentationTimeline.T()&&!n.presentationTimeline.Lb();if(!t)throw new M(2,9,9005,b);return u(C,Mt(a,n,function(E){p=p||E},e),7);case 7:h=C.h;Lt(a);if(p)throw p;return u(C,Nt(n,e),8);case 8:return u(C,k.init(),9);case 9:return Lt(a),u(C,Ts(k),10);case 10:return l=C.h,Lt(a),v=Ot(h,
826
- n,b,c,e,f),y=v.hh,w=v.Te,u(C,l.Aa.addManifests([y]),11);case 11:x=C.h;Lt(a);m=x[0];Lt(a);if(p)throw p;return u(C,Pt(a,w,m,y,f,e,l.Aa,n,h),12);case 12:return Lt(a),A=new jt("manifest",l.path.Ra,l.path.Aa,m),C.return(At(A,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:z=va(C);if(null==m){C.D(18);break}return u(C,Qt(m),18);case 18:throw p||z;}})}
827
- function Pt(a,b,c,d,e,f,g,h,k){var l,m,p,n,t,v,y,w,x,A;return G(function(z){switch(z.g){case 1:l={};m=0;p=function(C,E){var F,H,J,K,N,V,U;return G(function(P){if(1==P.g){F={};H=r(C);for(J=H.next();!J.done;F={Fb:F.Fb},J=H.next())F.Fb=J.value,K=xs(F.Fb,f),N=F.Fb.i,V=F.Fb.h,U=function(ha){return function(Aa){var za,Ua,ab;return G(function(Na){if(1==Na.g)return u(Na,g.addSegments([{data:Aa}]),2);za=Na.h;Lt(a);Ua=ha.Fb.g;ab=ws(Ua);l[ab]=za[0];m+=Aa.byteLength;B(Na)})}}(F),Ds(e,F.Fb.groupId,K,N,V,U);return u(P,
828
- Fs(e),2)}if(!E)return P.D(0);Lt(a);Rt(h,d,k,f);return u(P,g.updateManifest(c,d),0)})};n=!1;D(z,2);if(!St(h)||!n||Tt(h)){z.D(4);break}return u(z,p(b.filter(function(C){return C.h}),!0),5);case 5:return Lt(a),b=b.filter(function(C){return!C.h}),t=l,v=m,l={},m=0,u(z,Ut(g,c,d,t,v,function(){return Lt(a)}),6);case 6:Lt(a);case 4:if(n){z.D(7);break}return u(z,p(b,!1),8);case 8:return Lt(a),y=l,w=m,l={},m=0,u(z,Ut(g,c,d,y,w,function(){return Lt(a)}),9);case 9:Lt(a);case 7:ua(z,0);break;case 2:return x=va(z),
829
- A=Object.values(l),u(z,g.removeSegments(A,function(){}),10);case 10:throw x;}})}function Qt(a){var b,c,d,e;return G(function(f){switch(f.g){case 1:return b=new Rs,u(f,b.init(),2);case 2:return u(f,Ts(b),3);case 3:return c=f.h,d=new jt("manifest",c.path.Ra,c.path.Aa,a),u(f,b.destroy(),4);case 4:return e=new Ft,u(f,e.remove(d.toString()),0)}})}
828
+ n,b,c,e,f),y=v.jh,w=v.Ve,u(C,l.Aa.addManifests([y]),11);case 11:x=C.h;Lt(a);m=x[0];Lt(a);if(p)throw p;return u(C,Pt(a,w,m,y,f,e,l.Aa,n,h),12);case 12:return Lt(a),A=new jt("manifest",l.path.Ra,l.path.Aa,m),C.return(At(A,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:z=va(C);if(null==m){C.D(18);break}return u(C,Qt(m),18);case 18:throw p||z;}})}
829
+ function Pt(a,b,c,d,e,f,g,h,k){var l,m,p,n,t,v,y,w,x,A;return G(function(z){switch(z.g){case 1:l={};m=0;p=function(C,E){var F,H,J,K,N,V,U;return G(function(ba){if(1==ba.g){F={};H=r(C);for(J=H.next();!J.done;F={Fb:F.Fb},J=H.next())F.Fb=J.value,K=xs(F.Fb,f),N=F.Fb.i,V=F.Fb.h,U=function(Q){return function(Aa){var za,Ua,ab;return G(function(Na){if(1==Na.g)return u(Na,g.addSegments([{data:Aa}]),2);za=Na.h;Lt(a);Ua=Q.Fb.g;ab=ws(Ua);l[ab]=za[0];m+=Aa.byteLength;B(Na)})}}(F),Ds(e,F.Fb.groupId,K,N,V,U);return u(ba,
830
+ Fs(e),2)}if(!E)return ba.D(0);Lt(a);Rt(h,d,k,f);return u(ba,g.updateManifest(c,d),0)})};n=!1;D(z,2);if(!St(h)||!n||Tt(h)){z.D(4);break}return u(z,p(b.filter(function(C){return C.h}),!0),5);case 5:return Lt(a),b=b.filter(function(C){return!C.h}),t=l,v=m,l={},m=0,u(z,Ut(g,c,d,t,v,function(){return Lt(a)}),6);case 6:Lt(a);case 4:if(n){z.D(7);break}return u(z,p(b,!1),8);case 8:return Lt(a),y=l,w=m,l={},m=0,u(z,Ut(g,c,d,y,w,function(){return Lt(a)}),9);case 9:Lt(a);case 7:ua(z,0);break;case 2:return x=
831
+ va(z),A=Object.values(l),u(z,g.removeSegments(A,function(){}),10);case 10:throw x;}})}function Qt(a){var b,c,d,e;return G(function(f){switch(f.g){case 1:return b=new Rs,u(f,b.init(),2);case 2:return u(f,Ts(b),3);case 3:return c=f.h,d=new jt("manifest",c.path.Ra,c.path.Aa,a),u(f,b.destroy(),4);case 4:return e=new Ft,u(f,e.remove(d.toString()),0)}})}
830
832
  function Ut(a,b,c,d,e,f){var g,h,k,l,m,p,n,t,v,y,w;return G(function(x){switch(x.g){case 1:g=!1;D(x,2);h=!0;k=r(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,p=r(m.segments),n=p.next();!n.done;n=p.next())t=n.value,v=t.pendingSegmentRefId?d[t.pendingSegmentRefId]:null,null!=v&&(t.dataKey=v,t.pendingSegmentRefId=void 0),v=t.pendingInitSegmentRefId?d[t.pendingInitSegmentRefId]:null,null!=v&&(t.initSegmentKey=v,t.pendingInitSegmentRefId=void 0),t.pendingSegmentRefId&&(h=!1),t.pendingInitSegmentRefId&&
831
833
  (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return u(x,a.updateManifest(b,c),4);case 4:g=!0;f();ua(x,0);break;case 2:return y=va(x),u(x,Qt(b),5);case 5:if(g){x.D(6);break}w=Object.values(d);return u(x,a.removeSegments(w,function(){}),6);case 6:throw y;}})}
832
- function Nt(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A,z,C,E,F,H,J,K,N,V,U,P,ha;return G(function(Aa){switch(Aa.g){case 1:return c={width:Infinity,height:Infinity},Xd(a,b.restrictions,c),u(Aa,ae(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;Ld(a,g,h,e,f);k=r(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(ne(m));p=r(a.textStreams);for(n=p.next();!n.done;n=p.next())t=n.value,
833
- d.push(oe(t));v=r(a.imageStreams);for(y=v.next();!y.done;y=v.next())w=y.value,d.push(pe(w));return u(Aa,b.offline.trackSelectionCallback(d),3);case 3:x=Aa.h;A=a.presentationTimeline.getDuration();z=0;C=r(x);for(E=C.next();!E.done;E=C.next())F=E.value,H=F.bandwidth*A/8,z+=H;D(Aa,4);return u(Aa,b.offline.downloadSizeCallback(z),6);case 6:J=Aa.h;if(!J)throw new M(2,9,9014);ua(Aa,5);break;case 4:K=va(Aa);if(K instanceof M)throw K;throw new M(2,9,9015);case 5:N=new Set;V=new Set;U=new Set;P=r(x);for(E=
834
- P.next();!E.done;E=P.next())ha=E.value,"variant"==ha.type&&N.add(ha.id),"text"==ha.type&&V.add(ha.id),"image"==ha.type&&U.add(ha.id);a.variants=a.variants.filter(function(za){return N.has(za.id)});a.textStreams=a.textStreams.filter(function(za){return V.has(za.id)});a.imageStreams=a.imageStreams.filter(function(za){return U.has(za.id)});Vt(a);B(Aa)}})}
835
- function Ot(a,b,c,d,e,f){var g=yt(c,b,d),h=e.offline.progressCallback;Cs(f,function(t,v){g.size=v;h(g,t)},function(t,v){k&&e.offline.usePersistentLicense&&l==v&&Eg(a,"cenc",t)});var k=St(b)&&!Tt(b),l=null;k&&(l=Wt.get(a.g.keySystem));for(var m=new Bt,p=r(b.textStreams),n=p.next();!n.done;n=p.next())m.g[n.value.id]=52;p=r(b.imageStreams);for(n=p.next();!n.done;n=p.next())Dt(m,n.value);n=r(b.variants);for(p=n.next();!p.done;p=n.next())Ct(m,p.value);m=Xt(f,m,b,e);f=m.streams;m=m.Te;n=a.g;p=e.offline.usePersistentLicense;
836
- n&&p&&(n.initData=[]);return{hh:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Gc(),streams:f,sessionIds:p?Ng(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode},Te:m}}function St(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
834
+ function Nt(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A,z,C,E,F,H,J,K,N,V,U,ba,Q;return G(function(Aa){switch(Aa.g){case 1:return c={width:Infinity,height:Infinity},Xd(a,b.restrictions,c),u(Aa,ae(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;Ld(a,g,h,e,f);k=r(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(ne(m));p=r(a.textStreams);for(n=p.next();!n.done;n=p.next())t=n.value,
835
+ d.push(oe(t));v=r(a.imageStreams);for(y=v.next();!y.done;y=v.next())w=y.value,d.push(pe(w));return u(Aa,b.offline.trackSelectionCallback(d),3);case 3:x=Aa.h;A=a.presentationTimeline.getDuration();z=0;C=r(x);for(E=C.next();!E.done;E=C.next())F=E.value,H=F.bandwidth*A/8,z+=H;D(Aa,4);return u(Aa,b.offline.downloadSizeCallback(z),6);case 6:J=Aa.h;if(!J)throw new M(2,9,9014);ua(Aa,5);break;case 4:K=va(Aa);if(K instanceof M)throw K;throw new M(2,9,9015);case 5:N=new Set;V=new Set;U=new Set;ba=r(x);for(E=
836
+ ba.next();!E.done;E=ba.next())Q=E.value,"variant"==Q.type&&N.add(Q.id),"text"==Q.type&&V.add(Q.id),"image"==Q.type&&U.add(Q.id);a.variants=a.variants.filter(function(za){return N.has(za.id)});a.textStreams=a.textStreams.filter(function(za){return V.has(za.id)});a.imageStreams=a.imageStreams.filter(function(za){return U.has(za.id)});Vt(a);B(Aa)}})}
837
+ function Ot(a,b,c,d,e,f){var g=yt(c,b,d),h=e.offline.progressCallback;Cs(f,function(t,v){g.size=v;h(g,t)},function(t,v){k&&e.offline.usePersistentLicense&&l==v&&Eg(a,"cenc",t)});var k=St(b)&&!Tt(b),l=null;k&&(l=Wt.get(a.g.keySystem));for(var m=new Bt,p=r(b.textStreams),n=p.next();!n.done;n=p.next())m.g[n.value.id]=52;p=r(b.imageStreams);for(n=p.next();!n.done;n=p.next())Dt(m,n.value);n=r(b.variants);for(p=n.next();!p.done;p=n.next())Ct(m,p.value);m=Xt(f,m,b,e);f=m.streams;m=m.Ve;n=a.g;p=e.offline.usePersistentLicense;
838
+ n&&p&&(n.initData=[]);return{jh:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Gc(),streams:f,sessionIds:p?Ng(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode},Ve:m}}function St(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
837
839
  function Tt(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 Rt(a,b,c,d){b.expiration=c.Gc();c=Ng(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(St(a)&&d.offline.usePersistentLicense&&!c.length)throw new M(2,9,9007);}q.remove=function(a){return Yt(this,Zt(this,a))};
838
840
  function Zt(a,b){var c,d,e,f,g,h;return G(function(k){switch(k.g){case 1:Jt();c=kt(b);if(null==c||"manifest"!=c.g)throw new M(2,9,9004,b);d=c;e=new Rs;ta(k);return u(k,e.init(),4);case 4:return u(k,Vs(e,d.Ra(),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([$t(a,h,e),au(f,d,h)]),2);case 2:return wa(k),u(k,e.destroy(),8);case 8:xa(k,0)}})}
839
841
  function bu(a,b){for(var c=[],d=r(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:xd(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:xd(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function $t(a,b,c){return G(function(d){return u(d,cu(a.g,a.h.drm,c,b),0)})}
840
- function au(a,b,c){function d(){}var e=du(c);At(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.xh=function(){return Yt(this,eu(this))};
842
+ function au(a,b,c){function d(){}var e=du(c);At(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.Ah=function(){return Yt(this,eu(this))};
841
843
  function eu(a){var b,c,d,e,f,g,h,k,l,m;return G(function(p){switch(p.g){case 1:return Jt(),b=a.g,c=a.h.drm,d=new Rs,e=!1,ta(p),u(p,d.init(),4);case 4:f=[],Ws(d,function(n){return f.push(n)}),g=r(f),h=g.next();case 5:if(h.done){p.D(2);break}k=h.value;return u(p,k.getAll(),8);case 8:return l=p.h,u(p,vt(c,b,l),9);case 9:return m=p.h,u(p,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();p.D(5);break;case 2:return wa(p),u(p,d.destroy(),11);case 11:xa(p,3);break;case 3:return p.return(!e)}})}
842
844
  q.list=function(){return Yt(this,fu())};function fu(){var a,b,c;return G(function(d){switch(d.g){case 1:return Jt(),a=[],b=new Rs,ta(d),u(d,b.init(),4);case 4:return c=Promise.resolve(),Us(b,function(e,f){c=c.then(function(){var g;return G(function(h){if(1==h.g)return u(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=At(new jt("manifest",e.Ra,e.Aa,l),k);a.push(k)});B(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)}})}
843
845
  function Kt(a,b,c,d){var e,f,g,h,k;return G(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(){},updateDuration:function(){},newDrmInfo:function(){}},
844
846
  c.configure(d.manifest),Lt(a),u(l,c.start(b,g),2);if(3!=l.g)return h=l.h,Lt(a),k=gu(h),u(l,Promise.all(gb(k,function(m){return m.createSegmentIndex()})),3);Lt(a);if(e)throw e;return l.return(h)})}
845
847
  function Mt(a,b,c,d){var e;return G(function(f){switch(f.g){case 1:return e=new og({Ob:a.g,onError:c,Fd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),u(f,tg(e,b.variants,d.offline.usePersistentLicense),2);case 2:return u(f,Hg(e),3);case 3:return u(f,Gg(e),4);case 4:return f.return(e)}})}
846
- function Xt(a,b,c,d){var e=new Map,f=gu(c),g=new Map;f=r(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=hu(a,b,c,h,d,e);g.set(h.id,k)}a=r(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()),Te:Array.from(e.values())}}
848
+ function Xt(a,b,c,d){var e=new Map,f=gu(c),g=new Map;f=r(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=hu(a,b,c,h,d,e);g.set(h.id,k)}a=r(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()),Ve:Array.from(e.values())}}
847
849
  function hu(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,
848
850
  tilesLayout:d.tilesLayout},h=e.offline.numberOfParallelDownloads,k=0;iu(d,c.presentationTimeline.kb(),function(l){var m=ws(l),p=void 0;if(!f.has(m)){var n=l.endTime-l.startTime;n=Et(b,d.id)*n;n=zs(a.g,n);f.set(m,new vs(l,n,k,!1))}l.h&&(p=ws(l.h),f.has(p)||(n=.5*Et(b,d.id),n=zs(a.g,n),f.set(p,new vs(l.h,n,k,!0))));g.segments.push({pendingInitSegmentRefId:p,initSegmentKey:p?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,
849
851
  tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function iu(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 Lt(a){if(a.l.g)throw new M(2,9,7001);}function Jt(){if(!Gt())throw new M(2,9,9E3);}function Yt(a,b){return G(function(c){if(1==c.g)return a.i.push(b),ta(c),u(c,b,4);if(2!=c.g)return c.return(c.h);wa(c);gc(a.i,b);return xa(c,0)})}
@@ -851,10 +853,10 @@ function It(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){gc(a.i,
851
853
  function cu(a,b,c,d){var e,f,g;return G(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=Xs(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:bu(d,!1),videoCapabilities:bu(d,!0)}});return u(h,vt(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)})}
852
854
  function gu(a){for(var b=new Set,c=r(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=r(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=r(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}
853
855
  function Vt(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=r(b),d=c.next();!d.done;d=c.next()){d=r(b);for(var e=d.next();!e.done;e=d.next());}b=r(a);for(c=b.next();!c.done;c=b.next())for(c=r(a),d=c.next();!d.done;d=c.next());}I("shaka.offline.Storage",Ft);Ft.deleteAll=function(){var a;return G(function(b){return 1==b.g?(a=new Rs,ta(b),u(b,Ys(a),2)):5!=b.g?(wa(b),u(b,a.destroy(),5)):xa(b,0)})};Ft.prototype.list=Ft.prototype.list;
854
- Ft.prototype.removeEmeSessions=Ft.prototype.xh;Ft.prototype.remove=Ft.prototype.remove;Ft.prototype.store=Ft.prototype.store;Ft.prototype.getNetworkingEngine=Ft.prototype.Hc;Ft.prototype.getConfiguration=Ft.prototype.getConfiguration;Ft.prototype.configure=Ft.prototype.configure;Ft.prototype.destroy=Ft.prototype.destroy;Ft.support=Gt;
856
+ Ft.prototype.removeEmeSessions=Ft.prototype.Ah;Ft.prototype.remove=Ft.prototype.remove;Ft.prototype.store=Ft.prototype.store;Ft.prototype.getNetworkingEngine=Ft.prototype.Hc;Ft.prototype.getConfiguration=Ft.prototype.getConfiguration;Ft.prototype.configure=Ft.prototype.configure;Ft.prototype.destroy=Ft.prototype.destroy;Ft.support=Gt;
855
857
  var Wt=(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");
856
- An.offline=Gt;function ju(){}function ku(){for(var a=r(lu),b=a.next();!b.done;b=a.next()){b=b.value;try{b.ng()}catch(c){Ta("Error installing polyfill!",c)}}}function mu(a,b){a={priority:b||0,ng:a};for(b=0;b<lu.length;b++)if(lu[b].priority<a.priority){lu.splice(b,0,a);return}lu.push(a)}I("shaka.polyfill",ju);ju.register=mu;ju.installAll=ku;var lu=[];function nu(){this.g=new ou}function pu(){window.AbortController||(window.AbortController=nu,window.AbortSignal=ou)}nu.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new L("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};da.Object.defineProperties(nu.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});ju.AbortController=nu;nu.install=pu;
857
- function ou(){fb.call(this);this.h=!1;this.g=void 0;this.onabort=null}pa(ou,fb);da.Object.defineProperties(ou.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});mu(pu);function qu(){}function ru(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=r(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())su(b.value)}function su(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)}})}ju.Aria=qu;qu.install=ru;mu(ru);function tu(){}function uu(){vu()}ju.EncryptionScheme=tu;tu.install=uu;mu(uu,-2);function wu(){}
858
+ An.offline=Gt;function ju(){}function ku(){for(var a=r(lu),b=a.next();!b.done;b=a.next()){b=b.value;try{b.pg()}catch(c){Ta("Error installing polyfill!",c)}}}function mu(a,b){a={priority:b||0,pg:a};for(b=0;b<lu.length;b++)if(lu[b].priority<a.priority){lu.splice(b,0,a);return}lu.push(a)}I("shaka.polyfill",ju);ju.register=mu;ju.installAll=ku;var lu=[];function nu(){this.g=new ou}function pu(){window.AbortController||(window.AbortController=nu,window.AbortSignal=ou)}nu.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new L("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};ea.Object.defineProperties(nu.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});ju.AbortController=nu;nu.install=pu;
859
+ function ou(){fb.call(this);this.h=!1;this.g=void 0;this.onabort=null}pa(ou,fb);ea.Object.defineProperties(ou.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});mu(pu);function qu(){}function ru(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=r(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())su(b.value)}function su(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)}})}ju.Aria=qu;qu.install=ru;mu(ru);function tu(){}function uu(){vu()}ju.EncryptionScheme=tu;tu.install=uu;mu(uu,-2);function wu(){}
858
860
  function xu(){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}}),
859
861
  Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",yu);document.addEventListener("webkitfullscreenerror",yu);document.addEventListener("mozfullscreenchange",yu);document.addEventListener("mozfullscreenerror",yu);document.addEventListener("MSFullscreenChange",yu);document.addEventListener("MSFullscreenError",yu)}}
860
862
  function yu(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)}ju.Fullscreen=wu;wu.install=xu;mu(xu);function zu(){}function Au(){var a=!0;if(Vc()||Sc("PlayStation 5")||Wc()||Sc("Web0S")||Tc()||Sc("CrKey")||Sc("PC=EOS"))a=!1;a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Bu=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Cu)}
@@ -897,7 +899,7 @@ q.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return th
897
899
  q.forEach=function(a){this.g&&a(this.g,Zg.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=Zg.value();return this.g&&Fc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var lv="";mu(kv);function yv(){}function zv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Av,Object.defineProperty(a,"disablePictureInPicture",{get:Bv,set:Cv,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Dv,document.addEventListener("webkitpresentationmodechanged",Ev,!0))}}
898
900
  function Ev(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)}
899
901
  function Av(){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 Dv(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
900
- function Bv(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Cv(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}ju.PiPWebkit=yv;yv.install=zv;mu(zv);function Fv(){}function Gv(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Hv))}function Hv(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}ju.RandomUUID=Fv;Fv.install=Gv;mu(Gv);function Iv(){}function Jv(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Kv)}function Kv(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}ju.StorageEstimate=Iv;Iv.install=Jv;mu(Jv);function Lv(){}function Mv(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Nv})}function Nv(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}ju.Symbol=Lv;Lv.install=Mv;mu(Mv);function Ov(){}function Pv(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}ju.VideoPlayPromise=Ov;Ov.install=Pv;mu(Pv);function Qv(){}function Rv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Uc())&&(a.getVideoPlaybackQuality=Sv)}}function Sv(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}ju.VideoPlaybackQuality=Qv;Qv.install=Rv;mu(Rv);function Tv(){}function Uv(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Vv;else if(6==b)a=Wv;else{try{var c=!!Vv(1,2,"")}catch(d){c=!1}c&&(a=Vv)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Vv(a,b,c){return new window.TextTrackCue(a,b,c)}function Wv(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}ju.VTTCue=Tv;Tv.install=Uv;mu(Uv);function Xv(){}Xv.prototype.parseInit=function(){};Xv.prototype.setSequenceMode=function(){};Xv.prototype.parseMedia=function(a,b){var c=null,d=[];a=ad(a).split(/\r?\n/);a=r(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=Yv.exec(e))){var f=Zv.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new kc(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};I("shaka.text.LrcTextParser",Xv);Xv.prototype.parseMedia=Xv.prototype.parseMedia;
902
+ function Bv(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Cv(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}ju.PiPWebkit=yv;yv.install=zv;mu(zv);function Fv(){}function Gv(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Hv))}function Hv(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}ju.RandomUUID=Fv;Fv.install=Gv;mu(Gv);function Iv(){}function Jv(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Kv)}function Kv(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}ju.StorageEstimate=Iv;Iv.install=Jv;mu(Jv);function Lv(){}function Mv(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Nv})}function Nv(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}ju.Symbol=Lv;Lv.install=Mv;mu(Mv);function Ov(){}function Pv(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}ju.VideoPlayPromise=Ov;Ov.install=Pv;mu(Pv);function Qv(){}function Rv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Uc())&&(a.getVideoPlaybackQuality=Sv)}}function Sv(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}ju.VideoPlaybackQuality=Qv;Qv.install=Rv;mu(Rv);function Tv(){}function Uv(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Vv;else if(6==b)a=Wv;else{try{var c=!!Vv(1,2,"")}catch(d){c=!1}c&&(a=Vv)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Vv(a,b,c){return new window.TextTrackCue(a,b,c)}function Wv(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}ju.VTTCue=Tv;Tv.install=Uv;mu(Uv);function Xv(){}Xv.prototype.parseInit=function(){};Xv.prototype.setSequenceMode=function(){};Xv.prototype.parseMedia=function(a,b){var c=null,d=[];a=ad(a).split(/\r?\n/);a=r(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=Yv.exec(e))){var f=Zv.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new jc(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};I("shaka.text.LrcTextParser",Xv);Xv.prototype.parseMedia=Xv.prototype.parseMedia;
901
903
  Xv.prototype.setSequenceMode=Xv.prototype.setSequenceMode;Xv.prototype.parseInit=Xv.prototype.parseInit;var Yv=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,Zv=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Ed["application/x-subtitle-lrc"]=function(){return new Xv};function $v(){}$v.prototype.parseInit=function(){};$v.prototype.setSequenceMode=function(){};
902
904
  $v.prototype.parseMedia=function(a,b){var c=ad(a);a=[];if(""==c)return a;var d=lg(c,"tt");if(!d)throw new M(2,2,2005,"Failed to parse TTML.");c=d.getElementsByTagName("body")[0];if(!c)return[];var e=$f(d,aw,"frameRate"),f=$f(d,aw,"subFrameRate"),g=$f(d,aw,"frameRateMultiplier"),h=$f(d,aw,"tickRate"),k=$f(d,aw,"cellResolution"),l=d.getAttribute("xml:space")||"default",m=$f(d,bw,"extent");if("default"!=l&&"preserve"!=l)throw new M(2,2,2005,"Invalid xml:space value: "+l);l="default"==l;e=new cw(e,f,
903
905
  g,h);k=k?(k=/^(\d+) (\d+)$/.exec(k))?{columns:parseInt(k[1],10),rows:parseInt(k[2],10)}:null:null;f=(f=d.getElementsByTagName("metadata")[0])?Yf(f):[];g=Array.from(d.getElementsByTagName("style"));d=Array.from(d.getElementsByTagName("region"));h=[];for(var p=r(d),n=p.next();!n.done;n=p.next()){var t=n.value;n=new mc;var v=t.getAttribute("xml:id");if(v){n.id=v;var y=null;m&&(y=dw.exec(m)||ew.exec(m));v=y?Number(y[1]):null;y=y?Number(y[2]):null;var w,x;if(w=fw(t,g,"extent"))w=(x=dw.exec(w))||ew.exec(w),
@@ -905,7 +907,7 @@ null!=w&&(n.width=Number(w[1]),n.height=Number(w[2]),x||(null!=v&&(n.width=100*n
905
907
  2,2001,"<p> can only be inside <div> in TTML");m=r(Vf(c,"div"));for(p=m.next();!p.done;p=m.next())if(Vf(p.value,"span").length)throw new M(2,2,2001,"<span> can only be inside <p> in TTML");if(b=gw(c,b,e,f,g,d,h,l,k,null,!1))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
906
908
  function gw(a,b,c,d,e,f,g,h,k,l,m){var p=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var n=document.createElement("span");n.textContent=a.textContent}else n=a;for(var t=null,v=r(hw),y=v.next();!y.done&&!(t=iw(n,"backgroundImage",d,"#",y.value)[0]);y=v.next());v=m;if("p"==a.nodeName||t)m=!0;h="default"==(n.getAttribute("xml:space")||(h?"default":"preserve"));y=Array.from(n.childNodes).every(function(C){return C.nodeType==Node.TEXT_NODE});
907
909
  a=[];if(!y)for(var w=r(n.childNodes),x=w.next();!x.done;x=w.next())(x=gw(x.value,b,c,d,e,f,g,h,k,n,m))&&a.push(x);d=null!=l;w=/\S/.test(n.textContent);var A=n.hasAttribute("begin")||n.hasAttribute("end")||n.hasAttribute("dur");if(!(A||w||"br"==n.tagName||0!=a.length||d&&!h))return null;x=jw(n,c);w=x.start;for(x=x.end;p&&p.nodeType==Node.ELEMENT_NODE&&"tt"!=p.tagName;)x=kw(p,c,w,x),w=x.start,x=x.end,p=p.parentNode;null==w&&(w=0);w+=b.periodStart;x=null==x?Infinity:x+b.periodStart;w=Math.max(w,b.segmentStart);
908
- x=Math.min(x,b.segmentEnd);if(!A&&0<a.length)for(w=Infinity,x=0,b=r(a),c=b.next();!c.done;c=b.next())c=c.value,w=Math.min(w,c.startTime),x=Math.max(x,c.endTime);if("br"==n.tagName)return e=new kc(w,x,""),e.lineBreak=!0,e;b="";y&&(b=n.textContent,h&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new kc(w,x,b);b.nestedCues=a;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=iw(n,"region",f,"")[0];if(n.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var z=k.getAttribute("xml:id");b.region=g.filter(function(C){return C.id==
910
+ x=Math.min(x,b.segmentEnd);if(!A&&0<a.length)for(w=Infinity,x=0,b=r(a),c=b.next();!c.done;c=b.next())c=c.value,w=Math.min(w,c.startTime),x=Math.max(x,c.endTime);if("br"==n.tagName)return e=new jc(w,x,""),e.lineBreak=!0,e;b="";y&&(b=n.textContent,h&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new jc(w,x,b);b.nestedCues=a;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=iw(n,"region",f,"")[0];if(n.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var z=k.getAttribute("xml:id");b.region=g.filter(function(C){return C.id==
909
911
  z})[0]}g=k;l&&d&&!n.getAttribute("region")&&!n.getAttribute("style")&&(g=iw(l,"region",f,"")[0]);lw(b,n,g,t,e,v,0==a.length);return b}
910
912
  function lw(a,b,c,d,e,f,g){f=f||g;"rtl"==mw(b,c,e,"direction",f)&&(a.direction="rtl");g=mw(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=lc);(g=mw(b,c,e,"textAlign",!0))?(a.positionAlign=nw[g],a.lineAlign=ow[g],a.textAlign=wc[g.toUpperCase()]):a.textAlign=oc;if(g=mw(b,c,e,"displayAlign",!0))a.displayAlign=xc[g.toUpperCase()];if(g=mw(b,c,e,"color",f))a.color=g;if(g=mw(b,c,e,"backgroundColor",
911
913
  f))a.backgroundColor=g;if(g=mw(b,c,e,"border",f))a.border=g;if(g=mw(b,c,e,"fontFamily",f))switch(g){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=g}(g=mw(b,c,e,"fontWeight",f))&&
@@ -924,10 +926,10 @@ end:"end"},nw={left:"line-left",center:"center",right:"line-right"},aw=["http://
924
926
  I("shaka.text.Mp4TtmlParser",Cw);Cw.prototype.parseMedia=Cw.prototype.parseMedia;Cw.prototype.setSequenceMode=Cw.prototype.setSequenceMode;Cw.prototype.parseInit=Cw.prototype.parseInit;Ed['application/mp4; codecs="stpp"']=function(){return new Cw};Ed['application/mp4; codecs="stpp.ttml"']=function(){return new Cw};Ed['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Cw};Ed['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Cw};function Dw(){this.g=!1}Dw.prototype.parseInit=function(){};Dw.prototype.setSequenceMode=function(a){this.g=a};
925
927
  Dw.prototype.parseMedia=function(a,b){a=ad(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new M(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&this.g){var d=c[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),e=c[0].match(/MPEGTS:(\d+)/m);if(d&&e){a=Ew(new Xq(d[1]));if(null==a)throw new M(2,2,2E3);e=Number(e[1]);for(d=b.segmentStart-b.periodStart;95443.7176888889<=d;)d-=95443.7176888889,e+=8589934592;a=b.periodStart+
926
928
  e/9E4-a}}b=[];e=r(c[0].split("\n"));for(d=e.next();!d.done;d=e.next())if(d=d.value,/^Region:/.test(d)){d=new Xq(d);var f=new mc;$q(d);Yq(d);for(var g=$q(d);g;){var h=f,k=g;(g=/^id=(.*)$/.exec(k))?h.id=g[1]:(g=/^width=(\d{1,2}|100)%$/.exec(k))?h.width=Number(g[1]):(g=/^lines=(\d+)$/.exec(k))?(h.height=Number(g[1]),h.heightUnits=2):(g=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.regionAnchorX=Number(g[1]),h.regionAnchorY=Number(g[2])):(g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?
927
- (h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");Yq(d);g=$q(d)}b.push(f)}e=new Map;Fw(e);d=[];c=r(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]&&f[1].includes("::cue")){h="global";(g=f[1].match(/\((.*)\)/))&&(h=g.pop());g=f.slice(2,-1);f[1].includes("}")&&(k=/\{(.*?)\}/.exec(f[1]))&&(g=k[1].split(";"));k=new kc(0,0,"");for(var l=!1,m=0;m<g.length;m++){var p=
929
+ (h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");Yq(d);g=$q(d)}b.push(f)}e=new Map;Fw(e);d=[];c=r(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]&&f[1].includes("::cue")){h="global";(g=f[1].match(/\((.*)\)/))&&(h=g.pop());g=f.slice(2,-1);f[1].includes("}")&&(k=/\{(.*?)\}/.exec(f[1]))&&(g=k[1].split(";"));k=new jc(0,0,"");for(var l=!1,m=0;m<g.length;m++){var p=
928
930
  /^\s*([^:]+):\s*(.*)/.exec(g[m]);if(p){var n=p[2].trim().replace(";","");switch(p[1].trim()){case "background-color":l=!0;k.backgroundColor=n;break;case "color":l=!0;k.color=n;break;case "font-family":l=!0;k.fontFamily=n;break;case "font-size":l=!0;k.fontSize=n;break;case "font-weight":700<=parseInt(n,10)&&(l=!0,k.fontWeight=700);break;case "font-style":switch(n){case "normal":l=!0;k.fontStyle=uc;break;case "italic":l=!0;k.fontStyle="italic";break;case "oblique":l=!0,k.fontStyle="oblique"}break;case "opacity":l=
929
931
  !0;k.opacity=parseFloat(n);break;case "text-shadow":l=!0;k.textShadow=n;break;case "white-space":l=!0,k.wrapLine="noWrap"!=n}}}l&&e.set(h,k)}m=a;if(1==f.length&&!f[0]||/^NOTE($|[ \t])/.test(f[0])||"STYLE"==f[0])f=null;else{h=null;f[0].includes("--\x3e")||(h=f[0],f.splice(0,1));g=new Xq(f[0]);k=Ew(g);p=Zq(g,/[ \t]+--\x3e[ \t]+/g);l=Ew(g);if(null==k||null==p||null==l)throw new M(2,2,2001,"Could not parse cue time range in WebVTT");k+=m;l+=m;m=Gw(f.slice(1).join("\n").trim());e.has("global")?(f=e.get("global").clone(),
930
- f.startTime=k,f.endTime=l,f.payload=""):f=new kc(k,l,"");Hw(m,f,e);Yq(g);for(k=$q(g);k;)Iw(f,k,b),Yq(g),k=$q(g);null!=h&&(f.id=h)}f&&d.push(f)}return d};function Fw(a){for(var b=r(Object.entries(zc)),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;var e=new kc(0,0,"");e.color=d;a.set(c,e)}b=r(Object.entries(Ac));for(c=b.next();!c.done;c=b.next())d=r(c.value),c=d.next().value,d=d.next().value,e=new kc(0,0,""),e.backgroundColor=d,a.set(c,e)}
932
+ f.startTime=k,f.endTime=l,f.payload=""):f=new jc(k,l,"");Hw(m,f,e);Yq(g);for(k=$q(g);k;)Iw(f,k,b),Yq(g),k=$q(g);null!=h&&(f.id=h)}f&&d.push(f)}return d};function Fw(a){for(var b=r(Object.entries(zc)),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;var e=new jc(0,0,"");e.color=d;a.set(c,e)}b=r(Object.entries(Ac));for(c=b.next();!c.done;c=b.next())d=r(c.value),c=d.next().value,d=d.next().value,e=new jc(0,0,""),e.backgroundColor=d,a.set(c,e)}
931
933
  function Hw(a,b,c){0===c.size&&Fw(c);a=Jw(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(Kw)&&d.push(e),e=-1);d=r(d);for(f=d.next();!f.done;f=d.next())f=f.value,a=a.replace("<"+f+">",'<div time="'+f+'">'),a+="</div>";if(f=lg("<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=r(f);for(f=a.next();!f.done;f=a.next())Lw(f.value,b,d,c);b.nestedCues=
932
934
  d}else b.payload=a}function Jw(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 Mw(a,b){return a&&0<a.length?a:b}
933
935
  function Lw(a,b,c,d){var e=b.clone();if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=r(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=Mw(h.backgroundColor,e.backgroundColor),e.color=Mw(h.color,e.color),e.fontFamily=Mw(h.fontFamily,e.fontFamily),e.fontSize=Mw(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=
@@ -936,13 +938,13 @@ function Iw(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exe
936
938
  b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Nw(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=yc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=qc,a.line=Number(c[1]),c[2]&&(a.lineAlign=yc[c[2].toUpperCase()])}function Nw(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}
937
939
  function Ew(a){a=Zq(a,Kw);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)}function Gw(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},c=/&(?:amp|lt|gt|quot|#(0+)?39);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||"'"}):a||""}I("shaka.text.VttTextParser",Dw);Dw.prototype.parseMedia=Dw.prototype.parseMedia;Dw.prototype.setSequenceMode=Dw.prototype.setSequenceMode;
938
940
  Dw.prototype.parseInit=Dw.prototype.parseInit;var Kw=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Ed["text/vtt"]=function(){return new Dw};Ed['text/vtt; codecs="vtt"']=function(){return new Dw};Ed['text/vtt; codecs="wvtt"']=function(){return new Dw};function Ow(){this.g=null}Ow.prototype.parseInit=function(a){var b=this,c=!1;(new If).box("moov",Nf).box("trak",Nf).box("mdia",Nf).S("mdhd",function(d){d=oi(d.reader,d.version);b.g=d.timescale}).box("minf",Nf).box("stbl",Nf).S("stsd",Pf).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new M(2,2,2008);if(!c)throw new M(2,2,2008);};Ow.prototype.setSequenceMode=function(){};
939
- Ow.prototype.parseMedia=function(a,b){if(!this.g)throw new M(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new If).box("moof",Nf).box("traf",Nf).S("tfdt",function(z){g=!0;c=ni(z.reader,z.version).nf}).S("tfhd",function(z){l=mi(z.reader,z.flags).zf}).S("trun",function(z){h=!0;d=pi(z.reader,z.version,z.flags).Rf}).box("mdat",Rf(function(z){k=!0;e=z})).parse(a,!1);if(!k&&!g&&!h)throw new M(2,2,2008);a=c;for(var m=new Ff(e,0),p=r(d),n=p.next();!n.done;n=p.next()){n=n.value;var t=n.Ee||l,v=n.Ld?
941
+ Ow.prototype.parseMedia=function(a,b){if(!this.g)throw new M(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new If).box("moof",Nf).box("traf",Nf).S("tfdt",function(z){g=!0;c=ni(z.reader,z.version).qf}).S("tfhd",function(z){l=mi(z.reader,z.flags).Bf}).S("trun",function(z){h=!0;d=pi(z.reader,z.version,z.flags).Tf}).box("mdat",Rf(function(z){k=!0;e=z})).parse(a,!1);if(!k&&!g&&!h)throw new M(2,2,2008);a=c;for(var m=new Ff(e,0),p=r(d),n=p.next();!n.done;n=p.next()){n=n.value;var t=n.Fe||l,v=n.Ld?
940
942
  c+n.Ld:a;a=v+(t||0);var y=0;do{var w=m.N();y+=w;var x=m.N(),A=null;"vttc"==Mf(x)?8<w&&(A=m.Bb(w-8)):m.skip(w-8);t&&A&&(w=Pw(A,b.periodStart+v/this.g,b.periodStart+a/this.g),f.push(w))}while(n.sampleSize&&y<n.sampleSize)}return f.filter(Cb)};function Pw(a,b,c){var d,e,f;(new If).box("payl",Rf(function(g){d=ad(g)})).box("iden",Rf(function(g){e=ad(g)})).box("sttg",Rf(function(g){f=ad(g)})).parse(a);return d?Qw(d,e,f,b,c):null}
941
- function Qw(a,b,c,d,e){d=new kc(d,e,"");Hw(a,d,new Map);b&&(d.id=b);if(c)for(a=new Xq(c),b=$q(a);b;)Iw(d,b,[]),Yq(a),b=$q(a);return d}I("shaka.text.Mp4VttParser",Ow);Ow.prototype.parseMedia=Ow.prototype.parseMedia;Ow.prototype.setSequenceMode=Ow.prototype.setSequenceMode;Ow.prototype.parseInit=Ow.prototype.parseInit;Ed['application/mp4; codecs="wvtt"']=function(){return new Ow};function Rw(){}Rw.prototype.parseInit=function(){};Rw.prototype.setSequenceMode=function(){};Rw.prototype.parseMedia=function(a){var b=ad(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=r(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Xq(c[0]),e=Sw(d),f=Zq(d,/,/g);d=Sw(d);if(null==e||null==f||null==d)throw new M(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new kc(e,d,c.slice(1).join("\n").trim()))}return a};
943
+ function Qw(a,b,c,d,e){d=new jc(d,e,"");Hw(a,d,new Map);b&&(d.id=b);if(c)for(a=new Xq(c),b=$q(a);b;)Iw(d,b,[]),Yq(a),b=$q(a);return d}I("shaka.text.Mp4VttParser",Ow);Ow.prototype.parseMedia=Ow.prototype.parseMedia;Ow.prototype.setSequenceMode=Ow.prototype.setSequenceMode;Ow.prototype.parseInit=Ow.prototype.parseInit;Ed['application/mp4; codecs="wvtt"']=function(){return new Ow};function Rw(){}Rw.prototype.parseInit=function(){};Rw.prototype.setSequenceMode=function(){};Rw.prototype.parseMedia=function(a){var b=ad(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=r(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Xq(c[0]),e=Sw(d),f=Zq(d,/,/g);d=Sw(d);if(null==e||null==f||null==d)throw new M(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new jc(e,d,c.slice(1).join("\n").trim()))}return a};
942
944
  function Sw(a){a=Zq(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)}I("shaka.text.SbvTextParser",Rw);Rw.prototype.parseMedia=Rw.prototype.parseMedia;Rw.prototype.setSequenceMode=Rw.prototype.setSequenceMode;Rw.prototype.parseInit=Rw.prototype.parseInit;Ed["text/x-subviewer"]=function(){return new Rw};function Tw(){this.g=new Dw}Tw.prototype.parseInit=function(){};Tw.prototype.setSequenceMode=function(){};Tw.prototype.parseMedia=function(a,b){a=ad(a);a=Uw(a);a=Hc(ed(a));return this.g.parseMedia(a,b)};function Uw(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=r(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}I("shaka.text.SrtTextParser",Tw);
943
945
  Tw.srt2webvtt=Uw;Tw.prototype.parseMedia=Tw.prototype.parseMedia;Tw.prototype.setSequenceMode=Tw.prototype.setSequenceMode;Tw.prototype.parseInit=Tw.prototype.parseInit;Ed["text/srt"]=function(){return new Tw};function Vw(){}Vw.prototype.parseInit=function(){};Vw.prototype.setSequenceMode=function(){};
944
946
  Vw.prototype.parseMedia=function(a){var b="",c="";a=ad(a).split(/\r?\n\s*\r?\n/);a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=Ww.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=r(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=Xw.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(Yw);else if("Style"==e){e=f.split(Yw);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
945
- [];b=null;e={};c=r(c.split(/\r?\n/));for(f=c.next();!f.done;e={be:e.be},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=Xw.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(Yw);else if("Dialogue"==f){g=g.split(Yw);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=Zw(f.Start);var k=Zw(f.End);g=new kc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.be=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.be}}(e)))&&$w(g,f);d.push(g)}return d};
947
+ [];b=null;e={};c=r(c.split(/\r?\n/));for(f=c.next();!f.done;e={be:e.be},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=Xw.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(Yw);else if("Dialogue"==f){g=g.split(Yw);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=Zw(f.Start);var k=Zw(f.End);g=new jc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.be=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.be}}(e)))&&$w(g,f);d.push(g)}return d};
946
948
  function $w(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=ax(c))a.color=c;if(c=b.BackColour)if(c=ax(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=sc;a.textAlign="start";break;case 2:a.displayAlign=sc;a.textAlign=oc;break;case 3:a.displayAlign=sc;a.textAlign="end";
947
949
  break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=oc;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=oc;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}
948
950
  function ax(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 Zw(a){a=bx.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}I("shaka.text.SsaTextParser",Vw);Vw.prototype.parseMedia=Vw.prototype.parseMedia;Vw.prototype.setSequenceMode=Vw.prototype.setSequenceMode;Vw.prototype.parseInit=Vw.prototype.parseInit;
@@ -1012,10 +1014,10 @@ sw:{u:"Kiswahili",A:"Swahili"},"sw-KE":{u:"Kiswahili",A:"Swahili (Kenya)"},ta:{u
1012
1014
  A:"Thai"},"th-TH":{u:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",A:"Thai (Thailand)"},tl:{u:"Filipino",A:"Filipino"},"tl-PH":{u:"Filipino",A:"Filipino"},tlh:{u:"tlhIngan-Hol",A:"Klingon"},tr:{u:"T\u00fcrk\u00e7e",A:"Turkish"},"tr-TR":{u:"T\u00fcrk\u00e7e",A:"Turkish"},"tt-RU":{u:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",A:"Tatar"},uk:{u:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",A:"Ukrainian"},"uk-UA":{u:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
1013
1015
  A:"Ukrainian"},ur:{u:"\u0627\u0631\u062f\u0648",A:"Urdu"},"ur-PK":{u:"\u0627\u0631\u062f\u0648",A:"Urdu"},uz:{u:"O'zbek",A:"Uzbek"},"uz-UZ":{u:"O'zbek",A:"Uzbek"},vi:{u:"Ti\u1ebfng Vi\u1ec7t",A:"Vietnamese"},"vi-VN":{u:"Ti\u1ebfng Vi\u1ec7t",A:"Vietnamese"},"xh-ZA":{u:"isiXhosa",A:"Xhosa"},yi:{u:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",A:"Yiddish"},"yi-DE":{u:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",A:"Yiddish (German)"},zh:{u:"\u4e2d\u6587",A:"Chinese"},"zh-HANS":{u:"\u4e2d\u6587\u7b80\u4f53",
1014
1016
  A:"Chinese Simplified"},"zh-HANT":{u:"\u4e2d\u6587\u7e41\u9ad4",A:"Chinese Traditional"},"zh-CN":{u:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",A:"Chinese Simplified (China)"},"zh-HK":{u:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",A:"Chinese Traditional (Hong Kong)"},"zh-SG":{u:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",A:"Chinese Simplified (Singapore)"},"zh-TW":{u:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",A:"Chinese Traditional (Taiwan)"},"zu-ZA":{u:"isiZulu",A:"Zulu"}},tx=r(Object.keys(sx)),ux=tx.next();!ux.done;ux=
1015
- tx.next()){var vx=ux.value;sx[vx.toLowerCase()]=sx[vx]};function X(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new xf;this.localization=this.controls.za;this.player=this.controls.cc();this.video=this.controls.zb();this.adManager=this.player.rd();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})}
1017
+ tx.next()){var vx=ux.value;sx[vx.toLowerCase()]=sx[vx]};function X(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new xf;this.localization=this.controls.ua;this.player=this.controls.cc();this.video=this.controls.zb();this.adManager=this.player.sd();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})}
1016
1018
  X.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};I("shaka.ui.Element",X);X.prototype.release=X.prototype.release;function wx(a){return xx(a,"shaka-back-to-overflow-button")}function xx(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function yx(a){a&&(a=xx(a,"shaka-chosen-item"))&&a.parentElement.focus()}function zx(){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 Y(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
1017
1019
  function Ax(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function Bx(a,b){X.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 O(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=Ax(e-d,!1)+" / "+Ax(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=
1018
- ""))});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.ea(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.ya(),this.g.ea(.5))}pa(Bx,X);Bx.prototype.release=function(){this.g.stop();this.g=null;X.prototype.release.call(this)};I("shaka.ui.AdCounter",Bx);function Cx(a,b){X.call(this,a,b);var c=this;this.g=R("div");this.g.classList.add("shaka-ad-position");Y(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&&Dx(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Dx(c)});this.eventManager.o(this.adManager,"ad-started",function(){Dx(c)});this.eventManager.o(this.adManager,
1020
+ ""))});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.za();c.g.ea(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.za(),this.g.ea(.5))}pa(Bx,X);Bx.prototype.release=function(){this.g.stop();this.g=null;X.prototype.release.call(this)};I("shaka.ui.AdCounter",Bx);function Cx(a,b){X.call(this,a,b);var c=this;this.g=R("div");this.g.classList.add("shaka-ad-position");Y(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&&Dx(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Dx(c)});this.eventManager.o(this.adManager,"ad-started",function(){Dx(c)});this.eventManager.o(this.adManager,
1019
1021
  "ad-stopped",function(){c.h.textContent="";Y(c.g,!1)});this.ad&&Dx(this)}pa(Cx,X);function Dx(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)}}I("shaka.ui.AdPosition",Cx);function Ex(a,b){X.call(this,a,b);var c=this;this.button=$k();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();
1020
1022
  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()?Fx(c.controls):Gx(c.controls)});this.ad&&(this.g(),this.h())}pa(Ex,X);Ex.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.s.paused&&!a.X;return a};Ex.prototype.g=function(){};Ex.prototype.h=function(){};
1021
1023
  I("shaka.ui.PlayButton",Ex);function Hx(a,b){Ex.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}pa(Hx,Ex);Hx.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};Hx.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};I("shaka.ui.BigPlayButton",Hx);function Ix(a,b){X.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";Y(c.g,!0)}else Y(c.g,
@@ -1026,39 +1028,39 @@ this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown"
1026
1028
  q.setValue=function(a){this.g||(this.bar.value=a)};function Nx(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}I("shaka.ui.RangeElement",Mx);Mx.prototype.setValue=Mx.prototype.setValue;Mx.prototype.getValue=Mx.prototype.getValue;Mx.prototype.changeTo=Mx.prototype.changeTo;Mx.prototype.onChangeEnd=Mx.prototype.onChangeEnd;
1027
1029
  Mx.prototype.onChange=Mx.prototype.onChange;Mx.prototype.onChangeStart=Mx.prototype.onChangeStart;Mx.prototype.setRange=Mx.prototype.setRange;function Ox(a,b){Mx.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 O(function(){c.video.currentTime=c.getValue()});this.s=new O(function(){Px(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",function(){return Qx(c)});this.eventManager.o(this.localization,
1028
1030
  "locale-changed",function(){return Qx(c)});this.eventManager.o(this.adManager,"ad-started",function(){Rx(c)||Y(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Rx(c)&&Y(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;Sx(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];Sx(c)});this.setValue(this.video.currentTime);this.update();Qx(this);this.ad&&Y(this.container,!1)}pa(Ox,Mx);q=Ox.prototype;
1029
- q.release=function(){this.h&&(this.h.stop(),this.h=null,this.s.stop(),this.s=null);Mx.prototype.release.call(this)};q.onChangeStart=function(){this.B=!this.video.paused;this.controls.Oe(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.R(.125))};q.onChangeEnd=function(){this.h.ya();this.controls.Oe(!1);this.B&&this.video.play()};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1031
+ q.release=function(){this.h&&(this.h.stop(),this.h=null,this.s.stop(),this.s=null);Mx.prototype.release.call(this)};q.onChangeStart=function(){this.B=!this.video.paused;this.controls.Pe(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.R(.125))};q.onChangeEnd=function(){this.h.za();this.controls.Pe(!1);this.B&&this.video.play()};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1030
1032
  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.Ja(),g=f.end-f.start;this.setRange(f.start,f.end);Rx(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?
1031
1033
  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)};
1032
1034
  function Px(a){if(a.i.length){for(var b=a.player.Ja(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=r(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=r(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 "+
1033
1035
  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 Sx(a){Px(a);var b=a.player.Ja();b=b.end-b.start;a.player.T()&&5<b&&a.s.ea(1)}function Rx(a){var b=a.player.Ja();b=b.end-b.start;return a.player.T()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function Qx(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}I("shaka.ui.SeekBar",Ox);function Tx(){}
1034
- Tx.prototype.create=function(a,b){return new Ox(a,b)};Ox.Factory=Tx;function Z(a,b,c,d){fb.call(this);var e=this;this.P=!0;this.i=d;this.C=new ro(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.Ya=!0;this.s=this.C.zb();this.B=c;this.F=this.C.cc();this.sa=a;this.j=b;this.Wa=this.F.rd();this.l=this.m=null;this.X=!1;this.G=[];this.ub=[];this.gb=!1;this.Z=new O(function(){e.j.style.cursor="none";e.gb=!1;Ux(e)});this.aa=new O(function(){e.g.removeAttribute("shown");e.I.R(2)});this.I=new O(function(){for(var f=r(e.G),g=f.next();!g.done;g=f.next())Y(g.value,
1035
- !1)});this.La=new O(function(){e.Mb()&&Vx(e)});this.J=null;this.H=[];this.za=Wx();this.h=new xf;this.configure(this.i);Xx(this);this.ia=new Set;Yx(this);this.La.ea(.125);this.h.o(this.za,"locale-changed",function(f){e.Wa.setLocale(f.locales[0])})}pa(Z,fb);q=Z.prototype;
1036
+ Tx.prototype.create=function(a,b){return new Ox(a,b)};Ox.Factory=Tx;function Z(a,b,c,d){fb.call(this);var e=this;this.P=!0;this.i=d;this.C=new ro(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.Za=!0;this.s=this.C.zb();this.B=c;this.F=this.C.cc();this.sa=a;this.j=b;this.Xa=this.F.sd();this.l=this.m=null;this.X=!1;this.G=[];this.ub=[];this.gb=!1;this.Z=new O(function(){e.j.style.cursor="none";e.gb=!1;Ux(e)});this.aa=new O(function(){e.g.removeAttribute("shown");e.I.R(2)});this.I=new O(function(){for(var f=r(e.G),g=f.next();!g.done;g=f.next())Y(g.value,
1037
+ !1)});this.La=new O(function(){e.Mb()&&Vx(e)});this.J=null;this.H=[];this.ua=Wx();this.h=new xf;this.configure(this.i);Xx(this);this.ka=new Set;Yx(this);this.La.ea(.125);this.h.o(this.ua,"locale-changed",function(f){e.Xa.setLocale(f.locales[0])})}pa(Z,fb);q=Z.prototype;
1036
1038
  q.destroy=function(){var a=this;return G(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.D(2);break}return u(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.Z&&(a.Z.stop(),a.Z=null);a.aa&&(a.aa.stop(),a.aa=null);a.I&&(a.I.stop(),a.I=null);a.La&&(a.La.stop(),a.La=null);Zx(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.sa){b.D(6);break}return u(b,a.sa.destroy(),7);case 7:a.sa=
1037
- null;case 6:a.F=null,a.B=null,a.s=null,a.za=null,a.ia.clear(),fb.prototype.release.call(a),B(b)}})};function Zx(a){for(var b=r(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function $x(a,b){ay.set(a,b)}q.mg=function(a){this.Ya=a;Yx(this)};q.gh=function(){Ux(this)};
1038
- q.configure=function(a){this.i=a;this.C.vf(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.eb&&(this.eb=null);this.Xa&&(this.Xa=null);this.g?(al(this.g),Zx(this)):(by(this),cy(this));this.j.classList.add("shaka-video-container");this.B.classList.add("shaka-video");dy(this);this.i.addBigPlayButton&&ey(this);this.i.customContextMenu&&(this.Xa=new Ix(this.V,this),this.H.push(this.Xa));this.$||fy(this);this.fb=R("div");this.fb.classList.add("shaka-server-side-ad-container");
1039
- this.g.appendChild(this.fb);gy(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"))));hy(this);this.ub=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));Ux(this);a=r(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",
1040
- c)}};q.Ke=function(a){(this.P=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");Ux(this)};q.Vf=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.Ke(!1)};q.getAd=function(){return this.m};q.zg=function(){return this.C};q.Lg=function(){return this.za};q.$g=function(){return this.j};q.zb=function(){return this.s};q.Kg=function(){return this.B};q.cc=function(){return this.F};q.Jg=function(){return this.sa};
1041
- q.Eg=function(){return this.g};q.Tg=function(){return this.fb};q.Bg=function(){return this.O};q.Cg=function(){return this.i};q.fh=function(){return this.X};q.Oe=function(a){this.X=a};q.dh=function(){return this.Ya};q.Ef=function(){return this.l?this.l.getValue():this.s.currentTime};q.Wf=function(a){this.J=a};q.ld=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};q.fc=function(){this.I.ya()};
1042
- q.wd=function(){return document.fullscreenEnabled||this.B.webkitSupportsFullscreen?!0:!1};q.ic=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.B;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1039
+ null;case 6:a.F=null,a.B=null,a.s=null,a.ua=null,a.ka.clear(),fb.prototype.release.call(a),B(b)}})};function Zx(a){for(var b=r(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function $x(a,b){ay.set(a,b)}q.og=function(a){this.Za=a;Yx(this)};q.ih=function(){Ux(this)};
1040
+ q.configure=function(a){this.i=a;this.C.xf(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.fb&&(this.fb=null);this.Ya&&(this.Ya=null);this.g?(al(this.g),Zx(this)):(by(this),cy(this));this.j.classList.add("shaka-video-container");this.B.classList.add("shaka-video");dy(this);this.i.addBigPlayButton&&ey(this);this.i.customContextMenu&&(this.Ya=new Ix(this.V,this),this.H.push(this.Ya));this.$||fy(this);this.$a=R("div");this.$a.classList.add("shaka-server-side-ad-container");
1041
+ this.g.appendChild(this.$a);gy(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"))));hy(this);this.ub=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));Ux(this);a=r(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",
1042
+ c)}};q.Le=function(a){(this.P=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");Ux(this)};q.Xf=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.Le(!1)};q.getAd=function(){return this.m};q.Bg=function(){return this.C};q.Ng=function(){return this.ua};q.bh=function(){return this.j};q.zb=function(){return this.s};q.Mg=function(){return this.B};q.cc=function(){return this.F};q.Lg=function(){return this.sa};
1043
+ q.Gg=function(){return this.g};q.Vg=function(){return this.$a};q.Dg=function(){return this.O};q.Eg=function(){return this.i};q.hh=function(){return this.X};q.Pe=function(a){this.X=a};q.fh=function(){return this.Za};q.Gf=function(){return this.l?this.l.getValue():this.s.currentTime};q.Yf=function(a){this.J=a};q.md=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};q.fc=function(){this.I.za()};
1044
+ q.xd=function(){return document.fullscreenEnabled||this.B.webkitSupportsFullscreen?!0:!1};q.ic=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.B;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1043
1045
  function iy(a){var b,c;return G(function(d){switch(d.g){case 1:D(d,2);if(!document.fullscreenEnabled){b=a.B;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();d.D(4);break}if(!document.pictureInPictureElement){d.D(5);break}return u(d,document.exitPictureInPicture(),5);case 5:return u(d,a.j.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(4);break}D(d,9);return u(d,screen.orientation.lock("landscape"),11);case 11:ua(d,4,2);break;case 9:va(d,
1044
- 2);case 4:ua(d,0);break;case 2:c=va(d),a.dispatchEvent(new L("error",(new Map).set("detail",c))),B(d)}})}function jy(a){var b;return G(function(c){if(!document.fullscreenEnabled)return b=a.B,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.D(0);screen.orientation&&screen.orientation.unlock();return u(c,document.exitFullscreen(),0)})}q.Ue=function(){var a=this;return G(function(b){return a.ic()?u(b,jy(a),0):u(b,iy(a),0)})};
1045
- q.$f=function(){Y(this.K,!0);Y(this.O,!0);this.g.setAttribute("ad-active","true")};q.Hf=function(){Y(this.K,!1);Y(this.O,!1);this.g.removeAttribute("ad-active")};function Gx(a){a.P&&a.s.duration&&(a.F.rf(),a.s.paused&&!a.X?a.s.play():a.s.pause())}function Fx(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1046
- function by(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.s.duration&&(a.Mb()?a.J=Date.now():(ky(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){ly(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.wd()&&a.Ue()})}
1047
- function ey(a){var b=R("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.eb=new Hx(b,a);a.H.push(a.eb)}function dy(a){var b=R("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function my(a){a.K=R("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();Y(a.K,b);a.M.appendChild(a.K);b=new Cx(a.K,a);a.H.push(b);b=new Bx(a.K,a);a.H.push(b)}
1046
+ 2);case 4:ua(d,0);break;case 2:c=va(d),a.dispatchEvent(new L("error",(new Map).set("detail",c))),B(d)}})}function jy(a){var b;return G(function(c){if(!document.fullscreenEnabled)return b=a.B,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.D(0);screen.orientation&&screen.orientation.unlock();return u(c,document.exitFullscreen(),0)})}q.We=function(){var a=this;return G(function(b){return a.ic()?u(b,jy(a),0):u(b,iy(a),0)})};
1047
+ q.cg=function(){Y(this.K,!0);Y(this.O,!0);this.g.setAttribute("ad-active","true")};q.Jf=function(){Y(this.K,!1);Y(this.O,!1);this.g.removeAttribute("ad-active")};function Gx(a){a.P&&a.s.duration&&(a.F.uf(),a.s.paused&&!a.X?a.s.play():a.s.pause())}function Fx(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1048
+ function by(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.s.duration&&(a.Mb()?a.J=Date.now():(ky(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){ly(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.xd()&&a.We()})}
1049
+ function ey(a){var b=R("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.fb=new Hx(b,a);a.H.push(a.fb)}function dy(a){var b=R("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function my(a){a.K=R("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();Y(a.K,b);a.M.appendChild(a.K);b=new Cx(a.K,a);a.H.push(b);b=new Bx(a.K,a);a.H.push(b)}
1048
1050
  function fy(a){a.$=R("div");a.$.classList.add("shaka-spinner-container");a.j.appendChild(a.$);var b=R("div");b.classList.add("shaka-spinner");a.$.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");b.setAttribute("fill",
1049
1051
  "none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}
1050
1052
  function gy(a){a.M=R("div");a.M.classList.add("shaka-bottom-controls");a.M.classList.add("shaka-no-propagation");a.g.appendChild(a.M);a.h.o(a.M,"click",function(d){d.target.closest(".shaka-overflow-button")||a.fc()});my(a);a.V=R("div");a.V.classList.add("shaka-controls-button-panel");a.V.classList.add("shaka-show-controls-on-mouse-over");a.i.enableTooltips&&a.V.classList.add("shaka-tooltips-on");a.M.appendChild(a.V);for(var b=r(a.i.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,ay.get(c)?
1051
1053
  (c=ay.get(c).create(a.V,a),a.H.push(c)):Ta("Unrecognized control panel element requested:",c)}function hy(a){if(a.i.addSeekBar)a.l=ny.create(a.M,a),a.H.push(a.l);else{a=r(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function cy(a){a.O=R("div");a.O.classList.add("shaka-client-side-ad-container");Y(a.O,!1);a.h.o(a.O,"click",function(){ly(a)});a.j.appendChild(a.O)}
1052
- function Xx(a){a.h.o(a.F,"buffering",function(){a.P&&Y(a.$,a.F.Pc())});a.P&&Y(a.$,a.F.Pc());a.h.o(window,"keydown",function(b){oy(a,b)});a.h.o(window,"click",function(){return a.fc()});a.h.o(a,"submenuopen",function(){a.fc()});a.h.o(a.s,"play",function(){Ux(a)});a.h.o(a.s,"pause",function(){Ux(a)});a.h.o(a.j,"mousemove",function(b){ky(a,b)});a.h.o(a.j,"touchmove",function(b){ky(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){ky(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.Z.ya()});
1054
+ function Xx(a){a.h.o(a.F,"buffering",function(){a.P&&Y(a.$,a.F.Pc())});a.P&&Y(a.$,a.F.Pc());a.h.o(window,"keydown",function(b){oy(a,b)});a.h.o(window,"click",function(){return a.fc()});a.h.o(a,"submenuopen",function(){a.fc()});a.h.o(a.s,"play",function(){Ux(a)});a.h.o(a.s,"pause",function(){Ux(a)});a.h.o(a.j,"mousemove",function(b){ky(a,b)});a.h.o(a.j,"touchmove",function(b){ky(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){ky(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.Z.za()});
1053
1055
  a.h.o(a.C,"caststatuschanged",function(){Yx(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)&&ky(a,b);if(a.i.enableKeyboardPlaybackControls)switch(c=a.i.keyboardSeekDistance,b.key){case "ArrowLeft":a.l&&!d&&0<c&&(b.preventDefault(),py(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&!d&&0<c&&(b.preventDefault(),py(a,a.l.getValue()+c));break;case "Home":a.l&&
1054
- py(a,a.F.Ja().start);break;case "End":a.l&&py(a,a.F.Ja().end);break;case " ":e&&qy(a)}});a.h.o(a.j,"keyup",function(b){a.ia.delete(b.key)});a.h.o(a.Wa,"ad-started",function(b){a.m=b.ad;a.$f()});a.h.o(a.Wa,"ad-stopped",function(){a.m=null;a.Hf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return G(function(b){return u(b,ry(a),0)})})}
1055
- function ry(a){return G(function(b){return a.s&&0!=a.s.readyState&&!a.C.na()&&a.i.enableFullscreenOnRotation&&a.wd()?screen.orientation.type.includes("landscape")&&!a.ic()?u(b,iy(a),0):screen.orientation.type.includes("portrait")&&a.ic()?u(b,jy(a),0):b.D(0):b.return()})}
1056
+ py(a,a.F.Ja().start);break;case "End":a.l&&py(a,a.F.Ja().end);break;case " ":e&&qy(a)}});a.h.o(a.j,"keyup",function(b){a.ka.delete(b.key)});a.h.o(a.Xa,"ad-started",function(b){a.m=b.ad;a.cg()});a.h.o(a.Xa,"ad-stopped",function(){a.m=null;a.Jf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return G(function(b){return u(b,ry(a),0)})})}
1057
+ function ry(a){return G(function(b){return a.s&&0!=a.s.readyState&&!a.C.na()&&a.i.enableFullscreenOnRotation&&a.xd()?screen.orientation.type.includes("landscape")&&!a.ic()?u(b,iy(a),0):screen.orientation.type.includes("portrait")&&a.ic()?u(b,jy(a),0):b.D(0):b.return()})}
1056
1058
  function ky(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),Ux(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.gb=!0,a.I.stop(),a.Mb()||(Vx(a),Ux(a)),a.Z.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.Z.R(3))}function sy(a){return window.matchMedia("hover: hover").matches?a.ub.some(function(b){return b.matches(":hover")}):!1}
1057
- function Ux(a){var b=a.m?a.m.isPaused():!1,c=a.s.paused&&!a.X,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.gb||d||sy(a)?(Vx(a),a.g.setAttribute("shown","true"),a.aa.stop()):a.aa.R(a.i.fadeDelay)}function ly(a){a.P&&(a.ld()?a.I.ya():a.i.singleClickForPlayAndPause&&qy(a))}function qy(a){a.m&&a.m.isLinear()?Fx(a):Gx(a)}
1059
+ function Ux(a){var b=a.m?a.m.isPaused():!1,c=a.s.paused&&!a.X,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.gb||d||sy(a)?(Vx(a),a.g.setAttribute("shown","true"),a.aa.stop()):a.aa.R(a.i.fadeDelay)}function ly(a){a.P&&(a.md()?a.I.za():a.i.singleClickForPlayAndPause&&qy(a))}function qy(a){a.m&&a.m.isLinear()?Fx(a):Gx(a)}
1058
1060
  function Yx(a){var b=a.C.na();a.dispatchEvent(new L("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}q.Mb=function(){return this.P?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function py(a,b){a.l.changeTo(b);a.Mb()&&Vx(a)}
1059
1061
  function Vx(a){if(a.l)if(a.l.setValue(a.s.currentTime),a.l.update(),a.l.isShowing())for(var b=r(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=r(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new L("timeandseekrangeupdated"))}
1060
- function oy(a,b){a.ia.add(b.key);var c=a.ld();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),Ux(a),a.h.o(window,"mousedown",function(){a.h.qc(window,"mousedown")}));"Escape"==b.key&&a.I.ya();c&&a.ia.has("Tab")&&ty(a,b)}
1061
- function ty(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.ia.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1062
+ function oy(a,b){a.ka.add(b.key);var c=a.md();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),Ux(a),a.h.o(window,"mousedown",function(){a.h.qc(window,"mousedown")}));"Escape"==b.key&&a.I.za();c&&a.ka.has("Tab")&&ty(a,b)}
1063
+ function ty(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.ka.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1062
1064
  function Wx(){var a=new Wb("en");a.ba("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..."],
1063
1065
  ["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"],
1064
1066
  ["EXIT_PICTURE_IN_PICTURE",'\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["FAST_FORWARD","\u062a\u0642\u062f\u064a\u0645 \u0633\u0631\u064a\u0639"],["FULL_SCREEN","\u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["LANGUAGE","\u0627\u0644\u0644\u063a\u0629"],["LIVE","\u0645\u0628\u0627\u0634\u0631"],["LOOP","\u062a\u0643\u0631\u0627\u0631"],["MORE_SETTINGS","\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a"],
@@ -1117,29 +1119,29 @@ a.ba("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [
1117
1119
  ["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.ba("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
1118
1120
  ["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"],
1119
1121
  ["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"],
1120
- ["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.uf(navigator.languages||[]);return a}I("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Mb;Z.prototype.hideAdUI=Z.prototype.Hf;Z.prototype.showAdUI=Z.prototype.$f;
1121
- Z.prototype.toggleFullScreen=Z.prototype.Ue;Z.prototype.isFullScreenEnabled=Z.prototype.ic;Z.prototype.isFullScreenSupported=Z.prototype.wd;Z.prototype.hideSettingsMenus=Z.prototype.fc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.ld;Z.prototype.setLastTouchEventTime=Z.prototype.Wf;Z.prototype.getDisplayTime=Z.prototype.Ef;Z.prototype.isCastAllowed=Z.prototype.dh;Z.prototype.setSeeking=Z.prototype.Oe;Z.prototype.isSeeking=Z.prototype.fh;Z.prototype.getConfig=Z.prototype.Cg;
1122
- Z.prototype.getClientSideAdContainer=Z.prototype.Bg;Z.prototype.getServerSideAdContainer=Z.prototype.Tg;Z.prototype.getControlsContainer=Z.prototype.Eg;Z.prototype.getLocalPlayer=Z.prototype.Jg;Z.prototype.getPlayer=Z.prototype.cc;Z.prototype.getLocalVideo=Z.prototype.Kg;Z.prototype.getVideo=Z.prototype.zb;Z.prototype.getVideoContainer=Z.prototype.$g;Z.prototype.getLocalization=Z.prototype.Lg;Z.prototype.getCastProxy=Z.prototype.zg;Z.prototype.getAd=Z.prototype.getAd;
1123
- Z.prototype.setEnabledNativeControls=Z.prototype.Vf;Z.prototype.setEnabledShakaControls=Z.prototype.Ke;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.gh;Z.prototype.allowCast=Z.prototype.mg;Z.registerSeekBar=function(a){ny=a};Z.registerElement=$x;Z.prototype.destroy=Z.prototype.destroy;var ay=new Map,ny=new Tx;function uy(a,b){X.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=$k();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");
1124
- this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);vy(this);this.eventManager.o(this.localization,"locale-updated",function(){wy(c)});this.eventManager.o(this.localization,"locale-changed",function(){wy(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.Wf(Date.now());
1122
+ ["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.wf(navigator.languages||[]);return a}I("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Mb;Z.prototype.hideAdUI=Z.prototype.Jf;Z.prototype.showAdUI=Z.prototype.cg;
1123
+ Z.prototype.toggleFullScreen=Z.prototype.We;Z.prototype.isFullScreenEnabled=Z.prototype.ic;Z.prototype.isFullScreenSupported=Z.prototype.xd;Z.prototype.hideSettingsMenus=Z.prototype.fc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.md;Z.prototype.setLastTouchEventTime=Z.prototype.Yf;Z.prototype.getDisplayTime=Z.prototype.Gf;Z.prototype.isCastAllowed=Z.prototype.fh;Z.prototype.setSeeking=Z.prototype.Pe;Z.prototype.isSeeking=Z.prototype.hh;Z.prototype.getConfig=Z.prototype.Eg;
1124
+ Z.prototype.getClientSideAdContainer=Z.prototype.Dg;Z.prototype.getServerSideAdContainer=Z.prototype.Vg;Z.prototype.getControlsContainer=Z.prototype.Gg;Z.prototype.getLocalPlayer=Z.prototype.Lg;Z.prototype.getPlayer=Z.prototype.cc;Z.prototype.getLocalVideo=Z.prototype.Mg;Z.prototype.getVideo=Z.prototype.zb;Z.prototype.getVideoContainer=Z.prototype.bh;Z.prototype.getLocalization=Z.prototype.Ng;Z.prototype.getCastProxy=Z.prototype.Bg;Z.prototype.getAd=Z.prototype.getAd;
1125
+ Z.prototype.setEnabledNativeControls=Z.prototype.Xf;Z.prototype.setEnabledShakaControls=Z.prototype.Le;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.ih;Z.prototype.allowCast=Z.prototype.og;Z.registerSeekBar=function(a){ny=a};Z.registerElement=$x;Z.prototype.destroy=Z.prototype.destroy;var ay=new Map,ny=new Tx;function uy(a,b){X.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=$k();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");
1126
+ this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);vy(this);this.eventManager.o(this.localization,"locale-updated",function(){wy(c)});this.eventManager.o(this.localization,"locale-changed",function(){wy(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.Yf(Date.now());
1125
1127
  d.stopPropagation()});this.eventManager.o(this.g,"click",function(){xy(c)});wy(this);this.ad&&this.ad.isLinear()&&Y(this.g,!1)}pa(uy,X);uy.prototype.release=function(){this.j=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];X.prototype.release.call(this)};function yy(a,b){zy.set(a,b)}
1126
- function vy(a){for(var b=r(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,zy.get(c)?(c=zy.get(c),a.i.push(c.create(a.h,a.controls))):Ta("Unrecognized overflow menu element requested:",c)}function xy(a){if(a.controls.ld())a.controls.fc();else{Y(a.h,!0);Ux(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 wy(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1128
+ function vy(a){for(var b=r(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,zy.get(c)?(c=zy.get(c),a.i.push(c.create(a.h,a.controls))):Ta("Unrecognized overflow menu element requested:",c)}function xy(a){if(a.controls.md())a.controls.fc();else{Y(a.h,!0);Ux(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 wy(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1127
1129
  I("shaka.ui.OverflowMenu",uy);uy.registerElement=yy;function Ay(){}Ay.prototype.create=function(a,b){return new uy(a,b)};$x("overflow_menu",new Ay);var zy=new Map;function By(a,b){X.call(this,a,b);var c=this;this.g=$k();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");a=R("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=R("span");a.appendChild(this.j);
1128
1130
  this.i=R("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);Cy(this);Dy(this);this.eventManager.o(this.localization,"locale-updated",function(){Cy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Cy(c)});this.eventManager.o(this.g,"click",function(){c.controls.zb().webkitShowPlaybackTargetPicker()});a=this.controls.zb();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1129
- c.player.Ff()==$m;Y(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){Dy(c)})}pa(By,X);function Dy(a){var b=a.controls.zb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Cy(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}I("shaka.ui.AirPlayButton",By);function Ey(){}Ey.prototype.create=function(a,b){return new By(a,b)};yy("airplay",new Ey);
1130
- $x("airplay",new Ey);function Fy(a,b,c){this.i=a;this.h=Gy(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.oe()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.h);this.configure({});c.controls||a.Re(b);b.ui=this;c.ui=this}q=Fy.prototype;q.destroy=function(){var a=this;return G(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;B(b)})};q.oe=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Vc()&&1<navigator.maxTouchPoints};
1131
- q.getConfiguration=function(){var a=Gy(this);Fl(a,this.h,Gy(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Gl(a,b));Fl(this.h,a,Gy(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new L("uiupdated"))};q.Dg=function(){return this.g};q.Ih=function(a){this.g.Ke(a)};
1131
+ c.player.Hf()==$m;Y(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){Dy(c)})}pa(By,X);function Dy(a){var b=a.controls.zb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Cy(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}I("shaka.ui.AirPlayButton",By);function Ey(){}Ey.prototype.create=function(a,b){return new By(a,b)};yy("airplay",new Ey);
1132
+ $x("airplay",new Ey);function Fy(a,b,c){this.i=a;this.h=Gy(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.oe()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.h);this.configure({});c.controls||a.Se(b);b.ui=this;c.ui=this}q=Fy.prototype;q.destroy=function(){var a=this;return G(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;B(b)})};q.oe=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Vc()&&1<navigator.maxTouchPoints};
1133
+ q.getConfiguration=function(){var a=Gy(this);Fl(a,this.h,Gy(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Gl(a,b));Fl(this.h,a,Gy(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new L("uiupdated"))};q.Fg=function(){return this.g};q.Kh=function(a){this.g.Le(a)};
1132
1134
  function Gy(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",
1133
1135
  "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)"},
1134
1136
  trackLabelFormat:Hy,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.oe()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1135
1137
  function Iy(){var a,b,c,d,e,f,g,h,k,l,m,p,n,t,v,y,w,x,A,z,C;return G(function(E){switch(E.g){case 1:ku();if(!pm())return Jy("shaka-ui-load-failed",Ky),E.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");if(!b.length&&!a.length){E.D(2);break}if(b.length&&!a.length){d=r(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,!f.ui){g=document.createElement("div");h=f.parentElement;
1136
1138
  h.replaceChild(g,f);g.appendChild(f);k=null;l=r(c);for(m=l.next();!m.done;m=l.next())if(p=m.value,p.parentElement==g){k=p;break}k||(k=document.createElement("canvas"),k.classList.add("shaka-canvas-container"),g.appendChild(k));Ly(g,f,k)}E.D(2);break}n=r(a);t=n.next();case 4:if(t.done){E.D(2);break}v=t.value;if(v.ui){E.D(5);break}y=null;w=r(b);for(e=w.next();!e.done;e=w.next())if(x=e.value,x.parentElement==v){y=x;break}y||(y=document.createElement("video"),y.setAttribute("playsinline",""),v.appendChild(y));
1137
1139
  A=null;z=r(c);for(m=z.next();!m.done;m=z.next())if(C=m.value,C.parentElement==v){A=C;break}A||(A=document.createElement("canvas"),A.classList.add("shaka-canvas-container"),v.appendChild(A));D(E,7);return u(E,Ly(v,y,A),9);case 9:ua(E,5);break;case 7:return va(E),Jy("shaka-ui-load-failed",My),E.return();case 5:t=n.next();E.D(4);break;case 2:Jy("shaka-ui-loaded"),B(E)}})}function Jy(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1138
- function Ly(a,b,c){var d,e,f,g,h,k,l,m,p;return G(function(n){switch(n.g){case 1:d=new S(b);e=new Fy(d,a,b);d.mf(c);f="";g=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(f=a.dataset.shakaPlayerCastReceiverId,g="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(f=b.dataset.shakaPlayerCastReceiverId,g="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);f.length&&e.configure({castReceiverAppId:f,castAndroidReceiverCompatible:g});
1139
- b.controls&&e.g.Vf(!0);if(h=b.getAttribute("src"))k=document.createElement("source"),k.setAttribute("src",h),b.appendChild(k),b.removeAttribute("src");l=r(b.querySelectorAll("source"));m=l.next();case 2:if(m.done){n.D(0);break}p=m.value;D(n,5);return u(n,e.g.cc().load(p.getAttribute("src")),7);case 7:n.D(0);break;case 5:va(n);case 3:m=l.next(),n.D(2)}})}I("shaka.ui.Overlay",Fy);Fy.prototype.setEnabled=Fy.prototype.Ih;Fy.prototype.getControls=Fy.prototype.Dg;Fy.prototype.configure=Fy.prototype.configure;
1140
- Fy.prototype.getConfiguration=Fy.prototype.getConfiguration;Fy.prototype.isMobile=Fy.prototype.oe;Fy.prototype.destroy=Fy.prototype.destroy;var Hy=0;Fy.TrackLabelFormat={LANGUAGE:Hy,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var Ky=0,My=1;Fy.FailReasonCode={NO_BROWSER_SUPPORT:Ky,PLAYER_FAILED_TO_LOAD:My};"complete"==document.readyState?G(function(a){if(1==a.g)return u(a,Promise.resolve(),2);Iy();B(a)}):window.addEventListener("load",Iy);function Ny(a,b,c,d,e,f,g){function h(z,C){return z+": "+C}function k(z){return"variant"==z.type?z.audioRoles?z.audioRoles.join(", "):void 0:z.roles.join(", ")}var l=a.find(function(z){return 1==z.active}),m=wx(b);al(b);b.appendChild(m);m=new Map;for(var p=r(a),n=p.next();!n.done;n=p.next())n=n.value,m.has(n.language)||m.set(n.language,new Set),m.get(n.language).add(k(n));m=new Set;l=l?h(l.language,k(l)):"";p={};a=r(a);for(n=a.next();!n.done;p={Ua:p.Ua},n=a.next()){p.Ua=n.value;n=p.Ua.language;var t=
1141
- p.Ua.forced,v=f.resolve($b.gg),y=k(p.Ua),w=h(n,y);if(!m.has(w)){m.add(w);var x=$k();x.addEventListener("click",function(z){return function(){c(z.Ua)}}(p));var A=R("span");x.appendChild(A);A.textContent=Oy(n,f);switch(g){case Hy:t&&(A.textContent+=" ("+v+")");break;case 1:y?A.textContent=y:(Ta("Track #"+p.Ua.id+" does not have a role, but the UI is configured to only show role."),A.textContent="?");t&&(A.textContent+=" ("+v+")");break;case 2:y&&(A.textContent+=": "+y);t&&(A.textContent+=" ("+v+")");
1142
- break;case 3:p.Ua.label?A.textContent=p.Ua.label:(Ta("Track #"+p.Ua.id+" does not have a label, but the UI is configured to only show labels."),A.textContent="?")}d&&w==l&&(x.appendChild(zx()),A.classList.add("shaka-chosen-item"),x.ariaSelected="true",e.textContent=A.textContent);b.appendChild(x)}}}
1140
+ function Ly(a,b,c){var d,e,f,g,h,k,l,m,p;return G(function(n){switch(n.g){case 1:d=new S(b);e=new Fy(d,a,b);d.pf(c);f="";g=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(f=a.dataset.shakaPlayerCastReceiverId,g="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(f=b.dataset.shakaPlayerCastReceiverId,g="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);f.length&&e.configure({castReceiverAppId:f,castAndroidReceiverCompatible:g});
1141
+ b.controls&&e.g.Xf(!0);if(h=b.getAttribute("src"))k=document.createElement("source"),k.setAttribute("src",h),b.appendChild(k),b.removeAttribute("src");l=r(b.querySelectorAll("source"));m=l.next();case 2:if(m.done){n.D(0);break}p=m.value;D(n,5);return u(n,e.g.cc().load(p.getAttribute("src")),7);case 7:n.D(0);break;case 5:va(n);case 3:m=l.next(),n.D(2)}})}I("shaka.ui.Overlay",Fy);Fy.prototype.setEnabled=Fy.prototype.Kh;Fy.prototype.getControls=Fy.prototype.Fg;Fy.prototype.configure=Fy.prototype.configure;
1142
+ Fy.prototype.getConfiguration=Fy.prototype.getConfiguration;Fy.prototype.isMobile=Fy.prototype.oe;Fy.prototype.destroy=Fy.prototype.destroy;var Hy=0;Fy.TrackLabelFormat={LANGUAGE:Hy,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var Ky=0,My=1;Fy.FailReasonCode={NO_BROWSER_SUPPORT:Ky,PLAYER_FAILED_TO_LOAD:My};"complete"==document.readyState?G(function(a){if(1==a.g)return u(a,Promise.resolve(),2);Iy();B(a)}):window.addEventListener("load",Iy);function Ny(a,b,c,d,e,f,g){function h(z,C){return z+": "+C}function k(z){return"variant"==z.type?z.audioRoles?z.audioRoles.join(", "):void 0:z.roles.join(", ")}var l=a.find(function(z){return 1==z.active}),m=wx(b);al(b);b.appendChild(m);m=new Map;for(var p=r(a),n=p.next();!n.done;n=p.next())n=n.value,m.has(n.language)||m.set(n.language,new Set),m.get(n.language).add(k(n));m=new Set;l=l?h(l.language,k(l)):"";p={};a=r(a);for(n=a.next();!n.done;p={Va:p.Va},n=a.next()){p.Va=n.value;n=p.Va.language;var t=
1143
+ p.Va.forced,v=f.resolve($b.ig),y=k(p.Va),w=h(n,y);if(!m.has(w)){m.add(w);var x=$k();x.addEventListener("click",function(z){return function(){c(z.Va)}}(p));var A=R("span");x.appendChild(A);A.textContent=Oy(n,f);switch(g){case Hy:t&&(A.textContent+=" ("+v+")");break;case 1:y?A.textContent=y:(Ta("Track #"+p.Va.id+" does not have a role, but the UI is configured to only show role."),A.textContent="?");t&&(A.textContent+=" ("+v+")");break;case 2:y&&(A.textContent+=": "+y);t&&(A.textContent+=" ("+v+")");
1144
+ break;case 3:p.Va.label?A.textContent=p.Va.label:(Ta("Track #"+p.Va.id+" does not have a label, but the UI is configured to only show labels."),A.textContent="?")}d&&w==l&&(x.appendChild(zx()),A.classList.add("shaka-chosen-item"),x.ariaSelected="true",e.textContent=A.textContent);b.appendChild(x)}}}
1143
1145
  function Oy(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 sx?sx[a].u:c in sx?sx[c].u+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function Py(a,b,c){X.call(this,a,b);var d=this;Qy(this,c);Ry(this);Sy(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new L("submenuopen")),Y(d.menu,!0),yx(d.menu)):Y(d.menu,!1)})}pa(Py,X);
1144
1146
  function Qy(a,b){a.button=$k();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);b=R("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=R("span");b.appendChild(a.nameSpan);a.currentSelection=R("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
1145
1147
  function Ry(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=$k();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=
@@ -1147,12 +1149,12 @@ R("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}
1147
1149
  function(){Vy(c)});Uy(this);Vy(this)}pa(Ty,Py);function Vy(a){var b=a.player.Qa();Ny(b,a.menu,function(c){a.player.Md(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);yx(a.menu);a.controls.dispatchEvent(new L("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1148
1150
  function Uy(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")}I("shaka.ui.AudioLanguageSelection",Ty);function Wy(){}Wy.prototype.create=function(a,b){return new Ty(a,b)};yy("language",new Wy);$x("language",new Wy);function Xy(a,b){X.call(this,a,b);var c=this;this.h=this.controls.C;this.g=$k();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);a=R("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=R("span");a.appendChild(this.l);this.j=R("span");this.j.classList.add("shaka-current-selection-span");
1149
1151
  a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);Yy(this);Zy(this);this.eventManager.o(this.localization,"locale-updated",function(){Yy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Yy(c)});this.eventManager.o(this.g,"click",function(){$y(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){Zy(c)})}pa(Xy,X);
1150
- function $y(a){var b;G(function(c){if(1==c.g){if(a.h.na())return a.h.ag(),c.D(0);D(c,3);a.g.disabled=!0;return u(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,ua(c,0);b=va(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new L("error",(new Map).set("detail",b)));B(c)})}function Zy(a){var b=a.h.qf()&&a.controls.Ya,c=a.h.na();Y(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");az(a)}
1152
+ function $y(a){var b;G(function(c){if(1==c.g){if(a.h.na())return a.h.dg(),c.D(0);D(c,3);a.g.disabled=!0;return u(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,ua(c,0);b=va(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new L("error",(new Map).set("detail",b)));B(c)})}function Zy(a){var b=a.h.tf()&&a.controls.Za,c=a.h.na();Y(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");az(a)}
1151
1153
  function az(a){a.j.textContent=a.h.na()?a.h.Jd():a.localization.resolve("OFF")}function Yy(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");az(a)}I("shaka.ui.CastButton",Xy);function bz(){}bz.prototype.create=function(a,b){return new Xy(a,b)};yy("cast",new bz);$x("cast",new bz);function cz(a,b){X.call(this,a,b);var c=this;this.g=$k();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);dz(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){dz(c)});this.eventManager.o(this.localization,"locale-changed",function(){dz(c)});
1152
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.xb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.We(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(cz,X);function dz(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}I("shaka.ui.FastForwardButton",cz);function ez(){}ez.prototype.create=function(a,b){return new cz(a,b)};$x("fast_forward",new ez);function fz(a,b){X.call(this,a,b);var c=this;this.h=this.controls.B;this.g=$k();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");gz(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);hz(this);this.eventManager.o(this.localization,"locale-updated",function(){hz(c)});this.eventManager.o(this.localization,"locale-changed",function(){hz(c)});this.eventManager.o(this.g,"click",function(){return G(function(d){return u(d,
1153
- c.controls.Ue(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.ic()?"fullscreen_exit":"fullscreen";hz(c)});this.eventManager.o(this.h,"loadedmetadata",function(){gz(c)});this.eventManager.o(this.h,"loadeddata",function(){gz(c)})}pa(fz,X);function gz(a){a.controls.wd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function hz(a){a.g.ariaLabel=a.localization.resolve(a.controls.ic()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1154
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.xb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ye(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(cz,X);function dz(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}I("shaka.ui.FastForwardButton",cz);function ez(){}ez.prototype.create=function(a,b){return new cz(a,b)};$x("fast_forward",new ez);function fz(a,b){X.call(this,a,b);var c=this;this.h=this.controls.B;this.g=$k();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");gz(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);hz(this);this.eventManager.o(this.localization,"locale-updated",function(){hz(c)});this.eventManager.o(this.localization,"locale-changed",function(){hz(c)});this.eventManager.o(this.g,"click",function(){return G(function(d){return u(d,
1155
+ c.controls.We(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.ic()?"fullscreen_exit":"fullscreen";hz(c)});this.eventManager.o(this.h,"loadedmetadata",function(){gz(c)});this.eventManager.o(this.h,"loadeddata",function(){gz(c)})}pa(fz,X);function gz(a){a.controls.xd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function hz(a){a.g.ariaLabel=a.localization.resolve(a.controls.ic()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1154
1156
  I("shaka.ui.FullscreenButton",fz);function iz(){}iz.prototype.create=function(a,b){return new fz(a,b)};$x("fullscreen",new iz);function jz(a,b){X.call(this,a,b);var c=this;this.g=$k();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);a=R("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.l=R("span");this.l.classList.add("shaka-current-selection-span");
1155
- a.appendChild(this.l);this.g.appendChild(a);kz(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){kz(c)});this.eventManager.o(this.localization,"locale-changed",function(){kz(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.ya();c.h.ea(1)});this.m=this.video.loop;this.h=new O(function(){c.m!=c.video.loop&&(kz(c),c.m=c.video.loop)});this.h.ea(1)}pa(jz,X);jz.prototype.release=function(){this.h.stop();this.h=null;X.prototype.release.call(this)};
1157
+ a.appendChild(this.l);this.g.appendChild(a);kz(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){kz(c)});this.eventManager.o(this.localization,"locale-changed",function(){kz(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.za();c.h.ea(1)});this.m=this.video.loop;this.h=new O(function(){c.m!=c.video.loop&&(kz(c),c.m=c.video.loop)});this.h.ea(1)}pa(jz,X);jz.prototype.release=function(){this.h.stop();this.h=null;X.prototype.release.call(this)};
1156
1158
  function kz(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")}I("shaka.ui.LoopButton",jz);function lz(){}lz.prototype.create=function(a,b){return new jz(a,b)};yy("loop",new lz);$x("loop",new lz);Kx("loop",new lz);function mz(a,b){X.call(this,a,b);var c=this;this.g=$k();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);nz(this);oz(this);this.eventManager.o(this.localization,"locale-updated",function(){nz(c)});this.eventManager.o(this.localization,"locale-changed",function(){nz(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});
1157
1159
  this.eventManager.o(this.video,"volumechange",function(){nz(c);oz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){nz(c);oz(c)});this.eventManager.o(this.adManager,"ad-muted",function(){nz(c);oz(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;nz(c);oz(c)})}pa(mz,X);function nz(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1158
1160
  function oz(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}I("shaka.ui.MuteButton",mz);function pz(){}pz.prototype.create=function(a,b){return new mz(a,b)};$x("mute",new pz);function qz(a,b){X.call(this,a,b);var c=this;this.l=this.controls.B;this.g=$k();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);a=R("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
@@ -1163,18 +1165,18 @@ function rz(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");a.g.
1163
1165
  function tz(a){G(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?u(b,document.exitPictureInPicture(),0):b.D(0)})}I("shaka.ui.PipButton",qz);function uz(){}uz.prototype.create=function(a,b){return new qz(a,b)};yy("picture_in_picture",new uz);$x("picture_in_picture",new uz);Kx("picture_in_picture",new uz);function vz(a,b){Py.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(){wz(c)});this.eventManager.o(this.localization,"locale-changed",function(){wz(c)});this.eventManager.o(this.player,"ratechange",function(){xz(c,c.player.xb())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+
1164
1166
  "x",d]}));wz(this);yz(this);xz(this,this.player.xb())}pa(vz,Py);function wz(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")}
1165
1167
  function xz(a,b){var c=xx(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(zx()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1166
- "x")}function yz(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={xc:b.xc},d=c.next()){b.xc=d.value;d=$k();var e=R("span");e.textContent=b.xc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.xc);a.video.defaultPlaybackRate=a.g.get(f.xc)}}(b));a.menu.appendChild(d)}yx(a.menu)}I("shaka.ui.PlaybackRateSelection",vz);function zz(){}zz.prototype.create=function(a,b){return new vz(a,b)};yy("playback_rate",new zz);$x("playback_rate",new zz);function Az(a,b){X.call(this,a,b);var c=this;this.g=$k();this.g.classList.add("shaka-current-time");Bz(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.T()&&(c.video.currentTime=c.player.Ja().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.X,e=c.controls.Ef(),f=c.video.duration,g=c.player.Ja(),h=g.end-g.start;c.player.T()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(Bz(c,"- "+Ax(e,f)),c.g.disabled=
1168
+ "x")}function yz(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={xc:b.xc},d=c.next()){b.xc=d.value;d=$k();var e=R("span");e.textContent=b.xc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.xc);a.video.defaultPlaybackRate=a.g.get(f.xc)}}(b));a.menu.appendChild(d)}yx(a.menu)}I("shaka.ui.PlaybackRateSelection",vz);function zz(){}zz.prototype.create=function(a,b){return new vz(a,b)};yy("playback_rate",new zz);$x("playback_rate",new zz);function Az(a,b){X.call(this,a,b);var c=this;this.g=$k();this.g.classList.add("shaka-current-time");Bz(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.T()&&(c.video.currentTime=c.player.Ja().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.X,e=c.controls.Gf(),f=c.video.duration,g=c.player.Ja(),h=g.end-g.start;c.player.T()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(Bz(c,"- "+Ax(e,f)),c.g.disabled=
1167
1169
  !1):(Bz(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=Ax(e,d),f&&(e+=" / "+Ax(f,d)),Bz(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.T()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}pa(Az,X);function Bz(a,b){b!=a.g.textContent&&(a.g.textContent=b)}I("shaka.ui.PresentationTimeTracker",Az);function Cz(){}Cz.prototype.create=function(a,b){return new Az(a,b)};$x("time_and_duration",new Cz);function Dz(a,b){Py.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(){Ez(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ez(c)});this.eventManager.o(this.player,"variantchanged",function(){Fz(c)});this.eventManager.o(this.player,"trackschanged",function(){Fz(c)});this.eventManager.o(this.player,
1168
1170
  "abrstatuschanged",function(){Fz(c)});Fz(this)}pa(Dz,Py);
1169
1171
  function Fz(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=wx(a.menu);al(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;
1170
- for(var e={},f=r(b),g=f.next();!g.done;e={Yb:e.Yb},g=f.next()){e.Yb=g.value;g=$k();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.Ie(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(zx()),h.classList.add("shaka-chosen-item"),
1172
+ for(var e={},f=r(b),g=f.next();!g.done;e={Yb:e.Yb},g=f.next()){e.Yb=g.value;g=$k();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.Je(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(zx()),h.classList.add("shaka-chosen-item"),
1171
1173
  a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=$k();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});Fz(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(zx()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",
1172
1174
  a.currentSelection.textContent);a.menu.appendChild(e);yx(a.menu);a.controls.dispatchEvent(new L("resolutionselectionupdated"));Ez(a)}
1173
1175
  function Ez(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"))}I("shaka.ui.ResolutionSelection",Dz);function Gz(){}
1174
1176
  Gz.prototype.create=function(a,b){return new Dz(a,b)};yy("quality",new Gz);$x("quality",new Gz);function Hz(a,b){X.call(this,a,b);var c=this;this.g=$k();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);Iz(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){Iz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Iz(c)});
1175
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.xb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.We(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(Hz,X);function Iz(a){a.g.ariaLabel=a.localization.resolve("REWIND")}I("shaka.ui.RewindButton",Hz);function Jz(){}Jz.prototype.create=function(a,b){return new Hz(a,b)};$x("rewind",new Jz);function Kz(a,b){X.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");Y(this.h,!1);this.j.appendChild(this.h);this.g=$k();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);Lz(this);this.i=new O(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1177
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.xb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ye(d);c.g.setAttribute("shaka-status",d+"x")}})}pa(Hz,X);function Iz(a){a.g.ariaLabel=a.localization.resolve("REWIND")}I("shaka.ui.RewindButton",Hz);function Jz(){}Jz.prototype.create=function(a,b){return new Hz(a,b)};$x("rewind",new Jz);function Kz(a,b){X.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");Y(this.h,!1);this.j.appendChild(this.h);this.g=$k();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);Lz(this);this.i=new O(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1176
1178
  d:(c.i.stop(),Y(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){Lz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Lz(c)});this.eventManager.o(this.adManager,"ad-started",function(){Mz(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,
1177
- "click",function(){c.ad.skip()});this.ad&&Mz(this)}pa(Kz,X);Kz.prototype.release=function(){this.i.stop();this.i=null;X.prototype.release.call(this)};function Lz(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function Mz(a){a.ad.isSkippable()&&(Y(a.g,!0),Y(a.h,!0),a.h.textContent="",a.i.ya(),a.i.ea(.5))}I("shaka.ui.SkipAdButton",Kz);function Nz(a,b){Ex.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()}pa(Nz,Ex);Nz.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};Nz.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)}};
1179
+ "click",function(){c.ad.skip()});this.ad&&Mz(this)}pa(Kz,X);Kz.prototype.release=function(){this.i.stop();this.i=null;X.prototype.release.call(this)};function Lz(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function Mz(a){a.ad.isSkippable()&&(Y(a.g,!0),Y(a.h,!0),a.h.textContent="",a.i.za(),a.i.ea(.5))}I("shaka.ui.SkipAdButton",Kz);function Nz(a,b){Ex.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()}pa(Nz,Ex);Nz.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};Nz.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)}};
1178
1180
  I("shaka.ui.SmallPlayButton",Nz);function Oz(){}Oz.prototype.create=function(a,b){return new Nz(a,b)};$x("play_pause",new Oz);function Pz(a,b){X.call(this,a,b);a=R("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}pa(Pz,X);I("shaka.ui.Spacer",Pz);function Qz(){}Qz.prototype.create=function(a,b){return new Pz(a,b)};$x("spacer",new Qz);function Rz(a,b){function c(k){return Ax(h.h[k],!1)+" (m)"}function d(k){return Math.round(h.h[k]/1E3)+" (kbits/s)"}function e(k){return h.h[k].toFixed(2)+" (s)"}function f(k){return h.h[k]+" (frames)"}function g(k){return h.h[k]+" (px)"}X.call(this,a,b);var h=this;this.i=$k();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);a=R("label");a.classList.add("shaka-overflow-button-label");
1179
1181
  this.s=R("span");a.appendChild(this.s);this.m=R("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);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();
1180
1182
  this.B={};this.C={width:g,height:g,completionPercent:function(k){return h.h[k]+" (%)"},bufferingTime:e,drmTimeSeconds:e,licenseTime:e,liveLatency:e,loadLatency:e,manifestTimeSeconds:e,estimatedBandwidth:d,streamBandwidth:d,maxSegmentDuration:c,pauseTime:c,playTime:c,corruptedFrames:f,decodedFrames:f,droppedFrames:f,stallsDetected:function(k){return h.h[k]+" (stalls)"},gapsJumped:function(k){return h.h[k]+" (gaps)"}};this.l=new O(function(){h.h=h.player.getStats();for(var k=r(h.F),l=k.next();!l.done;l=
@@ -1184,8 +1186,8 @@ function Tz(a){for(var b=r(a.controls.i.statisticsList),c=b.next();!c.done;c=b.n
1184
1186
  Uz.prototype.create=function(a,b){return new Rz(a,b)};yy("statistics",new Uz);Kx("statistics",new Uz);function Vz(a,b){Py.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";Wz(this);this.eventManager.o(this.localization,"locale-updated",function(){Xz(c);Yz(c)});this.eventManager.o(this.localization,"locale-changed",function(){Xz(c);Yz(c)});this.eventManager.o(this.player,
1185
1187
  "texttrackvisibility",function(){Zz(c);Yz(c)});this.eventManager.o(this.player,"textchanged",function(){Yz(c)});this.eventManager.o(this.player,"trackschanged",function(){$z(c)});Zz(this);Xz(this);Yz(this);$z(this)}pa(Vz,Py);function Wz(a){var b=$k();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(zx());a.g=R("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1186
1188
  function Zz(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 L("captionselectionupdated"))}
1187
- function Yz(a){var b=a.player.yb();Ny(b,a.menu,function(c){return aA(a,c)},a.player.Nb(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=$k();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Qe(!1);Yz(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Nb()||(b.ariaSelected="true",b.appendChild(zx()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
1188
- a.currentSelection.textContent);yx(a.menu);a.controls.dispatchEvent(new L("captionselectionupdated"))}function aA(a,b){return G(function(c){a.player.He(b);return u(c,a.player.Qe(!0),0)})}function Xz(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")}
1189
+ function Yz(a){var b=a.player.yb();Ny(b,a.menu,function(c){return aA(a,c)},a.player.Nb(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=$k();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Re(!1);Yz(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Nb()||(b.ariaSelected="true",b.appendChild(zx()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
1190
+ a.currentSelection.textContent);yx(a.menu);a.controls.dispatchEvent(new L("captionselectionupdated"))}function aA(a,b){return G(function(c){a.player.Ie(b);return u(c,a.player.Re(!0),0)})}function Xz(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")}
1189
1191
  function $z(a){var b=0<a.player.yb().length;Y(a.button,b);Yz(a)}I("shaka.ui.TextSelection",Vz);function bA(){}bA.prototype.create=function(a,b){return new Vz(a,b)};yy("captions",new bA);$x("captions",new bA);function cA(a,b){Mx.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 dA(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return eA(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return eA(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return dA(c)});this.eventManager.o(this.localization,"locale-updated",function(){return fA(c)});
1190
1192
  this.eventManager.o(this.localization,"locale-changed",function(){return fA(c)});dA(this);fA(this);if(this.ad)this.onChange()}pa(cA,Mx);cA.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 dA(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);gA(a)}function eA(a){var b=a.ad.getVolume();a.setValue(b);gA(a)}
1191
1193
  function gA(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 fA(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}I("shaka.ui.VolumeBar",cA);function hA(){}hA.prototype.create=function(a,b){return new cA(a,b)};$x("volume",new hA);}).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})();